From 5b66f7a00e8f3868366cdf792ac15162267f6848 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 20 Jul 2017 21:28:58 +0300 Subject: Show gm commands in popup menu based or player allowed gm commands. For legacy server aka tmwa, it allow all commands. --- src/gui/popups/popupmenu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gui/popups/popupmenu.h') 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(); -- cgit v1.2.3-70-g09d2