Skip to content

Commit f38f624

Browse files
committed
Moved the popup inside the menu to test how nested screens work
1 parent 753d003 commit f38f624

File tree

2 files changed

+90
-95
lines changed

2 files changed

+90
-95
lines changed

example/example.collection

+12-95
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ scale_along_z: 0
33
embedded_instances {
44
id: "menu"
55
data: "components {\n"
6-
" id: \"screen\"\n"
7-
" component: \"/monarch/screen_proxy.script\"\n"
6+
" id: \"screen_factory\"\n"
7+
" component: \"/monarch/screen_factory.script\"\n"
88
" position {\n"
99
" x: 0.0\n"
1010
" y: 0.0\n"
@@ -22,26 +22,21 @@ embedded_instances {
2222
" type: PROPERTY_TYPE_HASH\n"
2323
" }\n"
2424
" properties {\n"
25-
" id: \"timestep_below_popup\"\n"
26-
" value: \"0.0\"\n"
27-
" type: PROPERTY_TYPE_NUMBER\n"
28-
" }\n"
29-
" properties {\n"
30-
" id: \"transition_url\"\n"
31-
" value: \"menu:/go#menu\"\n"
32-
" type: PROPERTY_TYPE_URL\n"
25+
" id: \"transition_id\"\n"
26+
" value: \"/go\"\n"
27+
" type: PROPERTY_TYPE_HASH\n"
3328
" }\n"
3429
" properties {\n"
35-
" id: \"focus_url\"\n"
36-
" value: \"menu:/go#menu\"\n"
37-
" type: PROPERTY_TYPE_URL\n"
30+
" id: \"focus_id\"\n"
31+
" value: \"/go\"\n"
32+
" type: PROPERTY_TYPE_HASH\n"
3833
" }\n"
3934
"}\n"
4035
"embedded_components {\n"
41-
" id: \"collectionproxy\"\n"
42-
" type: \"collectionproxy\"\n"
43-
" data: \"collection: \\\"/example/menu.collection\\\"\\n"
44-
"exclude: false\\n"
36+
" id: \"collectionfactory\"\n"
37+
" type: \"collectionfactory\"\n"
38+
" data: \"prototype: \\\"/example/menu.collection\\\"\\n"
39+
"load_dynamically: true\\n"
4540
"\"\n"
4641
" position {\n"
4742
" x: 0.0\n"
@@ -249,84 +244,6 @@ embedded_instances {
249244
z: 1.0
250245
}
251246
}
252-
embedded_instances {
253-
id: "popup"
254-
data: "components {\n"
255-
" id: \"screen\"\n"
256-
" component: \"/monarch/screen_factory.script\"\n"
257-
" position {\n"
258-
" x: 0.0\n"
259-
" y: 0.0\n"
260-
" z: 0.0\n"
261-
" }\n"
262-
" rotation {\n"
263-
" x: 0.0\n"
264-
" y: 0.0\n"
265-
" z: 0.0\n"
266-
" w: 1.0\n"
267-
" }\n"
268-
" properties {\n"
269-
" id: \"screen_id\"\n"
270-
" value: \"popup\"\n"
271-
" type: PROPERTY_TYPE_HASH\n"
272-
" }\n"
273-
" properties {\n"
274-
" id: \"popup\"\n"
275-
" value: \"true\"\n"
276-
" type: PROPERTY_TYPE_BOOLEAN\n"
277-
" }\n"
278-
" properties {\n"
279-
" id: \"popup_on_popup\"\n"
280-
" value: \"true\"\n"
281-
" type: PROPERTY_TYPE_BOOLEAN\n"
282-
" }\n"
283-
" properties {\n"
284-
" id: \"transition_id\"\n"
285-
" value: \"/go\"\n"
286-
" type: PROPERTY_TYPE_HASH\n"
287-
" }\n"
288-
" properties {\n"
289-
" id: \"focus_id\"\n"
290-
" value: \"/go\"\n"
291-
" type: PROPERTY_TYPE_HASH\n"
292-
" }\n"
293-
"}\n"
294-
"embedded_components {\n"
295-
" id: \"collectionfactory\"\n"
296-
" type: \"collectionfactory\"\n"
297-
" data: \"prototype: \\\"/example/popup.collection\\\"\\n"
298-
"load_dynamically: false\\n"
299-
"\"\n"
300-
" position {\n"
301-
" x: 0.0\n"
302-
" y: 0.0\n"
303-
" z: 0.0\n"
304-
" }\n"
305-
" rotation {\n"
306-
" x: 0.0\n"
307-
" y: 0.0\n"
308-
" z: 0.0\n"
309-
" w: 1.0\n"
310-
" }\n"
311-
"}\n"
312-
""
313-
position {
314-
x: 0.0
315-
y: 0.0
316-
z: 0.0
317-
}
318-
rotation {
319-
x: 0.0
320-
y: 0.0
321-
z: 0.0
322-
w: 1.0
323-
}
324-
scale3 {
325-
x: 1.0
326-
y: 1.0
327-
z: 1.0
328-
}
329-
}
330247
embedded_instances {
331248
id: "about"
332249
data: "components {\n"

example/menu.collection

+78
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,81 @@ embedded_instances {
3535
z: 1.0
3636
}
3737
}
38+
embedded_instances {
39+
id: "popup"
40+
data: "components {\n"
41+
" id: \"screen\"\n"
42+
" component: \"/monarch/screen_factory.script\"\n"
43+
" position {\n"
44+
" x: 0.0\n"
45+
" y: 0.0\n"
46+
" z: 0.0\n"
47+
" }\n"
48+
" rotation {\n"
49+
" x: 0.0\n"
50+
" y: 0.0\n"
51+
" z: 0.0\n"
52+
" w: 1.0\n"
53+
" }\n"
54+
" properties {\n"
55+
" id: \"screen_id\"\n"
56+
" value: \"popup\"\n"
57+
" type: PROPERTY_TYPE_HASH\n"
58+
" }\n"
59+
" properties {\n"
60+
" id: \"popup\"\n"
61+
" value: \"true\"\n"
62+
" type: PROPERTY_TYPE_BOOLEAN\n"
63+
" }\n"
64+
" properties {\n"
65+
" id: \"popup_on_popup\"\n"
66+
" value: \"true\"\n"
67+
" type: PROPERTY_TYPE_BOOLEAN\n"
68+
" }\n"
69+
" properties {\n"
70+
" id: \"transition_id\"\n"
71+
" value: \"/go\"\n"
72+
" type: PROPERTY_TYPE_HASH\n"
73+
" }\n"
74+
" properties {\n"
75+
" id: \"focus_id\"\n"
76+
" value: \"/go\"\n"
77+
" type: PROPERTY_TYPE_HASH\n"
78+
" }\n"
79+
"}\n"
80+
"embedded_components {\n"
81+
" id: \"collectionfactory\"\n"
82+
" type: \"collectionfactory\"\n"
83+
" data: \"prototype: \\\"/example/popup.collection\\\"\\n"
84+
"load_dynamically: false\\n"
85+
"\"\n"
86+
" position {\n"
87+
" x: 0.0\n"
88+
" y: 0.0\n"
89+
" z: 0.0\n"
90+
" }\n"
91+
" rotation {\n"
92+
" x: 0.0\n"
93+
" y: 0.0\n"
94+
" z: 0.0\n"
95+
" w: 1.0\n"
96+
" }\n"
97+
"}\n"
98+
""
99+
position {
100+
x: 0.0
101+
y: 0.0
102+
z: 0.0
103+
}
104+
rotation {
105+
x: 0.0
106+
y: 0.0
107+
z: 0.0
108+
w: 1.0
109+
}
110+
scale3 {
111+
x: 1.0
112+
y: 1.0
113+
z: 1.0
114+
}
115+
}

0 commit comments

Comments
 (0)