X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=e62894db3cdeef62af513a5d3e5aa4da10b9f5e5;hp=c53426a65c8c119ad8204e3fa7fa78de02f330cd;hb=6c1097479fd1ea41f0f76b91e67613822acf2e90;hpb=2ab70a92ae39cebc6166ef15545ebcbd31a31c38 diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index c53426a..e62894d 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -43,7 +43,7 @@ CreaturePanel::CreaturePanel(const app::Assets &assets) ->Spacing(10.0f) ->Direction(Panel::HORIZONTAL); - age->Text("0000s"); + age->Text("0000s (Newborn)"); Label *age_label = new Label(assets.fonts.medium); age_label->Text("Age"); Panel *age_panel = new Panel; @@ -152,7 +152,7 @@ void CreaturePanel::Hide() noexcept { void CreaturePanel::Draw(app::Assets &assets, graphics::Viewport &viewport) noexcept { if (!c) return; - age->Text(std::to_string(int(c->Age())) + "s"); + age->Text(std::to_string(int(c->Age())) + "s (" + c->AgeName() + ")"); { std::stringstream ss; ss << std::fixed << std::setprecision(3) << c->Mass() << "kg";