From 6b2f1db9f90aa7d6f69e7bbf376b8ac7e463c925 Mon Sep 17 00:00:00 2001 From: dise Date: Tue, 5 Mar 2024 15:23:21 +0300 Subject: [PATCH] Update UI --- scenes/HUD/hud.tscn | 71 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 65 insertions(+), 6 deletions(-) diff --git a/scenes/HUD/hud.tscn b/scenes/HUD/hud.tscn index 177956d..a7e76c2 100644 --- a/scenes/HUD/hud.tscn +++ b/scenes/HUD/hud.tscn @@ -1,6 +1,6 @@ -[gd_scene load_steps=13 format=3 uid="uid://gxfhitfre2fj"] +[gd_scene load_steps=15 format=3 uid="uid://gxfhitfre2fj"] -[ext_resource type="Texture2D" uid="uid://c4pah1vj0aa4x" path="res://textures/prototype-textures/Prototype_symbol_cross_32x32px.png" id="1_g1v70"] +[ext_resource type="Texture2D" uid="uid://vnk3r1p4ao3n" path="res://textures/prototype-textures/Prototype_symbol_cross_32x32px.png" id="1_g1v70"] [ext_resource type="Texture2D" uid="uid://na1y6c7osyj2" path="res://textures/logo/health.svg" id="1_ts1uf"] [ext_resource type="Texture2D" uid="uid://cxpljra1na1p8" path="res://textures/logo/shield.svg" id="2_ijndi"] [ext_resource type="Texture2D" uid="uid://d1i1fgjbpwped" path="res://textures/logo/magazine.svg" id="3_ssnuf"] @@ -26,6 +26,23 @@ texture = ExtResource("4_f070v") [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mkhl7"] texture = ExtResource("1_g1v70") +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pxi8e"] +bg_color = Color(0.117647, 0.117647, 0.117647, 1) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_blend = true + +[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ouyds"] +bg_color = Color(0.117647, 0.117647, 0.117647, 0.368627) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color(0.737255, 0.619608, 0.239216, 1) +border_blend = true + [node name="HUD" type="Control"] layout_mode = 3 anchors_preset = 15 @@ -44,10 +61,10 @@ anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 -offset_left = -100.0 -offset_top = -82.0 -offset_right = 100.0 -offset_bottom = -12.0 +offset_left = -68.0 +offset_top = -69.0 +offset_right = 132.0 +offset_bottom = 1.0 grow_horizontal = 2 grow_vertical = 0 @@ -259,3 +276,45 @@ offset_left = -40.0 offset_top = -23.0 grow_horizontal = 0 grow_vertical = 0 + +[node name="round_status" type="Control" parent="."] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = -20.0 +offset_right = 20.0 +offset_bottom = 30.0 +grow_horizontal = 2 + +[node name="cs_won" type="Label" parent="round_status"] +layout_mode = 0 +offset_top = 3.0 +offset_right = 40.0 +offset_bottom = 26.0 + +[node name="Panel" type="Panel" parent="round_status"] +layout_mode = 0 +offset_right = 40.0 +offset_bottom = 30.0 +theme_override_styles/panel = SubResource("StyleBoxFlat_pxi8e") + +[node name="os_won" type="Label" parent="round_status"] +layout_mode = 0 +offset_top = 3.0 +offset_right = 40.0 +offset_bottom = 26.0 + +[node name="time" type="Label" parent="round_status"] +layout_mode = 0 +offset_top = 3.0 +offset_right = 40.0 +offset_bottom = 26.0 + +[node name="kill_log" type="Label" parent="."] +layout_mode = 0 +offset_left = 1088.0 +offset_top = 3.0 +offset_right = 1148.0 +offset_bottom = 28.0 +theme_override_styles/normal = SubResource("StyleBoxFlat_ouyds")