aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/gfx/changes_season_button.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-17 22:15:05 -0400
committerPaul Gilbert2016-08-17 22:15:05 -0400
commitbf5835b0dcd8134a82221804be0eb6c415adeeb5 (patch)
tree5c20cb3f28fc1b4c68f1138aa3969028366bb34b /engines/titanic/gfx/changes_season_button.cpp
parent41dab514e1f7dc4bbf9ff9bab21c5dc5cad7812f (diff)
downloadscummvm-rg350-bf5835b0dcd8134a82221804be0eb6c415adeeb5.tar.gz
scummvm-rg350-bf5835b0dcd8134a82221804be0eb6c415adeeb5.tar.bz2
scummvm-rg350-bf5835b0dcd8134a82221804be0eb6c415adeeb5.zip
TITANIC: Implementing game logic classes
Diffstat (limited to 'engines/titanic/gfx/changes_season_button.cpp')
-rw-r--r--engines/titanic/gfx/changes_season_button.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/gfx/changes_season_button.cpp b/engines/titanic/gfx/changes_season_button.cpp
index d5242ad890..584a9542f3 100644
--- a/engines/titanic/gfx/changes_season_button.cpp
+++ b/engines/titanic/gfx/changes_season_button.cpp
@@ -21,9 +21,14 @@
*/
#include "titanic/gfx/changes_season_button.h"
+#include "titanic/core/project_item.h"
namespace Titanic {
+BEGIN_MESSAGE_MAP(CChangesSeasonButton, CSTButton)
+ ON_MESSAGE(MouseButtonDownMsg)
+END_MESSAGE_MAP()
+
CChangesSeasonButton::CChangesSeasonButton() : CSTButton() {
}
@@ -37,4 +42,10 @@ void CChangesSeasonButton::load(SimpleFile *file) {
CSTButton::load(file);
}
+bool CChangesSeasonButton::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
+ CChangeSeasonMsg changeMsg(_actionName);
+ changeMsg.execute(getRoot(), nullptr, MSGFLAG_SCAN);
+ return true;
+}
+
} // End of namespace Titanic