Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/13/18, 06:58 PM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
[SOLVED] Add Checkbox to Keybinding category

tl;dr I just want to add an option checkbox somewhere that toggles a variable.

Hey. I'm entirely new to this. I wanted to update and improve the Junkee addon. I like having a keybind for Junk/Destroy items.

I've slowly used the forums and other addons to figure out how to update it, and then to make it save variables and load them. I'm trying to have an option (toggle) to display the keybindings when the Inventory is open; the keybindings are always active, but the descriptions can be toggled on/off.

The actual toggling works fine with a variable. I just can't figure out how to create and display the Checkbox correctly. I tried taking code from VotansKeybinder, but it's over my head. I'm not even sure what/how to adapt.

How do I add a Checkbox to the Keybinding menu, either next to the category title ("Junkee") or next to a Keybinding option ("Show bindings in Inventory" keybind)?

Last edited by Phuein : 03/16/18 at 11:22 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » Add Checkbox to Keybinding category


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off