# Set Purchase Group Slot
Grammar — Set the slot of purchaseGroup to slot
Flags —Native
|Action
Sets the slot for the specified purchase group.
# Arguments
int
<preset::PurchaseGroup> — Purchase Groupint
— Slot
Returns — void
native void PurchaseGroupSetSlot(
int inPurchaseGroupId,
int inSlot,
);
# Related
Category: Story / Tech Purchase Panel / Purchase Groups
- Create Purchase Group —
int
<preset::PurchaseGroup> — PurchaseGroupCreate - Last Created Purchase Group —
int
<preset::PurchaseGroup> — PurchaseGroupLastCreated - Destroy Purchase Group —
void
— PurchaseGroupDestroy - Destroy All Purchase Groups —
void
— PurchaseGroupDestroyAll - Set Purchase Group Name —
void
— PurchaseGroupSetNameText - Set Purchase Group Tooltip —
void
— PurchaseGroupSetTooltipText - Set Purchase Group Slot —
void
— PurchaseGroupSetSlot - Set Purchase Group Unit —
void
— PurchaseGroupSetUnitLink - Set Purchase Group Icon —
void
— PurchaseGroupSetIconFilePath - Set Purchase Group Players —
void
— PurchaseGroupSetPlayerGroup - Set Purchase Group State —
void
— PurchaseGroupSetState
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:7685
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], c_purchaseCategoryStateEnabled);
lv_slot += 1;
PurchaseGroupSetSlot(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], lv_slot);
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], c_purchaseGroupStateNew);
libCamp_gv_tSX_TechGroup_UI_New[lv_groupIndex] = true;