X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=746be3e5295e1fc71fb7e5bbc82217405936964c;hb=HEAD;hp=c361df55b06858c9d1271cf9c0fc37aa320c4f02;hpb=ae4f59520574caf5054d4a19cd76fa86c4a97264;p=blobs.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index c361df5..746be3e 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -223,7 +223,11 @@ void CreaturePanel::Hide() noexcept { void CreaturePanel::Draw(graphics::Viewport &viewport) noexcept { if (!c) return; - name->Text(c->Name()); + std::string name_str(c->Name()); + if (c->Dead()) { + name_str += " (deceased)"; + } + name->Text(name_str); age->Text(TimeString(c->Age())); mass->Text(MassString(c->Mass())); size->Text(LengthString(c->Size())); @@ -546,7 +550,7 @@ void TimePanel::Draw(graphics::Viewport &viewport) noexcept { live->Text(NumberString(sim.LiveCreatures().size())); time->Text(TimeString(sim.Time())); if (body) { - clock->Text(TimeString(std::fmod(sim.Time(), body->RotationalPeriod()))); + clock->Text(TimeString(std::fmod(sim.Time(), body->DayLength())) + " / " + TimeString(body->DayLength())); } else { clock->Text("no reference"); }