Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
27
Sprout/addons/dialogic/Other/index_class.gd
Normal file
27
Sprout/addons/dialogic/Other/index_class.gd
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
@tool
|
||||
class_name DialogicIndexer
|
||||
extends RefCounted
|
||||
|
||||
## Script that indexes events, subsystems, settings pages and more.
|
||||
## Place a script of this type in every folder in "addons/Events".
|
||||
## Overwrite the methods to return the contents of that folder.
|
||||
|
||||
|
||||
var this_folder : String = get_script().resource_path.get_base_dir()
|
||||
|
||||
func _get_events() -> Array:
|
||||
if FileAccess.file_exists(this_folder.path_join('event.gd')):
|
||||
return [this_folder.path_join('event.gd')]
|
||||
return []
|
||||
|
||||
|
||||
func _get_subsystems() -> Array:
|
||||
return []
|
||||
|
||||
|
||||
func _get_settings_pages() -> Array:
|
||||
return []
|
||||
|
||||
|
||||
func _get_character_editor_tabs() -> Array:
|
||||
return []
|
||||
Loading…
Add table
Add a link
Reference in a new issue