diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-13 12:12:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-13 12:12:10 +0300 |
commit | b863927543393468a7153775c18ef04a59f20a7f (patch) | |
tree | 56e6d7345598c0524ac4fd7310f6a85d465ce2c3 /src/gui/windows | |
parent | 6fcb5c4b9f03dd3e4b9fea0475aec2c21a8510bc (diff) | |
download | mv-b863927543393468a7153775c18ef04a59f20a7f.tar.gz mv-b863927543393468a7153775c18ef04a59f20a7f.tar.bz2 mv-b863927543393468a7153775c18ef04a59f20a7f.tar.xz mv-b863927543393468a7153775c18ef04a59f20a7f.zip |
allow auto close npc dialog if it almost closed and press moving keys.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/npcdialog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windows/npcdialog.h b/src/gui/windows/npcdialog.h index af68594cd..5e679d7d1 100644 --- a/src/gui/windows/npcdialog.h +++ b/src/gui/windows/npcdialog.h @@ -212,6 +212,9 @@ class NpcDialog final : public Window, void mousePressed(gcn::MouseEvent &event); + int isCloseState() const + { return mActionState == NPC_ACTION_CLOSE; } + static void copyToClipboard(const int npcId, const int x, const int y); static NpcDialogs mNpcDialogs; |