2021-05-18 13:40:52 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "TileSetScenesCollectionSource" inherits= "TileSetSource" version= "4.0" >
<brief_description >
2021-09-06 09:56:31 +00:00
Exposes a set of scenes as tiles for a [TileSet] resource.
2021-05-18 13:40:52 +00:00
</brief_description>
<description >
Fix various typos
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn`
Update editor/import/resource_importer_layered_texture.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update doc/classes/TileSetScenesCollectionSource.xml
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/graph_edit.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/rich_text_label.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Revert previously committed change
2022-01-02 06:03:58 +00:00
When placed on a [TileMap], tiles from [TileSetScenesCollectionSource] will automatically instantiate an associated scene at the cell's position in the TileMap.
Scenes are instantiated as children of the [TileMap] when it enters the tree. If you add/remove a scene tile in the [TileMap] that is already inside the tree, the [TileMap] will automatically instantiate/free the scene accordingly.
2021-05-18 13:40:52 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "create_scene_tile" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "packed_scene" type= "PackedScene" />
<argument index= "1" name= "id_override" type= "int" default= "-1" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Creates a scene-based tile out of the given scene.
Returns a newly generated unique ID.
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "get_next_scene_tile_id" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the scene ID a following call to [method create_scene_tile] would return.
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "get_scene_tile_display_placeholder" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns whether the scene tile with id [code]id[/code] displays a placeholder in the editor.
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "get_scene_tile_id" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
<argument index= "0" name= "index" type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the scene tile ID of the scene tile at index [code]index[/code].
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "get_scene_tile_scene" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "PackedScene" />
<argument index= "0" name= "id" type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the [PackedScene] resource of scene tile with id [code]id[/code].
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "get_scene_tiles_count" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns the number or scene tiles this TileSet source has.
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "has_scene_tile_id" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
<argument index= "0" name= "id" type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Returns whether this TileSet source has a scene tile with id [code]id[/code].
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "remove_scene_tile" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Remove the scene tile with id [code]id[/code].
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "set_scene_tile_display_placeholder" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "display_placeholder" type= "bool" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Sets whether or not the scene tile with id [code]id[/code] should display a placeholder in the editor. This might be useful for scenes that are not visible.
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "set_scene_tile_id" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "new_id" type= "int" />
2021-05-18 13:40:52 +00:00
<description >
2021-09-06 09:56:31 +00:00
Changes a scene tile's ID from [code]id[/code] to [code]new_id[/code]. This will fail if there is already a tile with a ID equal to [code]new_id[/code].
2021-05-18 13:40:52 +00:00
</description>
</method>
<method name= "set_scene_tile_scene" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
<argument index= "0" name= "id" type= "int" />
<argument index= "1" name= "packed_scene" type= "PackedScene" />
2021-05-18 13:40:52 +00:00
<description >
Fix various typos
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn`
Update editor/import/resource_importer_layered_texture.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update doc/classes/TileSetScenesCollectionSource.xml
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/graph_edit.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Update scene/gui/rich_text_label.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com>
Revert previously committed change
2022-01-02 06:03:58 +00:00
Assigns a [PackedScene] resource to the scene tile with id [code]id[/code]. This will fail if the scene does not extend CanvasItem, as positioning properties are needed to place the scene on the TileMap.
2021-05-18 13:40:52 +00:00
</description>
</method>
</methods>
</class>