aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/gfx/changes_season_button.cpp
diff options
context:
space:
mode:
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