mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
info window
This commit is contained in:
@@ -23,13 +23,3 @@
|
||||
|
||||
|
||||
#include "uilabel.h"
|
||||
#include "graphics/fonts.h"
|
||||
#include "uilabelskin.h"
|
||||
|
||||
void UILabel::setText(const std::string& text)
|
||||
{
|
||||
UILabelSkin *skin = static_cast<UILabelSkin*>(getSkin());
|
||||
setSize(skin->getFont()->calculateTextRectSize(text));
|
||||
m_text = text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user