mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-02 17:02:49 +00:00
- fixed menu sound.
This commit is contained in:
parent
65c52b9825
commit
e636c8044d
3 changed files with 11 additions and 2 deletions
|
@ -1262,7 +1262,7 @@ void SetDefaultMenuColors()
|
||||||
OptionSettings.mFontColorHighlight = V_FindFontColor(gameinfo.mFontColorHighlight);
|
OptionSettings.mFontColorHighlight = V_FindFontColor(gameinfo.mFontColorHighlight);
|
||||||
OptionSettings.mFontColorSelection = V_FindFontColor(gameinfo.mFontColorSelection);
|
OptionSettings.mFontColorSelection = V_FindFontColor(gameinfo.mFontColorSelection);
|
||||||
|
|
||||||
auto cls = PClass::FindClass("MenuDelegateBase");
|
auto cls = PClass::FindClass("DoomMenuDelegate");
|
||||||
menuDelegate = cls->CreateNew();
|
menuDelegate = cls->CreateNew();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -63,3 +63,12 @@ class VideoModeMenu : OptionMenu
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class DoomMenuDelegate : MenuDelegateBase
|
||||||
|
{
|
||||||
|
override void PlaySound(Name snd)
|
||||||
|
{
|
||||||
|
String s = snd;
|
||||||
|
S_StartSound (s, CHAN_VOICE, CHANF_UI, snd_menuvolume);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -122,7 +122,7 @@ class OptionMenuItemSubmenu : OptionMenuItem
|
||||||
|
|
||||||
override bool Activate()
|
override bool Activate()
|
||||||
{
|
{
|
||||||
Menu.MenuSound("menu/choose");
|
Menu.MenuSound("menu/advance");
|
||||||
Menu.SetMenu(mAction, mParam);
|
Menu.SetMenu(mAction, mParam);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue