Commit d0913e33 authored by Darth Predator's avatar Darth Predator
Browse files

Add option to offset azerite level frame.

Related to #171
parent d4bf7384
......@@ -180,6 +180,7 @@ L["Info Fonts"] = true
L["Block names"] = true
L["PvP Type"] = true
L["Spec Fonts"] = true
L["Azerite Level Position"] = true
--AFK
L["You Are Away From Keyboard for"] = true
......
......@@ -180,6 +180,7 @@ L["Info Fonts"] = true
L["Block names"] = true
L["PvP Type"] = true
L["Spec Fonts"] = true
L["Azerite Level Position"] = true
--AFK
L["You Are Away From Keyboard for"] = "Du bist nicht an der Tastatur für"
......
......@@ -179,6 +179,7 @@ L["Info Fonts"] = "정보 글씨"
L["Block names"] = "이름 차단"
L["PvP Type"] = "PVP 종류"
L["Spec Fonts"] = "전문화 글씨"
L["Azerite Level Position"] = true
--AFK
L["You Are Away From Keyboard for"] = "다음 시간 동안 자리를 비우고 계십니다. "
......
......@@ -179,6 +179,7 @@ L["Info Fonts"] = "Шрифты информации"
L["Block names"] = "Названия блоков"
L["PvP Type"] = "Режим PvP"
L["Spec Fonts"] = "Шрифты спека"
L["Azerite Level Position"] = "Позиция уровня азерита"
--AFK
L["You Are Away From Keyboard for"] = "Вы отошли на"
......
......@@ -340,9 +340,9 @@ function CA:Setup_CharacterArmory()
_G["Character"..SlotName].RankFrame:StripTextures()
_G["Character"..SlotName].RankFrame:SetTemplate("Transparent")
_G["Character"..SlotName].RankFrame:SetSize(15, 16)
_G["Character"..SlotName].RankFrame:SetPoint('BOTTOM'..Slot.Direction, Slot, 1,2)
_G["Character"..SlotName].RankFrame.Label:SetPoint("CENTER", _G["Character"..SlotName].RankFrame, 2, 0)
_G["Character"..SlotName].RankFrame:SetSize(16, 16)
_G["Character"..SlotName].RankFrame:SetPoint("BOTTOMLEFT", Slot, 0 + E.db.sle.Armory.Character.AzeritePosition.xOffset, 2 + E.db.sle.Armory.Character.AzeritePosition.yOffset)
_G["Character"..SlotName].RankFrame.Label:SetPoint("CENTER", _G["Character"..SlotName].RankFrame, 1, 0)
Slot.RankFrame = _G["Character"..SlotName].RankFrame
-- Grow each equipment slot's frame level
......@@ -1060,6 +1060,8 @@ function CA:UpdateSettings(part)
_G["CharacterArmory"]:Update_BG()
end
if part == "gear" or part == "all" then
_G["CharacterNeckSlot"].RankFrame:ClearAllPoints()
_G["CharacterNeckSlot"].RankFrame:SetPoint("BOTTOMLEFT", CA["NeckSlot"], 0 + E.db.sle.Armory.Character.AzeritePosition.xOffset, 2 + E.db.sle.Armory.Character.AzeritePosition.yOffset)
_G["CharacterArmory"]:Update_Gear()
_G["CharacterArmory"]:Update_Display(true)
end
......
......@@ -4,12 +4,16 @@ local E, L, V, P, G = unpack(ElvUI)
local KF, Info, Timer = unpack(ElvUI_KnightFrame)
P.sle.Armory = P.sle.Armory or {}
P.sle.Armory.Character = {
Enable = true,
NoticeMissing = true,
MissingIcon = true,
AzeritePosition = {
xOffset = 0,
yOffset = 0,
},
Backdrop = {
SelectedBG = 'Space',
......
......@@ -328,7 +328,7 @@ local function LoadArmoryConfigTable()
Stats = {
type = 'group',
name = STAT_CATEGORY_ATTRIBUTES,
order = 6,
order = 7,
guiInline = true,
get = function(info) return E.db.sle.Armory.Character.Stats.List[ info[#info] ] end,
set = function(info, value) E.db.sle.Armory.Character.Stats.List[ info[#info] ] = value; _G["CharacterArmory"]:ToggleStats() end,
......@@ -498,6 +498,28 @@ local function LoadArmoryConfigTable()
},
}
},
AzeritePosition = {
order = 8,
type = 'group',
name = L["Azerite Level Position"],
get = function(info) return E.db.sle.Armory.Character.AzeritePosition[(info[#info])] end,
set = function(info, value) E.db.sle.Armory.Character.AzeritePosition[(info[#info])] = value; _G["CharacterArmory"]:UpdateSettings("gear") end,
disabled = function() return not E.db.sle.Armory.Character.Enable end,
args = {
xOffset = {
type = 'range',
name = L["X-Offset"],
order = 1,
min = -6,max = 30,step = 1,
},
yOffset = {
type = 'range',
name = L["Y-Offset"],
order = 2,
min = -6,max = 30,step = 1,
},
},
},
Enchant = {
type = 'group',
name = L["Enchant String"],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment