UISimpleMenu:SetEntryEnabled
From Nomad DB
Enables or disables an Entry from a UISimpleMenu. This works for all controls, except for the Search control. You can check whether an Entry is enabled or not by calling UISimpleMenu:IsEntryEnabled.
If disabled, the Control will not be selectable anymore. The Up/Down controls will skip the entry.
Syntax
menu:SetEntryEnabled(index, enabled)
- index (number) Entry Index
- enabled (boolean) Enabled State