# 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
FlagsNative | Action

Sets an icon for a leaderboard item.

# Arguments

  • int<preset::Board> — Board
  • int — Column
  • int — Row
  • string<filepath> — Icon
  • bool<preset::BoardItemSide> — Side

Returns — void

native void BoardItemSetIcon(
	int inBoard,
	int inCol,
	int inRow,
	string inIcon,
	bool inLeft,
);

Category: Leaderboard / Leaderboard Items

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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;