X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FCreaturePanel.hpp;h=be1234828384d3f8a80901ae0f2d917dd8a73ca5;hb=1f8fe0fd81053821f26787e9809cd1a13f747819;hp=864fede83c983756ad5f2af333b984bc37c62b53;hpb=475f28f06c9e14912bab8119264e247ef466513d;p=blobs.git diff --git a/src/ui/CreaturePanel.hpp b/src/ui/CreaturePanel.hpp index 864fede..be12348 100644 --- a/src/ui/CreaturePanel.hpp +++ b/src/ui/CreaturePanel.hpp @@ -3,6 +3,8 @@ #include "Panel.hpp" +#include + namespace blobs { namespace app { @@ -22,7 +24,7 @@ class Meter; class CreaturePanel { public: - explicit CreaturePanel(const app::Assets &); + explicit CreaturePanel(app::Assets &); ~CreaturePanel(); CreaturePanel(const CreaturePanel &) = delete; @@ -38,24 +40,27 @@ public: bool Shown() const noexcept { return c; } const creature::Creature &GetCreature() const noexcept { return *c; } - void Draw(app::Assets &, graphics::Viewport &) noexcept; + void ZIndex(float z) noexcept { panel.ZIndex(z); } -private: - void CreateNeeds(); + void Draw(graphics::Viewport &) noexcept; private: - const app::Assets &assets; + app::Assets &assets; creature::Creature *c; Label *name; + Label *parents; Label *born; Label *age; Label *mass; + Label *goal; Label *pos; Label *tile; - Label *goal; + Label *head; + Panel *composition; + std::vector