# Create Dialog Item

Grammar — Create a type for dialog dialog
FlagsNative | Action

Creates a dialog item, of the specified type, for the specified dialog. A new dialog item will always be anchored to the top left of its parent dialog, with no offset. It can be moved and resized using the “Move Dialog Item” and “Set Dialog Item Size” actions. Flash dialog items will only work on Blizzard maps.

# Arguments

  • int [ dialog ] — Dialog
  • int [ preset::ControlType ] — Type

Returns — int [ control ]

native int DialogControlCreate(int dialog, int type);

Category: Dialog / Dialog Items

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3582
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3588
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3595
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3605
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3630
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3636
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3643
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3653
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3682
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3688
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L2326
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L2612
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L2617
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3458
DialogControlCreate(gv_fullscreenImageDialog, c_triggerControlTypeImage)
// L3463
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3950
DialogControlCreate(gv_armoryGradientDialog, c_triggerControlTypeImage)
// L4679
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L4694
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L4719
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L4798
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L436
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L1664
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L968
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L1005
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L533
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L795
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L1512
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L1573
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L3582
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3588
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3595
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3605
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3630
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3636
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3643
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L3653
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3682
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3688
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L2326
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L2612
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L2617
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3458
DialogControlCreate(gv_fullscreenImageDialog, c_triggerControlTypeImage)
// L3463
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L3950
DialogControlCreate(gv_armoryGradientDialog, c_triggerControlTypeImage)
// L4679
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L4694
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L4719
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L4798
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L436
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L1664
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L968
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L1005
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L533
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L795
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L1512
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)
// L1573
DialogControlCreate(lv_racingStartDIALOG, c_triggerControlTypeLabel)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L1873
DialogControlCreate(lp_dialog, lp_type)
// L1953
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L1957
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton)
// L1962
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L1968
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L1974
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L5675
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L5698
DialogControlCreate(libCamp_gv_tS_RoomChangeDialog, c_triggerControlTypeButton)
// L5712
DialogControlCreate(libCamp_gv_tS_RoomChangeDialog, c_triggerControlTypeImage)
// L5719
DialogControlCreate(libCamp_gv_tS_RoomChangeDialog, c_triggerControlTypeLabel)

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L9896
DialogControlCreate(gv_campaignIntroDialog, c_triggerControlTypeCutscene)
// L9896
DialogControlCreate(gv_campaignIntroDialog, c_triggerControlTypeCutscene)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L574
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeImage)
// L6713
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeCutscene)
// L9307
DialogControlCreate(lv_splitTitleDialog, c_triggerControlTypeLabel)
// L11466
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L14584
DialogControlCreate(libSwaC_gv_zS_DebugProgressDialog, c_triggerControlTypeButton)
// L14593
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L14598
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L14603
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel)
// L14608
DialogControlCreate(libSwaC_gv_zS_DebugProgressDialog, c_triggerControlTypeButton)
// L14685
DialogControlCreate(libSwaC_gv_zS_DebugProgressDialog, c_triggerControlTypeButton)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L2391
DialogControlCreate(lib281DEC45_gv_zSS_DebugStoryDialog, c_triggerControlTypeCheckBox)
// L2394
DialogControlCreate(lib281DEC45_gv_zSS_DebugStoryDialog, c_triggerControlTypeCheckBox)
// L7730
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePulldown)
// L7734
DialogControlCreate(DialogLastCreated(), c_triggerControlTypeListBox)
// L7758
DialogControlCreate(lib281DEC45_gv_zSS_DebugStoryDialog, c_triggerControlTypeCheckBox)
// L7761
DialogControlCreate(lib281DEC45_gv_zSS_DebugStoryDialog, c_triggerControlTypeListBox)
// L7777
DialogControlCreate(lib281DEC45_gv_zSS_DebugStoryDialog, c_triggerControlTypeEditBox)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1142
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1192
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1242
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1292
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1344
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1395
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1445
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L2092
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1590
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L2333
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L3021
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L3366
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L719
DialogControlCreate(lp_dialog, c_triggerControlTypePanel)
// L1142
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)
// L1192
DialogControlCreate(DialogLastCreated(), c_triggerControlTypePanel)