🐛 add user warnings

This commit is contained in:
anyreso 2024-04-30 14:34:26 -04:00
parent 7e4c6120be
commit 62ec1fa4e0

View file

@ -43,6 +43,8 @@ func _unhandled_input(event : InputEvent) -> void:
func _add_child(node: Node, force_readable_name: bool = false, internal: InternalMode = InternalMode.INTERNAL_MODE_DISABLED) -> void:
if get_child_count() <= capacity:
super.add_child(node, force_readable_name, internal)
else:
push_warning("inventory is full")
## The number of places by which the [selected] cursor is shifted in the
## inventory. This method affects which item is selected.