add DepthButton
This commit is contained in:
parent
e758168757
commit
47234f1bc1
9 changed files with 304 additions and 62 deletions
|
@ -1,8 +1,16 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://assets/taqin_theme.tres" type="Theme" id=1]
|
||||
[ext_resource path="res://src/difficulty_buttongroup.tres" type="ButtonGroup" id=2]
|
||||
[ext_resource path="res://src/NewGamePanel.gd" type="Script" id=3]
|
||||
[ext_resource path="res://src/DepthButton.tscn" type="PackedScene" id=4]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id=1]
|
||||
bg_color = Color( 1, 0.831373, 0.639216, 1 )
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
|
||||
[node name="NewGamePanel" type="PopupPanel"]
|
||||
anchor_right = 1.0
|
||||
|
@ -21,11 +29,13 @@ margin_left = 4.0
|
|||
margin_top = 4.0
|
||||
margin_right = -4.0
|
||||
margin_bottom = -4.0
|
||||
custom_styles/panel = SubResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Panel"]
|
||||
visible = false
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -304.0
|
||||
|
@ -46,8 +56,8 @@ group = ExtResource( 2 )
|
|||
text = "Easy"
|
||||
|
||||
[node name="Normal" type="Button" parent="Panel/HBoxContainer"]
|
||||
margin_left = 204.0
|
||||
margin_right = 404.0
|
||||
margin_left = 208.0
|
||||
margin_right = 408.0
|
||||
margin_bottom = 70.0
|
||||
rect_min_size = Vector2( 200, 70 )
|
||||
toggle_mode = true
|
||||
|
@ -55,29 +65,68 @@ group = ExtResource( 2 )
|
|||
text = "Normal"
|
||||
|
||||
[node name="Hard" type="Button" parent="Panel/HBoxContainer"]
|
||||
margin_left = 408.0
|
||||
margin_right = 608.0
|
||||
margin_left = 416.0
|
||||
margin_right = 616.0
|
||||
margin_bottom = 70.0
|
||||
rect_min_size = Vector2( 200, 70 )
|
||||
toggle_mode = true
|
||||
group = ExtResource( 2 )
|
||||
text = "Hard"
|
||||
|
||||
[node name="Start" type="Button" parent="Panel"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
[node name="Difficulty" type="HBoxContainer" parent="Panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -220.0
|
||||
margin_top = -90.0
|
||||
margin_right = -20.0
|
||||
margin_bottom = -20.0
|
||||
rect_min_size = Vector2( 200, 70 )
|
||||
text = "Start"
|
||||
margin_top = 20.0
|
||||
rect_min_size = Vector2( 0, 70 )
|
||||
alignment = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Easy" parent="Panel/Difficulty" instance=ExtResource( 4 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 200.0
|
||||
margin_right = 400.0
|
||||
margin_bottom = 80.0
|
||||
rect_min_size = Vector2( 200, 80 )
|
||||
text = "Easy"
|
||||
corner_type = 1
|
||||
toggle_mode = true
|
||||
group = ExtResource( 2 )
|
||||
|
||||
[node name="Normal" parent="Panel/Difficulty" instance=ExtResource( 4 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 408.0
|
||||
margin_right = 608.0
|
||||
margin_bottom = 80.0
|
||||
rect_min_size = Vector2( 200, 80 )
|
||||
text = "Normal"
|
||||
corner_type = 2
|
||||
toggle_mode = true
|
||||
group = ExtResource( 2 )
|
||||
|
||||
[node name="Hard" parent="Panel/Difficulty" instance=ExtResource( 4 )]
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 0.0
|
||||
margin_left = 616.0
|
||||
margin_right = 816.0
|
||||
margin_bottom = 80.0
|
||||
rect_min_size = Vector2( 200, 80 )
|
||||
text = "Hard"
|
||||
corner_type = 3
|
||||
toggle_mode = true
|
||||
group = ExtResource( 2 )
|
||||
|
||||
[node name="Start" parent="Panel" instance=ExtResource( 4 )]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
margin_left = -235.0
|
||||
margin_top = -138.0
|
||||
margin_right = -20.0
|
||||
margin_bottom = -20.0
|
||||
text = "Start"
|
||||
|
||||
[node name="Cancel" type="Button" parent="Panel"]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
@ -88,6 +137,9 @@ margin_bottom = -20.0
|
|||
rect_min_size = Vector2( 200, 70 )
|
||||
text = "Cancel"
|
||||
flat = true
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Tween" type="Tween" parent="."]
|
||||
[connection signal="about_to_show" from="." to="." method="_on_NewGamePanel_about_to_show"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue