# Set Timer Window Progress Color
Grammar — Set window|Timer Window progress bar color to color for step step
Flags —Native
|Action
Sets the color for a progress bar within a timer window. If colors are set for multiple step values, the color will vary as the progress value increases, dividing each step equally across the full progress range.
# Arguments
int
<preset::TimerWindow> — Windowcolor
— Colorint
— Step
Returns — void
native void TimerWindowSetProgressColor(
int inWindow,
color inColor,
int inStep,
);
# 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/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:5248
auto2D681054_val = PlayerRace(1);
if (auto2D681054_val == "Prot") {
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 100.00, 0.00), 1);
}
else if (auto2D681054_val == "Terr") {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:5251
}
else if (auto2D681054_val == "Terr") {
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(42.75, 68.24, 16.86), 1);
}
else if (auto2D681054_val == "Zerg") {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:5254
}
else if (auto2D681054_val == "Zerg") {
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 50.20, 0.00), 1);
}
else {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:3699
auto2D681054_val = PlayerRace(1);
if (auto2D681054_val == "Prot") {
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 100.00, 0.00), 1);
}
else if (auto2D681054_val == "Terr") {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:3702
}
else if (auto2D681054_val == "Terr") {
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(42.75, 68.24, 16.86), 1);
}
else if (auto2D681054_val == "Zerg") {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:3705
}
else if (auto2D681054_val == "Zerg") {
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 50.20, 0.00), 1);
}
else {