Compare commits

...

2 Commits

3 changed files with 2 additions and 3 deletions

View File

@ -81,7 +81,7 @@ layout_mode = 2
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
[node name="GridContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" node_paths=PackedStringArray("_slots") instance=ExtResource("5_mmp18")]
[node name="Hotbar" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" node_paths=PackedStringArray("_slots") instance=ExtResource("5_mmp18")]
layout_mode = 2
_slots = [NodePath("InventorySlot"), NodePath("InventorySlot2"), NodePath("InventorySlot3")]

View File

@ -3,7 +3,7 @@
[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"]
[node name="GridContainer" type="GridContainer" node_paths=PackedStringArray("_slots")]
[node name="Hotbar" type="GridContainer" node_paths=PackedStringArray("_slots")]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0

View File

@ -8,7 +8,6 @@ public partial class Vignette : TextureRect
{
Events.EventBus.Instance.PlayerHurt += (Events.HurtArgs args) =>
{
GD.Print("TIGHTEN!!!");
GetNode<AnimationPlayer>("AnimationPlayer").Play("tighten");
};
}