diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 16:01:51 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 16:30:10 +0100 |
commit | 8546361abaa6123acd9dc1429575d1fd1cf6a4ec (patch) | |
tree | c104ef0073dbc93ba491ecb03352402c1a8f72c4 /src/gui | |
parent | c7e48aaf7eb0f2df76327b963879416a0cc8d5e7 (diff) | |
download | mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.gz mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.bz2 mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.xz mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.zip |
Added support for customizing NPC and Monster hover cursor
To match support for this in M+, since TMW uses this functionality on
two of its NPCs.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/viewport.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 9db1707c..8c174c8d 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -587,17 +587,12 @@ void Viewport::updateCursorType() { switch (mHoverBeing->getType()) { - // NPCs case ActorSprite::NPC: - gui->setCursorType(Cursor::TALK); - break; - - // Monsters case ActorSprite::MONSTER: - gui->setCursorType(Cursor::FIGHT); + gui->setCursorType(mHoverBeing->getHoverCursor()); break; default: - gui->setCursorType(Cursor::POINTER); + gui->setCursorType(Cursor::POINTER); break; } // Item mouseover |