# Create Dialog Item In Panel

Grammar — Create a type within the Dialog Item dialogItemPanel
FlagsNative | Action

Creates a dialog item of the specified type within the specified dialog item panel. Flash dialog items will only work on Blizzard maps.

# Arguments

  • int<control> — Dialog Item Panel
  • int<preset::ControlType> — Type

Returns — int<control>

native int DialogControlCreateInPanel(int panel, int type);

Category: Dialog / Dialog Items

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:722

    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);
    lv_backgroundPanel = DialogControlLastCreated();
    DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\static1.dds", PlayerGroupAll());
    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:726

    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);
    libNtve_gf_SetDialogItemAcceptMouse(DialogControlLastCreated(), true, PlayerGroupAll());
    DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeLabel);
    lv_label = DialogControlLastCreated();
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/69571204"), PlayerGroupAll());

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:722

    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);
    lv_backgroundPanel = DialogControlLastCreated();
    DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeImage);
    libNtve_gf_SetDialogItemImage(DialogControlLastCreated(), "Assets\\Textures\\static1.dds", PlayerGroupAll());
    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:726

    DialogControlSetFullDialog(DialogControlLastCreated(), PlayerGroupAll(), true);
    libNtve_gf_SetDialogItemAcceptMouse(DialogControlLastCreated(), true, PlayerGroupAll());
    DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeLabel);
    lv_label = DialogControlLastCreated();
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/69571204"), PlayerGroupAll());

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

    for ( ; ( (auto4960B2E2_ai >= 0 && lv_cheatIndex <= auto4960B2E2_ae) || (auto4960B2E2_ai < 0 && lv_cheatIndex >= auto4960B2E2_ae) ) ; lv_cheatIndex += auto4960B2E2_ai ) {
        lv_itemsInPanel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)] += 1;
        DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeButton);
        libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_buttonDialog = DialogControlLastCreated();
        libNtve_gf_SetDialogItemText(DialogControlLastCreated(), libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_titleText, PlayerGroupAll());

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

        DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), lv_RelativeAnchor2, libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], lv_RelativeAnchor, 0, (( (lv_itemsInPanel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)] - 1) * lv_buttonHeight ) + 2));
        if ((libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_uIType == libVCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
            DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox);
            libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), lv_editBoxTextStyle, PlayerGroupAll());
            libNtve_gf_SetDialogItemTintColor(DialogControlLastCreated(), Color(149*100/255,150*100/255,151*100/255), PlayerGroupAll());

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:10132

    DialogControlCreateInPanelFromTemplate(libVCUI_gv_pU_GPHolder, c_triggerControlTypePanel, "LotV_SoAMissionUIPanel/SoAPanelTemplate");
    libVCUI_gv_pU_GPPanel = DialogControlLastCreated();
    DialogControlCreateInPanel(DialogControlLastCreated(), c_triggerControlTypeTooltip);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 1, 1);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, -100, -100);

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4440

    libUIUI_gf_UIPartyFrameShowHideLevelInfoPanelforPlayerGroup(1, false, PlayerGroupAll());
    DialogControlSetVisible(libPVEU_gv_pvEUITopBar.lv_teamLevelLabelPanel, PlayerGroupAll(), false);
    DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel);
    libPEB1_gv_baseHealthBar.lv_baseHealthLabel = DialogControlLastCreated();
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 300, 50);

mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmodbase.stormdata/LibPEB1.galaxy:4446

    DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, libPVEU_gv_pvEUITopBar.lv_mainPanel, c_anchorTop, 0, 5);
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "Storm_CoopBrawlTopBar_BaseTitle", PlayerGroupAll());
    DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel);
    libPEB1_gv_baseHealthBar.lv_basePercentLabel = DialogControlLastCreated();
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 300, 50);

mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlstarcraft.stormmodbase.stormdata/LibPESC.galaxy:375

    libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeNineSlice, PlayerGroupAll());
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 250, 86);
    DialogControlCreateInPanel(libPESC_gv_pVEBrawlTopBar.lv_mainPanel, c_triggerControlTypeLabel);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 300, 50);
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/lib_PESC_BEEA8861"), PlayerGroupAll());

mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmodbase.stormdata/LibPVEU.galaxy:2075

    libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeNineSlice, PlayerGroupAll());
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 250, 86);
    DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel);
    libPVEU_gv_pvEUITopBar.lv_teamLevelLabelPanel = DialogControlLastCreated();
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 300, 50);

mods/heroesbrawlmods/brawlmapmods/coop/pvestarcraft.stormmodbase.stormdata/LibPESC.galaxy:375

    libNtve_gf_SetDialogItemImageType(DialogControlLastCreated(), c_triggerImageTypeNineSlice, PlayerGroupAll());
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 250, 86);
    DialogControlCreateInPanel(libPESC_gv_pVEBrawlTopBar.lv_mainPanel, c_triggerControlTypeLabel);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 300, 50);
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/lib_PESC_BEEA8861"), PlayerGroupAll());

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

    for ( ; ( (auto4960B2E2_ai >= 0 && lv_cheatIndex <= auto4960B2E2_ae) || (auto4960B2E2_ai <= 0 && lv_cheatIndex >= auto4960B2E2_ae) ) ; lv_cheatIndex += auto4960B2E2_ai ) {
        lv_itemsInPanel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)] += 1;
        DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeButton);
        libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_buttonDialog = DialogControlLastCreated();
        libNtve_gf_SetDialogItemText(DialogControlLastCreated(), libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_titleText, PlayerGroupAll());

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

        DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), lv_RelativeAnchor2, libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], lv_RelativeAnchor, 0, (( (lv_itemsInPanel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)] - 1) * lv_buttonHeight ) + 2));
        if ((libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_uIType == libNCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
            DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox);
            libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), lv_editBoxTextStyle, PlayerGroupAll());
            libNtve_gf_SetDialogItemTintColor(DialogControlLastCreated(), Color(149*100/255,150*100/255,151*100/255), PlayerGroupAll());