# Set Timer Window Progress Color

Grammar — Set window|Timer Window progress bar color to color for step step
FlagsNative | 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 ] — Window
  • color — Color
  • int — Step

Returns — void

native void TimerWindowSetProgressColor(
	int inWindow,
	color inColor,
	int inStep,
);

Category: Timer / Timer Windows

# Examples

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// 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

LibNCUI.galaxy

// 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)