Commit 74b9470a authored by Simpy's avatar Simpy 🐹

fix the icon offset

parent 584bb761
......@@ -185,9 +185,9 @@ function FCT:Update(frame, fb)
if fb.alternateIcon then
text.Icon:ClearAllPoints()
if text.xDirection < 0 then
text.Icon:Point('RIGHT', text, 'LEFT', -5, 0)
text.Icon:Point('RIGHT', text, 'LEFT', fb.iconX, fb.iconY)
else
text.Icon:Point('LEFT', text, 'RIGHT', 5, 0)
text.Icon:Point('LEFT', text, 'RIGHT', fb.iconX * -1, fb.iconY)
end
end
else
......@@ -268,14 +268,14 @@ function FCT:EnableMode(fb, mode)
text.Icon = frame:CreateTexture(frameName..'Icon')
S:HandleIcon(text.Icon, true)
text.Spell = frame:CreateFontString(frameName..'Spell', 'OVERLAY')
text.Spell:Point('BOTTOM', text, 'TOP', fb.spellX, fb.spellY)
text.Spell:FontTemplate(fb.font, fb.fontSize, fb.fontOutline)
text.frame = frame
fb.texts[i] = text
end
fb.texts[i].Icon:Size(fb.iconSize)
fb.texts[i].Icon:Point('RIGHT', fb.texts[i], 'LEFT', fb.iconX, fb.iconY)
fb.texts[i].Spell:FontTemplate(fb.font, fb.fontSize, fb.fontOutline)
fb.texts[i].Spell:Point('BOTTOM', fb.texts[i], 'TOP', fb.spellX, fb.spellY)
fb.texts[i].fadeTime = fb.FadeTime
fb.texts[i].xDirection = fb.DirectionX
......
......@@ -12,6 +12,8 @@ ns.defaults = {
alternateIcon = true,
isTarget = true,
showIcon = true,
iconX = -5,
spellY = 5
},
FriendlyNPC = {
enable = true,
......@@ -19,6 +21,8 @@ ns.defaults = {
alternateIcon = true,
isTarget = true,
showIcon = true,
iconX = -5,
spellY = 5
},
EnemyPlayer = {
enable = true,
......@@ -26,6 +30,8 @@ ns.defaults = {
alternateIcon = true,
isTarget = true,
showIcon = true,
iconX = -5,
spellY = 5
},
EnemyNPC = {
enable = true,
......@@ -33,6 +39,8 @@ ns.defaults = {
alternateIcon = true,
isTarget = true,
showIcon = true,
iconX = -5,
spellY = 5
},
}
},
......@@ -41,28 +49,38 @@ ns.defaults = {
frames = {
Player = {
enable = true,
showName = true
showName = true,
iconX = -5,
spellY = 2
},
Target = {
enable = true,
showName = true
showName = true,
iconX = -5,
spellY = 2
},
TargetTarget = {},
TargetTargetTarget = {},
Focus = {
enable = true,
showIcon = true
showIcon = true,
iconX = -5,
spellY = 2
},
FocusTarget = {
enable = true,
showIcon = true
showIcon = true,
iconX = -5,
spellY = 2
},
Pet = {},
PetTarget = {},
Arena = {},
Boss = {
enable = true,
showIcon = true
showIcon = true,
iconX = -5,
spellY = 2
},
Party = {},
Raid = {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment