Add addons

This commit is contained in:
Joey Yakimowich-Payne 2023-01-03 16:53:53 -07:00
commit 3367bad24f
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
527 changed files with 36197 additions and 0 deletions

View file

@ -0,0 +1,33 @@
@tool
extends Resource
class_name DialogicCharacter
@export var display_name:String = ""
@export var nicknames:Array = []
@export var color:Color = Color()
@export var description:String = ""
@export var scale:float = 1.0
@export var offset:Vector2 = Vector2()
@export var mirror:bool = false
@export var default_portrait:String = ""
@export var portraits:Dictionary = {}
@export var custom_info:Dictionary = {}
func __get_property_list() -> Array:
return []
func _to_string() -> String:
return "[{name}:{id}]".format({"name":get_character_name(), "id":get_instance_id()})
func _hide_script_from_inspector() -> bool:
return true
## Returns the name of the file (without the extension).
func get_character_name() -> String:
return resource_path.get_file().trim_suffix('.dch')