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
David Lynch
AddOnSkins
Commits
c2bf5f74
Commit
c2bf5f74
authored
Nov 28, 2020
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tome of Teleportation
parent
d835f84a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
Skins/AddOns/TomeOfTeleportation.lua
Skins/AddOns/TomeOfTeleportation.lua
+3
-23
No files found.
Skins/AddOns/TomeOfTeleportation.lua
View file @
c2bf5f74
...
...
@@ -3,30 +3,10 @@ local AS = unpack(AddOnSkins)
if
not
AS
:
CheckAddOn
(
'TomeOfTeleportation'
)
then
return
end
function
AS
:
TomeOfTeleportation
()
local
R
,
G
,
B
=
unpack
(
AS
.
BackdropColor
)
local
Alpha
=
(
AS
:
CheckOption
(
'SkinTemplate'
)
==
"Transparent"
and
.
8
or
1
)
if
AS
:
CheckAddOn
(
'ElvUI'
)
then
if
AS
:
CheckOption
(
'SkinTemplate'
)
==
"Transparent"
then
R
,
G
,
B
,
Alpha
=
unpack
(
ElvUI
[
1
][
"media"
].
backdropfadecolor
)
else
R
,
G
,
B
=
unpack
(
ElvUI
[
1
][
"media"
].
backdropcolor
)
end
end
local
Backdrop
=
{
bgFile
=
AS
.
Blank
,
tile
=
false
,
tileSize
=
0
,
insets
=
{
left
=
4
,
right
=
4
,
top
=
4
,
bottom
=
4
}
}
local
function
SkinFrame
()
TeleporterFrame
:
SetBackdrop
(
Backdrop
)
TeleporterFrame
:
SetBackdropColor
(
R
,
G
,
B
,
Alpha
)
local
index
=
0
while
_G
[
'TeleporterFrameTeleporterB'
..
index
]
do
_G
[
'TeleporterFrameTeleporterB'
..
index
]:
SetBackdrop
(
Backdrop
)
_G
[
'TeleporterFrameTeleporterB'
..
index
]:
SetBackdropColor
(
R
,
G
,
B
,
Alpha
)
index
=
index
+
1
end
AS
:
StripTextures
(
TeleporterCloseButton
,
true
)
AS
:
SetTemplate
(
TeleporterFrame
)
AS
:
StripTextures
(
TeleporterCloseButton
,
true
)
AS
:
StripTextures
(
TeleporterTitleFrame
)
TeleporterTitleFrame
:
SetPoint
(
"TOP"
,
"$parent"
,
"TOP"
,
0
,
0
)
end
...
...
@@ -34,4 +14,4 @@ function AS:TomeOfTeleportation()
hooksecurefunc
(
_G
,
"TeleporterOpenFrame"
,
SkinFrame
)
end
AS
:
RegisterSkin
(
'TomeOfTeleportation'
,
AS
.
TomeOfTeleportation
)
\ No newline at end of file
AS
:
RegisterSkin
(
'TomeOfTeleportation'
,
AS
.
TomeOfTeleportation
)
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