Add FileName or SoundDefinition variant to Sound
Posted: Sat Feb 15, 2025 2:45 pm
Sound is of type struct or array[SoundDefinition] and SoundDefinition is of type struct or FileName. However, Sound itself is sometimes used as a single SoundDefinition or FileName, e.g.
Related: 117186
Code: Select all
data.raw["gui-style"]["default"]["button"]["left_click_sound"] = "__core__/sound/gui-click.ogg"
(or line 743 of data-raw-dump.json)