Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ElvUI
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
104
Issues
104
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
ElvUI
ElvUI
Commits
b25e105d
Verified
Commit
b25e105d
authored
Mar 12, 2019
by
Simpy
🐹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more arrange in petbar
parent
b7eb5c5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ElvUI/Modules/ActionBars/PetBar.lua
ElvUI/Modules/ActionBars/PetBar.lua
+6
-6
No files found.
ElvUI/Modules/ActionBars/PetBar.lua
View file @
b25e105d
...
...
@@ -36,7 +36,10 @@ function AB:UpdatePet(event, unit)
local
buttonName
=
"PetActionButton"
..
i
local
button
=
_G
[
buttonName
]
button
.
icon
:
Hide
()
button
:
SetAlpha
(
1
);
button
.
icon
:
Hide
();
button
.
isToken
=
isToken
;
if
not
button
.
ICON
then
button
.
ICON
=
button
:
CreateTexture
(
buttonName
..
'ICON'
)
button
.
ICON
:
SetTexCoord
(
unpack
(
E
.
TexCoords
))
...
...
@@ -52,7 +55,6 @@ function AB:UpdatePet(event, unit)
button
.
tooltipName
=
_G
[
name
];
end
button
.
isToken
=
isToken
;
if
spellID
then
local
spell
=
_G
.
Spell
:
CreateFromSpellID
(
spellID
);
button
.
spellDataLoadedCancelFunc
=
spell
:
ContinueWithCancelOnSpellLoad
(
function
()
...
...
@@ -61,15 +63,14 @@ function AB:UpdatePet(event, unit)
end
if
isActive
and
name
~=
"PET_ACTION_FOLLOW"
then
--button:GetCheckedTexture():SetColorTexture(1, 1, 1)
button
:
SetChecked
(
true
);
if
IsPetAttackAction
(
i
)
then
PetActionButton_StartFlash
(
button
);
end
else
--button:SetCheckedTexture("")
button
:
SetChecked
(
false
);
if
IsPetAttackAction
(
i
)
then
PetActionButton_StopFlash
(
button
);
end
...
...
@@ -87,14 +88,13 @@ function AB:UpdatePet(event, unit)
AutoCastShine_AutoCastStop
(
button
.
AutoCastShine
);
end
button
:
SetAlpha
(
1
);
if
texture
then
if
GetPetActionSlotUsable
(
i
)
then
SetDesaturation
(
button
.
ICON
,
nil
);
else
SetDesaturation
(
button
.
ICON
,
1
);
end
button
.
ICON
:
Show
();
else
button
.
ICON
:
Hide
();
...
...
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