mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
bugfixes for saving and layout
This commit is contained in:
parent
c30cc4589e
commit
44d47888ca
11 changed files with 26 additions and 32 deletions
|
@ -1,8 +1,8 @@
|
|||
extends PanelContainer
|
||||
|
||||
onready var stage_label = $CenterContainer/HBoxContainer/VBoxContainer/StageName
|
||||
onready var score = $CenterContainer/HBoxContainer/VBoxContainer/ScoreLabel
|
||||
onready var play = $CenterContainer/HBoxContainer/VBoxContainer/PlayButton
|
||||
onready var stage_label = $VBoxContainer/StageName
|
||||
onready var score = $VBoxContainer/ScoreLabel
|
||||
onready var play = $VBoxContainer/PlayButton
|
||||
|
||||
func _ready():
|
||||
var _game_stats = GameStats.connect("current_stage_changed", self, "update_info")
|
||||
|
|
|
@ -9,8 +9,11 @@
|
|||
bg_color = Color( 0.6, 0.6, 0.6, 0 )
|
||||
|
||||
[node name="LevelInfo" type="PanelContainer"]
|
||||
anchor_right = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_top = -216.0
|
||||
margin_right = 117.0
|
||||
margin_bottom = -104.0
|
||||
theme = ExtResource( 2 )
|
||||
custom_styles/panel = SubResource( 1 )
|
||||
script = ExtResource( 1 )
|
||||
|
@ -18,27 +21,17 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
margin_right = 384.0
|
||||
margin_bottom = 216.0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer"]
|
||||
margin_left = 133.0
|
||||
margin_top = 59.0
|
||||
margin_right = 250.0
|
||||
margin_bottom = 157.0
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/HBoxContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
margin_right = 117.0
|
||||
margin_bottom = 98.0
|
||||
margin_bottom = 112.0
|
||||
|
||||
[node name="XPLabel" type="Label" parent="CenterContainer/HBoxContainer/VBoxContainer"]
|
||||
[node name="XPLabel" type="Label" parent="VBoxContainer"]
|
||||
margin_right = 117.0
|
||||
margin_bottom = 18.0
|
||||
text = "XP: "
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="StageName" type="Label" parent="CenterContainer/HBoxContainer/VBoxContainer"]
|
||||
[node name="StageName" type="Label" parent="VBoxContainer"]
|
||||
margin_top = 22.0
|
||||
margin_right = 117.0
|
||||
margin_bottom = 40.0
|
||||
|
@ -46,7 +39,7 @@ theme = ExtResource( 2 )
|
|||
text = "select stage"
|
||||
valign = 3
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="CenterContainer/HBoxContainer/VBoxContainer"]
|
||||
[node name="ScoreLabel" type="Label" parent="VBoxContainer"]
|
||||
margin_top = 44.0
|
||||
margin_right = 117.0
|
||||
margin_bottom = 62.0
|
||||
|
@ -57,7 +50,7 @@ __meta__ = {
|
|||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="PlayButton" parent="CenterContainer/HBoxContainer/VBoxContainer" instance=ExtResource( 6 )]
|
||||
[node name="PlayButton" parent="VBoxContainer" instance=ExtResource( 6 )]
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.0
|
||||
anchor_right = 0.0
|
||||
|
|
|
@ -26,7 +26,7 @@ anchor_right = 0.0
|
|||
anchor_bottom = 0.0
|
||||
margin_right = 168.0
|
||||
margin_bottom = 40.0
|
||||
text = "> Heart"
|
||||
text = "> heart"
|
||||
icon = ExtResource( 2 )
|
||||
scene = "res://Stages/Heart.tscn"
|
||||
|
||||
|
|
|
@ -11,3 +11,4 @@ func _on_AnimationPlayer_animation_finished(_anim_name):
|
|||
$Congratulations.visible = false
|
||||
$Congratulations2.visible = false
|
||||
$Control.visible = true
|
||||
GameStats.emit_signal("win_animation_finished")
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
[gd_scene load_steps=13 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://Menu/LevelInfo.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Menu/Buttons/RestartButton.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Menu/Theme.tres" type="Theme" id=3]
|
||||
[ext_resource path="res://Menu/WinScreen.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Menu/Buttons/LevelSelectIconButton.tscn" type="PackedScene" id=5]
|
||||
|
@ -114,12 +113,8 @@ margin_top = 44.0
|
|||
margin_right = 117.0
|
||||
margin_bottom = 76.0
|
||||
|
||||
[node name="RestartButton" parent="Control/Panel2/Panel/CenterContainer/GridContainer/HBoxContainer" instance=ExtResource( 2 )]
|
||||
margin_bottom = 32.0
|
||||
|
||||
[node name="LevelSelectIconButton" parent="Control/Panel2/Panel/CenterContainer/GridContainer/HBoxContainer" instance=ExtResource( 5 )]
|
||||
margin_left = 36.0
|
||||
margin_right = 68.0
|
||||
margin_right = 32.0
|
||||
margin_bottom = 32.0
|
||||
texture_normal = ExtResource( 6 )
|
||||
texture_pressed = ExtResource( 8 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue