aboutsummaryrefslogtreecommitdiff
path: root/src/Message.cpp
blob: b72eabe89a8208a50ec7b6288086c8c3bbf239ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../include/Message.hpp"
#include "../include/ResourceCache.hpp"
#include "../include/Settings.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"), 20 * Settings::getScaling(), 0.0f, false)
    {
        
    }
}