# Hookup Dialog Item
Grammar — Hook up an existing type called name in dialog item dialogItem
Flags —Native
|Action
Hooks up an already existing dialog item of the specified type in the specified dialog item.
# Arguments
int
[ control ] — Dialog Itemint
[ preset::ControlType ] — Typestring
[ layoutframerel ] — Name
Returns — int
[ control ]
native int DialogControlHookup(
int panel,
int type,
string inTemplate,
);
# Related
Category: Dialog / Dialog Items
- [F] —
int
[ control ] — Create Dialog Item — ( DialogControlCreate ) - [F] —
int
[ control ] — Create Dialog Item In Panel — ( DialogControlCreateInPanel ) - [F] —
int
[ control ] — Create Dialog Item From Template — ( DialogControlCreateFromTemplate ) - [F] —
int
[ control ] — Create Dialog Item In Panel From Template — ( DialogControlCreateInPanelFromTemplate ) - [F] —
int
[ control ] — Hookup Dialog Item — ( DialogControlHookup ) - [F] —
int
[ control ] — Hookup Standard Dialog Item — ( DialogControlHookupStandard ) - [F] —
int
[ control ] — Hookup Unit Status Dialog Item — ( DialogControlHookupUnitStatus ) - [F] —
void
— Show/Hide Dialog Item — ( DialogControlSetVisible ) - [F] —
void
— Enable/Disable Dialog Item — ( DialogControlSetEnabled ) - [F] —
void
— Set Dialog Item Text — ( libNtve_gf_SetDialogItemText ) - [F] —
void
— Set Dialog Item Observed Type — ( DialogControlSetObservedType ) - [F] —
int
[ control ] — Last Created Dialog Item — ( DialogControlLastCreated ) - [F] —
bool
— Dialog Item Is Visible — ( DialogControlIsVisible ) - [F] —
bool
— Dialog Item Is Enabled — ( DialogControlIsEnabled ) - [F] —
text
— Dialog Item Text — ( libNtve_gf_DialogItemText ) - [F] —
void
— Dialog Item Is Used — ( TriggerAddEventDialogControl ) - [F] —
int
[ control ] — Used Dialog Item — ( EventDialogControl ) - [F] —
int
[ preset::ControlEventType ] — Dialog Item Event Type — ( EventDialogControlEventType ) - [F] —
int
[ preset::MouseButton ] — Dialog Item Mouse Button — ( EventDialogControlMouseButton )
# Examples
# campaigns/libertystory.sc2campaign
// L2037
DialogControlHookup(libCamp_gv_zS_CampaignTrialEndPanel, c_triggerControlTypeButton, "UpgradeButton")
// L2039
DialogControlHookup(libCamp_gv_zS_CampaignTrialEndPanel, c_triggerControlTypeButton, "ContinueButton")
# campaigns/swarm.sc2campaign
// L2354
DialogControlHookup(lv_warpAwayPanel, c_triggerControlTypeLabel, "NameLabel")
// L2357
DialogControlHookup(lv_warpAwayPanel, c_triggerControlTypeLabel, "ValueLabel")
// L2359
DialogControlHookup(lv_warpAwayPanel, c_triggerControlTypeImage, "BarImage")
// L1722
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeFlash, "TugOfWarEffects")
// L1725
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeImage, "LeftIconImage")
// L1728
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeLabel, "LeftNameLabel")
// L1730
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeImage, "RightIconImage")
// L1733
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeLabel, "RightNameLabel")
// L9867
DialogControlHookup(gv_campaignIntroPanel, c_triggerControlTypeLabel, "StoryText")
// L6415
DialogControlHookup(lv_panelReleaseZerg, c_triggerControlTypeButton, "TerranSelectButton")
// L6419
DialogControlHookup(lv_panelReleaseZerg, c_triggerControlTypeLabel, "SelectionLabel")
// L6430
DialogControlHookup(lv_panelReleaseGas, c_triggerControlTypeButton, "TerranSelectButton")
// L6434
DialogControlHookup(lv_panelReleaseGas, c_triggerControlTypeLabel, "SelectionLabel")
// L2354
DialogControlHookup(lv_warpAwayPanel, c_triggerControlTypeLabel, "NameLabel")
// L2357
DialogControlHookup(lv_warpAwayPanel, c_triggerControlTypeLabel, "ValueLabel")
// L2359
DialogControlHookup(lv_warpAwayPanel, c_triggerControlTypeImage, "BarImage")
// L1722
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeFlash, "TugOfWarEffects")
// L1725
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeImage, "LeftIconImage")
// L1728
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeLabel, "LeftNameLabel")
// L1730
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeImage, "RightIconImage")
// L1733
DialogControlHookup(gv_nullZoneBarPanel, c_triggerControlTypeLabel, "RightNameLabel")
// L9867
DialogControlHookup(gv_campaignIntroPanel, c_triggerControlTypeLabel, "StoryText")
// L6415
DialogControlHookup(lv_panelReleaseZerg, c_triggerControlTypeButton, "TerranSelectButton")
// L6419
DialogControlHookup(lv_panelReleaseZerg, c_triggerControlTypeLabel, "SelectionLabel")
// L6430
DialogControlHookup(lv_panelReleaseGas, c_triggerControlTypeButton, "TerranSelectButton")
// L6434
DialogControlHookup(lv_panelReleaseGas, c_triggerControlTypeLabel, "SelectionLabel")
# campaigns/swarmstory.sc2campaign
// L2732
DialogControlHookup(libSwaC_gv_zS_ProgressBarPanel, c_triggerControlTypeLabel, "NameLabel")
// L2734
DialogControlHookup(libSwaC_gv_zS_ProgressBarPanel, c_triggerControlTypeImage, "BarImage")
// L2736
DialogControlHookup(libSwaC_gv_zS_ProgressBarPanel, c_triggerControlTypeLabel, "LeftBarLabel")
// L2738
DialogControlHookup(libSwaC_gv_zS_ProgressBarPanel, c_triggerControlTypeLabel, "RightBarLabel")
// L2935
DialogControlHookup(libSwaC_gv_zS_BB_Panel, c_triggerControlTypeImage, "IconImage")
// L2937
DialogControlHookup(libSwaC_gv_zS_BB_Panel, c_triggerControlTypeLabel, "NameLabel")
// L2939
DialogControlHookup(libSwaC_gv_zS_BB_Panel, c_triggerControlTypeImage, "HealthBarImage")
// L2941
DialogControlHookup(libSwaC_gv_zS_BB_Panel, c_triggerControlTypeLabel, "HealthLabel")
// L2943
DialogControlHookup(libSwaC_gv_zS_BB_Panel, c_triggerControlTypeImage, "BarBackground")
// L2946
DialogControlHookup(libSwaC_gv_zS_BB_Panel, c_triggerControlTypeImage, "BorderImage")
# campaigns/swarmstoryutil.sc2mod
// L762
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesPanel, c_triggerControlTypePanel, "ScreenTitleFrame")
// L763
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "ScreenTitleLabel")
// L765
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesPanel, c_triggerControlTypeButton, "CloseButton")
// L767
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesPanel, c_triggerControlTypeButton, "QuitButton")
// L769
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesPanel, c_triggerControlTypePanel, "MissionSummaryContainer")
// L771
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesMissionPanel, c_triggerControlTypeLabel, "MissionTitleLabel")
// L773
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesMissionPanel, c_triggerControlTypeLabel, "MissionBonusObjectivesLabel")
// L775
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesMissionPanel, c_triggerControlTypeImage, "MissionImage")
// L777
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesMissionPanel, c_triggerControlTypePanel, "AchievementSummaryContainer")
// L779
DialogControlHookup(lib281DEC45_gv_zSS_UIArchivesAchievementPanel, c_triggerControlTypeAchievement, "AchievementFrame0")
# campaigns/void.sc2campaign
// L1150
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1152
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1200
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1202
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1250
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1252
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1300
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1302
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1352
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1355
DialogControlHookup(lv_background, c_triggerControlTypeLabel, "Label")
// L1598
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1600
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L2341
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L2343
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L3029
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L3031
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L3374
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L3376
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L2100
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L2102
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1150
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1152
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1200
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1202
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1250
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1252
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1300
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1302
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1352
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1355
DialogControlHookup(lv_background, c_triggerControlTypeLabel, "Label")
// L2100
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L2102
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L1598
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L1600
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L2341
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L2343
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L3029
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L3031
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
// L3374
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeImage, "Background")
// L3376
DialogControlHookup(DialogControlLastCreated(), c_triggerControlTypeLabel, "Label")
# campaigns/voidstory.sc2campaign
// L1618
DialogControlHookup(lv_panel, c_triggerControlTypeLabel, "NameLabel")
// L1620
DialogControlHookup(lv_panel, c_triggerControlTypeLabel, "DescriptionLabel")
// L1622
DialogControlHookup(lv_panel, c_triggerControlTypeImage, "IconImage")
// L1624
DialogControlHookup(lv_panel, c_triggerControlTypeLabel, "PointsLabel")
# campaigns/voidstory.sc2campaign
// L4370
DialogControlHookup(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_callout, c_triggerControlTypeLabel, "NameLabel")
// L4373
DialogControlHookup(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_callout, c_triggerControlTypeLabel, "SubNameLabel")
# campaigns/voidstory.sc2campaign
// L589
DialogControlHookup(libVCUI_gv_pU_ArmyPanel, c_triggerControlTypeButton, "ConfirmButton")
// L591
DialogControlHookup(libVCUI_gv_pU_ArmyPanel, c_triggerControlTypeLabel, "ArmyFactionPrompt")
// L593
DialogControlHookup(libVCUI_gv_pU_ArmyPanel, c_triggerControlTypePanel, "CategoryList")
// L597
DialogControlHookup(lv_hookupFrame, c_triggerControlTypeButton, "CategoryButton" + IntToString(lv_categoryIndex))
// L599
DialogControlHookup(libVCUI_gv_pU_ArmyCategoryButtons[lv_categoryIndex], c_triggerControlTypeImage, "Highlight")
// L601
DialogControlHookup(libVCUI_gv_pU_ArmyCategoryButtons[lv_categoryIndex], c_triggerControlTypeImage, "FactionIcon")