3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 02:17:53 +02:00

fix gui template (#112)

https://github.com/britzl/monarch/issues/111
This commit is contained in:
Alexander 2024-09-27 12:58:51 +06:00 committed by GitHub
parent 6ba3064749
commit aea267cc35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,16 +79,9 @@ end
gui_template = function(gui_script)
return [[script: "]].. gui_script .. [["
background_color {
x: 0.0
y: 0.0
z: 0.0
w: 0.0
}
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT
max_nodes: 512
]]
material: "/builtins/materials/gui.material"
adjust_reference: ADJUST_REFERENCE_PARENT
]]
end
gui_script_content = [[local monarch = require "monarch.monarch"
@ -116,8 +109,8 @@ end
collection_template = function(gui_script, name)
return [[name: "]].. name .. [["
scale_along_z: 0
embedded_instances {
scale_along_z: 0
embedded_instances {
id: "go"
data: "components {\n"
" id: \"monarch\"\n"
@ -151,8 +144,8 @@ embedded_instances {
y: 1.0
z: 1.0
}
}
]]
}
]]
end