# Set Purchase Group Icon

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

Sets the icon for the specified purchase group.

# Arguments

  • int<preset::PurchaseGroup> — Purchase Group
  • string<filepath> — IconPath

Returns — void

native void PurchaseGroupSetIconFilePath(
	int inPurchaseGroupId,
	string inFilePath,
);

Category: Story / Tech Purchase Panel / Purchase Groups

# Examples

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

                    lv_slot += 1;
                    libCamp_gv_tSX_TechCategoryCount[lv_categoryIndex] += 1;
                    PurchaseGroupSetIconFilePath(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], "Assets\\Textures\\blank.dds");
                    PurchaseGroupSetUnitLink(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], libCamp_gv_tS_TechGroupUnitType[lv_groupIndex]);
                    if ((lv_purchasedCounts[lv_groupIndex] == 2)) {

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

                    if ((lv_purchasedCounts[lv_groupIndex] == 2)) {
                        PurchaseGroupSetUnitLink(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], "InvisiblePylon");
                        PurchaseGroupSetIconFilePath(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], lv_purchasedCounts_Images[lv_groupIndex]);
                    }

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

                    if (((lv_lowMoneyCounts[lv_groupIndex] == 2) || ((lv_lowMoneyCounts[lv_groupIndex] == 1) && (lv_purchasedCounts[lv_groupIndex] == 1)))) {
                        PurchaseGroupSetUnitLink(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], "InvisiblePylon");
                        PurchaseGroupSetIconFilePath(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], lv_lowMoneyCounts_Images[lv_groupIndex]);
                    }