diff options
author | Paul Gilbert | 2016-12-21 08:00:51 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-12-21 08:00:51 -0500 |
commit | 2d7e9f4eac286aabe2e5be86a9cd1aeb14ffcf37 (patch) | |
tree | 672f32c11d7dd8e7c4c1e271f07cf62c96cbea31 | |
parent | 04952b6645f3f5d454c54c493a61eaccb76afa80 (diff) | |
download | scummvm-rg350-2d7e9f4eac286aabe2e5be86a9cd1aeb14ffcf37.tar.gz scummvm-rg350-2d7e9f4eac286aabe2e5be86a9cd1aeb14ffcf37.tar.bz2 scummvm-rg350-2d7e9f4eac286aabe2e5be86a9cd1aeb14ffcf37.zip |
TITANIC: Show status prefixes for chevrons in the Rooms tab
-rw-r--r-- | engines/titanic/pet_control/pet_rooms_glyphs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.cpp b/engines/titanic/pet_control/pet_rooms_glyphs.cpp index e911759f25..1df4a0efac 100644 --- a/engines/titanic/pet_control/pet_rooms_glyphs.cpp +++ b/engines/titanic/pet_control/pet_rooms_glyphs.cpp @@ -145,15 +145,15 @@ void CPetRoomsGlyph::getTooltip(CPetText *text) { CRoomFlags roomFlags(_roomFlags); CPetRooms *owner = static_cast<CPetRooms *>(getPetSection()); - CString msg; + CString prefix; if (isCurrentlyAssigned()) { - msg = "Your assigned room: "; + prefix = "Your assigned room: "; } else if (isPreviouslyAssigned()) { - msg = "A previously assigned room: "; + prefix = "A previously assigned room: "; } else if (!_mailFlag) { - msg = "Saved Chevron: "; + prefix = "Saved Chevron: "; } else if (_mailFlag == 1 && owner->getRoomFlags() == _roomFlags) { - msg = "Current location: "; + prefix = "Current location: "; } // Get the room description @@ -165,7 +165,7 @@ void CPetRoomsGlyph::getTooltip(CPetText *text) { } roomStr += " (shift-click edits)"; - text->setText(roomStr); + text->setText(prefix + roomStr); } void CPetRoomsGlyph::saveGlyph(SimpleFile *file, int indent) { |