Browse Source

improve UI and add credits

Arnaud Vergnet 4 months ago
parent
commit
a36a9b8a09

+ 9
- 0
fonts/Title.tres View File

@@ -0,0 +1,9 @@
1
+[gd_resource type="DynamicFont" load_steps=2 format=2]
2
+
3
+[ext_resource path="res://fonts/open-sans/OpenSans-Bold.ttf" type="DynamicFontData" id=1]
4
+
5
+[resource]
6
+size = 100
7
+outline_size = 5
8
+outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
9
+font_data = ExtResource( 1 )

+ 6
- 0
project.godot View File

@@ -9,6 +9,11 @@
9 9
 config_version=4
10 10
 
11 11
 _global_script_classes=[ {
12
+"base": "Button",
13
+"class": "CustomButton",
14
+"language": "GDScript",
15
+"path": "res://scenes/typo/Button.gd"
16
+}, {
12 17
 "base": "Node",
13 18
 "class": "Dialogic",
14 19
 "language": "GDScript",
@@ -35,6 +40,7 @@ _global_script_classes=[ {
35 40
 "path": "res://addons/dialogic/Other/DialogicUtil.gd"
36 41
 } ]
37 42
 _global_script_class_icons={
43
+"CustomButton": "",
38 44
 "Dialogic": "",
39 45
 "DialogicBackgroundMusic": "",
40 46
 "DialogicDefinitionsUtil": "",

+ 10
- 0
scenes/Credits.gd View File

@@ -0,0 +1,10 @@
1
+extends Control
2
+
3
+
4
+
5
+func load_main_menu():
6
+	get_tree().change_scene("res://scenes/MainMenu.tscn")
7
+
8
+
9
+func _on_BackButton_pressed():
10
+	load_main_menu()

+ 216
- 0
scenes/Credits.tscn View File

@@ -0,0 +1,216 @@
1
+[gd_scene load_steps=9 format=2]
2
+
3
+[ext_resource path="res://scenes/Credits.gd" type="Script" id=1]
4
+[ext_resource path="res://backgrounds/bureauGroupe-2.jpg" type="Texture" id=2]
5
+[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=3]
6
+[ext_resource path="res://fonts/open-sans/OpenSans-Regular.ttf" type="DynamicFontData" id=4]
7
+[ext_resource path="res://scenes/typo/Title.tscn" type="PackedScene" id=5]
8
+[ext_resource path="res://scenes/typo/CreditsItem.tscn" type="PackedScene" id=6]
9
+[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=7]
10
+
11
+[sub_resource type="DynamicFont" id=1]
12
+size = 80
13
+outline_size = 4
14
+outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
15
+font_data = ExtResource( 4 )
16
+
17
+[node name="Credits" type="Control"]
18
+anchor_right = 1.0
19
+anchor_bottom = 1.0
20
+script = ExtResource( 1 )
21
+__meta__ = {
22
+"_edit_use_anchors_": false
23
+}
24
+
25
+[node name="TextureRect" type="TextureRect" parent="."]
26
+anchor_right = 1.0
27
+anchor_bottom = 1.0
28
+texture = ExtResource( 2 )
29
+stretch_mode = 7
30
+__meta__ = {
31
+"_edit_use_anchors_": false
32
+}
33
+
34
+[node name="MarginContainer" type="MarginContainer" parent="."]
35
+anchor_right = 1.0
36
+anchor_bottom = 1.0
37
+custom_constants/margin_right = 100
38
+custom_constants/margin_top = 10
39
+custom_constants/margin_left = 100
40
+custom_constants/margin_bottom = 10
41
+__meta__ = {
42
+"_edit_use_anchors_": false
43
+}
44
+
45
+[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
46
+margin_left = 100.0
47
+margin_top = 10.0
48
+margin_right = 1820.0
49
+margin_bottom = 1070.0
50
+
51
+[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
52
+margin_right = 1720.0
53
+margin_bottom = 137.0
54
+custom_fonts/font = ExtResource( 3 )
55
+text = "Serious Game on Ethics"
56
+
57
+[node name="Credits" type="Label" parent="MarginContainer/VBoxContainer"]
58
+margin_top = 141.0
59
+margin_right = 1720.0
60
+margin_bottom = 251.0
61
+custom_fonts/font = SubResource( 1 )
62
+text = "Crédits"
63
+__meta__ = {
64
+"_edit_use_anchors_": false
65
+}
66
+
67
+[node name="Control" type="Control" parent="MarginContainer/VBoxContainer"]
68
+margin_top = 255.0
69
+margin_right = 1720.0
70
+margin_bottom = 1004.0
71
+size_flags_vertical = 3
72
+
73
+[node name="ColorRect" type="ColorRect" parent="MarginContainer/VBoxContainer/Control"]
74
+anchor_right = 1.0
75
+anchor_bottom = 1.0
76
+size_flags_vertical = 3
77
+color = Color( 0, 0, 0, 0.423529 )
78
+__meta__ = {
79
+"_edit_use_anchors_": false
80
+}
81
+
82
+[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/Control"]
83
+anchor_right = 1.0
84
+anchor_bottom = 1.0
85
+custom_constants/margin_right = 20
86
+custom_constants/margin_top = 10
87
+custom_constants/margin_left = 20
88
+custom_constants/margin_bottom = 10
89
+__meta__ = {
90
+"_edit_use_anchors_": false
91
+}
92
+
93
+[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/VBoxContainer/Control/MarginContainer"]
94
+margin_left = 20.0
95
+margin_top = 10.0
96
+margin_right = 1700.0
97
+margin_bottom = 739.0
98
+size_flags_vertical = 3
99
+__meta__ = {
100
+"_edit_use_anchors_": false
101
+}
102
+
103
+[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer"]
104
+margin_right = 1668.0
105
+margin_bottom = 1319.0
106
+size_flags_horizontal = 3
107
+
108
+[node name="Équipe" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
109
+margin_right = 1668.0
110
+text = "Équipe"
111
+align = 1
112
+
113
+[node name="Abir" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
114
+anchor_right = 0.0
115
+anchor_bottom = 0.0
116
+margin_top = 87.0
117
+margin_right = 1668.0
118
+margin_bottom = 201.0
119
+title = "Abir Benazzouz"
120
+subtile = "Dessins et animations"
121
+
122
+[node name="Arnaud" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
123
+anchor_right = 0.0
124
+anchor_bottom = 0.0
125
+margin_top = 205.0
126
+margin_right = 1668.0
127
+margin_bottom = 319.0
128
+title = "Arnaud Vergnet"
129
+subtile = "Programmation"
130
+
131
+[node name="Auriane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
132
+anchor_right = 0.0
133
+anchor_bottom = 0.0
134
+margin_top = 323.0
135
+margin_right = 1668.0
136
+margin_bottom = 437.0
137
+title = "Auriane Lartigue"
138
+subtile = "Dessins"
139
+
140
+[node name="Clémentine" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
141
+anchor_right = 0.0
142
+anchor_bottom = 0.0
143
+margin_top = 441.0
144
+margin_right = 1668.0
145
+margin_bottom = 555.0
146
+title = "Clémentine Bonneau"
147
+subtile = "Scénario"
148
+
149
+[node name="Élise" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
150
+anchor_right = 0.0
151
+anchor_bottom = 0.0
152
+margin_top = 559.0
153
+margin_right = 1668.0
154
+margin_bottom = 673.0
155
+title = "Élise Barnabé"
156
+subtile = "Scénario"
157
+
158
+[node name="Morgane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
159
+anchor_right = 0.0
160
+anchor_bottom = 0.0
161
+margin_top = 677.0
162
+margin_right = 1668.0
163
+margin_bottom = 791.0
164
+title = "Morgane Foussats"
165
+subtile = "Scénario"
166
+
167
+[node name="Nabil" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
168
+anchor_right = 0.0
169
+anchor_bottom = 0.0
170
+margin_top = 795.0
171
+margin_right = 1668.0
172
+margin_bottom = 909.0
173
+title = "Nabil Moukhlis"
174
+subtile = "Programmation et dessins"
175
+
176
+[node name="Technologies" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
177
+margin_top = 913.0
178
+margin_right = 1668.0
179
+margin_bottom = 996.0
180
+text = "Technologies"
181
+align = 1
182
+
183
+[node name="Godot" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
184
+anchor_right = 0.0
185
+anchor_bottom = 0.0
186
+margin_top = 1000.0
187
+margin_right = 1668.0
188
+margin_bottom = 1114.0
189
+title = "Godot v3.2.3"
190
+subtile = "Moteur de jeu"
191
+link = "https://godotengine.org/"
192
+
193
+[node name="Dialogic" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
194
+anchor_right = 0.0
195
+anchor_bottom = 0.0
196
+margin_top = 1118.0
197
+margin_right = 1668.0
198
+margin_bottom = 1232.0
199
+title = "Dialogic v1.1"
200
+subtile = "Plugin de dialogues"
201
+link = "https://github.com/coppolaemilio/dialogic"
202
+
203
+[node name="Images" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
204
+margin_top = 1236.0
205
+margin_right = 1668.0
206
+margin_bottom = 1319.0
207
+text = "Images"
208
+align = 1
209
+
210
+[node name="BackButton" parent="MarginContainer/VBoxContainer" instance=ExtResource( 7 )]
211
+margin_left = 0.0
212
+margin_top = 1008.0
213
+margin_right = 1720.0
214
+margin_bottom = 1060.0
215
+text = "Retour"
216
+[connection signal="pressed" from="MarginContainer/VBoxContainer/BackButton" to="." method="_on_BackButton_pressed"]

+ 11
- 0
scenes/MainMenu.gd View File

@@ -1,10 +1,16 @@
1 1
 extends Control
2 2
 
3
+func _ready():
4
+	Dialogic.set_autosave(true)
3 5
 
4 6
 func load_main_game():
5 7
 	get_tree().change_scene("res://scenes/Main.tscn")
6 8
 
7 9
 
10
+func load_credits():
11
+	get_tree().change_scene("res://scenes/Credits.tscn")
12
+
13
+
8 14
 func _on_NewGameButton_pressed():
9 15
 	Dialogic.reset_saves()
10 16
 	load_main_game()
@@ -16,3 +22,8 @@ func _on_ContinueButton_pressed():
16 22
 
17 23
 func _on_ExitButton_pressed():
18 24
 	get_tree().quit(0)
25
+
26
+
27
+func _on_CreditsButton_pressed():
28
+	load_credits()
29
+

+ 44
- 35
scenes/MainMenu.tscn View File

@@ -1,18 +1,12 @@
1
-[gd_scene load_steps=9 format=2]
1
+[gd_scene load_steps=8 format=2]
2 2
 
3 3
 [ext_resource path="res://characters/Evelyne/evelyne.png" type="Texture" id=1]
4 4
 [ext_resource path="res://characters/Patrick/Patrick sans Barbe/Pat_cool.png" type="Texture" id=2]
5 5
 [ext_resource path="res://characters/Jean-Michel/Jean-Michel.png" type="Texture" id=3]
6 6
 [ext_resource path="res://backgrounds/bureauGroupe-2.jpg" type="Texture" id=4]
7
-[ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=5]
8
-[ext_resource path="res://fonts/open-sans/OpenSans-Bold.ttf" type="DynamicFontData" id=6]
7
+[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=6]
9 8
 [ext_resource path="res://scenes/MainMenu.gd" type="Script" id=7]
10
-
11
-[sub_resource type="DynamicFont" id=1]
12
-size = 100
13
-outline_size = 5
14
-outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
15
-font_data = ExtResource( 6 )
9
+[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=8]
16 10
 
17 11
 [node name="MainMenu" type="Control"]
18 12
 anchor_right = 1.0
@@ -54,7 +48,7 @@ __meta__ = {
54 48
 [node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
55 49
 margin_right = 1720.0
56 50
 margin_bottom = 137.0
57
-custom_fonts/font = SubResource( 1 )
51
+custom_fonts/font = ExtResource( 6 )
58 52
 text = "Serious Game on Ethics"
59 53
 
60 54
 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
@@ -67,49 +61,63 @@ __meta__ = {
67 61
 }
68 62
 
69 63
 [node name="CenterContainer" type="CenterContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
70
-margin_right = 227.0
64
+margin_right = 235.0
71 65
 margin_bottom = 901.0
72 66
 
73 67
 [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer"]
74
-margin_top = 333.0
75
-margin_right = 227.0
76
-margin_bottom = 567.0
68
+margin_top = 266.0
69
+margin_right = 235.0
70
+margin_bottom = 634.0
77 71
 custom_constants/separation = 20
78 72
 
79
-[node name="NewGameButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
80
-margin_right = 227.0
81
-margin_bottom = 48.0
82
-custom_fonts/font = ExtResource( 5 )
73
+[node name="NewGameButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer" instance=ExtResource( 8 )]
74
+margin_left = 0.0
75
+margin_top = 0.0
76
+margin_right = 235.0
77
+margin_bottom = 52.0
83 78
 text = "Nouvelle partie"
84
-__meta__ = {
85
-"_edit_use_anchors_": false
86
-}
87 79
 
88
-[node name="ContinueButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
89
-margin_top = 68.0
90
-margin_right = 227.0
91
-margin_bottom = 116.0
92
-custom_fonts/font = ExtResource( 5 )
80
+[node name="ContinueButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer" instance=ExtResource( 8 )]
81
+margin_left = 0.0
82
+margin_top = 72.0
83
+margin_right = 235.0
84
+margin_bottom = 124.0
93 85
 text = "Continuer"
94 86
 
95 87
 [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
96
-margin_top = 136.0
97
-margin_right = 227.0
98
-margin_bottom = 234.0
88
+margin_top = 144.0
89
+margin_right = 235.0
90
+margin_bottom = 246.0
91
+custom_constants/margin_top = 50
92
+__meta__ = {
93
+"_edit_use_anchors_": false
94
+}
95
+
96
+[node name="CreditsButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer" instance=ExtResource( 8 )]
97
+margin_left = 0.0
98
+margin_top = 50.0
99
+margin_right = 235.0
100
+margin_bottom = 102.0
101
+text = "Crédits"
102
+
103
+[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
104
+margin_top = 266.0
105
+margin_right = 235.0
106
+margin_bottom = 368.0
99 107
 custom_constants/margin_top = 50
100 108
 __meta__ = {
101 109
 "_edit_use_anchors_": false
102 110
 }
103 111
 
104
-[node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer"]
112
+[node name="ExitButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer2" instance=ExtResource( 8 )]
113
+margin_left = 0.0
105 114
 margin_top = 50.0
106
-margin_right = 227.0
107
-margin_bottom = 98.0
108
-custom_fonts/font = ExtResource( 5 )
115
+margin_right = 235.0
116
+margin_bottom = 102.0
109 117
 text = "Quitter"
110 118
 
111 119
 [node name="Characters" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer"]
112
-margin_left = 231.0
120
+margin_left = 239.0
113 121
 margin_right = 1720.0
114 122
 margin_bottom = 901.0
115 123
 size_flags_horizontal = 3
@@ -158,4 +166,5 @@ text = "Serious Game on Ethics v0.1"
158 166
 align = 2
159 167
 [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/NewGameButton" to="." method="_on_NewGameButton_pressed"]
160 168
 [connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/ContinueButton" to="." method="_on_ContinueButton_pressed"]
161
-[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
169
+[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer/CreditsButton" to="." method="_on_CreditsButton_pressed"]
170
+[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer2/ExitButton" to="." method="_on_ExitButton_pressed"]

+ 14
- 14
scenes/PauseMenu.tscn View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 [ext_resource path="res://scenes/PauseMenu.gd" type="Script" id=1]
4 4
 [ext_resource path="res://images/pause.png" type="Texture" id=2]
5
-[ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=3]
5
+[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=3]
6 6
 [ext_resource path="res://fonts/open-sans/OpenSans-Light.ttf" type="DynamicFontData" id=4]
7 7
 
8 8
 [sub_resource type="DynamicFont" id=1]
@@ -87,7 +87,7 @@ texture = ExtResource( 2 )
87 87
 [node name="Text" type="Label" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
88 88
 margin_top = 68.0
89 89
 margin_right = 1020.0
90
-margin_bottom = 728.0
90
+margin_bottom = 724.0
91 91
 size_flags_vertical = 3
92 92
 custom_fonts/font = SubResource( 1 )
93 93
 text = "Le jeu est en pause"
@@ -95,24 +95,24 @@ align = 1
95 95
 valign = 1
96 96
 
97 97
 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
98
-margin_top = 732.0
98
+margin_top = 728.0
99 99
 margin_right = 1020.0
100 100
 margin_bottom = 780.0
101 101
 custom_constants/separation = 50
102 102
 alignment = 1
103 103
 
104
-[node name="MenuButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
105
-margin_left = 353.0
106
-margin_right = 465.0
107
-margin_bottom = 48.0
108
-custom_fonts/font = ExtResource( 3 )
109
-text = "Quitter"
104
+[node name="MenuButton" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
105
+margin_left = 355.0
106
+margin_top = 0.0
107
+margin_right = 455.0
108
+margin_bottom = 52.0
109
+text = "Menu"
110 110
 
111
-[node name="ContinueButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
112
-margin_left = 515.0
113
-margin_right = 666.0
114
-margin_bottom = 48.0
115
-custom_fonts/font = ExtResource( 3 )
111
+[node name="ContinueButton" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
112
+margin_left = 505.0
113
+margin_top = 0.0
114
+margin_right = 664.0
115
+margin_bottom = 52.0
116 116
 text = "Continuer"
117 117
 [connection signal="pressed" from="BackgroundButton" to="." method="_on_BackgroundButton_pressed"]
118 118
 [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/MenuButton" to="." method="_on_MenuButton_pressed"]

+ 2
- 0
scenes/typo/Button.gd View File

@@ -0,0 +1,2 @@
1
+extends Button
2
+class_name CustomButton

+ 67
- 0
scenes/typo/Button.tscn View File

@@ -0,0 +1,67 @@
1
+[gd_scene load_steps=6 format=2]
2
+
3
+[ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=1]
4
+[ext_resource path="res://scenes/typo/Button.gd" type="Script" id=2]
5
+
6
+[sub_resource type="StyleBoxFlat" id=1]
7
+content_margin_left = 10.0
8
+content_margin_right = 10.0
9
+content_margin_top = 5.0
10
+content_margin_bottom = 5.0
11
+bg_color = Color( 0.380392, 0.368627, 0.643137, 1 )
12
+border_width_left = 1
13
+border_width_top = 1
14
+border_width_right = 1
15
+border_width_bottom = 1
16
+border_color = Color( 0.213929, 0.201553, 0.433594, 1 )
17
+corner_radius_top_left = 6
18
+corner_radius_top_right = 6
19
+corner_radius_bottom_right = 6
20
+corner_radius_bottom_left = 6
21
+
22
+[sub_resource type="StyleBoxFlat" id=2]
23
+content_margin_left = 10.0
24
+content_margin_right = 10.0
25
+content_margin_top = 5.0
26
+content_margin_bottom = 5.0
27
+bg_color = Color( 0.203922, 0.2, 0.34902, 1 )
28
+border_width_left = 1
29
+border_width_top = 1
30
+border_width_right = 1
31
+border_width_bottom = 1
32
+border_color = Color( 0.213929, 0.201553, 0.433594, 1 )
33
+corner_radius_top_left = 6
34
+corner_radius_top_right = 6
35
+corner_radius_bottom_right = 6
36
+corner_radius_bottom_left = 6
37
+
38
+[sub_resource type="StyleBoxFlat" id=3]
39
+content_margin_left = 10.0
40
+content_margin_right = 10.0
41
+content_margin_top = 5.0
42
+content_margin_bottom = 5.0
43
+bg_color = Color( 0.294118, 0.286275, 0.501961, 1 )
44
+border_width_left = 1
45
+border_width_top = 1
46
+border_width_right = 1
47
+border_width_bottom = 1
48
+border_color = Color( 0.213929, 0.201553, 0.433594, 1 )
49
+corner_radius_top_left = 6
50
+corner_radius_top_right = 6
51
+corner_radius_bottom_right = 6
52
+corner_radius_bottom_left = 6
53
+
54
+[node name="CustomButton" type="Button"]
55
+margin_left = -1.33484
56
+margin_top = -1.33484
57
+margin_right = 113.665
58
+margin_bottom = 50.6652
59
+custom_styles/hover = SubResource( 1 )
60
+custom_styles/pressed = SubResource( 2 )
61
+custom_styles/normal = SubResource( 3 )
62
+custom_fonts/font = ExtResource( 1 )
63
+text = "Button"
64
+script = ExtResource( 2 )
65
+__meta__ = {
66
+"_edit_use_anchors_": false
67
+}

+ 51
- 0
scenes/typo/CreditsItem.tscn View File

@@ -0,0 +1,51 @@
1
+[gd_scene load_steps=7 format=2]
2
+
3
+[ext_resource path="res://fonts/open-sans/OpenSans-Light.ttf" type="DynamicFontData" id=1]
4
+[ext_resource path="res://fonts/open-sans/OpenSans-Regular.ttf" type="DynamicFontData" id=2]
5
+[ext_resource path="res://scenes/typo/TeamMember.gd" type="Script" id=3]
6
+[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=4]
7
+
8
+[sub_resource type="DynamicFont" id=1]
9
+size = 40
10
+outline_size = 3
11
+outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
12
+font_data = ExtResource( 2 )
13
+
14
+[sub_resource type="DynamicFont" id=2]
15
+size = 40
16
+font_data = ExtResource( 1 )
17
+
18
+[node name="TeamMember" type="HBoxContainer"]
19
+anchor_right = 1.0
20
+anchor_bottom = 1.0
21
+script = ExtResource( 3 )
22
+__meta__ = {
23
+"_edit_use_anchors_": false
24
+}
25
+
26
+[node name="HBoxContainer" type="VBoxContainer" parent="."]
27
+margin_right = 1920.0
28
+margin_bottom = 1080.0
29
+size_flags_horizontal = 3
30
+
31
+[node name="Title" type="Label" parent="HBoxContainer"]
32
+margin_right = 1920.0
33
+margin_bottom = 55.0
34
+custom_fonts/font = SubResource( 1 )
35
+text = "Title"
36
+
37
+[node name="Subtitle" type="Label" parent="HBoxContainer"]
38
+margin_top = 59.0
39
+margin_right = 1920.0
40
+margin_bottom = 114.0
41
+custom_fonts/font = SubResource( 2 )
42
+text = "Subtitle"
43
+
44
+[node name="LinkButton" parent="." instance=ExtResource( 4 )]
45
+visible = false
46
+margin_left = 1812.0
47
+margin_top = 0.0
48
+margin_right = 1920.0
49
+margin_bottom = 1080.0
50
+text = "Ouvrir"
51
+[connection signal="pressed" from="LinkButton" to="." method="_on_LinkButton_pressed"]

+ 18
- 0
scenes/typo/TeamMember.gd View File

@@ -0,0 +1,18 @@
1
+tool
2
+extends HBoxContainer
3
+
4
+
5
+export(String) var title: String = ""
6
+export(String) var subtile: String = ""
7
+export(String) var link: String = ""
8
+
9
+
10
+func _ready():
11
+	$HBoxContainer/Title.text = title
12
+	$HBoxContainer/Subtitle.text = subtile
13
+	if not link.empty():
14
+		$LinkButton.show()
15
+
16
+
17
+func _on_LinkButton_pressed():
18
+	OS.shell_open(link)

+ 18
- 0
scenes/typo/Title.tscn View File

@@ -0,0 +1,18 @@
1
+[gd_scene load_steps=3 format=2]
2
+
3
+[ext_resource path="res://fonts/open-sans/OpenSans-Bold.ttf" type="DynamicFontData" id=1]
4
+
5
+[sub_resource type="DynamicFont" id=1]
6
+size = 60
7
+outline_size = 4
8
+outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
9
+font_data = ExtResource( 1 )
10
+
11
+[node name="Label" type="Label"]
12
+margin_right = 132.0
13
+margin_bottom = 83.0
14
+custom_fonts/font = SubResource( 1 )
15
+text = "Title"
16
+__meta__ = {
17
+"_edit_use_anchors_": false
18
+}

Loading…
Cancel
Save