mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2026-03-22 00:26:23 +00:00
Added health bar
This commit is contained in:
@@ -28,7 +28,7 @@ use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="network_setup" type="Control"]
|
||||
[node name="network_setup2" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
|
||||
26
source/scenes/OVERLAY/elements/HUD.tscn
Normal file
26
source/scenes/OVERLAY/elements/HUD.tscn
Normal file
@@ -0,0 +1,26 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://source/assets/sprites/GUI/bar-background.png" type="Texture" id=1]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/bar-fill.png" type="Texture" id=2]
|
||||
[ext_resource path="res://source/assets/scripts/ui_element_handlers/HUD.gd" type="Script" id=3]
|
||||
|
||||
[node name="HUD" type="Node2D" groups=[
|
||||
"Net",
|
||||
]]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="health_bar" type="TextureProgress" parent="."]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -64.0
|
||||
margin_top = -20.0
|
||||
margin_right = 64.0
|
||||
margin_bottom = 20.0
|
||||
value = 100.0
|
||||
texture_under = ExtResource( 1 )
|
||||
texture_progress = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
Reference in New Issue
Block a user