Skip to content

Commit 51b53d7

Browse files
committed
chore(cc): update to renamed APIs
1 parent 2a14d54 commit 51b53d7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/hud/cc.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ class CloseCaptioning {
255255
{
256256
bLowPriority: false,
257257
bSFX: false,
258-
nNoRepeat: 0,
259-
nDelay: 0,
258+
flNoRepeat: 0,
259+
flDelay: 0,
260260
flLifetimeOverride: -1.0,
261261
text: `[MISSING] ${token}`,
262262
options: new Map<string, string>()
@@ -282,6 +282,7 @@ class CloseCaptioning {
282282
});
283283
$.RegisterForUnhandledEvent('MapLoaded', () => {
284284
this.wipeCaptions();
285+
ClosedCaptionsAPI.SetCaptioningExpiryMethod( CloseCaptioningExpiryMethod.STACK );
285286
});
286287

287288
this.updateStyle();

0 commit comments

Comments
 (0)