[v1.7.0+] Hotkeys Toolbar Scroll Lock

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2523
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Hotkeys Toolbar Scroll Lock

#1 Post 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]
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply