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:
@@ -139,7 +139,7 @@ func _on_mouse_entered_item(item: ESCItem) -> void:
|
|||||||
# - item: The Escoria item hovered
|
# - item: The Escoria item hovered
|
||||||
func _on_mouse_exited_item(item: ESCItem) -> void:
|
func _on_mouse_exited_item(item: ESCItem) -> void:
|
||||||
escoria.logger.info("Item unfocused: ", [item.global_id])
|
escoria.logger.info("Item unfocused: ", [item.global_id])
|
||||||
_hover_stack_pop(item)
|
_hover_stack_erase_item(item)
|
||||||
if hover_stack.empty():
|
if hover_stack.empty():
|
||||||
hotspot_focused = ""
|
hotspot_focused = ""
|
||||||
escoria.main.current_scene.game.element_unfocused()
|
escoria.main.current_scene.game.element_unfocused()
|
||||||
@@ -204,5 +204,8 @@ func _clean_hover_stack():
|
|||||||
|
|
||||||
|
|
||||||
# Remove the given item from the 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)
|
hover_stack.erase(item)
|
||||||
|
|||||||
@@ -404,6 +404,7 @@ Makes the `player` walk to the position `x`/`y`.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Dialogs
|
## Dialogs
|
||||||
|
|
||||||
Dialogs are specified by writing `?` with optional parameters, followed by a list of dialog options starting with `-`. Use `!` to end the dialog.
|
Dialogs are specified by writing `?` with optional parameters, followed by a list of dialog options starting with `-`. Use `!` to end the dialog.
|
||||||
|
|||||||
Reference in New Issue
Block a user