# UI Frame Is Visible

GrammaruIFrame|UI Frame is visible for player player
FlagsNative | Function

Returns true if the specified UI frame is visible for the specified player.

# Arguments

Returns — bool

native bool UIFrameVisible(int inPlayer, int inFrameType);

Category: UI / Game UI

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:13949

    gf_MercDisplay(gt_CantinaMercLeave);
    CinematicFade(true, 0.1, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    while (!((UIFrameVisible(1, c_syncFrameTypeMercenaryPanel) == false))) {
        Wait(0.0625, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:13949

    gf_MercDisplay(gt_CantinaMercLeave);
    CinematicFade(true, 0.1, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
    while (!((UIFrameVisible(1, c_syncFrameTypeMercenaryPanel) == false))) {
        Wait(0.0625, c_timeGame);
    }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9976


        libCamp_gv_tS_StoryUIVisibilityCounter += 1;
        if ((UIFrameVisible(1, c_syncFrameTypeMenuBar) == true)) {
            libCamp_gv_tS_StoryUIVisibility_Menu[libCamp_gv_tS_StoryUIVisibilityCounter] = true;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9982

            libCamp_gv_tS_StoryUIVisibility_Menu[libCamp_gv_tS_StoryUIVisibilityCounter] = false;
        }
        if ((UIFrameVisible(1, c_syncFrameTypeCashPanel) == true)) {
            libCamp_gv_tS_StoryUIVisibility_Cash[libCamp_gv_tS_StoryUIVisibilityCounter] = true;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:9994

            libCamp_gv_tS_StoryUIVisibility_RoomChange[libCamp_gv_tS_StoryUIVisibilityCounter] = false;
        }
        if ((UIFrameVisible(1, c_syncFrameTypeTipAlertPanel) == true)) {
            libCamp_gv_tS_StoryUIVisibility_Tip[libCamp_gv_tS_StoryUIVisibilityCounter] = true;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12319

    // Conditions
    if (testConds) {
        if (!((UIFrameVisible(1, c_syncFrameTypeBattleReportPanel) == true))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12379

        }

        if (!((UIFrameVisible(1, c_syncFrameTypeBattleReportPanel) == true))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:12432

    // Conditions
    if (testConds) {
        if (!((UIFrameVisible(1, c_syncFrameTypeBattleReportPanel) == true))) {
            return false;
        }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13469

    }

    if ((UIFrameVisible(1, c_syncFrameTypeResearchPanel) == false)) {
        libNtve_gf_HideGameUI(false, PlayerGroupAll());
        UISetWorldVisible(PlayerGroupAll(), false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:13734

    }

    if ((UIFrameVisible(1, c_syncFrameTypeMercenaryPanel) == false)) {
        libNtve_gf_HideGameUI(false, PlayerGroupAll());
        UISetWorldVisible(PlayerGroupAll(), false);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:14140

    libCamp_gf_SetStoryCredits((libCamp_gf_StoryCredits() + lv_amount));
    PlayerModifyPropertyInt(1, c_playerPropCredits, c_playerPropOperSetTo, libCamp_gf_StoryCredits());
    if ((UIFrameVisible(1, c_syncFrameTypePurchasePanel) == true)) {
        libCamp_gf_TS_UpdateTechVisuals();
    }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4493


    if ((libNtve_gf_PlayerInCinematicMode(1) == false)) {
        if ((UIFrameVisible(1, c_syncFrameTypeConsolePanel) == true)) {
            libVCMI_gv_pM_ScreenMode = c_uiModeConsole;
        }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4983

            if (((GameMapIsBlizzard() == true) || (lv_indexFrame != c_syncFrameTypeBattleUI)) && (libNtve_gv__GameUIFrameFiltered[(lv_indexFrame)] == false)) {
                if ((lp_storeRestore == true)) {
                    if ((UIFrameVisible(lv_player, lv_indexFrame) == true)) {
                        libNtve_gv__GameUIVisible[lv_player][lv_indexFrame][(lp_index)] = true;
                    }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4228

            if (((GameMapIsBlizzard() == true) || (lv_indexFrame != c_syncFrameTypeBattleUI)) && (libNtve_gv__GameUIFrameFiltered[(lv_indexFrame)] == false)) {
                if ((lp_storeRestore == true)) {
                    if ((UIFrameVisible(lv_player, lv_indexFrame) == true)) {
                        libNtve_gv__GameUIVisible[lv_player][lv_indexFrame][(lp_index)] = true;
                    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:4559


    if ((libNtve_gf_PlayerInCinematicMode(1) == false)) {
        if ((UIFrameVisible(1, c_syncFrameTypeConsolePanel) == true)) {
            libNCMI_gv_nM_ScreenMode = c_uiModeConsole;
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:4597

    }

    while (!((libNCMI_gf_NM_CreditsCutsceneCreditsFinished() == true) && (UIFrameVisible(1, c_syncFrameTypeCreditsPanel) == true))) {
        Wait(0.1, c_timeGame);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:5597

    }

    while (!((libNCST_gf_NS_CreditsFinished() == true) && (UIFrameVisible(1, c_syncFrameTypeCreditsPanel) == true))) {
        Wait(0.1, c_timeGame);
    }