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
4630d5e2
Commit
4630d5e2
authored
Oct 27, 2019
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop ElvUI/Tukui Optional Dependency so it won't break AddOn Load Order
parent
e279fb29
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
15 deletions
+20
-15
AddOnSkins.toc
AddOnSkins.toc
+1
-2
Core/ElvUI.lua
Core/ElvUI.lua
+6
-1
Core/Tukui.lua
Core/Tukui.lua
+6
-2
Embed/ElvUI.lua
Embed/ElvUI.lua
+5
-2
Skins/Classic/Blizzard/Character.lua
Skins/Classic/Blizzard/Character.lua
+2
-4
Skins/Classic/Blizzard/Others.lua
Skins/Classic/Blizzard/Others.lua
+0
-4
No files found.
AddOnSkins.toc
View file @
4630d5e2
## Interface: 80205
## Title: |cff1784d1AddOnSkins|r
## Version: 4.3
2
## Version: 4.3
3
## Author: Azilroka, NihilisticPandemonium
## SavedVariables: AddOnSkinsDB, AddOnSkinsDS
## OptionalDeps: ElvUI, Tukui
Load
_
AddOnSkins.xml
Core/ElvUI.lua
View file @
4630d5e2
local
AS
=
unpack
(
AddOnSkins
)
if
not
AS
:
CheckAddOn
(
'ElvUI'
)
then
return
end
local
E
=
unpack
(
ElvUI
)
local
E
-- Cache global variables
--Lua functions
...
...
@@ -72,6 +72,11 @@ function AS:GetElvUIBlizzardSkinOption(skin)
end
function
AS
:
UpdateMedia
()
if
not
ElvUI
then
return
end
if
not
E
then
E
=
unpack
(
ElvUI
)
end
AS
.
Blank
=
AS
.
LSM
:
Fetch
(
'background'
,
'ElvUI Blank'
)
AS
.
Font
=
AS
.
LSM
:
Fetch
(
'font'
,
E
.
db
.
general
.
font
)
AS
.
NormTex
=
AS
.
LSM
:
Fetch
(
'statusbar'
,
E
.
private
.
general
.
normTex
)
...
...
Core/Tukui.lua
View file @
4630d5e2
local
AS
,
ASL
=
unpack
(
AddOnSkins
)
if
not
AS
:
CheckAddOn
(
'Tukui'
)
then
return
end
local
T
,
C
=
Tukui
:
unpack
()
local
T
,
C
function
AS
:
UpdateMedia
()
if
not
Tukui
then
return
end
if
not
T
then
T
,
C
=
Tukui
:
unpack
()
end
AS
.
HideShadows
=
C
[
'General'
][
'HideShadows'
]
AS
.
DataTextFontSize
=
12
-- T['DataTexts']['Size']
...
...
Embed/ElvUI.lua
View file @
4630d5e2
local
AS
=
unpack
(
AddOnSkins
)
if
not
AS
:
CheckAddOn
(
'ElvUI'
)
then
return
end
local
E
,
L
=
unpack
(
ElvUI
)
local
E
,
L
-- Cache global variables
--Lua functions
local
_G
=
_G
...
...
@@ -16,6 +15,10 @@ local EmbedSystem_MainWindow, EmbedSystem_LeftWindow, EmbedSystem_RightWindow
-- GLOBALS:
function
AS
:
EmbedSystemHooks
()
if
not
E
then
E
,
L
=
unpack
(
ElvUI
)
end
RightChatToggleButton
,
LeftChatToggleButton
,
RightChatPanel
,
LeftChatPanel
,
RightChatTab
,
LeftChatTab
,
RightChatDataPanel
=
_G
.
RightChatToggleButton
,
_G
.
LeftChatToggleButton
,
_G
.
RightChatPanel
,
_G
.
LeftChatPanel
,
_G
.
RightChatTab
,
_G
.
LeftChatTab
,
_G
.
RightChatDataPanel
EmbedSystem_MainWindow
,
EmbedSystem_LeftWindow
,
EmbedSystem_RightWindow
=
_G
.
EmbedSystem_MainWindow
,
_G
.
EmbedSystem_LeftWindow
,
_G
.
EmbedSystem_RightWindow
...
...
Skins/Classic/Blizzard/Character.lua
View file @
4630d5e2
...
...
@@ -4,12 +4,10 @@ local AS = unpack(AddOnSkins)
-- Cache global variables
--Lua functions
local
_G
=
_G
local
ipairs
,
pairs
,
select
,
type
,
unpack
=
ipairs
,
pairs
,
select
,
type
,
unpack
local
pairs
,
select
,
unpack
=
pairs
,
select
,
unpack
--WoW API / Variables
local
hooksecurefunc
=
hooksecurefunc
local
PaperDollBgDesaturate
=
PaperDollBgDesaturate
local
UnitSex
=
UnitSex
local
HasPetUI
=
HasPetUI
local
GetPetHappiness
=
GetPetHappiness
-- GLOBALS:
...
...
@@ -48,7 +46,7 @@ function AS:Blizzard_Character()
AS
:
SkinStatusBar
(
_G
.
PetPaperDollFrameExpBar
)
AS
:
SetOutside
(
_G
.
PetPaperDollFrameExpBar
.
Backdrop
,
_G
.
PetPaperDollFrameExpBar
)
_G
.
PetPaperDollFrameExpBar
.
Backdrop
:
SetFrameLevel
(
_G
.
PetPaperDollFrameExpBar
:
GetFrameLevel
())
AS
:
SkinButton
(
_G
.
PetPaperDollCloseButton
)
PetModelFrameRotateLeftButton
:
SetSize
(
16
,
16
)
...
...
Skins/Classic/Blizzard/Others.lua
View file @
4630d5e2
if
AddOnSkins
.
Retail
then
return
end
local
AS
=
unpack
(
AddOnSkins
)
if
AS
:
CheckAddOn
(
'Tukui'
)
then
Tukui
[
1
].
Miscellaneous
.
DropDown
.
Skin
=
function
()
end
end
function
AS
:
Blizzard_Others
()
AS
:
SetTemplate
(
CinematicFrameCloseDialog
)
CinematicFrameCloseDialog
:
SetScale
(
UIParent
:
GetScale
())
...
...
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