blob: 14084233e89838f3eae3c20dcb8d85adff158f63 (
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"
#include <dchat/Room.hpp>
namespace dchat
{
Message::Message(std::shared_ptr<RoomMessage> _roomMessage, bool plainText) :
roomMessage(_roomMessage),
text(_roomMessage->text, ResourceCache::getFont("fonts/Nunito-Regular.ttf"), 18.0f * Settings::getScaling(), 0, plainText),
onlineUser(true)
{
}
}
|