# Set Leaderboard Item Progress Range
Grammar — Set board|Leaderboard item progress bar at column column and row row to range from minimum to maximum
Flags —Native
|Action
Adjusts the range of values for a progress bar within a leaderboard item. The minimum value corresponds to an empty progress bar, and the maximum value corresponds to a full progress bar. The default range is 0 to 100.
# Arguments
int
<preset::Board> — Boardint
— Columnint
— Rowfixed
— Minimumfixed
— Maximum
Returns — void
native void BoardItemSetProgressRange(
int inBoard,
int inCol,
int inRow,
fixed inMin,
fixed inMax,
);
# 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:1363
BoardItemSetTextColor(gv_merc_Contract_Price_Board, 1, 1, Color(0.00, 100.00, 100.00));
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);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1369
BoardItemSetTextColor(gv_merc_Contract_Price_Board, 1, 3, Color(75.29, 0.00, 0.00));
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)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1197
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
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));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1363
BoardItemSetTextColor(gv_merc_Contract_Price_Board, 1, 1, Color(0.00, 100.00, 100.00));
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);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1369
BoardItemSetTextColor(gv_merc_Contract_Price_Board, 1, 3, Color(75.29, 0.00, 0.00));
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)));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1197
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
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));