small racing game im working on
Diffstat (limited to 'ui/hud.tscn')
| -rw-r--r-- | ui/hud.tscn | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/ui/hud.tscn b/ui/hud.tscn index 5f1d25e..0467b50 100644 --- a/ui/hud.tscn +++ b/ui/hud.tscn @@ -1,15 +1,15 @@ [gd_scene load_steps=13 format=3 uid="uid://vok7fdcyec68"] -[ext_resource type="Theme" uid="uid://d3ywcokn5ddy8" path="res://ui/theme.tres" id="1_ie2j2"] -[ext_resource type="Script" path="res://ui/hud.gd" id="1_sfhpc"] -[ext_resource type="Script" path="res://ui/speedometer.gd" id="2_cvi37"] -[ext_resource type="Script" path="res://ui/timer.gd" id="3_poksb"] -[ext_resource type="SystemFont" uid="uid://bkjqtc5i64r3j" path="res://ui/ubuntu.tres" id="4_sh4bn"] -[ext_resource type="Script" path="res://ui/gears.gd" id="5_g6cg4"] -[ext_resource type="StyleBox" uid="uid://cly1aqudpku5j" path="res://ui/panel_skew_r.tres" id="6_g2n2l"] -[ext_resource type="FontVariation" uid="uid://ba8ab6dti2fvo" path="res://ui/boldsans.tres" id="8_mupi7"] -[ext_resource type="PackedScene" uid="uid://nkh2xi7tnumc" path="res://ui/splits/splits.tscn" id="9_gtkqi"] -[ext_resource type="Script" path="res://ui/laps.gd" id="10_78pxt"] +[ext_resource type="Script" path="res://ui/hud.gd" id="1_fwd1q"] +[ext_resource type="Theme" uid="uid://d3ywcokn5ddy8" path="res://ui/theme.tres" id="2_ka05a"] +[ext_resource type="Script" path="res://ui/laps.gd" id="3_jxipf"] +[ext_resource type="SystemFont" uid="uid://bkjqtc5i64r3j" path="res://ui/ubuntu.tres" id="4_opipk"] +[ext_resource type="Script" path="res://ui/speedometer.gd" id="5_h5ow0"] +[ext_resource type="Script" path="res://ui/timer.gd" id="6_tv6i4"] +[ext_resource type="StyleBox" uid="uid://cly1aqudpku5j" path="res://ui/panel_skew_r.tres" id="7_n61vf"] +[ext_resource type="FontVariation" uid="uid://ba8ab6dti2fvo" path="res://ui/boldsans.tres" id="8_a1r0p"] +[ext_resource type="Script" path="res://ui/gears.gd" id="9_bwurd"] +[ext_resource type="PackedScene" uid="uid://nkh2xi7tnumc" path="res://ui/splits/splits.tscn" id="10_kpplg"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5eh1e"] content_margin_left = 29.0 @@ -32,7 +32,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -script = ExtResource("1_sfhpc") +script = ExtResource("1_fwd1q") splits = NodePath("Splits") laps = NodePath("Dashboard/laps") @@ -42,28 +42,28 @@ anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -offset_left = 345.0 -offset_top = -130.0 -offset_right = -345.0 +offset_left = 296.0 +offset_top = -80.0 +offset_right = -394.0 grow_horizontal = 2 grow_vertical = 0 -theme = ExtResource("1_ie2j2") -theme_override_constants/separation = 28 +theme = ExtResource("2_ka05a") +theme_override_constants/separation = 12 alignment = 1 [node name="laps" type="PanelContainer" parent="Dashboard" node_paths=PackedStringArray("label")] layout_mode = 2 size_flags_vertical = 8 -theme = ExtResource("1_ie2j2") -script = ExtResource("10_78pxt") +theme = ExtResource("2_ka05a") +script = ExtResource("3_jxipf") label = NodePath("laps") [node name="flag" type="Label" parent="Dashboard/laps"] -custom_minimum_size = Vector2(0, 80) +custom_minimum_size = Vector2(0, 45) layout_mode = 2 size_flags_horizontal = 0 theme_override_colors/font_color = Color(0.992157, 0.964706, 0.890196, 1) -theme_override_font_sizes/font_size = 40 +theme_override_font_sizes/font_size = 28 theme_override_styles/normal = SubResource("StyleBoxFlat_5eh1e") text = "" horizontal_alignment = 1 @@ -72,59 +72,61 @@ vertical_alignment = 1 [node name="laps" type="Label" parent="Dashboard/laps"] layout_mode = 2 theme_override_colors/font_color = Color(0.992157, 0.964706, 0.890196, 1) -theme_override_fonts/font = ExtResource("4_sh4bn") -theme_override_font_sizes/font_size = 60 -text = " 1/3" +theme_override_fonts/font = ExtResource("4_opipk") +theme_override_font_sizes/font_size = 30 +text = " 1/3" [node name="speed" type="PanelContainer" parent="Dashboard"] layout_mode = 2 size_flags_vertical = 8 [node name="speed" type="Label" parent="Dashboard/speed"] -custom_minimum_size = Vector2(0, 105) +custom_minimum_size = Vector2(0, 60) layout_mode = 2 size_flags_horizontal = 4 theme_override_colors/font_color = Color(0.992157, 0.964706, 0.890196, 1) -theme_override_font_sizes/font_size = 76 +theme_override_font_sizes/font_size = 38 text = "龍 0km/h" horizontal_alignment = 1 vertical_alignment = 1 -script = ExtResource("2_cvi37") +script = ExtResource("5_h5ow0") [node name="timer" type="PanelContainer" parent="Dashboard"] layout_mode = 2 theme_override_styles/panel = SubResource("StyleBoxFlat_nyfll") [node name="time" type="Label" parent="Dashboard/timer"] -custom_minimum_size = Vector2(0, 130) +custom_minimum_size = Vector2(0, 80) layout_mode = 2 size_flags_horizontal = 4 theme_override_colors/font_color = Color(0.992157, 0.964706, 0.890196, 1) -theme_override_font_sizes/font_size = 100 +theme_override_font_sizes/font_size = 50 text = "祥 0:00:00" horizontal_alignment = 1 vertical_alignment = 1 -script = ExtResource("3_poksb") +script = ExtResource("6_tv6i4") [node name="gears" type="PanelContainer" parent="Dashboard"] layout_mode = 2 size_flags_vertical = 8 -theme_override_styles/panel = ExtResource("6_g2n2l") +theme_override_styles/panel = ExtResource("7_n61vf") [node name="gears" type="RichTextLabel" parent="Dashboard/gears"] -custom_minimum_size = Vector2(200, 105) +custom_minimum_size = Vector2(100, 50) layout_mode = 2 size_flags_horizontal = 4 theme_override_colors/default_color = Color(0.992157, 0.964706, 0.890196, 1) -theme_override_fonts/bold_font = ExtResource("8_mupi7") +theme_override_fonts/bold_font = ExtResource("8_a1r0p") bbcode_enabled = true text = "[center] [b][color=#4682b4]N[/color][/b][/center]" -script = ExtResource("5_g6cg4") +scroll_active = false +script = ExtResource("9_bwurd") -[node name="Splits" parent="." instance=ExtResource("9_gtkqi")] +[node name="Splits" parent="." instance=ExtResource("10_kpplg")] layout_mode = 1 -offset_top = -403.0 -offset_bottom = -303.0 +anchors_preset = -1 +anchor_top = 0.25 +anchor_bottom = 0.25 [connection signal="assigned" from="." to="Dashboard/laps" method="assigned"] [connection signal="assigned" from="." to="Dashboard/speed/speed" method="car_assigned" unbinds=2] |