Commit 8cdb3afe authored by Darth Predator's avatar Darth Predator
Browse files

Now inspect works as well

parent 6c316354
......@@ -181,6 +181,12 @@ L["Block names"] = true
L["PvP Type"] = true
L["Spec Fonts"] = true
L["Azerite Level Position"] = true
L["Transmog"] = true
L["Enable Glow"] = true
L["Enable Arrow"] = true
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = true
L["Glow Number"] = true
L["Glow Offset"] = true
--AFK
L["You Are Away From Keyboard for"] = true
......
......@@ -181,6 +181,12 @@ L["Block names"] = true
L["PvP Type"] = true
L["Spec Fonts"] = true
L["Azerite Level Position"] = true
L["Transmog"] = true
L["Enable Glow"] = true
L["Enable Arrow"] = true
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = true
L["Glow Number"] = true
L["Glow Offset"] = true
--AFK
L["You Are Away From Keyboard for"] = "Du bist nicht an der Tastatur für"
......
......@@ -180,6 +180,12 @@ L["Block names"] = "이름 차단"
L["PvP Type"] = "PVP 종류"
L["Spec Fonts"] = "전문화 글씨"
L["Azerite Level Position"] = true
L["Transmog"] = true
L["Enable Glow"] = true
L["Enable Arrow"] = true
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = true
L["Glow Number"] = true
L["Glow Offset"] = true
--AFK
L["You Are Away From Keyboard for"] = "다음 시간 동안 자리를 비우고 계십니다. "
......
......@@ -180,6 +180,12 @@ L["Block names"] = "Названия блоков"
L["PvP Type"] = "Режим PvP"
L["Spec Fonts"] = "Шрифты спека"
L["Azerite Level Position"] = "Позиция уровня азерита"
L["Transmog"] = "Трансмог"
L["Enable Glow"] = "Включить свечение"
L["Enable Arrow"] = "Включить стрелку"
L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."] = "отображать индикатор в виде стрелки на слоте. При наведении курсора на стрелку будет показываться название предмета трансмогрификации."
L["Glow Number"] = "Элементов свечения"
L["Glow Offset"] = "Отступ свечения"
--AFK
L["You Are Away From Keyboard for"] = "Вы отошли на"
......
......@@ -28,7 +28,7 @@ P.sle.Armory.Character = {
},
Transmog = {
enableGlow = true,
enableGlow = false,
enableArrow = true,
glowNumber = 3,
glowOffset = 1,
......
......@@ -594,6 +594,7 @@ local function LoadArmoryConfigTable()
order = 2,
type = "toggle",
name = L["Enable Arrow"],
desc = L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."],
},
glowNumber = {
type = 'range',
......@@ -1246,7 +1247,7 @@ local function LoadArmoryConfigTable()
type = 'group',
name = L["Transmog"],
get = function(info) return E.db.sle.Armory.Inspect.Transmog[(info[#info])] end,
set = function(info, value) E.db.sle.Armory.Inspect.Transmog[(info[#info])] = value; _G["InspectArmory"]:UpdateSettings("gear") end,
set = function(info, value) E.db.sle.Armory.Inspect.Transmog[(info[#info])] = value; _G["InspectArmory"]:UpdateSettings("transmog") end,
disabled = function() return not E.db.sle.Armory.Inspect.Enable end,
args = {
enableGlow = {
......@@ -1258,6 +1259,7 @@ local function LoadArmoryConfigTable()
order = 2,
type = "toggle",
name = L["Enable Arrow"],
desc = L["Enables a small arrow-like indicator on the item slot. Howering over this arrow will show the item this slot is transmogged into."],
},
glowNumber = {
type = 'range',
......
......@@ -2879,6 +2879,22 @@ function IA:UpdateSettings(part)
end
end
end
if part == "transmog" or part == "all" then
for SlotName, _ in T.pairs(Info.Armory_Constants.CanTransmogrifySlot) do
local Slot = _G["InspectArmory"][SlotName]
LCG.AutoCastGlow_Stop(Slot,"_TransmogGlow")
if Slot and Slot.TransmogrifyAnchor then
if Slot.TransmogrifyAnchor.Link and T.type(Slot.TransmogrifyAnchor.Link) ~= 'number' then
if E.db.sle.Armory.Inspect.Transmog.enableArrow then Slot.TransmogrifyAnchor:Show() else Slot.TransmogrifyAnchor:Hide() end
if E.db.sle.Armory.Inspect.Transmog.enableGlow then
LCG.AutoCastGlow_Start(Slot,{1, .5, 1, 1},E.db.sle.Armory.Inspect.Transmog.glowNumber,0.25,1,E.db.sle.Armory.Inspect.Transmog.glowOffset,E.db.sle.Armory.Inspect.Transmog.glowOffset,"_TransmogGlow")
else
LCG.AutoCastGlow_Stop(Slot,"_TransmogGlow")
end
end
end
end
end
if part == "gem" or part == "all" then
for _, SlotName in T.pairs(Info.Armory_Constants.GearList) do
for i = 1, MAX_NUM_SOCKETS do
......@@ -2893,17 +2909,6 @@ function IA:UpdateSettings(part)
_G["InspectArmory"][SlotName].SocketWarning:Size(db.Gem.WarningSize)
end
end
if Slot.TransmogrifyAnchor then
if Slot.TransmogrifyAnchor.Link and T.type(Slot.TransmogrifyAnchor.Link) ~= 'number' then
if E.db.sle.Armory.Inspect.Transmog.enableArrow then Slot.TransmogrifyAnchor:Show() else Slot.TransmogrifyAnchor:Hide() end
if E.db.sle.Armory.Inspect.Transmog.enableGlow then
print("huh")
LCG.AutoCastGlow_Start(Slot,{1, .5, 1, 1},E.db.sle.Armory.Inspect.Transmog.glowNumber,0.25,1,E.db.sle.Armory.Inspect.Transmog.glowOffset,E.db.sle.Armory.Inspect.Transmog.glowOffset,"_TransmogGlow")
else
LCG.AutoCastGlow_Stop(Slot,"_TransmogGlow")
end
end
end
end
end
if part == "overlay" or part == "all" then
......
......@@ -27,7 +27,7 @@ P.sle.Armory.Inspect = {
},
Transmog = {
enableGlow = true,
enableGlow = false,
enableArrow = true,
glowNumber = 3,
glowOffset = 1,
......
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