Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
33
Sprout/addons/dialogic/Resources/character.gd
Normal file
33
Sprout/addons/dialogic/Resources/character.gd
Normal 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')
|
||||
Loading…
Add table
Add a link
Reference in a new issue