# Dialog Item Event Type
Grammar — Dialog item event type
Flags —Native
|Function
Returns the event type of the dialog item that was used.
Returns — int
<preset::ControlEventType>
native int EventDialogControlEventType();
# Supported triggers
- Dialog Item Is Used — TriggerAddEventDialogControl
# 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/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18019
}
autoC32D9971_val = EventDialogControlEventType();
if (autoC32D9971_val == c_triggerControlEventTypeMouseEnter) {
DialogControlSetVisible(libSwaC_gv_zS_BB_HpLabel, PlayerGroupAll(), true);
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:18250
}
}
auto2B9A9574_val = EventDialogControlEventType();
if (auto2B9A9574_val == c_triggerControlEventTypeMouseEnter) {
DialogControlSetVisible(libSwaC_gv_zS_SwarmHeroUIDialogHealthLabel[lv_index], PlayerGroupAll(), true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1754
// Conditions
if (testConds) {
if (!((EventDialogControlEventType() == c_triggerControlEventTypeMouseEnter))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1797
// Conditions
if (testConds) {
if (!(((EventDialogControlEventType() == c_triggerControlEventTypeMouseExit) || (EventDialogControlEventType() == c_triggerControlEventTypeClick)))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:1797
// Conditions
if (testConds) {
if (!(((EventDialogControlEventType() == c_triggerControlEventTypeMouseExit) || (EventDialogControlEventType() == c_triggerControlEventTypeClick)))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2map — MapScript.galaxy:1754
// Conditions
if (testConds) {
if (!((EventDialogControlEventType() == c_triggerControlEventTypeMouseEnter))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2map — MapScript.galaxy:1797
// Conditions
if (testConds) {
if (!(((EventDialogControlEventType() == c_triggerControlEventTypeMouseExit) || (EventDialogControlEventType() == c_triggerControlEventTypeClick)))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2map — MapScript.galaxy:1797
// Conditions
if (testConds) {
if (!(((EventDialogControlEventType() == c_triggerControlEventTypeMouseExit) || (EventDialogControlEventType() == c_triggerControlEventTypeClick)))) {
return false;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:9762
}
}
autoF3A5F50D_val = EventDialogControlEventType();
if (autoF3A5F50D_val == c_triggerControlEventTypeMouseEnter) {
if ((UnitGetPropertyFixed(libVCUI_gv_pU_VoidHeroUIUnit[lv_index], c_unitPropLifeMax, c_unitPropCurrent) > 0)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCUI.galaxy:6906
}
}
autoF3A5F50D_val = EventDialogControlEventType();
if (autoF3A5F50D_val == c_triggerControlEventTypeMouseEnter) {
if ((UnitGetPropertyFixed(libNCUI_gv_NU_HeroUnit[lv_index], c_unitPropLifeMax, c_unitPropCurrent) > 0)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:8201
}
}
autoF3A5F50D_val = EventDialogControlEventType();
if (autoF3A5F50D_val == c_triggerControlEventTypeMouseEnter) {
if ((UnitGetPropertyFixed(libCOUI_gv_cU_HeroUnit[lv_index][EventPlayer()], c_unitPropLifeMax, c_unitPropCurrent) > 0)) {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:8402
}
autoC32D9971_val = EventDialogControlEventType();
if (autoC32D9971_val == c_triggerControlEventTypeMouseEnter) {
DialogControlSetVisible(libA3DDD02B_gv_pP_BB_HpLabel, PlayerGroupAll(), true);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:8639
}
}
auto2B9A9574_val = EventDialogControlEventType();
if (auto2B9A9574_val == c_triggerControlEventTypeMouseEnter) {
DialogControlSetVisible(libA3DDD02B_gv_pP_HeroUIDialogHealthLabel[lv_index], PlayerGroupAll(), true);