# Dialog Item Is Visible

GrammardialogItem is visible for player
FlagsNative | Function

Returns true if the dialog item is visible for the specified player.

# Arguments

  • int<control> — Dialog Item
  • int — Player

Returns — bool

native bool DialogControlIsVisible(
	int control,
	int player,
);

Category: Dialog / Dialog Items

# Examples

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2545

    while (true) {
        if ((libSwaC_gv_zS_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (libSwaC_gv_zS_GameOver == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libSwaC_gv_zS_SwarmHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[1], 1) == true) && (libSwaC_gv_zS_SwarmHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2545

    while (true) {
        if ((libSwaC_gv_zS_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (libSwaC_gv_zS_GameOver == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libSwaC_gv_zS_SwarmHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[1], 1) == true) && (libSwaC_gv_zS_SwarmHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2548

                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libSwaC_gv_zS_SwarmHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[1], 1) == true)) || ((libSwaC_gv_zS_SwarmHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2548

                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libSwaC_gv_zS_SwarmHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[1], 1) == true)) || ((libSwaC_gv_zS_SwarmHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2551

                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libSwaC_gv_zS_SwarmHeroUIPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[1], 1) == false)) && ((libSwaC_gv_zS_SwarmHeroUIPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "", PlayerGroupAll());
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2551

                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libSwaC_gv_zS_SwarmHeroUIPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[1], 1) == false)) && ((libSwaC_gv_zS_SwarmHeroUIPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libSwaC_gv_zS_SwarmHeroUIPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libSwaC_gv_zS_ObjectivePanel, "", PlayerGroupAll());
            }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2753

        }

        if ((DialogControlIsVisible(libSwaC_gv_zS_ProgressBarPanel, 1) == true)) {
            libSwaC_gf_ZS_UpdateProgressBar();
        }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1388

        lib281DEC45_gf_ZSS_UITravelUpdateSinglePlanet(lv_indexPlanet);
    }
    if ((lib281DEC45_gv_zSS_UITravelBGPortrait != c_invalidDialogControlId) && (lib281DEC45_gv_zSS_UITravelSelectedPlanet != 0) && (DialogControlIsVisible(lib281DEC45_gv_zSS_UITravelBGPortrait, 1) == true)) {
        PortraitWaitForLoad(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelBGPortrait));
    }

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:1393

    else {
    }
    if ((lib281DEC45_gv_zSS_UITravelSelectedPlanet != 0) && (DialogControlIsVisible(lib281DEC45_gv_zSS_UITravelContactPortrait, 1) == true)) {
        PortraitWaitForLoad(PortraitGetTriggerControl(lib281DEC45_gv_zSS_UITravelContactPortrait));
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4152

    while (true) {
        if ((libVCUI_gv_pU_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libVCUI_gv_pU_VoidHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[1], 1) == true) && (libVCUI_gv_pU_VoidHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4152

    while (true) {
        if ((libVCUI_gv_pU_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libVCUI_gv_pU_VoidHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[1], 1) == true) && (libVCUI_gv_pU_VoidHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4155

                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libVCUI_gv_pU_VoidHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[1], 1) == true)) || ((libVCUI_gv_pU_VoidHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "", PlayerGroupAll());
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4155

                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libVCUI_gv_pU_VoidHeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[1], 1) == true)) || ((libVCUI_gv_pU_VoidHeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "", PlayerGroupAll());
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4158

                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libVCUI_gv_pU_VoidHeroUIPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[1], 1) == false)) && ((libVCUI_gv_pU_VoidHeroUIPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "", PlayerGroupAll());
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4158

                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libVCUI_gv_pU_VoidHeroUIPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[1], 1) == false)) && ((libVCUI_gv_pU_VoidHeroUIPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libVCUI_gv_pU_VoidHeroUIPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libVCUI_gv_pU_ObjectivePanel, "", PlayerGroupAll());
            }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4218

        }

        if ((DialogControlIsVisible(libVCUI_gv_pU_ProgressBarPanel, 1) == true)) {
            libVCUI_gf_PU_UpdateProgressBar();
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:1908

            	lv_p = PlayerGroupNextPlayer(auto1FE062EF_g, lv_p);
            	if (lv_p<0) { break; }
            	if ((DialogControlIsVisible(libUIUI_gv_uIDebugPanel.lv_mainDialog, lv_p) == true)) {
                lv_playerIsUsingDebugPanel = true;
                break;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:11172

        	lv_p = PlayerGroupNextPlayer(auto45BE7191_g, lv_p);
        	if (lv_p<0) { break; }
        	if ((DialogControlIsVisible(libUIUI_gv_uIDebugPanel.lv_mainDialog, lv_p) == true)) {
            TextExpressionSetToken("Param/Expression/lib_UIUI_5C4FEBA6", "A", FixedToText(UnitGetPropertyFixed(UnitGroupUnit(UnitGroupSelected(lv_p), 1), c_unitPropXP, c_unitPropCurrent), 0));
            libNtve_gf_SetDialogItemText(libUIUI_gv_uIDebugPanel.lv_xPLabel, TextExpressionAssemble("Param/Expression/lib_UIUI_5C4FEBA6"), libCore_gv_playerGroupFromPlayer[lv_p]);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:13712

    }

    if ((DialogControlIsVisible(libUIUI_gv_uIDebugPanel.lv_mainDialog, EventPlayer()) == false)) {
        libUIUI_gf_UIDebugPanelShowHideDebugPanelForPlayer(true, EventPlayer());
    }

mods/missionpacks/campaigncommon.sc2modbase.sc2data/LibCMUI.galaxy:83

        }

        if ((DialogControlIsVisible(libCMUI_gv_cU_ProgressBarPanel, 1) == true)) {
            libCMUI_gf_CU_UpdateProgressBar();
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1230

    }

    if ((DialogControlIsVisible(libNCUI_gv_nU_MissionManagementEquipmentButton, 1) == true) && (libNovC_gf_NC_PerkNewEquipmentAvailable() == true)) {
        libNCUI_gf_NU_DialogItemNewStateSet(libNCUI_gv_nU_MissionManagementEquipmentButton, libNCUI_ge_NU_DialogItemNewState_NewItem);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:1236

        libNCUI_gf_NU_DialogItemNewStateSet(libNCUI_gv_nU_MissionManagementEquipmentButton, libNCUI_ge_NU_DialogItemNewState_NoNewItem);
    }
    if ((libNCUI_gf_NU_NextAvailableMission() != "Nova07") && (DialogControlIsVisible(libNCUI_gv_nU_MissionManagementUpgradesButton, 1) == true) && (libNovC_gf_NC_ArmyTechItemNewItemsAvailable() == true)) {
        libNCUI_gf_NU_DialogItemNewStateSet(libNCUI_gv_nU_MissionManagementUpgradesButton, libNCUI_ge_NU_DialogItemNewState_NewItem);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3645

    while (true) {
        if ((libNCUI_gv_NU_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libNCUI_gv_nU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[1], 1) == true) && (libNCUI_gv_nU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3645

    while (true) {
        if ((libNCUI_gv_NU_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libNCUI_gv_nU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[1], 1) == true) && (libNCUI_gv_nU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3648

                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libNCUI_gv_nU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[1], 1) == true)) || ((libNCUI_gv_nU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "", PlayerGroupAll());
            }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3648

                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libNCUI_gv_nU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[1], 1) == true)) || ((libNCUI_gv_nU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "", PlayerGroupAll());
            }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3651

                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libNCUI_gv_nU_HeroPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[1], 1) == false)) && ((libNCUI_gv_nU_HeroPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "", PlayerGroupAll());
            }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCUI.galaxy:3651

                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libNCUI_gv_nU_HeroPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[1], 1) == false)) && ((libNCUI_gv_nU_HeroPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libNCUI_gv_nU_HeroPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libNCUI_gv_NU_ObjectivePanel, "", PlayerGroupAll());
            }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNovC.galaxy:462

    lv_armyUnitIndex = 1;
    for ( ; ( (autoE6F121B0_ai >= 0 && lv_armyUnitIndex <= autoE6F121B0_ae) || (autoE6F121B0_ai <= 0 && lv_armyUnitIndex >= autoE6F121B0_ae) ) ; lv_armyUnitIndex += autoE6F121B0_ai ) {
        if ((libNtve_gf_DialogItemIsChecked(libNovC_gv_nC_DebugCampaignTechUpgradesCheckBox[lv_armyUnitIndex], 1) == true) && (DialogControlIsVisible(libNovC_gv_nC_DebugCampaignTechUpgradesCheckBox[lv_armyUnitIndex], 1) == true)) {
            libNovC_gv_nC_DebugCampaignTechUpgradesAssignedUnitList[lp_upgradeItemIndex] = libNovC_gf_NC_ArmyTechItemUnitFromIndex(lp_activeUpgradeItem, lv_armyUnitIndex);
            libNtve_gf_SetDialogItemText(libNovC_gv_nC_DebugCampaignTechUpgradesAssignedUnitLabelList[lp_upgradeItemIndex], StringToText((libNovC_gv_nC_DebugCampaignTechUpgradesAssignedUnitList[lp_upgradeItemIndex])), PlayerGroupAll());

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3226

    while (true) {
        if ((libCOUI_gv_cU_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (libCOMI_gf_GameIsOver() == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libCOUI_gv_cU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[1], 1) == true) && (libCOUI_gv_cU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3226

    while (true) {
        if ((libCOUI_gv_cU_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (libCOMI_gf_GameIsOver() == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libCOUI_gv_cU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[1], 1) == true) && (libCOUI_gv_cU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3229

                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libCOUI_gv_cU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[1], 1) == true)) || ((libCOUI_gv_cU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3229

                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libCOUI_gv_cU_HeroPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[1], 1) == true)) || ((libCOUI_gv_cU_HeroPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3232

                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libCOUI_gv_cU_HeroPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[1], 1) == false)) && ((libCOUI_gv_cU_HeroPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "", PlayerGroupAll());
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3232

                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libCOUI_gv_cU_HeroPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[1], 1) == false)) && ((libCOUI_gv_cU_HeroPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libCOUI_gv_cU_HeroPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libCOUI_gv_cU_ObjectivePanel, "", PlayerGroupAll());
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:3294

        }

        if ((DialogControlIsVisible(libCOUI_gv_cU_ProgressBarPanel, 1) == true)) {
            libCOUI_gf_CU_UpdateProgressBar();
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:4705


    libCOUI_gv_cU_GPButtonHighlighted[lp_slot][lp_player] = lp_on;
    if ((lp_on == true) && (DialogControlIsVisible(libCOUI_gv_cU_GPPanel[lp_player], lp_player) == true)) {
        DialogControlSetVisible(libCOUI_gv_cU_GPCmdButtonArrows[lp_slot][lp_player], PlayerGroupSingle(lp_player), true);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:4716

    // Automatic Variable Declarations
    // Implementation
    if (((PlayerRace(lp_player) != "Prot") || (libCOOC_gf_ActiveCommanderForPlayer(lp_player) == "ProtossAlarak") || (libCOOC_gf_ActiveCommanderForPlayer(lp_player) == "ProtossFenix") || (DialogControlIsVisible(libCOUI_gv_cU_GPCmdPanel[lp_player], lp_player) == false))) {
        return ;
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOUI.galaxy:8750


    while (true) {
        if ((libCOUI_gv_cU_BB_Panel != c_invalidDialogControlId) && ((DialogControlIsVisible(libCOUI_gv_cU_BB_Panel, 1) == true) || (DialogControlIsVisible(libCOUI_gv_cU_BB_Panel, 2) == true))) {
            TimerWindowSetAnchor(libCOUI_gv_cU_TimerWindow, c_anchorTopRight, 0, 175);
        }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1539

    while (true) {
        if ((libA3DDD02B_gv_pP_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (libA3DDD02B_gv_pP_GameOver == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libA3DDD02B_gv_pP_HeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[1], 1) == true) && (libA3DDD02B_gv_pP_HeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1539

    while (true) {
        if ((libA3DDD02B_gv_pP_ObjectivePanel != c_invalidDialogControlId) && (libNtve_gf_PlayerInCinematicMode(1) == false) && (libA3DDD02B_gv_pP_GameOver == false)) {
            if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (libA3DDD02B_gv_pP_HeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[1], 1) == true) && (libA3DDD02B_gv_pP_HeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[2], 1) == true)) {
                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1542

                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libA3DDD02B_gv_pP_HeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[1], 1) == true)) || ((libA3DDD02B_gv_pP_HeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1542

                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMaskTwoHeroes", PlayerGroupAll());
            }
            else if ((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == true) && (((libA3DDD02B_gv_pP_HeroUIPanel[1] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[1], 1) == true)) || ((libA3DDD02B_gv_pP_HeroUIPanel[2] != c_invalidDialogControlId) && (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[2], 1) == true)))) {
                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1545

                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libA3DDD02B_gv_pP_HeroUIPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[1], 1) == false)) && ((libA3DDD02B_gv_pP_HeroUIPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "", PlayerGroupAll());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1545

                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "@UI/ObjectivePanelMask", PlayerGroupAll());
            }
            else if (((PortraitVisible(libNtve_gf_CinematicPortrait(libNtve_ge_CinematicPortraitPosition_CenterLeft), 1) == false) || (((libA3DDD02B_gv_pP_HeroUIPanel[1] == c_invalidDialogControlId) || (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[1], 1) == false)) && ((libA3DDD02B_gv_pP_HeroUIPanel[2] == c_invalidDialogControlId) || (DialogControlIsVisible(libA3DDD02B_gv_pP_HeroUIPanel[2], 1) == false))))) {
                libNtve_gf_SetDialogItemAlphaMask(libA3DDD02B_gv_pP_ObjectivePanel, "", PlayerGroupAll());
            }

mods/voidprologue.sc2modbase.sc2data/LibA3DDD02B.galaxy:1744

        }

        if ((DialogControlIsVisible(libA3DDD02B_gv_pP_ProgressBarPanel, 1) == true)) {
            libA3DDD02B_gf_PP_UpdateProgressBar();
        }