mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
core: fix code indentation
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user