In wow classic is there anyway to get which recipes and/or check if the character has a recipe without opening the tradeskill window? Currently I can only find this way to do it, where the issue is unless a tradeskill window is open GetNumTradeSkills does not return anything.
for i=1,GetNumTradeSkills() do
local name = GetTradeSkillInfo(i)
table.insert(recipes, name)
end
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.
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")
0
In reply to Ketho17:
Thanks friend.
0
In wow classic is there anyway to get which recipes and/or check if the character has a recipe without opening the tradeskill window? Currently I can only find this way to do it, where the issue is unless a tradeskill window is open GetNumTradeSkills does not return anything.
0
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!
0
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?