Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AddOnSkins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
fuba82
AddOnSkins
Commits
88b78cfd
Commit
88b78cfd
authored
Oct 10, 2020
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LinkWrangler
parent
5bc22026
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
Skins/AddOns/LinkWrangler.lua
Skins/AddOns/LinkWrangler.lua
+8
-14
No files found.
Skins/AddOns/LinkWrangler.lua
View file @
88b78cfd
...
...
@@ -3,38 +3,32 @@ local AS = unpack(AddOnSkins)
if
not
AS
:
CheckAddOn
(
'LinkWrangler'
)
then
return
end
function
AS
:
LinkWrangler
()
local
Path
=
"Interface\\AddOns\\AddOnSkins\\Skins\\Buttons\\"
local
Path
=
[[Interface\AddOns\AddOnSkins\Media\Textures\Buttons\]]
local
function
LWSkin_SkinButton
(
button
,
tex
,
distex
)
if
(
button
==
nil
)
then
return
end
if
not
button
then
return
end
button
:
SetNormalTexture
(
tex
)
button
:
SetDisabledTexture
(
distex
)
button
:
SetPushedTexture
(
tex
)
button
:
SetHighlightTexture
(
tex
)
return
button
end
local
function
LWSkin
(
frame
,
link
)
local
r
,
g
,
b
=
1
,
1
,
0
if
GetItemInfo
(
link
)
then
local
quality
=
select
(
3
,
GetItemInfo
(
link
))
r
,
g
,
b
=
GetItemQualityColor
(
tonumber
(
quality
))
end
AS
:
SetTemplate
(
frame
,
'Default'
)
frame
:
SetBackdropBorderColor
(
r
,
g
,
b
)
if
frame
.
isSkinned
then
return
end
local
framename
=
frame
:
GetName
()
LWSkin_SkinButton
(
_G
[
framename
..
"CloseButton"
],
Path
..
"close"
)
LWSkin_SkinButton
(
_G
[
framename
..
"MinButton"
],
Path
..
"min"
)
LWSkin_SkinButton
(
_G
[
framename
..
"CompButton"
],
Path
..
"compare"
,
Path
..
"compareDisable"
)
LWSkin_SkinButton
(
_G
[
framename
..
"WhisperButton"
],
Path
..
"whisper"
)
LWSkin_SkinButton
(
_G
[
framename
..
"RelinkButton"
],
Path
..
"relink"
)
LWSkin_SkinButton
(
_G
[
framename
..
"DressupButton"
],
Path
..
"dress"
)
LWSkin_SkinButton
(
_G
[
framename
..
"CaptureButton"
],
Path
..
"compare"
)
frame
.
isSkinned
=
true
end
LinkWrangler
.
RegisterCallback
(
"LinkWrangler_Skin"
,
LWSkin
,
"show"
,
"showcomp"
)
end
AS
:
RegisterSkin
(
'LinkWrangler'
,
AS
.
LinkWrangler
)
\ No newline at end of file
AS
:
RegisterSkin
(
'LinkWrangler'
,
AS
.
LinkWrangler
)
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