# Dialog Item Is Enabled

GrammardialogItem is enabled for player
FlagsNative | Function

Returns true if the dialog item is enabled for the specified player.

# Arguments

  • int [ control ] — Dialog Item
  • int — Player

Returns — bool

native bool DialogControlIsEnabled(
	int control,
	int player,
);

Category: Dialog / Dialog Items

# Examples

# mods/heroesdata.stormmod

SupportLib.galaxy

// L5170
DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer())
// L5286
DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer())

# mods/heroesdata.stormmod

UILib.galaxy

// 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

MapScript.galaxy

// 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)