# Set Mission Archive Button Image

Grammar — Set the button image of battleReportId to image
FlagsNative | Action

Sets the button image for the specified mission archive.

# Arguments

  • int<preset::MissionArchive> — Mission Archive Id
  • string<filepath> — Image

Returns — void

native void BattleReportSetButtonImage(
	int inBattleReportId,
	string inImage,
);

Category: Story / Mission Archives Panel

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4171

    BattleReportCreate(PlayerGroupAll(), libCamp_gf_MissionNameInUpperCase(lp_mission), c_battleReportTypeMission, lp_state);
    libCamp_gv_tS_BattleReportMissions[lv_indexMission] = BattleReportLastCreated();
    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportIcon[(lp_mission)]);
    BattleReportSetMissionText(BattleReportLastCreated(), libCamp_gf_MissionNameInUpperCase(lp_mission));
    BattleReportSetMissionImage(BattleReportLastCreated(), libCamp_gv_tS_MissionBattleReportImage[(lp_mission)]);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4262

    libCamp_gv_tS_BattleReportScenes[lv_indexScene] = BattleReportLastCreated();
    BattleReportSetSceneImage(BattleReportLastCreated(), libCamp_gv_tS_SceneImages[lv_indexScene]);
    BattleReportSetButtonImage(BattleReportLastCreated(), libCamp_gv_tS_SceneIcon[lv_indexScene]);
    BattleReportSetSceneText(BattleReportLastCreated(), libCamp_gv_tS_SceneNames[lv_indexScene]);
    BattleReportSetPriority(BattleReportLastCreated(), lp_priority);