# Dialog Is Visible
Grammar — dialog is visible for player
Flags —Native
|Function
Returns true if the dialog is visible.
# Arguments
int
<dialog> — Dialogint
— Player
Returns — bool
native bool DialogIsVisible(int dialog, int player);
# Related
Category: Dialog / Dialogs
- Create Dialog —
int
<dialog> — DialogCreate - Show/Hide Dialog —
void
— DialogSetVisible - Set Dialog Title —
void
— DialogSetTitle - Last Created Dialog —
int
<dialog> — DialogLastCreated - Dialog Is Visible —
bool
— DialogIsVisible - Dialog Title —
text
— DialogGetTitle
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:5757
// Automatic Variable Declarations
// Implementation
return ((libCamp_gv_tS_RoomChangeDialog != c_invalidDialogId) && DialogIsVisible(libCamp_gv_tS_RoomChangeDialog, 1));
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7421
}
if ((libSwaC_gv_zS_ArmyCustomEggRoomDialog != c_invalidDialogId) && (DialogIsVisible(libSwaC_gv_zS_ArmyCustomEggRoomDialog, 1) == false)) {
DialogSetVisible(libSwaC_gv_zS_ArmyCustomEggRoomDialog, PlayerGroupAll(), true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8550
auto3A414717_ai = auto3A414717_ai + 1;
}
if ((libSwaC_gv_zS_ArmyCustomUpgradeDialog != c_invalidDialogId) && (DialogIsVisible(libSwaC_gv_zS_ArmyCustomUpgradeDialog, 1) == false)) {
DialogSetVisible(libSwaC_gv_zS_ArmyCustomUpgradeDialog, PlayerGroupAll(), true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8594
// Automatic Variable Declarations
// Implementation
if ((libSwaC_gv_zS_ArmyCustomUpgradeDialog != c_invalidDialogId) && (DialogIsVisible(libSwaC_gv_zS_ArmyCustomUpgradeDialog, 1) == true)) {
DialogSetVisible(libSwaC_gv_zS_ArmyCustomUpgradeDialog, PlayerGroupAll(), false);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8904
libSwaC_gf_ZS_ArmyCustomEvolutionUIUpdate();
if ((libSwaC_gv_zS_ArmyCustomEvolutionDialog != c_invalidDialogId) && (DialogIsVisible(libSwaC_gv_zS_ArmyCustomEvolutionDialog, 1) == false)) {
DialogSetVisible(libSwaC_gv_zS_ArmyCustomEvolutionDialog, PlayerGroupAll(), true);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:9129
// Automatic Variable Declarations
// Implementation
if ((libSwaC_gv_zS_ArmyCustomEvolutionDialog != c_invalidDialogId) && (DialogIsVisible(libSwaC_gv_zS_ArmyCustomEvolutionDialog, 1) == true)) {
DialogSetVisible(libSwaC_gv_zS_ArmyCustomEvolutionDialog, PlayerGroupAll(), false);
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:2889
// Implementation
if ((lp_onOff == true) && (lib281DEC45_gv_zSS_ScreenDialog != c_invalidDialogId) && (DialogIsVisible(lib281DEC45_gv_zSS_ScreenDialog, 1) == false) && (lib281DEC45_gf_CurrentRoom() != lib281DEC45_ge_Rooms_StoryRoomEggRoom)) {
return ;
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:7329
}
if (!((DialogIsVisible(lib281DEC45_gv_zSS_DebugSceneDialog, 1) == true))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2922
}
if (!((DialogIsVisible(gv_moveOrderDirective, gv_p01_USER) == false))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3595
// Conditions
if (testConds) {
if (!(((libNtve_gf_ScreenImageDialog(16) == c_invalidDialogId) || (DialogIsVisible(libNtve_gf_ScreenImageDialog(16), gv_p01_USER) == false)))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:2922
}
if (!((DialogIsVisible(gv_moveOrderDirective, gv_p01_USER) == false))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3595
// Conditions
if (testConds) {
if (!(((libNtve_gf_ScreenImageDialog(16) == c_invalidDialogId) || (DialogIsVisible(libNtve_gf_ScreenImageDialog(16), gv_p01_USER) == false)))) {
return false;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6307
TriggerEnable(libVCMI_gt_PS_GameCheat_CheckboxUsed, false);
libVCMI_gv_pM_GameCheat_CheatState[auto731EB4A6_var] = !(libVCMI_gv_pM_GameCheat_CheatState[auto731EB4A6_var]);
if ((libVCMI_gv_pM_GameCheat_Dialog != c_invalidDialogId) && (DialogIsVisible(libVCMI_gv_pM_GameCheat_Dialog, 1) == true)) {
if ((libVCMI_gv_pM_GameCheat_CheatState[auto731EB4A6_var] == true)) {
libNtve_gf_SetDialogItemChecked(libVCMI_gv_pM_GameCheat_CheckBox[auto731EB4A6_var], true, PlayerGroupSingle(1));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:2741
}
if ((DialogIsVisible(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, EventPlayer()) == false)) {
DialogSetVisible(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, libCore_gv_playerGroupFromPlayer[EventPlayer()], true);
libSprt_gv_qACheatsSelectedUnit = UnitGroupUnit(UnitGroupFilterPlayer(libGame_gv_players[EventPlayer()].lv_heroUnitGroup, EventPlayer(), 0), 1);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:3316
}
if (!((DialogIsVisible(libSprt_gv_qACheatsControlsPanel.lv_mainDialog, EventPlayer()) == true))) {
return false;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:5243
TriggerEnable(libNCMI_gt_NS_GameCheat_CheckboxUsed, false);
libNCMI_gv_NM_GameCheat_CheatState[IntLoopCurrent()] = !(libNCMI_gv_NM_GameCheat_CheatState[IntLoopCurrent()]);
if ((libNCMI_gv_NM_GameCheat_Dialog != c_invalidDialogId) && (DialogIsVisible(libNCMI_gv_NM_GameCheat_Dialog, 1) == true)) {
if ((libNCMI_gv_NM_GameCheat_CheatState[IntLoopCurrent()] == true)) {
libNtve_gf_SetDialogItemChecked(libNCMI_gv_NM_GameCheat_CheckBox[IntLoopCurrent()], true, PlayerGroupSingle(1));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6323
}
libCOUI_gf_CU_MutatorDisplay(EventPlayer());
while (!(((libCOUI_gv_cU_MutatorDialog == c_invalidDialogId) || (DialogIsVisible(libCOUI_gv_cU_MutatorDialog, EventPlayer()) == false)))) {
Wait(0.5, c_timeGame);
}