okay, I got rid of these errors - and changed 2 against 1 error:
Code:
2x oUF_Fauli-1.0\core.lua:377: Bad argument #3 to "RegisterStyle" (function, table expected, got nil
<in C code>
oUF-1.6.5\private.lua:13: in function <oUF\private.lua:4>
oUF-1.6.5\ouf-1.6.5.lua:316: in function "RegisterStyle"
oUF_Fauli-1.0\core.lua:377: in main chunk
Locals:
value = nil
num = 3
types = "function, table"
name = "RegisterStyle"
I'm not able to find the problem - if you need anything to help from my cods, tell me.
edit:
thats my register style part:
Code:
oUF:RegisterStyle("fauli", UnitStyle)
oUF:RegisterStyle("fauliBoss", BossStyle)
oUF:Factory(function(self)
-- Single Frames
self:SetActiveStyle('fauli')
self:Spawn('player'):SetPoint("BOTTOMRIGHT", UIParent, cfg.playerRelativePoint, cfg.playerX, cfg.playerY)
self:Spawn('target'):SetPoint("BOTTOMLEFT", UIParent, cfg.targetRelativePoint, cfg.targetX, cfg.targetY)
if cfg.showTot then self:Spawn('targettarget'):SetPoint("TOPRIGHT",oUF_fauliTarget,"BOTTOMRIGHT", 0, -8) end
if cfg.showPet then self:Spawn('pet'):SetPoint("TOPLEFT",oUF_fauliPlayer,"BOTTOMLEFT", 0, -8) end
if cfg.showFocus then self:Spawn('focus'):SetPoint("CENTER",UIParent,"BOTTOM", 0, 242) end
-- Boss frames
if cfg.showBossFrames then
self:SetActiveStyle('fauliBoss')
local bossFrames = {}
for i = 1, MAX_BOSS_FRAMES do
local unit = self:Spawn('boss' .. i)
if i > 1 then
unit:SetPoint('BOTTOMLEFT', bossFrames[i - 1], 'TOPLEFT', 0, 8)
else
unit:SetPoint('BOTTOMRIGHT', UIParent, 'BOTTOMRIGHT', -90, 320)
end
bossFrames[i] = unit
end
end
end)
do