This commit is contained in:
Insality
2024-11-21 22:00:05 +02:00
parent 69ebb252e1
commit 5a1668a8af
22 changed files with 174 additions and 205 deletions

View File

@@ -37,7 +37,7 @@ nodes {
}
type: TYPE_TEXT
text: "Left Right Selector"
font: "text_bold"
font: "druid_text_bold"
id: "text_name"
pivot: PIVOT_W
outline {
@@ -191,7 +191,7 @@ nodes {
}
type: TYPE_TEXT
text: "42"
font: "text_bold"
font: "druid_text_bold"
id: "text_value"
outline {
x: 1.0

View File

@@ -214,8 +214,7 @@ end
---@private
function M:create_from_prefab(widget_class, widget_name, prefab)
local nodes = gui.clone_tree(prefab)
local instance = self.druid:new_widget(widget_class, widget_name, nodes)
local instance = self.druid:new_widget(widget_class, widget_name, prefab)
self:add_property(instance)
return instance
end