Skip to content

Commit 00a68f6

Browse files
committed
adjusted text in speech bubbles
1 parent 10bc144 commit 00a68f6

File tree

4 files changed

+34
-13
lines changed

4 files changed

+34
-13
lines changed

Defold/order_item.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,35 @@ embedded_components {
2929
" w: 0.0\n"
3030
"}\n"
3131
"color {\n"
32-
" x: 1.0\n"
33-
" y: 1.0\n"
34-
" z: 1.0\n"
32+
" x: 0.101960786\n"
33+
" y: 0.101960786\n"
34+
" z: 0.101960786\n"
3535
" w: 1.0\n"
3636
"}\n"
3737
"outline {\n"
3838
" x: 0.0\n"
3939
" y: 0.0\n"
4040
" z: 0.0\n"
41-
" w: 1.0\n"
41+
" w: 0.0\n"
4242
"}\n"
4343
"shadow {\n"
4444
" x: 0.0\n"
4545
" y: 0.0\n"
4646
" z: 0.0\n"
47-
" w: 1.0\n"
47+
" w: 0.0\n"
4848
"}\n"
4949
"leading: 1.0\n"
5050
"tracking: 0.0\n"
51-
"pivot: PIVOT_CENTER\n"
51+
"pivot: PIVOT_W\n"
5252
"blend_mode: BLEND_MODE_ALPHA\n"
5353
"line_break: false\n"
5454
"text: \"\"\n"
55-
"font: \"/builtins/fonts/system_font.font\"\n"
55+
"font: \"/smaller.font\"\n"
5656
"material: \"/builtins/fonts/label.material\"\n"
5757
""
5858
position {
59-
x: 60.0
60-
y: 20.0
59+
x: 32.0
60+
y: 50.0
6161
z: 0.1
6262
}
6363
rotation {

Defold/scenes/main.collection

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ embedded_instances {
276276
"pivot: PIVOT_W\\n"
277277
"blend_mode: BLEND_MODE_ALPHA\\n"
278278
"line_break: true\\n"
279-
"text: \\\"Label\\\"\\n"
279+
"text: \\\"Score:\\\"\\n"
280280
"font: \\\"/larger.font\\\"\\n"
281281
"material: \\\"/builtins/fonts/label.material\\\"\\n"
282282
"\"\n"
@@ -997,7 +997,7 @@ embedded_instances {
997997
"\\\"\\n"
998998
" \\\"<Tab> - this help\\\\n"
999999
"\\\"\\n"
1000-
" \\\"<1,2,3> - Join Room 1,2,3 in menu\\\\n"
1000+
" \\\"<1,2,3> - Join Room 1,2,3 in Menu\\\\n"
10011001
"\\\"\\n"
10021002
" \\\"\\\"\\n"
10031003
"font: \\\"/larger.font\\\"\\n"

Defold/scripts/menu.script

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ function on_input(self, action_id, action)
4444

4545
if self.show then
4646
menu('disable')
47+
self.show = false
4748
else
4849
menu('enable')
50+
self.show = true
4951
end
5052

5153
end
@@ -54,15 +56,17 @@ function on_input(self, action_id, action)
5456
if action_id == hash("1") then
5557
msg.post(game_controller, "room_id", {room_id = '1'});
5658
menu('disable')
59+
self.show = false
5760

5861
elseif action_id == hash("2") then
5962
msg.post(game_controller, "room_id", {room_id = '2'});
6063
menu('disable')
64+
self.show = false
6165

6266
elseif action_id == hash("3") then
6367
msg.post(game_controller, "room_id", {room_id = '3'});
6468
menu('disable')
65-
69+
self.show = false
6670
end
6771
end
6872
end
@@ -75,7 +79,7 @@ function menu(mode)
7579
for k,v in pairs(menu_objects) do
7680
msg.post("#" .. v, mode) --visible = false
7781
end
78-
self.show = mode == 'enable'
82+
7983
end
8084

8185
function on_reload(self)

Defold/smaller.font

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
font: "/builtins/fonts/vera_mo_bd.ttf"
2+
material: "/builtins/fonts/system_font.material"
3+
size: 10
4+
antialias: 1
5+
alpha: 1.0
6+
outline_alpha: 0.0
7+
outline_width: 0.0
8+
shadow_alpha: 0.0
9+
shadow_blur: 0
10+
shadow_x: 0.0
11+
shadow_y: 0.0
12+
extra_characters: ""
13+
output_format: TYPE_BITMAP
14+
all_chars: false
15+
cache_width: 0
16+
cache_height: 0
17+
render_mode: MODE_SINGLE_LAYER

0 commit comments

Comments
 (0)