mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
ui loader and some refactoring
This commit is contained in:
@@ -35,15 +35,6 @@ UILabel::UILabel(const std::string& text, Font* font) :
|
||||
setSize(m_font->calculateTextRectSize(text));
|
||||
}
|
||||
|
||||
void UILabel::load(const YAML::Node& node)
|
||||
{
|
||||
UIElement::load(node);
|
||||
|
||||
std::string text;
|
||||
node["text"] >> text;
|
||||
setText(text);
|
||||
}
|
||||
|
||||
void UILabel::render()
|
||||
{
|
||||
m_font->renderText(m_text, getRect(), ALIGN_LEFT, Color(0xFFBFBFBF));
|
||||
|
||||
Reference in New Issue
Block a user