mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update Tooltip
This commit is contained in:
@@ -48,17 +48,17 @@ function TT:GameTooltip_SetDefaultAnchor(tt, parent)
|
|||||||
if self.db.healthBar.statusPosition == "BOTTOM" then
|
if self.db.healthBar.statusPosition == "BOTTOM" then
|
||||||
if GameTooltipStatusBar.anchoredToTop then
|
if GameTooltipStatusBar.anchoredToTop then
|
||||||
GameTooltipStatusBar:ClearAllPoints()
|
GameTooltipStatusBar:ClearAllPoints()
|
||||||
GameTooltipStatusBar:Point("TOPLEFT", GameTooltip, "BOTTOMLEFT", E.Border, -(E.Spacing * 3))
|
E:Point(GameTooltipStatusBar, "TOPLEFT", GameTooltip, "BOTTOMLEFT", E.Border, -(E.Spacing * 3))
|
||||||
GameTooltipStatusBar:Point("TOPRIGHT", GameTooltip, "BOTTOMRIGHT", -E.Border, -(E.Spacing * 3))
|
E:PointGameTooltipStatusBar, "TOPRIGHT", GameTooltip, "BOTTOMRIGHT", -E.Border, -(E.Spacing * 3))
|
||||||
GameTooltipStatusBar.text:Point("CENTER", GameTooltipStatusBar, 0, -3)
|
E:PointGameTooltipStatusBar.text, "CENTER", GameTooltipStatusBar, 0, -3)
|
||||||
GameTooltipStatusBar.anchoredToTop = nil
|
GameTooltipStatusBar.anchoredToTop = nil
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if not GameTooltipStatusBar.anchoredToTop then
|
if not GameTooltipStatusBar.anchoredToTop then
|
||||||
GameTooltipStatusBar:ClearAllPoints()
|
GameTooltipStatusBar:ClearAllPoints()
|
||||||
GameTooltipStatusBar:Point("BOTTOMLEFT", GameTooltip, "TOPLEFT", E.Border, (E.Spacing * 3))
|
E:Point(GameTooltipStatusBar, "BOTTOMLEFT", GameTooltip, "TOPLEFT", E.Border, (E.Spacing * 3))
|
||||||
GameTooltipStatusBar:Point("BOTTOMRIGHT", GameTooltip, "TOPRIGHT", -E.Border, (E.Spacing * 3))
|
E:Point(GameTooltipStatusBar, "BOTTOMRIGHT", GameTooltip, "TOPRIGHT", -E.Border, (E.Spacing * 3))
|
||||||
GameTooltipStatusBar.text:Point("CENTER", GameTooltipStatusBar, 0, 3)
|
E:Point(GameTooltipStatusBar.text, "CENTER", GameTooltipStatusBar, 0, 3)
|
||||||
GameTooltipStatusBar.anchoredToTop = true
|
GameTooltipStatusBar.anchoredToTop = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ E.Options.args.tooltip = {
|
|||||||
colorAlpha = {
|
colorAlpha = {
|
||||||
order = 8,
|
order = 8,
|
||||||
type = "range",
|
type = "range",
|
||||||
name = "OPACITY",
|
name = OPACITY,
|
||||||
isPercent = true,
|
isPercent = true,
|
||||||
min = 0, max = 1, step = 0.01
|
min = 0, max = 1, step = 0.01
|
||||||
},
|
},
|
||||||
@@ -224,12 +224,6 @@ E.Options.args.tooltip = {
|
|||||||
--["ALT"] = ALT_KEY,
|
--["ALT"] = ALT_KEY,
|
||||||
--["CTRL"] = CTRL_KEY
|
--["CTRL"] = CTRL_KEY
|
||||||
}
|
}
|
||||||
},
|
|
||||||
combat = {
|
|
||||||
order = 4,
|
|
||||||
type = "toggle",
|
|
||||||
name = "COMBAT",
|
|
||||||
desc = L["Hide tooltip while in combat."]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user