Page 1 of 1

Add FileName or SoundDefinition variant to Sound

Posted: Sat Feb 15, 2025 2:45 pm
by Geheim
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.

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)
Related: 117186

Re: Add FileName or SoundDefinition variant to Sound

Posted: Sat Feb 15, 2025 4:04 pm
by curiosity
Quite a few of these shortcuts were removed in 2.0, but apparently not enough of them.

Re: Add FileName or SoundDefinition variant to Sound

Posted: Thu May 08, 2025 8:25 am
by Therenas
Nicely spotted, thanks. Fixed for the next release.