# Set Time Format For Timer Window
Grammar — Set time format for window|Timer Window to format
Flags —Native
|Action
Sets the time format for the specified timer.
# Arguments
int
[ preset::TimerWindow ] — Windowtext
— Format
Returns — void
native void TimerWindowSetFormat(
int inWindow,
text inFormat,
);
# Related
Category: Timer / Timer Windows
- [F] —
int
[ preset::TimerWindow ] — Create Timer Window — ( TimerWindowCreate ) - [F] —
int
[ preset::TimerWindow ] — Last Created Timer Window — ( TimerWindowLastCreated ) - [F] —
void
— Show/Hide Timer Window — ( TimerWindowShow ) - [F] —
bool
— Timer Window Is Visible — ( TimerWindowVisible ) - [F] —
void
— Destroy Timer Window — ( TimerWindowDestroy ) - [F] —
void
— Anchor Timer Window — ( TimerWindowSetAnchor ) - [F] —
void
— Move Timer Window — ( TimerWindowSetPosition ) - [F] —
void
— Reset Timer Window Position — ( TimerWindowResetPosition ) - [F] —
void
— Set Title For Timer Window — ( TimerWindowSetTitle ) - [F] —
void
— Set Timer For Timer Window — ( TimerWindowSetTimer ) - [F] —
void
— Set Time Format For Timer Window — ( TimerWindowSetFormat ) - [F] —
void
— Set Style For Timer Window — ( TimerWindowSetStyle ) - [F] —
void
— Set Gap Width For Timer Window — ( TimerWindowSetGapWidth ) - [F] —
void
— Set Height For Timer Window — ( TimerWindowSetFixedHeight ) - [F] —
void
— Set Timer Window Color — ( TimerWindowSetColor ) - [F] —
void
— Show/Hide Timer Window Border — ( TimerWindowShowBorder ) - [F] —
void
— Show/Hide Timer Window Progress Bar — ( TimerWindowShowProgressBar ) - [F] —
void
— Set Timer Window Progress Color — ( TimerWindowSetProgressColor ) - [F] —
void
— Set Timer Window Image Type — ( TimerWindowSetImageType ) - [F] —
fixed
— Elapsed Time Of Timer — ( TimerGetElapsed ) - [F] —
fixed
— Remaining Time Of Timer — ( TimerGetRemaining )
# Examples
# campaigns/liberty.sc2campaign
// L825
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L539
TimerWindowSetFormat(gv_mainTimerWindow, StringToText("<min2/>:<sec2/>"))
// L1757
TimerWindowSetFormat(gv_mainTimerWindow, StringToText("<min2/>:<sec2/>"))
// L479
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L715
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L804
TimerWindowSetFormat(gv_mainTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L2177
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1278
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L2447
TimerWindowSetFormat(gv_evacuationTimerWindow, StringToText("<min2/>:<sec2/>"))
// L2738
TimerWindowSetFormat(gv_lavaTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L2453
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3454
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L5361
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1514
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1582
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1650
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1718
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L5878
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1795
TimerWindowSetFormat(gv_zergWormFrenzyTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L804
TimerWindowSetFormat(gv_mainTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L2177
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1278
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L2447
TimerWindowSetFormat(gv_evacuationTimerWindow, StringToText("<min2/>:<sec2/>"))
// L2738
TimerWindowSetFormat(gv_lavaTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L2453
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3454
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L5361
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1514
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1582
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1650
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1718
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L5878
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1795
TimerWindowSetFormat(gv_zergWormFrenzyTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L825
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L539
TimerWindowSetFormat(gv_mainTimerWindow, StringToText("<min2/>:<sec2/>"))
// L1757
TimerWindowSetFormat(gv_mainTimerWindow, StringToText("<min2/>:<sec2/>"))
// L479
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L715
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3260
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3365
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1603
TimerWindowSetFormat(gv_timedAttackTimerWindow, StringToText("<min2/>:<sec2/>"))
// L2086
TimerWindowSetFormat(gv_flashFreezeDuration_Window, StringToText("<mintotal/>:<sec2/>"))
// L2109
TimerWindowSetFormat(gv_nextFlashFreeze_Window, StringToText("<mintotal/>:<sec2/>"))
// L5192
TimerWindowSetFormat(gv_countdownTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L788
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3016
TimerWindowSetFormat(gv_dropTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L723
TimerWindowSetFormat(gv_fieldPowerTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L4919
TimerWindowSetFormat(gv_s2_LockdownTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L5567
TimerWindowSetFormat(gv_holdOut_Window, StringToText("<min2/>:<sec2/>"))
// L4938
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1632
TimerWindowSetFormat(gv_holdoutTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L1697
TimerWindowSetFormat(gv_lavaTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L1697
TimerWindowSetFormat(gv_lavaTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L3260
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3365
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1603
TimerWindowSetFormat(gv_timedAttackTimerWindow, StringToText("<min2/>:<sec2/>"))
// L2086
TimerWindowSetFormat(gv_flashFreezeDuration_Window, StringToText("<mintotal/>:<sec2/>"))
// L2109
TimerWindowSetFormat(gv_nextFlashFreeze_Window, StringToText("<mintotal/>:<sec2/>"))
// L5192
TimerWindowSetFormat(gv_countdownTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L788
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L3016
TimerWindowSetFormat(gv_dropTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L723
TimerWindowSetFormat(gv_fieldPowerTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L4919
TimerWindowSetFormat(gv_s2_LockdownTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L5567
TimerWindowSetFormat(gv_holdOut_Window, StringToText("<min2/>:<sec2/>"))
// L4938
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1632
TimerWindowSetFormat(gv_holdoutTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L4055
TimerWindowSetFormat(gv_protectAlarakWindow, StringToText("<sectotal/>"))
// L1996
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1453
TimerWindowSetFormat(gv_disruptionTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L1479
TimerWindowSetFormat(gv_disruptionTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L3156
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L4055
TimerWindowSetFormat(gv_protectAlarakWindow, StringToText("<sectotal/>"))
// L1996
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<min2/>:<sec2/>"))
// L1453
TimerWindowSetFormat(gv_disruptionTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L1479
TimerWindowSetFormat(gv_disruptionTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L3156
TimerWindowSetFormat(TimerWindowLastCreated(), StringToText("<mintotal/>:<sec2/>"))
// L1287
TimerWindowSetFormat(gv_missionTimerWindow, StringToText("<mintotal/>:<sec2/>"))
// L1287
TimerWindowSetFormat(gv_missionTimerWindow, StringToText("<mintotal/>:<sec2/>"))