# Set Purchase Item Icon
Grammar — Set the icon of purchaseItem|Purchasable to iconPath|Icon
Flags —Native
|Action
Sets the icon for the specified purchase item.
# Arguments
int
<preset::PurchaseItem> — Purchase Itemstring
<filepath> — IconPath
Returns — void
native void PurchaseItemSetIconFilePath(
int inPurchaseItemId,
string inFilePath,
);
# Related
Category: Story / Tech Purchase Panel / Purchase Items
- Create Purchase Item —
int
<preset::PurchaseItem> — PurchaseItemCreate - Last Created Purchase Item —
int
<preset::PurchaseItem> — PurchaseItemLastCreated - Destroy Purchase Item —
void
— PurchaseItemDestroy - Destroy All Purchase Items —
void
— PurchaseItemDestroyAll - Set Purchase Item Name —
void
— PurchaseItemSetNameText - Set Purchase Item Tooltip —
void
— PurchaseItemSetTooltipText - Set Purchase Item Description —
void
— PurchaseItemSetDescriptionText - Set Purchase Item Cost —
void
— PurchaseItemSetCost - Set Purchase Item Slot —
void
— PurchaseItemSetSlot - Set Purchase Item Icon —
void
— PurchaseItemSetIconFilePath - Set Purchase Item Movie —
void
— PurchaseItemSetMovieFilePath - Set Purchase Item Players —
void
— PurchaseItemSetPlayerGroup - Set Purchase Item State —
void
— PurchaseItemSetState - Set Purchase Item Recently Purchased —
void
— PurchaseItemSetRecentlyPurchased
# Examples
campaigns/libertystory.sc2campaign — base.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));