Commit 1ddd7cee authored by Azilroka's avatar Azilroka

White Space & Cleanup

parent 4607e134
......@@ -12,7 +12,7 @@ C["General"] = {
["Scaling"] = {
["Options"] = {
["Pixel Perfection"] = "Pixel Perfection",
["Smallest"] = "Smallest",
["Smallest"] = "Smallest",
["Small"] = "Small",
["Medium"] = "Medium",
["Large"] = "Large",
......@@ -24,7 +24,7 @@ C["General"] = {
["Themes"] = {
["Options"] = {
["Tukui"] = "Tukui",
["Tukui 17"] = "Tukui 17",
["Tukui 17"] = "Tukui 17",
},
["Value"] = "Tukui",
......
......@@ -48,11 +48,11 @@ T.SlashHandler = function(cmd)
elseif (arg1 == "events" or arg1 == "trace") then
if EventTraceEnabled then
EventTrace:UnregisterAllEvents()
EventTraceEnabled = false
else
EventTrace:RegisterAllEvents()
EventTraceEnabled = true
end
elseif (arg1 == "move" or arg1 == "moveui") then
......
......@@ -49,13 +49,13 @@ function Loading:OnEvent(event, addon)
local Adjust = (T.ScreenHeight / 10000) / 2
local UIScale = min(2, max(0.01, 768 / string.match(T.Resolution, "%d+x(%d+)")))
if (Scaling == "Smallest") then
if (T.ScreenHeight >= 1600) then
-- 0.35555556416512 + 0.108 = 0.463 on 4K monitor
UIScale = UIScale + Adjust
else
UIScale = 0.64 - Adjust
end
if (Scaling == "Smallest") then
if (T.ScreenHeight >= 1600) then
-- 0.35555556416512 + 0.108 = 0.463 on 4K monitor
UIScale = UIScale + Adjust
else
UIScale = 0.64 - Adjust
end
elseif (Scaling == "Small") then
UIScale = 0.64
elseif (Scaling == "Medium") then
......@@ -66,10 +66,10 @@ function Loading:OnEvent(event, addon)
UIScale = 0.64 + Adjust + Adjust + Adjust
end
-- This is for 4K with pixel pecfection scaling
if (T.ScreenHeight >= 1600) and (Scaling == "Pixel Perfection") then
UIScale = UIScale * 2 -- Pixel Perfection Scaling, X 2 to still be almost pixel perfect, should be around 0.71
end
-- This is for 4K with pixel pecfection scaling
if (T.ScreenHeight >= 1600) and (Scaling == "Pixel Perfection") then
UIScale = UIScale * 2 -- Pixel Perfection Scaling, X 2 to still be almost pixel perfect, should be around 0.71
end
T.Mult = 768 / string.match(T.Resolution, "%d+x(%d+)") / UIScale
T.UIScale = UIScale
......
......@@ -38,13 +38,13 @@ function TukuiActionBars:CreatePetBar()
Bar:SetAttribute("addchild", Button)
Bar["Button"..i] = Button
end
PetActionBarFrame:EnableMouse(0)
PetActionBarFrame:ClearAllPoints()
PetActionBarFrame:SetParent(T.Panels.Hider)
hooksecurefunc("PetActionBar_Update", TukuiActionBars.UpdatePetBar)
TukuiActionBars:SkinPetButtons()
RegisterStateDriver(Bar, "visibility", "[pet,nopetbattle,novehicleui,nooverridebar,nopossessbar,nobonusbar:5] show; hide")
......
......@@ -124,7 +124,7 @@ local OnClick = function(self, button)
if (Bar:IsVisible()) then
if (ShiftClick and Num ~= 4) then -- Handle shift-clicks on the button
if (Num == 2 or Num == 3) then
if (Num == 2 or Num == 3) then
ActionBars:RemoveColumn(Bar, Num)
else
ActionBars:RemoveButton(Bar, Num)
......@@ -204,7 +204,7 @@ local OnClick = function(self, button)
end
function ActionBars:CreateToggleButtons()
for i = 2, 5 do
for i = 2, 5 do
local Bar = T.Panels["ActionBar" .. i]
local Width = Bar:GetWidth()
local Height = Bar:GetHeight()
......
......@@ -3,14 +3,12 @@ local T, C, L = select(2, ...):unpack()
local TukuiActionBars = CreateFrame("Frame")
local _G = _G
local format = format
local Noop = function() end
local NUM_ACTIONBAR_BUTTONS = NUM_ACTIONBAR_BUTTONS
local NUM_PET_ACTION_SLOTS = NUM_PET_ACTION_SLOTS
local NUM_STANCE_SLOTS = NUM_STANCE_SLOTS
local MainMenuBar, MainMenuBarArtFrame = MainMenuBar, MainMenuBarArtFrame
local OverrideActionBar = OverrideActionBar
local PossessBarFrame = PossessBarFrame
local PetActionBarFrame = PetActionBarFrame
local ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight = ShapeshiftBarLeft, ShapeshiftBarMiddle, ShapeshiftBarRight
local Panels = T["Panels"]
......@@ -22,7 +20,7 @@ local Frames = {
function TukuiActionBars:DisableBlizzard()
local Hider = Panels.Hider
SetCVar("alwaysShowActionBars", 1)
if (not C.ActionBars.AddNewSpells) then
......@@ -68,7 +66,7 @@ function TukuiActionBars:ShowGrid()
for i = 1, NUM_ACTIONBAR_BUTTONS do
local Button
local Reason = nil
if T.WoWBuild >= 28724 then
Reason = ACTION_BUTTON_SHOW_GRID_REASON_EVENT
end
......@@ -262,7 +260,7 @@ function TukuiActionBars:UpdateStanceBar(...)
Button = _G[ButtonName]
Icon = _G[ButtonName.."Icon"]
Button:SetNormalTexture("")
if i <= NumForms then
......
......@@ -5,7 +5,6 @@ local TukuiActionBars = T["ActionBars"]
local IsUsableAction = IsUsableAction
local IsActionInRange = IsActionInRange
local ActionHasRange = ActionHasRange
local HasAction = HasAction
function TukuiActionBars:RangeOnUpdate(elapsed)
if (not self.rangeTimer) then
......
......@@ -3,9 +3,7 @@ local T, C, L = select(2, ...):unpack()
local TukuiActionBars = T["ActionBars"]
local NUM_PET_ACTION_SLOTS = NUM_PET_ACTION_SLOTS
local Replace = string.gsub
local SpellFlyout = SpellFlyout
local FlyoutButtons = 0
local ActionButton_HideOverlayGlow = ActionButton_HideOverlayGlow
local Noop = function() end
function TukuiActionBars:SkinButton()
......@@ -16,9 +14,9 @@ function TukuiActionBars:SkinButton()
local Count = _G[Name.."Count"]
local Flash = _G[Name.."Flash"]
local HotKey = _G[Name.."HotKey"]
local Border = _G[Name.."Border"]
local Border = _G[Name.."Border"]
local Btname = _G[Name.."Name"]
local Normal = _G[Name.."NormalTexture"]
local Normal = _G[Name.."NormalTexture"]
local BtnBG = _G[Name.."FloatingBG"]
local Font = T.GetFont(C["ActionBars"].Font)
......@@ -176,9 +174,9 @@ end
function TukuiActionBars:SkinPetButtons()
for i = 1, NUM_PET_ACTION_SLOTS do
local Name = "PetActionButton"..i
local Button = _G[Name]
local Icon = _G[Name.."Icon"]
local Normal = _G[Name.."NormalTexture2"] -- ?? 2
local Button = _G[Name]
local Icon = _G[Name.."Icon"]
local Normal = _G[Name.."NormalTexture2"] -- ?? 2
TukuiActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, true)
end
......@@ -187,9 +185,9 @@ end
function TukuiActionBars:SkinStanceButtons()
for i=1, NUM_STANCE_SLOTS do
local Name = "StanceButton"..i
local Button = _G[Name]
local Icon = _G[Name.."Icon"]
local Normal = _G[Name.."NormalTexture"]
local Button = _G[Name]
local Icon = _G[Name.."Icon"]
local Normal = _G[Name.."NormalTexture"]
TukuiActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, false)
end
......
......@@ -4,11 +4,9 @@ local TukuiAuras = T["Auras"]
local unpack = unpack
local GetTime = GetTime
local DebuffTypeColor = DebuffTypeColor
local NumberFontNormal = NumberFontNormal
local BuffFrame = BuffFrame
local TemporaryEnchantFrame = TemporaryEnchantFrame
local InterfaceOptionsFrameCategoriesButton12 = InterfaceOptionsFrameCategoriesButton12
local InterfaceOptionsFrameCategoriesButton12 = InterfaceOptionsFrameCategoriesButton12
TukuiAuras.Headers = {}
TukuiAuras.FlashTimer = 30
......@@ -129,7 +127,7 @@ function TukuiAuras:UpdateAura(index)
self.Duration:SetText("")
self:SetScript("OnUpdate", nil)
local min, max = self.Bar:GetMinMaxValues()
local min, max = self.Bar:GetMinMaxValues()
self.Bar:SetValue(max)
self.Bar:SetStatusBarColor(0, 0.8, 0)
......
......@@ -4,7 +4,6 @@ local _G = _G
local format = format
local Noop = function() end
local Toast = BNToastFrame
local ToastCloseButton = BNToastFrameCloseButton
local TukuiChat = T["Chat"]
local UIFrameFadeRemoveFrame = UIFrameFadeRemoveFrame
......@@ -52,7 +51,7 @@ end
function TukuiChat:SetChatFont()
local Font = T.GetFont(C["Chat"].ChatFont)
local Path, _, Flag = _G[Font]:GetFont()
local Path, _, Flag = _G[Font]:GetFont()
local CurrentFont, CurrentSize, CurrentFlag = self:GetFont()
if (CurrentFont == Path and CurrentFlag == Flag) then
......
......@@ -16,7 +16,7 @@ local Update = function(self)
local BaseMissChance, LevelDifference, Avoidance
if TargetLevel == -1 then
BaseMissChance = (5 - (3 * .2)) --Boss Value
BaseMissChance = (5 - (3 * .2)) --Boss Value
LevelDifference = 3
elseif TargetLevel > PlayerLevel then
BaseMissChance = (5 - ((TargetLevel - PlayerLevel) * .2)) --Mobs above player level
......
......@@ -71,7 +71,7 @@ function BGFrame:OnUpdate(t)
end
end
int = 2
int = 2
end
end
......
......@@ -98,7 +98,7 @@ local OnEnter = function(self)
AllUnavailable = false
local RolesString = MakeString(TankReward, HealerReward, DPSReward)
if (RolesString ~= " ") then
if (RolesString ~= " ") then
GameTooltip:AddDoubleLine(Name .. ":", RolesString, 1, 1, 1)
end
......
......@@ -25,8 +25,6 @@ local Update = function(self)
else
self.Text:SetFormattedText("%s %s", DataText.NameColor .. L.DataText.Armor .. "|r", DataText.ValueColor .. "100" .. "%|r")
end
Total = 0
end
local OnEnter = function(self)
......
......@@ -100,7 +100,7 @@ end
local function whisperClick(self, name, bnet)
menuFrame:Hide()
if bnet then
if bnet then
ChatFrame_SendBNetTell(name)
else
SetItemRef("player:"..name, format("|Hplayer:%1$s|h[%1$s]|h",name), "LeftButton")
......@@ -189,9 +189,9 @@ local OnMouseUp = function(self, btn)
return
end
if not BNConnected() then
return
end
if not BNConnected() then
return
end
GameTooltip:Hide()
......@@ -249,14 +249,14 @@ local OnEnter = function(self)
return
end
if not BNConnected() then
if not BNConnected() then
GameTooltip:SetOwner(self:GetTooltipAnchor())
GameTooltip:ClearLines()
GameTooltip:AddLine(BN_CHAT_DISCONNECTED)
GameTooltip:Show()
GameTooltip:Show()
return
end
return
end
local totalonline = BNTotalOnline
local zonec, classc, levelc, realmc, grouped
......@@ -265,17 +265,17 @@ local OnEnter = function(self)
GameTooltip:SetOwner(self:GetTooltipAnchor())
GameTooltip:ClearLines()
GameTooltip:AddDoubleLine(L.DataText.FriendsList, format(totalOnlineString, totalonline, #BNTable),tthead.r,tthead.g,tthead.b,tthead.r,tthead.g,tthead.b)
GameTooltip:AddLine(" ")
GameTooltip:AddLine(" ")
if BNTotalOnline > 0 then
local status = 0
for i = 1, #BNTable do
local BNName = RemoveTagNumber(BNTable[i][3])
local BNName = RemoveTagNumber(BNTable[i][3])
if BNTable[i][7] then
if BNTable[i][6] == wowString then
local isBattleTag = BNTable[i][17]
local isBattleTag = BNTable[i][17]
if (BNTable[i][8] == true) then
status = 1
......@@ -300,21 +300,21 @@ local OnEnter = function(self)
GameTooltip:AddDoubleLine(format(clientLevelNameString, BNName,levelc.r*255,levelc.g*255,levelc.b*255,BNTable[i][16],classc.r*255,classc.g*255,classc.b*255,BNTable[i][4],groupedTable[grouped], 255, 0, 0, statusTable[status]), "World of Warcraft")
if IsShiftKeyDown() then
if GetRealZoneText() == BNTable[i][15] then
zonec = activezone
else
zonec = inactivezone
end
if GetRealmName() == BNTable[i][11] then
realmc = activezone
else
realmc = inactivezone
end
GameTooltip:AddDoubleLine(" "..BNTable[i][15], BNTable[i][11], zonec.r, zonec.g, zonec.b, realmc.r, realmc.g, realmc.b)
end
if IsShiftKeyDown() then
if GetRealZoneText() == BNTable[i][15] then
zonec = activezone
else
zonec = inactivezone
end
if GetRealmName() == BNTable[i][11] then
realmc = activezone
else
realmc = inactivezone
end
GameTooltip:AddDoubleLine(" "..BNTable[i][15], BNTable[i][11], zonec.r, zonec.g, zonec.b, realmc.r, realmc.g, realmc.b)
end
end
if BNTable[i][6] == "BSAp" or BNTable[i][6] == "App" then
......@@ -363,11 +363,11 @@ local OnEnter = function(self)
end
local Update = function(self, event)
if not BNConnected() then
self.Text:SetFormattedText("%s %s%s", DataText.NameColor .. FRIENDS .. "|r", DataText.ValueColor, NOT_APPLICABLE)
if not BNConnected() then
self.Text:SetFormattedText("%s %s%s", DataText.NameColor .. FRIENDS .. "|r", DataText.ValueColor, NOT_APPLICABLE)
return
end
return
end
local BNTotal = BNGetNumFriends()
local Total = GetNumFriends()
......
......@@ -5,7 +5,6 @@ local format = format
local tthead, ttsubh, ttoff = {r = 0.4, g = 0.78, b = 1}, {r = 0.75, g = 0.9, b = 1}, {r = .3, g = 1, b = .3}
local activezone, inactivezone = {r = 0.3, g = 1.0, b = 0.3}, {r = 0.65, g = 0.65, b = 0.65}
local displayString = string.join("", "%s ", "%d")
local guildInfoString = "%s [%d]"
local guildInfoString2 = "%s %d/%d"
local guildMotDString = " %s |cffaaaaaa- |cffffffff%s"
......
local T, C, L = select(2, ...):unpack()
local DataText = T["DataTexts"]
local format = format
local Class = select(2, UnitClass("player"))
local Update = function(self)
local Value = GetCombatRating(18)
......
local T, C, L = select(2, ...):unpack()
local DataText = T["DataTexts"]
local format = format
local Update = function(self)
local Value = GetCombatRating(17)
......
......@@ -3,8 +3,6 @@ local T, C, L = select(2, ...):unpack()
--[[ This datatext is from: SanUI, by Pyrates ]] --
local DataText = T["DataTexts"]
local format = format
local Class = T.MyClass
local CurrentLootSpecName
local CurrentCharSpecName
......
local T, C, L = select(2, ...):unpack()
local DataText = T["DataTexts"]
local format = format
local Update = function(self)
local Value = GetCombatRating(26)
......
local T, C, L = select(2, ...):unpack()
local DataText = T["DataTexts"]
local format = format
local int = 1
local MemoryTable = {}
local KilobyteString, MegabyteString
......@@ -22,11 +21,10 @@ end
local UpdateMemory = function()
-- Update the memory usages of the addons
UpdateAddOnMemoryUsage()
local AddOnMem = 0
local TotalMem = 0
for i = 1, #MemoryTable do
AddOnMem = GetAddOnMemoryUsage(MemoryTable[i][1])
local AddOnMem = GetAddOnMemoryUsage(MemoryTable[i][1])
MemoryTable[i][3] = AddOnMem
TotalMem = TotalMem + AddOnMem
end
......
......@@ -92,10 +92,7 @@ function Bags:SkinBagButton()
self:SetNormalTexture("")
self:SetPushedTexture("")
self:SetBackdrop({
edgeFile = C.Medias.Blank,
edgeSize = T.Mult,
})
self:SetBackdrop({ edgeFile = C.Medias.Blank, edgeSize = T.Mult })
self:SetBackdropBorderColor(unpack(C.General.BorderColor))
self:StyleButton()
self.IconOverlay:SetAlpha(0)
......@@ -1003,8 +1000,8 @@ function Bags:Enable()
end)
Bag:HookScript("OnShow", function() -- Cinematic Bug with Bags open.
self.Bag:Show()
end)
self.Bag:Show()
end)
BankFrame:HookScript("OnHide", function()
if self.Reagent and self.Reagent:IsShown() then
......
......@@ -101,7 +101,7 @@ function Loot:SkinStandardLootFrame()
ItemText:SetAlpha(0)
else
local ItemText = select(7, LootFrame:GetRegions())
ItemText:SetAlpha(0)
LootFrame.NineSlice:StripTextures()
LootFrameInset.NineSlice:StripTextures()
......
......@@ -44,10 +44,8 @@ end
function Minimap:OnMove(enabled)
if enabled then
self:SetBackdropBorderColor(1, 0, 0)
Map:Hide()
else
self:SetBackdropBorderColor(unpack(C["General"].BorderColor))
Map:Show()
end
end
......
......@@ -58,7 +58,7 @@ function AFK:SetAFK(status)
elseif (self.IsAFK) then
self.Total = 0
HideUIPanel(WorldMapFrame) -- Avoid Lua errors on M keypress
HideUIPanel(WorldMapFrame) -- Avoid Lua errors on M keypress
UIFrameFadeOut(self.Frame, 0.5, self.Frame:GetAlpha(), 0)
UIParent:Show()
......
......@@ -4,7 +4,6 @@ local Miscellaneous = T["Miscellaneous"]
local Ghost = CreateFrame("Frame")
local Panels = T["Panels"]
local GhostFrame = GhostFrame
local Noop = function() end
Ghost.Color = {0.31, 0.45, 0.63}
......
......@@ -11,11 +11,11 @@ Align.BoxSize = 128
function Align:Show()
if not self.Frame then
Align:Create()
Align:Create()
elseif self.Frame.boxSize ~= Align.BoxSize then
self.Frame:Hide()
Align:Create()
else
self.Frame:Hide()
Align:Create()
else
self.Frame:Show()
end
end
......@@ -77,15 +77,15 @@ end
SLASH_TOGGLEGRID1 = "/showgrid"
SlashCmdList["TOGGLEGRID"] = function(arg)
if Align.Enable then
Align:Hide()
Align.Enable = false
else
Align.BoxSize = (math.ceil((tonumber(arg) or Align.BoxSize) / 32) * 32)
if Align.BoxSize > 256 then Align.BoxSize = 256 end
Align:Show()
Align.Enable = true
end
if Align.Enable then
Align:Hide()
Align.Enable = false
else
Align.BoxSize = (math.ceil((tonumber(arg) or Align.BoxSize) / 32) * 32)
if Align.BoxSize > 256 then Align.BoxSize = 256 end
Align:Show()
Align.Enable = true
end
end
Miscellaneous.Grid = Align
......@@ -518,7 +518,7 @@ function ObjectiveTracker:AddHooks()
hooksecurefunc("QuestPOI_GetButton", self.SkinPOI)
hooksecurefunc("QuestPOI_SelectButton", self.SelectPOI)
hooksecurefunc("BonusObjectiveTracker_AnimateReward", self.SkinRewards)
if T.WoWBuild < 28724 then
hooksecurefunc("WorldMap_SetupWorldQuestButton", self.SkinWorldQuestsPOI)
else
......@@ -531,7 +531,7 @@ end
function ObjectiveTracker:Enable()
OBJECTIVE_TRACKER_COLOR["Header"] = {r = CustomClassColor[1], g = CustomClassColor[2], b = CustomClassColor[3]}
OBJECTIVE_TRACKER_COLOR["HeaderHighlight"] = {r = CustomClassColor[1]*1.2, g = CustomClassColor[2]*1.2, b = CustomClassColor[3]*1.2}
OBJECTIVE_TRACKER_COLOR["HeaderHighlight"] = {r = CustomClassColor[1]*1.2, g = CustomClassColor[2]*1.2, b = CustomClassColor[3]*1.2}
OBJECTIVE_TRACKER_COLOR["Complete"] = { r = 0, g = 1, b = 0 }
OBJECTIVE_TRACKER_COLOR["Normal"] = { r = 1, g = 1, b = 1 }
......
......@@ -1071,15 +1071,15 @@ function TukuiUnitFrames:UpdateRaidDebuffIndicator()
local _, InstanceType = IsInInstance()
if (ORD.RegisteredList ~= "RD") and (InstanceType == "party" or InstanceType == "raid") then
ORD:ResetDebuffData()
ORD:ResetDebuffData()
ORD:RegisterDebuffs(TukuiUnitFrames.DebuffsTracking.RaidDebuffs.spells)
ORD.RegisteredList = "RD"
ORD.RegisteredList = "RD"
else
if ORD.RegisteredList ~= "CC" then
ORD:ResetDebuffData()
ORD:RegisterDebuffs(TukuiUnitFrames.DebuffsTracking.CCDebuffs.spells)
ORD.RegisteredList = "CC"
end
if ORD.RegisteredList ~= "CC" then
ORD:ResetDebuffData()
ORD:RegisterDebuffs(TukuiUnitFrames.DebuffsTracking.CCDebuffs.spells)
ORD.RegisteredList = "CC"
end
end
end
end
......@@ -1145,7 +1145,7 @@ function TukuiUnitFrames:Enable()
self:CreateUnits()
if (C.Raid.DebuffWatch) then
local ORD = Plugin.oUF_RaidDebuffs or oUF_RaidDebuffs
local ORD = Plugin.oUF_RaidDebuffs or oUF_RaidDebuffs
local RaidDebuffs = CreateFrame("Frame")
RaidDebuffs:RegisterEvent("PLAYER_ENTERING_WORLD")
......@@ -1157,16 +1157,16 @@ function TukuiUnitFrames:Enable()
ORD.MatchBySpellName = false
end
end
if T.WoWBuild >= 28724 then
-- Remove this 8.1 ugly bar
local PNPFrames = {
ClassNameplateManaBarFrame,
ClassNameplateManaBarFrame.Border,
ClassNameplateManaBarFrame.FeedbackFrame,
ClassNameplateManaBarFrame.FullPowerFrame,
ClassNameplateManaBarFrame.ManaCostPredictionBar,
ClassNameplateManaBarFrame.background,
ClassNameplateManaBarFrame,
ClassNameplateManaBarFrame.Border,
ClassNameplateManaBarFrame.FeedbackFrame,
ClassNameplateManaBarFrame.FullPowerFrame,
ClassNameplateManaBarFrame.ManaCostPredictionBar,
ClassNameplateManaBarFrame.background,
ClassNameplateManaBarFrame.Texture
}
......
......@@ -9,13 +9,13 @@ oUF.Tags.Events["Tukui:GetRaidNameColor"] = "RAID_ROSTER_UPDATE GROUP_ROSTER_UPD
oUF.Tags.Methods["Tukui:GetRaidNameColor"] = function(unit)
local Role = UnitGroupRolesAssigned(unit)
local R, G, B
if Role == "TANK" then
R, G, B = 0.4, 0.7, 1 -- Blue for tanks
elseif Role == "HEALER" then
R, G, B = 0, 1, 0 -- Green for healers
else
R, G, B = 1, 1, 1 -- White for DPS or unknown role
R, G, B = 1, 1, 1 -- White for DPS or unknown role
end
return string.format("|cff%02x%02x%02x", R * 255, G * 255, B * 255)
......@@ -41,7 +41,7 @@ oUF.Tags.Methods["Tukui:GetNameHostilityColor"] = function(unit)
if (Reaction) then
local c = T.Colors.reaction[Reaction]
return string.format("|cff%02x%02x%02x", c[1] * 255, c[2] * 255, c[3] * 255)
else
return string.format("|cff%02x%02x%02x", 1, 1, 1)
......@@ -57,7 +57,7 @@ oUF.Tags.Methods["Tukui:DiffColor"] = function(unit)
r, g, b = 0.69, 0.31, 0.31
else
local DiffColor = UnitLevel(unit) - UnitLevel("player")
if (DiffColor >= 5) then
r, g, b = 0.69, 0.31, 0.31
elseif (DiffColor >= 3) then
......
This diff is collapsed.
......@@ -19,30 +19,30 @@ function T17:MoveXPBars()
local Experience = Misc.Experience
local Reputation = Misc.Reputation
if Experience.NumBars then
for i = 1, Experience.NumBars do
local Bar = Experience["XPBar"..i]
local RestedBar = Experience["RestedBar"..i]
Bar:ClearAllPoints()
Bar:SetOrientation("Vertical")
Bar:Size(8, 100)
Bar:SetReverseFill(false)
Bar:Point("TOP", i == 1 and Tukui_T17_LeftVerticalLine or Tukui_T17_RightVerticalLine, "TOP", 0, i == 1 and -Panels.DataTextLeft:GetHeight() / 2 or -Panels.DataTextRight:GetHeight() / 2)
RestedBar:SetOrientation("Vertical")
RestedBar:SetReverseFill(false)
end
end
if Reputation.NumBars then
for i = 1, Reputation.NumBars do
local Bar = Reputation["RepBar"..i]
Bar:SetOrientation("Vertical")
Bar:SetReverseFill(false)
end
end
if Experience.NumBars then