]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Modules/Character/default_portrait.gd
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Modules / Character / default_portrait.gd
1 @tool
2 extends DialogicPortrait
3
4 ## Default portrait scene.
5 ## The parent class has a character and portrait variable.
6
7 @export_group('Main')
8 @export_file var image := ""
9
10
11 ## Load anything related to the given character and portrait
12 func _update_portrait(passed_character:DialogicCharacter, passed_portrait:String) -> void:
13         apply_character_and_portrait(passed_character, passed_portrait)
14
15         apply_texture($Portrait, image)