LunixiaLIVE / SmexyMats

World of Warcraft
GNU General Public License v3.0
1 stars 4 forks source link

InterfaceOptionsFrame_OpenToCategory #6

Open gaveer opened 2 months ago

gaveer commented 2 months ago

when you try to use the ChatCommand /sm error poped:

14x SmexyMats/main/Smexy_Core.lua:102: attempt to call global 'InterfaceOptionsFrame_OpenToCategory' (a nil value)
[string "@SmexyMats/main/Smexy_Core.lua"]:102: in function `?'
[string "@Ace3/AceConsole-3.0-7/AceConsole-3.0.lua"]:90: in function `?'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5468: in function `ChatEdit_ParseText'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5120: in function <Blizzard_ChatFrameBase/Mainline/ChatFrame.lua:5119>
[string "=[C]"]: in function `ChatEdit_SendText'
[string "@Blizzard_ChatFrameBase/Mainline/ChatFrame.lua"]:5156: in function `ChatEdit_OnEnterPressed'
[string "*ChatFrame.xml:140_OnEnterPressed"]:1: in function <[string "*ChatFrame.xml:140_OnEnterPressed"]:1>
[string "=[C]"]: ?

Locals:
self = <table> {
 baseName = "SmexyMats"
 Scrap = <table> {
 }
 modules = <table> {
 }
 Drop = <table> {
 }
 Vendor = <table> {
 }
 defaultModuleLibraries = <table> {
 }
 Profs = <table> {
 }
 Reagents = <table> {
 }
 defaults = <table> {
 }
 options = <table> {
 }
 ExPacks = <table> {
 }
 name = "SmexyMats"
 Colors = <table> {
 }
 orderedModules = <table> {
 }
 Sources = <table> {
 }
 enabledState = true
 defaultModuleState = true
}
(*temporary) = nil
(*temporary) = "SmexyMats(Retail)"
(*temporary) = "attempt to call global 'InterfaceOptionsFrame_OpenToCategory' (a nil value)"
gaveer commented 2 months ago

InterfaceOptionsFrame_OpenToCategory was changed with 11.0 https://warcraft.wiki.gg/wiki/Patch_11.0.0/API_changes

SmexyMats\main\Smexy_Core.lua Line 102 Line 103

- InterfaceOptionsFrame_OpenToCategory("SmexyMats(Retail)");
- InterfaceOptionsFrame_OpenToCategory("SmexyMats(Retail)");

+ Settings.OpenToCategory("SmexyMats(Retail)");
+ Settings.OpenToCategory("SmexyMats(Retail)");