Commit d673748b authored by Aenaos's avatar Aenaos

Merged the latest 'tukui'.

parents f209b58c 47c445d8
......@@ -14,7 +14,7 @@ C["General"] = {
["Scaling"] = {
["Options"] = {
["Pixel Perfection"] = "Pixel Perfection",
["Smallest"] = "Smallest",
["Smallest"] = "Smallest",
["Small"] = "Small",
["Medium"] = "Medium",
["Large"] = "Large",
......@@ -26,7 +26,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
......
......@@ -35,13 +35,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")
......
This diff is collapsed.
......@@ -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
......@@ -251,7 +249,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)
......@@ -102,7 +100,7 @@ function TukuiActionBars:SkinButton()
end
if (Btname and Normal and C.ActionBars.Macro) then
if (Action and Btname and Normal and C.ActionBars.Macro) then
local String = GetActionText(Action)
if String then
......@@ -175,9 +173,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
......@@ -186,9 +184,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
local LootFrameID = 8;
......@@ -53,7 +52,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,11 @@ end
local function whisperClick(self, name, bnet)
menuFrame:Hide()
ChatFrame_SendSmartTell(name)
if bnet then
ChatFrame_SendBNetTell(name)
else
SetItemRef("player:"..name, format("|Hplayer:%1$s|h[%1$s]|h",name), "LeftButton")
end
end
local function BuildBNTable(total)
......@@ -109,7 +113,7 @@ local function BuildBNTable(total)
for i = 1, total do
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
if (toonID or presenceID) then
local hasFocus, _, _, realmName, realmID, faction, race, class, guild, zoneName, level, gameText = BNGetGameAccountInfo(toonID or presenceID)
......@@ -134,7 +138,7 @@ local function UpdateBNTable(total)
for i = 1, #BNTable do
-- get guild roster information
local presenceID, presenceName, battleTag, isBattleTagPresence, toonName, toonID, client, isOnline, lastOnline, isAFK, isDND, messageText, noteText, isRIDFriend, messageTime, canSoR = BNGetFriendInfo(i)
if (toonID or presenceID) then
local hasFocus, _, _, realmName, realmID, faction, race, class, guild, zoneName, level, gameText = BNGetGameAccountInfo(toonID or presenceID)
......@@ -185,9 +189,9 @@ local OnMouseUp = function(self, btn)
return
end
if not BNConnected() then
return
end
if not BNConnected() then
return
end
GameTooltip:Hide()
......@@ -245,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
......@@ -261,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
......@@ -296,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
......@@ -359,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)
......@@ -118,6 +115,7 @@ function Bags:HideBlizzard()
BankPortraitTexture:Hide()
BagHelpBox:Kill()
BankFrame:HookScript('OnShow', function(self) self:EnableMouse(false) end)
BankFrame.NineSlice:SetAlpha(0)
for i = 1, 12 do
local CloseButton = _G["ContainerFrame"..i.."CloseButton"]
......@@ -376,10 +374,13 @@ function Bags:CreateContainer(storagetype, ...)
Button:SetFrameLevel(2)
Button:SetNormalTexture("")
Button:SetPushedTexture("")
Button:SetCheckedTexture("")
Button:SetTemplate()
Button.IconBorder:SetAlpha(0)
Button:SkinButton()
if T.WoWBuild < 29664 then
Button:SetCheckedTexture("")
end
if LastButtonBag then
Button:SetPoint("LEFT", LastButtonBag, "RIGHT", ButtonSpacing, 0)
......@@ -476,7 +477,7 @@ function Bags:CreateContainer(storagetype, ...)
for i = 1, 7 do
local Bag = BankSlotsFrame["Bag"..i]
if T.WoWBuild < 28724 then
Bag.HighlightFrame:Kill() -- Bugged Texture on Bank Bag Slot
end
......@@ -988,8 +989,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
......@@ -1589,15 +1589,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
......@@ -1663,7 +1663,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")
......@@ -1675,16 +1675,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.
......@@ -367,7 +367,7 @@ function TukuiUnitFrames:Player()
local Threat = Health:CreateTexture(nil, "OVERLAY")
Threat.Override = TukuiUnitFrames.UpdateThreat
if (C.UnitFrames.TotemBar) and (Class == "SHAMAN" or Class == "MONK") then
if (C.UnitFrames.TotemBar) then
local Bar = CreateFrame("Frame", "TukuiTotemBar", self)
Bar:SetFrameStrata(self:GetFrameStrata())
Bar:Point("TOP