Working on health bar
This commit is contained in:
1 parent
8552725dfc
commit
22b0e1992f
12 files changed
+121
-57
No files matched your search
@@ -67,6 +67,9 @@ namespace ZL {
|
||||
void advanceUniIntDarklandsHud();
|
||||
void onPlayerStartedWalking();
|
||||
|
||||
// Called by Game when the player's HP changes. Stores values and updates HUD.
|
||||
void updateHealthBar(float hp, float maxHp);
|
||||
|
||||
TutorialStep tutorialStep = TutorialStep::Step0;
|
||||
|
||||
protected:
|
||||
@@ -130,6 +133,10 @@ namespace ZL {
|
||||
std::shared_ptr<Texture> texItemSelected_;
|
||||
std::shared_ptr<Texture> texItemTransparent_;
|
||||
|
||||
float currentPlayerHp_ = 200.f;
|
||||
float currentPlayerMaxHp_ = 200.f;
|
||||
void applyCurrentHealthBar();
|
||||
|
||||
int selectedQuestIndex = -1;
|
||||
std::vector<std::string> visibleQuestIds;
|
||||
|
||||
|
||||
Reference in new issue
Block a user