Health and mana icons are snapped to pixel values. Release Build 12316
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 6m51s
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 6m51s
This commit is contained in:
parent
ab73a88df6
commit
fb5a72267c
@ -2008,9 +2008,9 @@ void AiL::RenderHud(){
|
||||
if(player->GetShield()>0)heartImg=GFX["shield_heart.png"].Decal();
|
||||
int healthRatio{int((float(healthCounter.GetDisplayValue())/player->GetMaxHealth())*100)};
|
||||
int manaRatio{int((float(manaCounter.GetDisplayValue())/player->GetMaxMana())*100)};
|
||||
DrawPartialDecal(vf2d{2.f,2+(15*(100-healthRatio))/100.f},const_cast<Decal*>(heartImg),vf2d{0.f,15*(100-healthRatio)/100.f},vf2d{17.f,15*healthRatio/100.f});
|
||||
DrawPartialDecal(vi2d{2,2+int((15*(100-healthRatio))/100.f)},const_cast<Decal*>(heartImg),vi2d{0,int(15*(100-healthRatio)/100.f)},vi2d{17,int(15*healthRatio/100.f)});
|
||||
DrawDecal({2,20},GFX["mana_outline.png"].Decal());
|
||||
DrawPartialDecal(vf2d{2,20+(15*(100-manaRatio))/100.f},GFX["mana.png"].Decal(),vf2d{0.f,15*(100-manaRatio)/100.f},vf2d{17,15*manaRatio/100.f});
|
||||
DrawPartialDecal(vi2d{2,20+int((15*(100-manaRatio))/100.f)},GFX["mana.png"].Decal(),vi2d{0,int(15*(100-manaRatio)/100.f)},vi2d{17,int(15*manaRatio/100.f)});
|
||||
std::string text=player->GetHealth()>0?std::to_string(healthCounter.GetDisplayValue()+shieldCounter.GetDisplayValue()):"X";
|
||||
std::string text_mana=std::to_string(manaCounter.GetDisplayValue());
|
||||
|
||||
|
||||
@ -16,8 +16,6 @@ For Demo Branch:
|
||||
Cherry pick b715dd994d4921e9be1811ceb7eb84120a5e6455 from MiscFixes
|
||||
Cherry pick f398adcde6bb5f8c3c0581f13f18e73d4417a46c from ConnectionPointFixes
|
||||
|
||||
Fragment rock for disassembly
|
||||
|
||||
DEMO
|
||||
====
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ All rights reserved.
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 3
|
||||
#define VERSION_PATCH 0
|
||||
#define VERSION_BUILD 12314
|
||||
#define VERSION_BUILD 12316
|
||||
|
||||
#define stringify(a) stringify_(a)
|
||||
#define stringify_(a) #a
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user