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
fuba82
AddOnSkins
Commits
28f07406
Commit
28f07406
authored
Nov 11, 2018
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.02
parent
e4fdb1d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
122 additions
and
3 deletions
+122
-3
AddOnSkins.toc
AddOnSkins.toc
+1
-1
Core/Options.lua
Core/Options.lua
+2
-2
Skins/Immersion.lua
Skins/Immersion.lua
+118
-0
Skins/Load_Skins.xml
Skins/Load_Skins.xml
+1
-0
No files found.
AddOnSkins.toc
View file @
28f07406
## Interface: 80000
## Title: |cff1784d1AddOnSkins|r
## Version: 4.0
1
## Version: 4.0
2
## Author: Azilroka, Whiro
## SavedVariables: AddOnSkinsDB, AddOnSkinsDS
## OptionalDeps: ProjectAzilroka, ElvUI, Tukui
...
...
Core/Options.lua
View file @
28f07406
...
...
@@ -471,8 +471,8 @@ local Changelog = {
},
[
'4.02'
]
=
{
'Core: Options'
,
'Updated: Island Party Pose'
,
'Added: WeakAura'
,
'Updated: Island Party Pose
, Ace3, Parchment Remover
'
,
'Added: WeakAura
s, Immersion
'
,
},
}
...
...
Skins/Immersion.lua
0 → 100644
View file @
28f07406
local
AS
=
unpack
(
AddOnSkins
)
if
not
AS
:
CheckAddOn
(
'Immersion'
)
then
return
end
function
AS
:
Immersion
(
event
,
addon
)
AS
:
SkinBackdropFrame
(
ImmersionFrame
.
TalkBox
.
BackgroundFrame
)
AS
:
CreateShadow
(
ImmersionFrame
.
TalkBox
.
BackgroundFrame
.
Backdrop
)
ImmersionFrame
.
TalkBox
.
BackgroundFrame
.
Backdrop
:
SetPoint
(
'TOPLEFT'
,
ImmersionFrame
.
TalkBox
.
BackgroundFrame
,
'TOPLEFT'
,
8
,
-
8
)
ImmersionFrame
.
TalkBox
.
BackgroundFrame
.
Backdrop
:
SetPoint
(
'BOTTOMRIGHT'
,
ImmersionFrame
.
TalkBox
.
BackgroundFrame
,
'BOTTOMRIGHT'
,
-
8
,
8
)
AS
:
StripTextures
(
ImmersionFrame
.
TalkBox
.
PortraitFrame
)
AS
:
SkinCloseButton
(
ImmersionFrame
.
TalkBox
.
MainFrame
.
CloseButton
)
AS
:
SetTemplate
(
ImmersionFrame
.
TalkBox
.
Hilite
)
ImmersionFrame
.
TalkBox
.
Hilite
:
SetBackdropBorderColor
(
0
,
0
.
44
,
.
87
,
1
)
ImmersionFrame
.
TalkBox
.
Hilite
:
SetBackdropColor
(
0
,
0
,
0
,
0
)
ImmersionFrame
.
TalkBox
.
MainFrame
.
Model
.
ModelShadow
:
SetDrawLayer
(
"OVERLAY"
,
7
)
ImmersionFrame
.
TalkBox
.
MainFrame
.
Model
.
ModelShadow
:
SetPoint
(
"BOTTOMRIGHT"
,
2
,
-
2
)
ImmersionFrame
.
TalkBox
.
MainFrame
.
Model
.
PortraitBG
:
Hide
()
AS
:
SkinBackdropFrame
(
ImmersionFrame
.
TalkBox
.
Elements
)
ImmersionFrame
.
TalkBox
.
Elements
.
Backdrop
:
SetPoint
(
'TOPLEFT'
,
ImmersionFrame
.
TalkBox
.
Elements
,
'TOPLEFT'
,
16
,
-
16
)
ImmersionFrame
.
TalkBox
.
Elements
.
Backdrop
:
SetPoint
(
'BOTTOMRIGHT'
,
ImmersionFrame
.
TalkBox
.
Elements
,
'BOTTOMRIGHT'
,
-
16
,
16
)
AS
:
CreateShadow
(
ImmersionFrame
.
TalkBox
.
Elements
.
Backdrop
)
ImmersionFrame
.
TalkBox
.
MainFrame
.
Overlay
:
Kill
()
AS
:
SkinStatusBar
(
ImmersionFrame
.
TalkBox
.
ReputationBar
)
ImmersionFrame
.
TalkBox
.
ReputationBar
:
ClearAllPoints
()
ImmersionFrame
.
TalkBox
.
ReputationBar
:
SetPoint
(
'TOPLEFT'
,
ImmersionFrame
.
TalkBox
,
'BOTTOMLEFT'
,
-
20
,
10
)
ImmersionFrame
.
TalkBox
.
ReputationBar
.
icon
:
SetAlpha
(
0
)
ImmersionFrame
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
ItemHighlight
.
Icon
:
Hide
();
ImmersionFrame
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
ItemHighlight
.
Icon
.
Show
=
function
()
end
;
ImmersionFrame
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
ItemHighlight
.
NameTag
:
Hide
();
ImmersionFrame
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
ItemHighlight
.
NameTag
.
Show
=
function
()
end
;
ImmersionFrame
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
ItemHighlight
.
TextSheen
:
Hide
();
ImmersionFrame
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
ItemHighlight
.
TextSheen
.
Show
=
function
()
end
;
ImmersionFrame
:
HookScript
(
'OnEvent'
,
function
(
self
)
for
_
,
Button
in
ipairs
(
self
.
TitleButtons
.
Buttons
)
do
if
Button
and
not
Button
.
isSkinned
then
Button
.
isSkinned
=
true
AS
:
CreateBackdrop
(
Button
)
Button
:
SetBackdrop
(
nil
)
Button
.
Overlay
:
Hide
()
AS
:
CreateShadow
(
Button
.
Backdrop
)
Button
.
Backdrop
:
SetInside
(
Button
,
4
,
4
)
AS
:
SetTemplate
(
Button
.
Hilite
)
Button
.
Hilite
:
SetBackdropBorderColor
(
0
,
0
.
44
,
.
87
,
1
)
Button
.
Hilite
:
SetBackdropColor
(
0
,
0
,
0
,
0
)
Button
.
Hilite
:
SetAllPoints
(
Button
.
Backdrop
)
Button
:
SetHighlightTexture
(
''
)
end
end
for
_
,
Button
in
ipairs
(
self
.
TalkBox
.
Elements
.
Content
.
RewardsFrame
.
Buttons
)
do
if
Button
and
not
Button
.
isSkinned
then
Button
.
isSkinned
=
true
AS
:
CreateBackdrop
(
Button
)
AS
:
SkinTexture
(
Button
.
Icon
)
Button
.
NameFrame
:
Hide
()
Button
.
Border
:
Hide
()
Button
.
Mask
:
Hide
()
Button
.
Backdrop
:
SetPoint
(
'TOPLEFT'
,
Button
.
Icon
,
'TOPRIGHT'
,
0
,
0
)
Button
.
Backdrop
:
SetPoint
(
'BOTTOMLEFT'
,
Button
.
Icon
,
'BOTTOMRIGHT'
,
0
,
0
)
Button
.
Backdrop
:
SetPoint
(
'RIGHT'
,
Button
,
'RIGHT'
,
-
5
,
0
)
Button
.
Icon
.
Backdrop
=
CreateFrame
(
'Frame'
,
nil
,
Button
)
AS
:
SetTemplate
(
Button
.
Icon
.
Backdrop
)
Button
.
Icon
.
Backdrop
:
SetBackdropColor
(
0
,
0
,
0
,
0
)
Button
.
Icon
.
Backdrop
:
SetOutside
(
Button
.
Icon
)
Button
.
AutoCastShine
=
CreateFrame
(
'Frame'
,
'$parentShine'
,
Button
,
'AutoCastShineTemplate'
)
Button
.
AutoCastShine
:
SetParent
(
Button
.
Icon
.
Backdrop
)
Button
.
AutoCastShine
:
SetAllPoints
()
for
_
,
sparks
in
pairs
(
Button
.
AutoCastShine
.
sparkles
)
do
sparks
:
SetSize
(
sparks
:
GetWidth
()
*
2
,
sparks
:
GetHeight
()
*
2
)
end
Button
:
SetScript
(
"OnUpdate"
,
function
(
self
)
if
ImmersionFrame
.
TalkBox
.
Elements
.
chooseItems
and
ImmersionFrame
.
TalkBox
.
Elements
.
itemChoice
==
self
:
GetID
()
then
AutoCastShine_AutoCastStart
(
self
.
AutoCastShine
,
0
,
.
44
,
.
87
)
self
.
Backdrop
:
SetBackdropBorderColor
(
0
,
0
.
44
,
.
87
,
1
)
else
self
.
Backdrop
:
SetBackdropBorderColor
(
unpack
(
AS
.
BorderColor
))
AutoCastShine_AutoCastStop
(
self
.
AutoCastShine
)
end
end
)
end
end
for
_
,
Button
in
ipairs
(
self
.
TalkBox
.
Elements
.
Progress
.
Buttons
)
do
if
Button
and
not
Button
.
isSkinned
then
Button
.
isSkinned
=
true
AS
:
CreateBackdrop
(
Button
)
AS
:
SkinTexture
(
Button
.
Icon
)
Button
.
NameFrame
:
Hide
()
Button
.
Border
:
Hide
()
Button
.
Mask
:
Hide
()
Button
.
Backdrop
:
SetPoint
(
'TOPLEFT'
,
Button
.
Icon
,
'TOPRIGHT'
,
0
,
0
)
Button
.
Backdrop
:
SetPoint
(
'BOTTOMLEFT'
,
Button
.
Icon
,
'BOTTOMRIGHT'
,
0
,
0
)
Button
.
Backdrop
:
SetPoint
(
'RIGHT'
,
Button
,
'RIGHT'
,
-
5
,
0
)
Button
.
Icon
.
Backdrop
=
CreateFrame
(
'Frame'
,
nil
,
Button
)
AS
:
SetTemplate
(
Button
.
Icon
.
Backdrop
)
Button
.
Icon
.
Backdrop
:
SetBackdropColor
(
0
,
0
,
0
,
0
)
Button
.
Icon
.
Backdrop
:
SetOutside
(
Button
.
Icon
)
end
end
end
)
end
AS
:
RegisterSkin
(
'Immersion'
,
AS
.
Immersion
)
Skins/Load_Skins.xml
View file @
28f07406
...
...
@@ -60,6 +60,7 @@
<Script
file=
"Hack.lua"
/>
<Script
file=
"Healium.lua"
/>
<Script
file=
"Hekili.lua"
/>
<Script
file=
"Immersion.lua"
/>
<Script
file=
"InboxMailBag.lua"
/>
<Script
file=
"Incoming.lua"
/>
<Script
file=
"InspectEquip.lua"
/>
...
...
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