diff --git a/src/Autoload/ExtensionsApi.gd b/src/Autoload/ExtensionsApi.gd index ae475b79c..9ac67f9a5 100644 --- a/src/Autoload/ExtensionsApi.gd +++ b/src/Autoload/ExtensionsApi.gd @@ -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 diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index 4a829a726..0f4e9314c 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -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 }