mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 11:30:48 +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
|
-- add main menu button
|
||||||
local pfUIAddonButton = CreateFrame("Button", "GameMenuButtonPFUIAddOns", GameMenuFrame, "GameMenuButtonTemplate")
|
local pfUIAddonButton = CreateFrame("Button", "GameMenuButtonPFUIAddOns", GameMenuFrame, "GameMenuButtonTemplate")
|
||||||
pfUIAddonButton:SetPoint("TOP", 0, -32)
|
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 MARKED_AFK_CAPTURE = string.gsub(_G.MARKED_AFK_MESSAGE, "%%s", "(.+)")
|
||||||
local social_chats = {
|
local social_chats = {
|
||||||
"CHAT_MSG_SAY",
|
"CHAT_MSG_SAY",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("autoshift", function ()
|
pfUI:RegisterModule("autoshift", 11200, function ()
|
||||||
pfUI.autoshift = CreateFrame("Frame")
|
pfUI.autoshift = CreateFrame("Frame")
|
||||||
pfUI.autoshift:RegisterEvent("UI_ERROR_MESSAGE")
|
pfUI.autoshift:RegisterEvent("UI_ERROR_MESSAGE")
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("autovendor", function ()
|
pfUI:RegisterModule("autovendor", 20400, function ()
|
||||||
local border = tonumber(pfUI_config.appearance.border.default)
|
local border = tonumber(pfUI_config.appearance.border.default)
|
||||||
local bpad = border > 1 and border - 1 or 1
|
local bpad = border > 1 and border - 1 or 1
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("bubbles", function ()
|
pfUI:RegisterModule("bubbles", 20400, function ()
|
||||||
|
|
||||||
local alpha = tonumber(C.chat.bubbles.alpha)
|
local alpha = tonumber(C.chat.bubbles.alpha)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("buff", function ()
|
pfUI:RegisterModule("buff", 20400, function ()
|
||||||
-- Hide Blizz
|
-- Hide Blizz
|
||||||
BuffFrame:Hide()
|
BuffFrame:Hide()
|
||||||
BuffFrame:UnregisterAllEvents()
|
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 = 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
|
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 = 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 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
|
-- temporary till the new API is merged
|
||||||
local function CreateScrollFrame(name, parent)
|
local function CreateScrollFrame(name, parent)
|
||||||
local f = CreateFrame("ScrollFrame", name, parent)
|
local f = CreateFrame("ScrollFrame", name, parent)
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
pfUI:RegisterModule("cooldown", function ()
|
pfUI:RegisterModule("cooldown", 20400, function ()
|
||||||
|
|
||||||
-- cache values
|
-- cache values
|
||||||
local lowcolor = {strsplit(",", C.appearance.cd.lowcolor)}
|
local lowcolor = {strsplit(",", C.appearance.cd.lowcolor)}
|
||||||
local normalcolor = {strsplit(",", C.appearance.cd.normalcolor)}
|
local normalcolor = {strsplit(",", C.appearance.cd.normalcolor)}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("easteregg", function ()
|
pfUI:RegisterModule("easteregg", 20400, function ()
|
||||||
-- merry x-mas!
|
-- merry x-mas!
|
||||||
if date("%m%d") == "1224" or date("%m%d") == "1225" then
|
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
|
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()
|
local function ToggleFarmMode()
|
||||||
if pfUI.farmmap:IsShown() then
|
if pfUI.farmmap:IsShown() then
|
||||||
pfUI.farmmap:Hide()
|
pfUI.farmmap:Hide()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("feigndeath", function ()
|
pfUI:RegisterModule("feigndeath", 20400, function ()
|
||||||
local cache = { }
|
local cache = { }
|
||||||
local scanner = libtipscan:GetScanner("feigndeath")
|
local scanner = libtipscan:GetScanner("feigndeath")
|
||||||
local healthbar = scanner:GetChildren()
|
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 = CreateFrame("Frame", "pfFirstRunWizard", UIParent)
|
||||||
pfUI.firstrun.steps = {}
|
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
|
local Reload, U, PrepareDropDownButton, CreateConfig, CreateTabFrame, CreateArea, CreateGUIEntry, EntryUpdate
|
||||||
|
|
||||||
-- "searchDB" gets populated when CreateConfig is called. The table holds
|
-- "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
|
local default_border = C.appearance.border.default
|
||||||
if C.appearance.border.unitframes ~= "-1" then
|
if C.appearance.border.unitframes ~= "-1" then
|
||||||
default_border = C.appearance.border.unitframes
|
default_border = C.appearance.border.unitframes
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("map", function ()
|
pfUI:RegisterModule("map", 20400, function ()
|
||||||
|
|
||||||
function _G.ToggleWorldMap()
|
function _G.ToggleWorldMap()
|
||||||
if WorldMapFrame:IsShown() then
|
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)
|
local border = tonumber(pfUI_config.appearance.border.default)
|
||||||
MinimapToggleButton:Hide()
|
MinimapToggleButton:Hide()
|
||||||
MinimapBorderTop: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 = 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
|
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
|
-- initialize gold cache if not yet happened
|
||||||
pfUI_cache["gold"] = pfUI_cache["gold"] or {}
|
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 function serialize(tbl, comp, name, ignored, spacing)
|
||||||
local spacing = spacing or ""
|
local spacing = spacing or ""
|
||||||
local match = nil
|
local match = nil
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("skin", function ()
|
pfUI:RegisterModule("skin", 20400, function ()
|
||||||
-- align UIParent panels
|
-- align UIParent panels
|
||||||
pfUI.panelalign = CreateFrame("Frame", "pfUIParentPanelAlign", UIParent)
|
pfUI.panelalign = CreateFrame("Frame", "pfUIParentPanelAlign", UIParent)
|
||||||
pfUI.panelalign:SetScript("OnUpdate", function()
|
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
|
if C.tooltip.position == "cursor" then
|
||||||
function _G.GameTooltip_SetDefaultAnchor(tooltip, parent)
|
function _G.GameTooltip_SetDefaultAnchor(tooltip, parent)
|
||||||
tooltip:SetOwner(parent, "ANCHOR_CURSOR")
|
tooltip:SetOwner(parent, "ANCHOR_CURSOR")
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("unlock", function ()
|
pfUI:RegisterModule("unlock", 20400, function ()
|
||||||
-- grouped frames
|
-- grouped frames
|
||||||
local clusters = {
|
local clusters = {
|
||||||
-- Name Shift Ctrl
|
-- Name Shift Ctrl
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterModule("updatenotify", function ()
|
pfUI:RegisterModule("updatenotify", 20400, function ()
|
||||||
local alreadyshown = false
|
local alreadyshown = false
|
||||||
local localversion = tonumber(pfUI.version.major*10000 + pfUI.version.minor*100 + pfUI.version.fix)
|
local localversion = tonumber(pfUI.version.major*10000 + pfUI.version.minor*100 + pfUI.version.fix)
|
||||||
local remoteversion = tonumber(pfUI_init.updateavailable) or 0
|
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 = CreateFrame("Frame",nil, UIParent)
|
||||||
pfUI.xp:SetWidth(5)
|
pfUI.xp:SetWidth(5)
|
||||||
if pfUI.chat then
|
if pfUI.chat then
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pfUI:RegisterSkin("Game Menu", function ()
|
pfUI:RegisterSkin("Game Menu", 20400, function ()
|
||||||
StripTextures(GameMenuFrame)
|
StripTextures(GameMenuFrame)
|
||||||
CreateBackdrop(GameMenuFrame, nil, true, .75)
|
CreateBackdrop(GameMenuFrame, nil, true, .75)
|
||||||
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 2)
|
GameMenuFrame:SetHeight(GameMenuFrame:GetHeight() + 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user