Commit 3a05603c authored by Azilroka's avatar Azilroka

ElvUIGVC / SMB / ES

parent 7e5cce81
......@@ -189,9 +189,9 @@ function lib:SendPluginVersionCheck(message)
elseif IsInGroup() then
ChatType = (not IsInGroup(LE_PARTY_CATEGORY_HOME) and IsInGroup(LE_PARTY_CATEGORY_INSTANCE)) and 'INSTANCE_CHAT' or 'PARTY'
else
local ElvUI_VC = GetChannelName('ElvUI_VC')
if ElvUI_VC and ElvUI_VC > 0 then
ChatType, Channel = 'CHANNEL', ElvUI_VC
local ElvUIGVC = GetChannelName('ElvUIGVC')
if ElvUIGVC and ElvUIGVC > 0 then
ChatType, Channel = 'CHANNEL', ElvUIGVC
elseif IsInGuild() then
ChatType = 'GUILD'
end
......@@ -234,7 +234,7 @@ lib.VCFrame:SetScript("OnUpdate", function(self, elapsed)
self.delayed = (self.delayed or 0) + elapsed
if self.delayed > 10 then
local numActiveChannels = C_ChatInfo.GetNumActiveChannels()
if numActiveChannels and (numActiveChannels >= 1) then
if numActiveChannels and (numActiveChannels >= 10) then
if (GetChannelName('ElvUIGVC') == 0) and (numActiveChannels < MAX_WOW_CHAT_CHANNELS) then
JoinChannelByName('ElvUIGVC', nil, nil, true)
......
local PA = _G.ProjectAzilroka
if (PA.SLE or PA.CUI) then return end
local ES = PA:NewModule('EnhancedShadows', 'AceEvent-3.0', 'AceTimer-3.0')
PA.ES, _G.EnhancedShadows = ES, ES
ES.Title = '|cFF16C3F2Enhanced|r |cFFFFFFFFShadows|r'
ES.Description = 'Adds options for registered shadows'
......@@ -131,10 +128,12 @@ end
function ES:Initialize()
ES.db = PA.db['EnhancedShadows']
if ES.db.Enable ~= true then
if PA.SLE or PA.CUI or ES.db.Enable ~= true then
return
end
PA.ES, _G.EnhancedShadows = ES, ES
ES:GetOptions()
ES:ScheduleTimer('UpdateShadows', 1)
......
......@@ -51,11 +51,6 @@ local GenericIgnores = {
local PartialIgnores = { 'Node', 'Note', 'Pin', 'POI' }
local AcceptedFrames = {
'BagSync_MinimapButton',
'VendomaticButtonFrame',
}
local ButtonFunctions = { 'SetParent', 'ClearAllPoints', 'SetPoint', 'SetSize', 'SetScale', 'SetFrameStrata', 'SetFrameLevel' }
function SMB:LockButton(Button)
......@@ -246,16 +241,14 @@ function SMB:SkinMinimapButton(Button)
local Name = Button:GetName()
if not Name then return end
if Button:IsObjectType('Button') then
if tContains(ignoreButtons, Name) then return end
if tContains(ignoreButtons, Name) then return end
for i = 1, #GenericIgnores do
if strsub(Name, 1, strlen(GenericIgnores[i])) == GenericIgnores[i] then return end
end
for i = 1, #GenericIgnores do
if strsub(Name, 1, strlen(GenericIgnores[i])) == GenericIgnores[i] then return end
end
for i = 1, #PartialIgnores do
if strfind(Name, PartialIgnores[i]) ~= nil then return end
end
for i = 1, #PartialIgnores do
if strfind(Name, PartialIgnores[i]) ~= nil then return end
end
for i = 1, Button:GetNumRegions() do
......@@ -322,7 +315,7 @@ function SMB:GrabMinimapButtons()
if object then
local name = object:GetName()
local width = object:GetWidth()
if name and width > 15 and width < 40 and (object:IsObjectType('Button') or object:IsObjectType('Frame') and tContains(AcceptedFrames, name)) then
if name and width > 15 and width < 40 and (object:IsObjectType('Button') or object:IsObjectType('Frame')) then
self:SkinMinimapButton(object)
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment