Skip to content

Commit 6d75d61

Browse files
committed
Add lang text example
1 parent 5accec4 commit 6d75d61

File tree

6 files changed

+680
-1
lines changed

6 files changed

+680
-1
lines changed

example/example.collection

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,3 +2197,68 @@ embedded_instances {
21972197
z: 1.0
21982198
}
21992199
}
2200+
embedded_instances {
2201+
id: "texts_lang_text"
2202+
data: "components {\n"
2203+
" id: \"screen_factory\"\n"
2204+
" component: \"/monarch/screen_factory.script\"\n"
2205+
" position {\n"
2206+
" x: 0.0\n"
2207+
" y: 0.0\n"
2208+
" z: 0.0\n"
2209+
" }\n"
2210+
" rotation {\n"
2211+
" x: 0.0\n"
2212+
" y: 0.0\n"
2213+
" z: 0.0\n"
2214+
" w: 1.0\n"
2215+
" }\n"
2216+
" properties {\n"
2217+
" id: \"screen_id\"\n"
2218+
" value: \"texts_lang_text\"\n"
2219+
" type: PROPERTY_TYPE_HASH\n"
2220+
" }\n"
2221+
" properties {\n"
2222+
" id: \"popup\"\n"
2223+
" value: \"true\"\n"
2224+
" type: PROPERTY_TYPE_BOOLEAN\n"
2225+
" }\n"
2226+
" property_decls {\n"
2227+
" }\n"
2228+
"}\n"
2229+
"embedded_components {\n"
2230+
" id: \"collectionfactory\"\n"
2231+
" type: \"collectionfactory\"\n"
2232+
" data: \"prototype: \\\"/example/examples/texts/lang_text/lang_text.collection\\\"\\n"
2233+
"load_dynamically: false\\n"
2234+
"\"\n"
2235+
" position {\n"
2236+
" x: 0.0\n"
2237+
" y: 0.0\n"
2238+
" z: 0.0\n"
2239+
" }\n"
2240+
" rotation {\n"
2241+
" x: 0.0\n"
2242+
" y: 0.0\n"
2243+
" z: 0.0\n"
2244+
" w: 1.0\n"
2245+
" }\n"
2246+
"}\n"
2247+
""
2248+
position {
2249+
x: 0.0
2250+
y: 0.0
2251+
z: 0.0
2252+
}
2253+
rotation {
2254+
x: 0.0
2255+
y: 0.0
2256+
z: 0.0
2257+
w: 1.0
2258+
}
2259+
scale3 {
2260+
x: 1.0
2261+
y: 1.0
2262+
z: 1.0
2263+
}
2264+
}

example/example.gui_script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ local function init_lobby(self)
142142
self.lobby_grid:add(get_title(self, "Texts"))
143143
self.lobby_grid:add(get_button(self, "Texts", "texts_general", "/texts/texts_general/texts_general.gui_script"))
144144
self.lobby_grid:add(get_button(self, "Adjust types", "texts_adjust", "/texts/texts_adjust/texts_adjust.gui_script"))
145-
self.lobby_grid:add(get_button_disabled(self, "Lang Text", "texts_lang_text"))
145+
self.lobby_grid:add(get_button(self, "Lang Text", "texts_lang_text", "/texts/texts_adjust/texts_lang_text.gui_script"))
146146

147147
self.lobby_grid:add(get_title(self, "Scrolls"))
148148
self.lobby_grid:add(get_button_disabled(self, "Nested scrolls", "scroll_scene"))
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "lang_text"
2+
scale_along_z: 0
3+
embedded_instances {
4+
id: "go"
5+
data: "components {\n"
6+
" id: \"lang_text\"\n"
7+
" component: \"/example/examples/texts/lang_text/lang_text.gui\"\n"
8+
" position {\n"
9+
" x: 0.0\n"
10+
" y: 0.0\n"
11+
" z: 0.0\n"
12+
" }\n"
13+
" rotation {\n"
14+
" x: 0.0\n"
15+
" y: 0.0\n"
16+
" z: 0.0\n"
17+
" w: 1.0\n"
18+
" }\n"
19+
" property_decls {\n"
20+
" }\n"
21+
"}\n"
22+
""
23+
position {
24+
x: 0.0
25+
y: 0.0
26+
z: 0.0
27+
}
28+
rotation {
29+
x: 0.0
30+
y: 0.0
31+
z: 0.0
32+
w: 1.0
33+
}
34+
scale3 {
35+
x: 1.0
36+
y: 1.0
37+
z: 1.0
38+
}
39+
}

0 commit comments

Comments
 (0)