aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_real_life.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-19 21:23:52 -0400
committerPaul Gilbert2016-07-10 16:11:36 -0400
commita6e76530b248c6ad61aac0fc4496e126ca6cd77b (patch)
tree15bfad954c042b2225c41711ae28c49637578075 /engines/titanic/pet_control/pet_real_life.cpp
parent5e16f0b6b3da1e06bb3bc25c65f6e10536760291 (diff)
downloadscummvm-rg350-a6e76530b248c6ad61aac0fc4496e126ca6cd77b.tar.gz
scummvm-rg350-a6e76530b248c6ad61aac0fc4496e126ca6cd77b.tar.bz2
scummvm-rg350-a6e76530b248c6ad61aac0fc4496e126ca6cd77b.zip
TITANIC: Implement RealLife tab setup
Diffstat (limited to 'engines/titanic/pet_control/pet_real_life.cpp')
-rw-r--r--engines/titanic/pet_control/pet_real_life.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_real_life.cpp b/engines/titanic/pet_control/pet_real_life.cpp
index 0c7c4bd51f..8d439e9cc1 100644
--- a/engines/titanic/pet_control/pet_real_life.cpp
+++ b/engines/titanic/pet_control/pet_real_life.cpp
@@ -22,6 +22,10 @@
#include "titanic/pet_control/pet_real_life.h"
#include "titanic/pet_control/pet_control.h"
+#include "titanic/pet_control/pet_load.h"
+#include "titanic/pet_control/pet_save.h"
+#include "titanic/pet_control/pet_sound.h"
+#include "titanic/pet_control/pet_quit.h"
namespace Titanic {
@@ -43,15 +47,34 @@ void CPetRealLife::draw(CScreenManager *screenManager) {
bool CPetRealLife::setupControl(CPetControl *petControl) {
if (petControl) {
+ _petControl = petControl;
+ _glyphs.setup(4, this);
+ _glyphs.set20(6);
+ addButton(new CPetLoad());
+ addButton(new CPetSave());
+ addButton(new CPetSound());
+ addButton(new CPetQuit());
+
+ Rect textRect(0, 0, 32, 436);
+ textRect.moveTo(32, 436);
+ _text.setBounds(textRect);
+ _text.setHasBorder(false);
+ _text.setup();
}
return true;
}
+void CPetRealLife::addButton(CPetGlyph *glyph) {
+
+}
+
bool CPetRealLife::isValid(CPetControl *petControl) {
setupControl(petControl);
return true;
}
+
+
} // End of namespace Titanic