blob: 5cd84459f2a59a77bd1c7e6e74f2c66713af0169 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "../include/Message.hpp"
#include "../include/ResourceCache.hpp"
#include "../include/Settings.hpp"
#include "../include/ColorScheme.hpp"
using namespace std;
namespace dchat
{
Message::Message(User *_user, const std::string &_text) :
user(_user),
text(sf::String::fromUtf8(_text.begin(), _text.end()), ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 18 * Settings::getScaling(), 0.0f, false)
{
text.setFillColor(ColorScheme::getTextRegularColor());
}
}
|