# Set Dialog Item Observed Type
Grammar — Set dialogItem observed type to observedType
Flags —Native
|Action
# Arguments
int
<control> — Dialog Itemint
<preset::DialogObservedType> — Observed Type
Returns — void
native void DialogControlSetObservedType(
int control,
int observedType,
);
# 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
mods/heroesbrawlmods/arenamodemods/punisherarena.stormmod — base.stormdata/LibAMPU.galaxy:2190
TriggerEnable(TriggerGetCurrent(), false);
DialogControlCreateInPanelFromTemplate(libUIUI_gv_uIPartyFrame.lv_mainPanel, c_triggerControlTypePanel, "ArenaPunisher/ArenaPunisherScorePanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmod — base.stormdata/LibMHPP.galaxy:1369
// Implementation
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "HanamuraPayloadPushMapMechanic/HanamuraPanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), true);
libMHPP_gv_mHPPUI.lv_mapMechanic = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15311
DialogControlCreateInPanelFromTemplate(libUIUI_gv_heroSpecificFullUIModContainer, c_triggerControlTypePanel, "LostVikings/LostVikingsChannelFrame");
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15323
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeUnitStatus, "LostVikingsOlafBehaviorChannelBarFrame");
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15328
libGDHL_gv_lostVikingsUI.lv_lostVikingsOlafBehaviorChannelBarFrame = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeUnitStatusDurationBar, "LostVikingsBehaviorChannelBar");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
libGDHL_gv_lostVikingsUI.lv_lostVikingsOlafBehaviorChannelBarDurationBar = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LostVikingsBehaviorChannelBar/ChannelNameLabel");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15331
libGDHL_gv_lostVikingsUI.lv_lostVikingsOlafBehaviorChannelBarDurationBar = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LostVikingsBehaviorChannelBar/ChannelNameLabel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
libGDHL_gv_lostVikingsUI.lv_lostVikingsOlafBehaviorChannelBarBehaviorLabel = DialogControlLastCreated();
lv_currentPanelLayer -= 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15336
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeUnitStatus, "LostVikingsBaleogBehaviorChannelBarFrame");
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15341
libGDHL_gv_lostVikingsUI.lv_lostVikingsBaleogBehaviorChannelBarFrame = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeUnitStatusDurationBar, "LostVikingsBehaviorChannelBar");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
libGDHL_gv_lostVikingsUI.lv_lostVikingsBaleogBehaviorChannelBarDurationBar = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LostVikingsBehaviorChannelBar/ChannelNameLabel");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15344
libGDHL_gv_lostVikingsUI.lv_lostVikingsBaleogBehaviorChannelBarDurationBar = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LostVikingsBehaviorChannelBar/ChannelNameLabel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
libGDHL_gv_lostVikingsUI.lv_lostVikingsBaleogBehaviorChannelBarBehaviorLabel = DialogControlLastCreated();
lv_currentPanelLayer -= 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15349
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeUnitStatus, "LostVikingsErikBehaviorChannelBarFrame");
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15354
libGDHL_gv_lostVikingsUI.lv_lostVikingsErikBehaviorChannelBarFrame = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeUnitStatusDurationBar, "LostVikingsBehaviorChannelBar");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
libGDHL_gv_lostVikingsUI.lv_lostVikingsErikBehaviorChannelBarDurationBar = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LostVikingsBehaviorChannelBar/ChannelNameLabel");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15357
libGDHL_gv_lostVikingsUI.lv_lostVikingsErikBehaviorChannelBarDurationBar = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "LostVikingsBehaviorChannelBar/ChannelNameLabel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeObservedPlayerId);
libGDHL_gv_lostVikingsUI.lv_lostVikingsErikBehaviorChannelBarBehaviorLabel = DialogControlLastCreated();
lv_currentPanelLayer -= 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:1006
// Automatic Variable Declarations
// Implementation
DialogControlSetObservedType(lp_dialogItem, c_triggerObservedTypeSelectedOrObservedPlayerId);
DialogControlSetVisible(lp_dialogItem, libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], false);
DialogControlSetVisible(lp_dialogItem, libCore_gv_nPCPlayers, false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:8977
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/FullscreenUpperContainer/DamageOverlayImagesPanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], false);
DialogControlSetVisible(DialogControlLastCreated(), libCore_gv_playerGroupFromPlayer[libCore_gv_cOMPUTER_TeamOrder], false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9194
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/FullscreenUpperContainer/HeroLeaderPanel/HeroLeaderPanelContainer/TabControl/DeathRecapContainerFrame/DeathRecapPanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:11278
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/FullscreenUpperContainer/EndOfGameAwardsPanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
libUIUI_gv_EndofGameAwardsPanel.lv_mainPanel = DialogControlLastCreated();
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:12012
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/FullscreenLowerContainer/FullscreenVignettePanelOverlay");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:12049
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/FullscreenLowerContainer/FullscreenOverlayImagesPanelRework");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], false);
lv_currentPanelLayer += 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:12094
DialogControlHookupStandard(c_triggerControlTypePanel, ("UIContainer/FullscreenLowerContainer/CargoOverlay" + IntToString(lv_i)));
libUIUI_gv_cargoOverlay.lv_cargoOverlay[lv_i] = DialogControlLastCreated();
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], false);
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:12131
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/FullscreenLowerContainer/FullscreenOverlayImagesPanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], false);
DialogControlSetVisible(DialogControlLastCreated(), libCore_gv_playerGroupFromPlayer[libCore_gv_cOMPUTER_TeamOrder], false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:12272
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer/GameOverSplash");
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
lv_currentPanelLayer += 1;
lv_panels[lv_currentPanelLayer] = DialogControlLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:12278
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypePanel, "VictoryBackground");
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
libUIUI_gv_gameOverSplash.lv_victoryFrame = DialogControlLastCreated();
DialogControlHookup(lv_panels[lv_currentPanelLayer], c_triggerControlTypeLabel, "VictoryBackground/VictoryLabel");
mods/heroesmapmods/battlegroundmapmods/gardenofterror.stormmod — base.stormdata/LibGRDN.galaxy:473
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "GardenMapMechanic/EventWarningFrame");
libGRDN_gv_gardenUI.lv_eventWarningFrame = DialogControlLastCreated();
DialogControlSetObservedType(libGRDN_gv_gardenUI.lv_eventWarningFrame, c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(libGRDN_gv_gardenUI.lv_eventWarningFrame, PlayerGroupAll(), false);
DialogControlHookup(libGRDN_gv_gardenUI.lv_eventWarningFrame, c_triggerControlTypeLabel, "TextLabel");
mods/heroesmapmods/battlegroundmapmods/gardenofterror.stormmod — base.stormdata/LibGRDN.galaxy:481
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "GardenMapMechanic/GatherTheSeedsFrame");
libGRDN_gv_gardenUI.lv_gatherTheSeedsFrame = DialogControlLastCreated();
DialogControlSetObservedType(libGRDN_gv_gardenUI.lv_gatherTheSeedsFrame, c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(libGRDN_gv_gardenUI.lv_gatherTheSeedsFrame, PlayerGroupAll(), false);
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "GardenMapMechanic/GardenTerrorHealthFrame");
mods/heroesmapmods/battlegroundmapmods/gardenofterror.stormmod — base.stormdata/LibGRDN.galaxy:485
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "GardenMapMechanic/GardenTerrorHealthFrame");
libGRDN_gv_gardenUI.lv_gardenTerrorHealthFrame = DialogControlLastCreated();
DialogControlSetObservedType(libGRDN_gv_gardenUI.lv_gardenTerrorHealthFrame, c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(libGRDN_gv_gardenUI.lv_gardenTerrorHealthFrame, PlayerGroupAll(), false);
lv_lane = 1;
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:856
// Implementation
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "VolskayaMapMechanic/VolskayaCapturePointPanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
libVLSK_gv_volskayaUI.lv_mapMechanic_Container = DialogControlLastCreated();
DialogControlSetVisible(libVLSK_gv_volskayaUI.lv_mapMechanic_Container, PlayerGroupAll(), false);
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:886
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "VolskayaMapMechanic/VolskayaToastContainer");
libVLSK_gv_volskayaUI.lv_slideout_Container = DialogControlLastCreated();
DialogControlSetObservedType(libVLSK_gv_volskayaUI.lv_slideout_Container, c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(libVLSK_gv_volskayaUI.lv_slideout_Container, PlayerGroupAll(), false);
DialogControlHookup(libVLSK_gv_volskayaUI.lv_slideout_Container, c_triggerControlTypePanel, "ToastNotification");
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:901
libVLSK_gv_volskayaUI.lv_slideout_IconC = DialogControlLastCreated();
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "VolskayaMapMechanic/VolskayaOvertimePanel");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
libVLSK_gv_volskayaUI.lv_overtimeBar_Container = DialogControlLastCreated();
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:908
libVLSK_gv_volskayaUI.lv_overtimeBar_ProgressBar = DialogControlLastCreated();
DialogControlCreateInPanelFromTemplate(libUIUI_gv_mapMechanicsPanel.lv_mainPanel, c_triggerControlTypePanel, "VolskayaMapMechanic/VolskayaRobotHealthSlideout");
DialogControlSetObservedType(DialogControlLastCreated(), c_triggerObservedTypeDefaultObservedPlayerId);
DialogControlSetVisible(DialogControlLastCreated(), PlayerGroupAll(), false);
libVLSK_gv_volskayaUI.lv_robot_Container = DialogControlLastCreated();