#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, u64 _timestampSeconds) : user(_user), text(sf::String::fromUtf8(_text.begin(), _text.end()), ResourceCache::getFont("fonts/Roboto-Regular.ttf"), 18 * Settings::getScaling(), 0.0f, false), timestampSeconds(_timestampSeconds), type(Type::REGULAR) { text.setFillColor(ColorScheme::getTextRegularColor()); } }