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
Sven Eberhardt 2015-12-07 00:08:24 -05:00
parent 96082569bd
commit 7f6c13084a
129 changed files with 3 additions and 3 deletions

View File

@ -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;
}

Some files were not shown because too many files have changed in this diff Show More