How can i create gui elements(templates) in runtime?
I have a screen with a few buttons.The button is gui template.The number of buttons depends on some data. So i want create this buttons in runtime.
Gui have method gui.clone_tree but this method not work with templates. How can i have dynamic created ui?
I can’t clone template. But i can clone elements from template. So i make root element in template then clone this root element.
1 Like
Yes, this is right decision.
Template is editor-only entity and do not created in runtime.
2 Likes