# Dialog Item Is Used

Grammaritem|Dialog Item is used by Player player with event type eventType
FlagsNative | Event

This event fires when a dialog item is used. Use “Dialog Item Event Type” to find out how the event was triggered. Use “Used Dialog Item” to get the dialog item that triggered this event. Use “Triggering Player” to get the player that used the dialog item.

# Arguments

  • int — Player
  • int [ control ] — Item
  • int [ preset::ControlEventType ] — Event Type

Returns — void

native void TriggerAddEventDialogControl(
	trigger t,
	int player,
	int control,
	int eventType,
);

# Event parameters

Category: Dialog / Dialog Items

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L7935
TriggerAddEventDialogControl(gt_StartButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L8020
TriggerAddEventDialogControl(gt_ScoreScreenCloseButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L14479
TriggerAddEventDialogControl(gt_TBDWindowCloseClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L17909
TriggerAddEventDialogControl(gt_DebugSceneClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18039
TriggerAddEventDialogControl(gt_RoomCheatButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18278
TriggerAddEventDialogControl(gt_RoomCameraButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18400
TriggerAddEventDialogControl(gt_Debug_BriefingDialogMissionButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18434
TriggerAddEventDialogControl(gt_Debug_BriefingDialogClose, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18519
TriggerAddEventDialogControl(gt_Debug_TVNewsDialogMissionButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18554
TriggerAddEventDialogControl(gt_Debug_TVNewsDialogClose, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L25436
TriggerAddEventDialogControl(gt_ZPlanetPanelButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L33454
TriggerAddEventDialogControl(gt_ABChoiceButtonClick, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1398
TriggerAddEventDialogControl(gt_QuitTutorial, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1737
TriggerAddEventDialogControl(gt_UserInterface01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2024
TriggerAddEventDialogControl(gt_Camera01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2721
TriggerAddEventDialogControl(gt_Movement01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L4141
TriggerAddEventDialogControl(gt_Combat01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L5710
TriggerAddEventDialogControl(gt_Construction01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6518
TriggerAddEventDialogControl(gt_Collection01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L7950
TriggerAddEventDialogControl(gt_Production01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L9363
TriggerAddEventDialogControl(gt_Supply01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L7935
TriggerAddEventDialogControl(gt_StartButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L8020
TriggerAddEventDialogControl(gt_ScoreScreenCloseButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L14479
TriggerAddEventDialogControl(gt_TBDWindowCloseClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L17909
TriggerAddEventDialogControl(gt_DebugSceneClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18039
TriggerAddEventDialogControl(gt_RoomCheatButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18278
TriggerAddEventDialogControl(gt_RoomCameraButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18400
TriggerAddEventDialogControl(gt_Debug_BriefingDialogMissionButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18434
TriggerAddEventDialogControl(gt_Debug_BriefingDialogClose, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18519
TriggerAddEventDialogControl(gt_Debug_TVNewsDialogMissionButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L18554
TriggerAddEventDialogControl(gt_Debug_TVNewsDialogClose, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L25436
TriggerAddEventDialogControl(gt_ZPlanetPanelButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L33454
TriggerAddEventDialogControl(gt_ABChoiceButtonClick, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1398
TriggerAddEventDialogControl(gt_QuitTutorial, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1737
TriggerAddEventDialogControl(gt_UserInterface01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2024
TriggerAddEventDialogControl(gt_Camera01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2721
TriggerAddEventDialogControl(gt_Movement01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L4141
TriggerAddEventDialogControl(gt_Combat01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L5710
TriggerAddEventDialogControl(gt_Construction01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6518
TriggerAddEventDialogControl(gt_Collection01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L7950
TriggerAddEventDialogControl(gt_Production01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L9363
TriggerAddEventDialogControl(gt_Supply01, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L12083
TriggerAddEventDialogControl(libCamp_gt__MsgDlgButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L12113
TriggerAddEventDialogControl(libCamp_gt_ZS_CampaignTrialDialogQuitClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L12141
TriggerAddEventDialogControl(libCamp_gt_ZS_CampaignTrialDialogUpgradeClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L12585
TriggerAddEventDialogControl(libCamp_gt_TS_RoomChangeButtonResponse, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L13129
TriggerAddEventDialogControl(libCamp_gt_TS_DebugProgressMissionButton, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L13158
TriggerAddEventDialogControl(libCamp_gt_TS_DebugProgressUnlockSecretButton, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L13199
TriggerAddEventDialogControl(libCamp_gt_TS_DebugProgressReset, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L13256
TriggerAddEventDialogControl(libCamp_gt_TS_DebugProgressLaunchMission, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L13288
TriggerAddEventDialogControl(libCamp_gt_TS_DebugProgressLaunchMissionPopup, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L13327
TriggerAddEventDialogControl(libCamp_gt_TS_DebugProgressOK, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L6536
TriggerAddEventDialogControl(gt_ButtonTurnonGas, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6674
TriggerAddEventDialogControl(gt_ButtonReleaseZerg, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2919
TriggerAddEventDialogControl(gt_SpawnLocustsButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6536
TriggerAddEventDialogControl(gt_ButtonTurnonGas, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6674
TriggerAddEventDialogControl(gt_ButtonReleaseZerg, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2919
TriggerAddEventDialogControl(gt_SpawnLocustsButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L17677
TriggerAddEventDialogControl(libSwaC_gt_ZS_MissionTipClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L17790
TriggerAddEventDialogControl(libSwaC_gt_ZS_ArmyButtonUsed, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L17791
TriggerAddEventDialogControl(libSwaC_gt_ZS_ArmyButtonUsed, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeHotkeyPressed)
// L18035
TriggerAddEventDialogControl(libSwaC_gt_ZS_BB_MouseHoverText, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeMouseEnter)
// L18036
TriggerAddEventDialogControl(libSwaC_gt_ZS_BB_MouseHoverText, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeMouseExit)
// L18271
TriggerAddEventDialogControl(libSwaC_gt_ZS_MouseHoverText, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeMouseEnter)
// L18272
TriggerAddEventDialogControl(libSwaC_gt_ZS_MouseHoverText, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeMouseExit)
// L18376
TriggerAddEventDialogControl(libSwaC_gt_ZS_CamStatsHelpOpened, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L20275
TriggerAddEventDialogControl(libSwaC_gt_ZS_ArmyCustomEggRoomBackButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L20312
TriggerAddEventDialogControl(libSwaC_gt_ZS_ArmyCustomEggRoomEvolutionMissionButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L6175
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UIArchivesMissionPlayClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6214
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UIArchivesScenePlayClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6248
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UIArchivesCloseClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6408
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UITravelQuitSelected, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6439
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UITravelBackSelected, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6494
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UITravelLaunchSelected, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6527
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UITravelPlanetSelected, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6603
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UITravelPlayPitch, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6634
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UITravelStopPitch, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L6868
TriggerAddEventDialogControl(lib281DEC45_gt_ZSS_UIMissionLaunchClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)

# campaigns/void.sc2campaign

MapScript.galaxy

// L2723
TriggerAddEventDialogControl(gt_Stage1, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2750
TriggerAddEventDialogControl(gt_Stage2, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2777
TriggerAddEventDialogControl(gt_Stage3, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2804
TriggerAddEventDialogControl(gt_Stage4, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2830
TriggerAddEventDialogControl(gt_ExitButton, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2884
TriggerAddEventDialogControl(gt_ContinueButton, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1089
TriggerAddEventDialogControl(gt_ToggleSelectedtoCyberNormalSpace, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1511
TriggerAddEventDialogControl(gt_PlatformButtonPressed, gv_pLAYER_01_USER, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1785
TriggerAddEventDialogControl(gt_RecallProbesEffectsEnter, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeMouseEnter)
// L1828
TriggerAddEventDialogControl(gt_RecallProbesEffectsExit, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1829
TriggerAddEventDialogControl(gt_RecallProbesEffectsExit, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeMouseExit)
// L1972
TriggerAddEventDialogControl(gt_IDKFA, gv_pLAYER_01_USER, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2079
TriggerAddEventDialogControl(gt_IDDQD, gv_pLAYER_01_USER, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1600
TriggerAddEventDialogControl(gt_OverloadTempleButtonClicked, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2723
TriggerAddEventDialogControl(gt_Stage1, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2750
TriggerAddEventDialogControl(gt_Stage2, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2777
TriggerAddEventDialogControl(gt_Stage3, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2804
TriggerAddEventDialogControl(gt_Stage4, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2830
TriggerAddEventDialogControl(gt_ExitButton, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L2884
TriggerAddEventDialogControl(gt_ContinueButton, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1089
TriggerAddEventDialogControl(gt_ToggleSelectedtoCyberNormalSpace, c_playerAny, c_invalidDialogControlId, c_triggerControlEventTypeClick)
// L1511
TriggerAddEventDialogControl(gt_PlatformButtonPressed, gv_pLAYER_01_USER, c_invalidDialogControlId, c_triggerControlEventTypeClick)