# Set Leaderboard Item Icon
Grammar — Set board|Leaderboard item icon at column column and row row to icon, placing it on the side|Left/Right side of the text
Flags —Native
|Action
Sets an icon for a leaderboard item.
# Arguments
int
<preset::Board> — Boardint
— Columnint
— Rowstring
<filepath> — Iconbool
<preset::BoardItemSide> — Side
Returns — void
native void BoardItemSetIcon(
int inBoard,
int inCol,
int inRow,
string inIcon,
bool inLeft,
);
# Related
Category: Leaderboard / Leaderboard Items
- Set Leaderboard Item Text —
void
— BoardItemSetText - Set Leaderboard Item Text Color —
void
— BoardItemSetTextColor - Set Leaderboard Item Sort Order —
void
— BoardItemSetSortValue - Set Leaderboard Item Icon —
void
— BoardItemSetIcon - Set Leaderboard Item Background Color —
void
— BoardItemSetBackgroundColor - Set Leaderboard Item Font Size —
void
— BoardItemSetFontSize - Set Leaderboard Item Alignment —
void
— BoardItemSetAlignment
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1373
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));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 4, "Assets\\Textures\\icon-mineral-zerg.dds", false);
BoardMinimizeShow(gv_merc_Contract_Price_Board, PlayerGroupAll(), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1374
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 4, "Assets\\Textures\\icon-mineral-zerg.dds", false);
BoardMinimizeShow(gv_merc_Contract_Price_Board, PlayerGroupAll(), false);
SoundPlay(SoundLink("TUI_StarmapMenuPopup", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1341
BoardItemSetText(gv_mineralBoard, 2, 1, IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetText(gv_mineralBoard, 3, 1, (StringExternal("Param/Value/1ED6C969") + IntToText(gv_objectiveMineralsQuota)));
BoardItemSetIcon(gv_mineralBoard, 3, 1, "Assets\\Textures\\icon-highyieldmineral-terran.dds", false);
BoardMinimizeShow(gv_mineralBoard, PlayerGroupAll(), false);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1373
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));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 4, "Assets\\Textures\\icon-mineral-zerg.dds", false);
BoardMinimizeShow(gv_merc_Contract_Price_Board, PlayerGroupAll(), false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1374
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 4, "Assets\\Textures\\icon-mineral-zerg.dds", false);
BoardMinimizeShow(gv_merc_Contract_Price_Board, PlayerGroupAll(), false);
SoundPlay(SoundLink("TUI_StarmapMenuPopup", -1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2map — MapScript.galaxy:1341
BoardItemSetText(gv_mineralBoard, 2, 1, IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetText(gv_mineralBoard, 3, 1, (StringExternal("Param/Value/1ED6C969") + IntToText(gv_objectiveMineralsQuota)));
BoardItemSetIcon(gv_mineralBoard, 3, 1, "Assets\\Textures\\icon-highyieldmineral-terran.dds", false);
BoardMinimizeShow(gv_mineralBoard, PlayerGroupAll(), false);
return true;