small racing game im working on
Diffstat (limited to 'ui/track_button.tscn')
| -rw-r--r-- | ui/track_button.tscn | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/ui/track_button.tscn b/ui/track_button.tscn index 5a213c6..577d588 100644 --- a/ui/track_button.tscn +++ b/ui/track_button.tscn @@ -1,10 +1,9 @@ -[gd_scene load_steps=15 format=3 uid="uid://c6ntm3pmyfcuh"] +[gd_scene load_steps=13 format=3 uid="uid://c6ntm3pmyfcuh"] [ext_resource type="Theme" uid="uid://d3ywcokn5ddy8" path="res://ui/theme.tres" id="1_noykn"] [ext_resource type="Script" path="res://ui/track_button.gd" id="2_bbj4u"] [ext_resource type="FontVariation" uid="uid://ba8ab6dti2fvo" path="res://ui/boldsans.tres" id="2_gctvu"] [ext_resource type="SystemFont" uid="uid://d2klp6vxh5l2d" path="res://ui/cascadiabold.tres" id="3_suph6"] -[ext_resource type="Script" path="res://ui/multi_button.gd" id="5_rh8ru"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fymg3"] bg_color = Color(0.137255, 0.137255, 0.137255, 1) @@ -45,12 +44,7 @@ Button/styles/hover = SubResource("StyleBoxFlat_vcebg") Button/styles/normal = SubResource("StyleBoxEmpty_fayhu") Button/styles/pressed = SubResource("StyleBoxFlat_qw0k4") -[sub_resource type="LabelSettings" id="LabelSettings_3yy5m"] -font_size = 17 -outline_size = 12 -outline_color = Color(0.137255, 0.137255, 0.137255, 1) - -[node name="track_button" type="PanelContainer" node_paths=PackedStringArray("button", "play_multi_button")] +[node name="track_button" type="PanelContainer" node_paths=PackedStringArray("button")] custom_minimum_size = Vector2(450, 243) offset_right = 200.0 offset_bottom = 100.0 @@ -58,7 +52,6 @@ theme = ExtResource("1_noykn") theme_override_styles/panel = SubResource("StyleBoxFlat_fymg3") script = ExtResource("2_bbj4u") button = NodePath("h2/play") -play_multi_button = NodePath("h2/play_multi") [node name="v" type="VBoxContainer" parent="."] layout_mode = 2 @@ -105,38 +98,14 @@ theme_override_constants/separation = 0 [node name="play" type="Button" parent="h2"] custom_minimum_size = Vector2(40, 40) layout_mode = 2 -theme_override_colors/font_outline_color = Color(0.137255, 0.137255, 0.137255, 1) -theme_override_constants/outline_size = 12 theme_override_font_sizes/font_size = 35 text = " " alignment = 2 -[node name="play_multi" type="Button" parent="h2" node_paths=PackedStringArray("secondary")] -custom_minimum_size = Vector2(40, 40) -layout_mode = 2 -theme_override_colors/font_outline_color = Color(0.137255, 0.137255, 0.137255, 1) -theme_override_constants/outline_size = 12 -theme_override_font_sizes/font_size = 39 -text = " " -alignment = 0 -script = ExtResource("5_rh8ru") -secondary = NodePath("play") - -[node name="play" type="Label" parent="h2/play_multi"] -layout_mode = 0 -offset_left = 7.0 -offset_top = 15.0 -offset_right = 47.0 -offset_bottom = 44.0 -text = "" -label_settings = SubResource("LabelSettings_3yy5m") - [node name="edit" type="Button" parent="h2"] unique_name_in_owner = true custom_minimum_size = Vector2(40, 40) layout_mode = 2 -theme_override_colors/font_outline_color = Color(0.137255, 0.137255, 0.137255, 1) -theme_override_constants/outline_size = 12 theme_override_font_sizes/font_size = 35 text = " " alignment = 2 @@ -145,8 +114,6 @@ alignment = 2 unique_name_in_owner = true custom_minimum_size = Vector2(40, 40) layout_mode = 2 -theme_override_colors/font_outline_color = Color(0.137255, 0.137255, 0.137255, 1) -theme_override_constants/outline_size = 12 theme_override_font_sizes/font_size = 35 text = "" @@ -158,8 +125,6 @@ size_flags_horizontal = 3 unique_name_in_owner = true custom_minimum_size = Vector2(40, 0) layout_mode = 2 -theme_override_colors/font_outline_color = Color(0.137255, 0.137255, 0.137255, 1) -theme_override_constants/outline_size = 12 theme_override_font_sizes/font_size = 35 text = " " alignment = 2 @@ -168,14 +133,11 @@ alignment = 2 unique_name_in_owner = true custom_minimum_size = Vector2(40, 0) layout_mode = 2 -theme_override_colors/font_outline_color = Color(0.137255, 0.137255, 0.137255, 1) -theme_override_constants/outline_size = 12 theme_override_font_sizes/font_size = 35 text = " " alignment = 2 -[connection signal="pressed" from="h2/play" to="." method="emit_signal" binds= [&"play"]] -[connection signal="pressed" from="h2/play_multi" to="." method="emit_signal" binds= [&"play_multi"]] +[connection signal="pressed" from="h2/play" to="." method="emit_signal" flags=18 binds= [&"play"]] [connection signal="pressed" from="h2/edit" to="." method="emit_signal" binds= [&"edit"]] [connection signal="pressed" from="h2/include" to="." method="emit_signal" binds= [&"include"]] [connection signal="pressed" from="h2/delete" to="." method="_on_delete_pressed"] |