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 <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-07-28 12:37:28 +02:00
committed by GitHub
parent 29d594e43f
commit 7f8555f6a4
2 changed files with 6 additions and 2 deletions

View File

@@ -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)