Fix css style order when using external css files
[ryzomcore.git] / ryzom / client / src / interface_v3 / action_handler_tools.cpp
blob719f52d1ebcf0e0b886787c56053826dc9fd9f8d
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2013 Laszlo KIS-ADAM (dfighter) <dfighter1985@gmail.com>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "stdpch.h"
24 // Interface includes
25 #include "interface_manager.h"
26 #include "nel/gui/action_handler.h"
27 #include "../net_manager.h"
30 using namespace std;
31 using namespace NL3D;
32 using namespace NLMISC;
37 // ***************************************************************************
38 // sendMsgToServer Helper
39 void sendMsgToServer(const string &sMsg)
41 CBitMemStream out;
42 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
44 //nlinfo("impulseCallBack : %s sent", sMsg.c_str());
45 NetMngr.push(out);
47 else
49 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
53 // ***************************************************************************
54 // sendMsgToServer Helper
55 void sendMsgToServer(const string &sMsg, uint8 u8)
57 CBitMemStream out;
58 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
60 //nlinfo("impulseCallBack : %s %d sent", sMsg.c_str(), u8);
61 out.serial(u8);
62 NetMngr.push(out);
64 else
66 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
70 // ***************************************************************************
71 // sendMsgToServer Helper
72 void sendMsgToServer(const string &sMsg, uint8 u8n1, uint8 u8n2)
74 CBitMemStream out;
75 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
77 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u8n1, u8n2);
78 out.serial(u8n1);
79 out.serial(u8n2);
80 NetMngr.push(out);
82 else
84 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
88 // ***************************************************************************
89 // sendMsgToServer Helper
90 void sendMsgToServer(const string &sMsg, uint8 u8n1, uint8 u8n2, uint8 u8n3)
92 CBitMemStream out;
93 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
95 //nlinfo("impulseCallBack : %s %d %d %d sent", sMsg.c_str(), u8n1, u8n2, u8n3);
96 out.serial(u8n1);
97 out.serial(u8n2);
98 out.serial(u8n3);
99 NetMngr.push(out);
101 else
103 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
107 // ***************************************************************************
108 // sendMsgToServer Helper
109 void sendMsgToServer(const string &sMsg, uint8 u8n1, uint8 u8n2, uint8 u8n3, uint8 u8n4)
111 CBitMemStream out;
112 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
114 //nlinfo("impulseCallBack : %s %d %d %d %d sent", sMsg.c_str(), u8n1, u8n2, u8n3, u8n4);
115 out.serial(u8n1);
116 out.serial(u8n2);
117 out.serial(u8n3);
118 out.serial(u8n4);
119 NetMngr.push(out);
121 else
123 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
127 // ***************************************************************************
128 // sendMsgToServer Helper
129 void sendMsgToServer(const string &sMsg, uint8 u8n1, uint8 u8n2, uint8 u8n3, uint8 u8n4, uint8 u8n5)
131 CBitMemStream out;
132 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
134 //nlinfo("impulseCallBack : %s %d %d %d %d %d sent", sMsg.c_str(), u8n1, u8n2, u8n3, u8n4, u8n5);
135 out.serial(u8n1);
136 out.serial(u8n2);
137 out.serial(u8n3);
138 out.serial(u8n4);
139 out.serial(u8n5);
140 NetMngr.push(out);
142 else
144 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
148 // ***************************************************************************
149 // sendMsgToServer Helper
150 void sendMsgToServer(const string &sMsg, uint8 u8n1, uint32 u32n2)
152 CBitMemStream out;
153 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
155 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u8n1, u32n2);
156 out.serial(u8n1);
157 out.serial(u32n2);
158 NetMngr.push(out);
160 else
162 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
166 // ***************************************************************************
167 void sendMsgToServer(const std::string &sMsg, uint32 u32n1)
169 CBitMemStream out;
170 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
172 //nlinfo("impulseCallBack : %s %d sent", sMsg.c_str(), u32n1);
173 out.serial(u32n1);
174 NetMngr.push(out);
176 else
178 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
182 // ***************************************************************************
183 // sendMsgToServer Helper
184 void sendMsgToServer(const string &sMsg, uint32 u32n1, uint8 u8n2)
186 CBitMemStream out;
187 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
189 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u32n1, u8n2);
190 out.serial(u32n1);
191 out.serial(u8n2);
192 NetMngr.push(out);
194 else
196 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
200 // ***************************************************************************
201 // sendMsgToServer Helper
202 void sendMsgToServer(const string &sMsg, uint32 u32n1, uint8 u8n2, uint8 u8n3)
204 CBitMemStream out;
205 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
207 //nlinfo("impulseCallBack : %s %d %d %d sent", sMsg.c_str(), u32n1, u8n2, u8n3);
208 out.serial(u32n1);
209 out.serial(u8n2);
210 out.serial(u8n3);
211 NetMngr.push(out);
213 else
215 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());
220 // ***************************************************************************
221 void sendMsgToServer(const std::string &sMsg, uint32 u32n1, uint32 u32n2)
223 CBitMemStream out;
224 if(GenericMsgHeaderMngr.pushNameToStream(sMsg, out))
226 //nlinfo("impulseCallBack : %s %d %d sent", sMsg.c_str(), u32n1, u32n2);
227 out.serial(u32n1);
228 out.serial(u32n2);
229 NetMngr.push(out);
231 else
233 nlwarning("command : unknown message name : '%s'.", sMsg.c_str());