Skip to content

Commit

Permalink
Tweaked LDB feed
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jul 19, 2018
1 parent ff0a3bd commit b24623d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ local GetCVar = _G.GetCVar
local GetMouseFocus = _G.GetMouseFocus
local GetDate = _G.C_Calendar.GetDate
local UnitName = _G.UnitName
local UnitLevel = _G.UnitLevel
local UnitFactionGroup = _G.UnitFactionGroup
local UnitHonor = _G.UnitHonor
local UnitHonorMax = _G.UnitHonorMax
Expand Down Expand Up @@ -244,7 +245,6 @@ function RE:OnEvent(_, event, ...)
})
function RE.LDB:OnEnter()
local brawlInfo = GetBrawlInfo()
local current, max = RE:GetConquestPoints()
RE.Tooltip = QTIP:Acquire("REFlexTooltipLDB", 2, "LEFT", "LEFT")
RE.Tooltip:SmartAnchorTo(self)
if ElvUI then
Expand All @@ -270,10 +270,13 @@ function RE:OnEvent(_, event, ...)
RE.Tooltip:SetCell(10, 1, "|cFFFFD100".._G.HONOR.."|r", RE.Tooltip:GetHeaderFont(), "CENTER", 2)
RE.Tooltip:AddLine("", "")
RE.Tooltip:SetCell(11, 1, UnitHonor("player").." / "..UnitHonorMax("player"), "CENTER", 2)
RE.Tooltip:AddHeader("", "")
RE.Tooltip:SetCell(12, 1, "|cFFFFD100".._G.PVP_CONQUEST.."|r", RE.Tooltip:GetHeaderFont(), "CENTER", 2)
RE.Tooltip:AddLine("", "")
RE.Tooltip:SetCell(13, 1, current.." / "..max, "CENTER", 2)
if UnitLevel("player") == _G.MAX_PLAYER_LEVEL and GetCurrentArenaSeason() > 0 then
local current, max = RE:GetConquestPoints()
RE.Tooltip:AddHeader("", "")
RE.Tooltip:SetCell(12, 1, "|cFFFFD100".._G.PVP_CONQUEST.."|r", RE.Tooltip:GetHeaderFont(), "CENTER", 2)
RE.Tooltip:AddLine("", "")
RE.Tooltip:SetCell(13, 1, current.." / "..max, "CENTER", 2)
end
RE.Tooltip:Show()
end
function RE.LDB:OnLeave()
Expand Down

0 comments on commit b24623d

Please sign in to comment.