-
Notifications
You must be signed in to change notification settings - Fork 2
/
Example.tscn
158 lines (141 loc) · 3.58 KB
/
Example.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[gd_scene load_steps=17 format=2]
[ext_resource path="res://addons/ShyTimeline/Nodes/Timeline.gd" type="Script" id=1]
[ext_resource path="res://addons/ShyTimeline/Nodes/TimelineChoiceHandler.gd" type="Script" id=2]
[ext_resource path="res://addons/ShyTimeline/Nodes/TimelineInputHandler.gd" type="Script" id=3]
[ext_resource path="res://Example.gd" type="Script" id=4]
[ext_resource path="res://addons/ShyTimeline/Nodes/TimelineTextHandler.gd" type="Script" id=5]
[ext_resource path="res://addons/ShyTimeline/TimelineRes.gd" type="Script" id=6]
[ext_resource path="res://addons/ShyTimeline/Events/Choice.gd" type="Script" id=7]
[ext_resource path="res://addons/ShyTimeline/Events/Text.gd" type="Script" id=8]
[ext_resource path="res://addons/ShyTimeline/Events/Input.gd" type="Script" id=9]
[sub_resource type="Resource" id=1]
script = ExtResource( 9 )
next_events = {
0: [ "Text" ],
1: [ ]
}
pos = Vector2( -100, 0 )
channel = ""
inputs = {
1: {
"type": 4,
"value": "Lin",
"variable": "name"
}
}
input_time = 0.0
[sub_resource type="Resource" id=2]
script = ExtResource( 7 )
next_events = {
0: [ ],
1: [ "TextEvent" ],
2: [ "TextEvent1" ],
3: [ "Input" ]
}
pos = Vector2( -460, -180 )
channel = ""
choice_text = {
1: "Text",
2: "Chance",
3: "input"
}
choose_time = 0.0
[sub_resource type="Resource" id=3]
script = ExtResource( 8 )
next_events = {
0: [ ]
}
pos = Vector2( 240, 20 )
channel = ""
text = "so you are <name>"
[sub_resource type="Resource" id=4]
script = ExtResource( 8 )
next_events = {
0: [ ]
}
pos = Vector2( -60, -220 )
channel = ""
text = "This is a base Test for TextEvents
including chances {\"a\",\"b\",\"c\",\"d\"}.
weighted chances {\"a\" 0.5, \"b\" 0.25, \"c\" 0.2, \"d\"}
variables <player>
more to be added"
[sub_resource type="Resource" id=5]
script = ExtResource( 8 )
next_events = {
0: [ "TextEvent1" ]
}
pos = Vector2( -80, -120 )
channel = ""
text = "including chances {\"a\",\"b\",\"c\",\"d\"}.
weighted chances {\"a\" 0.5, \"b\" 0.25, \"c\" 0.2, \"d\"}"
[sub_resource type="Resource" id=6]
script = ExtResource( 6 )
events = {
"Input": SubResource( 1 ),
"Start": SubResource( 2 ),
"Text": SubResource( 3 ),
"TextEvent": SubResource( 4 ),
"TextEvent1": SubResource( 5 )
}
start_event = "Start"
name = ""
[sub_resource type="Resource" id=7]
script = ExtResource( 6 )
events = {
}
start_event = ""
name = ""
[node name="Example" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Timeline2" type="Node" parent="."]
script = ExtResource( 1 )
timeline_res = SubResource( 6 )
autostart = true
settings = {
}
[node name="Timeline" type="Node" parent="."]
script = ExtResource( 1 )
timeline_res = SubResource( 7 )
settings = {
}
[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ChoiceHandler" type="Node" parent="VBoxContainer"]
script = ExtResource( 2 )
settings = {
}
timeline_path = NodePath("../../Timeline2")
[node name="RichTextLabel" type="RichTextLabel" parent="."]
anchor_bottom = 1.0
margin_right = 654.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextHandler" type="Node" parent="RichTextLabel"]
script = ExtResource( 5 )
settings = {
}
timeline_path = NodePath("../../Timeline2")
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="InputHandler" type="Node" parent="VBoxContainer2"]
script = ExtResource( 3 )
settings = {
}
timeline_path = NodePath("../../Timeline2")