mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
tooltip: option to always show vendor and comparison
This commit is contained in:
@@ -109,6 +109,8 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("castbar", "player", "hide_pfui", "0")
|
||||
pfUI:UpdateConfig("castbar", "target", "hide_pfui", "0")
|
||||
pfUI:UpdateConfig("tooltip", nil, "position", "bottom")
|
||||
pfUI:UpdateConfig("tooltip", "compare", "showalways", "0")
|
||||
pfUI:UpdateConfig("tooltip", "vendor", "showalways", "0")
|
||||
pfUI:UpdateConfig("chat", "text", "input_width", "0")
|
||||
pfUI:UpdateConfig("chat", "text", "input_height", "0")
|
||||
pfUI:UpdateConfig("chat", "text", "time", "0")
|
||||
|
||||
@@ -43,7 +43,10 @@ pfUI:RegisterModule("eqcompare", function ()
|
||||
|
||||
pfUI.eqcompare = CreateFrame( "Frame" , "pfEQCompare", GameTooltip )
|
||||
pfUI.eqcompare:SetScript("OnShow", function()
|
||||
if not IsShiftKeyDown() then return end
|
||||
if not IsShiftKeyDown() and pfUI_config.tooltip.compare.showalways ~= "1" then
|
||||
return
|
||||
end
|
||||
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
|
||||
for i=1,GameTooltip:NumLines() do
|
||||
|
||||
+3
-1
@@ -898,7 +898,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
-- panels
|
||||
pfUI.gui.panel = pfUI.gui:CreateConfigTab("Panel")
|
||||
local values = { "time", "fps", "exp", "gold", "friends", "guild", "durability", "zone", "none" }
|
||||
pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Left", pfUI_config.panel.left, "left", "dropdown", values )
|
||||
pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Left", pfUI_config.panel.left, "left", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Center", pfUI_config.panel.left, "center", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.panel, "Left Panel: Right", pfUI_config.panel.left, "right", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.panel, "Right Panel: Left", pfUI_config.panel.right, "left", "dropdown", values)
|
||||
@@ -911,6 +911,8 @@ pfUI:RegisterModule("gui", function ()
|
||||
-- tooltip
|
||||
pfUI.gui.tooltip = pfUI.gui:CreateConfigTab("Tooltip")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.tooltip, "Tooltip Position:", pfUI_config.tooltip, "position", "dropdown", { "bottom", "chat", "cursor" })
|
||||
pfUI.gui:CreateConfig(pfUI.gui.tooltip, "Always show comparison:", pfUI_config.tooltip.compare, "showalways", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.tooltip, "Always show extended vendor values:", pfUI_config.tooltip.vendor, "showalways", "checkbox")
|
||||
|
||||
-- castbar
|
||||
pfUI.gui.castbar = pfUI.gui:CreateConfigTab("Castbar")
|
||||
|
||||
@@ -22,7 +22,7 @@ pfUI:RegisterModule("sellvalue", function ()
|
||||
if sell > 0 then SetTooltipMoney(GameTooltip, sell * count) end
|
||||
end
|
||||
|
||||
if IsShiftKeyDown() then
|
||||
if IsShiftKeyDown() or pfUI_config.tooltip.vendor.showalways == "1" then
|
||||
GameTooltip:AddLine(" ")
|
||||
|
||||
if count > 1 then
|
||||
|
||||
Reference in New Issue
Block a user