mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-04-27 15:25:35 +00:00
🐛 add user warnings
This commit is contained in:
parent
7e4c6120be
commit
62ec1fa4e0
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue