From 58291ead27eaeb4d6c87cc7d97245d8c532fb4fd Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Sat, 30 Sep 2023 22:01:22 +0400 Subject: [PATCH] UI BG --- project.godot | 12 +----------- src/scenes/game/Game.tscn | 16 ++++++++++------ 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/project.godot b/project.godot index 61c5cb7..e759724 100644 --- a/project.godot +++ b/project.godot @@ -8,16 +8,6 @@ config_version=4 -_global_script_classes=[ { -"base": "EditorVCSInterface", -"class": "GitAPI", -"language": "NativeScript", -"path": "res://addons/godot-git-plugin/git_api.gdns" -} ] -_global_script_class_icons={ -"GitAPI": "" -} - [application] config/name="LD54" @@ -48,7 +38,7 @@ version_control_plugin_name="GitAPI" [gdnative] -singletons=[ "res://addons/godot-git-plugin/git_api.gdnlib" ] +singletons=[ ] [global] diff --git a/src/scenes/game/Game.tscn b/src/scenes/game/Game.tscn index 06d59c8..f417486 100644 --- a/src/scenes/game/Game.tscn +++ b/src/scenes/game/Game.tscn @@ -1,14 +1,11 @@ -[gd_scene load_steps=16 format=2] +[gd_scene load_steps=13 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/health/3.png" type="Texture" id=6] -[ext_resource path="res://src/scenes/game/sprites/health/1.png" type="Texture" id=7] -[ext_resource path="res://src/scenes/game/sprites/health/2.png" type="Texture" id=8] -[ext_resource path="res://src/scenes/game/sprites/health/0.png" type="Texture" id=9] +[ext_resource path="res://src/scenes/game/sprites/ui_background.png" type="Texture" id=6] [ext_resource path="res://icon.png" type="Texture" id=10] [ext_resource path="res://src/scenes/game/game.gd" type="Script" id=11] @@ -24,7 +21,7 @@ font_data = ExtResource( 4 ) [sub_resource type="SpriteFrames" id=4] animations = [ { -"frames": [ ExtResource( 9 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 6 ) ], +"frames": [ null, null, null, null ], "loop": true, "name": "default", "speed": 5.0 @@ -72,6 +69,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