From bef78dbe19533dfa70defb0450efcd5bad560505 Mon Sep 17 00:00:00 2001 From: Marcus Minhorst Date: Sat, 12 Jul 2025 13:41:44 -0400 Subject: [PATCH] Scrolling now makes sound if cursor moves --- wadsrc/static/zscript/engine/ui/menu/optionmenu.zs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/engine/ui/menu/optionmenu.zs b/wadsrc/static/zscript/engine/ui/menu/optionmenu.zs index f5856b1a8..5dc8643a3 100644 --- a/wadsrc/static/zscript/engine/ui/menu/optionmenu.zs +++ b/wadsrc/static/zscript/engine/ui/menu/optionmenu.zs @@ -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)