diff options
author | whiterandrek | 2018-04-02 08:57:56 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 49d5ea28c023a43f7d1444b55ac8c06df9966128 (patch) | |
tree | 37db0a106b33970b934243f8c48adcb12c12255e /engines/pink/objects/actors/supporting_actor.cpp | |
parent | e48ac17f68ccd1b4432d9d6e15e811a88ea8daf4 (diff) | |
download | scummvm-rg350-49d5ea28c023a43f7d1444b55ac8c06df9966128.tar.gz scummvm-rg350-49d5ea28c023a43f7d1444b55ac8c06df9966128.tar.bz2 scummvm-rg350-49d5ea28c023a43f7d1444b55ac8c06df9966128.zip |
PINK: added basic cursor implementation, fixed sequenceAudio restarting and skipping, fixed various mem leaks, hopefully fixed finding of transparent color index.
Diffstat (limited to 'engines/pink/objects/actors/supporting_actor.cpp')
-rw-r--r-- | engines/pink/objects/actors/supporting_actor.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/pink/objects/actors/supporting_actor.cpp b/engines/pink/objects/actors/supporting_actor.cpp index 2cffbf16ce..a7e1b79954 100644 --- a/engines/pink/objects/actors/supporting_actor.cpp +++ b/engines/pink/objects/actors/supporting_actor.cpp @@ -23,7 +23,8 @@ #include "supporting_actor.h" #include <engines/pink/archive.h> #include <engines/pink/objects/actions/action.h> -#include <common/debug.h> +#include <engines/pink/constants.h> +#include "pink/cursor_mgr.h" namespace Pink { @@ -42,4 +43,18 @@ void SupportingActor::toConsole() { _handlerMgr.toConsole(); } +void SupportingActor::onMouseOver(Common::Point point, CursorMgr *mgr) { + if (isLeftClickHandlers()){ + if (!_cursor.empty()){ + mgr->setCursor(_cursor, point); + } + else mgr->setCursor(kClickableFirstFrameCursor, point); + } + else Actor::onMouseOver(point, mgr); +} + +bool SupportingActor::isLeftClickHandlers() { + return _handlerMgr.isLeftClickHandler(this); +} + } // End of namespace Pink
\ No newline at end of file |