# 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
- Show/Hide Leaderboard Item Progress Bar —
void
— BoardItemSetProgressShow - Set Leaderboard Item Progress Range —
void
— BoardItemSetProgressRange - Set Leaderboard Item Progress Value —
void
— BoardItemSetProgressValue - Set Leaderboard Item Progress Color —
void
— BoardItemSetProgressColor
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1364
BoardItemSetFontSize(gv_merc_Contract_Price_Board, 1, 1, 18);
BoardItemSetProgressRange(gv_merc_Contract_Price_Board, 1, 2, 0.0, IntToFixed(gv_mERC_CONTRACT_PRICE));
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 2, Color(0.00, 100.00, 100.00), 1);
BoardItemSetProgressShow(gv_merc_Contract_Price_Board, 1, 4, true);
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 3, (StringExternal("Param/Value/A79B6B3E") + IntToText(gv_oRLANS_MINERAL_COUNT)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1370
BoardItemSetFontSize(gv_merc_Contract_Price_Board, 1, 3, 18);
BoardItemSetProgressRange(gv_merc_Contract_Price_Board, 1, 4, 0.0, IntToFixed(gv_mERC_CONTRACT_PRICE));
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1);
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1198
BoardItemSetProgressShow(gv_artifactBoard, 1, 2, true);
BoardItemSetProgressRange(gv_artifactBoard, 1, 2, 0.0, 1.0);
BoardItemSetProgressColor(gv_artifactBoard, 1, 2, Color(50.20, 50.20, 100.00), 1);
BoardItemSetProgressValue(gv_artifactBoard, 1, 2, (gv_artifactChargeCurrent / gv_artifactChargeMax));
BoardItemSetText(gv_artifactBoard, 1, 1, (StringExternal("Param/Value/DE6AFFF6") + FixedToText(gf_ArtifactChargePercent(), 1) + StringExternal("Param/Value/F2914021")));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1364
BoardItemSetFontSize(gv_merc_Contract_Price_Board, 1, 1, 18);
BoardItemSetProgressRange(gv_merc_Contract_Price_Board, 1, 2, 0.0, IntToFixed(gv_mERC_CONTRACT_PRICE));
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 2, Color(0.00, 100.00, 100.00), 1);
BoardItemSetProgressShow(gv_merc_Contract_Price_Board, 1, 4, true);
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 3, (StringExternal("Param/Value/A79B6B3E") + IntToText(gv_oRLANS_MINERAL_COUNT)));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1370
BoardItemSetFontSize(gv_merc_Contract_Price_Board, 1, 3, 18);
BoardItemSetProgressRange(gv_merc_Contract_Price_Board, 1, 4, 0.0, IntToFixed(gv_mERC_CONTRACT_PRICE));
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1);
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1198
BoardItemSetProgressShow(gv_artifactBoard, 1, 2, true);
BoardItemSetProgressRange(gv_artifactBoard, 1, 2, 0.0, 1.0);
BoardItemSetProgressColor(gv_artifactBoard, 1, 2, Color(50.20, 50.20, 100.00), 1);
BoardItemSetProgressValue(gv_artifactBoard, 1, 2, (gv_artifactChargeCurrent / gv_artifactChargeMax));
BoardItemSetText(gv_artifactBoard, 1, 1, (StringExternal("Param/Value/DE6AFFF6") + FixedToText(gf_ArtifactChargePercent(), 1) + StringExternal("Param/Value/F2914021")));