aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-19 13:23:30 -0400
committerPaul Gilbert2016-07-10 16:11:35 -0400
commit5e16f0b6b3da1e06bb3bc25c65f6e10536760291 (patch)
tree91bb27ddff6b5739ab9e459042f34866727d41f6 /engines
parentc74b975081b844f90c9d43230a31005934593ff4 (diff)
downloadscummvm-rg350-5e16f0b6b3da1e06bb3bc25c65f6e10536760291.tar.gz
scummvm-rg350-5e16f0b6b3da1e06bb3bc25c65f6e10536760291.tar.bz2
scummvm-rg350-5e16f0b6b3da1e06bb3bc25c65f6e10536760291.zip
TITANIC: Implement CPetQuit reset method
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/pet_control/pet_quit.cpp8
-rw-r--r--engines/titanic/pet_control/pet_quit.h2
-rw-r--r--engines/titanic/pet_control/pet_text.cpp4
-rw-r--r--engines/titanic/pet_control/pet_text.h2
4 files changed, 13 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_quit.cpp b/engines/titanic/pet_control/pet_quit.cpp
index c31db26f54..c489fd9d5b 100644
--- a/engines/titanic/pet_control/pet_quit.cpp
+++ b/engines/titanic/pet_control/pet_quit.cpp
@@ -46,9 +46,13 @@ bool CPetQuit::reset() {
return false;
setName("PetExit", pet);
- uint v = getPetSection()->getDataIndex(0);
- // TODO
+ uint col = getPetSection()->getDataIndex(0);
+ _text.setText("Are you sure you want to quit?");
+ _text.setColor(0, col);
+
+ _btnYes.reset("PetQuitOut", pet, MODE_UNSELECTED);
+ _btnYes.reset("PetQuitIn", pet, MODE_SELECTED);
return true;
}
diff --git a/engines/titanic/pet_control/pet_quit.h b/engines/titanic/pet_control/pet_quit.h
index c7843e239f..e1551dcb36 100644
--- a/engines/titanic/pet_control/pet_quit.h
+++ b/engines/titanic/pet_control/pet_quit.h
@@ -32,7 +32,7 @@ namespace Titanic {
class CPetQuit : public CPetGlyph {
private:
CPetText _text;
- CPetGfxElement _element;
+ CPetGfxElement _btnYes;
public:
/**
* Setup the glyph
diff --git a/engines/titanic/pet_control/pet_text.cpp b/engines/titanic/pet_control/pet_text.cpp
index ed297a8c69..cda637a4ba 100644
--- a/engines/titanic/pet_control/pet_text.cpp
+++ b/engines/titanic/pet_control/pet_text.cpp
@@ -164,4 +164,8 @@ void CPetText::changeText(const CString &str) {
warning("TODO: CPetText::changeText");
}
+void CPetText::setColor(int val1, int val2) {
+ warning("CPetText::setColor");
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/pet_control/pet_text.h b/engines/titanic/pet_control/pet_text.h
index 2cd45c68c2..d43345cfe8 100644
--- a/engines/titanic/pet_control/pet_text.h
+++ b/engines/titanic/pet_control/pet_text.h
@@ -109,6 +109,8 @@ public:
* Set the text
*/
void setText(const CString &str);
+
+ void setColor(int val1, int val2);
};
} // End of namespace Titanic