summaryrefslogtreecommitdiff
path: root/inventory_bar.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-02-19 15:00:56 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-02-19 15:01:22 +0100
commitf0142a29c9a36d2b87b19b763d88c5ca2245c7dc (patch)
treeed8d45266bd329e1ad33c33bc11dc93741eebee2 /inventory_bar.gd
parentf448ca4259d7f76fc58bc3b5c12ea8d04ab49a87 (diff)
next commit
Diffstat (limited to 'inventory_bar.gd')
-rw-r--r--inventory_bar.gd18
1 files changed, 18 insertions, 0 deletions
diff --git a/inventory_bar.gd b/inventory_bar.gd
index 0077274..3f9bda3 100644
--- a/inventory_bar.gd
+++ b/inventory_bar.gd
@@ -11,6 +11,12 @@ func _input(event: InputEvent) -> void:
_on_texture_rect_2_pressed()
if event.is_action_pressed("inventory_bar_slot_3"):
_on_texture_rect_3_pressed()
+ if event.is_action_pressed("inventory_bar_slot_4"):
+ _on_texture_rect_4_pressed()
+ if event.is_action_pressed("inventory_bar_slot_5"):
+ _on_texture_rect_5_pressed()
+ if event.is_action_pressed("inventory_bar_slot_6"):
+ _on_texture_rect_6_pressed()
func _on_texture_rect_pressed() -> void:
@@ -23,3 +29,15 @@ func _on_texture_rect_2_pressed() -> void:
func _on_texture_rect_3_pressed() -> void:
active_type = Block.Type.ICE
+
+
+func _on_texture_rect_4_pressed() -> void:
+ active_type = Block.Type.WOOD
+
+
+func _on_texture_rect_5_pressed() -> void:
+ active_type = Block.Type.SAND
+
+
+func _on_texture_rect_6_pressed() -> void:
+ active_type = Block.Type.PLANKS