mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
cleanup
This commit is contained in:
@@ -448,8 +448,8 @@ end
|
||||
|
||||
local function IsInShapeshiftForm()
|
||||
for i = 1, GetNumShapeshiftForms() do
|
||||
local texture, _, active = GetShapeshiftFormInfo(i)
|
||||
if i ~= 5 and active ~= nil then
|
||||
local _, _, active = GetShapeshiftFormInfo(i)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,11 +7,9 @@ local _G = _G
|
||||
local ceil, mod = math.ceil, math.mod
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetShapeshiftForm = GetShapeshiftForm
|
||||
local GetNumShapeshiftForms = GetNumShapeshiftForms
|
||||
local GetShapeshiftFormCooldown = GetShapeshiftFormCooldown
|
||||
local GetShapeshiftFormInfo = GetShapeshiftFormInfo
|
||||
local GetSpellTexture = GetSpellTexture
|
||||
local GetBindingKey = GetBindingKey
|
||||
local NUM_SHAPESHIFT_SLOTS = NUM_SHAPESHIFT_SLOTS
|
||||
|
||||
@@ -32,9 +30,8 @@ function AB:SPELL_UPDATE_COOLDOWN()
|
||||
end
|
||||
|
||||
function AB:StyleShapeShift()
|
||||
local numForms = GetNumShapeshiftForms()
|
||||
local texture, name, isActive, isCastable, _
|
||||
local buttonName, button, icon, cooldown
|
||||
local texture, name, isActive, isCastable, _
|
||||
local numForms = GetNumShapeshiftForms()
|
||||
|
||||
for i = 1, NUM_SHAPESHIFT_SLOTS do
|
||||
|
||||
@@ -5,7 +5,7 @@ local AB = E:GetModule("ActionBars");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local find, format, upper, sub = string.find, string.format, string.upper, string.sub
|
||||
local floor, mod = math.floor, math.mod
|
||||
local floor = math.floor
|
||||
local select, tonumber, pairs, getn = select, tonumber, pairs, getn
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
|
||||
@@ -4,7 +4,6 @@ local LSM = LibStub("LibSharedMedia-3.0");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local GetTime = GetTime
|
||||
local _G = _G
|
||||
local unpack, select, pairs, ipairs = unpack, select, pairs, ipairs
|
||||
local floor, min, max, huge = math.floor, math.min, math.max, math.huge
|
||||
|
||||
@@ -8,7 +8,7 @@ local LIP = LibStub("ItemPrice-1.1", true);
|
||||
local _G = _G
|
||||
local type, ipairs, pairs, unpack, select, assert, pcall = type, ipairs, pairs, unpack, select, assert, pcall
|
||||
local tinsert = table.insert
|
||||
local floor, ceil = math.floor, math.ceil
|
||||
local floor = math.floor
|
||||
local len, gsub, sub, find, match = string.len, string.gsub, string.sub, string.find, string.match
|
||||
--WoW API / Variables
|
||||
local BankFrameItemButton_OnUpdate = BankFrameItemButton_OnUpdate
|
||||
|
||||
@@ -19,7 +19,6 @@ local GetContainerItemLink = GetContainerItemLink
|
||||
local PickupContainerItem = PickupContainerItem
|
||||
local SplitContainerItem = SplitContainerItem
|
||||
local GetContainerNumSlots = GetContainerNumSlots
|
||||
local GetContainerNumFreeSlots = GetContainerNumFreeSlots
|
||||
local ContainerIDToInventoryID = ContainerIDToInventoryID
|
||||
local GetInventoryItemLink = GetInventoryItemLink
|
||||
local CursorHasItem = CursorHasItem
|
||||
@@ -60,7 +59,6 @@ local bagGroups = {}
|
||||
local initialOrder = {}
|
||||
local itemTypes, itemSubTypes
|
||||
local bagSorted, bagLocked = {}, {}
|
||||
local bagRole
|
||||
local moves = {}
|
||||
local targetItems = {}
|
||||
local sourceUsed = {}
|
||||
@@ -254,7 +252,6 @@ local function IterateForwards(bagList, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
bagRole = nil
|
||||
end
|
||||
|
||||
local function IterateBackwards(bagList, i)
|
||||
@@ -274,11 +271,9 @@ local function IterateBackwards(bagList, i)
|
||||
end
|
||||
end
|
||||
end
|
||||
bagRole = nil
|
||||
end
|
||||
|
||||
function B.IterateBags(bagList, reverse, role)
|
||||
bagRole = role
|
||||
return (reverse and IterateBackwards or IterateForwards), bagList, 0
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Blizzard");
|
||||
|
||||
--Cache global variables
|
||||
@@ -27,7 +27,7 @@ function E:PostAlertMove()
|
||||
|
||||
local rollBars = E:GetModule("Misc").RollBars
|
||||
if E.private.general.lootRoll then
|
||||
local lastframe, lastShownFrame
|
||||
local lastframe
|
||||
for i, frame in pairs(rollBars) do
|
||||
frame:ClearAllPoints()
|
||||
if i ~= 1 then
|
||||
@@ -44,13 +44,9 @@ function E:PostAlertMove()
|
||||
end
|
||||
end
|
||||
lastframe = frame
|
||||
|
||||
if frame:IsShown() then
|
||||
lastShownFrame = frame
|
||||
end
|
||||
end
|
||||
elseif E.private.skins.blizzard.enable and E.private.skins.blizzard.lootRoll then
|
||||
local lastframe, lastShownFrame
|
||||
local lastframe
|
||||
for i = 1, NUM_GROUP_LOOT_FRAMES do
|
||||
local frame = _G["GroupLootFrame" .. i]
|
||||
if frame then
|
||||
@@ -69,10 +65,6 @@ function E:PostAlertMove()
|
||||
end
|
||||
end
|
||||
lastframe = frame
|
||||
|
||||
if frame:IsShown() then
|
||||
lastShownFrame = frame
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,77 +1,15 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:NewModule("Blizzard", "AceEvent-3.0", "AceHook-3.0");
|
||||
|
||||
local GetNumQuestChoices = GetNumQuestChoices
|
||||
local GetNumQuestLogChoices = GetNumQuestLogChoices
|
||||
local GetQuestLogRewardHonor = GetQuestLogRewardHonor
|
||||
local GetQuestLogRewardMoney = GetQuestLogRewardMoney
|
||||
local GetQuestLogRewardSpell = GetQuestLogRewardSpell
|
||||
local GetRewardHonor = GetRewardHonor
|
||||
local GetRewardMoney = GetRewardMoney
|
||||
local GetRewardSpell = GetRewardSpell
|
||||
|
||||
E.Blizzard = B
|
||||
|
||||
function B:Initialize()
|
||||
self:AlertMovers()
|
||||
self:EnhanceColorPicker()
|
||||
-- self:KillBlizzard()
|
||||
self:PositionCaptureBar()
|
||||
self:PositionDurabilityFrame()
|
||||
self:PositionGMFrames()
|
||||
self:MoveWatchFrame()
|
||||
|
||||
--[[self:RawHook("CombatConfig_Colorize_Update", function()
|
||||
if not CHATCONFIG_SELECTED_FILTER_SETTINGS then return end
|
||||
self.hooks.CombatConfig_Colorize_Update()
|
||||
end, true)
|
||||
|
||||
hooksecurefunc("QuestFrameItems_Update", function(questState)
|
||||
local spacerFrame, money, honor, numQuestRewards, numQuestChoices, numQuestSpellRewards
|
||||
|
||||
if questState == "QuestLog" then
|
||||
spacerFrame = QuestLogSpacerFrame
|
||||
money, honor, numQuestRewards, numQuestChoices, numQuestSpellRewards = GetQuestLogRewardMoney(), GetQuestLogRewardHonor(), GetNumQuestLogRewards(), GetNumQuestLogChoices(), GetQuestLogRewardSpell()
|
||||
else
|
||||
spacerFrame = QuestSpacerFrame
|
||||
money, honor, numQuestRewards, numQuestChoices, numQuestSpellRewards = GetRewardMoney(), GetRewardHonor(), GetNumQuestRewards(), GetNumQuestChoices(), GetRewardSpell()
|
||||
end
|
||||
|
||||
if money == 0 and honor > 0 and (numQuestRewards > 0 or numQuestChoices > 0 or numQuestSpellRewards) then
|
||||
numQuestSpellRewards = numQuestSpellRewards and 1 or 0
|
||||
local rewardsCount = numQuestRewards + numQuestChoices + numQuestSpellRewards
|
||||
local honorFrame = _G[questState.."HonorFrame"]
|
||||
|
||||
if numQuestRewards > 0 then
|
||||
honorFrame:ClearAllPoints()
|
||||
honorFrame:SetPoint("TOPLEFT", questState.."Item"..rewardsCount, "BOTTOMLEFT", 3, 0)
|
||||
|
||||
QuestFrame_SetAsLastShown(questState.."HonorFrame", spacerFrame)
|
||||
else
|
||||
local questItemReceiveText = _G[questState.."ItemReceiveText"]
|
||||
honorFrame:ClearAllPoints()
|
||||
honorFrame:SetPoint("TOPLEFT", questItemReceiveText, "BOTTOMLEFT", 0, -5)
|
||||
|
||||
if numQuestSpellRewards > 0 then
|
||||
questItemReceiveText:SetText(REWARD_ITEMS)
|
||||
questItemReceiveText:SetPoint("TOPLEFT", questState.."Item"..rewardsCount, "BOTTOMLEFT", 3, 15)
|
||||
elseif numQuestChoices > 0 then
|
||||
questItemReceiveText:SetText(REWARD_ITEMS)
|
||||
local index = numQuestChoices
|
||||
if mod(index, 2) == 0 then
|
||||
index = index - 1
|
||||
end
|
||||
|
||||
questItemReceiveText:SetPoint("TOPLEFT", questState.."Item"..index, "BOTTOMLEFT", 3, 15)
|
||||
else
|
||||
questItemReceiveText:SetText(REWARD_ITEMS_ONLY)
|
||||
questItemReceiveText:SetPoint("TOPLEFT", questState.."RewardTitleText", "BOTTOMLEFT", 3, 15)
|
||||
end
|
||||
|
||||
QuestFrame_SetAsLastShown(questItemReceiveText, spacerFrame)
|
||||
end
|
||||
end
|
||||
end)--]]
|
||||
end
|
||||
|
||||
local function InitializeCallback()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Blizzard");
|
||||
|
||||
--Cache global variables
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
--[[
|
||||
Credit to Jaslm, most of this code is his from the addon ColorPickerPlus
|
||||
]]
|
||||
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Blizzard");
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local tonumber, collectgarbage = tonumber, collectgarbage
|
||||
local collectgarbage = collectgarbage
|
||||
local floor = math.floor
|
||||
local format = string.format
|
||||
--WoW API / Variables
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Blizzard");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
--WoW API / Variables
|
||||
|
||||
function B:PositionDurabilityFrame()
|
||||
DurabilityFrame:SetFrameStrata("HIGH")
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Blizzard");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
--WoW API / Variables
|
||||
|
||||
function B:PositionGMFrames()
|
||||
TicketStatusFrame:ClearAllPoints()
|
||||
TicketStatusFrame:SetPoint("TOPLEFT", E.UIParent, "TOPLEFT", 250, -5)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local E, L, DF = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local B = E:GetModule("Blizzard");
|
||||
|
||||
--Cache global variables
|
||||
@@ -6,7 +6,6 @@ local B = E:GetModule("Blizzard");
|
||||
local min = math.min
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
local GetScreenWidth = GetScreenWidth
|
||||
local GetScreenHeight = GetScreenHeight
|
||||
|
||||
local WatchFrameHolder = CreateFrame("Frame", "WatchFrameHolder", E.UIParent)
|
||||
|
||||
@@ -667,7 +667,7 @@ function CH:ChatFrame_OnEvent(self, event, arg1, arg2, arg3, arg4, arg5, arg6, a
|
||||
if event == "UPDATE_CHAT_WINDOWS" then
|
||||
local _, fontSize, _, _, _, _, shown = GetChatWindowInfo(self:GetID())
|
||||
if fontSize > 0 then
|
||||
local fontFile, unused, fontFlags = self:GetFont()
|
||||
local fontFile, _, fontFlags = self:GetFont()
|
||||
self:SetFont(fontFile, fontSize, fontFlags)
|
||||
end
|
||||
if shown then
|
||||
@@ -1028,7 +1028,8 @@ function CH:SetupChat()
|
||||
|
||||
local editbox = _G["ChatFrameEditBox"]
|
||||
if not editbox.isSkinned then
|
||||
local a, b, c = select(6, editbox:GetRegions()) E:Kill(a) E:Kill(b) E:Kill(c)
|
||||
local a, b, c = select(6, editbox:GetRegions())
|
||||
E:Kill(a) E:Kill(b) E:Kill(c)
|
||||
E:SetTemplate(editbox, "Default", true)
|
||||
editbox:SetAltArrowKeyMode(CH.db.useAltKey)
|
||||
editbox:SetAllPoints(LeftChatDataPanel)
|
||||
|
||||
@@ -8,7 +8,6 @@ local _G = _G
|
||||
local format = format
|
||||
--WoW API / Variables
|
||||
local GetWatchedFactionInfo, GetNumFactions, GetFactionInfo = GetWatchedFactionInfo, GetNumFactions, GetFactionInfo
|
||||
local InCombatLockdown = InCombatLockdown
|
||||
local FACTION_BAR_COLORS = FACTION_BAR_COLORS
|
||||
local REPUTATION, STANDING = REPUTATION, STANDING
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ local format, join = string.format, string.join
|
||||
local abs = math.abs
|
||||
--WoW API / Variables
|
||||
local GetInventorySlotInfo = GetInventorySlotInfo
|
||||
local GetInventoryItemID = GetInventoryItemID
|
||||
local GetItemInfo = GetItemInfo
|
||||
local UnitLevel = UnitLevel
|
||||
local GetDodgeChance = GetDodgeChance
|
||||
|
||||
@@ -8,7 +8,6 @@ local pairs, type, error = pairs, type, error
|
||||
local len = string.len
|
||||
|
||||
local CreateFrame = CreateFrame
|
||||
local InCombatLockdown = InCombatLockdown
|
||||
local IsInInstance = IsInInstance
|
||||
|
||||
function DT:Initialize()
|
||||
|
||||
@@ -4,10 +4,10 @@ local DT = E:GetModule("DataTexts");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local next, unpack = next, unpack
|
||||
local time = time
|
||||
local format, gsub, join = string.format, string.gsub, string.join
|
||||
local abs = math.abs
|
||||
local getn, insert = table.getn, table.insert
|
||||
local time, utf8sub = time, string.utf8sub
|
||||
local getn, tinsert = table.getn, table.insert
|
||||
--WoW API / Variables
|
||||
local GetGameTime = GetGameTime
|
||||
local GetNumSavedInstances = GetNumSavedInstances
|
||||
@@ -46,7 +46,7 @@ local function OnEnter(self)
|
||||
for i = 1, GetNumSavedInstances() do
|
||||
name, _, reset = GetSavedInstanceInfo(i)
|
||||
if name then
|
||||
insert(lockedInstances["raids"], {name, reset})
|
||||
tinsert(lockedInstances["raids"], {name, reset})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -75,14 +75,6 @@ local function OnUpdate(self, t)
|
||||
|
||||
if int > 0 then return end
|
||||
|
||||
if IsAddOnLoaded("TimeManager") then -- https://github.com/gashole/TimeManager
|
||||
if TimeManagerClockButton.alarmFiring then
|
||||
-- E:Flash(self)
|
||||
else
|
||||
-- E:StopFlash(self)
|
||||
end
|
||||
end
|
||||
|
||||
self.text:SetText(gsub(gsub(BetterDate(E.db.datatexts.timeFormat.." "..E.db.datatexts.dateFormat, time()), ":", timeDisplayFormat), "%s", dateDisplayFormat))
|
||||
|
||||
lastPanel = self
|
||||
|
||||
@@ -11,11 +11,9 @@ local CreateFrame = CreateFrame
|
||||
local ToggleCharacter = ToggleCharacter
|
||||
local ToggleFrame = ToggleFrame
|
||||
local ToggleFriendsFrame = ToggleFriendsFrame
|
||||
local IsAddOnLoaded = IsAddOnLoaded
|
||||
local ToggleHelpFrame = ToggleHelpFrame
|
||||
local GetZonePVPInfo = GetZonePVPInfo
|
||||
local IsShiftKeyDown = IsShiftKeyDown
|
||||
local ToggleDropDownMenu = ToggleDropDownMenu
|
||||
local Minimap_OnClick = Minimap_OnClick
|
||||
local GetMinimapZoneText = GetMinimapZoneText
|
||||
|
||||
|
||||
@@ -11,10 +11,8 @@ local gsub = string.gsub
|
||||
local CloseLoot = CloseLoot
|
||||
local CursorOnUpdate = CursorOnUpdate
|
||||
local CursorUpdate = CursorUpdate
|
||||
local GetCVar = GetCVar
|
||||
local GetCursorPosition = GetCursorPosition
|
||||
local GetLootSlotInfo = GetLootSlotInfo
|
||||
local GetLootSlotLink = GetLootSlotLink
|
||||
local GetNumLootItems = GetNumLootItems
|
||||
local GiveMasterLoot = GiveMasterLoot
|
||||
local IsFishingLoot = IsFishingLoot
|
||||
|
||||
@@ -258,7 +258,7 @@ function M:START_LOOT_ROLL()
|
||||
f.greed:SetText(0)
|
||||
f.pass:SetText(0)
|
||||
|
||||
local texture, name, count, quality, bindOnPickUp = GetLootRollItemInfo(arg1)
|
||||
local texture, name, _, quality, bindOnPickUp = GetLootRollItemInfo(arg1)
|
||||
f.button.icon:SetTexture(texture)
|
||||
f.button.link = GetLootRollItemLink(arg1)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ local E, L, V, P, G = unpack(ElvUI)
|
||||
local mod = E:GetModule("NamePlates")
|
||||
local LSM = LibStub("LibSharedMedia-3.0")
|
||||
|
||||
local select, unpack = select, unpack
|
||||
local unpack = unpack
|
||||
|
||||
local CreateFrame = CreateFrame
|
||||
local GetTime = GetTime
|
||||
|
||||
@@ -3,9 +3,8 @@ local mod = E:GetModule("NamePlates")
|
||||
local LSM = LibStub("LibSharedMedia-3.0")
|
||||
--local LMH = LibStub("LibMobHealth-4.0")
|
||||
|
||||
local tonumber = tonumber
|
||||
--local tonumber = tonumber
|
||||
|
||||
local GetInstanceDifficulty = GetInstanceDifficulty
|
||||
local UnitLevel = UnitLevel
|
||||
|
||||
function mod:UpdateElement_HealthOnValueChanged()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local mod = E:NewModule("NamePlates", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0");
|
||||
local CC = E:GetModule("ClassCache");
|
||||
--local CC = E:GetModule("ClassCache");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
@@ -13,10 +13,9 @@ local twipe = table.wipe
|
||||
local CreateFrame = CreateFrame
|
||||
local GetBattlefieldScore = GetBattlefieldScore
|
||||
local GetNumBattlefieldScores = GetNumBattlefieldScores
|
||||
local UnitClass = UnitClass
|
||||
--local UnitClass = UnitClass
|
||||
local UnitExists = UnitExists
|
||||
local UnitGUID = UnitGUID
|
||||
local SetCVar = SetCVar
|
||||
--local SetCVar = SetCVar
|
||||
local WorldFrame = WorldFrame
|
||||
local WorldGetNumChildren, WorldGetChildren = WorldFrame.GetNumChildren, WorldFrame.GetChildren
|
||||
|
||||
@@ -116,7 +115,6 @@ function mod:SetTargetFrame(frame)
|
||||
end
|
||||
frame.isTarget = true
|
||||
frame.unit = "target"
|
||||
-- frame.guid = UnitGUID("target")
|
||||
|
||||
if self.db.units[frame.UnitType].healthbar.enable ~= true then
|
||||
frame.Name:ClearAllPoints()
|
||||
@@ -598,7 +596,7 @@ end
|
||||
|
||||
function mod:SearchNameplateByName(sourceName)
|
||||
if not sourceName then return end
|
||||
local SearchFor = strsplit("-", sourceName)
|
||||
local SearchFor = split("-", sourceName)
|
||||
for frame in pairs(self.VisiblePlates) do
|
||||
if frame and frame:IsShown() and frame.UnitName == SearchFor and RAID_CLASS_COLORS[frame.UnitClass] then
|
||||
return frame
|
||||
|
||||
@@ -5,7 +5,7 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local find, match, split = string.find, string.match, string.split
|
||||
local find, match = string.find, string.match
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
@@ -6,8 +6,6 @@ local S = E:GetModule("Skins");
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.debug ~= true then return end
|
||||
@@ -54,7 +52,6 @@ local function LoadSkin()
|
||||
E:Point(ScriptErrorsFrame.next, "BOTTOM", ScriptErrorsFrame, "BOTTOM", 50, 7)
|
||||
E:Point(ScriptErrorsFrame.close, "BOTTOMRIGHT", -12, 8)
|
||||
|
||||
local noscalemult = E.mult * GetCVar("uiScale")
|
||||
HookScript(FrameStackTooltip, "OnShow", function()
|
||||
E:SetTemplate(this, "Transparent")
|
||||
this:SetBackdropColor(unpack(E["media"].backdropfadecolor))
|
||||
|
||||
@@ -5,7 +5,6 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local upper = string.upper
|
||||
--WoW API / Variables
|
||||
local GetWhoInfo = GetWhoInfo
|
||||
local GetGuildRosterInfo = GetGuildRosterInfo
|
||||
|
||||
@@ -6,7 +6,7 @@ local S = E:GetModule("Skins");
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local pairs = pairs
|
||||
local find, match, split = string.find, string.match, string.split
|
||||
local match = string.match
|
||||
--WoW API / Variables
|
||||
local GetInventoryItemLink = GetInventoryItemLink
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
@@ -60,7 +60,6 @@ local function LoadSkin()
|
||||
for i = 1, LOOTFRAME_NUMBUTTONS do
|
||||
local slot = (((LootFrame.page - 1) * numLootToShow) + i)
|
||||
local lootButton = _G["LootButton"..i]
|
||||
local lootButtonIcon = _G["LootButton"..i.."IconTexture"]
|
||||
|
||||
S:HandleItemButton(lootButton, true)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ local ipairs, unpack = ipairs, unpack
|
||||
local GetInboxHeaderInfo = GetInboxHeaderInfo
|
||||
local GetInboxItem = GetInboxItem
|
||||
local GetInboxNumItems = GetInboxNumItems
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemInfoByName = GetItemInfoByName
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
local GetSendMailItem = GetSendMailItem
|
||||
|
||||
@@ -5,13 +5,12 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local match, split = string.match, string.split
|
||||
local match = string.match
|
||||
--WoW API / Variables
|
||||
local GetBuybackItemInfo = GetBuybackItemInfo
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
local GetMerchantItemLink = GetMerchantItemLink
|
||||
local GetItemLinkByName = GetItemLinkByName
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
@@ -41,8 +40,6 @@ local function LoadSkin()
|
||||
local item = _G["MerchantItem"..i]
|
||||
local itemButton = _G["MerchantItem"..i.."ItemButton"]
|
||||
local iconTexture = _G["MerchantItem"..i.."ItemButtonIconTexture"]
|
||||
local altCurrencyTex1 = _G["MerchantItem"..i.."AltCurrencyFrameItem1Texture"]
|
||||
local altCurrencyTex2 = _G["MerchantItem"..i.."AltCurrencyFrameItem2Texture"]
|
||||
|
||||
E:StripTextures(item, true)
|
||||
E:CreateBackdrop(item, "Default")
|
||||
|
||||
@@ -5,10 +5,7 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local find = string.find
|
||||
--WoW API / Variables
|
||||
local IsAddOnLoaded = IsAddOnLoaded
|
||||
local UnitIsUnit = UnitIsUnit
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
@@ -370,7 +367,7 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Interface Options Checkboxes
|
||||
for index, value in UIOptionsFrameCheckButtons do
|
||||
for _, value in UIOptionsFrameCheckButtons do
|
||||
local UIOptionsFrameCheckBox = _G["UIOptionsFrameCheckButton"..value.index]
|
||||
if UIOptionsFrameCheckBox then
|
||||
S:HandleCheckBox(UIOptionsFrameCheckBox)
|
||||
@@ -378,7 +375,7 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Video Options Checkboxes
|
||||
for index, value in OptionsFrameCheckButtons do
|
||||
for _, value in OptionsFrameCheckButtons do
|
||||
local OptionsFrameCheckButton = _G["OptionsFrameCheckButton"..value.index]
|
||||
if OptionsFrameCheckButton then
|
||||
S:HandleCheckBox(OptionsFrameCheckButton)
|
||||
@@ -386,7 +383,7 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Sound Options Checkboxes
|
||||
for index, value in SoundOptionsFrameCheckButtons do
|
||||
for _, value in SoundOptionsFrameCheckButtons do
|
||||
local SoundOptionsFrameCheckButton = _G["SoundOptionsFrameCheckButton"..value.index]
|
||||
if SoundOptionsFrameCheckButton then
|
||||
S:HandleCheckBox(SoundOptionsFrameCheckButton)
|
||||
@@ -394,17 +391,17 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
-- Interface Options Sliders
|
||||
for i, v in UIOptionsFrameSliders do
|
||||
for i in UIOptionsFrameSliders do
|
||||
S:HandleSliderFrame(_G["UIOptionsFrameSlider"..i])
|
||||
end
|
||||
|
||||
-- Video Options Sliders
|
||||
for i, v in OptionsFrameSliders do
|
||||
for i in OptionsFrameSliders do
|
||||
S:HandleSliderFrame(_G["OptionsFrameSlider"..i])
|
||||
end
|
||||
|
||||
-- Sound Options Sliders
|
||||
for i, v in SoundOptionsFrameSliders do
|
||||
for i in SoundOptionsFrameSliders do
|
||||
S:HandleSliderFrame(_G["SoundOptionsFrameSlider"..i])
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ local S = E:GetModule("Skins");
|
||||
local _G = _G
|
||||
local pairs = pairs
|
||||
local unpack = unpack
|
||||
local find, format, match, split = string.find, string.format, string.match, string.split
|
||||
local find, format, match = string.find, string.format, string.match
|
||||
--WoW API / Variables
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
|
||||
@@ -4,7 +4,6 @@ local S = E:GetModule("Skins");
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local pairs = pairs
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
@@ -5,7 +5,7 @@ local S = E:GetModule("Skins");
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local find, match, split = string.find, string.match, string.split
|
||||
local find, match = string.find, string.match
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
local GetItemInfo = GetItemInfo
|
||||
|
||||
@@ -158,14 +158,12 @@ function TT:UPDATE_MOUSEOVER_UNIT(_, unit)
|
||||
|
||||
TT:RemoveTrashLines(GameTooltip)
|
||||
local level = UnitLevel(unit)
|
||||
local isShiftKeyDown = IsShiftKeyDown()
|
||||
|
||||
local color
|
||||
if UnitIsPlayer(unit) then
|
||||
local localeClass, class = UnitClass(unit)
|
||||
local name = UnitName(unit)
|
||||
local guildName, guildRankName = GetGuildInfo(unit)
|
||||
local pvpName = UnitPVPName(unit)
|
||||
if not localeClass or not class then return end
|
||||
|
||||
color = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[class] or RAID_CLASS_COLORS[class]
|
||||
|
||||
@@ -7,7 +7,7 @@ local ElvUF = ns.oUF;
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local setmetatable, getfenv, setfenv = setmetatable, getfenv, setfenv
|
||||
local type, unpack, select, pairs = type, unpack, select, pairs
|
||||
local type, unpack, pairs = type, unpack, pairs
|
||||
local min, random = math.min, math.random
|
||||
local format = string.format
|
||||
local find = string.find
|
||||
|
||||
@@ -7,7 +7,6 @@ local match = string.match
|
||||
local strsplit = strsplit
|
||||
local tostring = tostring
|
||||
local format = format
|
||||
local select = select
|
||||
local getn = table.getn
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
|
||||
@@ -3,7 +3,7 @@ local UF = E:GetModule("UnitFrames");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local unpack, tonumber = unpack, tonumber
|
||||
local unpack = unpack
|
||||
local abs, min = abs, math.min
|
||||
--WoW API / Variables
|
||||
local CreateFrame = CreateFrame
|
||||
|
||||
@@ -101,7 +101,6 @@ end
|
||||
function UF:FrameGlow_PositionGlow(frame, mainGlow, powerGlow)
|
||||
if not (frame and frame.VARIABLES_SET) then return end
|
||||
|
||||
local infoPanel = frame.InfoPanel
|
||||
local additionalPower = frame.AdditionalPower
|
||||
local runes = frame.Runes
|
||||
local comboPoints = frame.ComboPoints
|
||||
|
||||
@@ -2,10 +2,8 @@ local E, L, V, P, G = unpack(ElvUI)
|
||||
local UF = E:GetModule("UnitFrames")
|
||||
|
||||
local _G = _G
|
||||
local tinsert = table.insert
|
||||
|
||||
local CreateFrame = CreateFrame
|
||||
local IsInInstance = IsInInstance
|
||||
|
||||
local ns = oUF
|
||||
local ElvUF = ns.oUF
|
||||
|
||||
@@ -6,7 +6,6 @@ local _G = _G
|
||||
local floor = math.floor
|
||||
local format = string.format
|
||||
--WoW API / Variables
|
||||
local GetPVPTimer = GetPVPTimer
|
||||
local GetTime = GetTime
|
||||
local UnitClass = UnitClass
|
||||
local UnitClassification = UnitClassification
|
||||
|
||||
@@ -16,8 +16,6 @@ local CreateFrame = CreateFrame
|
||||
local UnitFrame_OnEnter = UnitFrame_OnEnter
|
||||
local UnitFrame_OnLeave = UnitFrame_OnLeave
|
||||
local IsInInstance = IsInInstance
|
||||
local InCombatLockdown = InCombatLockdown
|
||||
local GetInstanceInfo = GetInstanceInfo
|
||||
local UnregisterStateDriver = UnregisterStateDriver
|
||||
local RegisterStateDriver = RegisterStateDriver
|
||||
local MAX_RAID_MEMBERS = MAX_RAID_MEMBERS
|
||||
|
||||
Reference in New Issue
Block a user