2 extends DialogicCharacterEditorPortraitSection
5 func _get_title() -> String:
6 return "Typing Sound Mood"
10 %PortraitMood.get_suggestions_func = mood_suggestions
11 %PortraitMood.resource_icon = get_theme_icon("AudioStreamPlayer", "EditorIcons")
14 func _load_portrait_data(data:Dictionary):
15 %PortraitMood.set_value(data.get('sound_mood'))
18 func update_visibility(show:=true):
21 get_parent().get_child(get_index()-1).hide()
22 get_parent().get_child(get_index()+1).hide()
24 get_parent().get_child(get_index()-1).show()
27 func _on_portrait_mood_value_changed(property_name:String, value:String):
28 var data: Dictionary = selected_item.get_metadata(0)
29 data['sound_mood'] = value
33 func mood_suggestions(filter:String) -> Dictionary:
35 for mood in character_editor.get_settings_section_by_name('Typing Sounds').current_moods_info:
36 suggestions[mood] = {'value':mood}