Download
(3 Kb)
Download
Updated: 02/05/22 09:23 AM
Pictures
File Info
Compatibility:
Ascending Tide (7.3.5)
Deadlands (7.2.5)
Waking Flame (7.1.5)
Blackwood (7.0.5)
Flames of Ambition (6.3.5)
Markarth (6.2.5)
Stonethorn (6.1.5)
Greymoor (6.0.5)
Updated:02/05/22 09:23 AM
Created:12/10/15 02:33 PM
Monthly downloads:7,706
Total downloads:411,034
Favorites:266
MD5:
libAddonKeybinds  Popular! (More than 5000 hits)
Version: 5
by: merlight, Baertram, votan
Stand-alone

This addon (it's actually no library which needs to be added as a dependency) splits the list of keybindings under Controls menu into Standard Keybinds and Addon Keybinds. It does that regardless of whether it is installed stand-alone or embedded in another add-on.


What it does
The addon hooks ZO_KeybindingsList's row setup and hide callbacks, and in these hooks fires custom callbacks via CALLBACK_MANAGER. The new callbacks are:

"libAddonKeybinds.SetupCategoryHeader" (rowControl, data)
"libAddonKeybinds.HideCategoryHeader" (rowControl, data)

"libAddonKeybinds.SetupKeybindRow" (rowControl, data)
"libAddonKeybinds.HideKeybindRow" (rowControl, data)

Example - adding custom setup/hide stuff to keybind Category header rows:
Lua Code:
  1. CALLBACK_MANAGER:RegisterCallback("libAddonKeybinds.SetupCategoryHeader",
  2.     function(rowControl, data)
  3.         df("setting up %q", data.categoryName)
  4.     end)
  5.  
  6. CALLBACK_MANAGER:RegisterCallback("libAddonKeybinds.HideCategoryHeader",
  7.     function(boundArg, rowControl, data)
  8.         df("%s %q", boundArg, data.categoryName)
  9.     end,
  10.     "hiding")
version 5
- API bump.
- Get rid of LibStub.

version 4
internal

version 3
- include AddOnVersion, IsLibrary fields in manifest
- avoid hard dependency on LibStub (not bundled anymore)

version 2
- replace colons in callback names with periods

version 1
- first release
Archived Files (3)
File Name
Version
Size
Uploader
Date
3
4kB
merlight
09/06/19 04:28 PM
2
5kB
merlight
12/15/15 02:08 PM
1
5kB
merlight
12/10/15 02:33 PM


Post A Reply Comment Options
Unread 06/11/20, 09:08 AM  
sonwon

Forum posts: 0
File comments: 274
Uploads: 0
It would be nice if you could remove the libs from the addon.
Report comment to moderator  
Reply With Quote
Unread 12/15/15, 02:34 PM  
merlight
AddOn Author - Click to view AddOns

Forum posts: 671
File comments: 213
Uploads: 12
Warning: in v2 I replaced colons in callback names with periods. Those colons might confuse someone into thinking that callbacks receive the library as the first argument, which is not the case. They're just string keys into a table. Lua is oblivious to what's in a name, for it isn't that envious.
Last edited by merlight : 12/15/15 at 02:34 PM.
Report comment to moderator  
Reply With Quote
Unread 12/10/15, 08:29 PM  
BigM
 
BigM's Avatar

Forum posts: 16
File comments: 371
Uploads: 0
Thanks see this being very useful.
Report comment to moderator  
Reply With Quote
Unread 12/10/15, 04:04 PM  
CaptainBlagbird
 
CaptainBlagbird's Avatar
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 177
Uploads: 23
really useful, thanks
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: