Compare commits
No commits in common. "f7a2abc949f2e2b319344288cac9043c8a2729ff" and "fb80aa5c12818b7f669857326e34c329604fc50a" have entirely different histories.
f7a2abc949
...
fb80aa5c12
|
@ -81,7 +81,7 @@ layout_mode = 2
|
||||||
theme_override_constants/margin_top = 16
|
theme_override_constants/margin_top = 16
|
||||||
theme_override_constants/margin_right = 16
|
theme_override_constants/margin_right = 16
|
||||||
|
|
||||||
[node name="Hotbar" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" node_paths=PackedStringArray("_slots") instance=ExtResource("5_mmp18")]
|
[node name="GridContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" node_paths=PackedStringArray("_slots") instance=ExtResource("5_mmp18")]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
_slots = [NodePath("InventorySlot"), NodePath("InventorySlot2"), NodePath("InventorySlot3")]
|
_slots = [NodePath("InventorySlot"), NodePath("InventorySlot2"), NodePath("InventorySlot3")]
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[ext_resource type="Script" path="res://UI/Hotbar.cs" id="1_2sak2"]
|
[ext_resource type="Script" path="res://UI/Hotbar.cs" id="1_2sak2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://ctad0dkoyw8ad" path="res://UI/InventorySlot.tscn" id="1_ct3cn"]
|
[ext_resource type="PackedScene" uid="uid://ctad0dkoyw8ad" path="res://UI/InventorySlot.tscn" id="1_ct3cn"]
|
||||||
|
|
||||||
[node name="Hotbar" type="GridContainer" node_paths=PackedStringArray("_slots")]
|
[node name="GridContainer" type="GridContainer" node_paths=PackedStringArray("_slots")]
|
||||||
anchors_preset = 1
|
anchors_preset = 1
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
|
|
|
@ -8,6 +8,7 @@ public partial class Vignette : TextureRect
|
||||||
{
|
{
|
||||||
Events.EventBus.Instance.PlayerHurt += (Events.HurtArgs args) =>
|
Events.EventBus.Instance.PlayerHurt += (Events.HurtArgs args) =>
|
||||||
{
|
{
|
||||||
|
GD.Print("TIGHTEN!!!");
|
||||||
GetNode<AnimationPlayer>("AnimationPlayer").Play("tighten");
|
GetNode<AnimationPlayer>("AnimationPlayer").Play("tighten");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue