-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLoonyLips.tscn
103 lines (87 loc) · 3.06 KB
/
LoonyLips.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[gd_scene load_steps=10 format=2]
[ext_resource path="res://LoonyLips.gd" type="Script" id=1]
[ext_resource path="res://gfx/blackboard.jpg" type="Texture" id=2]
[ext_resource path="res://gfx/Feltpen.ttf" type="DynamicFontData" id=3]
[ext_resource path="res://gfx/blue_button11.png" type="Texture" id=4]
[ext_resource path="res://gfx/blue_button12.png" type="Texture" id=5]
[ext_resource path="res://Story.gd" type="Script" id=6]
[sub_resource type="DynamicFont" id=1]
size = 24
font_data = ExtResource( 3 )
[sub_resource type="DynamicFont" id=2]
size = 20
font_data = ExtResource( 3 )
[sub_resource type="DynamicFont" id=3]
size = 20
font_data = ExtResource( 3 )
[node name="LoonyLips" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Background" type="TextureRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 2 )
expand = true
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 16.0
margin_top = 16.0
margin_right = -16.0
margin_bottom = -16.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DisplayText" type="Label" parent="VBoxContainer"]
margin_right = 608.0
margin_bottom = 280.0
rect_min_size = Vector2( 0, 280 )
custom_fonts/font = SubResource( 1 )
text = "Placeholder Text"
autowrap = true
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_top = 284.0
margin_right = 608.0
margin_bottom = 333.0
custom_constants/separation = 12
alignment = 2
[node name="PlayerText" type="LineEdit" parent="VBoxContainer/HBoxContainer"]
margin_right = 505.0
margin_bottom = 49.0
grow_horizontal = 0
grow_vertical = 0
size_flags_horizontal = 3
custom_fonts/font = SubResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButton" type="TextureButton" parent="VBoxContainer/HBoxContainer"]
margin_left = 517.0
margin_right = 566.0
margin_bottom = 49.0
rect_min_size = Vector2( 49, 49 )
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 5 )
expand = true
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
margin_left = 578.0
margin_top = 8.0
margin_right = 608.0
margin_bottom = 40.0
custom_fonts/font = SubResource( 3 )
text = "Ok"
[node name="StoryBook" type="Node" parent="."]
[node name="Story0" type="Node" parent="StoryBook"]
script = ExtResource( 6 )
prompts = PoolStringArray( "a name", "a noun", "adverb", "adjective" )
story = "Once upon a time someone called %s ate a %s flavoured sandwich which made him feel all %s inside. It was a %s day."
[node name="Story1" type="Node" parent="StoryBook"]
script = ExtResource( 6 )
prompts = PoolStringArray( "a noun", "a name", "an adjective", "another name" )
story = "There once was a %s called %s who searched far and wide for the mythical %s noun of %s."
[connection signal="text_entered" from="VBoxContainer/HBoxContainer/PlayerText" to="." method="_on_PlayerText_text_entered"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/TextureButton" to="." method="_on_TextureButton_pressed"]