First work on dialogic, resized guild, and started implementing portraits.
This commit is contained in:
15
addons/dialogic/Modules/Character/default_portrait.gd
Normal file
15
addons/dialogic/Modules/Character/default_portrait.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
@tool
|
||||
extends DialogicPortrait
|
||||
|
||||
## Default portrait scene.
|
||||
## The parent class has a character and portrait variable.
|
||||
|
||||
@export_group('Main')
|
||||
@export_file var image := ""
|
||||
|
||||
|
||||
## Load anything related to the given character and portrait
|
||||
func _update_portrait(passed_character:DialogicCharacter, passed_portrait:String) -> void:
|
||||
apply_character_and_portrait(passed_character, passed_portrait)
|
||||
|
||||
apply_texture($Portrait, image)
|
||||
Reference in New Issue
Block a user