diff --git a/Source/UI/UIBarGraph.cpp b/Source/UI/UIBarGraph.cpp new file mode 100644 index 00000000..ec870fb3 --- /dev/null +++ b/Source/UI/UIBarGraph.cpp @@ -0,0 +1,11 @@ +#include "UI/UIBarGraph.h" + +// OFFSET: 0x0086C310 +// FUNCTION: fn_11024 +UIBarGraphHomun::UIBarGraphHomun(UIWindowContext& context) : UIWindow(context, 0) { +} + +// OFFSET: 0x0086C390 +// FUNCTION: fn_11025 +UIBarGraphPlayer::UIBarGraphPlayer(UIWindowContext& context) : UIWindow(context, 0) { +} diff --git a/Source/UI/UIBarGraph.h b/Source/UI/UIBarGraph.h index 83384997..c20e1ae0 100644 --- a/Source/UI/UIBarGraph.h +++ b/Source/UI/UIBarGraph.h @@ -4,6 +4,7 @@ #include "UI/Window/UIWindow.h" #include +#include struct UIButtonContext; @@ -49,4 +50,22 @@ public: /* 007C */ int unknown_007C; }; +class UIBarGraphHomun : public UIWindow { +public: + explicit UIBarGraphHomun(UIWindowContext& context); + +protected: + /* 0080 */ std::function m_current; + /* 00A8 */ std::function m_maximum; +}; + +class UIBarGraphPlayer : public UIWindow { +public: + explicit UIBarGraphPlayer(UIWindowContext& context); + +protected: + /* 0080 */ std::function m_current; + /* 00A8 */ std::function m_maximum; +}; + #endif diff --git a/data/compile.json b/data/compile.json index 4cb74bea..3b2531e9 100644 --- a/data/compile.json +++ b/data/compile.json @@ -841,6 +841,7 @@ "Source/UI/Text/UITransBalloonText.cpp": 2, "Source/UI/TextTagExtraction.cpp": 2, "Source/UI/TextTagRegistry.cpp": 2, + "Source/UI/UIBarGraph.cpp": 2, "Source/UI/UIBartermarketWnd.cpp": 2, "Source/UI/UIBroadcastBalloon.cpp": 2, "Source/UI/UICaptchaPreviewWnd.cpp": 2,