Page 1 of 1

[v1.7.0+] Hotkeys Toolbar Scroll Lock

Posted: Mon Aug 30, 2021 11:52 pm
by Zizzo
So, is it just me that has this problem? As you may or may not know, the hotkeys toolbar can be "scrolled" with your mouse's scroll wheel or whatever scrolling mechanism your laptop's trackpad has, allowing you to switch between different "pages" of hotkeys. I know this because my laptop's trackpad is apparently very sensitive about scrolling, so I frequently find myself with an apparently empty hotkeys toolbar with all my hotkeys scrolled off. :roll:

To fix this, I've whipped up a new Hotkeys Toolbar Scroll Lock addon, which adds a game option "UI | Scroll hotkeys toolbar with scroll wheel". It's enabled by default to maintain default behavior, so don't forget to go disable it in the options dialog. :wink:

[And looking ahead, I figure this addon is probably a shoo-in for inclusion in a future version of ZOmnibus.]

[Implementation notes:

Code: Select all

Hooks:
  GameOptions:generateList [to add our game option]
Superload:
  engine.HotkeysIconsDisplay:
    onMouse() [to intercept and optionally ignore scroll wheel events]