Commit 014653c8 authored by Simpy's avatar Simpy 🐹

11.32

parents 8a32d935 826a4e67
......@@ -207,17 +207,31 @@ do
end
do
E.MaxNazjatarBodyguardRank = 30
function E:GetNazjatarBodyguardXP(widgetID)
function E:GetWidgetInfoBase(widgetID, overrideProc)
local widget = widgetID and C_UIWidgetManager_GetStatusBarWidgetVisualizationInfo(widgetID)
if not widget then return end
local rank = tonumber(strmatch(widget.overrideBarText, '%d+'))
if not rank then return end
local extra
if ( overrideProc ) then
extra = overrideProc(widget.overrideBarText)
end
local cur = widget.barValue - widget.barMin
local toNext = widget.barMax - widget.barMin
local total = widget.barValue
return cur, toNext, total, extra
end
E.MaxNazjatarBodyguardRank = 30
local function parseRank(text)
return tonumber(strmatch(text, "%d+"))
end
function E:GetNazjatarBodyguardXP(widgetID)
local cur, toNext, total, rank =E:GetWidgetInfoBase(widgetID, parseRank)
if not rank then return end
local isMax = rank == E.MaxNazjatarBodyguardRank
return rank, cur, toNext, total, isMax
......
......@@ -267,7 +267,7 @@ do
return
end
local helloKittyLeft = CreateFrame('Frame', 'HelloKittyLeft', _G.UIParent)
helloKittyLeft:SetSize(120, 128)
helloKittyLeft:Size(120, 128)
helloKittyLeft:SetMovable(true)
helloKittyLeft:EnableMouse(true)
helloKittyLeft:RegisterForDrag('LeftButton')
......@@ -284,7 +284,7 @@ do
helloKittyLeft:SetScript('OnUpdate', OnUpdate)
local helloKittyRight = CreateFrame('Frame', 'HelloKittyRight', _G.UIParent)
helloKittyRight:SetSize(120, 128)
helloKittyRight:Size(120, 128)
helloKittyRight:SetMovable(true)
helloKittyRight:EnableMouse(true)
helloKittyRight:RegisterForDrag('LeftButton')
......
......@@ -134,8 +134,8 @@ function E:Grid_Create()
local hStep = hStepheight / E.db.gridSize
grid.boxSize = E.db.gridSize
grid:SetPoint('CENTER', E.UIParent)
grid:SetSize(width, height)
grid:Point('CENTER', E.UIParent)
grid:Size(width, height)
grid:Show()
for i = 0, E.db.gridSize do
......@@ -493,37 +493,29 @@ function E:CreateMoverPopup()
local upButton = CreateFrame('Button', nudgeFrame:GetName()..'UpButton', nudgeFrame)
upButton:Point('BOTTOMRIGHT', nudgeFrame, 'BOTTOM', -6, 4)
upButton:SetScript('OnClick', function()
E:NudgeMover(nil, 1)
end)
upButton:SetScript('OnClick', function() E:NudgeMover(nil, 1) end)
S:HandleNextPrevButton(upButton)
S:HandleButton(upButton)
upButton:SetSize(22, 22)
upButton:Size(22)
local downButton = CreateFrame('Button', nudgeFrame:GetName()..'DownButton', nudgeFrame)
downButton:Point('BOTTOMLEFT', nudgeFrame, 'BOTTOM', 6, 4)
downButton:SetScript('OnClick', function()
E:NudgeMover(nil, -1)
end)
downButton:SetScript('OnClick', function() E:NudgeMover(nil, -1) end)
S:HandleNextPrevButton(downButton)
S:HandleButton(downButton)
downButton:SetSize(22, 22)
downButton:Size(22)
local leftButton = CreateFrame('Button', nudgeFrame:GetName()..'LeftButton', nudgeFrame)
leftButton:Point('RIGHT', upButton, 'LEFT', -6, 0)
leftButton:SetScript('OnClick', function()
E:NudgeMover(-1)
end)
leftButton:SetScript('OnClick', function() E:NudgeMover(-1) end)
S:HandleNextPrevButton(leftButton)
S:HandleButton(leftButton)
leftButton:SetSize(22, 22)
leftButton:Size(22)
local rightButton = CreateFrame('Button', nudgeFrame:GetName()..'RightButton', nudgeFrame)
rightButton:Point('LEFT', downButton, 'RIGHT', 6, 0)
rightButton:SetScript('OnClick', function()
E:NudgeMover(1)
end)
rightButton:SetScript('OnClick', function() E:NudgeMover(1) end)
S:HandleNextPrevButton(rightButton)
S:HandleButton(rightButton)
rightButton:SetSize(22, 22)
rightButton:Size(22)
end
......@@ -1282,8 +1282,8 @@ local function buffwatchConvert(spell)
local newSize = spell.sizeOverride
spell.size = (newSize > 8 and newSize) or 8
spell.sizeOverride = nil
elseif not spell.size or spell.size < 8 then
spell.size = 8
elseif not spell.size or spell.size < 6 then
spell.size = 6
end
if spell.styleOverride then
......
......@@ -821,16 +821,16 @@ function E:Install()
f.Slider:Height(15)
f.Slider:Width(400)
f.Slider:SetHitRectInsets(0, 0, -10, 0)
f.Slider:SetPoint('CENTER', 0, 45)
f.Slider:Point('CENTER', 0, 45)
S:HandleSliderFrame(f.Slider)
f.Slider:Hide()
f.Slider.Min = f.Slider:CreateFontString(nil, 'ARTWORK', 'GameFontHighlightSmall')
f.Slider.Min:SetPoint('RIGHT', f.Slider, 'LEFT', -3, 0)
f.Slider.Min:Point('RIGHT', f.Slider, 'LEFT', -3, 0)
f.Slider.Max = f.Slider:CreateFontString(nil, 'ARTWORK', 'GameFontHighlightSmall')
f.Slider.Max:SetPoint('LEFT', f.Slider, 'RIGHT', 3, 0)
f.Slider.Max:Point('LEFT', f.Slider, 'RIGHT', 3, 0)
f.Slider.Cur = f.Slider:CreateFontString(nil, 'ARTWORK', 'GameFontHighlightSmall')
f.Slider.Cur:SetPoint('BOTTOM', f.Slider, 'TOP', 0, 10)
f.Slider.Cur:Point('BOTTOM', f.Slider, 'TOP', 0, 10)
f.Slider.Cur:FontTemplate(nil, 30, nil)
f.Option1 = CreateFrame('Button', 'InstallOption1Button', f, 'UIPanelButtonTemplate')
......
......@@ -176,7 +176,7 @@ function PI:CreateStepComplete()
imsg.bg = imsg:CreateTexture(nil, 'BACKGROUND')
imsg.bg:SetTexture([[Interface\LevelUp\LevelUpTex]])
imsg.bg:SetPoint('BOTTOM')
imsg.bg:Point('BOTTOM')
imsg.bg:Size(326, 103)
imsg.bg:SetTexCoord(0.00195313, 0.63867188, 0.03710938, 0.23828125)
imsg.bg:SetVertexColor(1, 1, 1, 0.6)
......@@ -184,14 +184,14 @@ function PI:CreateStepComplete()
imsg.lineTop = imsg:CreateTexture(nil, 'BACKGROUND')
imsg.lineTop:SetDrawLayer('BACKGROUND', 2)
imsg.lineTop:SetTexture([[Interface\LevelUp\LevelUpTex]])
imsg.lineTop:SetPoint('TOP')
imsg.lineTop:Point('TOP')
imsg.lineTop:Size(418, 7)
imsg.lineTop:SetTexCoord(0.00195313, 0.81835938, 0.01953125, 0.03320313)
imsg.lineBottom = imsg:CreateTexture(nil, 'BACKGROUND')
imsg.lineBottom:SetDrawLayer('BACKGROUND', 2)
imsg.lineBottom:SetTexture([[Interface\LevelUp\LevelUpTex]])
imsg.lineBottom:SetPoint('BOTTOM')
imsg.lineBottom:Point('BOTTOM')
imsg.lineBottom:Size(418, 7)
imsg.lineBottom:SetTexCoord(0.00195313, 0.81835938, 0.01953125, 0.03320313)
......@@ -206,7 +206,7 @@ function PI:CreateFrame()
f.SetPage = SetPage
f:Size(550, 400)
f:SetTemplate('Transparent')
f:SetPoint('CENTER')
f:Point('CENTER')
f:SetFrameStrata('TOOLTIP')
f:SetMovable(true)
......@@ -249,7 +249,7 @@ function PI:CreateFrame()
f.Status.text = f.Status:CreateFontString(nil, 'OVERLAY')
f.Status.text:FontTemplate()
f.Status.text:SetPoint('CENTER')
f.Status.text:Point('CENTER')
f.Option1 = CreateFrame('Button', 'PluginInstallOption1Button', f, 'UIPanelButtonTemplate')
f.Option1:Size(160, 30)
......@@ -318,13 +318,13 @@ function PI:CreateFrame()
f.Desc4:Width(f:GetWidth() - 40)
local close = CreateFrame('Button', 'PluginInstallCloseButton', f, 'UIPanelCloseButton')
close:SetPoint('TOPRIGHT', f, 'TOPRIGHT')
close:Point('TOPRIGHT', f, 'TOPRIGHT')
close:SetScript('OnClick', function() f:Hide() end)
S:HandleCloseButton(close)
f.pending = CreateFrame('Frame', 'PluginInstallPendingButton', f)
f.pending:Size(20, 20)
f.pending:SetPoint('TOPLEFT', f, 'TOPLEFT', 8, -8)
f.pending:Point('TOPLEFT', f, 'TOPLEFT', 8, -8)
f.pending.tex = f.pending:CreateTexture(nil, 'OVERLAY')
f.pending.tex:Point('TOPLEFT', f.pending, 'TOPLEFT', 2, -2)
f.pending.tex:Point('BOTTOMRIGHT', f.pending, 'BOTTOMRIGHT', -2, 2)
......@@ -347,11 +347,11 @@ function PI:CreateFrame()
f.side = CreateFrame('Frame', 'PluginInstallTitleFrame', f)
f.side:SetTemplate('Transparent')
f.side:SetPoint('TOPLEFT', f, 'TOPRIGHT', E.PixelMode and 1 or 3, 0)
f.side:SetPoint('BOTTOMLEFT', f, 'BOTTOMRIGHT', E.PixelMode and 1 or 3, 0)
f.side:Point('TOPLEFT', f, 'TOPRIGHT', E.PixelMode and 1 or 3, 0)
f.side:Point('BOTTOMLEFT', f, 'BOTTOMRIGHT', E.PixelMode and 1 or 3, 0)
f.side:Width(140)
f.side.text = f.side:CreateFontString(nil, 'OVERLAY')
f.side.text:SetPoint('TOP', f.side, 'TOP', 0, -4)
f.side.text:Point('TOP', f.side, 'TOP', 0, -4)
f.side.text:FontTemplate(E.media.normFont, 18, 'OUTLINE')
f.side.text:SetText(L["Steps"])
f.side.Lines = {} --Table to keep shown lines
......@@ -359,14 +359,14 @@ function PI:CreateFrame()
for i = 1, 18 do
local button = CreateFrame('Button', nil, f)
if i == 1 then
button:SetPoint('TOP', f.side.text, 'BOTTOM', 0, -6)
button:Point('TOP', f.side.text, 'BOTTOM', 0, -6)
else
button:SetPoint('TOP', f.side.Lines[i - 1], 'BOTTOM')
button:Point('TOP', f.side.Lines[i - 1], 'BOTTOM')
end
button:SetSize(130, BUTTON_HEIGHT)
button:Size(130, BUTTON_HEIGHT)
button.text = button:CreateFontString(nil, 'OVERLAY')
button.text:SetPoint('TOPLEFT', button, 'TOPLEFT', 2, -2)
button.text:SetPoint('BOTTOMRIGHT', button, 'BOTTOMRIGHT', -2, 2)
button.text:Point('TOPLEFT', button, 'TOPLEFT', 2, -2)
button.text:Point('BOTTOMRIGHT', button, 'BOTTOMRIGHT', -2, 2)
button.text:FontTemplate(E.media.normFont, 14, 'OUTLINE')
button:SetScript('OnClick', function() if i <= f.MaxPage then SetPage(i, f.CurrentPage) end end)
button.text:SetText('')
......@@ -434,9 +434,9 @@ function PI:RunInstall()
f.Pages = db.Pages
PluginInstallFrame:Show()
f:SetPoint('CENTER')
f:Point('CENTER')
if db.StepTitles and #db.StepTitles == f.MaxPage then
f:SetPoint('CENTER', E.UIParent, 'CENTER', -((db.StepTitleWidth or 140)/2), 0)
f:Point('CENTER', E.UIParent, 'CENTER', -((db.StepTitleWidth or 140)/2), 0)
f.side:SetWidth(db.StepTitleWidth or 140)
f.side:Show()
......
......@@ -1146,7 +1146,7 @@ function E:StaticPopup_CreateSecureButton(popup, button, text, macro)
btn:SetAttribute('type', 'macro')
btn:SetAttribute('macrotext', macro)
btn:SetAllPoints(button)
btn:SetSize(button:GetSize())
btn:Size(button:GetSize())
btn:HookScript('OnEnter', SecureOnEnter)
btn:HookScript('OnLeave', SecureOnLeave)
Skins:HandleButton(btn)
......@@ -1176,7 +1176,7 @@ end
function E:StaticPopup_PositionSecureButton(popup, popupButton, secureButton)
secureButton:SetParent(popup)
secureButton:SetAllPoints(popupButton)
secureButton:SetSize(popupButton:GetSize())
secureButton:Size(popupButton:GetSize())
end
function E:StaticPopup_SetSecureButton(which, btn)
......
......@@ -63,7 +63,7 @@ local UnitReaction = UnitReaction
local UnitStagger = UnitStagger
local CreateAtlasMarkup = CreateAtlasMarkup
local ALTERNATE_POWER_INDEX = ALTERNATE_POWER_INDEX
local ALTERNATE_POWER_INDEX = Enum.PowerType.Alternate or 10
local SPEC_MONK_BREWMASTER = SPEC_MONK_BREWMASTER
local SPEC_PALADIN_RETRIBUTION = SPEC_PALADIN_RETRIBUTION
local UNITNAME_SUMMON_TITLE17 = UNITNAME_SUMMON_TITLE17
......@@ -86,6 +86,7 @@ local SPELL_POWER_SOUL_SHARDS = Enum.PowerType.SoulShards
ElvUF.Tags.SharedEvents.PLAYER_TALENT_UPDATE = true
ElvUF.Tags.SharedEvents.QUEST_LOG_UPDATE = true
ElvUF.Tags.SharedEvents.INSTANCE_ENCOUNTER_ENGAGE_UNIT = true
------------------------------------------------------------------------
-- Tags
......@@ -172,7 +173,7 @@ local function GetClassPower(class)
return min, max, r, g, b
end
ElvUF.Tags.Events['altpowercolor'] = "UNIT_POWER_UPDATE UNIT_MAXPOWER"
ElvUF.Tags.Events['altpowercolor'] = "UNIT_POWER_UPDATE UNIT_POWER_BAR_SHOW UNIT_POWER_BAR_HIDE"
ElvUF.Tags.Methods['altpowercolor'] = function(u)
local cur = UnitPower(u, ALTERNATE_POWER_INDEX)
if cur > 0 then
......@@ -219,7 +220,7 @@ ElvUF.Tags.Methods['healthcolor'] = function(unit)
end
end
ElvUF.Tags.Events['name:abbrev'] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Events['name:abbrev'] = 'UNIT_NAME_UPDATE INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods['name:abbrev'] = function(unit)
local name = UnitName(unit)
......@@ -232,7 +233,7 @@ end
ElvUF.Tags.Events['health:deficit-percent:nostatus'] = 'UNIT_HEALTH_FREQUENT UNIT_MAXHEALTH'
ElvUF.Tags.Methods['health:deficit-percent:nostatus'] = function(unit)
local min, max = E:UnitHealthValues(unit)
local min, max = UnitHealth(unit), UnitHealthMax(unit)
local deficit = (min / max) - 1
if deficit == 0 then
return ''
......@@ -291,7 +292,7 @@ for textFormat in pairs(E.GetFormattedTextStyles) do
end
end
ElvUF.Tags.Events[format('altpower:%s', tagTextFormat)] = "UNIT_POWER_UPDATE UNIT_MAXPOWER"
ElvUF.Tags.Events[format('altpower:%s', tagTextFormat)] = "UNIT_POWER_UPDATE UNIT_POWER_BAR_SHOW UNIT_POWER_BAR_HIDE"
ElvUF.Tags.Methods[format('altpower:%s', tagTextFormat)] = function(u)
local cur = UnitPower(u, ALTERNATE_POWER_INDEX)
if cur > 0 then
......@@ -317,7 +318,7 @@ for textFormat, length in pairs({veryshort = 5, short = 10, medium = 15, long =
end
end
ElvUF.Tags.Events[format('name:abbrev:%s', textFormat)] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Events[format('name:abbrev:%s', textFormat)] = 'UNIT_NAME_UPDATE INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods[format('name:abbrev:%s', textFormat)] = function(unit)
local name = UnitName(unit)
......@@ -328,13 +329,13 @@ for textFormat, length in pairs({veryshort = 5, short = 10, medium = 15, long =
return name ~= nil and E:ShortenString(name, length) or ''
end
ElvUF.Tags.Events[format('name:%s', textFormat)] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Events[format('name:%s', textFormat)] = 'UNIT_NAME_UPDATE INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods[format('name:%s', textFormat)] = function(unit)
local name = UnitName(unit)
return name ~= nil and E:ShortenString(name, length) or nil
end
ElvUF.Tags.Events[format('name:%s:status', textFormat)] = 'UNIT_NAME_UPDATE UNIT_CONNECTION PLAYER_FLAGS_CHANGED UNIT_HEALTH_FREQUENT'
ElvUF.Tags.Events[format('name:%s:status', textFormat)] = 'UNIT_NAME_UPDATE UNIT_CONNECTION PLAYER_FLAGS_CHANGED UNIT_HEALTH_FREQUENT INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods[format('name:%s:status', textFormat)] = function(unit)
local status = UnitIsDead(unit) and L["Dead"] or UnitIsGhost(unit) and L["Ghost"] or not UnitIsConnected(unit) and L["Offline"]
local name = UnitName(unit)
......@@ -345,7 +346,7 @@ for textFormat, length in pairs({veryshort = 5, short = 10, medium = 15, long =
end
end
ElvUF.Tags.Events[format('name:%s:translit', textFormat)] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Events[format('name:%s:translit', textFormat)] = 'UNIT_NAME_UPDATE INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods[format('name:%s:translit', textFormat)] = function(unit)
local name = Translit:Transliterate(UnitName(unit), translitMark)
return name ~= nil and E:ShortenString(name, length) or nil
......@@ -458,7 +459,7 @@ ElvUF.Tags.Methods['difficultycolor'] = function(unit)
return Hex(r, g, b)
end
ElvUF.Tags.Events['namecolor'] = 'UNIT_NAME_UPDATE UNIT_FACTION'
ElvUF.Tags.Events['namecolor'] = 'UNIT_NAME_UPDATE UNIT_FACTION INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods['namecolor'] = function(unit)
local unitReaction = UnitReaction(unit, 'player')
local unitPlayer = UnitIsPlayer(unit)
......@@ -964,7 +965,7 @@ ElvUF.Tags.Methods['specialization'] = function(unit)
end
end
ElvUF.Tags.Events['name:title'] = 'UNIT_NAME_UPDATE'
ElvUF.Tags.Events['name:title'] = 'UNIT_NAME_UPDATE INSTANCE_ENCOUNTER_ENGAGE_UNIT'
ElvUF.Tags.Methods['name:title'] = function(unit)
if (UnitIsPlayer(unit)) then
return UnitPVPName(unit)
......
......@@ -41,22 +41,22 @@ function E:SetBackdrop(frame, giveBorder, bgFile, edgeSize, insetLeft, insetRigh
if not (giveBorder or bgFile) then return end
if insetLeft or insetRight or insetTop or insetBottom then
frame.pixelBorders.CENTER:SetPoint('TOPLEFT', frame, 'TOPLEFT', -insetLeft or 0, insetTop or 0)
frame.pixelBorders.CENTER:SetPoint('BOTTOMRIGHT', frame, 'BOTTOMRIGHT', insetRight or 0, -insetBottom or 0)
frame.pixelBorders.CENTER:Point('TOPLEFT', frame, 'TOPLEFT', -insetLeft or 0, insetTop or 0)
frame.pixelBorders.CENTER:Point('BOTTOMRIGHT', frame, 'BOTTOMRIGHT', insetRight or 0, -insetBottom or 0)
else
frame.pixelBorders.CENTER:SetPoint('TOPLEFT', frame)
frame.pixelBorders.CENTER:SetPoint('BOTTOMRIGHT', frame)
frame.pixelBorders.CENTER:Point('TOPLEFT', frame)
frame.pixelBorders.CENTER:Point('BOTTOMRIGHT', frame)
end
frame.pixelBorders.TOPLEFT:SetSize(edgeSize, edgeSize)
frame.pixelBorders.TOPRIGHT:SetSize(edgeSize, edgeSize)
frame.pixelBorders.BOTTOMLEFT:SetSize(edgeSize, edgeSize)
frame.pixelBorders.BOTTOMRIGHT:SetSize(edgeSize, edgeSize)
frame.pixelBorders.TOPLEFT:Size(edgeSize)
frame.pixelBorders.TOPRIGHT:Size(edgeSize)
frame.pixelBorders.BOTTOMLEFT:Size(edgeSize)
frame.pixelBorders.BOTTOMRIGHT:Size(edgeSize)
frame.pixelBorders.TOP:SetHeight(edgeSize)
frame.pixelBorders.BOTTOM:SetHeight(edgeSize)
frame.pixelBorders.LEFT:SetWidth(edgeSize)
frame.pixelBorders.RIGHT:SetWidth(edgeSize)
frame.pixelBorders.TOP:Height(edgeSize)
frame.pixelBorders.BOTTOM:Height(edgeSize)
frame.pixelBorders.LEFT:Width(edgeSize)
frame.pixelBorders.RIGHT:Width(edgeSize)
end
function E:GetBackdropColor(frame)
......
## Interface: 80300
## Author: Elv
## Version: 11.312
## Version: 11.32
## Title: |cfffe7b2cElvUI|r
## Notes: User Interface replacement AddOn for World of Warcraft.
## SavedVariables: ElvDB, ElvPrivateDB
......
......@@ -456,7 +456,7 @@ function LO:CreateMinimapPanels()
local f = CreateFrame('Frame', 'BottomMiniPanel', Minimap)
f:Hide()
f:SetPoint('BOTTOM', Minimap, 'BOTTOM')
f:Point('BOTTOM', Minimap, 'BOTTOM')
f:Width(120)
f:Height(20)
f:SetFrameLevel(Minimap:GetFrameLevel() + 5)
......@@ -464,7 +464,7 @@ function LO:CreateMinimapPanels()
f = CreateFrame('Frame', 'TopMiniPanel', Minimap)
f:Hide()
f:SetPoint('TOP', Minimap, 'TOP')
f:Point('TOP', Minimap, 'TOP')
f:Width(120)
f:Height(20)
f:SetFrameLevel(Minimap:GetFrameLevel() + 5)
......@@ -472,7 +472,7 @@ function LO:CreateMinimapPanels()
f = CreateFrame('Frame', 'TopLeftMiniPanel', Minimap)
f:Hide()
f:SetPoint('TOPLEFT', Minimap, 'TOPLEFT')
f:Point('TOPLEFT', Minimap, 'TOPLEFT')
f:Width(75)
f:Height(20)
f:SetFrameLevel(Minimap:GetFrameLevel() + 5)
......@@ -480,7 +480,7 @@ function LO:CreateMinimapPanels()
f = CreateFrame('Frame', 'TopRightMiniPanel', Minimap)
f:Hide()
f:SetPoint('TOPRIGHT', Minimap, 'TOPRIGHT')
f:Point('TOPRIGHT', Minimap, 'TOPRIGHT')
f:Width(75)
f:Height(20)
f:SetFrameLevel(Minimap:GetFrameLevel() + 5)
......@@ -488,7 +488,7 @@ function LO:CreateMinimapPanels()
f = CreateFrame('Frame', 'BottomLeftMiniPanel', Minimap)
f:Hide()
f:SetPoint('BOTTOMLEFT', Minimap, 'BOTTOMLEFT')
f:Point('BOTTOMLEFT', Minimap, 'BOTTOMLEFT')
f:Width(75)
f:Height(20)
f:SetFrameLevel(Minimap:GetFrameLevel() + 5)
......@@ -496,7 +496,7 @@ function LO:CreateMinimapPanels()
f = CreateFrame('Frame', 'BottomRightMiniPanel', Minimap)
f:Hide()
f:SetPoint('BOTTOMRIGHT', Minimap, 'BOTTOMRIGHT')
f:Point('BOTTOMRIGHT', Minimap, 'BOTTOMRIGHT')
f:Width(75)
f:Height(20)
f:SetFrameLevel(Minimap:GetFrameLevel() + 5)
......
local MAJOR, MINOR = "LibElvUIPlugin-1.0", 31
local MAJOR, MINOR = "LibElvUIPlugin-1.0", 32
local lib = _G.LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
-- GLOBALS: ElvUI
......@@ -201,6 +201,7 @@ function lib:GetPluginOptions()
}
}
}
E.Options.args.Plugin_Separate.hidden = nil
end
do -- this will handle `8.1.5.0015` into `8.150015` etc
......
......@@ -66,10 +66,9 @@ local function Update(self, event, unit, powerType)
local cur, max
local barInfo = GetUnitPowerBarInfo(unit);
element.barType = barInfo.barType
element.powerName, element.powerTooltip = GetUnitPowerBarStrings(unit);
if(barInfo) then
element.barType = barInfo.barType
element.powerName, element.powerTooltip = GetUnitPowerBarStrings(unit);
cur = UnitPower(unit, ALTERNATE_POWER_INDEX)
max = UnitPowerMax(unit, ALTERNATE_POWER_INDEX)
element:SetMinMaxValues(barInfo.minPower, max)
......@@ -86,7 +85,7 @@ local function Update(self, event, unit, powerType)
* max - the maximum value of the unit's alternative power (number)
--]]
if(element.PostUpdate) then
return element:PostUpdate(unit, cur, barInfo.minPower or 0, max)
return element:PostUpdate(unit, cur, barInfo and barInfo.minPower or 0, max)
end
end
......@@ -149,6 +148,7 @@ local function Enable(self, unit)
if(element:IsObjectType('StatusBar') and not element:GetStatusBarTexture()) then
element:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
element:SetStatusBarColor(.7, .7, .6)
end
if(element:IsMouseEnabled()) then
......
......@@ -18,6 +18,7 @@ L["Accepting this will reset your Filter Priority lists for all auras on UnitFra
L["Additive Blend"] = "Additive Überblendung"
L["Adjust the UI Scale to fit your screen, press the autoscale button to set the UI Scale automatically."] = "Passt die UI-Skallierung für deine Auflöstung an, drücke den Auto-Skallierung Knopf um die UI-Skallierung automatisch anzupassen."
L["AFK"] = "AFK"
L["Alliance: "] = "Allianz: "
L["All keybindings cleared for |cff00ff00%s|r."] = "Alle Tastaturbelegungen gelöscht für |cff00ff00%s|r."
L["Alpha Key"] = true --No need to translate
L["Already Running.. Bailing Out!"] = "Bereits ausgeführt.. Warte ab!"
......@@ -142,6 +143,7 @@ L["Home Protocol:"] = "Standort Protokol"
L["Honor Bar"] = "Ehreleiste"
L["Honor Remaining:"] = "Ehre verbleibend:"
L["Honor XP:"] = "Ehre XP:"
L["Horde: "] = true
L["Hover your mouse over any actionbutton or spellbook button to bind it. Press the ESC key to clear the current actionbutton's keybinding."] = "Bewege deine Maus über einen Aktionsbutton oder dein Zauberbuch um ihn mit einem Hotkey zu belegen. Drücke Escape um die aktuelle Tastenbelegung des Buttons zu löschen."
L["HP"] = "HP"
L["HPS"] = "HPS"
......
......@@ -18,6 +18,7 @@ L["Accepting this will reset your Filter Priority lists for all auras on UnitFra
L["Additive Blend"] = true
L["Adjust the UI Scale to fit your screen, press the autoscale button to set the UI Scale automatically."] = true
L["AFK"] = true
L["Alliance: "] = true
L["All keybindings cleared for |cff00ff00%s|r."] = true
L["Alpha Key"] = true
L["Already Running.. Bailing Out!"] = true
......@@ -142,6 +143,7 @@ L["Home Protocol:"] = true
L["Honor Bar"] = true
L["Honor Remaining:"] = true
L["Honor XP:"] = true
L["Horde: "] = true
L["Hover your mouse over any actionbutton or spellbook button to bind it. Press the ESC key to clear the current actionbutton's keybinding."] = true
L["HP"] = true
L["HPS"] = true
......
......@@ -18,6 +18,7 @@ L["Accepting this will reset your Filter Priority lists for all auras on UnitFra
L["Additive Blend"] = true
L["Adjust the UI Scale to fit your screen, press the autoscale button to set the UI Scale automatically."] = true
L["AFK"] = "Ausente"
L["Alliance: "] = true
L["All keybindings cleared for |cff00ff00%s|r."] = "Todos los atajos borrados para |cff00ff00%s|r."
L["Alpha Key"] = true
L["Already Running.. Bailing Out!"] = "Ya está en ejecución... ¡Cancelando!"
......@@ -142,6 +143,7 @@ L["Home Protocol:"] = true
L["Honor Bar"] = "Barra de Honor"
L["Honor Remaining:"] = true
L["Honor XP:"] = true
L["Horde: "] = true
L["Hover your mouse over any actionbutton or spellbook button to bind it. Press the ESC key to clear the current actionbutton's keybinding."] = true
L["HP"] = "Salud"
L["HPS"] = "VPS"
......
......@@ -18,6 +18,7 @@ L["Accepting this will reset your Filter Priority lists for all auras on UnitFra
L["Additive Blend"] = true
L["Adjust the UI Scale to fit your screen, press the autoscale button to set the UI Scale automatically."] = true
L["AFK"] = "ABS"
L["Alliance: "] = true
L["All keybindings cleared for |cff00ff00%s|r."] = "Tous les raccourcis ont été effacés pour |cff00ff00%s|r."
L["Alpha Key"] = true
L["Already Running.. Bailing Out!"] = "Déjà en cours d'exécution, arrêt du processus..."
......@@ -142,6 +143,7 @@ L["Home Protocol:"] = "Protocole du Domicile :"
L["Honor Bar"] = "Barre d'honneur"
L["Honor Remaining:"] = "Honneur restant :"
L["Honor XP:"] = "Niveau d'honneur :"
L["Horde: "] = true
L["Hover your mouse over any actionbutton or spellbook button to bind it. Press the ESC key to clear the current actionbutton's keybinding."] = true
L["HP"] = "PV"
L["HPS"] = "HPS"
......
......@@ -18,6 +18,7 @@ L["Accepting this will reset your Filter Priority lists for all auras on UnitFra
L["Additive Blend"] = true
L["Adjust the UI Scale to fit your screen, press the autoscale button to set the UI Scale automatically."] = true
L["AFK"] = true
L["Alliance: "] = true
L["All keybindings cleared for |cff00ff00%s|r."] = true
L["Alpha Key"] = true
L["Already Running.. Bailing Out!"] = true
......@@ -142,6 +143,7 @@ L["Home Protocol:"] = true
L["Honor Bar"] = true
L["Honor Remaining:"] = true
L["Honor XP:"] = true
L["Horde: "] = true
L["Hover your mouse over any actionbutton or spellbook button to bind it. Press the ESC key to clear the current actionbutton's keybinding."] = true
L["HP"] = true
L["HPS"] = true
......
......@@ -18,6 +18,7 @@ L["Accepting this will reset your Filter Priority lists for all auras on UnitFra
L["Additive Blend"] = true
L["Adjust the UI Scale to fit your screen, press the autoscale button to set the UI Scale automatically."] = true
L["AFK"] = "자리비움"
L["Alliance: "] = true
L["All keybindings cleared for |cff00ff00%s|r."] = "|cff00ff00%s|r 버튼에 설정된 모든 단축키 설정이 해제되었습니다."
L["Alpha Key"] = true
L["Already Running.. Bailing Out!"] = "이미 실행중입니다. 잠시만 기다려 주세요."
......@@ -142,6 +143,7 @@ L["Home Protocol:"] = true
L["Honor Bar"] = "명예바"
L["Honor Remaining:"] = "남은 명예"
L["Honor XP:"] = "명예 경험치"
L["Horde: "] = true
L["Hover your m