# 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.sc2campaign

CampaignLib.galaxy

// L7640
PurchaseItemSetIconFilePath(PurchaseItemLastCreated(), libCamp_gf_StoryTechIcon(lv_indexTech))