Delete utilities.gd

This commit is contained in:
Nicolò Santilio 2020-12-21 18:12:14 +01:00 committed by GitHub
parent 9bb96beb41
commit 60d0b98fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +0,0 @@
tool
extends Node
var plugin_name : String = "Easy Charts"
var templates : Dictionary = {}
func _ready():
templates = _load_templates()
_print_message("Templates loaded")
func _print_message(message : String, type : int = 0):
match type:
0:
print("[%s] => %s" % [plugin_name, message])
1:
printerr("ERROR: [%s] => %s" % [plugin_name, message])
func _load_templates() -> Dictionary:
var template_file : File = File.new()
template_file.open("res://addons/easy_charts/templates.json",File.READ)
var templates = JSON.parse(template_file.get_as_text()).get_result()
template_file.close()
return templates