aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_load.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/pet_control/pet_load.cpp')
-rw-r--r--engines/titanic/pet_control/pet_load.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/titanic/pet_control/pet_load.cpp b/engines/titanic/pet_control/pet_load.cpp
index 1008425604..f4be690bd2 100644
--- a/engines/titanic/pet_control/pet_load.cpp
+++ b/engines/titanic/pet_control/pet_load.cpp
@@ -21,8 +21,29 @@
*/
#include "titanic/pet_control/pet_load.h"
+#include "titanic/pet_control/pet_control.h"
namespace Titanic {
+bool CPetLoad::reset() {
+ CPetLoadSave::reset();
+
+ CPetControl *pet = getPetControl();
+ if (pet) {
+ setName("PetLoad", pet);
+ _btnLoadSave.reset("PetLoadOut", pet, MODE_UNSELECTED);
+ _btnLoadSave.reset("PetLoadIn", pet, MODE_SELECTED);
+ }
+
+ return true;
+}
+
+void CPetLoad::getTooltip(CPetText *text) {
+ text->setText("Load the game.");
+}
+
+void CPetLoad::execute() {
+ warning("TODO: CPetLoad::execute");
+}
} // End of namespace Titanic