mirror of
https://github.com/Relintai/pandemonium_engine_easy_charts.git
synced 2024-11-14 10:17:24 +01:00
22 lines
522 B
GDScript
22 lines
522 B
GDScript
tool
|
|
extends Node
|
|
|
|
var plugin_name : String = "Easy Charts"
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _print_message(message : String, type : int = 0):
|
|
match type:
|
|
0:
|
|
print("[%s] => %s" % [plugin_name, message])
|
|
1:
|
|
printerr("[%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
|