From d11bfe5d223d0bd059e35a30e3996ecbfd311f83 Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Mon, 2 Oct 2023 22:02:06 +0400 Subject: [PATCH] small ui update --- project.godot | 3 ++- src/scenes/game/Game.tscn | 28 +++++++++++++++++++++++++--- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/project.godot b/project.godot index 369f336..68c107c 100644 --- a/project.godot +++ b/project.godot @@ -10,7 +10,8 @@ config_version=4 [application] -config/name="LD54" +config/name="Long Night" +config/description="Game made for Ludum Dare 54 by iLunaiLuna, Manskage and JustDzhi" run/main_scene="res://src/scenes/menu/Menu.tscn" boot_splash/show_image=false boot_splash/bg_color=Color( 0, 0, 0, 1 ) diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index 2104da0..35236a6 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=26 format=2] +[gd_scene load_steps=27 format=2] [ext_resource path="res://src/scenes/menu/background/background.png" type="Texture" id=1] [ext_resource path="res://src/scenes/game/sprites/background_houses.png" type="Texture" id=2] @@ -21,6 +21,7 @@ [ext_resource path="res://src/scenes/game/sprites/stun/stun_placeholder_spriteframes.tres" type="SpriteFrames" id=19] [ext_resource path="res://src/scenes/game/camera.gd" type="Script" id=20] [ext_resource path="res://src/scenes/game/sprites/shake_border.png" type="Texture" id=21] +[ext_resource path="res://src/scenes/game/sprites/damage.png" type="Texture" id=22] [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 10, 60 ) @@ -245,19 +246,40 @@ margin_right = 40.0 margin_bottom = 40.0 [node name="CastTime" type="Control" parent="UIWrapper/UI/Right"] +margin_top = 4.0 margin_right = 40.0 -margin_bottom = 40.0 +margin_bottom = 44.0 [node name="CastTime" type="Sprite" parent="UIWrapper/UI/Right/CastTime"] position = Vector2( 256, 140 ) texture = ExtResource( 7 ) +[node name="CastTimeLabel" type="Label" parent="UIWrapper/UI/Right/CastTime"] +modulate = Color( 1, 0.870588, 0, 1 ) +margin_left = 266.0 +margin_top = 133.0 +margin_right = 306.0 +margin_bottom = 147.0 +theme = ExtResource( 4 ) +text = "0.8" + [node name="Damage" type="Control" parent="UIWrapper/UI/Right"] +margin_top = 1.0 margin_right = 40.0 -margin_bottom = 40.0 +margin_bottom = 41.0 [node name="Damage" type="Sprite" parent="UIWrapper/UI/Right/Damage"] position = Vector2( 256, 160 ) +texture = ExtResource( 22 ) + +[node name="DamageLabel" type="Label" parent="UIWrapper/UI/Right/Damage"] +modulate = Color( 1, 0.870588, 0, 1 ) +margin_left = 266.0 +margin_top = 153.0 +margin_right = 306.0 +margin_bottom = 167.0 +theme = ExtResource( 4 ) +text = "15" [node name="Cards" type="Control" parent="UIWrapper/UI"] visible = false