X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;h=746be3e5295e1fc71fb7e5bbc82217405936964c;hb=HEAD;hp=05fd499f376a333dc0b8d0e477fef48bfd9a4ca1;hpb=1c385fe716fda927843cdbb83805bc467f517f92;p=blobs.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index 05fd499..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()));