mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 02:17:53 +02:00
parent
6ba3064749
commit
aea267cc35
@ -79,16 +79,9 @@ end
|
|||||||
|
|
||||||
gui_template = function(gui_script)
|
gui_template = function(gui_script)
|
||||||
return [[script: "]].. gui_script .. [["
|
return [[script: "]].. gui_script .. [["
|
||||||
background_color {
|
material: "/builtins/materials/gui.material"
|
||||||
x: 0.0
|
adjust_reference: ADJUST_REFERENCE_PARENT
|
||||||
y: 0.0
|
]]
|
||||||
z: 0.0
|
|
||||||
w: 0.0
|
|
||||||
}
|
|
||||||
material: "/builtins/materials/gui.material"
|
|
||||||
adjust_reference: ADJUST_REFERENCE_PARENT
|
|
||||||
max_nodes: 512
|
|
||||||
]]
|
|
||||||
end
|
end
|
||||||
|
|
||||||
gui_script_content = [[local monarch = require "monarch.monarch"
|
gui_script_content = [[local monarch = require "monarch.monarch"
|
||||||
@ -116,43 +109,43 @@ end
|
|||||||
|
|
||||||
collection_template = function(gui_script, name)
|
collection_template = function(gui_script, name)
|
||||||
return [[name: "]].. name .. [["
|
return [[name: "]].. name .. [["
|
||||||
scale_along_z: 0
|
scale_along_z: 0
|
||||||
embedded_instances {
|
embedded_instances {
|
||||||
id: "go"
|
id: "go"
|
||||||
data: "components {\n"
|
data: "components {\n"
|
||||||
" id: \"monarch\"\n"
|
" id: \"monarch\"\n"
|
||||||
" component: \"]].. gui_script .. [[\"\n"
|
" component: \"]].. gui_script .. [[\"\n"
|
||||||
" position {\n"
|
" position {\n"
|
||||||
" x: 0.0\n"
|
" x: 0.0\n"
|
||||||
" y: 0.0\n"
|
" y: 0.0\n"
|
||||||
" z: 0.0\n"
|
" z: 0.0\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
" rotation {\n"
|
" rotation {\n"
|
||||||
" x: 0.0\n"
|
" x: 0.0\n"
|
||||||
" y: 0.0\n"
|
" y: 0.0\n"
|
||||||
" z: 0.0\n"
|
" z: 0.0\n"
|
||||||
" w: 1.0\n"
|
" w: 1.0\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
""
|
""
|
||||||
position {
|
position {
|
||||||
x: 0.0
|
x: 0.0
|
||||||
y: 0.0
|
y: 0.0
|
||||||
z: 0.0
|
z: 0.0
|
||||||
}
|
}
|
||||||
rotation {
|
rotation {
|
||||||
x: 0.0
|
x: 0.0
|
||||||
y: 0.0
|
y: 0.0
|
||||||
z: 0.0
|
z: 0.0
|
||||||
w: 1.0
|
w: 1.0
|
||||||
}
|
}
|
||||||
scale3 {
|
scale3 {
|
||||||
x: 1.0
|
x: 1.0
|
||||||
y: 1.0
|
y: 1.0
|
||||||
z: 1.0
|
z: 1.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]]
|
]]
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user