Finish Ui main interface
This commit is contained in:
+3
-3
@@ -13,9 +13,9 @@ func _ready():
|
||||
|
||||
## PRIVATE
|
||||
func _translation():
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader/ButtonPuzzle.text = tr("MAIN_BUTTON_PUZZLES")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader/ButtonSetting.text = tr("MAIN_BUTTON_SETTINGS")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter/ButtonQuit.text = tr("MAIN_BUTTON_QUIT")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/ButtonPuzzle/Label.text = tr("MAIN_BUTTON_PUZZLES")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/ButtonSetting/Label.text = tr("MAIN_BUTTON_SETTINGS")
|
||||
$MarginContainer/UI_summary/PanelWood/VBoxContainer/ButtonQuit/Label.text = tr("MAIN_BUTTON_QUIT")
|
||||
|
||||
func _prepare_change_scene():
|
||||
if (current_scene != null):
|
||||
|
||||
+1
-52
@@ -1,9 +1,7 @@
|
||||
[gd_scene load_steps=13 format=2]
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://scenes/main.gd" type="Script" id=1]
|
||||
[ext_resource path="res://assets/ui/themes/game-title.png" type="Texture" id=2]
|
||||
[ext_resource path="res://assets/fonts/MKXTitle.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://assets/ui/themes/leather.theme" type="Theme" id=4]
|
||||
[ext_resource path="res://assets/ui/themes/bck.jpg" type="Texture" id=6]
|
||||
[ext_resource path="res://assets/ui/UI_summary.tscn" type="PackedScene" id=8]
|
||||
|
||||
@@ -58,12 +56,6 @@ nodes/fragment/connections = PoolIntArray( 4, 0, 0, 0 )
|
||||
[sub_resource type="ShaderMaterial" id=6]
|
||||
shader = SubResource( 5 )
|
||||
|
||||
[sub_resource type="GDScript" id=1]
|
||||
script/source = "extends LinkButton
|
||||
|
||||
# Quit the game with properly exit code
|
||||
"
|
||||
|
||||
[node name="Main" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -77,37 +69,6 @@ material = SubResource( 6 )
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="Action" type="Panel" parent="."]
|
||||
visible = false
|
||||
margin_left = -1.33484
|
||||
margin_top = 150.0
|
||||
margin_right = 148.665
|
||||
margin_bottom = 600.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Quit" type="LinkButton" parent="Action"]
|
||||
margin_left = 10.0
|
||||
margin_top = 401.059
|
||||
margin_right = 161.0
|
||||
margin_bottom = 435.059
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Quitter"
|
||||
script = SubResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Button" type="Button" parent="Action"]
|
||||
margin_right = 130.0
|
||||
margin_bottom = 66.0
|
||||
theme = ExtResource( 4 )
|
||||
text = "thfh"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -122,12 +83,6 @@ margin_bottom = 900.0
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="ButtonQuit" parent="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter" index="0"]
|
||||
margin_right = 350.0
|
||||
|
||||
[node name="Label" parent="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter" index="1"]
|
||||
margin_right = 350.0
|
||||
|
||||
[node name="CenterContainer" type="MarginContainer" parent="MarginContainer"]
|
||||
margin_left = 385.0
|
||||
margin_right = 1054.0
|
||||
@@ -140,10 +95,4 @@ margin_right = 669.0
|
||||
margin_bottom = 900.0
|
||||
texture = ExtResource( 2 )
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader/ButtonPuzzle" to="." method="_on_ButtonPuzzle_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader/ButtonSetting" to="." method="_on_ButtonSetting_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter/ButtonQuit" to="." method="_on_ButtonQuit_pressed"]
|
||||
|
||||
[editable path="MarginContainer/UI_summary"]
|
||||
[editable path="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryHeader"]
|
||||
[editable path="MarginContainer/UI_summary/PanelWood/VBoxContainer/SummaryFooter"]
|
||||
|
||||
Reference in New Issue
Block a user