• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Question on making new panel

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
In the otui the parent widget is a Panel(uiwidget) then it have some other widgets. Why when it is created I have to exeplicitly call g_ui.createWidget to create the widgets in it. While on the MiniWindow widgets all childs in the otui are automatically created?
 
What do you mean exactly?
g_ui.loadUI()

or

g_ui.importStyle()
followed by:
g_ui.createWidget()

?
 
g_loadui() when I use that in a miniwindow all child widgets are created with that call , but when I use a base class Uiwidget like Panel as the main widgets when I call g_loadui only the panel widget is created and I need to explicitly call gui_createwidget to create its child one by one?!
 
Back
Top