Commit 4a4b701b authored by Azilroka's avatar Azilroka

More Cleanup

parent 28d5b7d4
......@@ -33,27 +33,27 @@ DO.Textures = {
}
function DO:SetOverlay()
local Points = 'DragonPoints'
local TargetClass = UnitClassification('target')
local Texture = DO.Textures[self.db[TargetClass]]
local Points
if UnitIsPlayer('target') and self.db['ClassIcon'] then
TargetClass = select(2, UnitClass('target'))
self.frame:SetSize(DO.db.IconSize, DO.db.IconSize)
self.frame.Texture:SetTexture([[Interface\WorldStateFrame\Icons-Classes]])
self.frame.Texture:SetTexCoord(unpack(CLASS_ICON_TCOORDS[TargetClass]))
self.frame.Texture:SetTexCoord(unpack(CLASS_ICON_TCOORDS[select(2, UnitClass('target'))]))
Points = 'ClassIconPoints'
else
self.frame:SetSize(DO.db.Width, DO.db.Height)
self.frame.Texture:SetTexture(Texture)
self.frame.Texture:SetTexture(DO.Textures[self.db[UnitClassification('target')]])
self.frame.Texture:SetTexCoord(self.db['FlipDragon'] and 1 or 0, self.db['FlipDragon'] and 0 or 1, 0, 1)
Points = 'DragonPoints'
end
self.frame:ClearAllPoints()
self.frame:SetPoint(self.db[Points]['point'], _G[self.db[Points]['relativeTo']].Health, self.db[Points]['relativePoint'], self.db[Points]['xOffset'], self.db[Points]['yOffset'])
self.frame:SetParent(self.db[Points]['relativeTo'])
self.frame:SetFrameStrata(strsub(self.db['Strata'], 3))
self.frame:SetFrameLevel(self.db['Level'])
if _G[self.db[Points]['relativeTo']] then
self.frame:ClearAllPoints()
self.frame:SetPoint(self.db[Points]['point'], _G[self.db[Points]['relativeTo']].Health, self.db[Points]['relativePoint'], self.db[Points]['xOffset'], self.db[Points]['yOffset'])
self.frame:SetParent(self.db[Points]['relativeTo'])
self.frame:SetFrameStrata(strsub(self.db['Strata'], 3))
self.frame:SetFrameLevel(self.db['Level'])
end
end
function DO:GetOptions()
......@@ -280,7 +280,7 @@ end
function DO:BuildProfile()
PA.Defaults.profile['DragonOverlay'] = {
['Enable'] = true,
['Strata'] = '2-MEDIUM',
['Strata'] = '3-MEDIUM',
['Level'] = 12,
['IconSize'] = 32,
['Width'] = 128,
......
......@@ -4,7 +4,8 @@ _G.FriendGroup = FG
FG.Title = '|cFF16C3F2Friend|r |cFFFFFFFFGroups|r'
FG.Desciption = 'Manage Firends List with Groups'
FG.Authors = 'Azilroka Mikeprod frankkkkk'
FG.Authors = 'Azilroka'
FG.Credits = 'Mikeprod frankkkkk'
local hooks = {}
......
This diff is collapsed.
This diff is collapsed.
......@@ -549,7 +549,6 @@ function stAM:Update()
-- Frame fonts
self.Frame.Title:SetFont(PA.LSM:Fetch('font', self.db['Font']), 14, self.db['FontFlag'])
self.Frame.Close.Text:SetFont(PA.LSM:Fetch('font', self.db['Font']), 12, self.db['FontFlag'])
self.Frame.Search:SetFont(PA.LSM:Fetch('font', self.db['Font']), 12, self.db['FontFlag'])
self.Frame.Reload.Text:SetFont(PA.LSM:Fetch('font', self.db['Font']), 12, self.db['FontFlag'])
self.Frame.Profiles.Text:SetFont(PA.LSM:Fetch('font', self.db['Font']), 12, self.db['FontFlag'])
......@@ -651,6 +650,17 @@ function stAM:GetOptions()
name = stAM.Authors,
fontSize = 'large',
},
CreditsHeader = {
order = 13,
type = 'header',
name = PA.ACL['Credits:'],
},
Credits = {
order = 14,
type = 'description',
name = stAM.Credits,
fontSize = 'large',
},
},
}
......@@ -662,7 +672,7 @@ function stAM:BuildProfile()
['Enable'] = true,
['NumAddOns'] = 30,
['FrameWidth'] = 550,
['Font'] = 'PT Sans Narrow',
['Font'] = 'PT Sans Narrow Bold',
['FontSize'] = 16,
['FontFlag'] = 'OUTLINE',
['ButtonHeight'] = 18,
......
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