Skip to content

Commit aea267c

Browse files
authored
fix gui template (#112)
#111
1 parent 6ba3064 commit aea267c

File tree

1 file changed

+40
-47
lines changed

1 file changed

+40
-47
lines changed

monarch/editor-script/make_monarch.editor_script

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,9 @@ end
7979

8080
gui_template = function(gui_script)
8181
return [[script: "]].. gui_script .. [["
82-
background_color {
83-
x: 0.0
84-
y: 0.0
85-
z: 0.0
86-
w: 0.0
87-
}
88-
material: "/builtins/materials/gui.material"
89-
adjust_reference: ADJUST_REFERENCE_PARENT
90-
max_nodes: 512
91-
]]
82+
material: "/builtins/materials/gui.material"
83+
adjust_reference: ADJUST_REFERENCE_PARENT
84+
]]
9285
end
9386

9487
gui_script_content = [[local monarch = require "monarch.monarch"
@@ -116,43 +109,43 @@ end
116109

117110
collection_template = function(gui_script, name)
118111
return [[name: "]].. name .. [["
119-
scale_along_z: 0
120-
embedded_instances {
121-
id: "go"
122-
data: "components {\n"
123-
" id: \"monarch\"\n"
124-
" component: \"]].. gui_script .. [[\"\n"
125-
" position {\n"
126-
" x: 0.0\n"
127-
" y: 0.0\n"
128-
" z: 0.0\n"
129-
" }\n"
130-
" rotation {\n"
131-
" x: 0.0\n"
132-
" y: 0.0\n"
133-
" z: 0.0\n"
134-
" w: 1.0\n"
135-
" }\n"
136-
"}\n"
137-
""
138-
position {
139-
x: 0.0
140-
y: 0.0
141-
z: 0.0
142-
}
143-
rotation {
144-
x: 0.0
145-
y: 0.0
146-
z: 0.0
147-
w: 1.0
148-
}
149-
scale3 {
150-
x: 1.0
151-
y: 1.0
152-
z: 1.0
153-
}
154-
}
155-
]]
112+
scale_along_z: 0
113+
embedded_instances {
114+
id: "go"
115+
data: "components {\n"
116+
" id: \"monarch\"\n"
117+
" component: \"]].. gui_script .. [[\"\n"
118+
" position {\n"
119+
" x: 0.0\n"
120+
" y: 0.0\n"
121+
" z: 0.0\n"
122+
" }\n"
123+
" rotation {\n"
124+
" x: 0.0\n"
125+
" y: 0.0\n"
126+
" z: 0.0\n"
127+
" w: 1.0\n"
128+
" }\n"
129+
"}\n"
130+
""
131+
position {
132+
x: 0.0
133+
y: 0.0
134+
z: 0.0
135+
}
136+
rotation {
137+
x: 0.0
138+
y: 0.0
139+
z: 0.0
140+
w: 1.0
141+
}
142+
scale3 {
143+
x: 1.0
144+
y: 1.0
145+
z: 1.0
146+
}
147+
}
148+
]]
156149

157150
end
158151

0 commit comments

Comments
 (0)