aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/IUIScene_HUD.h
diff options
context:
space:
mode:
authordaoge <3523206925@qq.com>2026-03-03 03:04:10 +0800
committerGitHub <noreply@github.com>2026-03-03 03:04:10 +0800
commitb3feddfef372618c8a9d7a0abcaf18cfad866c18 (patch)
tree267761c3bb39241ba5c347bfbe2254d06686e287 /Minecraft.Client/Common/UI/IUIScene_HUD.h
parent84c31a2331f7a0ec85b9d438992e244f60e5020f (diff)
feat: TU19 (Dec 2014) Features & Content (#155)
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
Diffstat (limited to 'Minecraft.Client/Common/UI/IUIScene_HUD.h')
-rw-r--r--Minecraft.Client/Common/UI/IUIScene_HUD.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/Minecraft.Client/Common/UI/IUIScene_HUD.h b/Minecraft.Client/Common/UI/IUIScene_HUD.h
new file mode 100644
index 00000000..0f643dd3
--- /dev/null
+++ b/Minecraft.Client/Common/UI/IUIScene_HUD.h
@@ -0,0 +1,85 @@
+#pragma once
+
+class IUIScene_HUD
+{
+protected:
+ int m_lastActiveSlot;
+ int m_iGuiScale;
+ bool m_bToolTipsVisible;
+ float m_lastExpProgress;
+ int m_lastExpLevel;
+ int m_iCurrentHealth;
+ int m_lastMaxHealth;
+ bool m_lastHealthBlink, m_lastHealthPoison, m_lastHealthWither;
+ int m_iCurrentFood;
+ bool m_lastFoodPoison;
+ int m_lastAir, m_currentExtraAir;
+ int m_lastArmour;
+ float m_lastDragonHealth;
+ bool m_showDragonHealth;
+ int m_ticksWithNoBoss;
+ bool m_lastShowDisplayName;
+ int m_horseHealth;
+ int m_iCurrentHealthAbsorb;
+ float m_horseJumpProgress;
+ int m_iHeartOffsetIndex;
+ bool m_bHealthAbsorbActive;
+ int m_iHorseMaxHealth;
+
+ bool m_showHealth, m_showHorseHealth, m_showFood, m_showAir, m_showArmour, m_showExpBar, m_bRidingHorse, m_bIsJumpable;
+ bool m_bRegenEffectEnabled;
+ int m_iFoodSaturation;
+
+ unsigned int m_uiSelectedItemOpacityCountDown;
+
+ wstring m_displayName;
+
+ IUIScene_HUD();
+
+ virtual int getPad() = 0;
+ virtual void SetOpacity(float opacity) = 0;
+ virtual void SetVisible(bool visible) = 0;
+
+ virtual void SetHudSize(int scale) = 0;
+ virtual void SetExpBarProgress(float progress, int xpNeededForNextLevel) = 0;
+ virtual void SetExpLevel(int level) = 0;
+ virtual void SetActiveSlot(int slot) = 0;
+
+ virtual void SetHealth(int iHealth, int iLastHealth, bool bBlink, bool bPoison, bool bWither) = 0;
+ virtual void SetFood(int iFood, int iLastFood, bool bPoison) = 0;
+ virtual void SetAir(int iAir, int extra) = 0;
+ virtual void SetArmour(int iArmour) = 0;
+
+ virtual void ShowHealth(bool show) = 0;
+ virtual void ShowHorseHealth(bool show) = 0;
+ virtual void ShowFood(bool show) = 0;
+ virtual void ShowAir(bool show) = 0;
+ virtual void ShowArmour(bool show) = 0;
+ virtual void ShowExpBar(bool show) = 0;
+
+ virtual void SetRegenerationEffect(bool bEnabled) = 0;
+ virtual void SetFoodSaturationLevel(int iSaturation) = 0;
+
+ virtual void SetDragonHealth(float health) = 0;
+ virtual void SetDragonLabel(const wstring &label) = 0;
+ virtual void ShowDragonHealth(bool show) = 0;
+
+ virtual void HideSelectedLabel() = 0;
+
+ virtual void SetDisplayName(const wstring &displayName) = 0;
+
+ virtual void SetTooltipsEnabled(bool bEnabled) = 0;
+
+ virtual void SetRidingHorse(bool ridingHorse, bool bIsJumpable, int maxHorseHealth) = 0;
+ virtual void SetHorseHealth(int health, bool blink = false) = 0;
+ virtual void SetHorseJumpBarProgress(float progress) = 0;
+
+ virtual void SetHealthAbsorb(int healthAbsorb) = 0;
+
+ virtual void SetSelectedLabel(const wstring &label) = 0;
+ virtual void ShowDisplayName(bool show) = 0;
+
+public:
+ void updateFrameTick();
+ void renderPlayerHealth();
+}; \ No newline at end of file