# Set Purchase Group State

Grammar — Set the state of purchaseGroup to state
FlagsNative | Action

Sets the visibility state for the specified purchase group.

# Arguments

Returns — void

native void PurchaseGroupSetState(
	int inPurchaseGroupId,
	int inState,
);

Category: Story / Tech Purchase Panel / Purchase Groups

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L7683
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], c_purchaseCategoryStateEnabled)
// L7686
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], c_purchaseGroupStateNew)
// L7692
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupIndex], c_purchaseCategoryStateHidden)
// L7804
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupID], c_purchaseGroupStateEnabled)
// L12632
PurchaseGroupSetState(libCamp_gv_tS_TechGroup_UI[lv_groupID], c_purchaseGroupStateEnabled)