aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_load.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-21 22:13:44 -0400
committerPaul Gilbert2016-07-10 16:11:38 -0400
commitb398a5001bb128c5e53d6ac5426b926de6b73893 (patch)
treeab3fd6f73bf07cf4e2f951ae788fba89f5361730 /engines/titanic/pet_control/pet_load.cpp
parenta8f8e4b69eab768f38d5cd73ceecce03bd096a4d (diff)
downloadscummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.tar.gz
scummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.tar.bz2
scummvm-rg350-b398a5001bb128c5e53d6ac5426b926de6b73893.zip
TITANIC: Implementing CPetLoad and CPetSave
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