# 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
- [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/voidstory.sc2campaign
// L5248
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 100.00, 0.00), 1)
// L5251
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(42.75, 68.24, 16.86), 1)
// L5254
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 50.20, 0.00), 1)
# mods/missionpacks/novacampaign.sc2mod
// L3699
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 100.00, 0.00), 1)
// L3702
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(42.75, 68.24, 16.86), 1)
// L3705
TimerWindowSetProgressColor(TimerWindowLastCreated(), Color(100.00, 50.20, 0.00), 1)