# Used Dialog Item

Grammar — Used dialog item
FlagsNative | Function

Returns the dialog item that was used.

Returns — int<control>

native int EventDialogControl();

# Supported triggers

Category: Dialog / Dialog Items

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7916

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_controlTipStartButton))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7998

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_scoreScreenCloseButton))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:14461

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_tBDWindowButtonClose))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17878

    }

    if ((EventDialogControl() == gv_debugSceneExitButton)) {
        TriggerExecute(gt_DebugSceneExit, true, false);
        return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:17887

    lv_index = 1;
    for ( ; ( (auto507E261E_ai >= 0 && lv_index <= auto507E261E_ae) || (auto507E261E_ai <= 0 && lv_index >= auto507E261E_ae) ) ; lv_index += auto507E261E_ai ) {
        if ((EventDialogControl() == gv_debugSceneButtons[lv_index])) {
            lv_roomSaved = gv_currentRoom;
            DialogSetVisible(gv_debugSceneDialog, PlayerGroupAll(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18003


    lv_room = ge_RoomID_RoomNone;
    auto8421548E_val = EventDialogControl();
    if (auto8421548E_val == gv_roomCheatButtonMarSara) {
        lv_room = ge_RoomID_RoomMarSara;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18236

    }

    auto8F455333_val = EventDialogControl();
    if (auto8F455333_val == gv_roomCameraButtonMarSara) {
        DialogSetVisible(gv_roomCameraDialog, PlayerGroupAll(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18366

    lv_mapIndex = libCamp_gv_TSC_MAP_FIRST;
    for ( ; ( (auto948A4385_ai >= 0 && lv_mapIndex <= auto948A4385_ae) || (auto948A4385_ai <= 0 && lv_mapIndex >= auto948A4385_ae) ) ; lv_mapIndex += auto948A4385_ai ) {
        if ((gv_debug_BriefingMissioniButton[lv_mapIndex] == EventDialogControl())) {
            lv_map = libCamp_gv_tS_MapID[lv_mapIndex];
            break;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18409

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_debug_BriefingButtonClose))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18494

    lv_mapIndex = libCamp_gv_TSC_MAP_FIRST;
    for ( ; ( (auto092D8583_ai >= 0 && lv_mapIndex <= auto092D8583_ae) || (auto092D8583_ai <= 0 && lv_mapIndex >= auto092D8583_ae) ) ; lv_mapIndex += auto092D8583_ai ) {
        if ((gv_debug_TVNewsMissioniButton[lv_mapIndex] == EventDialogControl())) {
            lv_map = libCamp_gv_tS_MapID[lv_mapIndex];
            break;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:18528

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_debug_TVNewsButtonClose))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25412

    }

    auto38810FB5_val = EventDialogControl();
    if (auto38810FB5_val == gv_zPlanetPanel_ButtonClose) {
        TriggerStop(gt_ZPlanetPanelSkippable);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1380

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton09_Quit))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1691

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton01_UserInterface))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1979

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton02_Camera))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:2661

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton03_Movement))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:4067

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton04_Combat))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:5659

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton05_Construction))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:6444

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton06_Collection))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:7894

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton07_Production))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:9298

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton08_Supply))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:7916

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_controlTipStartButton))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:7998

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_scoreScreenCloseButton))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:14461

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_tBDWindowButtonClose))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:17878

    }

    if ((EventDialogControl() == gv_debugSceneExitButton)) {
        TriggerExecute(gt_DebugSceneExit, true, false);
        return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:17887

    lv_index = 1;
    for ( ; ( (auto507E261E_ai >= 0 && lv_index <= auto507E261E_ae) || (auto507E261E_ai <= 0 && lv_index >= auto507E261E_ae) ) ; lv_index += auto507E261E_ai ) {
        if ((EventDialogControl() == gv_debugSceneButtons[lv_index])) {
            lv_roomSaved = gv_currentRoom;
            DialogSetVisible(gv_debugSceneDialog, PlayerGroupAll(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18003


    lv_room = ge_RoomID_RoomNone;
    auto8421548E_val = EventDialogControl();
    if (auto8421548E_val == gv_roomCheatButtonMarSara) {
        lv_room = ge_RoomID_RoomMarSara;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18236

    }

    auto8F455333_val = EventDialogControl();
    if (auto8F455333_val == gv_roomCameraButtonMarSara) {
        DialogSetVisible(gv_roomCameraDialog, PlayerGroupAll(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18366

    lv_mapIndex = libCamp_gv_TSC_MAP_FIRST;
    for ( ; ( (auto948A4385_ai >= 0 && lv_mapIndex <= auto948A4385_ae) || (auto948A4385_ai <= 0 && lv_mapIndex >= auto948A4385_ae) ) ; lv_mapIndex += auto948A4385_ai ) {
        if ((gv_debug_BriefingMissioniButton[lv_mapIndex] == EventDialogControl())) {
            lv_map = libCamp_gv_tS_MapID[lv_mapIndex];
            break;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18409

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_debug_BriefingButtonClose))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18494

    lv_mapIndex = libCamp_gv_TSC_MAP_FIRST;
    for ( ; ( (auto092D8583_ai >= 0 && lv_mapIndex <= auto092D8583_ae) || (auto092D8583_ai <= 0 && lv_mapIndex >= auto092D8583_ae) ) ; lv_mapIndex += auto092D8583_ai ) {
        if ((gv_debug_TVNewsMissioniButton[lv_mapIndex] == EventDialogControl())) {
            lv_map = libCamp_gv_tS_MapID[lv_mapIndex];
            break;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:18528

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_debug_TVNewsButtonClose))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25412

    }

    auto38810FB5_val = EventDialogControl();
    if (auto38810FB5_val == gv_zPlanetPanel_ButtonClose) {
        TriggerStop(gt_ZPlanetPanelSkippable);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1380

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton09_Quit))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1691

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton01_UserInterface))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1979

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton02_Camera))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:2661

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton03_Movement))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:4067

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton04_Combat))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:5659

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton05_Construction))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:6444

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton06_Collection))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:7894

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton07_Production))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:9298

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_mainButton08_Supply))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12059

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libCamp_gv__MsgDlgButton))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12093

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libCamp_gv_zS_CampaignTrialEndQuitButton))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12123

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libCamp_gv_zS_CampaignTrialEndUpgradeButton))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12572

    lv_index = 1;
    for ( ; ( (auto94FF7B16_ai >= 0 && lv_index <= auto94FF7B16_ae) || (auto94FF7B16_ai < 0 && lv_index >= auto94FF7B16_ae) ) ; lv_index += auto94FF7B16_ai ) {
        if ((libCamp_gv_tS_RoomChangeButtons[lv_index] == EventDialogControl()) && (libCamp_gv_tS_RoomChangeButtonCallbackClick[lv_index] != null)) {
            libCamp_gv_tS_RoomChangeButtonCurrent = lv_index;
            TriggerExecute(libCamp_gv_tS_RoomChangeButtonCallbackClick[lv_index], true, false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13108

    while (auto69BA44B8_i <= libCamp_gv_TSC_MISSION_LAST) {
        lv_indexMission = libCamp_gv_tS_MapID[auto69BA44B8_i];
        if ((EventDialogControl() == libCamp_gv_tS_DebugProgressMissionButtons[(lv_indexMission)])) {
            lv_clickedMission = lv_indexMission;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13139

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libCamp_gv_tS_DebugProgressMissionButtonUnlockSecret))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13174

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libCamp_gv_tS_DebugProgressButtonReset))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13227

    }

    if ((EventDialogControl() == libCamp_gv_tS_DebugProgressMissionLaunchCancel)) {
        TriggerEnable(TriggerGetCurrent(), false);
        DialogDestroy(libCamp_gv_tS_DebugProgressMissionLaunchDialog);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13239

        }

        if ((libCamp_gv_tS_DebugProgressMissionLaunchButtons[lv_index] == EventDialogControl())) {
            libCamp_gf_TS_SetLastSuccessfulMission(libCamp_gv_tS_DebugProgressLastMission);
            libCamp_gv_tS_DebugProgressCheating = true;

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13270

        }

        if (!((EventDialogControl() == libCamp_gv_tS_DebugProgressButtonLaunchMission))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:6480

        }

        if (!((EventDialogControl() == gv_buttonSecurityComputer_ReleaseGas))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:6613

        }

        if (!((EventDialogControl() == gv_buttonSecurityComputer_ReleaseZerg))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:2901

        }

        if (!((EventDialogControl() == gv_spawnLocustButton))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:6480

        }

        if (!((EventDialogControl() == gv_buttonSecurityComputer_ReleaseGas))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:6613

        }

        if (!((EventDialogControl() == gv_buttonSecurityComputer_ReleaseZerg))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus02.sc2mapMapScript.galaxy:2901

        }

        if (!((EventDialogControl() == gv_spawnLocustButton))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17651

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libSwaC_gv_zS_MissionHelpButton))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:17771

        }

        if (!((EventDialogControl() == libSwaC_gv_zS_ArmyButton))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18009

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == libSwaC_gv_zS_BB_BorderImage))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18229

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[2])))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18229

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[2])))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18229

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[2])))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18229

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[2])))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18229

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[2])))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18229

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[2]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[2])))) {
            return false;
        }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18239

    }

    if (((EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImage[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogBorderImageNoEnergy[1]) || (EventDialogControl() == libSwaC_gv_zS_SwarmHeroUIDialogButton[1]))) {
        lv_index = 1;
    }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6149

        }

        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UIArchivesMissionPlayButton))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6193

        }

        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UIArchivesScenePlayButton))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6223

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == lib281DEC45_gv_zSS_UIArchivesBackButton) || (EventDialogControl() == lib281DEC45_gv_zSS_UIArchivesQuitButton)))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6223

    // Conditions
    if (testConds) {
        if (!(((EventDialogControl() == lib281DEC45_gv_zSS_UIArchivesBackButton) || (EventDialogControl() == lib281DEC45_gv_zSS_UIArchivesQuitButton)))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6390

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UITravelQuitButton))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6417

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UITravelBackButton))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6472

        }

        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UITravelLaunchButton))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6508

    IntLoopBegin(1, 4);
    for ( ; !IntLoopDone() ; IntLoopStep() ) {
        if ((lib281DEC45_gv_zSS_UITravelPlanetButton[IntLoopCurrent()] != c_invalidDialogControlId) && (lib281DEC45_gv_zSS_UITravelPlanetButton[IntLoopCurrent()] == EventDialogControl())) {
            if ((lib281DEC45_gv_zSS_UITravelSelectedPlanet != IntLoopCurrent())) {
                lib281DEC45_gf_ZSS_UITravelLocationSelect(IntLoopCurrent());

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6546

        }

        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UITravelContactPlayButton))) {
            return false;
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:6616

        }

        if (!((EventDialogControl() == lib281DEC45_gv_zSS_UITravelContactStopButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2705

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[1]))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2732

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[2]))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2759

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[3]))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2786

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[4]))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2813

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_ExitButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2841

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_ContinueButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:1025

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_toggleButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1449

    }

    if ((EventDialogControl() == gv_movingPlatform.lv_townBellButton)) {
        lv_probeGroup = UnitGroup("Probe", gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(gv_platformNexus), 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
        if ((UnitGroupCount(lv_probeGroup, c_unitCountAlive) == 0)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1468

    }
    else {
        if ((EventDialogControl() == gv_movingPlatform.lv_leftButton)) {
            lv_nextLocation = gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_linkLeft;
            lv_direction = 180.0;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1473

        }
        else {
            if ((EventDialogControl() == gv_movingPlatform.lv_downButton)) {
                lv_nextLocation = gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_linkDown;
                lv_direction = 270.0;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1478

            }
            else {
                if ((EventDialogControl() == gv_movingPlatform.lv_upButton)) {
                    lv_nextLocation = gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_linkUp;
                    lv_direction = 90.0;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1483

                }
                else {
                    if ((EventDialogControl() == gv_movingPlatform.lv_rightButton)) {
                        lv_nextLocation = gv_platformLocations[gv_movingPlatform.lv_currentLocation].lv_linkRight;
                        lv_direction = 0.0;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1758

        }

        if (!((EventDialogControl() == gv_movingPlatform.lv_townBellButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1801

        }

        if (!((EventDialogControl() == gv_movingPlatform.lv_townBellButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1946

        }

        if (!((EventDialogControl() != gv_movingPlatform.lv_townBellButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1956

    }

    if ((EventDialogControl() == gv_iDKFA_Order[gv_iDKFASequence])) {
        gv_iDKFASequence += 1;
        if ((gv_iDKFASequence > 8)) {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:2043

        }

        if (!((EventDialogControl() == gv_iDDQDButton))) {
            return false;
        }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:1570

        }

        if (!((EventDialogControl() == gv_overloadTempleButton))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:2705

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[1]))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:2732

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[2]))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:2759

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[3]))) {
            return false;
        }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2mapMapScript.galaxy:2786

    // Conditions
    if (testConds) {
        if (!((EventDialogControl() == gv_victoryUI_StageSelectButtons[4]))) {
            return false;
        }