Add item to the keybind bar?
You know the keybind bar, that bar at the bottom of the vanilla UI elements, that says, for example when looting, "Take [E]" "Take All [R]" "Exit [Alt]" ? Does anyone know how to add my own button to the pre-existing bar?
I know the bar is controlled by the KEYBIND_STRIP global. I know there are functions within this variable called AddKeybindButton(), AddKeybindButtonGroup(), and AddButtonToAnchors(). Does anyone know the arguments that these functions might take? Also, when do I call the function to add the keybind to the bar? Do I call when the provisioning window opens? Sometime before or after? Do I trigger it with an event callback? Thanks in advance! |
Have a look at this thread.
I had a quick dabble when the question was asked in game and got a basic one running. But, I think you need to combine the display with the custom binding table which I didn't play with. Although, it wasn't to the existing bar. |
http://www.esoui.com/forums/showthread.php?t=820
There is some additional linking going on to make the work. It appears to be something with the RootGUI and/or scene manager and callbacks. They could of buried it deeper but why would they expose they keybind strip in the API? :confused: --halja |
Thank you! I'll fiddle around with that today.
|
Okay, here's how it goes. The function to put a button (or button group) to the keybind bar is as follows:
Code:
KEYBIND_STRIP:AddKeybindButtonGroup(keybindStripDescriptor) Code:
local keybindStripDescriptor = Code:
KEYBIND_STRIP:RemoveKeybindButtonGroup(keybindStripDescriptor) |
All times are GMT -6. The time now is 11:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI