# Dialog Containing Dialog Item

Grammar — Dialog containing dialogItem
FlagsNative | Function

Returns the dialog containing the specified dialog item.

# Arguments

  • int<control> — Dialog Item

Returns — int<dialog>

native int DialogControlGetDialog(int control);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6215

        }

        if (!((DialogControlGetDialog(EventDialogControl()) == libVCMI_gv_pM_GameCheat_Dialog))) {
            return false;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6494

        }

        if (!((DialogControlGetDialog(EventDialogControl()) == libVCMI_gv_pM_MissionCheat_Dialog))) {
            return false;
        }

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:1953

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

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:2020

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

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5154

        }

        if (!((DialogControlGetDialog(EventDialogControl()) == libNCMI_gv_NM_GameCheat_Dialog))) {
            return false;
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5433

        }

        if (!((DialogControlGetDialog(EventDialogControl()) == libNCMI_gv_NM_MissionCheat_Dialog))) {
            return false;
        }