Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ElvUI Project
ElvUI
Commits
efa5e6bd
Commit
efa5e6bd
authored
Oct 17, 2018
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename variables so it's maybe more clear
parent
d0b760ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
+8
-8
ElvUI/core/core.lua
ElvUI/core/core.lua
+10
-10
No files found.
ElvUI/Libraries/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
View file @
efa5e6bd
...
...
@@ -112,8 +112,8 @@ function lib:DelayedSendVersionCheck()
ElvUI
[
1
].
SendPluginVersionCheck
=
SendVersionCheckMessage
end
if
not
lib
.
SendMessage
Timer
then
lib
.
SendMessage
Timer
=
E
:
Delay
(
10
,
ElvUI
[
1
].
SendPluginVersionCheck
)
if
not
lib
.
SendMessage
Waiting
then
lib
.
SendMessage
Waiting
=
E
:
Delay
(
10
,
ElvUI
[
1
].
SendPluginVersionCheck
)
end
end
...
...
@@ -214,13 +214,13 @@ function lib:GeneratePluginList()
return
list
end
function
lib
:
ClearSendMessage
Timer
()
lib
.
SendMessage
Timer
=
nil
function
lib
:
ClearSendMessage
Wait
()
lib
.
SendMessage
Waiting
=
nil
end
function
lib
:
SendPluginVersionCheck
(
message
)
if
(
not
message
)
or
strmatch
(
message
,
'^%s-$'
)
then
lib
.
ClearSendMessage
Timer
()
lib
.
ClearSendMessage
Wait
()
return
end
...
...
@@ -239,7 +239,7 @@ function lib:SendPluginVersionCheck(message)
end
if
not
ChatType
then
lib
.
ClearSendMessage
Timer
()
lib
.
ClearSendMessage
Wait
()
return
end
...
...
@@ -255,10 +255,10 @@ function lib:SendPluginVersionCheck(message)
end
end
E:Delay(delay, lib.ClearSendMessage
Timer
)
E:Delay(delay, lib.ClearSendMessage
Wait
)
else
C_ChatInfo_SendAddonMessage(lib.prefix, message, ChatType, Channel)
lib.ClearSendMessage
Timer
()
lib.ClearSendMessage
Wait
()
end
end
...
...
ElvUI/core/core.lua
View file @
efa5e6bd
...
...
@@ -908,7 +908,7 @@ function E:SplitString(s, delim)
return
unpack
(
t
)
end
local
SendMessage
Timer
-- prevent setting multiple timers at once
local
SendMessage
Waiting
-- only allow 1 delay at a time regardless of eventing
function
E
:
SendMessage
()
if
IsInRaid
()
then
C_ChatInfo_SendAddonMessage
(
"ELVUI_VERSIONCHK"
,
E
.
version
,
(
not
IsInRaid
(
LE_PARTY_CATEGORY_HOME
)
and
IsInRaid
(
LE_PARTY_CATEGORY_INSTANCE
))
and
"INSTANCE_CHAT"
or
"RAID"
)
...
...
@@ -923,7 +923,7 @@ function E:SendMessage()
end
end
SendMessage
Timer
=
nil
SendMessage
Waiting
=
nil
end
local
SendRecieveGroupSize
=
0
...
...
@@ -945,8 +945,8 @@ local function SendRecieve(_, event, prefix, message, _, sender)
E
.
recievedOutOfDateMessage
=
true
end
elseif
msg
and
(
msg
<
ver
)
then
-- Send Message Back if you intercept and are higher revision
if
not
SendMessage
Timer
then
SendMessage
Timer
=
E
:
Delay
(
10
,
E
.
SendMessage
)
if
not
SendMessage
Waiting
then
SendMessage
Waiting
=
E
:
Delay
(
10
,
E
.
SendMessage
)
end
end
end
...
...
@@ -954,15 +954,15 @@ local function SendRecieve(_, event, prefix, message, _, sender)
local
num
=
GetNumGroupMembers
()
if
num
~=
SendRecieveGroupSize
then
if
num
>
1
and
num
>
SendRecieveGroupSize
then
if
not
SendMessage
Timer
then
SendMessage
Timer
=
E
:
Delay
(
10
,
E
.
SendMessage
)
if
not
SendMessage
Waiting
then
SendMessage
Waiting
=
E
:
Delay
(
10
,
E
.
SendMessage
)
end
end
SendRecieveGroupSize
=
num
end
elseif
event
==
"LOADING_SCREEN_DISABLED"
then
if
not
SendMessage
Timer
then
SendMessage
Timer
=
E
:
Delay
(
5
,
E
.
DelayedElvUIGVC
)
if
not
SendMessage
Waiting
then
SendMessage
Waiting
=
E
:
Delay
(
5
,
E
.
DelayedElvUIGVC
)
end
end
end
...
...
@@ -984,8 +984,8 @@ function E:DelayedElvUIGVC()
end
end
if
not
SendMessage
Timer
then
SendMessage
Timer
=
E
:
Delay
(
5
,
E
.
SendMessage
)
if
not
SendMessage
Waiting
then
SendMessage
Waiting
=
E
:
Delay
(
5
,
E
.
SendMessage
)
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