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
Carlos Herbas
AddOnSkins
Commits
86f91316
Commit
86f91316
authored
May 10, 2020
by
Azilroka
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'novaworldbuffs' into 'master'
Skin: NovaWorldBuffs See merge request
Azilroka/AddOnSkins!67
parents
1f8936d6
8b34de89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
0 deletions
+79
-0
Skins/AddOns/Classic/Load_Skins.xml
Skins/AddOns/Classic/Load_Skins.xml
+1
-0
Skins/AddOns/Classic/NovaWorldBuffs.lua
Skins/AddOns/Classic/NovaWorldBuffs.lua
+69
-0
Skins/AddOns/Libraries.lua
Skins/AddOns/Libraries.lua
+9
-0
No files found.
Skins/AddOns/Classic/Load_Skins.xml
View file @
86f91316
...
...
@@ -5,6 +5,7 @@
<Script
file=
"ExtendedCharacterStats.lua"
/>
<Script
file=
"GatherLite.lua"
/>
<Script
file=
"ItemRack.lua"
/>
<Script
file=
"NovaWorldBuffs.lua"
/>
<Script
file=
"Outfitter.lua"
/>
<Script
file=
"Questie.lua"
/>
<Script
file=
"WhatsTraining.lua"
/>
...
...
Skins/AddOns/Classic/NovaWorldBuffs.lua
0 → 100644
View file @
86f91316
local
AS
=
unpack
(
AddOnSkins
)
if
not
AS
:
CheckAddOn
(
'NovaWorldBuffs'
)
then
return
end
function
AS
:
SkinNovaFrame
(
frame
)
if
frame
then
if
frame
.
timerFrame
then
AS
:
SkinFrame
(
frame
.
timerFrame
)
end
if
frame
.
noLayerFrame
then
AS
:
SkinFrame
(
frame
.
noLayerFrame
)
end
if
frame
.
tooltip
then
AS
:
SkinTooltip
(
frame
.
tooltip
)
end
if
frame
.
texture
then
AS
:
SkinTexture
(
frame
.
texture
,
true
)
end
end
end
function
AS
:
NovaWorldBuffs
()
if
(
NWB
.
isLayered
)
then
local
count
=
0
;
for
layer
,
data
in
NWB
:
pairsByKeys
(
NWB
.
data
.
layers
)
do
count
=
count
+
1
;
for
k
,
v
in
pairs
(
NWB
.
worldBuffMapMarkerTypes
)
do
AS
:
SkinNovaFrame
(
_G
[
k
..
layer
..
"NWBWorldMap"
])
end
end
end
for
k
,
v
in
pairs
(
NWB
.
worldBuffMapMarkerTypes
)
do
AS
:
SkinNovaFrame
(
_G
[
k
..
"NWBWorldMap"
])
end
AS
:
SkinNovaFrame
(
_G
[
"NWBDMF"
])
AS
:
SkinFrame
(
_G
[
"NWBDMFTimerFrame"
])
AS
:
SkinFrame
(
_G
[
"NWBbuffListFrame"
])
AS
:
SkinFrame
(
_G
[
"NWBlayerFrame"
])
AS
:
SkinTooltip
(
_G
[
"NWBDMFContinentTooltip"
])
AS
:
SkinTooltip
(
_G
[
"NWBlayerDragTooltip"
])
AS
:
SkinTooltip
(
_G
[
"NWBVersionDragTooltip"
])
AS
:
SkinTooltip
(
_G
[
"NWBbuffListDragTooltip"
])
local
Buttons
=
{
NWBbuffListFrameConfButton
,
NWBbufflistFrameTimersButton
,
NWBbuffListFrameWipeButton
,
NWBlayerFrameConfButton
,
NWBlayerFrameBuffsButton
,
}
for
_
,
Button
in
pairs
(
Buttons
)
do
if
Button
then
AS
:
SkinButton
(
Button
,
true
)
end
end
NWBbufflistFrameTimersButton
:
SetPoint
(
"CENTER"
,
-
58
,
-
18
)
NWBbuffListFrameWipeButton
:
SetPoint
(
"BOTTOMRIGHT"
,
-
4
,
4
)
NWBlayerFrameBuffsButton
:
SetPoint
(
"CENTER"
,
-
58
,
-
18
)
NWBbuffListFrameFS
:
SetPoint
(
"TOP"
,
0
,
-
1
)
NWBlayerFrameFS
:
SetPoint
(
"TOP"
,
0
,
-
1
)
NWBbuffListFrame
.
EditBox
:
SetPoint
(
"TOPLEFT"
,
2
,
0
)
NWBlayerFrame
.
EditBox
:
SetPoint
(
"TOPLEFT"
,
2
,
0
)
AS
:
SkinCloseButton
(
NWBbuffListFrameClose
,
true
)
AS
:
SkinCloseButton
(
NWBlayerFrameClose
,
true
)
nefNWBWorldMapBuffCmdFS
:
Hide
()
end
AS
:
RegisterSkin
(
'NovaWorldBuffs'
,
AS
.
NovaWorldBuffs
)
Skins/AddOns/Libraries.lua
View file @
86f91316
...
...
@@ -224,6 +224,15 @@ function AS:SkinLibraries()
end
,
0
)
end
local
LSF
=
LibStub
(
"LibSimpleFrame-Mod-1.0"
,
true
)
if
LSF
then
for
name
,
frame
in
pairs
(
LSF
.
registry
)
do
AS
:
SetTemplate
(
frame
)
frame
.
SetBackdropColor
=
AS
.
Noop
frame
.
SetBackdropBorderColor
=
AS
.
Noop
end
end
local
LQT
=
LibStub
(
"LibQTip-1.0"
,
true
)
if
LQT
then
hooksecurefunc
(
LQT
,
'Acquire'
,
function
()
...
...
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