diff options
author | Paul Gilbert | 2016-04-18 22:52:11 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:31 -0400 |
commit | 225af470883f7e8e90ea18faf6b26b29342accb9 (patch) | |
tree | 7c36d94ac930599c31f9634e347b6444a8063b8a /engines/titanic/pet_control/pet_quit.cpp | |
parent | 42206332d0d7474dfead288c643ef4980c739773 (diff) | |
download | scummvm-rg350-225af470883f7e8e90ea18faf6b26b29342accb9.tar.gz scummvm-rg350-225af470883f7e8e90ea18faf6b26b29342accb9.tar.bz2 scummvm-rg350-225af470883f7e8e90ea18faf6b26b29342accb9.zip |
TITANIC: Beginnings of PET RealLife Quit button
Diffstat (limited to 'engines/titanic/pet_control/pet_quit.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_quit.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_quit.cpp b/engines/titanic/pet_control/pet_quit.cpp index da757f5ba4..a68452dfd6 100644 --- a/engines/titanic/pet_control/pet_quit.cpp +++ b/engines/titanic/pet_control/pet_quit.cpp @@ -21,8 +21,34 @@ */ #include "titanic/pet_control/pet_quit.h" +#include "titanic/pet_control/pet_real_life.h" +#include "titanic/support/rect.h" namespace Titanic { +void CPetQuit::setup(CPetControl *petControl, CPetGlyphs *owner) { + CPetGlyph::setup(petControl, owner); + Rect tempRect(0, 0, 280, 16); + tempRect.moveTo(32, 407); + _sub12.setBounds(tempRect); + _sub12.resize(3); + _sub12.setHasBorder(true); + _sub12.setup(); + + Rect elementRect(0, 0, 496, 388); + elementRect.moveTo(496, 388); + _element.setBounds(elementRect); +} + +bool CPetQuit::reset() { + CPetControl *pet = getPetControl(); + if (!pet) + return false; + + setName("PetExit", pet); + // TODO + + return true; +} } // End of namespace Titanic |