mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Change some method names in the SignalsAPI, improve docs of some signals in Global
This commit is contained in:
parent
f373dae714
commit
4d113dbc75
2 changed files with 4 additions and 4 deletions
|
@ -759,12 +759,12 @@ class SignalsAPI:
|
|||
|
||||
## connects/disconnects a signal to [param callable], that emits
|
||||
## whenever you switch to some other project.
|
||||
func signal_project_changed(callable: Callable, is_disconnecting := false):
|
||||
func signal_project_switched(callable: Callable, is_disconnecting := false):
|
||||
_connect_disconnect(Global.project_switched, callable, is_disconnecting)
|
||||
|
||||
## connects/disconnects a signal to [param callable], that emits
|
||||
## whenever you select a different cel.
|
||||
func signal_cel_changed(callable: Callable, is_disconnecting := false):
|
||||
func signal_cel_switched(callable: Callable, is_disconnecting := false):
|
||||
_connect_disconnect(Global.cel_switched, callable, is_disconnecting)
|
||||
|
||||
# TOOL RELATED SIGNALS
|
||||
|
|
|
@ -7,11 +7,11 @@ extends Node
|
|||
|
||||
signal pixelorama_opened ## Emitted as soon as Pixelorama fully opens up.
|
||||
signal pixelorama_about_to_close ## Emitted just before Pixelorama is about to close.
|
||||
signal project_created(Project) ## Emitted when a new project class is initialized.
|
||||
signal project_created(project: Project) ## Emitted when a new project class is initialized.
|
||||
signal project_about_to_switch ## Emitted before a project is about to be switched
|
||||
signal project_switched ## Emitted whenever you switch to some other project tab.
|
||||
signal cel_switched ## Emitted whenever you select a different cel.
|
||||
signal project_changed(Project) ## Emitted whenever a project is changed.
|
||||
signal project_changed(project: Project) ## Emitted when project data is modified.
|
||||
|
||||
enum LayerTypes { PIXEL, GROUP, THREE_D }
|
||||
enum GridTypes { CARTESIAN, ISOMETRIC, ALL }
|
||||
|
|
Loading…
Add table
Reference in a new issue