Replace scene about by settings

This commit is contained in:
VAILLANT Jeremy
2021-05-13 15:39:15 +02:00
parent 8af720ff34
commit 4afe0ceb2e
8 changed files with 114 additions and 109 deletions
-57
View File
@@ -1,57 +0,0 @@
[gd_scene load_steps=2 format=2]
[sub_resource type="GDScript" id=1]
script/source = "extends Node
func _ready():
$CenterContainer/VBoxContainer/LeadDev.text = tr(\"ABOUT_LEAD_DEV\")
$CenterContainer/VBoxContainer/LeadArtist.text = tr(\"ABOUT_LEAD_ARTIST\")
$CenterContainer/VBoxContainer/Sources.text = tr(\"ABOUT_SOURCE_GAME\")
"
[node name="About" type="Node"]
script = SubResource( 1 )
[node name="CenterContainer" type="CenterContainer" parent="."]
margin_left = 150.0
margin_right = 1024.0
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 210.0
margin_top = 275.0
margin_right = 663.0
margin_bottom = 325.0
alignment = 1
[node name="LeadDev" type="Label" parent="CenterContainer/VBoxContainer"]
margin_right = 453.0
margin_bottom = 14.0
text = "Lead Develop : GRem -- VAILLANT Jérémy"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LeadArtist" type="Label" parent="CenterContainer/VBoxContainer"]
margin_top = 18.0
margin_right = 453.0
margin_bottom = 32.0
text = "Lead Artist : Stilobique -- VAILLANT Aurelien"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Sources" type="Label" parent="CenterContainer/VBoxContainer"]
margin_top = 36.0
margin_right = 453.0
margin_bottom = 50.0
text = "Source code of game : https://dev.stilobique.com/Athena/game-source"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
+67
View File
@@ -0,0 +1,67 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://addons/godot_db_manager/tables_list.gd" type="Script" id=1]
[sub_resource type="GDScript" id=1]
script/source = "extends Node
func _ready():
$CenterContainer/VBoxContainer/Langue/Label.text = tr(\"SETTINGS_LABEL_LANGUE\")
$CenterContainer/VBoxContainer/gyroscope/Label.text = tr(\"SETTINGS_LABEL_GYROSCOPE\")
func _on_Gyroscope_pressed():
print(\"[Settings#_on_Gyroscope_pressed]\")
"
[node name="About" type="Node"]
script = SubResource( 1 )
[node name="CenterContainer" type="CenterContainer" parent="."]
margin_left = 150.0
margin_right = 1024.0
margin_bottom = 600.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 400.0
margin_top = 284.0
margin_right = 473.0
margin_bottom = 316.0
alignment = 1
[node name="Langue" type="CenterContainer" parent="CenterContainer/VBoxContainer"]
margin_right = 73.0
margin_bottom = 14.0
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer/Langue"]
margin_left = 11.0
margin_right = 61.0
margin_bottom = 14.0
text = "langue :"
[node name="GDDBTablesList" type="Control" parent="CenterContainer/VBoxContainer/Langue"]
margin_left = 36.0
margin_top = 7.0
margin_right = 36.0
margin_bottom = 7.0
script = ExtResource( 1 )
[node name="gyroscope" type="CenterContainer" parent="CenterContainer/VBoxContainer"]
margin_top = 18.0
margin_right = 73.0
margin_bottom = 32.0
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer/gyroscope"]
margin_right = 73.0
margin_bottom = 14.0
text = "gyroscope :"
[node name="TextureButton" type="TextureButton" parent="CenterContainer/VBoxContainer/gyroscope"]
margin_left = 36.0
margin_top = 7.0
margin_right = 36.0
margin_bottom = 7.0
[connection signal="pressed" from="CenterContainer/VBoxContainer/gyroscope/TextureButton" to="." method="_on_Gyroscope_pressed"]