From b863927543393468a7153775c18ef04a59f20a7f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Jan 2014 12:12:10 +0300 Subject: allow auto close npc dialog if it almost closed and press moving keys. --- src/gui/windows/npcdialog.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/windows') 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; -- cgit v1.2.3-60-g2f50