mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
phase 1 removing tbc
This commit is contained in:
@@ -21,9 +21,6 @@ pfUI:RegisterModule("actionbar", "vanilla", function ()
|
||||
local drag_await
|
||||
local drag_active
|
||||
local function AssumeButtonDrag()
|
||||
-- skip during combat
|
||||
if InCombatLockdown and InCombatLockdown() then return end
|
||||
|
||||
-- skip if keydown press is not enabled
|
||||
if C.bars.keydown ~= "1" then return end
|
||||
|
||||
@@ -285,9 +282,6 @@ pfUI:RegisterModule("actionbar", "vanilla", function ()
|
||||
end
|
||||
|
||||
local function ButtonDrag(self)
|
||||
-- skip during combat
|
||||
if InCombatLockdown and InCombatLockdown() then return end
|
||||
|
||||
local self = self or this
|
||||
|
||||
if _G.LOCK_ACTIONBAR == "1" and not (pfUI_config.bars.shiftdrag == "1" and IsShiftKeyDown()) then return end
|
||||
@@ -300,9 +294,6 @@ pfUI:RegisterModule("actionbar", "vanilla", function ()
|
||||
end
|
||||
|
||||
local function ButtonDragStop(self)
|
||||
-- skip during combat
|
||||
if InCombatLockdown and InCombatLockdown() then return end
|
||||
|
||||
local self = self or this
|
||||
|
||||
if MacroFrame_SaveMacro then
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
pfUI:RegisterModule("combatlogfix", "tbc", function ()
|
||||
-- Fixes the combatlog break bugs that exist since patch 2.4 by simply clearing the whole log
|
||||
-- on every update. This is required in order to receive new log events. Otherwise, addons like
|
||||
-- Omen or Recount won't work and simply don't receive any new data at a given time.
|
||||
local combatlog = CreateFrame("Frame", "pfCombatLogFix", UIParent)
|
||||
combatlog:SetScript("OnUpdate", CombatLogClearEntries)
|
||||
end)
|
||||
+2
-2
@@ -105,8 +105,8 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
|
||||
this.tick = GetTime() + 1.0
|
||||
this.pendingUpdate = nil
|
||||
|
||||
-- don't proceed without raid or during combat
|
||||
if not UnitInRaid("player") or (InCombatLockdown and InCombatLockdown()) then return end
|
||||
-- don't proceed without raid
|
||||
if not UnitInRaid("player") then return end
|
||||
|
||||
-- clear all existing frames
|
||||
for i=1, maxraid do SetRaidIndex(pfUI.uf.raid[i], 0) end
|
||||
|
||||
@@ -484,12 +484,6 @@ pfUI:RegisterModule("unlock", "vanilla:tbc", function ()
|
||||
|
||||
pfUI.unlock:SetScript("OnShow", function()
|
||||
if this.skip then this.skip = nil return end
|
||||
if InCombatLockdown and InCombatLockdown() then
|
||||
DEFAULT_CHAT_FRAME:AddMessage(ERR_NOT_IN_COMBAT, 1, .2, .2)
|
||||
this.skip = true
|
||||
this:Hide()
|
||||
return
|
||||
end
|
||||
|
||||
this.grid = this.grid or DrawGrid()
|
||||
|
||||
@@ -510,11 +504,6 @@ pfUI:RegisterModule("unlock", "vanilla:tbc", function ()
|
||||
|
||||
pfUI.unlock:SetScript("OnHide", function()
|
||||
if this.skip then this.skip = nil return end
|
||||
if InCombatLockdown and InCombatLockdown() then
|
||||
this.skip = true
|
||||
this:Show()
|
||||
return
|
||||
end
|
||||
|
||||
for name, frame in pairs(pfUI.movables) do
|
||||
local frame = frame or _G[name]
|
||||
|
||||
Reference in New Issue
Block a user