# 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.sc2campaign

MapScript.galaxy

// L722
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeImage)
// L726
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeLabel)
// L722
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeImage)
// L726
DialogControlCreateInPanel(lv_backgroundPanel, c_triggerControlTypeLabel)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L6410
DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeButton)
// L6418
DialogControlCreateInPanel(libVCMI_gv_pM_MissionCheat_Panel[(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L10132
DialogControlCreateInPanel(DialogControlLastCreated(), c_triggerControlTypeTooltip)

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L4440
DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel)
// L4446
DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel)

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlstarcraft.stormmod

LibPESC.galaxy

// L375
DialogControlCreateInPanel(libPESC_gv_pVEBrawlTopBar.lv_mainPanel, c_triggerControlTypeLabel)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEU.galaxy

// L2075
DialogControlCreateInPanel(libPVEU_gv_pvEUITopBar.lv_mainPanel, c_triggerControlTypeLabel)

# mods/heroesbrawlmods/brawlmapmods/coop/pvestarcraft.stormmod

LibPESC.galaxy

// L375
DialogControlCreateInPanel(libPESC_gv_pVEBrawlTopBar.lv_mainPanel, c_triggerControlTypeLabel)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L5348
DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeButton)
// L5356
DialogControlCreateInPanel(libNCMI_gv_NM_MissionCheat_Panel[(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_cheatType)], c_triggerControlTypeEditBox)