Commit 584bb761 authored by Simpy's avatar Simpy 🐹

icon size option

parent 5c337d90
......@@ -237,12 +237,12 @@ function FCT:EnableMode(fb, mode)
fb.Text = fb.Frame:CreateFontString(frameName..'Text', 'OVERLAY')
fb.Text:FontTemplate(fb.font, fb.fontSize, fb.fontOutline)
fb.Text.Icon = fb.Frame:CreateTexture(frameName..'Icon')
fb.Text.Icon:Size(16, 16)
S:HandleIcon(fb.Text.Icon, true)
fb.Text.Spell = fb.Frame:CreateFontString(frameName..'Spell', 'OVERLAY')
fb.Text.Spell:FontTemplate(fb.font, fb.fontSize, fb.fontOutline)
end
fb.Text.Icon:Size(fb.iconSize)
fb.Text:Point('CENTER', fb.owner.Health, 'CENTER', fb.textX, fb.textY)
fb.Text.Icon:Point('RIGHT', fb.Text, 'LEFT', fb.iconX, fb.iconY)
fb.Text.Spell:Point('BOTTOM', fb.Text, 'TOP', fb.spellX, fb.spellY)
......@@ -266,7 +266,6 @@ function FCT:EnableMode(fb, mode)
local text = frame:CreateFontString(frameName..'Text', 'OVERLAY')
text:FontTemplate(fb.font, fb.fontSize, fb.fontOutline)
text.Icon = frame:CreateTexture(frameName..'Icon')
text.Icon:Size(16, 16)
S:HandleIcon(text.Icon, true)
text.Spell = frame:CreateFontString(frameName..'Spell', 'OVERLAY')
text.Spell:Point('BOTTOM', text, 'TOP', fb.spellX, fb.spellY)
......@@ -274,6 +273,7 @@ function FCT:EnableMode(fb, mode)
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)
......@@ -320,6 +320,7 @@ function FCT:SetOptions(fb, db)
fb.showDots = db.showDots
fb.isTarget = db.isTarget
fb.isPlayer = db.isPlayer
fb.iconSize = db.iconSize
fb.showPet = db.showPet
fb.exclude = db.exclude
fb.mode = db.mode
......
......@@ -130,8 +130,14 @@ FCT.options = {
['LS'] = L["Animation"]
},
},
offsets = {
iconSize = {
order = 19,
name = L["Icon Size"],
type = "range",
min = 10, max = 30, step = 1,
},
offsets = {
order = 20,
type = "group",
name = L["Offsets"],
guiInline = true,
......@@ -177,7 +183,7 @@ FCT.options = {
}
},
advanced = {
order = 20,
order = 21,
type = "group",
name = L["Animation Settings"],
guiInline = true,
......
......@@ -91,6 +91,7 @@ ns.frames = {
isTarget = false,
isPlayer = true,
showPet = true,
iconSize = 16,
textY = 0,
textX = 0,
iconY = 0,
......
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