Global Sounds system

This commit is contained in:
Haze Weathers 2025-03-08 16:32:47 -05:00
parent 5677971bf0
commit ba3306c04c
15 changed files with 232 additions and 1 deletions

View file

@ -0,0 +1,16 @@
extends EditorInspectorPlugin
const GlobalSoundSelector = preload("global_sound_selector.gd")
func _can_handle(object: Object) -> bool:
return true
func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
if type == TYPE_STRING_NAME and hint_string == "global_sound":
add_property_editor(name, GlobalSoundSelector.new())
return true
else:
return false