Code: Select all
/lib/loveframes/object/frame.lua:203: attempt to index local 'skin' (a nil value)
Code: Select all
local children = self.children
local internals = self.internals
local skins = loveframes.skins.available
local skinindex = loveframes.config["ACTIVESKIN"]
local defaultskin = loveframes.config["DEFAULTSKIN"]
local selfskin = self.skin
local skin = skins[selfskin] or skins[skinindex]
local drawfunc = skin.DrawFrame or skins[defaultskin].DrawFrame <-- line 203
local draw = self.Draw
local drawcount = loveframes.drawcount
Code: Select all
function managementTabs()
local frame = loveframes.Create("frame")
frame:SetName("Tabs")
frame:SetSize(1280, 100)
frame:Center()
local tabs = loveframes.Create("tabs", frame)
tabs:SetPos(0, 0)
tabs:SetSize(1280, 100)
for i=1, 5 do
local text1 = loveframes.Create("text")
text1:SetText("Tab " ..i)
tabs:AddTab("Tab " ..i, text1, "Tab " ..i)
end