# Dialog Item Is Enabled
Grammar — dialogItem is enabled for player
Flags —Native
|Function
Returns true if the dialog item is enabled for the specified player.
# Arguments
int
[ control ] — Dialog Itemint
— Player
Returns — bool
native bool DialogControlIsEnabled(
int control,
int player,
);
# Related
Category: Dialog / Dialog Items
- [F] —
int
[ control ] — Create Dialog Item — ( DialogControlCreate ) - [F] —
int
[ control ] — Create Dialog Item In Panel — ( DialogControlCreateInPanel ) - [F] —
int
[ control ] — Create Dialog Item From Template — ( DialogControlCreateFromTemplate ) - [F] —
int
[ control ] — Create Dialog Item In Panel From Template — ( DialogControlCreateInPanelFromTemplate ) - [F] —
int
[ control ] — Hookup Dialog Item — ( DialogControlHookup ) - [F] —
int
[ control ] — Hookup Standard Dialog Item — ( DialogControlHookupStandard ) - [F] —
int
[ control ] — Hookup Unit Status Dialog Item — ( DialogControlHookupUnitStatus ) - [F] —
void
— Show/Hide Dialog Item — ( DialogControlSetVisible ) - [F] —
void
— Enable/Disable Dialog Item — ( DialogControlSetEnabled ) - [F] —
void
— Set Dialog Item Text — ( libNtve_gf_SetDialogItemText ) - [F] —
void
— Set Dialog Item Observed Type — ( DialogControlSetObservedType ) - [F] —
int
[ control ] — Last Created Dialog Item — ( DialogControlLastCreated ) - [F] —
bool
— Dialog Item Is Visible — ( DialogControlIsVisible ) - [F] —
bool
— Dialog Item Is Enabled — ( DialogControlIsEnabled ) - [F] —
text
— Dialog Item Text — ( libNtve_gf_DialogItemText ) - [F] —
void
— Dialog Item Is Used — ( TriggerAddEventDialogControl ) - [F] —
int
[ control ] — Used Dialog Item — ( EventDialogControl ) - [F] —
int
[ preset::ControlEventType ] — Dialog Item Event Type — ( EventDialogControlEventType ) - [F] —
int
[ preset::MouseButton ] — Dialog Item Mouse Button — ( EventDialogControlMouseButton )
# Examples
# mods/heroesdata.stormmod
// L5170
DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer())
// L5286
DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer())
# mods/heroesdata.stormmod
// L9867
DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer())
// L9902
DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer())
// L10670
DialogControlIsEnabled(EventDialogControl(), lv_triggeringPlayer)
// L10713
DialogControlIsEnabled(EventDialogControl(), lv_triggeringPlayer)
# mods/novastoryassets.sc2mod
// L1369
DialogControlIsEnabled(gv_gorgonDialog.lv_button1, gv_pLAYER_01_USER)
// L1381
DialogControlIsEnabled(gv_gorgonDialog.lv_button2, gv_pLAYER_01_USER)
// L1393
DialogControlIsEnabled(gv_gorgonDialog.lv_button3, gv_pLAYER_01_USER)
// L1521
DialogControlIsEnabled(EventDialogControl(), 1)
// L1585
DialogControlIsEnabled(EventDialogControl(), 1)
// L1369
DialogControlIsEnabled(gv_gorgonDialog.lv_button1, gv_pLAYER_01_USER)
// L1381
DialogControlIsEnabled(gv_gorgonDialog.lv_button2, gv_pLAYER_01_USER)
// L1393
DialogControlIsEnabled(gv_gorgonDialog.lv_button3, gv_pLAYER_01_USER)
// L1521
DialogControlIsEnabled(EventDialogControl(), 1)
// L1585
DialogControlIsEnabled(EventDialogControl(), 1)