# Set Leaderboard Item Progress Color
Grammar — Set board|Leaderboard item progress bar color at column column and row row to color for step step
Flags —Native
|Action
Sets the color for a progress bar within a leaderboard item. 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::Board ] — Boardint
— Columnint
— Rowcolor
— Colorint
— Step
Returns — void
native void BoardItemSetProgressColor(
int inBoard,
int inCol,
int inRow,
color inColor,
int inStep,
);
# Related
Category: Leaderboard / Progress Bars
- [F] —
void
— Show/Hide Leaderboard Item Progress Bar — ( BoardItemSetProgressShow ) - [F] —
void
— Set Leaderboard Item Progress Range — ( BoardItemSetProgressRange ) - [F] —
void
— Set Leaderboard Item Progress Value — ( BoardItemSetProgressValue ) - [F] —
void
— Set Leaderboard Item Progress Color — ( BoardItemSetProgressColor )
# Examples
# campaigns/liberty.sc2campaign
// L1364
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 2, Color(0.00, 100.00, 100.00), 1)
// L1370
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1)
// L1198
BoardItemSetProgressColor(gv_artifactBoard, 1, 2, Color(50.20, 50.20, 100.00), 1)
// L1364
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 2, Color(0.00, 100.00, 100.00), 1)
// L1370
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1)
// L1198
BoardItemSetProgressColor(gv_artifactBoard, 1, 2, Color(50.20, 50.20, 100.00), 1)