# Set Purchase Item Icon

Grammar — Set the icon of purchaseItem|Purchasable to iconPath|Icon
FlagsNative | Action

Sets the icon for the specified purchase item.

# Arguments

  • int<preset::PurchaseItem> — Purchase Item
  • string<filepath> — IconPath

Returns — void

native void PurchaseItemSetIconFilePath(
	int inPurchaseItemId,
	string inFilePath,
);

Category: Story / Tech Purchase Panel / Purchase Items

# Examples

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

            libCamp_gv_tS_Tech_UI[lv_techIndex] = PurchaseItemLastCreated();
            PurchaseItemSetCost(PurchaseItemLastCreated(), libCamp_gf_StoryTechCost(lv_indexTech));
            PurchaseItemSetIconFilePath(PurchaseItemLastCreated(), libCamp_gf_StoryTechIcon(lv_indexTech));
            PurchaseItemSetMovieFilePath(PurchaseItemLastCreated(), libCamp_gf_StoryTechMovie(lv_indexTech));
            PurchaseItemSetNameText(PurchaseItemLastCreated(), libCamp_gf_StoryTechName(lv_indexTech));