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

Remove tooltip offset option

parent 537f828e
......@@ -720,8 +720,6 @@ P["sle"] = {
--Tooltip
["tooltip"] = {
["showFaction"] = false,
["xOffset"] = 0,
["yOffset"] = 0,
["alwaysCompareItems"] = false,
["RaidProg"] = {
["enable"] = false,
......
......@@ -830,12 +830,6 @@ L["Auto Work Orders for equipment"] = true
L["Always Compare Items"] = true
L["Faction Icon"] = true
L["Show faction icon to the left of player's name on tooltip."] = true
L["TTOFFSET_DESC"] = "This adds the ability to have the tooltip offset from the cursor. Make sure to have the \"Cursor Anchor\" option enabled in ElvUI's Tooltip section to use this feature."
L["Tooltip Cursor Offset"] = true
L["Tooltip X-offset"] = true
L["Offset the tooltip on the X-axis."] = true
L["Tooltip Y-offset"] = true
L["Offset the tooltip on the Y-axis."] = true
L["RAID_TOS"] = "ToS"
L["RAID_NH"] = "NH"
L["RAID_TOV"] = "ToV"
......
......@@ -822,12 +822,6 @@ L["Auto Work Orders for equipment"] = true
L["Always Compare Items"] = true
L["Faction Icon"] = true
L["Show faction icon to the left of player's name on tooltip."] = true
L["TTOFFSET_DESC"] = "This adds the ability to have the tooltip offset from the cursor. Make sure to have the \"Cursor Anchor\" option enabled in ElvUI's Tooltip section to use this feature."
L["Tooltip Cursor Offset"] = true
L["Tooltip X-offset"] = true
L["Offset the tooltip on the X-axis."] = true
L["Tooltip Y-offset"] = true
L["Offset the tooltip on the Y-axis."] = true
L["RAID_TOS"] = "ToS"
L["RAID_NH"] = "NH"
L["RAID_TOV"] = "ToV"
......
......@@ -814,12 +814,6 @@ L["Auto Work Orders for equipment"] = "장비 자동 주문"
L["Always Compare Items"] = "항상 아이템 비교"
L["Faction Icon"] = "얼/호 아이콘"
L["Show faction icon to the left of player's name on tooltip."] = "툴팁에서 캐릭명 왼쪽에 얼라/호드 아이콘을 표시합니다."
L["TTOFFSET_DESC"] = "This adds the ability to have the tooltip offset from the cursor. Make sure to have the \"Cursor Anchor\" option enabled in ElvUI's Tooltip section to use this feature."
L["Tooltip Cursor Offset"] = "커서 툴팁 위치"
L["Tooltip X-offset"] = "툴팁 가로위치"
L["Offset the tooltip on the X-axis."] = "툴팁의 X축 위치를 지정합니다."
L["Tooltip Y-offset"] = "툴팁 세로위치"
L["Offset the tooltip on the Y-axis."] = "툴팁의 Y축 위치를 지정합니다."
L["RAID_TOS"] = "살게무덤"
L["RAID_NH"] = "밤요"
L["RAID_TOV"] = "용시"
......
......@@ -826,12 +826,6 @@ L["Auto Work Orders for equipment"] = "Авто. заказы на экипир
L["Always Compare Items"] = "Всегда сравнивать предметы"
L["Faction Icon"] = "Иконка фракции"
L["Show faction icon to the left of player's name on tooltip."] = "Отображать иконку фракции около имени игроков в подсказках"
L["TTOFFSET_DESC"] = "Добавляет возможность сделать отступ подсказки от курсора. Работает только при включенной опции \"Около курсора\" в ElvUI."
L["Tooltip Cursor Offset"] = "Отступ подсказки от курсора"
L["Tooltip X-offset"] = "Смещение подсказки по X"
L["Offset the tooltip on the X-axis."] = "Смещает подсказку по оси X относительно выбранной точки крепления."
L["Tooltip Y-offset"] = "Смещение подсказки по Y"
L["Offset the tooltip on the Y-axis."] = "Смещает подсказку по оси Y относительно выбранной точки крепления."
L["RAID_TOS"] = "ГС"
L["RAID_NH"] = "ЦН"
L["RAID_TOV"] = "ИД"
......
......@@ -8,21 +8,6 @@ local _G = _G
--GLOBALS: UIParent, hooksecurefunc
local function AnchorFrameToMouse()
if not SLE.initialized or not E.private.tooltip.enable then return end
if not E.db.tooltip.cursorAnchor or (E.db.sle.tooltip.xOffset == 0 and E.db.sle.tooltip.yOffset == 0) then return end
local frame = GameTooltip
if frame:GetAnchorType() ~= "ANCHOR_CURSOR" then return end
local x, y = GetCursorPosition();
local scale = frame:GetEffectiveScale();
local tipWidth = frame:GetWidth();
frame:ClearAllPoints();
frame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", (x/scale + (E.db.sle.tooltip.xOffset - tipWidth/2)), (y/scale + E.db.sle.tooltip.yOffset));
end
local function OnTooltipSetUnit(self, tt)
if not SLE.initialized then return end
if not E.db.sle.tooltip.showFaction then return end
......@@ -50,8 +35,6 @@ local function Init()
if not E.private.tooltip.enable then return end
hooksecurefunc(TT, "GameTooltip_OnTooltipSetUnit", OnTooltipSetUnit)
hooksecurefunc(TT, "CheckBackdropColor", AnchorFrameToMouse)
SLE:SetCompareItems() --Blizz cvar for item compare
end
hooksecurefunc(TT, "Initialize", Init)
\ No newline at end of file
......@@ -35,40 +35,6 @@ local function configTable()
disabled = function() return not E.private.tooltip.enable end,
set = function(info, value) E.db.sle.tooltip.alwaysCompareItems = value; SLE:SetCompareItems() end,
},
offset = {
type = "group",
name = L["Tooltip Cursor Offset"],
order = 7,
guiInline = true,
set = function(info, value) E.db.sle.tooltip[ info[#info] ] = value end,
disabled = function() return not E.private.tooltip.enable or not E.db.tooltip.cursorAnchor end,
args = {
intro = {
order = 1,
type = 'description',
name = L["TTOFFSET_DESC"],
},
space1 = {
order = 2,
type = 'description',
name = "",
},
xOffset = {
order = 31,
type = 'range',
name = L["Tooltip X-offset"],
desc = L["Offset the tooltip on the X-axis."],
min = -200, max = 200, step = 1,
},
yOffset = {
order = 32,
type = 'range',
name = L["Tooltip Y-offset"],
desc = L["Offset the tooltip on the Y-axis."],
min = -200, max = 200, step = 1,
},
},
},
RaidProg = {
type = "group",
name = L["Raid Progression"],
......
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