the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class IUIScene_HUD
4{
5protected:
6 int m_lastActiveSlot;
7 int m_iGuiScale;
8 bool m_bToolTipsVisible;
9 float m_lastExpProgress;
10 int m_lastExpLevel;
11 int m_iCurrentHealth;
12 int m_lastMaxHealth;
13 bool m_lastHealthBlink, m_lastHealthPoison, m_lastHealthWither;
14 int m_iCurrentFood;
15 bool m_lastFoodPoison;
16 int m_lastAir, m_currentExtraAir;
17 int m_lastArmour;
18 float m_lastDragonHealth;
19 bool m_showDragonHealth;
20 int m_ticksWithNoBoss;
21 bool m_lastShowDisplayName;
22 int m_horseHealth;
23 int m_iCurrentHealthAbsorb;
24 float m_horseJumpProgress;
25 int m_iHeartOffsetIndex;
26 bool m_bHealthAbsorbActive;
27 int m_iHorseMaxHealth;
28
29 bool m_showHealth, m_showHorseHealth, m_showFood, m_showAir, m_showArmour, m_showExpBar, m_bRidingHorse, m_bIsJumpable;
30 bool m_bRegenEffectEnabled;
31 int m_iFoodSaturation;
32
33 unsigned int m_uiSelectedItemOpacityCountDown;
34
35 wstring m_displayName;
36
37 IUIScene_HUD();
38
39 virtual int getPad() = 0;
40 virtual void SetOpacity(float opacity) = 0;
41 virtual void SetVisible(bool visible) = 0;
42
43 virtual void SetHudSize(int scale) = 0;
44 virtual void SetExpBarProgress(float progress, int xpNeededForNextLevel) = 0;
45 virtual void SetExpLevel(int level) = 0;
46 virtual void SetActiveSlot(int slot) = 0;
47
48 virtual void SetHealth(int iHealth, int iLastHealth, bool bBlink, bool bPoison, bool bWither) = 0;
49 virtual void SetFood(int iFood, int iLastFood, bool bPoison) = 0;
50 virtual void SetAir(int iAir, int extra) = 0;
51 virtual void SetArmour(int iArmour) = 0;
52
53 virtual void ShowHealth(bool show) = 0;
54 virtual void ShowHorseHealth(bool show) = 0;
55 virtual void ShowFood(bool show) = 0;
56 virtual void ShowAir(bool show) = 0;
57 virtual void ShowArmour(bool show) = 0;
58 virtual void ShowExpBar(bool show) = 0;
59
60 virtual void SetRegenerationEffect(bool bEnabled) = 0;
61 virtual void SetFoodSaturationLevel(int iSaturation) = 0;
62
63 virtual void SetDragonHealth(float health) = 0;
64 virtual void SetDragonLabel(const wstring &label) = 0;
65 virtual void ShowDragonHealth(bool show) = 0;
66
67 virtual void HideSelectedLabel() = 0;
68
69 virtual void SetDisplayName(const wstring &displayName) = 0;
70
71 virtual void SetTooltipsEnabled(bool bEnabled) = 0;
72
73 virtual void SetRidingHorse(bool ridingHorse, bool bIsJumpable, int maxHorseHealth) = 0;
74 virtual void SetHorseHealth(int health, bool blink = false) = 0;
75 virtual void SetHorseJumpBarProgress(float progress) = 0;
76
77 virtual void SetHealthAbsorb(int healthAbsorb) = 0;
78
79 virtual void SetSelectedLabel(const wstring &label) = 0;
80 virtual void ShowDisplayName(bool show) = 0;
81
82public:
83 void updateFrameTick();
84 void renderPlayerHealth();
85};