aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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