Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Jan 21, 2022
1 parent 907a97f commit 392c556
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion config/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ C.CharacterSettings = {
ExplosiveIndicator = true,
RaidTargetIndicator = true,
RaidTargetIndicatorScale = 2,
RaidTargetIndicatorAlpha = .1,
RaidTargetIndicatorAlpha = .6,
FriendlyClassColor = false,
HostileClassColor = true,
TankMode = false,
Expand Down
12 changes: 0 additions & 12 deletions core/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2306,18 +2306,6 @@ do
if not object.Kill then
mt.Kill = Kill
end
if not object.Size then
mt.Size = Size
end
if not object.Width then
mt.Width = Width
end
if not object.Height then
mt.Height = Height
end
if not object.Point then
mt.Point = Point
end
if not object.SetInside then
mt.SetInside = SetInside
end
Expand Down
5 changes: 2 additions & 3 deletions modules/unitframe/units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ end

function UNITFRAME:UpdatePartyElements()
for _, frame in pairs(oUF.objects) do
if frame.raidType == 'party' then
if frame.unitStyle == 'party' then
if frame.PartyWatcher then
frame.PartyWatcher:UpdateAnchor()
end
Expand Down Expand Up @@ -308,7 +308,6 @@ end

local function CreatePartyStyle(self)
self.unitStyle = 'party'
self.raidType = 'party'

UNITFRAME:CreateBackdrop(self)
UNITFRAME:CreateHealthBar(self)
Expand Down Expand Up @@ -416,7 +415,6 @@ UNITFRAME.RaidDirections = {

local function CreateSimpleRaidStyle(self)
self.unitStyle = 'simple'
self.raidType = 'simple'

UNITFRAME:CreateBackdrop(self)
UNITFRAME:CreateHealthBar(self)
Expand Down Expand Up @@ -662,6 +660,7 @@ end




function UNITFRAME:SpawnUnits()
if not C.DB.Unitframe.Enable then
return
Expand Down

0 comments on commit 392c556

Please sign in to comment.