1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Colored chat working as expected for both freetype and non-freetype builds. @nerzhul improvements * Add unit tests * Fix coding style * move guiChatConsole.hpp to client/

This commit is contained in:
TriBlade9 2015-01-16 14:54:26 +08:00 committed by Ekdohibs
parent 0e44af9f70
commit 1d40385d4a
13 changed files with 998 additions and 28 deletions

View file

@ -20,11 +20,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef CHAT_HEADER
#define CHAT_HEADER
#include "irrlichttypes.h"
#include <string>
#include <vector>
#include <list>
#include "irrlichttypes.h"
#include "util/coloredstring.h"
// Chat console related classes
struct ChatLine
@ -34,7 +36,7 @@ struct ChatLine
// name of sending player, or empty if sent by server
std::wstring name;
// message text
std::wstring text;
ColoredString text;
ChatLine(std::wstring a_name, std::wstring a_text):
age(0.0),