mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01: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