summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-20 21:28:58 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-20 21:28:58 +0300
commit5b66f7a00e8f3868366cdf792ac15162267f6848 (patch)
treef60238e8817235d03a4ac46e875f55ba4f93c913 /src/gui/popups/popupmenu.h
parent70e304a900be02a734b6ebe7517b81bbe786a79f (diff)
downloadmanaverse-5b66f7a00e8f3868366cdf792ac15162267f6848.tar.gz
manaverse-5b66f7a00e8f3868366cdf792ac15162267f6848.tar.bz2
manaverse-5b66f7a00e8f3868366cdf792ac15162267f6848.tar.xz
manaverse-5b66f7a00e8f3868366cdf792ac15162267f6848.zip
Show gm commands in popup menu based or player allowed gm commands.
For legacy server aka tmwa, it allow all commands.
Diffstat (limited to 'src/gui/popups/popupmenu.h')
-rw-r--r--src/gui/popups/popupmenu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index d97021737..6d0c141f5 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -29,6 +29,8 @@
#include "enums/inventorytype.h"
+#include "enums/resources/servercommandtype.h"
+
#include "enums/simpletypes/beingid.h"
#include "enums/simpletypes/beingtypeid.h"
#include "enums/simpletypes/itemcolor.h"
@@ -206,6 +208,10 @@ class PopupMenu final : public Popup, public LinkHandler
private:
void initPopup();
+ bool isAllowCommand(const ServerCommandTypeT command);
+
+ bool isAllowOtherCommand(const ServerCommandTypeT command);
+
void setMousePos();
void setMousePos2();