# 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.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:5170

        }

        if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer()) == true))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:5286

        }

        if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer()) == true))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:9867

        }

        if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer()) == true))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:9902

        }

        if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer()) == true))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10670

        }

        if (!((DialogControlIsEnabled(EventDialogControl(), lv_triggeringPlayer) == true))) {
            return false;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10713

        }

        if (!((DialogControlIsEnabled(EventDialogControl(), lv_triggeringPlayer) == true))) {
            return false;
        }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1422

        }

        if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button1, gv_pLAYER_01_USER) == false)) {
            if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer1) < 0.1)) {
                DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel1, PlayerGroupAll(), false);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1434

        }

        if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button2, gv_pLAYER_01_USER) == false)) {
            if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer2) < 0.1)) {
                DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel2, PlayerGroupAll(), false);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1446

        }

        if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button3, gv_pLAYER_01_USER) == false)) {
            if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer3) < 0.1)) {
                DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel3, PlayerGroupAll(), false);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1574

        }

        if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
            return false;
        }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1637

        }

        if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
            return false;
        }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:1422

        }

        if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button1, gv_pLAYER_01_USER) == false)) {
            if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer1) < 0.1)) {
                DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel1, PlayerGroupAll(), false);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:1434

        }

        if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button2, gv_pLAYER_01_USER) == false)) {
            if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer2) < 0.1)) {
                DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel2, PlayerGroupAll(), false);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:1446

        }

        if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button3, gv_pLAYER_01_USER) == false)) {
            if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer3) < 0.1)) {
                DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel3, PlayerGroupAll(), false);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:1574

        }

        if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
            return false;
        }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:1637

        }

        if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
            return false;
        }