# Set Title For Timer Window
Grammar — Set the title for window|Timer Window to title
Flags —Native
|Action
Sets the title text for the specified timer window.
# Arguments
int
<preset::TimerWindow> — Windowtext
— Title
Returns — void
native void TimerWindowSetTitle(
int inWindow,
text inTitle,
);
# Related
Category: Timer / Timer Windows
- Create Timer Window —
int
<preset::TimerWindow> — TimerWindowCreate - Last Created Timer Window —
int
<preset::TimerWindow> — TimerWindowLastCreated - Show/Hide Timer Window —
void
— TimerWindowShow - Timer Window Is Visible —
bool
— TimerWindowVisible - Destroy Timer Window —
void
— TimerWindowDestroy - Anchor Timer Window —
void
— TimerWindowSetAnchor - Move Timer Window —
void
— TimerWindowSetPosition - Reset Timer Window Position —
void
— TimerWindowResetPosition - Set Title For Timer Window —
void
— TimerWindowSetTitle - Set Timer For Timer Window —
void
— TimerWindowSetTimer - Set Time Format For Timer Window —
void
— TimerWindowSetFormat - Set Style For Timer Window —
void
— TimerWindowSetStyle - Set Gap Width For Timer Window —
void
— TimerWindowSetGapWidth - Set Height For Timer Window —
void
— TimerWindowSetFixedHeight - Set Timer Window Color —
void
— TimerWindowSetColor - Show/Hide Timer Window Border —
void
— TimerWindowShowBorder - Show/Hide Timer Window Progress Bar —
void
— TimerWindowShowProgressBar - Set Timer Window Progress Color —
void
— TimerWindowSetProgressColor - Set Timer Window Image Type —
void
— TimerWindowSetImageType - Elapsed Time Of Timer —
fixed
— TimerGetElapsed - Remaining Time Of Timer —
fixed
— TimerGetRemaining
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1054
TimerStart(gv_transitionToNight, (gv_dAY_DURATION - 40.0), false, c_timeGame);
TimerStart(gv_mainTimer, gv_dAY_DURATION, false, c_timeGame);
TimerWindowSetTitle(gv_mainTimerWindow, TextReplaceWord(StringExternal("Param/Value/6B0A5E41"), StringExternal("Param/Value/C3A5EF7D"), IntToText(gv_day), c_stringReplaceAll, c_stringCase));
TimerWindowSetStyle(gv_mainTimerWindow, c_timerWindowStyleHorizontalTitleTime, false);
TimerWindowSetColor(gv_mainTimerWindow, c_timerWindowColorTitle, Color(0.00, 100.00, 0.00), 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1073
TimerStart(gv_transitionToDay, (gv_nIGHT_DURATION - 40.0), false, c_timeGame);
TimerStart(gv_mainTimer, gv_nIGHT_DURATION, false, c_timeGame);
TimerWindowSetTitle(gv_mainTimerWindow, TextReplaceWord(StringExternal("Param/Value/749F57BE"), StringExternal("Param/Value/7E7BF9AB"), IntToText(gv_night), c_stringReplaceAll, c_stringCase));
TimerWindowSetStyle(gv_mainTimerWindow, c_timerWindowStyleHorizontalTitleTime, false);
TimerWindowSetColor(gv_mainTimerWindow, c_timerWindowColorTitle, Color(100.00, 0.00, 0.00), 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:1783
}
else {
TimerWindowSetTitle(gv_nextTrainWindow, StringExternal("Param/Value/C34351EC"));
TimerStart(gv_nextTrainTimer, gv_trainWaveWait, false, c_timeAI);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1054
TimerStart(gv_transitionToNight, (gv_dAY_DURATION - 40.0), false, c_timeGame);
TimerStart(gv_mainTimer, gv_dAY_DURATION, false, c_timeGame);
TimerWindowSetTitle(gv_mainTimerWindow, TextReplaceWord(StringExternal("Param/Value/6B0A5E41"), StringExternal("Param/Value/C3A5EF7D"), IntToText(gv_day), c_stringReplaceAll, c_stringCase));
TimerWindowSetStyle(gv_mainTimerWindow, c_timerWindowStyleHorizontalTitleTime, false);
TimerWindowSetColor(gv_mainTimerWindow, c_timerWindowColorTitle, Color(0.00, 100.00, 0.00), 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1073
TimerStart(gv_transitionToDay, (gv_nIGHT_DURATION - 40.0), false, c_timeGame);
TimerStart(gv_mainTimer, gv_nIGHT_DURATION, false, c_timeGame);
TimerWindowSetTitle(gv_mainTimerWindow, TextReplaceWord(StringExternal("Param/Value/749F57BE"), StringExternal("Param/Value/7E7BF9AB"), IntToText(gv_night), c_stringReplaceAll, c_stringCase));
TimerWindowSetStyle(gv_mainTimerWindow, c_timerWindowStyleHorizontalTitleTime, false);
TimerWindowSetColor(gv_mainTimerWindow, c_timerWindowColorTitle, Color(100.00, 0.00, 0.00), 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:1783
}
else {
TimerWindowSetTitle(gv_nextTrainWindow, StringExternal("Param/Value/C34351EC"));
TimerStart(gv_nextTrainTimer, gv_trainWaveWait, false, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:1456
}
else {
TimerWindowSetTitle(gv_disruptionTimerWindow, StringExternal("Param/Value/6492D007"));
}
libVCUI_gf_SetTimerWindowDangerThreshold(0.0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pkorhal02.sc2map/MapScript.galaxy:1478
TriggerExecute(gt_HybridWaveController, true, false);
TimerStart(gv_disruptionTimer, gv_disruptionActiveDuration, false, c_timeAI);
TimerWindowSetTitle(gv_disruptionTimerWindow, StringExternal("Param/Value/EBCE1BCE"));
TimerWindowSetFormat(gv_disruptionTimerWindow, StringToText("<mintotal/>:<sec2/>"));
libVCUI_gf_SetTimerWindowDangerThreshold(300.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2map — MapScript.galaxy:1456
}
else {
TimerWindowSetTitle(gv_disruptionTimerWindow, StringExternal("Param/Value/6492D007"));
}
libVCUI_gf_SetTimerWindowDangerThreshold(0.0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pkorhal02.sc2map — MapScript.galaxy:1478
TriggerExecute(gt_HybridWaveController, true, false);
TimerStart(gv_disruptionTimer, gv_disruptionActiveDuration, false, c_timeAI);
TimerWindowSetTitle(gv_disruptionTimerWindow, StringExternal("Param/Value/EBCE1BCE"));
TimerWindowSetFormat(gv_disruptionTimerWindow, StringToText("<mintotal/>:<sec2/>"));
libVCUI_gf_SetTimerWindowDangerThreshold(300.0);