# Dialog Item Is Enabled
Grammar — dialogItem is enabled for player
Flags —Native
|Function
Returns true if the dialog item is enabled for the specified player.
# Arguments
int
<control> — Dialog Itemint
— Player
Returns — bool
native bool DialogControlIsEnabled(
int control,
int player,
);
# 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/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:5170
}
if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer()) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:5286
}
if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer()) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9867
}
if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_startGameButton, EventPlayer()) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9902
}
if (!((DialogControlIsEnabled(libUIUI_gv_uIDebugPanel.lv_spawnCreepCampsButton, EventPlayer()) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10670
}
if (!((DialogControlIsEnabled(EventDialogControl(), lv_triggeringPlayer) == true))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10713
}
if (!((DialogControlIsEnabled(EventDialogControl(), lv_triggeringPlayer) == true))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1422
}
if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button1, gv_pLAYER_01_USER) == false)) {
if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer1) < 0.1)) {
DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel1, PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1434
}
if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button2, gv_pLAYER_01_USER) == false)) {
if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer2) < 0.1)) {
DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel2, PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1446
}
if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button3, gv_pLAYER_01_USER) == false)) {
if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer3) < 0.1)) {
DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel3, PlayerGroupAll(), false);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1574
}
if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
return false;
}
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:1637
}
if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:1422
}
if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button1, gv_pLAYER_01_USER) == false)) {
if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer1) < 0.1)) {
DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel1, PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:1434
}
if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button2, gv_pLAYER_01_USER) == false)) {
if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer2) < 0.1)) {
DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel2, PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:1446
}
if ((DialogControlIsEnabled(gv_gorgonDialog.lv_button3, gv_pLAYER_01_USER) == false)) {
if ((TimerGetRemaining(gv_gorgonDialog.lv_gorgonTimer3) < 0.1)) {
DialogControlSetVisible(gv_gorgonDialog.lv_timeLabel3, PlayerGroupAll(), false);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:1574
}
if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
return false;
}
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:1637
}
if (!((DialogControlIsEnabled(EventDialogControl(), 1) == true))) {
return false;
}