mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-28 02:16:02 +00:00
core: whitelist a bunch of modules for tbc
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("addons", function ()
|
||||
pfUI:RegisterModule("addons", 20400, function ()
|
||||
-- add main menu button
|
||||
local pfUIAddonButton = CreateFrame("Button", "GameMenuButtonPFUIAddOns", GameMenuFrame, "GameMenuButtonTemplate")
|
||||
pfUIAddonButton:SetPoint("TOP", 0, -32)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("afkcam", function ()
|
||||
pfUI:RegisterModule("afkcam", 20400, function ()
|
||||
local MARKED_AFK_CAPTURE = string.gsub(_G.MARKED_AFK_MESSAGE, "%%s", "(.+)")
|
||||
local social_chats = {
|
||||
"CHAT_MSG_SAY",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("autoshift", function ()
|
||||
pfUI:RegisterModule("autoshift", 11200, function ()
|
||||
pfUI.autoshift = CreateFrame("Frame")
|
||||
pfUI.autoshift:RegisterEvent("UI_ERROR_MESSAGE")
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
pfUI:RegisterModule("autovendor", function ()
|
||||
pfUI:RegisterModule("autovendor", 20400, function ()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
local bpad = border > 1 and border - 1 or 1
|
||||
|
||||
|
||||
local scanlist = {}
|
||||
|
||||
local function RepairItems()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("bubbles", function ()
|
||||
pfUI:RegisterModule("bubbles", 20400, function ()
|
||||
|
||||
local alpha = tonumber(C.chat.bubbles.alpha)
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("buff", function ()
|
||||
pfUI:RegisterModule("buff", 20400, function ()
|
||||
-- Hide Blizz
|
||||
BuffFrame:Hide()
|
||||
BuffFrame:UnregisterAllEvents()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("castbar", function ()
|
||||
pfUI:RegisterModule("castbar", 20400, 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
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("chat", function ()
|
||||
pfUI:RegisterModule("chat", 20400, 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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("chatcopy", function ()
|
||||
pfUI:RegisterModule("chatcopy", 20400, function ()
|
||||
-- temporary till the new API is merged
|
||||
local function CreateScrollFrame(name, parent)
|
||||
local f = CreateFrame("ScrollFrame", name, parent)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
pfUI:RegisterModule("cooldown", function ()
|
||||
|
||||
pfUI:RegisterModule("cooldown", 20400, function ()
|
||||
-- cache values
|
||||
local lowcolor = {strsplit(",", C.appearance.cd.lowcolor)}
|
||||
local normalcolor = {strsplit(",", C.appearance.cd.normalcolor)}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("easteregg", function ()
|
||||
pfUI:RegisterModule("easteregg", 20400, 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("farmmode", function ()
|
||||
pfUI:RegisterModule("farmmode", 20400, function ()
|
||||
local function ToggleFarmMode()
|
||||
if pfUI.farmmap:IsShown() then
|
||||
pfUI.farmmap:Hide()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("feigndeath", function ()
|
||||
pfUI:RegisterModule("feigndeath", 20400, function ()
|
||||
local cache = { }
|
||||
local scanner = libtipscan:GetScanner("feigndeath")
|
||||
local healthbar = scanner:GetChildren()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("firstrun", function ()
|
||||
pfUI:RegisterModule("firstrun", 20400, function ()
|
||||
pfUI.firstrun = CreateFrame("Frame", "pfFirstRunWizard", UIParent)
|
||||
pfUI.firstrun.steps = {}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("gui", function ()
|
||||
pfUI:RegisterModule("gui", 20400, function ()
|
||||
local Reload, U, PrepareDropDownButton, CreateConfig, CreateTabFrame, CreateArea, CreateGUIEntry, EntryUpdate
|
||||
|
||||
-- "searchDB" gets populated when CreateConfig is called. The table holds
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("infight", function ()
|
||||
pfUI:RegisterModule("infight", 20400, function ()
|
||||
local default_border = C.appearance.border.default
|
||||
if C.appearance.border.unitframes ~= "-1" then
|
||||
default_border = C.appearance.border.unitframes
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("map", function ()
|
||||
pfUI:RegisterModule("map", 20400, function ()
|
||||
|
||||
function _G.ToggleWorldMap()
|
||||
if WorldMapFrame:IsShown() then
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("minimap", function ()
|
||||
pfUI:RegisterModule("minimap", 20400, function ()
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
MinimapToggleButton:Hide()
|
||||
MinimapBorderTop:Hide()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("nameplates", function ()
|
||||
pfUI:RegisterModule("nameplates", 20400, function ()
|
||||
local font = C.nameplates.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
|
||||
local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("panel", function()
|
||||
pfUI:RegisterModule("panel", 20400, function()
|
||||
-- initialize gold cache if not yet happened
|
||||
pfUI_cache["gold"] = pfUI_cache["gold"] or {}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("share", function ()
|
||||
pfUI:RegisterModule("share", 20400, function ()
|
||||
local function serialize(tbl, comp, name, ignored, spacing)
|
||||
local spacing = spacing or ""
|
||||
local match = nil
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("skin", function ()
|
||||
pfUI:RegisterModule("skin", 20400, function ()
|
||||
-- align UIParent panels
|
||||
pfUI.panelalign = CreateFrame("Frame", "pfUIParentPanelAlign", UIParent)
|
||||
pfUI.panelalign:SetScript("OnUpdate", function()
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("tooltip", function ()
|
||||
pfUI:RegisterModule("tooltip", 20400, function ()
|
||||
if C.tooltip.position == "cursor" then
|
||||
function _G.GameTooltip_SetDefaultAnchor(tooltip, parent)
|
||||
tooltip:SetOwner(parent, "ANCHOR_CURSOR")
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("unlock", function ()
|
||||
pfUI:RegisterModule("unlock", 20400, function ()
|
||||
-- grouped frames
|
||||
local clusters = {
|
||||
-- Name Shift Ctrl
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("updatenotify", function ()
|
||||
pfUI:RegisterModule("updatenotify", 20400, 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
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterModule("xpbar", function ()
|
||||
pfUI:RegisterModule("xpbar", 20400, function ()
|
||||
pfUI.xp = CreateFrame("Frame",nil, UIParent)
|
||||
pfUI.xp:SetWidth(5)
|
||||
if pfUI.chat then
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
pfUI:RegisterSkin("Game Menu", function ()
|
||||
pfUI:RegisterSkin("Game Menu", 20400, function ()
|
||||
StripTextures(GameMenuFrame)
|
||||
CreateBackdrop(GameMenuFrame, nil, true, .75)
|
||||
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 2)
|
||||
|
||||
Reference in New Issue
Block a user