mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-15 10:13:07 +00:00
A name Dilemma, There are 2 autoloads for ImportApi
This commit is contained in:
parent
f013a78180
commit
aabbb9a95f
1 changed files with 8 additions and 5 deletions
|
@ -382,7 +382,7 @@ class PanelAPI:
|
||||||
## Gives access to theme related functions.
|
## Gives access to theme related functions.
|
||||||
class ThemeAPI:
|
class ThemeAPI:
|
||||||
## Returns the Themes autoload. Allows interacting with themes on a more deeper level.
|
## Returns the Themes autoload. Allows interacting with themes on a more deeper level.
|
||||||
func get_autoload() -> Themes:
|
func autoload() -> Themes:
|
||||||
return Themes
|
return Themes
|
||||||
|
|
||||||
## Adds the [param theme] to [code]Edit -> Preferences -> Interface -> Themes[/code].
|
## Adds the [param theme] to [code]Edit -> Preferences -> Interface -> Themes[/code].
|
||||||
|
@ -443,7 +443,7 @@ class ToolAPI:
|
||||||
const LayerTypes := Global.LayerTypes
|
const LayerTypes := Global.LayerTypes
|
||||||
|
|
||||||
## Returns the Tools autoload. Allows interacting with tools on a more deeper level.
|
## Returns the Tools autoload. Allows interacting with tools on a more deeper level.
|
||||||
func get_autoload() -> Tools:
|
func autoload() -> Tools:
|
||||||
return Tools
|
return Tools
|
||||||
|
|
||||||
## Adds a tool to pixelorama with name [param tool_name] (without spaces),
|
## Adds a tool to pixelorama with name [param tool_name] (without spaces),
|
||||||
|
@ -688,7 +688,7 @@ class ExportAPI:
|
||||||
|
|
||||||
## Returns the Export autoload.
|
## Returns the Export autoload.
|
||||||
## Allows interacting with the export workflow on a more deeper level.
|
## Allows interacting with the export workflow on a more deeper level.
|
||||||
func get_autoload() -> Export:
|
func autoload() -> Export:
|
||||||
return Export
|
return Export
|
||||||
|
|
||||||
## [param format_info] has keys: [code]extension[/code] and [code]description[/code]
|
## [param format_info] has keys: [code]extension[/code] and [code]description[/code]
|
||||||
|
@ -745,9 +745,12 @@ class ExportAPI:
|
||||||
class ImportAPI:
|
class ImportAPI:
|
||||||
## Returns the OpenSave autoload. Contains code to handle file loading.
|
## Returns the OpenSave autoload. Contains code to handle file loading.
|
||||||
## It also contains code to handle project saving (.pxo)
|
## It also contains code to handle project saving (.pxo)
|
||||||
func get_autoload() -> OpenSave:
|
func open_save_autoload() -> OpenSave:
|
||||||
return OpenSave
|
return OpenSave
|
||||||
|
|
||||||
|
func import_autoload() -> Import:
|
||||||
|
return Import
|
||||||
|
|
||||||
## [param import_scene] is a scene preload that will be instanced and added to "import options"
|
## [param import_scene] is a scene preload that will be instanced and added to "import options"
|
||||||
## section of pixelorama's import dialogs and will appear whenever [param import_name] is
|
## section of pixelorama's import dialogs and will appear whenever [param import_name] is
|
||||||
## chosen from import menu.
|
## chosen from import menu.
|
||||||
|
@ -776,7 +779,7 @@ class ImportAPI:
|
||||||
## Gives access to palette related stuff.
|
## Gives access to palette related stuff.
|
||||||
class PaletteAPI:
|
class PaletteAPI:
|
||||||
## Returns the Palettes autoload. Allows interacting with palettes on a more deeper level.
|
## Returns the Palettes autoload. Allows interacting with palettes on a more deeper level.
|
||||||
func get_autoload() -> Palettes:
|
func autoload() -> Palettes:
|
||||||
return Palettes
|
return Palettes
|
||||||
|
|
||||||
## Creates and adds a new [Palette] with name [param palette_name] containing [param data].
|
## Creates and adds a new [Palette] with name [param palette_name] containing [param data].
|
||||||
|
|
Loading…
Add table
Reference in a new issue