From cad47321a3eecdf3026f8b0515183fc8638beee2 Mon Sep 17 00:00:00 2001 From: Inky Date: Sun, 14 Apr 2019 02:26:06 +0300 Subject: [PATCH] Added: set auto-pacts lua bind --HG-- branch : patches-from-atys --- code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp | 9 +++++++++ code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h | 1 + 2 files changed, 10 insertions(+) diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp index 1a4f56d14..63d87a790 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp @@ -556,6 +556,7 @@ void CLuaIHMRyzom::RegisterRyzomFunctions(NLGUI::CLuaState &ls) LUABIND_FUNC(getClientCfg), LUABIND_FUNC(sendMsgToServer), LUABIND_FUNC(sendMsgToServerPvpTag), + LUABIND_FUNC(sendMsgToServerAutoPact), LUABIND_FUNC(sendMsgToServerUseItem), LUABIND_FUNC(isGuildQuitAvailable), LUABIND_FUNC(sortGuildMembers), @@ -3410,6 +3411,14 @@ void CLuaIHMRyzom::sendMsgToServerPvpTag(bool pvpTag) ::sendMsgToServer("PVP:PVP_TAG", tag); } +// *************************************************************************** +void CLuaIHMRyzom::sendMsgToServerAutoPact(bool bval) +{ + //H_AUTO(Lua_CLuaIHM_sendMsgToServerAutoPact) + uint8 dopact = (uint8)bval; + ::sendMsgToServer("COMMAND:AUTOPACT", dopact); +} + // *************************************************************************** void CLuaIHMRyzom::sendMsgToServerUseItem(sint32 slot) { diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h index fa27bb5df..0e8e118ee 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.h @@ -206,6 +206,7 @@ private: static std::string getClientCfg(const std::string &varName); static void sendMsgToServer(const std::string &msgName); static void sendMsgToServerPvpTag(bool pvpTag); + static void sendMsgToServerAutoPact(bool bval); static void sendMsgToServerUseItem(sint32 slot); static bool isGuildQuitAvailable(); static void sortGuildMembers();