# Show/Hide Boss Bar
Grammar — showHide boss bar bossBarID
Flags —Action
Shows or hides the specified boss bar.
# Arguments
bool
<preset::ShowHideOption> — Show/Hideint
— BossBarID
Returns — void
void libNtve_gf_ShowHideBossBar(
bool lp_showHide,
int lp_bossBarID,
);
# Related
Category: UI / Boss Bar
- Display Boss Bar —
void
— libNtve_gf_DisplayBossBar - Set Boss Bar Maximum Value —
void
— libNtve_gf_SetBossBarMaximumValue - Set Boss Bar Current Value —
void
— libNtve_gf_SetBossBarCurrentValue - Set Boss Bar Boss —
void
— libNtve_gf_SetBossBarBoss - Boss Bar Race — preset —
int
- Set Boss Bar Race —
void
— libNtve_gf_SetBossBarRace - Move Boss Bar —
void
— libNtve_gf_MoveBossBar - Show/Hide Boss Bar —
void
— libNtve_gf_ShowHideBossBar - Refresh Boss Bar —
void
— libNtve_gf_RefreshBossBar
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1127
Wait(libCamp_gv_campaignObjectiveDelay, c_timeGame);
TriggerExecute(gt_ObjectiveDestroyPurifierCreateQ, true, false);
libNtve_gf_ShowHideBossBar(true, gv_purifierBossBar);
UnitBehaviorRemove(gv_purifier, "InvulnerabilityShield", 1);
libNtve_gf_MakeUnitInvulnerable(gv_purifier, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1212
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:5269
TriggerEnable(TriggerGetCurrent(), false);
gv_gameOver = true;
libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
libNtve_gf_ChangeUnitDamage(UnitFromId(2722), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
libNtve_gf_ChangeUnitDamage(UnitFromId(1678), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2208
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-dominiontrain.dds", StringExternal("Param/Value/4BBDDE07"), 100, PlayerGroupAll());
libNtve_gf_SetBossBarRace(1, libNtve_ge_BossBarRace_Terran, true);
libNtve_gf_ShowHideBossBar(false, 1);
while (true) {
Wait(1.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2212
Wait(1.0, c_timeGame);
if ((gv_gameOver == true)) {
libNtve_gf_ShowHideBossBar(false, 1);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2217
if ((UnitIsAlive(gv_trainList[gv_trainBossBarIndex].lv_trainCars[1]) == true) && (gv_inCinematic == false)) {
libNtve_gf_ShowHideBossBar(true, 1);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2220
}
else {
libNtve_gf_ShowHideBossBar(false, 1);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2442
}
else {
libNtve_gf_ShowHideBossBar(false, 1);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1273
libNtve_gf_SetBossBarBoss(gv_odinBossBar, UnitFromId(2), true);
libNtve_gf_MoveBossBar(gv_odinBossBar, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(true, gv_odinBossBar);
TriggerEnable(gt_OdinLowHealthWarning, true);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4443
libNtve_gf_MakeUnitInvulnerable(UnitFromId(2), true);
Wait(5.0, c_timeGame);
libNtve_gf_ShowHideBossBar(false, gv_odinBossBar);
TriggerExecute(gt_ObjectiveDestroyDominionBasesComplete, true, true);
libCamp_gf_RunMissionVictorySequence(gt_VictoryQ);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4523
TriggerEnable(TriggerGetCurrent(), false);
gv_gameOver = true;
libNtve_gf_ShowHideBossBar(false, gv_odinBossBar);
TriggerEnable(gt_OdinLowHealthWarning, false);
TriggerQueuePause(true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4563
TriggerEnable(TriggerGetCurrent(), false);
gv_gameOver = true;
libNtve_gf_ShowHideBossBar(false, gv_odinBossBar);
TriggerEnable(gt_OdinLowHealthWarning, false);
TriggerQueuePause(true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1823
libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
libNtve_gf_SetBossBarRace(gv_templeDoorBossBar, libNtve_ge_BossBarRace_Protoss, true);
libNtve_gf_ShowHideBossBar(true, gv_templeDoorBossBar);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:4331
libNtve_gf_ChangeUnitDamage(gv_tHEONEDRILL, libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(EventUnit()), c_animNameDefault, "Stand D End", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
libNtve_gf_ShowHideBossBar(false, gv_templeDoorBossBar);
TriggerStop(gt_AIEndSuicide);
gv_gameOver = true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:4418
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_ShowHideBossBar(false, gv_templeDoorBossBar);
gv_gameOver = true;
TriggerExecute(gt_DetermineRemainingProtoss, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7295
libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(true, gv__3QueenBossBarIndex);
TriggerEnable(gt__3UpdateQueenBossyBar, true);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7443
TriggerEnable(gt__3UpdateQueenBossyBar, false);
TriggerEnable(gt_SeismicChargeAtHalfHealthQ, false);
libNtve_gf_ShowHideBossBar(false, gv__3QueenBossBarIndex);
PingDestroy(gv__3QueenPing);
auto1B452B0B_g = UnitGroup(null, gv_p1_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1127
Wait(libCamp_gv_campaignObjectiveDelay, c_timeGame);
TriggerExecute(gt_ObjectiveDestroyPurifierCreateQ, true, false);
libNtve_gf_ShowHideBossBar(true, gv_purifierBossBar);
UnitBehaviorRemove(gv_purifier, "InvulnerabilityShield", 1);
libNtve_gf_MakeUnitInvulnerable(gv_purifier, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1212
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:5269
TriggerEnable(TriggerGetCurrent(), false);
gv_gameOver = true;
libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
libNtve_gf_ChangeUnitDamage(UnitFromId(2722), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
libNtve_gf_ChangeUnitDamage(UnitFromId(1678), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:2208
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-dominiontrain.dds", StringExternal("Param/Value/4BBDDE07"), 100, PlayerGroupAll());
libNtve_gf_SetBossBarRace(1, libNtve_ge_BossBarRace_Terran, true);
libNtve_gf_ShowHideBossBar(false, 1);
while (true) {
Wait(1.0, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:2212
Wait(1.0, c_timeGame);
if ((gv_gameOver == true)) {
libNtve_gf_ShowHideBossBar(false, 1);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:2217
if ((UnitIsAlive(gv_trainList[gv_trainBossBarIndex].lv_trainCars[1]) == true) && (gv_inCinematic == false)) {
libNtve_gf_ShowHideBossBar(true, 1);
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:2220
}
else {
libNtve_gf_ShowHideBossBar(false, 1);
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:2442
}
else {
libNtve_gf_ShowHideBossBar(false, 1);
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2map — MapScript.galaxy:1273
libNtve_gf_SetBossBarBoss(gv_odinBossBar, UnitFromId(2), true);
libNtve_gf_MoveBossBar(gv_odinBossBar, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(true, gv_odinBossBar);
TriggerEnable(gt_OdinLowHealthWarning, true);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2map — MapScript.galaxy:4443
libNtve_gf_MakeUnitInvulnerable(UnitFromId(2), true);
Wait(5.0, c_timeGame);
libNtve_gf_ShowHideBossBar(false, gv_odinBossBar);
TriggerExecute(gt_ObjectiveDestroyDominionBasesComplete, true, true);
libCamp_gf_RunMissionVictorySequence(gt_VictoryQ);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2map — MapScript.galaxy:4523
TriggerEnable(TriggerGetCurrent(), false);
gv_gameOver = true;
libNtve_gf_ShowHideBossBar(false, gv_odinBossBar);
TriggerEnable(gt_OdinLowHealthWarning, false);
TriggerQueuePause(true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2map — MapScript.galaxy:4563
TriggerEnable(TriggerGetCurrent(), false);
gv_gameOver = true;
libNtve_gf_ShowHideBossBar(false, gv_odinBossBar);
TriggerEnable(gt_OdinLowHealthWarning, false);
TriggerQueuePause(true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:1823
libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
libNtve_gf_SetBossBarRace(gv_templeDoorBossBar, libNtve_ge_BossBarRace_Protoss, true);
libNtve_gf_ShowHideBossBar(true, gv_templeDoorBossBar);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:4331
libNtve_gf_ChangeUnitDamage(gv_tHEONEDRILL, libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_No);
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(EventUnit()), c_animNameDefault, "Stand D End", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);
libNtve_gf_ShowHideBossBar(false, gv_templeDoorBossBar);
TriggerStop(gt_AIEndSuicide);
gv_gameOver = true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:4418
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_ShowHideBossBar(false, gv_templeDoorBossBar);
gv_gameOver = true;
TriggerExecute(gt_DetermineRemainingProtoss, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7295
libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(true, gv__3QueenBossBarIndex);
TriggerEnable(gt__3UpdateQueenBossyBar, true);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7443
TriggerEnable(gt__3UpdateQueenBossyBar, false);
TriggerEnable(gt_SeismicChargeAtHalfHealthQ, false);
libNtve_gf_ShowHideBossBar(false, gv__3QueenBossBarIndex);
PingDestroy(gv__3QueenPing);
auto1B452B0B_g = UnitGroup(null, gv_p1_USER, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);