diff options
author | Paul Gilbert | 2016-04-19 22:00:47 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:37 -0400 |
commit | a8f8e4b69eab768f38d5cd73ceecce03bd096a4d (patch) | |
tree | 16411b2115087fbcf5be361b66e1996a32b2b337 /engines/titanic/pet_control/pet_real_life.cpp | |
parent | a6e76530b248c6ad61aac0fc4496e126ca6cd77b (diff) | |
download | scummvm-rg350-a8f8e4b69eab768f38d5cd73ceecce03bd096a4d.tar.gz scummvm-rg350-a8f8e4b69eab768f38d5cd73ceecce03bd096a4d.tar.bz2 scummvm-rg350-a8f8e4b69eab768f38d5cd73ceecce03bd096a4d.zip |
TITANIC: Clarified UI color methods & tables
Diffstat (limited to 'engines/titanic/pet_control/pet_real_life.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_real_life.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_real_life.cpp b/engines/titanic/pet_control/pet_real_life.cpp index 8d439e9cc1..38b7125ed3 100644 --- a/engines/titanic/pet_control/pet_real_life.cpp +++ b/engines/titanic/pet_control/pet_real_life.cpp @@ -36,6 +36,11 @@ bool CPetRealLife::setup(CPetControl *petControl) { } bool CPetRealLife::reset() { + _glyphs.reset(); + uint col = getColor(0); + _text.setColor(col); + _text.setColor(0, col); + return true; } @@ -67,7 +72,10 @@ bool CPetRealLife::setupControl(CPetControl *petControl) { } void CPetRealLife::addButton(CPetGlyph *glyph) { - + if (glyph) { + if (glyph->setup(_petControl, &_glyphs)) + _glyphs.push_back(glyph); + } } bool CPetRealLife::isValid(CPetControl *petControl) { |