mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Added easy menu hooking, fixed terminal default size/pos & more:
* Added autowalk style option to Minimap style. * Added onCreate for setting up variables before styling is applied etc.
This commit is contained in:
@@ -447,6 +447,8 @@ UIWidgetPtr UIManager::createWidgetFromOTML(const OTMLNodePtr& widgetNode, const
|
||||
if(parent)
|
||||
parent->addChild(widget);
|
||||
|
||||
widget->callLuaField("onCreate");
|
||||
|
||||
if(widget) {
|
||||
widget->setStyleFromNode(styleNode);
|
||||
|
||||
|
Reference in New Issue
Block a user