Branch for signal refactoring, singleton bus.
This commit is contained in:
parent
ab8643d093
commit
d64504189a
10 changed files with 83 additions and 8 deletions
12
ui.tscn
12
ui.tscn
|
|
@ -1,10 +1,15 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://s6wf3egdqtmh"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://s6wf3egdqtmh"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d11molrkdjjh5" path="res://bar_background.png" id="1_m6e0p"]
|
||||
[ext_resource type="Script" uid="uid://b544c65halgk4" path="res://ui.gd" id="1_nltto"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsl3pxvxiuoqg" path="res://bar_foreground.png" id="2_27fn8"]
|
||||
[ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://player_hit.gdshader" id="2_ibotj"]
|
||||
[ext_resource type="PackedScene" uid="uid://5qkcf1cpre32" path="res://score_counter.tscn" id="4_ibotj"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_n5ude"]
|
||||
shader = ExtResource("2_ibotj")
|
||||
shader_parameter/toggle = 0.0
|
||||
|
||||
[node name="UI" type="MarginContainer"]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
|
|
@ -20,8 +25,11 @@ script = ExtResource("1_nltto")
|
|||
layout_mode = 2
|
||||
|
||||
[node name="ShieldBar" type="TextureProgressBar" parent="HBoxContainer"]
|
||||
material = SubResource("ShaderMaterial_n5ude")
|
||||
custom_minimum_size = Vector2(80, 16)
|
||||
layout_mode = 2
|
||||
step = 0.0
|
||||
value = 100.0
|
||||
nine_patch_stretch = true
|
||||
stretch_margin_left = 3
|
||||
stretch_margin_top = 3
|
||||
|
|
@ -32,3 +40,5 @@ texture_progress = ExtResource("2_27fn8")
|
|||
|
||||
[node name="ScoreCounter" parent="HBoxContainer" instance=ExtResource("4_ibotj")]
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="value_changed" from="HBoxContainer/ShieldBar" to="." method="_on_shield_bar_value_changed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue