# Create Dialog Item In Panel
Grammar — Create a type within the Dialog Item dialogItemPanel
Flags —Native
|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 Panelint
<preset::ControlType> — Type
Returns — int
<control>
native int DialogControlCreateInPanel(int panel, int type);
# Related
Category: Dialog / Dialog Items
- Create Dialog Item —
int
<control> — DialogControlCreate - Create Dialog Item In Panel —
int
<control> — DialogControlCreateInPanel - Create Dialog Item From Template —
int
<control> — DialogControlCreateFromTemplate - Create Dialog Item In Panel From Template —
int
<control> — DialogControlCreateInPanelFromTemplate - Hookup Dialog Item —
int
<control> — DialogControlHookup - Hookup Standard Dialog Item —
int
<control> — DialogControlHookupStandard - Hookup Unit Status Dialog Item —
int
<control> — DialogControlHookupUnitStatus - Show/Hide Dialog Item —
void
— DialogControlSetVisible - Enable/Disable Dialog Item —
void
— DialogControlSetEnabled - Set Dialog Item Text —
void
— libNtve_gf_SetDialogItemText - Set Dialog Item Observed Type —
void
— DialogControlSetObservedType - Last Created Dialog Item —
int
<control> — DialogControlLastCreated - Dialog Item Is Visible —
bool
— DialogControlIsVisible - Dialog Item Is Enabled —
bool
— DialogControlIsEnabled - Dialog Item Text —
text
— libNtve_gf_DialogItemText - Dialog Item Is Used —
void
— TriggerAddEventDialogControl - Used Dialog Item —
int
<control> — EventDialogControl - Dialog Item Event Type —
int
<preset::ControlEventType> — EventDialogControlEventType - Dialog Item Mouse Button —
int
<preset::MouseButton> — EventDialogControlMouseButton
# Examples
campaigns/void.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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/voidstory.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.sc2mod — base.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.sc2mod — base.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());