core: fix code indentation

This commit is contained in:
shagu
2019-04-05 09:29:37 +02:00
parent 5ca40197f6
commit 0b24e42c31
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1875,7 +1875,7 @@ function pfUI.uf:GetStatusValue(unit, pos)
local health = ceil(hp - hpmax)
if UnitIsDead(unitstr) then
return unit:GetColor("health") .. DEAD
elseif health == 0 then
elseif health == 0 then
return unit:GetColor("health") .. "0"
else
return unit:GetColor("health") .. pfUI.api.Abbreviate(health)
+1 -1
View File
@@ -288,7 +288,7 @@ pfUI:RegisterModule("actionbar", function ()
end
-- don't go further on those events
if event == "ACTIONBAR_UPDATE_USABLE" or event == "UPDATE_INVENTORY_ALERTS" then return end
if event == "ACTIONBAR_UPDATE_USABLE" or event == "UPDATE_INVENTORY_ALERTS" then return end
-- icon
if texture ~= self.texture then
+1 -1
View File
@@ -32,7 +32,7 @@ pfUI:RegisterModule("farmmode", function ()
pfUI.farmmap:Hide()
pfUI.farmmap:SetFrameStrata("LOW")
pfUI.farmmap:SetWidth(300)
pfUI.farmmap:SetHeight(300)
pfUI.farmmap:SetHeight(300)
pfUI.farmmap:SetClampedToScreen(1)
pfUI.farmmap:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 200, -200)
pfUI.farmmap:SetAlpha(.8)
+1 -1
View File
@@ -231,7 +231,7 @@ pfUI:RegisterModule("roll", function ()
if not this:GetParent():GetParent().rollID then return end
local left = GetLootRollTimeLeft(this:GetParent():GetParent().rollID)
local min, max = this:GetMinMaxValues()
if left < min or left > max then left = min end
if left < min or left > max then left = min end
this:SetValue(left)
end)
+6 -6
View File
@@ -10,11 +10,11 @@ pfUI:RegisterSkin("Battlefield Score", function ()
SkinCloseButton(WorldStateScoreFrameCloseButton, WorldStateScoreFrame.backdrop, -6, -6)
WorldStateScoreFrameLabel:ClearAllPoints()
WorldStateScoreFrameLabel:SetPoint("TOP", WorldStateScoreFrame.backdrop, "TOP", 0, -10)
WorldStateScoreFrameLabel:ClearAllPoints()
WorldStateScoreFrameLabel:SetPoint("TOP", WorldStateScoreFrame.backdrop, "TOP", 0, -10)
StripTextures(WorldStateScoreScrollFrame)
SkinScrollbar(WorldStateScoreScrollFrameScrollBar)
SkinScrollbar(WorldStateScoreScrollFrameScrollBar)
WorldStateScoreFrameTab1:ClearAllPoints()
WorldStateScoreFrameTab1:SetPoint("TOPLEFT", WorldStateScoreFrame.backdrop, "BOTTOMLEFT", bpad, -(border + (border == 1 and 1 or 2)))
@@ -24,9 +24,9 @@ pfUI:RegisterSkin("Battlefield Score", function ()
if lastTab then
tab:ClearAllPoints()
tab:SetPoint("LEFT", lastTab, "RIGHT", border*2 + 1, 0)
end
end
SkinTab(tab)
end
end
SkinButton(WorldStateScoreFrameLeaveButton)
SkinButton(WorldStateScoreFrameLeaveButton)
end)