From 6cdb32bd78db0f7b7c76db65f7ed54aa009c6468 Mon Sep 17 00:00:00 2001 From: Cookie-CHR Date: Mon, 4 Apr 2022 19:01:51 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Redrew=20some=20stuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/CrossbowBar.gd | 15 +++++++++++++++ src/ui/CrossbowBar.tscn | 23 +++++++++++++++++++++++ src/ui/LifeBarBg.png | 4 ++-- src/ui/LifeBarFg.png | 4 ++-- src/ui/Title.png.import | 7 ++++++- src/ui/UIBar.png | 4 ++-- 6 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 src/ui/CrossbowBar.gd create mode 100644 src/ui/CrossbowBar.tscn diff --git a/src/ui/CrossbowBar.gd b/src/ui/CrossbowBar.gd new file mode 100644 index 0000000..3ba0f60 --- /dev/null +++ b/src/ui/CrossbowBar.gd @@ -0,0 +1,15 @@ +extends Node2D + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +func _on_picked_up(): + print ("a") diff --git a/src/ui/CrossbowBar.tscn b/src/ui/CrossbowBar.tscn new file mode 100644 index 0000000..7bd6b9c --- /dev/null +++ b/src/ui/CrossbowBar.tscn @@ -0,0 +1,23 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://src/ui/LifeBarBg.png" type="Texture" id=1] +[ext_resource path="res://src/pickups/WeaponCrossbow.png" type="Texture" id=2] +[ext_resource path="res://src/ui/LifeBarFg.png" type="Texture" id=3] +[ext_resource path="res://src/ui/CrossbowBar.gd" type="Script" id=4] + +[node name="CrossbowBar" type="Node"] +script = ExtResource( 4 ) + +[node name="Sprite" type="Sprite" parent="."] +scale = Vector2( 3, 3 ) +texture = ExtResource( 2 ) + +[node name="TextureProgress" type="TextureProgress" parent="."] +margin_left = 28.0 +margin_top = -24.0 +margin_right = 318.0 +margin_bottom = 25.0 +value = 100.0 +texture_under = ExtResource( 1 ) +texture_progress = ExtResource( 3 ) +texture_progress_offset = Vector2( 2, 0 ) diff --git a/src/ui/LifeBarBg.png b/src/ui/LifeBarBg.png index 6eacdbc..79fa8a3 100644 --- a/src/ui/LifeBarBg.png +++ b/src/ui/LifeBarBg.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b243a9925328813a8760796fa5e14072d91573b9ed0728d0618792e92970aaac -size 5254 +oid sha256:3164fb79bd178f440bfbc4ece81250ecfded4918b67e05a54c63f8ce25c381a7 +size 824 diff --git a/src/ui/LifeBarFg.png b/src/ui/LifeBarFg.png index fb5f87e..7979132 100644 --- a/src/ui/LifeBarFg.png +++ b/src/ui/LifeBarFg.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5dd30be1538773c916fa6350976a10cc1ecd325bd928896036a88cd840e134df -size 10200 +oid sha256:a58a31693420f803a92e8dd5f9744e1a9caf444c09324881d631b18f2ef8b372 +size 5981 diff --git a/src/ui/Title.png.import b/src/ui/Title.png.import index ca3aae8..43eb17c 100644 --- a/src/ui/Title.png.import +++ b/src/ui/Title.png.import @@ -2,11 +2,16 @@ importer="texture" type="StreamTexture" -valid=false +path="res://.import/Title.png-eddaf0247c16f2cd01805f96e728b10b.stex" +metadata={ +"vram_texture": false +} [deps] source_file="res://src/ui/Title.png" +dest_files=[ "res://.import/Title.png-eddaf0247c16f2cd01805f96e728b10b.stex" ] + [params] compress/mode=0 diff --git a/src/ui/UIBar.png b/src/ui/UIBar.png index ee2fcf7..f1dc0c2 100644 --- a/src/ui/UIBar.png +++ b/src/ui/UIBar.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:abede14f1b7d7a9f1c10d0e41af3027e6b423d71a99ca9baf603b3af25ed4859 -size 85907 +oid sha256:c9d05620a6a888a0bc136c3fd7eadb8ed6fd8f0c7a94265374b62d2c74fcb2c2 +size 85755