Skip to main content

Bars

Displays health and mana bars above enemy units that are hidden in the fog of war or are under certain effects.


Visual (ะ’ะธะทัƒะฐะปั‹)  โ†’  Bars (ะ‘ะฐั€ั‹)

What it doesโ€‹

The script draws a health bar and a mana bar above enemy units in cases where the standard Dota 2 interface does not show them.

When bars are displayedโ€‹

Bars are shown if at least one of the following conditions is met:

  • The unit is visible but under a certain buff from the list:
    • modifier_tiny_toss (tossed by Tiny),
    • modifier_eul_cyclone (caught by Eul's Scepter),
    • modifier_wind_waker (Wind Waker),
    • modifier_monkey_king_transform (Monkey King transformation),
    • modifier_phantom_assassin_blur_active (Phantom Assassin evasion),
    • modifier_dark_willow_shadow_realm_buff (Dark Willow Shadow Realm).
  • The unit is hidden in the fog but its position is known โ€” via IsFogVisible (for example, recently went out of sight), or the unit is performing a teleport (two bars are shown: at the start point and at the destination point).

If the unit is completely invisible and not teleporting, no bars are drawn.

Which units are trackedโ€‹

  • Enemy heroes.
  • Spirit Bear (Lone Druid's bear) โ€” while it is alive and respawning.
  • Enemy Visage familiars and Brewmaster elementals (storm, void, earth).
  • Illusions are ignored (only strong illusions, IsStrongIllusion, are taken into account).

Health barโ€‹

  • Filled with red, with a black background.
  • To the left of the bar, the hero icon is shown (28ร—28 pixels).
  • To the right of the bar, the unit's level on a brown background.
  • The text above the bar shows HP in the selected format: only the current value or current/maximum.

Mana barโ€‹

  • Drawn below the health bar (flush against it, with a 1-pixel gap).
  • The background color and fill color are user-configurable.
  • The text shows MP in the selected format.

Settingsโ€‹

Healthโ€‹

OptionTypeDefaultDescription
StateToggleOffEnables/disables the display of the health bar.
TextDropdownHP/MaxHPNumber format above the bar: Only HP โ€” current HP only; HP/MaxHP โ€” current and maximum.

Manaโ€‹

OptionTypeDefaultDescription
StateToggleOffEnables/disables the display of the mana bar.
TextDropdownOnly MPNumber format above the bar: Only MP โ€” current mana only; MP/MaxMP โ€” current and maximum.
Inside colorColor pickerโฌ› BlackBackground color of the mana bar (empty part).
Fill colorColor picker๐ŸŸฆ Blue (#4F78FA)Color of the filled part of the mana bar.