improve UI and add credits
This commit is contained in:
parent
c44096c894
commit
a36a9b8a09
12 changed files with 466 additions and 49 deletions
9
fonts/Title.tres
Normal file
9
fonts/Title.tres
Normal file
|
@ -0,0 +1,9 @@
|
|||
[gd_resource type="DynamicFont" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Bold.ttf" type="DynamicFontData" id=1]
|
||||
|
||||
[resource]
|
||||
size = 100
|
||||
outline_size = 5
|
||||
outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
|
||||
font_data = ExtResource( 1 )
|
|
@ -9,6 +9,11 @@
|
|||
config_version=4
|
||||
|
||||
_global_script_classes=[ {
|
||||
"base": "Button",
|
||||
"class": "CustomButton",
|
||||
"language": "GDScript",
|
||||
"path": "res://scenes/typo/Button.gd"
|
||||
}, {
|
||||
"base": "Node",
|
||||
"class": "Dialogic",
|
||||
"language": "GDScript",
|
||||
|
@ -35,6 +40,7 @@ _global_script_classes=[ {
|
|||
"path": "res://addons/dialogic/Other/DialogicUtil.gd"
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
"CustomButton": "",
|
||||
"Dialogic": "",
|
||||
"DialogicBackgroundMusic": "",
|
||||
"DialogicDefinitionsUtil": "",
|
||||
|
|
10
scenes/Credits.gd
Normal file
10
scenes/Credits.gd
Normal file
|
@ -0,0 +1,10 @@
|
|||
extends Control
|
||||
|
||||
|
||||
|
||||
func load_main_menu():
|
||||
get_tree().change_scene("res://scenes/MainMenu.tscn")
|
||||
|
||||
|
||||
func _on_BackButton_pressed():
|
||||
load_main_menu()
|
216
scenes/Credits.tscn
Normal file
216
scenes/Credits.tscn
Normal file
|
@ -0,0 +1,216 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/Credits.gd" type="Script" id=1]
|
||||
[ext_resource path="res://backgrounds/bureauGroupe-2.jpg" type="Texture" id=2]
|
||||
[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Regular.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://scenes/typo/Title.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://scenes/typo/CreditsItem.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=7]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 80
|
||||
outline_size = 4
|
||||
outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
|
||||
font_data = ExtResource( 4 )
|
||||
|
||||
[node name="Credits" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
texture = ExtResource( 2 )
|
||||
stretch_mode = 7
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/margin_right = 100
|
||||
custom_constants/margin_top = 10
|
||||
custom_constants/margin_left = 100
|
||||
custom_constants/margin_bottom = 10
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
margin_left = 100.0
|
||||
margin_top = 10.0
|
||||
margin_right = 1820.0
|
||||
margin_bottom = 1070.0
|
||||
|
||||
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
margin_right = 1720.0
|
||||
margin_bottom = 137.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Serious Game on Ethics"
|
||||
|
||||
[node name="Credits" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
margin_top = 141.0
|
||||
margin_right = 1720.0
|
||||
margin_bottom = 251.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "Crédits"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Control" type="Control" parent="MarginContainer/VBoxContainer"]
|
||||
margin_top = 255.0
|
||||
margin_right = 1720.0
|
||||
margin_bottom = 1004.0
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="MarginContainer/VBoxContainer/Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
size_flags_vertical = 3
|
||||
color = Color( 0, 0, 0, 0.423529 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_constants/margin_right = 20
|
||||
custom_constants/margin_top = 10
|
||||
custom_constants/margin_left = 20
|
||||
custom_constants/margin_bottom = 10
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/VBoxContainer/Control/MarginContainer"]
|
||||
margin_left = 20.0
|
||||
margin_top = 10.0
|
||||
margin_right = 1700.0
|
||||
margin_bottom = 739.0
|
||||
size_flags_vertical = 3
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer"]
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 1319.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Équipe" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
|
||||
margin_right = 1668.0
|
||||
text = "Équipe"
|
||||
align = 1
|
||||
|
||||
[node name="Abir" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 87.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 201.0
|
||||
title = "Abir Benazzouz"
|
||||
subtile = "Dessins et animations"
|
||||
|
||||
[node name="Arnaud" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 205.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 319.0
|
||||
title = "Arnaud Vergnet"
|
||||
subtile = "Programmation"
|
||||
|
||||
[node name="Auriane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 323.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 437.0
|
||||
title = "Auriane Lartigue"
|
||||
subtile = "Dessins"
|
||||
|
||||
[node name="Clémentine" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 441.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 555.0
|
||||
title = "Clémentine Bonneau"
|
||||
subtile = "Scénario"
|
||||
|
||||
[node name="Élise" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 559.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 673.0
|
||||
title = "Élise Barnabé"
|
||||
subtile = "Scénario"
|
||||
|
||||
[node name="Morgane" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 677.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 791.0
|
||||
title = "Morgane Foussats"
|
||||
subtile = "Scénario"
|
||||
|
||||
[node name="Nabil" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 795.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 909.0
|
||||
title = "Nabil Moukhlis"
|
||||
subtile = "Programmation et dessins"
|
||||
|
||||
[node name="Technologies" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
|
||||
margin_top = 913.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 996.0
|
||||
text = "Technologies"
|
||||
align = 1
|
||||
|
||||
[node name="Godot" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 1000.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 1114.0
|
||||
title = "Godot v3.2.3"
|
||||
subtile = "Moteur de jeu"
|
||||
link = "https://godotengine.org/"
|
||||
|
||||
[node name="Dialogic" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_top = 1118.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 1232.0
|
||||
title = "Dialogic v1.1"
|
||||
subtile = "Plugin de dialogues"
|
||||
link = "https://github.com/coppolaemilio/dialogic"
|
||||
|
||||
[node name="Images" parent="MarginContainer/VBoxContainer/Control/MarginContainer/ScrollContainer/VBoxContainer" instance=ExtResource( 5 )]
|
||||
margin_top = 1236.0
|
||||
margin_right = 1668.0
|
||||
margin_bottom = 1319.0
|
||||
text = "Images"
|
||||
align = 1
|
||||
|
||||
[node name="BackButton" parent="MarginContainer/VBoxContainer" instance=ExtResource( 7 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 1008.0
|
||||
margin_right = 1720.0
|
||||
margin_bottom = 1060.0
|
||||
text = "Retour"
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/BackButton" to="." method="_on_BackButton_pressed"]
|
|
@ -1,10 +1,16 @@
|
|||
extends Control
|
||||
|
||||
func _ready():
|
||||
Dialogic.set_autosave(true)
|
||||
|
||||
func load_main_game():
|
||||
get_tree().change_scene("res://scenes/Main.tscn")
|
||||
|
||||
|
||||
func load_credits():
|
||||
get_tree().change_scene("res://scenes/Credits.tscn")
|
||||
|
||||
|
||||
func _on_NewGameButton_pressed():
|
||||
Dialogic.reset_saves()
|
||||
load_main_game()
|
||||
|
@ -16,3 +22,8 @@ func _on_ContinueButton_pressed():
|
|||
|
||||
func _on_ExitButton_pressed():
|
||||
get_tree().quit(0)
|
||||
|
||||
|
||||
func _on_CreditsButton_pressed():
|
||||
load_credits()
|
||||
|
||||
|
|
|
@ -1,18 +1,12 @@
|
|||
[gd_scene load_steps=9 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://characters/Evelyne/evelyne.png" type="Texture" id=1]
|
||||
[ext_resource path="res://characters/Patrick/Patrick sans Barbe/Pat_cool.png" type="Texture" id=2]
|
||||
[ext_resource path="res://characters/Jean-Michel/Jean-Michel.png" type="Texture" id=3]
|
||||
[ext_resource path="res://backgrounds/bureauGroupe-2.jpg" type="Texture" id=4]
|
||||
[ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=5]
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Bold.ttf" type="DynamicFontData" id=6]
|
||||
[ext_resource path="res://fonts/Title.tres" type="DynamicFont" id=6]
|
||||
[ext_resource path="res://scenes/MainMenu.gd" type="Script" id=7]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 100
|
||||
outline_size = 5
|
||||
outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
|
||||
font_data = ExtResource( 6 )
|
||||
[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=8]
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
|
@ -54,7 +48,7 @@ __meta__ = {
|
|||
[node name="Title" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
margin_right = 1720.0
|
||||
margin_bottom = 137.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_fonts/font = ExtResource( 6 )
|
||||
text = "Serious Game on Ethics"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/VBoxContainer"]
|
||||
|
@ -67,49 +61,63 @@ __meta__ = {
|
|||
}
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
margin_right = 227.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 901.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer"]
|
||||
margin_top = 333.0
|
||||
margin_right = 227.0
|
||||
margin_bottom = 567.0
|
||||
margin_top = 266.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 634.0
|
||||
custom_constants/separation = 20
|
||||
|
||||
[node name="NewGameButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
|
||||
margin_right = 227.0
|
||||
margin_bottom = 48.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
[node name="NewGameButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer" instance=ExtResource( 8 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 0.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 52.0
|
||||
text = "Nouvelle partie"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
|
||||
margin_top = 68.0
|
||||
margin_right = 227.0
|
||||
margin_bottom = 116.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
[node name="ContinueButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer" instance=ExtResource( 8 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 72.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 124.0
|
||||
text = "Continuer"
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
|
||||
margin_top = 136.0
|
||||
margin_right = 227.0
|
||||
margin_bottom = 234.0
|
||||
margin_top = 144.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 246.0
|
||||
custom_constants/margin_top = 50
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer"]
|
||||
[node name="CreditsButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer" instance=ExtResource( 8 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 50.0
|
||||
margin_right = 227.0
|
||||
margin_bottom = 98.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
margin_right = 235.0
|
||||
margin_bottom = 102.0
|
||||
text = "Crédits"
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer"]
|
||||
margin_top = 266.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 368.0
|
||||
custom_constants/margin_top = 50
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="ExitButton" parent="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer2" instance=ExtResource( 8 )]
|
||||
margin_left = 0.0
|
||||
margin_top = 50.0
|
||||
margin_right = 235.0
|
||||
margin_bottom = 102.0
|
||||
text = "Quitter"
|
||||
|
||||
[node name="Characters" type="Control" parent="MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
margin_left = 231.0
|
||||
margin_left = 239.0
|
||||
margin_right = 1720.0
|
||||
margin_bottom = 901.0
|
||||
size_flags_horizontal = 3
|
||||
|
@ -158,4 +166,5 @@ text = "Serious Game on Ethics v0.1"
|
|||
align = 2
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/NewGameButton" to="." method="_on_NewGameButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/ContinueButton" to="." method="_on_ContinueButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer/CreditsButton" to="." method="_on_CreditsButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/HBoxContainer/CenterContainer/VBoxContainer/MarginContainer2/ExitButton" to="." method="_on_ExitButton_pressed"]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[ext_resource path="res://scenes/PauseMenu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://images/pause.png" type="Texture" id=2]
|
||||
[ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Light.ttf" type="DynamicFontData" id=4]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
|
@ -87,7 +87,7 @@ texture = ExtResource( 2 )
|
|||
[node name="Text" type="Label" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
|
||||
margin_top = 68.0
|
||||
margin_right = 1020.0
|
||||
margin_bottom = 728.0
|
||||
margin_bottom = 724.0
|
||||
size_flags_vertical = 3
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "Le jeu est en pause"
|
||||
|
@ -95,24 +95,24 @@ align = 1
|
|||
valign = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
|
||||
margin_top = 732.0
|
||||
margin_top = 728.0
|
||||
margin_right = 1020.0
|
||||
margin_bottom = 780.0
|
||||
custom_constants/separation = 50
|
||||
alignment = 1
|
||||
|
||||
[node name="MenuButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
|
||||
margin_left = 353.0
|
||||
margin_right = 465.0
|
||||
margin_bottom = 48.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Quitter"
|
||||
[node name="MenuButton" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
|
||||
margin_left = 355.0
|
||||
margin_top = 0.0
|
||||
margin_right = 455.0
|
||||
margin_bottom = 52.0
|
||||
text = "Menu"
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
|
||||
margin_left = 515.0
|
||||
margin_right = 666.0
|
||||
margin_bottom = 48.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
[node name="ContinueButton" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
|
||||
margin_left = 505.0
|
||||
margin_top = 0.0
|
||||
margin_right = 664.0
|
||||
margin_bottom = 52.0
|
||||
text = "Continuer"
|
||||
[connection signal="pressed" from="BackgroundButton" to="." method="_on_BackgroundButton_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/MenuButton" to="." method="_on_MenuButton_pressed"]
|
||||
|
|
2
scenes/typo/Button.gd
Normal file
2
scenes/typo/Button.gd
Normal file
|
@ -0,0 +1,2 @@
|
|||
extends Button
|
||||
class_name CustomButton
|
67
scenes/typo/Button.tscn
Normal file
67
scenes/typo/Button.tscn
Normal file
|
@ -0,0 +1,67 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://scenes/typo/Button.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
content_margin_left = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_top = 5.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color( 0.380392, 0.368627, 0.643137, 1 )
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color( 0.213929, 0.201553, 0.433594, 1 )
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=2]
|
||||
content_margin_left = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_top = 5.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color( 0.203922, 0.2, 0.34902, 1 )
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color( 0.213929, 0.201553, 0.433594, 1 )
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=3]
|
||||
content_margin_left = 10.0
|
||||
content_margin_right = 10.0
|
||||
content_margin_top = 5.0
|
||||
content_margin_bottom = 5.0
|
||||
bg_color = Color( 0.294118, 0.286275, 0.501961, 1 )
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color( 0.213929, 0.201553, 0.433594, 1 )
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[node name="CustomButton" type="Button"]
|
||||
margin_left = -1.33484
|
||||
margin_top = -1.33484
|
||||
margin_right = 113.665
|
||||
margin_bottom = 50.6652
|
||||
custom_styles/hover = SubResource( 1 )
|
||||
custom_styles/pressed = SubResource( 2 )
|
||||
custom_styles/normal = SubResource( 3 )
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Button"
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
51
scenes/typo/CreditsItem.tscn
Normal file
51
scenes/typo/CreditsItem.tscn
Normal file
|
@ -0,0 +1,51 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Light.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Regular.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://scenes/typo/TeamMember.gd" type="Script" id=3]
|
||||
[ext_resource path="res://scenes/typo/Button.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 40
|
||||
outline_size = 3
|
||||
outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 40
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[node name="TeamMember" type="HBoxContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="HBoxContainer" type="VBoxContainer" parent="."]
|
||||
margin_right = 1920.0
|
||||
margin_bottom = 1080.0
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Title" type="Label" parent="HBoxContainer"]
|
||||
margin_right = 1920.0
|
||||
margin_bottom = 55.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "Title"
|
||||
|
||||
[node name="Subtitle" type="Label" parent="HBoxContainer"]
|
||||
margin_top = 59.0
|
||||
margin_right = 1920.0
|
||||
margin_bottom = 114.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Subtitle"
|
||||
|
||||
[node name="LinkButton" parent="." instance=ExtResource( 4 )]
|
||||
visible = false
|
||||
margin_left = 1812.0
|
||||
margin_top = 0.0
|
||||
margin_right = 1920.0
|
||||
margin_bottom = 1080.0
|
||||
text = "Ouvrir"
|
||||
[connection signal="pressed" from="LinkButton" to="." method="_on_LinkButton_pressed"]
|
18
scenes/typo/TeamMember.gd
Normal file
18
scenes/typo/TeamMember.gd
Normal file
|
@ -0,0 +1,18 @@
|
|||
tool
|
||||
extends HBoxContainer
|
||||
|
||||
|
||||
export(String) var title: String = ""
|
||||
export(String) var subtile: String = ""
|
||||
export(String) var link: String = ""
|
||||
|
||||
|
||||
func _ready():
|
||||
$HBoxContainer/Title.text = title
|
||||
$HBoxContainer/Subtitle.text = subtile
|
||||
if not link.empty():
|
||||
$LinkButton.show()
|
||||
|
||||
|
||||
func _on_LinkButton_pressed():
|
||||
OS.shell_open(link)
|
18
scenes/typo/Title.tscn
Normal file
18
scenes/typo/Title.tscn
Normal file
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://fonts/open-sans/OpenSans-Bold.ttf" type="DynamicFontData" id=1]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 60
|
||||
outline_size = 4
|
||||
outline_color = Color( 0.384314, 0.380392, 0.380392, 1 )
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[node name="Label" type="Label"]
|
||||
margin_right = 132.0
|
||||
margin_bottom = 83.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "Title"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
Loading…
Reference in a new issue