From 7f8555f6a468bdd9c095e40e3b68b01177a9a316 Mon Sep 17 00:00:00 2001 From: Julian Murgia Date: Wed, 28 Jul 2021 12:37:28 +0200 Subject: [PATCH] Renamed _hover_stack_pop() to _hover_stack_erase_item() (#331) * Renamed _hover_stack_pop() to _hover_stack_erase_item(). Fixes #313 * docs: Automatic update of API docs Co-authored-by: StraToN --- addons/escoria-core/game/inputs_manager.gd | 7 +++++-- docs/esc.md | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/addons/escoria-core/game/inputs_manager.gd b/addons/escoria-core/game/inputs_manager.gd index 34de5991..1c599015 100644 --- a/addons/escoria-core/game/inputs_manager.gd +++ b/addons/escoria-core/game/inputs_manager.gd @@ -139,7 +139,7 @@ func _on_mouse_entered_item(item: ESCItem) -> void: # - item: The Escoria item hovered func _on_mouse_exited_item(item: ESCItem) -> void: escoria.logger.info("Item unfocused: ", [item.global_id]) - _hover_stack_pop(item) + _hover_stack_erase_item(item) if hover_stack.empty(): hotspot_focused = "" escoria.main.current_scene.game.element_unfocused() @@ -204,5 +204,8 @@ func _clean_hover_stack(): # Remove the given item from the stack -func _hover_stack_pop(item): +# +# #### Parameters +# - item: the item to remove from the hover stack +func _hover_stack_erase_item(item): hover_stack.erase(item) diff --git a/docs/esc.md b/docs/esc.md index 68e92c15..715ba3b1 100644 --- a/docs/esc.md +++ b/docs/esc.md @@ -404,6 +404,7 @@ Makes the `player` walk to the position `x`/`y`. + ## Dialogs Dialogs are specified by writing `?` with optional parameters, followed by a list of dialog options starting with `-`. Use `!` to end the dialog.