Browse Source

move title in own scene

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

+ 2
- 6
scenes/MainMenu.tscn View File

@@ -5,7 +5,7 @@
5 5
 [ext_resource path="res://characters/Jean-Michel/Jean-Méchant.png" type="Texture" id=3]
6 6
 [ext_resource path="res://backgrounds/bureauGroupe-1.jpg" type="Texture" id=4]
7 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 9
 [ext_resource path="res://scenes/MainMenu.gd" type="Script" id=7]
10 10
 [ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=8]
11 11
 
@@ -47,11 +47,7 @@ __meta__ = {
47 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 52
 [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
57 53
 margin_top = 141.0

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

@@ -0,0 +1,12 @@
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