summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 16:01:51 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 16:30:10 +0100
commit8546361abaa6123acd9dc1429575d1fd1cf6a4ec (patch)
treec104ef0073dbc93ba491ecb03352402c1a8f72c4 /src/resources/beinginfo.h
parentc7e48aaf7eb0f2df76327b963879416a0cc8d5e7 (diff)
downloadmana-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/resources/beinginfo.h')
-rw-r--r--src/resources/beinginfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h
index e2d11c93..a4736439 100644
--- a/src/resources/beinginfo.h
+++ b/src/resources/beinginfo.h
@@ -24,6 +24,7 @@
#include "actorsprite.h"
+#include "gui/gui.h"
#include "resources/spritedef.h"
#include <map>
@@ -81,6 +82,14 @@ class BeingInfo
ActorSprite::TargetCursorSize getTargetCursorSize() const
{ return mTargetCursorSize; }
+ void setHoverCursor(const std::string &cursorName);
+
+ void setHoverCursor(Cursor cursor)
+ { mHoverCursor = cursor; }
+
+ Cursor getHoverCursor() const
+ { return mHoverCursor; }
+
void addSound(SoundEvent event, const std::string &filename);
const std::string &getSound(SoundEvent event) const;
@@ -108,6 +117,7 @@ class BeingInfo
SpriteDisplay mDisplay;
std::string mName;
ActorSprite::TargetCursorSize mTargetCursorSize = ActorSprite::TC_MEDIUM;
+ Cursor mHoverCursor = Cursor::POINTER;
std::map<SoundEvent, std::vector<std::string>> mSounds;
std::map<int, Attack> mAttacks;
unsigned char mWalkMask;