forked from Mirrors/openclonk
Register definition-local sounds into definition namespace (id::Soundname) #1185.
Also move all object sounds to global Sound.ocg so they are still played. This is to prevent naming collisions. All sounds are moved because otherwise all scripts would have to be adjusted. Also, the distinction between sounds in definitions and sounds in Sound.ocg was rather arbitrary. It will also ensure most sounds are reloaded when sound is turned off temporarily, although that should better be fixed properly.shapetextures
parent
96082569bd
commit
7f6c13084a
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -192,13 +192,13 @@ public func ToggleVisibility(int player, ...)
|
|||
{
|
||||
// Close menu
|
||||
menu.Visibility = VIS_None;
|
||||
Sound("CloseBuyMenu", true, nil, GetOwner());
|
||||
Sound("GUI_BuyMenu::CloseBuyMenu", true, nil, GetOwner());
|
||||
}
|
||||
else
|
||||
{
|
||||
// Open menu
|
||||
menu.Visibility = VIS_Owner;
|
||||
Sound("OpenBuyMenu", true, nil, GetOwner());
|
||||
Sound("GUI_BuyMenu::OpenBuyMenu", true, nil, GetOwner());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue