Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Deimos
ProjectAzilroka
Commits
3a05603c
Commit
3a05603c
authored
Dec 21, 2018
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ElvUIGVC / SMB / ES
parent
7e5cce81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
22 deletions
+14
-22
LibElvUIPlugin-1.0.lua
LibElvUIPlugin-1.0.lua
+4
-4
Modules/EnhancedShadows.lua
Modules/EnhancedShadows.lua
+3
-4
Modules/SquareMinimapButtons.lua
Modules/SquareMinimapButtons.lua
+7
-14
No files found.
LibElvUIPlugin-1.0.lua
View file @
3a05603c
...
...
@@ -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
ElvUI
G
VC
=
GetChannelName
(
'ElvUI
G
VC'
)
if
ElvUI
G
VC
and
ElvUI
G
VC
>
0
then
ChatType
,
Channel
=
'CHANNEL'
,
ElvUI
G
VC
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 >= 1
0
) then
if (GetChannelName('
ElvUIGVC
') == 0) and (numActiveChannels < MAX_WOW_CHAT_CHANNELS) then
JoinChannelByName('
ElvUIGVC
', nil, nil, true)
...
...
Modules/EnhancedShadows.lua
View file @
3a05603c
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
)
...
...
Modules/SquareMinimapButtons.lua
View file @
3a05603c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment