Use the new meter from latest update.
This commit is contained in:
parent
d6b7dc33e1
commit
8f65e882ac
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ namespace gui {
|
|||
auto gui_id = $gui.entity(key);
|
||||
|
||||
if(auto meter = $gui.get_if<Meter>(gui_id)) {
|
||||
meter->percent = float(value) / float(player_combat.max_hp);
|
||||
meter->update_percent(float(value) / float(player_combat.max_hp));
|
||||
|
||||
if(meter->percent < 0.2) {
|
||||
meter->color = sf::Color(220, 10, 10, 255);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue