First commit 🎉
This commit is contained in:
commit
43ea213f9b
728 changed files with 37080 additions and 0 deletions
89
addons/popochiu/engine/templates/gui/gui_template.gd
Normal file
89
addons/popochiu/engine/templates/gui/gui_template.gd
Normal file
|
@ -0,0 +1,89 @@
|
|||
extends PopochiuGraphicInterface
|
||||
|
||||
|
||||
#region Virtual ####################################################################################
|
||||
# Called when the GUI is blocked and not intended to handle input events.
|
||||
func _on_blocked(props := { blocking = true }) -> void:
|
||||
super(props)
|
||||
|
||||
|
||||
# Called when the GUI is unblocked and can handle input events again.
|
||||
func _on_unblocked() -> void:
|
||||
super()
|
||||
|
||||
|
||||
# Called to hide the GUI.
|
||||
func _on_hidden() -> void:
|
||||
super()
|
||||
|
||||
|
||||
# Called to show the GUI.
|
||||
func _on_shown() -> void:
|
||||
super()
|
||||
|
||||
|
||||
# Called when G.show_system_text() is triggered. Shows `msg` in the SystemText
|
||||
# component.
|
||||
func _on_system_text_shown(msg: String) -> void:
|
||||
super(msg)
|
||||
|
||||
|
||||
# Called once the player closes the SystemText component (by clicking the screen
|
||||
# anywhere).
|
||||
func _on_system_text_hidden() -> void:
|
||||
super()
|
||||
|
||||
|
||||
# Called when the mouse enters (hover) a `clickable`.
|
||||
func _on_mouse_entered_clickable(clickable: PopochiuClickable) -> void:
|
||||
super(clickable)
|
||||
|
||||
|
||||
# Called when the mouse exits a `clickable`.
|
||||
func _on_mouse_exited_clickable(clickable: PopochiuClickable) -> void:
|
||||
super(clickable)
|
||||
|
||||
|
||||
# Called when the mouse enters (hover) an `inventory_item`.
|
||||
func _on_mouse_entered_inventory_item(inventory_item: PopochiuInventoryItem) -> void:
|
||||
super(inventory_item)
|
||||
|
||||
|
||||
# Called when the mouse exits an `inventory_item`.
|
||||
func _on_mouse_exited_inventory_item(inventory_item: PopochiuInventoryItem) -> void:
|
||||
super(inventory_item)
|
||||
|
||||
|
||||
# Called when a dialog line is said be a `PopochiuCharacter` (this is when
|
||||
# `PopochiuCharacter.say()` is called.
|
||||
func _on_dialog_line_started() -> void:
|
||||
super()
|
||||
|
||||
|
||||
# Called when a dialog line finishes (this is after players click the screen
|
||||
# anywhere to make the dialog line disappear).
|
||||
func _on_dialog_line_finished() -> void:
|
||||
super()
|
||||
|
||||
|
||||
# Called when a `dialog` starts (after calling `PopochiuDialog.start()`).
|
||||
func _on_dialog_started(dialog: PopochiuDialog) -> void:
|
||||
super(dialog)
|
||||
|
||||
|
||||
# Called when a `dialog` finishes (after calling `PopochiuDialog.stop()`).
|
||||
func _on_dialog_finished(dialog: PopochiuDialog) -> void:
|
||||
super(dialog)
|
||||
|
||||
|
||||
# Called when an `item` in the inventory is selected (i.e. by clicking it).
|
||||
func _on_inventory_item_selected(item: PopochiuInventoryItem) -> void:
|
||||
super(item)
|
||||
|
||||
|
||||
# Called by [b]cursor.gd[/b] to get the name of the cursor texture to show.
|
||||
func _get_cursor_name() -> String:
|
||||
return super()
|
||||
|
||||
|
||||
#endregion
|
Loading…
Add table
Add a link
Reference in a new issue