diff --git a/api/config.lua b/api/config.lua
index 7a19135b..d99d9038 100644
--- a/api/config.lua
+++ b/api/config.lua
@@ -59,7 +59,6 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("global", nil, "libhealth_dmg", ".05")
pfUI:UpdateConfig("gui", nil, "reloadmarker", "0")
- pfUI:UpdateConfig("gui", nil, "showdisabled", "0")
pfUI:UpdateConfig("buffs", nil, "buffs", "1")
pfUI:UpdateConfig("buffs", nil, "debuffs", "1")
diff --git a/init/modules.xml b/init/modules.xml
index 68c2755b..5c174c79 100644
--- a/init/modules.xml
+++ b/init/modules.xml
@@ -37,7 +37,6 @@
-
diff --git a/modules/actionbar.lua b/modules/actionbar.lua
index 479abd64..334c7c3f 100644
--- a/modules/actionbar.lua
+++ b/modules/actionbar.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("actionbar", "vanilla", function ()
+pfUI:RegisterModule("actionbar", function ()
local _, class = UnitClass("player")
local _, cr, cg, cb = GetUnitColor('player')
local er, eg, eb, ea = GetStringColor(pfUI_config.appearance.border.color)
diff --git a/modules/addonbuttons.lua b/modules/addonbuttons.lua
index c083163f..a05bbe86 100644
--- a/modules/addonbuttons.lua
+++ b/modules/addonbuttons.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("addonbuttons", "vanilla:tbc", function ()
+pfUI:RegisterModule("addonbuttons", function ()
if not pfUI.minimap then return end
if C.abuttons.enable == "0" then return end
diff --git a/modules/addons.lua b/modules/addons.lua
index 220035c8..dbe0e47c 100644
--- a/modules/addons.lua
+++ b/modules/addons.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("addons", "vanilla:tbc", function ()
+pfUI:RegisterModule("addons", function ()
local rawborder, border = GetBorderSize()
-- add main menu button
diff --git a/modules/afkcam.lua b/modules/afkcam.lua
index 0a87602a..8eae6d1b 100644
--- a/modules/afkcam.lua
+++ b/modules/afkcam.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("afkcam", "vanilla:tbc", function ()
+pfUI:RegisterModule("afkcam", function ()
local MARKED_AFK_CAPTURE = SanitizePattern(MARKED_AFK_MESSAGE)
local social_chats = {
"CHAT_MSG_SAY",
diff --git a/modules/autoshift.lua b/modules/autoshift.lua
index 55c00b07..5f85f617 100644
--- a/modules/autoshift.lua
+++ b/modules/autoshift.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("autoshift", "vanilla", function ()
+pfUI:RegisterModule("autoshift", function ()
pfUI.autoshift = CreateFrame("Frame")
pfUI.autoshift:RegisterEvent("UI_ERROR_MESSAGE")
diff --git a/modules/autovendor.lua b/modules/autovendor.lua
index 8109f1bf..397a0ec2 100644
--- a/modules/autovendor.lua
+++ b/modules/autovendor.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("autovendor", "vanilla:tbc", function ()
+pfUI:RegisterModule("autovendor", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/modules/bags.lua b/modules/bags.lua
index f07f6b58..e705ba7f 100644
--- a/modules/bags.lua
+++ b/modules/bags.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("bags", "vanilla:tbc", function ()
+pfUI:RegisterModule("bags", function ()
local rawborder, default_border = GetBorderSize("bags")
local knownInventorySpellTextures = {
diff --git a/modules/bgscore.lua b/modules/bgscore.lua
index 693c6560..23cffdcf 100644
--- a/modules/bgscore.lua
+++ b/modules/bgscore.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("bgscore", "vanilla", function ()
+pfUI:RegisterModule("bgscore", function ()
local bgframe = WorldStateAlwaysUpFrame
if not bgframe then
bgframe = CreateFrame("Frame", "WorldStateAlwaysUpFrame", UIParent)
diff --git a/modules/bubbles.lua b/modules/bubbles.lua
index 61f9e991..692882ea 100644
--- a/modules/bubbles.lua
+++ b/modules/bubbles.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("bubbles", "vanilla:tbc", function ()
+pfUI:RegisterModule("bubbles", function ()
local alpha = tonumber(C.chat.bubbles.alpha)
diff --git a/modules/buff.lua b/modules/buff.lua
index ddff3637..55c9e907 100644
--- a/modules/buff.lua
+++ b/modules/buff.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("buff", "vanilla:tbc", function ()
+pfUI:RegisterModule("buff", function ()
-- Hide Blizz
BuffFrame:Hide()
BuffFrame:UnregisterAllEvents()
diff --git a/modules/buffwatch.lua b/modules/buffwatch.lua
index ec9e66ec..9142cbcf 100644
--- a/modules/buffwatch.lua
+++ b/modules/buffwatch.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("buffwatch", "vanilla:tbc", function ()
+pfUI:RegisterModule("buffwatch", function ()
local rawborder, border = GetBorderSize("panels")
local fcache = {}
diff --git a/modules/castbar.lua b/modules/castbar.lua
index bc8f0efc..7a25ec84 100644
--- a/modules/castbar.lua
+++ b/modules/castbar.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("castbar", "vanilla", function ()
+pfUI:RegisterModule("castbar", function ()
local font = C.castbar.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
local font_size = C.castbar.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
diff --git a/modules/chat.lua b/modules/chat.lua
index ce5e5c97..93970bda 100644
--- a/modules/chat.lua
+++ b/modules/chat.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("chat", "vanilla:tbc", function ()
+pfUI:RegisterModule("chat", function ()
local panelfont = C.panel.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
local panelfont_size = C.panel.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
local rawborder, default_border = GetBorderSize("chat")
diff --git a/modules/chatcopy.lua b/modules/chatcopy.lua
index 11da75e0..dc9ec1cc 100644
--- a/modules/chatcopy.lua
+++ b/modules/chatcopy.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("chatcopy", "vanilla:tbc", function ()
+pfUI:RegisterModule("chatcopy", function ()
local limit = 100
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
diff --git a/modules/combopoints.lua b/modules/combopoints.lua
index f874974e..fb83f710 100644
--- a/modules/combopoints.lua
+++ b/modules/combopoints.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("combopoints", "vanilla:tbc", function ()
+pfUI:RegisterModule("combopoints", function ()
local rawborder, border = GetBorderSize()
-- Hide Blizzard combo point frame and unregister all events to prevent it from popping up again
diff --git a/modules/cooldown.lua b/modules/cooldown.lua
index 9f9f9b42..063beba3 100644
--- a/modules/cooldown.lua
+++ b/modules/cooldown.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("cooldown", "vanilla:tbc", function ()
+pfUI:RegisterModule("cooldown", function ()
-- cache values
local lowcolor = {strsplit(",", C.appearance.cd.lowcolor)}
local normalcolor = {strsplit(",", C.appearance.cd.normalcolor)}
diff --git a/modules/easteregg.lua b/modules/easteregg.lua
index 35a76c6d..142bd020 100644
--- a/modules/easteregg.lua
+++ b/modules/easteregg.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("easteregg", "vanilla:tbc", function ()
+pfUI:RegisterModule("easteregg", function ()
-- merry x-mas!
if date("%m%d") == "1224" or date("%m%d") == "1225" then
local title = (UnitFactionGroup("player") == "Horde") and PVP_RANK_18_0 or PVP_RANK_18_1
diff --git a/modules/energytick.lua b/modules/energytick.lua
index fceeb239..f991fd5a 100644
--- a/modules/energytick.lua
+++ b/modules/energytick.lua
@@ -17,7 +17,7 @@ local function getAdjustedTickTimer()
return adjustedEnergyTick
end
-pfUI:RegisterModule("energytick", "vanilla:tbc", function()
+pfUI:RegisterModule("energytick", function()
if not pfUI.uf or not pfUI.uf.player then
return
end
diff --git a/modules/eqcompare.lua b/modules/eqcompare.lua
index 2cc8b90b..92bf7e09 100644
--- a/modules/eqcompare.lua
+++ b/modules/eqcompare.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("eqcompare", "vanilla", function ()
+pfUI:RegisterModule("eqcompare", function ()
local sides = { "Left", "Right" }
local loc = pfUI.cache["locale"]
for key, value in pairs(L["itemtypes"]) do setglobal(key, value) end
diff --git a/modules/farmmode.lua b/modules/farmmode.lua
index 19478884..2bfc63a8 100644
--- a/modules/farmmode.lua
+++ b/modules/farmmode.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("farmmode", "vanilla:tbc", function ()
+pfUI:RegisterModule("farmmode", function ()
local function ToggleFarmMode()
if pfUI.farmmap:IsShown() then
pfUI.farmmap:Hide()
diff --git a/modules/feigndeath.lua b/modules/feigndeath.lua
index ba4e5fcd..b4e96075 100644
--- a/modules/feigndeath.lua
+++ b/modules/feigndeath.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("feigndeath", "vanilla:tbc", function ()
+pfUI:RegisterModule("feigndeath", function ()
local cache = { }
local scanner = libtipscan:GetScanner("feigndeath")
local healthbar = scanner:GetChildren()
diff --git a/modules/firstrun.lua b/modules/firstrun.lua
index c4f1379c..921820c3 100644
--- a/modules/firstrun.lua
+++ b/modules/firstrun.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("firstrun", "vanilla:tbc", function ()
+pfUI:RegisterModule("firstrun", function ()
pfUI.firstrun = CreateFrame("Frame", "pfFirstRunWizard", UIParent)
pfUI.firstrun.steps = {}
diff --git a/modules/focus.lua b/modules/focus.lua
index 95905d24..d93c2fc4 100644
--- a/modules/focus.lua
+++ b/modules/focus.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("focus", "vanilla:tbc", function ()
+pfUI:RegisterModule("focus", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/friends.lua b/modules/friends.lua
index 9f54291b..3a131904 100644
--- a/modules/friends.lua
+++ b/modules/friends.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Friends", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Friends", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
local maxtab = 4
diff --git a/modules/gm.lua b/modules/gm.lua
index c6d5b50d..71b23e35 100644
--- a/modules/gm.lua
+++ b/modules/gm.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("gm", "vanilla", function ()
+pfUI:RegisterModule("gm", function ()
-- do not load by default
if C.gm.disable == "1" then return end
diff --git a/modules/group.lua b/modules/group.lua
index 5aa0aaa2..0700e31b 100644
--- a/modules/group.lua
+++ b/modules/group.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("group", "vanilla:tbc", function ()
+pfUI:RegisterModule("group", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/gryphons.lua b/modules/gryphons.lua
index 96eba04e..992f3c61 100644
--- a/modules/gryphons.lua
+++ b/modules/gryphons.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("gryphons", "vanilla:tbc", function ()
+pfUI:RegisterModule("gryphons", function ()
pfUI.gryphons = {
frames = {
left = CreateFrame("Frame"),
diff --git a/modules/gui.lua b/modules/gui.lua
index 4186e2bb..7dd707e0 100644
--- a/modules/gui.lua
+++ b/modules/gui.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("gui", "vanilla:tbc", function ()
+pfUI:RegisterModule("gui", function ()
local Reload, U, CreateConfig, CreateTabFrame, CreateArea, CreateGUIEntry, EntryUpdate
-- "searchDB" gets populated when CreateConfig is called. The table holds
@@ -67,10 +67,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
end
end
- function CreateConfig(ufunc, caption, category, config, widget, values, skip, named, type, expansion)
- local disabled = expansion and not strfind(expansion, pfUI.expansion)
- if disabled and pfUI_config.gui.showdisabled == "0" then return end
-
+ function CreateConfig(ufunc, caption, category, config, widget, values, skip, named, type)
-- this object placement
if this.objectCount == nil then
this.objectCount = 0
@@ -137,15 +134,6 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
frame.caption:SetText(caption)
end
- if disabled then
- if frame.caption then
- frame.caption:SetText(caption .. " |cffff5555[" .. T["Only"] .. " " .. string.gsub(expansion, ":", "&") .. "]")
- end
-
- frame:SetAlpha(.5)
- return
- end
-
if category == "CVAR" then
category = {}
category[config] = tostring(GetCVar(config))
@@ -1530,7 +1518,6 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Use Single Line UIErrors Frame"], C.global, "errors_limit", "checkbox")
CreateConfig(nil, T["Disable Errors in UIErrors Frame"], C.global, "errors_hide", "checkbox")
CreateConfig(nil, T["Highlight Settings That Require Reload"], C.gui, "reloadmarker", "checkbox")
- CreateConfig(nil, T["Show Incompatible Config Entries"], C.gui, "showdisabled", "checkbox")
CreateConfig(nil, T["Abbreviate Numbers"], C.unitframes, "abbrevnum", "dropdown", pfUI.gui.dropdowns.abbrevnum)
CreateConfig(nil, T["Castbar Timer Decimals"], C.unitframes, "castbardecimals", "dropdown", pfUI.gui.dropdowns.castbardecimals)
CreateConfig(nil, T["Abbreviate Unit Names"], C.unitframes, "abbrevname", "checkbox")
@@ -2075,7 +2062,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Show Resting"], C.unitframes.player, "showRest", "checkbox")
CreateConfig(nil, T["Enable Energy Ticks"], C.unitframes.player, "energy", "checkbox")
CreateConfig(nil, T["Enable Mana Ticks"], C.unitframes.player, "manatick", "checkbox")
- CreateConfig(nil, T["Detect Enemy Buffs"], C.unitframes, "buffdetect", "checkbox", nil, nil, nil, nil, "vanilla" )
+ CreateConfig(nil, T["Detect Enemy Buffs"], C.unitframes, "buffdetect", "checkbox", nil, nil, nil, nil)
CreateConfig(nil, T["Raid Mark Icon Style"], C.unitframes, "blizzard_raidicons", "dropdown", function() return {"1:Original Blizzard", "0:pfUI Design"} end)
CreateConfig(nil, T["Swing Timer"], nil, nil, "header")
@@ -2118,10 +2105,10 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Unit Frame Text Style"], C.global, "font_unit_style", "dropdown", pfUI.gui.dropdowns.fontstyle)
CreateConfig(U[c], T["Group Options"], nil, nil, "header")
- CreateConfig(nil, T["Enable 40y-Range Check"], C.unitframes, "rangecheck", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Range Check Mode"], C.unitframes, "rangecheck_mode", "dropdown", pfUI.gui.dropdowns.uf_rangecheck_mode, nil, nil, nil, "vanilla")
- CreateConfig(nil, T["UnitXP Range Threshold (yards)"], C.unitframes, "rangecheck_distance", nil, nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, T["Range Check Interval"], C.unitframes, "rangechecki", "dropdown", pfUI.gui.dropdowns.uf_rangecheckinterval, nil, nil, nil, "vanilla")
+ CreateConfig(nil, T["Enable 40y-Range Check"], C.unitframes, "rangecheck", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Range Check Mode"], C.unitframes, "rangecheck_mode", "dropdown", pfUI.gui.dropdowns.uf_rangecheck_mode, nil, nil, nil)
+ CreateConfig(nil, T["UnitXP Range Threshold (yards)"], C.unitframes, "rangecheck_distance", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Range Check Interval"], C.unitframes, "rangechecki", "dropdown", pfUI.gui.dropdowns.uf_rangecheckinterval, nil, nil, nil)
CreateConfig(nil, T["Use Raid Frames To Display Group Members"], C.unitframes, "raidforgroup", "checkbox")
CreateConfig(nil, T["Always Show Self In Raid Frames"], C.unitframes, "selfinraid", "checkbox")
CreateConfig(nil, T["Show Self In Group Frames"], C.unitframes, "selfingroup", "checkbox")
@@ -2144,32 +2131,32 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Focus Color"], C.unitframes, "focuscolor", "color")
CreateConfig(nil, T["Druid Settings"], nil, nil, "header")
- CreateConfig(nil, T["Show Druid Mana Bar"], C.unitframes, "druidmanabar", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Druid Mana Bar Height"], C.unitframes, "druidmanaheight", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Druid Mana Bar Width (-1 = auto)"], C.unitframes, "druidmanawidth", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Druid Mana Bar X-Offset"], C.unitframes, "druidmanaoffx", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Druid Mana Bar Y-Offset"], C.unitframes, "druidmanaoffy", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Druid Mana Bar Spacing"], C.unitframes, "druidmanaspace", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Druid Mana Bar Texture"], C.unitframes, "druidmanatexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture, nil, nil, nil, "vanilla" )
+ CreateConfig(nil, T["Show Druid Mana Bar"], C.unitframes, "druidmanabar", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Druid Mana Bar Height"], C.unitframes, "druidmanaheight", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Druid Mana Bar Width (-1 = auto)"], C.unitframes, "druidmanawidth", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Druid Mana Bar X-Offset"], C.unitframes, "druidmanaoffx", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Druid Mana Bar Y-Offset"], C.unitframes, "druidmanaoffy", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Druid Mana Bar Spacing"], C.unitframes, "druidmanaspace", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Druid Mana Bar Texture"], C.unitframes, "druidmanatexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture, nil, nil, nil)
CreateConfig(nil, T["SuperWoW Settings"], nil, nil, "header")
- CreateConfig(nil, T["Track Group on Minimap"], C.unitframes, "track_group", "checkbox", nil, nil, nil, nil, "vanilla" )
+ CreateConfig(nil, T["Track Group on Minimap"], C.unitframes, "track_group", "checkbox", nil, nil, nil, nil)
CreateConfig(nil, T["Nampower Settings"], nil, nil, "header")
- CreateConfig(nil, T["Show Spell Queue Indicator"], C.unitframes, "spellqueue", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Spell Queue Icon Size"], C.unitframes, "spellqueuesize", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Show Reactive Spell Indicator"], C.unitframes, "reactive_indicator", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Reactive Indicator Size"], C.unitframes, "reactive_size", nil, nil, nil, nil, nil, "vanilla" )
+ CreateConfig(nil, T["Show Spell Queue Indicator"], C.unitframes, "spellqueue", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Spell Queue Icon Size"], C.unitframes, "spellqueuesize", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Show Reactive Spell Indicator"], C.unitframes, "reactive_indicator", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Reactive Indicator Size"], C.unitframes, "reactive_size", nil, nil, nil, nil, nil)
CreateConfig(nil, T["UnitXP Settings"], nil, nil, "header")
- CreateConfig(nil, T["Font Size for all UnitXP texts"], C.unitframes, "unitxp_font_size", nil, nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Show Line of Sight Indicator"], C.unitframes, "los_indicator", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Show Behind Indicator"], C.unitframes, "behind_indicator", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Show Distance of Target"], C.unitframes, "distance_indicator", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Hide yd characters"], C.unitframes, "hide_distance_yd", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Hook Distance to Portrait Frame"], C.unitframes, "distance_hook_portrait", "checkbox", nil, nil, nil, nil, "vanilla" )
- CreateConfig(nil, T["Enable OS Notifications"], C.unitframes, "unitxp_notify", "checkbox", nil, nil, nil, nil, "vanilla" )
+ CreateConfig(nil, T["Font Size for all UnitXP texts"], C.unitframes, "unitxp_font_size", nil, nil, nil, nil, nil)
+ CreateConfig(nil, T["Show Line of Sight Indicator"], C.unitframes, "los_indicator", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Show Behind Indicator"], C.unitframes, "behind_indicator", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Show Distance of Target"], C.unitframes, "distance_indicator", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Hide yd characters"], C.unitframes, "hide_distance_yd", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Hook Distance to Portrait Frame"], C.unitframes, "distance_hook_portrait", "checkbox", nil, nil, nil, nil)
+ CreateConfig(nil, T["Enable OS Notifications"], C.unitframes, "unitxp_notify", "checkbox", nil, nil, nil, nil)
end)
-- Shared Unit- and Groupframes
@@ -2540,7 +2527,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(U["bars"], T["Button Animation Trigger"], C.bars, "animmode", "dropdown", pfUI.gui.dropdowns.animationmode)
CreateConfig(U["bars"], T["Show Animation On Hidden Bars"], C.bars, "animalways", "checkbox")
if not pfUI:MacroAddonsLoaded() then
- CreateConfig(U["bars"], T["Scan Macros For Spells"], C.bars, "macroscan", "checkbox", nil, nil, nil, nil, "vanilla")
+ CreateConfig(U["bars"], T["Scan Macros For Spells"], C.bars, "macroscan", "checkbox", nil, nil, nil, nil)
end
CreateConfig(U["bars"], T["Show Reagent Count"], C.bars, "reagents", "checkbox")
CreateConfig(U["bars"], T["Highlight Equipped Items"], C.bars, "showequipped", "checkbox")
@@ -2570,7 +2557,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(U["bars"], T["Switch Pages On Shift Key Press"], C.bars, "pagemastershift", "checkbox")
CreateConfig(U["bars"], T["Switch Pages On Ctrl Key Press"], C.bars, "pagemasterctrl", "checkbox")
CreateConfig(U["bars"], T["Switch Pages On Druid Stealth"], C.bars, "druidstealth", "checkbox")
- CreateConfig(nil, T["Range Based Hunter Paging"], C.bars, "hunterbar", "checkbox", nil, nil, nil, nil, "vanilla")
+ CreateConfig(nil, T["Range Based Hunter Paging"], C.bars, "hunterbar", "checkbox", nil, nil, nil, nil)
end)
CreateGUIEntry(T["Actionbar"], T["Gryphons"], function()
@@ -2862,7 +2849,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(U["nameplates"], T["Show On Friendly Units"], C.nameplates, "showfriendly", "checkbox")
CreateConfig(U["nameplates"], T["Disable Hostile Nameplates In Friendly Zones"], C.nameplates, "disable_hostile_in_friendly", "checkbox")
CreateConfig(U["nameplates"], T["Disable Friendly Nameplates In Friendly Zones"], C.nameplates, "disable_friendly_in_friendly", "checkbox")
- CreateConfig(U["nameplates"], T["Vertical Offset (|cffffaaaaExperimental|r)"], C.nameplates, "vertical_offset", nil, nil, nil, nil, nil, "vanilla")
+ CreateConfig(U["nameplates"], T["Vertical Offset (|cffffaaaaExperimental|r)"], C.nameplates, "vertical_offset", nil, nil, nil, nil, nil)
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")
@@ -2874,10 +2861,10 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(U["nameplates"], T["Enable Class Colors On Friends"], C.nameplates, "friendclassc", "checkbox")
CreateConfig(U["nameplates"], T["Enable Class Colors On Friends Name"], C.nameplates, "friendclassnamec", "checkbox")
CreateConfig(U["nameplates"], T["Enable Combo Point Display"], C.nameplates, "cpdisplay", "checkbox")
- CreateConfig(U["nameplates"], T["Enable Clickthrough"], C.nameplates, "clickthrough", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(U["nameplates"], T["Enable Overlap"], C.nameplates, "overlap", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(U["nameplates"], T["Enable Mouselook With Right Click"], C.nameplates, "rightclick", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(U["nameplates"], T["Right Click Auto Attack Threshold"], C.nameplates, "clickthreshold", nil, nil, nil, nil, nil, "vanilla")
+ CreateConfig(U["nameplates"], T["Enable Clickthrough"], C.nameplates, "clickthrough", "checkbox", nil, nil, nil, nil)
+ CreateConfig(U["nameplates"], T["Enable Overlap"], C.nameplates, "overlap", "checkbox", nil, nil, nil, nil)
+ CreateConfig(U["nameplates"], T["Enable Mouselook With Right Click"], C.nameplates, "rightclick", "checkbox", nil, nil, nil, nil)
+ CreateConfig(U["nameplates"], T["Right Click Auto Attack Threshold"], C.nameplates, "clickthreshold", nil, nil, nil, nil, nil)
CreateConfig(U["nameplates"], T["Use Unit Fonts"], C.nameplates, "use_unitfonts", "checkbox")
CreateConfig(U["nameplates"], T["Font Style"], C.nameplates.name, "fontstyle", "dropdown", pfUI.gui.dropdowns.fontstyle)
CreateConfig(U["nameplates"], T["Replace Totems With Icons"], C.nameplates, "totemicons", "checkbox")
@@ -2961,37 +2948,27 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, "ShaguDPS (" .. T["Dock"] .. ")", C.thirdparty.shagudps, "dock", "checkbox")
CreateConfig(nil, "DPSMate (" .. T["Skin"] .. ")", C.thirdparty.dpsmate, "skin", "checkbox")
CreateConfig(nil, "DPSMate (" .. T["Dock"] .. ")", C.thirdparty.dpsmate, "dock", "checkbox")
- CreateConfig(nil, "Recount (" .. T["Skin"] .. ")", C.thirdparty.recount, "skin", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "Recount (" .. T["Dock"] .. ")", C.thirdparty.recount, "dock", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "Omen (" .. T["Skin"] .. ")", C.thirdparty.omen, "skin", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "Omen (" .. T["Dock"] .. ")", C.thirdparty.omen, "dock", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "SWStats (" .. T["Skin"] .. ")", C.thirdparty.swstats, "skin", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "SWStats (" .. T["Dock"] .. ")", C.thirdparty.swstats, "dock", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "KLH Threat Meter (" .. T["Skin"] .. ")", C.thirdparty.ktm, "skin", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "KLH Threat Meter (" .. T["Dock"] .. ")", C.thirdparty.ktm, "dock", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "TW Threatmeter (" .. T["Skin"] .. ")", C.thirdparty.twt, "skin", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "TW Threatmeter (" .. T["Dock"] .. ")", C.thirdparty.twt, "dock", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "WIM", C.thirdparty.wim, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "HealComm", C.thirdparty.healcomm, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "SortBags", C.thirdparty.sortbags, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "Bag_Sort", C.thirdparty.bag_sort, "enable", "checkbox", nil, nil, nil, nil, "tbc")
+ CreateConfig(nil, "SWStats (" .. T["Skin"] .. ")", C.thirdparty.swstats, "skin", "checkbox")
+ CreateConfig(nil, "SWStats (" .. T["Dock"] .. ")", C.thirdparty.swstats, "dock", "checkbox")
+ CreateConfig(nil, "KLH Threat Meter (" .. T["Skin"] .. ")", C.thirdparty.ktm, "skin", "checkbox")
+ CreateConfig(nil, "KLH Threat Meter (" .. T["Dock"] .. ")", C.thirdparty.ktm, "dock", "checkbox")
+ CreateConfig(nil, "TW Threatmeter (" .. T["Skin"] .. ")", C.thirdparty.twt, "skin", "checkbox")
+ CreateConfig(nil, "TW Threatmeter (" .. T["Dock"] .. ")", C.thirdparty.twt, "dock", "checkbox")
+ CreateConfig(nil, "WIM", C.thirdparty.wim, "enable", "checkbox")
+ CreateConfig(nil, "HealComm", C.thirdparty.healcomm, "enable", "checkbox")
+ CreateConfig(nil, "SortBags", C.thirdparty.sortbags, "enable", "checkbox")
CreateConfig(nil, "MrPlow", C.thirdparty.mrplow, "enable", "checkbox")
- CreateConfig(nil, "BetterCharacterStats", C.thirdparty.bcs, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "Crafty", C.thirdparty.crafty, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "CleverMacro", C.thirdparty.clevermacro, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "SuperCleveRoidMacros", C.thirdparty.supercleveroidmacros, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "AckisRecipeList", C.thirdparty.ackis, "enable", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "SheepWatch", C.thirdparty.sheepwatch, "enable", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "TotemTimers", C.thirdparty.totemtimers, "enable", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "DruidBar", C.thirdparty.druidbar, "enable", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "BCEPGP", C.thirdparty.bcepgp, "enable", "checkbox", nil, nil, nil, nil, "tbc")
- CreateConfig(nil, "FlightMap", C.thirdparty.flightmap, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "TheoryCraft", C.thirdparty.theorycraft, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "SuperMacro", C.thirdparty.supermacro, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "AtlasLoot", C.thirdparty.atlasloot, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "MyRolePlay", C.thirdparty.myroleplay, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "DruidManaBar", C.thirdparty.druidmana, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
- CreateConfig(nil, "NoteIt", C.thirdparty.noteit, "enable", "checkbox", nil, nil, nil, nil, "vanilla")
+ CreateConfig(nil, "BetterCharacterStats", C.thirdparty.bcs, "enable", "checkbox")
+ CreateConfig(nil, "Crafty", C.thirdparty.crafty, "enable", "checkbox")
+ CreateConfig(nil, "CleverMacro", C.thirdparty.clevermacro, "enable", "checkbox")
+ CreateConfig(nil, "SuperCleveRoidMacros", C.thirdparty.supercleveroidmacros, "enable", "checkbox")
+ CreateConfig(nil, "FlightMap", C.thirdparty.flightmap, "enable", "checkbox")
+ CreateConfig(nil, "TheoryCraft", C.thirdparty.theorycraft, "enable", "checkbox")
+ CreateConfig(nil, "SuperMacro", C.thirdparty.supermacro, "enable", "checkbox")
+ CreateConfig(nil, "AtlasLoot", C.thirdparty.atlasloot, "enable", "checkbox")
+ CreateConfig(nil, "MyRolePlay", C.thirdparty.myroleplay, "enable", "checkbox")
+ CreateConfig(nil, "DruidManaBar", C.thirdparty.druidmana, "enable", "checkbox")
+ CreateConfig(nil, "NoteIt", C.thirdparty.noteit, "enable", "checkbox")
end)
CreateGUIEntry(T["Components"], T["Modules"], function()
diff --git a/modules/hdgraphic.lua b/modules/hdgraphic.lua
index 9147513d..f610c693 100644
--- a/modules/hdgraphic.lua
+++ b/modules/hdgraphic.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("hdgraphic", "vanilla", function ()
+pfUI:RegisterModule("hdgraphic", function ()
-- inject video settings to provide advanced slider values (deferred until frame is shown)
local origOptionsFrame_OnShow = OptionsFrame_OnShow
function OptionsFrame_OnShow()
diff --git a/modules/hoverbind.lua b/modules/hoverbind.lua
index 00f4a162..9794504d 100644
--- a/modules/hoverbind.lua
+++ b/modules/hoverbind.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("hoverbind", "vanilla:tbc", function ()
+pfUI:RegisterModule("hoverbind", function ()
local keymap = {
-- buttons to binding association
["pfActionBarMainButton"] = "ACTIONBUTTON",
diff --git a/modules/hunterbar.lua b/modules/hunterbar.lua
index 3e14a7fa..628e6442 100644
--- a/modules/hunterbar.lua
+++ b/modules/hunterbar.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("hunterbar", "vanilla", function ()
+pfUI:RegisterModule("hunterbar", function ()
local _,class = UnitClass("player")
if class ~= "HUNTER" or C.bars.hunterbar == "0" then return end
diff --git a/modules/infight.lua b/modules/infight.lua
index 03ed2111..895b9cfc 100644
--- a/modules/infight.lua
+++ b/modules/infight.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("infight", "vanilla:tbc", function ()
+pfUI:RegisterModule("infight", function ()
local function OnUpdate()
if not this.infight and not this.aggro and not this.health then return end
if ( this.tick or 1) > GetTime() then return else this.tick = GetTime() + .1 end
diff --git a/modules/innervatecall.lua b/modules/innervatecall.lua
index b54f0d8c..8e448b42 100644
--- a/modules/innervatecall.lua
+++ b/modules/innervatecall.lua
@@ -3,7 +3,7 @@
-- Registers AURA_CAST events directly - zero polling, pure event-driven
pfUI:RegisterNewModule("innervatecall", "Innervate Callout", "DRUID")
-pfUI:RegisterModule("innervatecall", "vanilla", function ()
+pfUI:RegisterModule("innervatecall", function ()
-- Requires Nampower for AURA_CAST events
if not GetNampowerVersion then return end
diff --git a/modules/itemclick.lua b/modules/itemclick.lua
index 37bffd1b..4478c337 100644
--- a/modules/itemclick.lua
+++ b/modules/itemclick.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("itemclick", "vanilla", function ()
+pfUI:RegisterModule("itemclick", function ()
-- small module that tries to decide if an item should be used or dropped into
-- the auctionhouse search or trade window
diff --git a/modules/loot.lua b/modules/loot.lua
index c0c0b242..962478ad 100644
--- a/modules/loot.lua
+++ b/modules/loot.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("loot", "vanilla:tbc", function ()
+pfUI:RegisterModule("loot", function ()
local rawborder, border = GetBorderSize()
pfUI.loot = CreateFrame("Frame", "pfLootFrame", UIParent)
diff --git a/modules/macrotweak.lua b/modules/macrotweak.lua
index 3ed5414c..7fc2657f 100644
--- a/modules/macrotweak.lua
+++ b/modules/macrotweak.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("macrotweak", "vanilla", function ()
+pfUI:RegisterModule("macrotweak", function ()
local conflictAddons = { "Supermacro", "SuperCleveRoidMacros", "UltimaMacros" }
local disabled = false
diff --git a/modules/map.lua b/modules/map.lua
index 8fc0534a..ea356578 100644
--- a/modules/map.lua
+++ b/modules/map.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("map", "vanilla:tbc", function ()
+pfUI:RegisterModule("map", function ()
table.insert(UISpecialFrames, "WorldMapFrame")
local function UpdateTooltipScale()
diff --git a/modules/mapreveal.lua b/modules/mapreveal.lua
index d8275960..7a3bf794 100644
--- a/modules/mapreveal.lua
+++ b/modules/mapreveal.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("mapreveal", "vanilla:tbc", function ()
+pfUI:RegisterModule("mapreveal", function ()
if Cartographer then return end
if METAMAP_TITLE then return end
diff --git a/modules/marktracking.lua b/modules/marktracking.lua
index a0c6e7d7..4049dd2d 100644
--- a/modules/marktracking.lua
+++ b/modules/marktracking.lua
@@ -1,5 +1,5 @@
pfUI:RegisterNewModule("marktracking", "Mark Tracker")
-pfUI:RegisterModule("marktracking", "vanilla:tbc", function ()
+pfUI:RegisterModule("marktracking", function ()
-- Requires mark1-mark8 unit tokens (Turtle WoW / Nampower)
if not UnitExists("mark1") and not UnitExists("mark8") then
if not pcall(function() UnitExists("mark1") end) then return end
diff --git a/modules/minimap.lua b/modules/minimap.lua
index 215f3323..ead0c510 100644
--- a/modules/minimap.lua
+++ b/modules/minimap.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("minimap", "vanilla:tbc", function ()
+pfUI:RegisterModule("minimap", function ()
local rawborder, border = GetBorderSize()
local size = tonumber(C.appearance.minimap.size) or 140
diff --git a/modules/mirrortimers.lua b/modules/mirrortimers.lua
index 6b08f395..4a39aade 100644
--- a/modules/mirrortimers.lua
+++ b/modules/mirrortimers.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("mirrortimers", "vanilla:tbc", function ()
+pfUI:RegisterModule("mirrortimers", function ()
local font = pfUI.font_default
local fontsize = tonumber(C.global.font_size)
local height = fontsize * 1.3
diff --git a/modules/mouseover.lua b/modules/mouseover.lua
index 95877739..5f3eed55 100644
--- a/modules/mouseover.lua
+++ b/modules/mouseover.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("mouseover", "vanilla", function ()
+pfUI:RegisterModule("mouseover", function ()
pfUI.uf.mouseover = CreateFrame("Frame", "pfMouseOver", UIParent)
-- Prepare a list of units that can be used via SpellTargetUnit
diff --git a/modules/nameplates.lua b/modules/nameplates.lua
index 68ed1101..3f4a9677 100644
--- a/modules/nameplates.lua
+++ b/modules/nameplates.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("nameplates", "vanilla", function ()
+pfUI:RegisterModule("nameplates", function ()
-- disable original castbars
pcall(SetCVar, "ShowVKeyCastbar", 0)
diff --git a/modules/nampower.lua b/modules/nampower.lua
index 87840cd0..da61cfb4 100644
--- a/modules/nampower.lua
+++ b/modules/nampower.lua
@@ -2,7 +2,7 @@
-- Provides spell queue indicator and enhanced cast information
-- Requires Nampower DLL: https://gitea.com/avitasia/nampower
-pfUI:RegisterModule("nampower", "vanilla", function ()
+pfUI:RegisterModule("nampower", function ()
-- Only load if Nampower is available
if not GetNampowerVersion then return end
diff --git a/modules/panel.lua b/modules/panel.lua
index 32fdd266..e34769c6 100644
--- a/modules/panel.lua
+++ b/modules/panel.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("panel", "vanilla:tbc", function()
+pfUI:RegisterModule("panel", function()
-- initialize gold cache if not yet happened
pfUI_cache["gold"] = pfUI_cache["gold"] or {}
diff --git a/modules/pet.lua b/modules/pet.lua
index 223c633c..85401b13 100644
--- a/modules/pet.lua
+++ b/modules/pet.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("pet", "vanilla:tbc", function ()
+pfUI:RegisterModule("pet", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
pfUI.uf.pet = pfUI.uf:CreateUnitFrame("Pet", nil, C.unitframes.pet)
diff --git a/modules/pettarget.lua b/modules/pettarget.lua
index 017c30c4..1e1eaf83 100644
--- a/modules/pettarget.lua
+++ b/modules/pettarget.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("pettarget", "vanilla:tbc", function ()
+pfUI:RegisterModule("pettarget", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
local rawborder, default_border = GetBorderSize("unitframes")
diff --git a/modules/pixelperfect.lua b/modules/pixelperfect.lua
index ec4166d4..337f970c 100644
--- a/modules/pixelperfect.lua
+++ b/modules/pixelperfect.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("pixelperfect", "vanilla:tbc", function ()
+pfUI:RegisterModule("pixelperfect", function ()
-- pre-calculated min values
local statics = {
[4] = 1.4222222222222,
diff --git a/modules/player.lua b/modules/player.lua
index a4ff84af..11545c41 100644
--- a/modules/player.lua
+++ b/modules/player.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("player", "vanilla:tbc", function ()
+pfUI:RegisterModule("player", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/raid.lua b/modules/raid.lua
index a0154658..c1348f78 100644
--- a/modules/raid.lua
+++ b/modules/raid.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("raid", "vanilla:tbc", function ()
+pfUI:RegisterModule("raid", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/roll.lua b/modules/roll.lua
index 7762774c..e0253e08 100644
--- a/modules/roll.lua
+++ b/modules/roll.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("roll", "vanilla:tbc", function ()
+pfUI:RegisterModule("roll", function ()
pfUI.roll = CreateFrame("Frame", "pfLootRoll", UIParent)
pfUI.roll.frames = {}
diff --git a/modules/screenshot.lua b/modules/screenshot.lua
index 54bb3425..ccaa4568 100644
--- a/modules/screenshot.lua
+++ b/modules/screenshot.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("screenshot", "vanilla:tbc", function ()
+pfUI:RegisterModule("screenshot", function ()
if C.screenshot.interval == "0"
and C.screenshot.levelup == "0"
and C.screenshot.pvprank == "0"
diff --git a/modules/sellvalue.lua b/modules/sellvalue.lua
index ce555204..815cf997 100644
--- a/modules/sellvalue.lua
+++ b/modules/sellvalue.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("sellvalue", "vanilla:tbc", function ()
+pfUI:RegisterModule("sellvalue", function ()
local function AddVendorPrices(frame, id, count)
if not id then return end
-- Sell price comes from the engine (item DBC); buy price from pfSellData
diff --git a/modules/share.lua b/modules/share.lua
index acc3a044..2748d4ef 100644
--- a/modules/share.lua
+++ b/modules/share.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("share", "vanilla:tbc", function ()
+pfUI:RegisterModule("share", function ()
local function serialize(tbl, comp, name, ignored, spacing)
local spacing = spacing or ""
local match = nil
diff --git a/modules/skin.lua b/modules/skin.lua
index 04f57cae..867d4c0d 100644
--- a/modules/skin.lua
+++ b/modules/skin.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("skin", "vanilla", function ()
+pfUI:RegisterModule("skin", function ()
-- align UIParent panels
pfUI.panelalign = CreateFrame("Frame", "pfUIParentPanelAlign", UIParent)
pfUI.panelalign:SetScript("OnUpdate", function()
diff --git a/modules/socialmod.lua b/modules/socialmod.lua
index e18fea58..63ae410c 100644
--- a/modules/socialmod.lua
+++ b/modules/socialmod.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("socialmod", "vanilla:tbc", function ()
+pfUI:RegisterModule("socialmod", function ()
local playerdb = _G.pfUI_playerDB
pfUI.socialmod = CreateFrame("Frame", "pfSocialMod", UIParent)
pfUI.socialmod:RegisterEvent("CHAT_MSG_SYSTEM")
diff --git a/modules/superwow.lua b/modules/superwow.lua
index 5cdde998..4e1efe42 100644
--- a/modules/superwow.lua
+++ b/modules/superwow.lua
@@ -38,7 +38,7 @@ SlashCmdList["PFDLLSTATUS"] = function()
end
end
-pfUI:RegisterModule("superwow", "vanilla", function ()
+pfUI:RegisterModule("superwow", function ()
if SetAutoloot and SpellInfo and not SUPERWOW_VERSION then
-- Turn every enchanting link that we create in the enchanting frame,
-- from "spell:" back into "enchant:". The enchant-version is what is
diff --git a/modules/swingtimer.lua b/modules/swingtimer.lua
index 224a9738..29ac8c3c 100644
--- a/modules/swingtimer.lua
+++ b/modules/swingtimer.lua
@@ -1,5 +1,5 @@
pfUI:RegisterNewModule("swingtimer", "Swing Timer")
-pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
+pfUI:RegisterModule("swingtimer", function ()
local rawborder, border = GetBorderSize()
-- HitInfo flags (EVENTS.md)
diff --git a/modules/target.lua b/modules/target.lua
index 9522b8d0..54a45b0e 100644
--- a/modules/target.lua
+++ b/modules/target.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("target", "vanilla:tbc", function ()
+pfUI:RegisterModule("target", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/targettarget.lua b/modules/targettarget.lua
index 893ad670..cea120e4 100644
--- a/modules/targettarget.lua
+++ b/modules/targettarget.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("targettarget", "vanilla:tbc", function ()
+pfUI:RegisterModule("targettarget", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/targettargettarget.lua b/modules/targettargettarget.lua
index d070533d..d9bd137d 100644
--- a/modules/targettargettarget.lua
+++ b/modules/targettargettarget.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("targettargettarget", "vanilla:tbc", function ()
+pfUI:RegisterModule("targettargettarget", function ()
-- do not go further on disabled UFs
if C.unitframes.disable == "1" then return end
diff --git a/modules/thirdparty-tbc.lua b/modules/thirdparty-tbc.lua
deleted file mode 100644
index 8642dada..00000000
--- a/modules/thirdparty-tbc.lua
+++ /dev/null
@@ -1,381 +0,0 @@
-pfUI:RegisterModule("thirdparty-tbc", "tbc", function ()
- -- abort when thirdparty core module is not loaded
- if not pfUI.thirdparty then return end
- local rawborder, default_border = GetBorderSize()
-
- HookAddonOrVariable("Omen", function()
- local docktable = { "omen", "Omen", "OmenBarList",
- function() -- single
- Omen.BarList:ClearAllPoints()
- Omen.BarList:SetPoint("TOPLEFT", pfUI.chat.right, "TOPLEFT", -5, 5)
- Omen.BarList:SetPoint("BOTTOMRIGHT", pfUI.chat.right, "BOTTOMRIGHT", 5, pfUI.panel.right:GetHeight()-5)
- Omen.BarList:SetWidth(pfUI.chat.right:GetWidth() + 7)
-
- -- backdrop adjustments
- if Omen.BarList.backdrop then
- Omen.BarList.backdrop:SetPoint("TOPLEFT", -default_border+5, default_border-5)
- Omen.BarList.backdrop:SetPoint("BOTTOMRIGHT", default_border-5, -18-default_border+5)
- end
- end,
- function() -- dual
- Omen.BarList:ClearAllPoints()
- Omen.BarList:SetPoint("TOPLEFT", pfUI.chat.right, "TOPLEFT", -5, 5)
- Omen.BarList:SetPoint("BOTTOMRIGHT", pfUI.chat.right, "BOTTOM", -default_border+5, pfUI.panel.right:GetHeight()-5)
- Omen.BarList:SetWidth(pfUI.chat.right:GetWidth() / 2 + 7)
-
- -- backdrop adjustments
- if Omen.BarList.backdrop then
- Omen.BarList.backdrop:SetPoint("TOPLEFT", -default_border+5, default_border-5)
- Omen.BarList.backdrop:SetPoint("BOTTOMRIGHT", default_border-5, -18-default_border+5)
- end
- end,
- function() -- show
- Omen:UpdateDisplay()
- Omen:EnableLastModule()
- Omen:LayoutModuleIcons()
-
- Omen.ModuleList:SetPoint("BOTTOMLEFT", Omen.BarList, "TOPLEFT", 5, default_border*3-5)
- Omen.ModuleList:SetPoint("BOTTOMRIGHT", Omen.BarList, "TOPRIGHT", -5, default_border*3)
-
- -- fake sizes to retain proper button sizes
- Omen.ModuleList._GetHeight = Omen.ModuleList._GetHeight or Omen.ModuleList.GetHeight
- Omen.ModuleList.GetHeight = function() return 30 end
- Omen:LayoutModuleIcons()
- Omen.ModuleList.GetHeight = Omen.ModuleList._GetHeight
- Omen.ModuleList:SetHeight(20)
-
- OmenResizeGrip:Hide()
- Omen:Toggle(true)
- end,
- function() -- hide
- Omen:Toggle(nil)
- end,
- function() -- once
- Omen.Title:Hide()
- Omen.Title.Show = function() return end
- EnableAutohide(Omen.ModuleList, 1)
-
- local hookUpdateDisplay = Omen.UpdateDisplay
- Omen.UpdateDisplay = function(self)
- hookUpdateDisplay(self)
- pfUI.thirdparty.meters:Resize()
- end
-
- Omen.UpdateVisible = function()
- if pfUI.thirdparty.meters.state then
- Omen.Anchor:Show()
- else
- Omen.Anchor:Hide()
- end
- end
- end,
- }
-
- pfUI.thirdparty.meters:RegisterMeter("threat", docktable)
-
- if C.thirdparty.omen.skin == "1" then
- if Omen.Anchor then
-
- local hookUpdateDisplay = Omen.UpdateDisplay
- Omen.UpdateDisplay = function(self)
- hookUpdateDisplay(self)
-
- StripTextures(Omen.Title)
- StripTextures(Omen.ModuleList)
- StripTextures(Omen.BarList)
-
- if not Omen.Title.backdrop or not Omen.ModuleList.backdrop or not Omen.BarList.backdrop then
- CreateBackdrop(Omen.Title, nil, nil, (C.thirdparty.chatbg == "1" and .8))
- CreateBackdropShadow(Omen.Title)
-
- CreateBackdrop(Omen.ModuleList, nil, nil, (C.thirdparty.chatbg == "1" and .8))
- CreateBackdropShadow(Omen.ModuleList)
-
- CreateBackdrop(Omen.BarList, nil, nil, (C.thirdparty.chatbg == "1" and .8))
- CreateBackdropShadow(Omen.BarList)
- end
-
- if C.thirdparty.chatbg == "1" and C.chat.global.custombg == "1" then
- local r, g, b, a = strsplit(",", C.chat.global.background)
- Omen.BarList.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
- Omen.ModuleList.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
-
- local r, g, b, a = strsplit(",", C.chat.global.border)
- Omen.BarList.backdrop:SetBackdropBorderColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
- Omen.ModuleList.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
- end
- end
-
- HookScript(Omen.Anchor, "OnShow", function()
- for i, child in pairs({ OmenModuleButtons:GetChildren() }) do
- if child and child:IsObjectType("Button") then
- child:GetNormalTexture():SetTexCoord(.08, .92, .08, .92)
- CreateBackdrop(child, nil, true)
- end
- end
- end)
-
- Omen:UpdateDisplay()
- end
- end
- end)
-
- HookAddonOrVariable("Recount", function()
- local docktable = { "recount", "Recount", "Recount_MainWindow",
- function() -- single
- Recount.MainWindow:ClearAllPoints()
- Recount.MainWindow:SetPoint("TOPLEFT", pfUI.chat.right, "TOPLEFT", 0, 10)
- Recount.MainWindow:SetPoint("BOTTOMRIGHT", pfUI.chat.right, "BOTTOMRIGHT", 0, 18)
- Recount.MainWindow:SetWidth(pfUI.chat.right:GetWidth())
- end,
- function() -- dual
- Recount.MainWindow:ClearAllPoints()
- Recount.MainWindow:SetPoint("TOPLEFT", pfUI.chat.right, "TOP", default_border, 10)
- Recount.MainWindow:SetPoint("BOTTOMRIGHT", pfUI.chat.right, "BOTTOMRIGHT", 0, 18)
- Recount.MainWindow:SetWidth(pfUI.chat.right:GetWidth() / 2)
- end,
- function() -- show
- Recount.MainWindow:Show()
- Recount:ResizeMainWindow()
- Recount:RefreshMainWindow()
- end,
- function() -- hide
- Recount.MainWindow:Hide()
- end,
- function() -- once
- local hookResize = Recount.ResizeMainWindow
- Recount.ResizeMainWindow = function()
- hookResize()
-
- local a, b, c = Recount.MainWindow:GetPoint()
- if b == pfUI.chat.right and Recount.MainWindow.backdrop then
- Recount.MainWindow.backdrop:SetPoint("BOTTOMRIGHT", default_border, -18-default_border)
- else
- Recount.MainWindow.backdrop:SetPoint("BOTTOMRIGHT", default_border, default_border)
- end
- end
- end,
- }
-
- pfUI.thirdparty.meters:RegisterMeter("damage", docktable)
-
- if C.thirdparty.recount.skin == "1" then
- if Recount_MainWindow then
- StripTextures(Recount.MainWindow)
- CreateBackdrop(Recount.MainWindow, nil, nil, (C.thirdparty.chatbg == "1" and .8))
- CreateBackdropShadow(Recount.MainWindow)
- SkinScrollbar(Recount_MainWindow_ScrollBarScrollBar)
- Recount_MainWindow_ScrollBarScrollBarScrollUpButton.Overlay:SetTexture(nil)
- Recount_MainWindow_ScrollBarScrollBarScrollDownButton.Overlay:SetTexture(nil)
- Recount.MainWindow.DragBottomLeft:SetNormalTexture(nil)
- Recount.MainWindow.DragBottomRight:SetNormalTexture(nil)
-
- -- backdrop adjustments
- Recount.MainWindow.backdrop:SetPoint("TOPLEFT", -default_border, -5-default_border-GetPerfectPixel())
- if C.thirdparty.chatbg == "1" and C.chat.global.custombg == "1" then
- local r, g, b, a = strsplit(",", C.chat.global.background)
- Recount.MainWindow.backdrop:SetBackdropColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
-
- local r, g, b, a = strsplit(",", C.chat.global.border)
- Recount.MainWindow.backdrop:SetBackdropBorderColor(tonumber(r), tonumber(g), tonumber(b), tonumber(a))
- end
- end
- end
- end)
-
- HookAddonOrVariable("BCEPGP_LootFrame_Update", function()
- if C.thirdparty.bcepgp.enable == "0" then return end
-
- local hook = _G.BCEPGP_LootFrame_Update
- _G.BCEPGP_LootFrame_Update = function(a,b,c,d,e,f)
- LootFrame.numLootItems = GetNumLootItems()
- hook(a,b,c,d,e,f)
- end
- end)
-
- -- Sheep Watch Continued
- -- https://www.curseforge.com/wow/addons/sheep-watch-continued/files/225593
- HookAddonOrVariable("SheepWatch", function()
- if C.thirdparty.sheepwatch.enable == "0" then return end
-
- StripTextures(SheepWatch)
-
- if SheepWatchFrameStatusBar then
- SheepWatchFrameStatusBar:SetStatusBarTexture(pfUI.media["img:bar"])
- SheepWatchFrameStatusBar:SetHeight(14)
- CreateBackdrop(SheepWatchFrameStatusBar)
- CreateBackdropShadow(SheepWatchFrameStatusBar)
- end
-
- if SheepWatchText then
- SheepWatchText:ClearAllPoints()
- SheepWatchText:SetPoint("CENTER", 0, 4)
- end
-
- if SheepWatchCounterText then
- SheepWatchCounterText:ClearAllPoints()
- SheepWatchCounterText:SetPoint("RIGHT", 0, 4)
- end
- end)
-
- HookAddonOrVariable("Bag_Sort", function()
- if C.thirdparty.bag_sort.enable == "0" then return end
-
- local sort = CreateFrame("Frame", nil)
- sort:RegisterEvent("PLAYER_ENTERING_WORLD")
- sort:SetScript("OnEvent", function()
- this:UnregisterAllEvents()
-
- pfUI.thirdparty.RegisterBagSort("Bag_Sort",
- function()
- BS_slashBagSortHandler()
- end,
- function()
- GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
- GameTooltip:SetText(GetAddOnMetadata("Bag_Sort","Title"))
- GameTooltip:AddLine(GetAddOnMetadata("Bag_Sort","Notes"),1,1,1)
- GameTooltip:Show()
- end,
- function()
- BS_slashBankSortHandler()
- end,
- function()
- GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
- GameTooltip:SetText(GetAddOnMetadata("Bag_Sort","Title"))
- GameTooltip:AddLine(GetAddOnMetadata("Bag_Sort","Notes"),1,1,1)
- GameTooltip:Show()
- end)
- end)
- end)
-
- HookAddonOrVariable("AckisRecipeList", function()
- if C.thirdparty.ackis.enable == "0" then return end
- if AckisRecipeList.ShowScanButton then
- local AckisRecipeListShowScanButton = AckisRecipeList.ShowScanButton
- AckisRecipeList.ShowScanButton = function(a1,a2,a3,a4)
- -- run the original function
- AckisRecipeListShowScanButton(a1,a2,a3,a4)
-
- -- apply skin and reposition the button
- SkinButton(AckisRecipeList.ScanButton)
- local a,b,c,d,e = AckisRecipeList.ScanButton:GetPoint()
- AckisRecipeList.ScanButton:SetPoint(a,b,c,d-14,e-2)
- end
- end
- end)
-
- HookAddonOrVariable("TotemTimers", function()
- if C.thirdparty.totemtimers.enable == "0" then return end
-
- local function skin(button, weapon)
- if button and not button.pfskinned then
- button.pfskinned = true
-
- local icon = button.icon or _G[button:GetName().."Icon"]
- icon:SetDrawLayer("BORDER")
-
- SkinButton(button, nil, nil, nil, icon)
- SetAllPointsOffset(icon, button, 2)
-
- if _G[button:GetName().."Flash"] then
- SetAllPointsOffset(_G[button:GetName().."Flash"], button, 3)
- _G[button:GetName().."Flash"]:SetTexCoord(.08, .92, .08, .92)
- end
-
- if button.spellIcon then
- button.spellIcon:SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT", -2, 2)
- button.spellIcon:SetTexCoord(.08, .92, .08, .92)
- end
-
- if weapon then
- -- weapon button skin workaround taken from ElvUI-TBC:
- -- https://github.com/ElvUI-TBC/ElvUI_AddOnSkins/blob/master/ElvUI_AddOnSkins/Skins/Addons/totemTimers.lua#L92-L135
- local icon2frame = _G[button:GetName().."Icon2Frame"]
- icon2frame:SetFrameStrata("MEDIUM")
- icon2frame:SetWidth(icon2frame:GetWidth() + 1)
- button.icon2 = _G[button:GetName().."Icon2"]
- SetAllPointsOffset(button.icon2, icon2frame, 2)
-
- button.icon1Frame = CreateFrame("Frame", "TotemTimers_MainHandIcon1Frame", button)
- button.icon1Frame:SetWidth(16)
- button.icon1Frame:SetHeight(30)
- button.icon1Frame:SetPoint("LEFT", 0, 0)
-
- button.icon1 = button.icon1Frame:CreateTexture(nil, "MEDIUM")
- SetAllPointsOffset(button.icon1, button.icon1Frame, 3)
- button.icon1:SetTexture(icon:GetTexture())
- button.icon1:SetAlpha(icon:GetAlpha())
-
- _G[button:GetName().."Cooldown"]:SetFrameLevel(button.icon1Frame:GetFrameLevel() + 1)
-
- icon:Hide()
- hooksecurefunc(icon, "SetTexture", function(_, texture)
- button.icon1:SetTexture(texture)
- end)
- hooksecurefunc(icon, "SetAlpha", function(_, alpha)
- button.icon1:SetAlpha(alpha)
- end)
-
- if icon:GetTexCoordModifiesRect() then
- button.icon1:SetTexCoord(.08, .5, .08, .92)
- else
- button.icon1:SetTexCoord(.08, .92, .08, .92)
- end
- button.icon2:SetTexCoord(.5, .92, .08, .92)
-
- hooksecurefunc(icon, "SetTexCoord", function(self, arg1, arg2)
- if arg2 == 0.5 and arg1 == 0 then
- button.icon1:SetTexCoord(.08, .5, .08, .92)
- elseif arg2 == 1 then
- button.icon1:SetTexCoord(.08, .92, .08, .92)
- end
- end)
- hooksecurefunc(button.icon2, "SetTexCoord", function(self, arg1, arg2)
- if arg2 == 1 then self:SetTexCoord(.5, .92, .08, .92) end
- end)
- end
- end
- end
-
- hooksecurefunc("TotemTimers_SetupGlobals", function()
- for i=1,4 do -- skin main buttons
- for j=1,10 do skin(_G[i.."SlaveButton"..j]) end
- skin(_G["TotemTimers"..i])
- end
-
- for _, timer in pairs({ "EarthElemental", "FireElemental", "ManaTide", "ManaTrinket" }) do
- skin(_G["TotemTimers_"..timer])
- end
-
- for i, tracker in pairs({ "Ankh", "Shield", "MainHand", "EarthShield" }) do
- skin(_G["TotemTimers_"..tracker], i==3)
- end
- end)
- end)
-
- HookAddonOrVariable("DruidBarFrame", function()
- if C.thirdparty.druidbar.enable == "0" then return end
- local p = ManaBarColor[0]
- local pr, pg, pb = 0, 0, 0
- if p then pr, pg, pb = p.r + .5, p.g +.5, p.b +.5 end
- DruidBarKey.color = { pr, pg, pb, 1 }
- DruidBarKey.bordercolor = {1,1,1,0}
- DruidBarKey.bgcolor = {0,0,0,0}
- DruidBarKey.manatexture = pfUI.media[pfUI.uf.player.config.pbartexture]
- DruidBarKey.bordertexture = ""
-
- hooksecurefunc("DruidBar_MainGraphics", function()
- local f = pfUI.uf.player
- DruidBarFrame:SetWidth((f.config.pwidth ~= "-1" and f.config.pwidth or f.config.width))
- DruidBarFrame:SetHeight(f.config.pheight)
- DruidBarMana:SetAllPoints(DruidBarFrame)
-
- DruidBarText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
- DruidBarText1:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
-
- StripTextures(DruidBarFrame)
- CreateBackdrop(DruidBarFrame)
- CreateBackdropShadow(DruidBarFrame)
- end)
- end)
-end)
diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua
index c1695116..549c9a48 100644
--- a/modules/thirdparty-vanilla.lua
+++ b/modules/thirdparty-vanilla.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function()
+pfUI:RegisterModule("thirdparty-vanilla", function()
-- abort when thirdparty core module is not loaded
if not pfUI.thirdparty then return end
local rawborder, default_border = GetBorderSize()
diff --git a/modules/thirdparty.lua b/modules/thirdparty.lua
index f480df7f..831cde3f 100644
--- a/modules/thirdparty.lua
+++ b/modules/thirdparty.lua
@@ -1,10 +1,8 @@
-pfUI:RegisterModule("thirdparty", "vanilla:tbc", function()
+pfUI:RegisterModule("thirdparty", function()
-- This module includes the core logic of thirdparty modules.
-- Right now, in particular the functions to register addons to the
-- dockframe of the chat panel aswell as the thirdparty root-table.
- -- This module is supposed to be loaded on all expansions, so only
- -- addons that can share the same glue code across expansions will go here.
- -- For expansion related code, see: thirdparty-vanilla and thirdparty-tbc.
+ -- For vanilla-specific glue, see: thirdparty-vanilla.
pfUI.thirdparty = {}
diff --git a/modules/tooltip.lua b/modules/tooltip.lua
index f664610e..b867c89a 100644
--- a/modules/tooltip.lua
+++ b/modules/tooltip.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("tooltip", "vanilla", function ()
+pfUI:RegisterModule("tooltip", function ()
local rawborder, default_border = GetBorderSize()
pfUI.tooltip = CreateFrame('Frame', "pfTooltip", GameTooltip)
diff --git a/modules/totems.lua b/modules/totems.lua
index b0857ac8..df56e103 100644
--- a/modules/totems.lua
+++ b/modules/totems.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("totems", "vanilla:tbc", function ()
+pfUI:RegisterModule("totems", function ()
local _, class = UnitClass("player")
local slots = {
diff --git a/modules/tracking.lua b/modules/tracking.lua
index e9608b85..d78c7e9c 100644
--- a/modules/tracking.lua
+++ b/modules/tracking.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("tracking", "vanilla", function ()
+pfUI:RegisterModule("tracking", function ()
MINIMAP_TRACKING_FRAME:UnregisterAllEvents()
MINIMAP_TRACKING_FRAME:Hide()
diff --git a/modules/turtle-wow.lua b/modules/turtle-wow.lua
index c23c174e..ba6dde73 100644
--- a/modules/turtle-wow.lua
+++ b/modules/turtle-wow.lua
@@ -1,7 +1,7 @@
-- skip module initialization on every other client than turtle-wow
if not TargetHPText or not TargetHPPercText then return end
-pfUI:RegisterModule("turtle-wow", "vanilla", function ()
+pfUI:RegisterModule("turtle-wow", function ()
-- Manage Turtle WoW's GroupUI (Turtle_GroupUI addon) vs pfUI frames.
--
-- Turtle uses GroupClusterFrame1-8 for BOTH party AND raid display,
diff --git a/modules/uf_tukui.lua b/modules/uf_tukui.lua
index b5a8cb41..b0617d49 100644
--- a/modules/uf_tukui.lua
+++ b/modules/uf_tukui.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("uf_tukui", "vanilla:tbc", function ()
+pfUI:RegisterModule("uf_tukui", function ()
if C.unitframes.disable == "1" or C.unitframes.layout ~= "tukui" then return end
-- update player layout
diff --git a/modules/unitxp.lua b/modules/unitxp.lua
index cb59d60a..aec2a90a 100644
--- a/modules/unitxp.lua
+++ b/modules/unitxp.lua
@@ -2,7 +2,7 @@
-- Provides Line of Sight indicator, OS notifications, and enhanced targeting
-- Requires UnitXP_SP3 DLL: https://github.com/allfoxwy/UnitXP_SP3
-pfUI:RegisterModule("unitxp", "vanilla", function ()
+pfUI:RegisterModule("unitxp", function ()
-- Check if UnitXP is available
local hasUnitXP = pcall(UnitXP, "nop", "nop")
if not hasUnitXP then return end
diff --git a/modules/unlock.lua b/modules/unlock.lua
index d96bf3c2..d439daca 100644
--- a/modules/unlock.lua
+++ b/modules/unlock.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("unlock", "vanilla:tbc", function ()
+pfUI:RegisterModule("unlock", function ()
local rawborder, default_border = GetBorderSize()
-- grouped frames
diff --git a/modules/unusable.lua b/modules/unusable.lua
index b0eb8c80..5d39631e 100644
--- a/modules/unusable.lua
+++ b/modules/unusable.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("unusable", "vanilla:tbc", function ()
+pfUI:RegisterModule("unusable", function ()
if not pfUI.bag then return end
if C.appearance.bags.unusable ~= "1" then return end
diff --git a/modules/updatenotify.lua b/modules/updatenotify.lua
index e901a38a..d704f572 100644
--- a/modules/updatenotify.lua
+++ b/modules/updatenotify.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("updatenotify", "vanilla:tbc", function ()
+pfUI:RegisterModule("updatenotify", function ()
local alreadyshown = false
local localversion = tonumber(pfUI.version.major*10000 + pfUI.version.minor*100 + pfUI.version.fix)
local remoteversion = tonumber(pfUI_init.updateavailable) or 0
diff --git a/modules/whisperproxy.lua b/modules/whisperproxy.lua
index 470ca20e..308d34cc 100644
--- a/modules/whisperproxy.lua
+++ b/modules/whisperproxy.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("whisperproxy", "vanilla", function ()
+pfUI:RegisterModule("whisperproxy", function ()
if not pfUI.chat then return end
local proxy = CreateFrame("Button", "pfWhisperProxy", pfUI.chat.left.panelTop)
diff --git a/modules/xpbar.lua b/modules/xpbar.lua
index f6c35a88..a690cd2e 100644
--- a/modules/xpbar.lua
+++ b/modules/xpbar.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterModule("xpbar", "vanilla:tbc", function ()
+pfUI:RegisterModule("xpbar", function ()
local rawborder, default_border = GetBorderSize()
local parse_faction = SanitizePattern(FACTION_STANDING_INCREASED)
diff --git a/pfUI.lua b/pfUI.lua
index 686bd880..5ddb0c9a 100644
--- a/pfUI.lua
+++ b/pfUI.lua
@@ -81,10 +81,7 @@ end})
-- cache client version
local _, _, _, client = GetBuildInfo()
-client = client or 11200
-
-pfUI.expansion = "vanilla"
-pfUI.client = client
+pfUI.client = client or 11200
-- setup pfUI namespace
setmetatable(pfUI.env, {__index = getfenv(0)})
@@ -299,14 +296,8 @@ function pfUI:CheckNewModules()
end
end
-function pfUI:RegisterModule(name, a2, a3)
+function pfUI:RegisterModule(name, func)
if pfUI.module[name] then return end
- local hasv = type(a2) == "string"
- local func, version = hasv and a3 or a2, hasv and a2 or "vanilla:tbc:wotlk"
-
- -- check for client compatibility
- if not strfind(version, pfUI.expansion) then return end
-
pfUI.module[name] = func
table.insert(pfUI.modules, name)
if not pfUI.bootup then
@@ -314,14 +305,8 @@ function pfUI:RegisterModule(name, a2, a3)
end
end
-function pfUI:RegisterSkin(name, a2, a3)
+function pfUI:RegisterSkin(name, func)
if pfUI.skin[name] then return end
- local hasv = type(a2) == "string"
- local func, version = hasv and a3 or a2, hasv and a2 or "vanilla:tbc:wotlk"
-
- -- check for client compatibility
- if not strfind(version, pfUI.expansion) then return end
-
pfUI.skin[name] = func
table.insert(pfUI.skins, name)
if not pfUI.bootup then
diff --git a/skins/blizzard/auction.lua b/skins/blizzard/auction.lua
index 0cd64855..d1bb2711 100644
--- a/skins/blizzard/auction.lua
+++ b/skins/blizzard/auction.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Auctionhouse", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Auctionhouse", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
HookAddonOrVariable("Blizzard_AuctionUI", function()
diff --git a/skins/blizzard/barbershop.lua b/skins/blizzard/barbershop.lua
index 1a4ebdc6..8abaa67b 100644
--- a/skins/blizzard/barbershop.lua
+++ b/skins/blizzard/barbershop.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Barbershop", "vanilla", function ()
+pfUI:RegisterSkin("Barbershop", function ()
if not BarbershopFrame then return end
local rawborder, border = GetBorderSize()
diff --git a/skins/blizzard/battlefield.lua b/skins/blizzard/battlefield.lua
index 7ff50008..6d1d0d0a 100644
--- a/skins/blizzard/battlefield.lua
+++ b/skins/blizzard/battlefield.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Battlefield", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Battlefield", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/battlefield_minimap.lua b/skins/blizzard/battlefield_minimap.lua
index e0a21d5e..403cc5c5 100644
--- a/skins/blizzard/battlefield_minimap.lua
+++ b/skins/blizzard/battlefield_minimap.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Battlefield Minimap", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Battlefield Minimap", function ()
local rawborder, border = GetBorderSize()
HookAddonOrVariable("Blizzard_BattlefieldMinimap", function()
diff --git a/skins/blizzard/battlefield_score.lua b/skins/blizzard/battlefield_score.lua
index 922909b2..3e3bc524 100644
--- a/skins/blizzard/battlefield_score.lua
+++ b/skins/blizzard/battlefield_score.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Battlefield Score", "vanilla", function ()
+pfUI:RegisterSkin("Battlefield Score", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/character.lua b/skins/blizzard/character.lua
index 88d4775f..5b7713f5 100644
--- a/skins/blizzard/character.lua
+++ b/skins/blizzard/character.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Character", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Character", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/dressup.lua b/skins/blizzard/dressup.lua
index d618a36c..73f2281e 100644
--- a/skins/blizzard/dressup.lua
+++ b/skins/blizzard/dressup.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Dress Up Frame", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Dress Up Frame", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/ebc.lua b/skins/blizzard/ebc.lua
index 012c399e..4251d9ff 100644
--- a/skins/blizzard/ebc.lua
+++ b/skins/blizzard/ebc.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Everlook Broadcasting", "vanilla", function ()
+pfUI:RegisterSkin("Everlook Broadcasting", function ()
if not EBC_Minimap then return end
-- Minimap button border
diff --git a/skins/blizzard/friends.lua b/skins/blizzard/friends.lua
index e8e92685..53973c6a 100644
--- a/skins/blizzard/friends.lua
+++ b/skins/blizzard/friends.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Friends", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Friends", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
local maxtab = 4
diff --git a/skins/blizzard/game_menu.lua b/skins/blizzard/game_menu.lua
index c6beb760..1a8a05a0 100644
--- a/skins/blizzard/game_menu.lua
+++ b/skins/blizzard/game_menu.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Game Menu", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Game Menu", function ()
StripTextures(GameMenuFrame)
CreateBackdrop(GameMenuFrame, nil, true, .75)
CreateBackdropShadow(GameMenuFrame)
diff --git a/skins/blizzard/gossipquest.lua b/skins/blizzard/gossipquest.lua
index 183347d7..98be46c9 100644
--- a/skins/blizzard/gossipquest.lua
+++ b/skins/blizzard/gossipquest.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Gossip and Quest", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Gossip and Quest", function ()
local frames = {'Quest', 'Gossip'}
local panels = {'Greeting', 'Detail', 'Progress', 'Reward'}
local buttons = {
diff --git a/skins/blizzard/guild_registrar.lua b/skins/blizzard/guild_registrar.lua
index 44c1459d..4b8815f5 100644
--- a/skins/blizzard/guild_registrar.lua
+++ b/skins/blizzard/guild_registrar.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Guild Registrar", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Guild Registrar", function ()
StripTextures(GuildRegistrarFrame)
StripTextures(GuildRegistrarGreetingFrame)
CreateBackdrop(GuildRegistrarFrame, nil, nil, .75)
diff --git a/skins/blizzard/help.lua b/skins/blizzard/help.lua
index 87814c8d..27cd44e6 100644
--- a/skins/blizzard/help.lua
+++ b/skins/blizzard/help.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Help", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Help", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/itemtext.lua b/skins/blizzard/itemtext.lua
index 2455919a..0f13ec7c 100644
--- a/skins/blizzard/itemtext.lua
+++ b/skins/blizzard/itemtext.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Books", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Books", function ()
StripTextures(ItemTextFrame)
CreateBackdrop(ItemTextFrame, nil, nil, .75)
CreateBackdropShadow(ItemTextFrame)
diff --git a/skins/blizzard/keybindings.lua b/skins/blizzard/keybindings.lua
index 049aac20..8655ba92 100644
--- a/skins/blizzard/keybindings.lua
+++ b/skins/blizzard/keybindings.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("KeyBindings", "vanilla:tbc", function ()
+pfUI:RegisterSkin("KeyBindings", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/lft.lua b/skins/blizzard/lft.lua
index eeb54cb5..d80c2e17 100644
--- a/skins/blizzard/lft.lua
+++ b/skins/blizzard/lft.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Turtle LFT", "vanilla", function ()
+pfUI:RegisterSkin("Turtle LFT", function ()
-- Only run if the LFT addon is loaded
if not LFTFrame then return end
diff --git a/skins/blizzard/macro.lua b/skins/blizzard/macro.lua
index 89289551..fbd05d44 100644
--- a/skins/blizzard/macro.lua
+++ b/skins/blizzard/macro.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Macro", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Macro", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/mail.lua b/skins/blizzard/mail.lua
index 861c7d1f..9af83927 100644
--- a/skins/blizzard/mail.lua
+++ b/skins/blizzard/mail.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Mailbox", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Mailbox", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/merchant.lua b/skins/blizzard/merchant.lua
index ccceba7e..eed86a3f 100644
--- a/skins/blizzard/merchant.lua
+++ b/skins/blizzard/merchant.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Merchant", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Merchant", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/miscellaneous.lua b/skins/blizzard/miscellaneous.lua
index ea67ac3b..9395b43c 100644
--- a/skins/blizzard/miscellaneous.lua
+++ b/skins/blizzard/miscellaneous.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Stack Split", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Stack Split", function ()
StripTextures(StackSplitFrame)
CreateBackdrop(StackSplitFrame, nil, nil, .75)
CreateBackdropShadow(StackSplitFrame)
@@ -7,7 +7,7 @@ pfUI:RegisterSkin("Stack Split", "vanilla:tbc", function ()
SkinButton(StackSplitCancelButton)
end)
-pfUI:RegisterSkin("Coin Pickup", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Coin Pickup", function ()
StripTextures(CoinPickupFrame)
CreateBackdrop(CoinPickupFrame, nil, nil, .75)
CreateBackdropShadow(CoinPickupFrame)
@@ -16,7 +16,7 @@ pfUI:RegisterSkin("Coin Pickup", "vanilla:tbc", function ()
SkinButton(CoinPickupCancelButton)
end)
-pfUI:RegisterSkin("Color Picker", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Color Picker", function ()
CreateBackdrop(ColorPickerFrame)
CreateBackdropShadow(ColorPickerFrame)
@@ -32,7 +32,7 @@ pfUI:RegisterSkin("Color Picker", "vanilla:tbc", function ()
SkinSlider(OpacitySliderFrame)
end)
-pfUI:RegisterSkin("Opacity", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Opacity", function ()
CreateBackdrop(OpacityFrame, nil, true, .75)
CreateBackdropShadow(OpacityFrame)
@@ -41,7 +41,7 @@ pfUI:RegisterSkin("Opacity", "vanilla:tbc", function ()
OpacityFrameSlider:SetPoint("CENTER", 0, 0)
end)
-pfUI:RegisterSkin("Tutorial", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Tutorial", function ()
CreateBackdrop(TutorialFrame, nil, true, .75)
CreateBackdropShadow(TutorialFrame)
@@ -49,7 +49,7 @@ pfUI:RegisterSkin("Tutorial", "vanilla:tbc", function ()
SkinButton(TutorialFrameOkayButton)
end)
-pfUI:RegisterSkin("Quest Timer", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Quest Timer", function ()
CreateBackdrop(QuestTimerFrame, nil, nil, .75)
CreateBackdropShadow(QuestTimerFrame)
UpdateMovable(QuestTimerFrame, true)
diff --git a/skins/blizzard/options-new.lua b/skins/blizzard/options-new.lua
index 861e6b5d..d6672184 100644
--- a/skins/blizzard/options-new.lua
+++ b/skins/blizzard/options-new.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Options - New", "vanilla", function ()
+pfUI:RegisterSkin("Options - New", function ()
if not OptionsFrame or not OptionsFrameCategoryList then return end
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/options-sound.lua b/skins/blizzard/options-sound.lua
index d9a830fb..d3d2154f 100644
--- a/skins/blizzard/options-sound.lua
+++ b/skins/blizzard/options-sound.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Options - Sound", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Options - Sound", function ()
if OptionsFrameCategoryList then return end
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/options-video.lua b/skins/blizzard/options-video.lua
index 7cd85e89..99e03a9d 100644
--- a/skins/blizzard/options-video.lua
+++ b/skins/blizzard/options-video.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Options - Video", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Options - Video", function ()
-- on new PTR, OptionsFrameCategoryList exists meaning new combined panel is used
if OptionsFrameCategoryList then return end
local rawborder, border = GetBorderSize()
diff --git a/skins/blizzard/petition.lua b/skins/blizzard/petition.lua
index 4cf27687..407e1087 100644
--- a/skins/blizzard/petition.lua
+++ b/skins/blizzard/petition.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Petition", "vanilla", function ()
+pfUI:RegisterSkin("Petition", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/popup_dialogs.lua b/skins/blizzard/popup_dialogs.lua
index d795a7bf..8d80dcfe 100644
--- a/skins/blizzard/popup_dialogs.lua
+++ b/skins/blizzard/popup_dialogs.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Popup Dialogs", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Popup Dialogs", function ()
for i = 1, STATICPOPUP_NUMDIALOGS do
-- Compatibility
local money = _G["StaticPopup"..i.."MoneyInputFrame"]
diff --git a/skins/blizzard/professions.lua b/skins/blizzard/professions.lua
index e6479132..5608ac14 100644
--- a/skins/blizzard/professions.lua
+++ b/skins/blizzard/professions.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Profession", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Profession", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/questlog.lua b/skins/blizzard/questlog.lua
index e3933c6c..ba9037fc 100644
--- a/skins/blizzard/questlog.lua
+++ b/skins/blizzard/questlog.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Quest Log", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Quest Log", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/raidui.lua b/skins/blizzard/raidui.lua
index a35a3893..686a1e3d 100644
--- a/skins/blizzard/raidui.lua
+++ b/skins/blizzard/raidui.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("RaidUI", "vanilla", function ()
+pfUI:RegisterSkin("RaidUI", function ()
HookAddonOrVariable("Blizzard_RaidUI", function()
for i = 1, (NUM_RAID_GROUPS or 8) do
diff --git a/skins/blizzard/readycheck.lua b/skins/blizzard/readycheck.lua
index 51ec176b..30212ce3 100644
--- a/skins/blizzard/readycheck.lua
+++ b/skins/blizzard/readycheck.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Readycheck", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Readycheck", function ()
HookAddonOrVariable("Blizzard_RaidUI", function()
-- Compatibility
local update_func
diff --git a/skins/blizzard/spellbook.lua b/skins/blizzard/spellbook.lua
index e28383c3..4524e9ce 100644
--- a/skins/blizzard/spellbook.lua
+++ b/skins/blizzard/spellbook.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Spellbook", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Spellbook", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/stable.lua b/skins/blizzard/stable.lua
index 9e6e7a52..81583916 100644
--- a/skins/blizzard/stable.lua
+++ b/skins/blizzard/stable.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Pet Stable Master", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Pet Stable Master", function ()
StripTextures(PetStableFrame)
CreateBackdrop(PetStableFrame, nil, nil, .75)
CreateBackdropShadow(PetStableFrame)
diff --git a/skins/blizzard/survey.lua b/skins/blizzard/survey.lua
index 4ea12fec..cc36aca3 100644
--- a/skins/blizzard/survey.lua
+++ b/skins/blizzard/survey.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("GM Survey", "vanilla", function ()
+pfUI:RegisterSkin("GM Survey", function ()
HookAddonOrVariable("Blizzard_GMSurveyUI", function()
StripTextures(GMSurveyFrame)
CreateBackdrop(GMSurveyFrame, nil, nil, .75)
diff --git a/skins/blizzard/tabard.lua b/skins/blizzard/tabard.lua
index e8e48c21..afe75c16 100644
--- a/skins/blizzard/tabard.lua
+++ b/skins/blizzard/tabard.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Guild Tabard", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Guild Tabard", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/talents.lua b/skins/blizzard/talents.lua
index 7b22abf5..737dff7c 100644
--- a/skins/blizzard/talents.lua
+++ b/skins/blizzard/talents.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Talents", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Talents", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/taxi.lua b/skins/blizzard/taxi.lua
index fac03ade..8817f17e 100644
--- a/skins/blizzard/taxi.lua
+++ b/skins/blizzard/taxi.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Flightmaster", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Flightmaster", function ()
StripTextures(TaxiFrame)
CreateBackdrop(TaxiFrame, nil, nil, .75)
CreateBackdropShadow(TaxiFrame)
diff --git a/skins/blizzard/tooltips.lua b/skins/blizzard/tooltips.lua
index c050c541..44ff5097 100644
--- a/skins/blizzard/tooltips.lua
+++ b/skins/blizzard/tooltips.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Tooltips", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Tooltips", function ()
local rawborder, border = GetBorderSize()
local alpha = tonumber(C.tooltip.alpha)
diff --git a/skins/blizzard/trade.lua b/skins/blizzard/trade.lua
index fd6237d6..7fdbc8d7 100644
--- a/skins/blizzard/trade.lua
+++ b/skins/blizzard/trade.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Trade", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Trade", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/trainer.lua b/skins/blizzard/trainer.lua
index 62df6005..aebc9028 100644
--- a/skins/blizzard/trainer.lua
+++ b/skins/blizzard/trainer.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Trainer", "vanilla:tbc", function ()
+pfUI:RegisterSkin("Trainer", function ()
local rawborder, border = GetBorderSize()
local bpad = rawborder > 1 and border - GetPerfectPixel() or GetPerfectPixel()
diff --git a/skins/blizzard/transmog.lua b/skins/blizzard/transmog.lua
index ccd54dff..26bef677 100644
--- a/skins/blizzard/transmog.lua
+++ b/skins/blizzard/transmog.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Transmog", "vanilla", function ()
+pfUI:RegisterSkin("Transmog", function ()
if not TransmogFrame then return end
-- Strip all background/border textures from the main frame
diff --git a/skins/blizzard/turtle_shop.lua b/skins/blizzard/turtle_shop.lua
index 4419d3f9..92604134 100644
--- a/skins/blizzard/turtle_shop.lua
+++ b/skins/blizzard/turtle_shop.lua
@@ -1,4 +1,4 @@
-pfUI:RegisterSkin("Turtle Shop", "vanilla", function ()
+pfUI:RegisterSkin("Turtle Shop", function ()
if not ShopFrame then return end
local rawborder, border = GetBorderSize()