CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on Toggle/Checkbox requiring multiple clicks

    In reply to Ketho17:

    Yeah, this is definitely what is going on. As I noticed when I check a box and then another box a couple seconds later they both update. I will probably shift this away from functions to saved variables instead.

     

    Thanks!

    Posted in: Ace3
  • 0

    posted a message on Toggle/Checkbox requiring multiple clicks

    I'm creating some options using Ace-Config for an addon and I'm having an issue where the toggle/checkbox is requiring multiple clicks to change. Anyone have an idea why? I was able to create a normal checkbox and it works fine. I'm hooking functions to it via the regular options and it's using the global wow functions SetBagSlotFlag/GetBagSlotFlag in order to store the options. So I'm not sure if that might have something to do with it?

     

    options = {
      type = "group",
      args = {	
        bag4 = {
          name = "Bag 4",
          desc = "Allow this bag to be sorted",
          type = "toggle",
          set = function(info,val)
    				SetBagSlotFlag(4, LE_BAG_FILTER_FLAG_IGNORE_CLEANUP, not val)
    			end,
          get = function(info)
    				return not GetBagSlotFlag(4, LE_BAG_FILTER_FLAG_IGNORE_CLEANUP)
    			end,
    	  order = 2,
    	  width = "half"
        }
      }
    }
    
    LibStub("AceConfig-3.0"):RegisterOptionsTable("MyAddon", options, {"MyAddon"})
    LibStub("AceConfigDialog-3.0"):AddToBlizOptions("MyAddon", "MyAddon")
    Posted in: Ace3
  • To post a comment, please or register a new account.