Message: [string " Cosm_UpdateViews_Shop = function(frame) ..."]:1: attempt to index local 'frame' (a nil value)
Time: Wed Dec 6 20:04:44 2023
Count: 9
Stack: [string " Cosm_UpdateViews_Shop = function(frame) ..."]:1: attempt to index local 'frame' (a nil value)
[string " Cosm_UpdateViews_Shop = function(frame) if ACCOUNT_FS_BALANCE["GOLD"] == nil then frame.accountBalance:SetText("") return else frame.accountBalance:SetText(ACCOUNT_FS_BALANCE["GOLD"]) end for i=1,Cosm_TabNumber do frame.TabButtons[i]:SetChecked(frame.currentTab == i) frame.TabButtons[i].HighlightTexture:SetShown(frame.currentTab == i); end local startIndex = (frame.currentPage - 1) * 4 for i=1,4 do if Cosm_Previews[i] ~= nil then Cosm_Previews[i]:Hide() Cosm_Previews[i].Id = 0 end end local i = 0 local datas = {} local displayFunction = nil for id, data in pairs(Cosm_Datas[frame.currentTab]) do if data.Active == 1 and data.Owned == 0 then i = i + 1 if i > startIndex and i <= startIndex + 4 then local frameIndex = i - startIndex Cosm_DisplayFunction[frame.currentTab](frame, frameIndex, id) Cosm_Previews[frameIndex].priceText:SetText(data.Price) Cosm_Previews[frameIndex].Id = id Cosm_Previews[frameIndex].Data = data Cosm_Previews[frameIndex].purchaseButton:SetEnabled(ACCOUNT_FS_BALANCE["GOLD"] >= data.Price) Cosm_Previews[frameIndex]:Show() end end end frame.pageText:SetFormattedText(COLLECTION_PAGE_NUMBER, frame.currentPage, ceil(i / Cosm_StorePreviewCount)); _G[frame:GetName().."NextPageButton"]:SetEnabled(i > startIndex + 4) _G[frame:GetName().."PrevPageButton"]:SetEnabled(frame.currentPage > 1) end "]:1: in function `Cosm_UpdateViews_Shop'
[string " Cosm_UpdateViews = function(frame) if frame == nil then Cosm_UpdateViews_Shop(_G["CosmeticatorFrame"]) Cosm_UpdateViews_Use(_G["FlaskOfAppearanceFrame"]) elseif frame:GetName() == "CosmeticatorFrame" then Cosm_UpdateViews_Shop(frame) elseif frame:GetName() == "FlaskOfAppearanceFrame" then Cosm_UpdateViews_Use(frame) end end "]:1: in function `Cosm_UpdateViews'
[string " Cosm_SetActiveCosmetic = function(type, id) Cosm_CurrentCosmetic = { Type = type, Id = id} Cosm_UpdateViews(_G["FlaskOfAppearanceFrame"]) end "]:1: in function `Cosm_SetActiveCosmetic'
[string "Cosm_SetActiveCosmetic(1, 0)"]:1: in main chunk
[string "@Interface\FrameXML\InsanityBar.lua"]:90: in function `filterFunc'
[string "@Interface\AddOns\Prat-3.0\services\chatsections.lua"]:49: in function <Interface\AddOns\Prat-3.0\services\chatsections.lua:41>
[string "@Interface\AddOns\Prat-3.0\services\chatsections.lua"]:340: in function `SplitChatMessage'
[string "@Interface\AddOns\Prat-3.0\addon\addon.lua"]:639: in function <Interface\AddOns\Prat-3.0\addon\addon.lua:613>
[string "=(tail call)"]: ?
[string "@Interface\FrameXML\ChatFrame.lua"]:3118: in function `ChatFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>
Locals: frame = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'frame' (a nil value)"
[свернуть]