diff options
author | Paul Gilbert | 2016-08-17 22:15:05 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-17 22:15:05 -0400 |
commit | bf5835b0dcd8134a82221804be0eb6c415adeeb5 (patch) | |
tree | 5c20cb3f28fc1b4c68f1138aa3969028366bb34b /engines/titanic/gfx/changes_season_button.cpp | |
parent | 41dab514e1f7dc4bbf9ff9bab21c5dc5cad7812f (diff) | |
download | scummvm-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.cpp | 11 |
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 |