nameplates: add option for vertical offset

Due to the secure frame requirements in TBC, this option only exists in vanilla.

The feature is also experimental, as it removes the OnEnter/OnLeave events. There
is a ':Click' that can be called on the parent, but there is no ':Enter' or ':Leave'
that could be called to run the scripts. The parent also have no GetScript("OnEnter")
so there's no way to access the script that changes the color and shows the tooltip.
This commit is contained in:
shagu
2024-11-03 10:45:47 +01:00
parent a3f811a055
commit fc964b2177
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -2201,6 +2201,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateGUIEntry(T["Nameplates"], nil, function()
CreateConfig(U["nameplates"], T["Show On Hostile Units"], C.nameplates, "showhostile", "checkbox")
CreateConfig(U["nameplates"], T["Show On Friendly Units"], C.nameplates, "showfriendly", "checkbox")
CreateConfig(U["nameplates"], T["Vertical Offset (|cffffaaaaExperimental|r)"], C.nameplates, "vertical_offset", nil, nil, nil, nil, nil, "vanilla")
CreateConfig(U["nameplates"], T["Inactive Nameplate Alpha"], C.nameplates, "notargalpha", "dropdown", pfUI.gui.dropdowns.percent_small)
CreateConfig(U["nameplates"], T["Draw Glow Around Target Nameplate"], C.nameplates, "targetglow", "checkbox")
CreateConfig(U["nameplates"], T["Glow Color Around Target Nameplate"], C.nameplates, "glowcolor", "color")