UISimpleMenu:SetEntryEnabled

From Nomad DB
Revision as of 10:26, 17 April 2020 by Jan (talk | contribs) (Created page with "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 enab...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Related Pages