X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FCreaturePanel.hpp;h=76455d9baace86214a3af03e4728cc8bd94a1e4d;hb=bec264c34bc5c40d40aef19c2bae40d1989ed521;hp=b9888b2fcce6045c287482a19b648301d956c2bf;hpb=76b630bd0a147bf7c78d3380237c86b9bfc48530;p=blobs.git diff --git a/src/ui/CreaturePanel.hpp b/src/ui/CreaturePanel.hpp index b9888b2..76455d9 100644 --- a/src/ui/CreaturePanel.hpp +++ b/src/ui/CreaturePanel.hpp @@ -1,7 +1,7 @@ #ifndef BLOBS_UI_CREATUREPANEL_HPP_ #define BLOBS_UI_CREATUREPANEL_HPP_ -#include "Label.hpp" +#include "Panel.hpp" namespace blobs { @@ -16,6 +16,9 @@ namespace graphics { } namespace ui { +class Label; +class Meter; + class CreaturePanel { public: @@ -35,9 +38,17 @@ public: void Draw(app::Assets &, graphics::Viewport &) noexcept; private: + void CreateNeeds(); + +private: + const app::Assets &assets; creature::Creature *c; - Label name; + Label *name; + Panel *needs; + Panel panel; + + std::vector meters; };