diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-20 21:28:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-20 21:28:58 +0300 |
commit | 5b66f7a00e8f3868366cdf792ac15162267f6848 (patch) | |
tree | f60238e8817235d03a4ac46e875f55ba4f93c913 /src/gui/popups/popupmenu.h | |
parent | 70e304a900be02a734b6ebe7517b81bbe786a79f (diff) | |
download | manaverse-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.h | 6 |
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(); |