SetItemEnabled

Method

Set the enabled state for an item in the shop GUI. This can be useful to prevent users from purchasing items until they have attained a certain XP or Level. All items in the shop are enabled by default.

Definition

void SetItemEnabled(string itemID, bool enabled, string disabledMessage = null)
void SetItemEnabled(string itemID, bool enabled, string disabledMessage = null)

Parameters

ParameterDescription
string itemID

The ID of the item

bool enabled

Enabled or disabled

string disabledMessage

The tooltip or explanation message to show to the user explaining why the item is disabled