Browse Source

move title in own scene

Arnaud Vergnet 2 years ago
parent
commit
f8fff0a925
3 changed files with 23 additions and 12 deletions
  1. 9
    6
      scenes/Credits.tscn
  2. 2
    6
      scenes/MainMenu.tscn
  3. 12
    0
      scenes/typo/GameTitle.tscn

+ 9
- 6
scenes/Credits.tscn View File

2
 
2
 
3
 [ext_resource path="res://scenes/Credits.gd" type="Script" id=1]
3
 [ext_resource path="res://scenes/Credits.gd" type="Script" id=1]
4
 [ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=2]
4
 [ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=2]
5
-[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=3]
5
+[ext_resource path="res://scenes/typo/GameTitle.tscn" type="PackedScene" id=3]
6
 [ext_resource path="res://fonts/open-sans/OpenSans-Regular.ttf" type="DynamicFontData" id=4]
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]
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]
8
 [ext_resource path="res://scenes/typo/CreditsItem.tscn" type="PackedScene" id=6]
49
 margin_right = 1820.0
49
 margin_right = 1820.0
50
 margin_bottom = 1070.0
50
 margin_bottom = 1070.0
51
 
51
 
52
-[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
53
-margin_right = 1720.0
54
-margin_bottom = 137.0
55
-custom_fonts/font = ExtResource( 3 )
56
-text = "Serious Game on Ethics"
52
+[node name="GameTitle" parent="MarginContainer/VBoxContainer" instance=ExtResource( 3 )]
57
 
53
 
58
 [node name="Credits" type="Label" parent="MarginContainer/VBoxContainer"]
54
 [node name="Credits" type="Label" parent="MarginContainer/VBoxContainer"]
59
 margin_top = 141.0
55
 margin_top = 141.0
119
 margin_bottom = 201.0
115
 margin_bottom = 201.0
120
 title = "Abir Benazzouz"
116
 title = "Abir Benazzouz"
121
 subtile = "Dessins et animations"
117
 subtile = "Dessins et animations"
118
+link = ""
122
 
119
 
123
 [node name="Arnaud" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
120
 [node name="Arnaud" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
124
 anchor_right = 0.0
121
 anchor_right = 0.0
128
 margin_bottom = 319.0
125
 margin_bottom = 319.0
129
 title = "Arnaud Vergnet"
126
 title = "Arnaud Vergnet"
130
 subtile = "Programmation"
127
 subtile = "Programmation"
128
+link = ""
131
 
129
 
132
 [node name="Auriane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
130
 [node name="Auriane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
133
 anchor_right = 0.0
131
 anchor_right = 0.0
137
 margin_bottom = 437.0
135
 margin_bottom = 437.0
138
 title = "Auriane Lartigue"
136
 title = "Auriane Lartigue"
139
 subtile = "Dessins"
137
 subtile = "Dessins"
138
+link = ""
140
 
139
 
141
 [node name="Clémentine" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
140
 [node name="Clémentine" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
142
 anchor_right = 0.0
141
 anchor_right = 0.0
146
 margin_bottom = 555.0
145
 margin_bottom = 555.0
147
 title = "Clémentine Bonneau"
146
 title = "Clémentine Bonneau"
148
 subtile = "Scénario"
147
 subtile = "Scénario"
148
+link = ""
149
 
149
 
150
 [node name="Élise" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
150
 [node name="Élise" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
151
 anchor_right = 0.0
151
 anchor_right = 0.0
155
 margin_bottom = 673.0
155
 margin_bottom = 673.0
156
 title = "Élise Barnabé"
156
 title = "Élise Barnabé"
157
 subtile = "Scénario"
157
 subtile = "Scénario"
158
+link = ""
158
 
159
 
159
 [node name="Morgane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
160
 [node name="Morgane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
160
 anchor_right = 0.0
161
 anchor_right = 0.0
164
 margin_bottom = 791.0
165
 margin_bottom = 791.0
165
 title = "Morgane Foussats"
166
 title = "Morgane Foussats"
166
 subtile = "Scénario"
167
 subtile = "Scénario"
168
+link = ""
167
 
169
 
168
 [node name="Nabil" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
170
 [node name="Nabil" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
169
 anchor_right = 0.0
171
 anchor_right = 0.0
173
 margin_bottom = 909.0
175
 margin_bottom = 909.0
174
 title = "Nabil Moukhlis"
176
 title = "Nabil Moukhlis"
175
 subtile = "Programmation et dessins"
177
 subtile = "Programmation et dessins"
178
+link = ""
176
 
179
 
177
 [node name="Technologies" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
180
 [node name="Technologies" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
178
 margin_top = 913.0
181
 margin_top = 913.0

+ 2
- 6
scenes/MainMenu.tscn View File

5
 [ext_resource path="res://characters/Jean-Michel/Jean-Méchant.png" type="Texture" id=3]
5
 [ext_resource path="res://characters/Jean-Michel/Jean-Méchant.png" type="Texture" id=3]
6
 [ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=4]
6
 [ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=4]
7
 [ext_resource path="res://styles/Panel.tres" type="StyleBox" id=5]
7
 [ext_resource path="res://styles/Panel.tres" type="StyleBox" id=5]
8
-[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=6]
8
+[ext_resource path="res://scenes/typo/GameTitle.tscn" type="PackedScene" id=6]
9
 [ext_resource path="res://scenes/MainMenu.gd" type="Script" id=7]
9
 [ext_resource path="res://scenes/MainMenu.gd" type="Script" id=7]
10
 [ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=8]
10
 [ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=8]
11
 
11
 
47
 "_edit_use_anchors_": false
47
 "_edit_use_anchors_": false
48
 }
48
 }
49
 
49
 
50
-[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
51
-margin_right = 1720.0
52
-margin_bottom = 137.0
53
-custom_fonts/font = ExtResource( 6 )
54
-text = "Serious Game on Ethics"
50
+[node name="GameTitle" parent="MarginContainer/VBoxContainer" instance=ExtResource( 6 )]
55
 
51
 
56
 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
52
 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
57
 margin_top = 141.0
53
 margin_top = 141.0

+ 12
- 0
scenes/typo/GameTitle.tscn View File

1
+[gd_scene load_steps=2 format=2]
2
+
3
+[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=1]
4
+
5
+[node name="GameTitle" type="Label"]
6
+margin_right = 1720.0
7
+margin_bottom = 137.0
8
+custom_fonts/font = ExtResource( 1 )
9
+text = "Serious Game on Ethics"
10
+__meta__ = {
11
+"_edit_use_anchors_": false
12
+}

Loading…
Cancel
Save