Scrolling now makes sound if cursor moves
This commit is contained in:
parent
37ba8a6a4d
commit
bef78dbe19
1 changed files with 8 additions and 2 deletions
|
|
@ -225,12 +225,18 @@ class OptionMenu : Menu
|
|||
{
|
||||
if (ev.type == UIEvent.Type_WheelUp)
|
||||
{
|
||||
MenuScrollViewport(-2, true);
|
||||
if (MenuScrollViewport(-2, true))
|
||||
{
|
||||
MenuSound ("menu/cursor");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (ev.type == UIEvent.Type_WheelDown)
|
||||
{
|
||||
MenuScrollViewport(2, true);
|
||||
if (MenuScrollViewport(2, true))
|
||||
{
|
||||
MenuSound ("menu/cursor");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (ev.type == UIEvent.Type_Char)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue