Fixed shield crash and material coloring

This commit is contained in:
gotfishmakesticks 2024-01-18 13:43:03 +03:00
commit 255a47f6da
7 changed files with 10 additions and 12 deletions

View file

@ -171,6 +171,7 @@ horizontal_alignment = 1
vertical_alignment = 1
[node name="LabelSell" type="Label" parent="TradingMenu"]
layout_mode = 0
offset_left = 320.0
offset_top = 64.0
offset_right = 640.0
@ -205,6 +206,7 @@ text = "0"
vertical_alignment = 1
[node name="FoodCount" type="Label" parent="TradingMenu"]
layout_mode = 0
offset_left = 201.0
offset_top = 592.0
offset_right = 321.0
@ -213,6 +215,7 @@ text = "0"
vertical_alignment = 1
[node name="MineralsCount" type="Label" parent="TradingMenu"]
layout_mode = 0
offset_left = 361.0
offset_top = 592.0
offset_right = 481.0
@ -221,6 +224,7 @@ text = "0"
vertical_alignment = 1
[node name="WaterCount" type="Label" parent="TradingMenu"]
layout_mode = 0
offset_left = 521.0
offset_top = 592.0
offset_right = 640.0

View file

@ -3,6 +3,7 @@
[ext_resource type="Script" path="res://scripts/objects/Shield.gd" id="1_3t0v2"]
[node name="Shield" type="Node2D" node_paths=PackedStringArray("recharge_timer", "laser_timer")]
use_parent_material = true
script = ExtResource("1_3t0v2")
max_capacity = 5
recharge_timer = NodePath("Timer")

View file

@ -3,6 +3,7 @@
[ext_resource type="Script" path="res://scripts/objects/Shield.gd" id="1_6qr86"]
[node name="Shield" type="Node2D" node_paths=PackedStringArray("recharge_timer", "laser_timer")]
use_parent_material = true
script = ExtResource("1_6qr86")
max_capacity = 10
recharge_timer = NodePath("Timer")