From ec082a06e5bbcb76afe3ba79106e49e61ac776d9 Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Sat, 30 Sep 2023 21:28:15 +0400 Subject: [PATCH] UI BG in Game Scene --- src/scenes/game/Game.tscn | 10 ++++- src/scenes/game/sprites/ui_background.png | Bin 0 -> 3018 bytes .../game/sprites/ui_background.png.import | 35 ++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 src/scenes/game/sprites/ui_background.png create mode 100644 src/scenes/game/sprites/ui_background.png.import diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index d5c89aa..29d6fa7 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=10 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] [ext_resource path="res://src/scenes/game/spell_holder.gd" type="Script" id=3] [ext_resource path="res://res/fonts/silkscreen/Silkscreen-Regular.ttf" type="DynamicFontData" id=4] [ext_resource path="res://src/models/player/Player.tscn" type="PackedScene" id=5] +[ext_resource path="res://src/scenes/game/sprites/ui_background.png" type="Texture" id=6] [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 10, 60 ) @@ -57,6 +58,13 @@ position = Vector2( 46, 42 ) margin_right = 40.0 margin_bottom = 40.0 +[node name="UIBackground" type="TextureRect" parent="UI"] +margin_top = 120.0 +margin_right = 320.0 +margin_bottom = 180.0 +texture = ExtResource( 6 ) +expand = true + [node name="SpellHolder" type="Control" parent="UI"] margin_left = 120.0 margin_top = 145.0 diff --git a/src/scenes/game/sprites/ui_background.png b/src/scenes/game/sprites/ui_background.png new file mode 100644 index 0000000000000000000000000000000000000000..91e3c5b8747a80a5cca845c48ae6d01de8a3684a GIT binary patch literal 3018 zcmcguO^@3|7|y~4ihAOL;9|L#MRelvXFR59yWMQrm6~O>jnpD>U@|jKtaUub_HL3D zLZ~3cA6qrv0iasNTU}a?$^QKt*eiVA`J{PYg;}FJtstjc^0xsXDA$x_`TKwSP?!*TF0l}I9D#_vEsK?%Gs`7xvYEyci~v z3z4k|E2SBQqeEnQR}V8e(P)~+5u-|l#zn&GhTP~{E2OsE#T!ZEB8yfuuo|UFLHifu zZB^XWn#%uPBtxBuRU0r~>=4y^uVV7Ps!e&)1nYXiRW%4lPXHaV>6x$A-KzNVpLR*5 znnqB;K+K8