# Display Boss Bar
Grammar — Display boss bar bossBarID with title title, portrait portrait and maximum value max for players
Flags —Action
Creates and shows a boss bar near the top of the screen.
# Arguments
int
— BossBarIDstring
[ filepath ] — Portraittext
— Titleint
— Maxplayergroup
— Players
Returns — void
void libNtve_gf_DisplayBossBar(
int lp_bossBarID,
string lp_portrait,
text lp_title,
int lp_max,
playergroup lp_players,
);
# Related
Category: UI / Boss Bar
- [F] —
void
— Display Boss Bar — ( libNtve_gf_DisplayBossBar ) - [F] —
void
— Set Boss Bar Maximum Value — ( libNtve_gf_SetBossBarMaximumValue ) - [F] —
void
— Set Boss Bar Current Value — ( libNtve_gf_SetBossBarCurrentValue ) - [F] —
void
— Set Boss Bar Boss — ( libNtve_gf_SetBossBarBoss ) - [P] — Boss Bar Race
- [F] —
void
— Set Boss Bar Race — ( libNtve_gf_SetBossBarRace ) - [F] —
void
— Move Boss Bar — ( libNtve_gf_MoveBossBar ) - [F] —
void
— Show/Hide Boss Bar — ( libNtve_gf_ShowHideBossBar ) - [F] —
void
— Refresh Boss Bar — ( libNtve_gf_RefreshBossBar )
# Examples
# campaigns/liberty.sc2campaign
// L1206
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-protoss-mothership.dds", StringExternal("Param/Value/8B755AF6"), FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), PlayerGroupAll())
// L2206
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-dominiontrain.dds", StringExternal("Param/Value/4BBDDE07"), 100, PlayerGroupAll())
// L1266
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-thor.dds", StringExternal("Param/Value/F6112D1D"), 100, PlayerGroupAll())
// L1816
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-tips-relicshrine.dds", StringExternal("Param/Value/7AE87D2E"), 100, PlayerGroupAll())
// L7290
libNtve_gf_DisplayBossBar(gv__3QueenBossBarIndex, "Assets\\Textures\\btn-unit-zerg-queen.dds", StringExternal("Param/Value/070AAF64"), 100, PlayerGroupAll())
// L1206
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-protoss-mothership.dds", StringExternal("Param/Value/8B755AF6"), FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), PlayerGroupAll())
// L2206
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-dominiontrain.dds", StringExternal("Param/Value/4BBDDE07"), 100, PlayerGroupAll())
// L1266
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-thor.dds", StringExternal("Param/Value/F6112D1D"), 100, PlayerGroupAll())
// L1816
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-tips-relicshrine.dds", StringExternal("Param/Value/7AE87D2E"), 100, PlayerGroupAll())
// L7290
libNtve_gf_DisplayBossBar(gv__3QueenBossBarIndex, "Assets\\Textures\\btn-unit-zerg-queen.dds", StringExternal("Param/Value/070AAF64"), 100, PlayerGroupAll())