Prat 3.0

Prat 3.0

26M Downloads

10.0.x Prepatch - attempt to call method 'GetMinResize' (a nil value)

reiyooki opened this issue ยท 4 comments

commented
1x Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua:610: attempt to call method 'GetMinResize' (a nil value)
[string "@Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua"]:610: in function `GetDefaults'
[string "@Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua"]:518: in function `init'
[string "@Interface/AddOns/Prat-3.0-3.9.1/addon/modules.lua"]:154: in function <Interface/AddOns/Prat-3.0/addon/modules.lua:147>
[string "=[C]"]: ?
[string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...s/!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:494: in function `InitializeAddon'
[string "@Interface/AddOns/!KalielsTracker/Libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:619: in function <...s/!KalielsTracker/Libs/AceAddon-3.0/AceAddon-3.0.lua:611>
commented

The calls to GetMinResize and GetMaxResize can be replaced with:
local minwidthdefault, minheightdefault, maxwidthdefault, maxheightdefault = cf:GetResizeBounds()

Similarly the calls setting min and max resize become:
cf:SetResizeBounds(prof.minchatwidth, prof.minchatheight, prof.maxchatwidth, prof.maxchatheight)

and
cf:SetResizeBounds(prof.minchatwidthdefault, prof.minchatheightdefault, prof.maxchatwidthdefault, prof.maxchatheightdefault)

commented

Well, that stopped the errors, the frame still isn't behaving properly though, and I expect that's due to the new "edit mode" stuff blizzard added.

commented

Another one, but for SetMinResize:

1x Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua:625: attempt to call method 'SetMinResize' (a nil value)
[string "@Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua"]:625: in function `SetParameters'
[string "@Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua"]:599: in function `ConfigureAllChatFrames'
[string "@Interface/AddOns/Prat-3.0-3.9.1/modules/ChatFrames.lua"]:522: in function `OnModuleEnable'
[string "@Interface/AddOns/Prat-3.0-3.9.1/addon/modules.lua"]:189: in function <Interface/AddOns/Prat-3.0/addon/modules.lua:178>
[string "=[C]"]: ?
[string "@Interface/AddOns/AdiBags/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:66: in function <...ce/AddOns/AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:61>
[string "@Interface/AddOns/AdiBags/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:523: in function `EnableAddon'
[string "@Interface/AddOns/AdiBags/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:536: in function `EnableAddon'
[string "@Interface/AddOns/AdiBags/libs/AceAddon-3.0-13/AceAddon-3.0.lua"]:626: in function <...ce/AddOns/AdiBags/libs/AceAddon-3.0/AceAddon-3.0.lua:611>
commented

Fixed as of 58823c6