mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
rework ui related scripting stuff
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
#include <global.h>
|
||||
#include <ui/uilabel.h>
|
||||
#include <ui/uielementskin.h>
|
||||
|
||||
void UILabel::setText(const std::string& text)
|
||||
{
|
||||
m_text = text;
|
||||
// text size changed, reaplly skin
|
||||
getSkin()->apply(this);
|
||||
if(getSkin())
|
||||
getSkin()->apply(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user