the small
This commit is contained in:
parent
3109bdc44a
commit
aff18ec43c
82 changed files with 6436 additions and 630 deletions
19
addons/ldtk-importer/plugin.gd
Normal file
19
addons/ldtk-importer/plugin.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@tool
|
||||
extends EditorPlugin
|
||||
|
||||
var ldtk_plugin
|
||||
var config = ConfigFile.new()
|
||||
|
||||
func _enter_tree() -> void:
|
||||
ldtk_plugin = preload("ldtk-importer.gd").new()
|
||||
add_import_plugin(ldtk_plugin)
|
||||
|
||||
var config = ConfigFile.new()
|
||||
var err = config.load("res://addons/ldtk-importer/plugin.cfg")
|
||||
var version = config.get_value("plugin", "version", "0.0")
|
||||
|
||||
print_rich("[color=#ffcc00]█ Godot-LDtk-Importer █[/color] %s | [url=https://gleeson.dev]@gleeson.dev[/url] | [url=https://github.com/heygleeson/godot-ldtk-importer]View on Github[/url]" % [version])
|
||||
|
||||
func _exit_tree() -> void:
|
||||
remove_import_plugin(ldtk_plugin)
|
||||
ldtk_plugin = null
|
||||
Loading…
Add table
Add a link
Reference in a new issue