# Move Boss Bar
Grammar — Move boss bar bossBarID to anchor of screen with offset (offsetX, offsetY)
Flags —Action
Moves the specified boss bar to the specified coordinates.
# Arguments
int
— BossBarIDint
<preset::Anchor> — Anchorint
— OffsetXint
— OffsetY
Returns — void
void libNtve_gf_MoveBossBar(
int lp_bossBarID,
int lp_anchor,
int lp_offsetX,
int lp_offsetY,
);
# 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:1211
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
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/thorner03.sc2map/MapScript.galaxy:1272
libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);
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);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1821
libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
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);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7294
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
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);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1211
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
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/thorner03.sc2map — MapScript.galaxy:1272
libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);
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);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:1821
libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
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);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:7294
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
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);