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
a0c56579
Commit
a0c56579
authored
Oct 04, 2020
by
Merathilis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spaces -> Tabs
parent
da6950e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
65 deletions
+68
-65
Skins/AddOns/ArkInventory.lua
Skins/AddOns/ArkInventory.lua
+68
-65
No files found.
Skins/AddOns/ArkInventory.lua
View file @
a0c56579
...
...
@@ -19,39 +19,41 @@ function AS:ArkInventory()
end
end
)
hooksecurefunc
(
ArkInventory
,
'Frame_Main_Anchor_Set'
,
function
(
loc_id
)
local
mainframe
=
ArkInventory
.
Frame_Main_Get
(
loc_id
):
GetName
()
local
f
=
_G
[
mainframe
..
ArkInventory
.
Const
.
Frame
.
Search
.
Name
..
'Filter'
]
local
b
=
_G
[
mainframe
..
ArkInventory
.
Const
.
Frame
.
Search
.
Name
..
'Clear'
]
if
f
then
AS
:
SkinEditBox
(
f
)
local
bd
=
f
.
backdrop
or
f
.
Backdrop
or
nil
if
bd
then
local
bbc
=
ArkInventory
.
GetLocationCodex
(
loc_id
).
style
.
bar
.
border
.
colour
bd
:
SetFrameLevel
(
f
:
GetFrameLevel
())
AS
:
SetOutside
(
bd
,
nil
,
1
,
-
5
)
bd
:
SetBackdropBorderColor
(
bbc
.
r
,
bbc
.
g
,
bbc
.
b
,
bbc
.
a
or
1
)
end
end
if
b
then
AS
:
SkinButton
(
b
)
b
:
SetNormalTexture
(
[[Interface\Buttons\UI-GroupLoot-Pass-Up]]
)
b
:
SetHighlightTexture
(
[[Interface\Buttons\UI-GroupLoot-Pass-Highlight]]
)
b
:
SetPushedTexture
(
[[Interface\Buttons\UI-GroupLoot-Pass-Down]]
)
end
end
)
hooksecurefunc
(
ArkInventory
,
'Frame_Bar_Paint'
,
function
(
bar
)
local
loc_id
=
bar
.
ARK_Data
.
loc_id
if
not
bar
.
IsSkinned
then
local
name
=
bar
:
GetName
()
if
_G
[
name
..
'ArkBorder'
]
then
AS
:
Kill
(
_G
[
name
..
'ArkBorder'
])
end
if
_G
[
name
..
'Background'
]
then
AS
:
Kill
(
_G
[
name
..
'Background'
])
end
if
bar
.
ArkBorder
then
AS
:
Kill
(
bar
.
ArkBorder
)
end
bar
.
IsSkinned
=
true
end
AS
:
SetTemplate
(
bar
)
hooksecurefunc
(
ArkInventory
,
'Frame_Main_Anchor_Set'
,
function
(
loc_id
)
local
mainframe
=
ArkInventory
.
Frame_Main_Get
(
loc_id
):
GetName
()
local
f
=
_G
[
mainframe
..
ArkInventory
.
Const
.
Frame
.
Search
.
Name
..
'Filter'
]
local
b
=
_G
[
mainframe
..
ArkInventory
.
Const
.
Frame
.
Search
.
Name
..
'Clear'
]
if
f
then
AS
:
SkinEditBox
(
f
)
local
bd
=
f
.
backdrop
or
f
.
Backdrop
or
nil
if
bd
then
local
bbc
=
ArkInventory
.
GetLocationCodex
(
loc_id
).
style
.
bar
.
border
.
colour
bd
:
SetFrameLevel
(
f
:
GetFrameLevel
())
AS
:
SetOutside
(
bd
,
nil
,
1
,
-
5
)
bd
:
SetBackdropBorderColor
(
bbc
.
r
,
bbc
.
g
,
bbc
.
b
,
bbc
.
a
or
1
)
end
end
if
b
then
AS
:
SkinButton
(
b
)
b
:
SetNormalTexture
(
[[Interface\Buttons\UI-GroupLoot-Pass-Up]]
)
b
:
SetHighlightTexture
(
[[Interface\Buttons\UI-GroupLoot-Pass-Highlight]]
)
b
:
SetPushedTexture
(
[[Interface\Buttons\UI-GroupLoot-Pass-Down]]
)
end
end
)
hooksecurefunc
(
ArkInventory
,
'Frame_Bar_Paint'
,
function
(
bar
)
local
loc_id
=
bar
.
ARK_Data
.
loc_id
if
not
bar
.
IsSkinned
then
local
name
=
bar
:
GetName
()
if
_G
[
name
..
'ArkBorder'
]
then
AS
:
Kill
(
_G
[
name
..
'ArkBorder'
])
end
if
_G
[
name
..
'Background'
]
then
AS
:
Kill
(
_G
[
name
..
'Background'
])
end
if
bar
.
ArkBorder
then
AS
:
Kill
(
bar
.
ArkBorder
)
end
bar
.
IsSkinned
=
true
end
AS
:
SetTemplate
(
bar
)
if
ArkInventory
.
Global
.
Mode
.
Edit
then
bar
:
SetBackdropBorderColor
(
1
,
0
,
0
,
1
)
...
...
@@ -61,12 +63,12 @@ function AS:ArkInventory()
end
end
)
hooksecurefunc
(
ArkInventory
,
'SetItemButtonTexture'
,
function
(
frame
,
texture
,
r
,
g
,
b
)
if
not
(
frame
and
frame
.
icon
)
then
return
end
hooksecurefunc
(
ArkInventory
,
'SetItemButtonTexture'
,
function
(
frame
,
texture
,
r
,
g
,
b
)
if
not
(
frame
and
frame
.
icon
)
then
return
end
AS
:
SkinTexture
(
frame
.
icon
)
AS
:
SetInside
(
frame
.
icon
)
end
)
AS
:
SkinTexture
(
frame
.
icon
)
AS
:
SetInside
(
frame
.
icon
)
end
)
hooksecurefunc
(
ArkInventory
,
'Frame_Item_Update_Border'
,
function
(
frame
)
if
not
ArkInventory
.
ValidFrame
(
frame
,
true
)
then
return
end
...
...
@@ -74,32 +76,33 @@ function AS:ArkInventory()
if
not
obj
then
return
end
AS
:
Kill
(
obj
)
AS
:
SetTemplate
(
frame
)
frame
:
SetBackdropBorderColor
(
obj
:
GetBackdropBorderColor
())
frame
:
SetBackdropColor
(
unpack
(
AS
.
BorderColor
))
AS
:
SkinTexture
(
frame
.
icon
)
frame
:
SetNormalTexture
(
nil
)
if
_G
[
frame
:
GetName
()]
==
ARKINV_Frame1ChangerWindowBag1
then
ARKINV_Frame1ChangerWindowBag1IconTexture
:
SetTexture
(
'interface\\icons\\inv_misc_bag_07_green'
)
AS
:
SkinTexture
(
ARKINV_Frame1ChangerWindowBag1IconTexture
)
AS
:
SetInside
(
ARKINV_Frame1ChangerWindowBag1IconTexture
)
end
end
)
hooksecurefunc
(
ArkInventory
,
'Frame_Border_Paint'
,
function
(
border
,
slot
,
file
,
size
,
offset
,
scale
,
r
,
g
,
b
,
a
)
local
parent
=
border
:
GetParent
()
parent
:
SetBackdropBorderColor
(
r
,
g
,
b
,
a
)
parent
:
SetBackdropColor
(
unpack
(
AS
.
BackdropColor
))
end
)
if
AS
:
CheckAddOn
(
'ElvUI'
)
then
hooksecurefunc
(
ArkInventory
,
'Frame_Item_Update_Clickable'
,
function
(
frame
)
local
obj
=
_G
[
frame
:
GetName
()
..
ArkInventory
.
Const
.
Frame
.
Cooldown
.
Name
]
if
obj
then
ElvUI
[
1
]:
RegisterCooldown
(
obj
)
end
end
)
end
AS
:
SetTemplate
(
frame
)
frame
:
SetBackdropBorderColor
(
obj
:
GetBackdropBorderColor
())
frame
:
SetBackdropColor
(
unpack
(
AS
.
BorderColor
))
AS
:
SkinTexture
(
frame
.
icon
)
frame
:
SetNormalTexture
(
nil
)
if
_G
[
frame
:
GetName
()]
==
ARKINV_Frame1ChangerWindowBag1
then
ARKINV_Frame1ChangerWindowBag1IconTexture
:
SetTexture
(
'interface\\icons\\inv_misc_bag_07_green'
)
AS
:
SkinTexture
(
ARKINV_Frame1ChangerWindowBag1IconTexture
)
AS
:
SetInside
(
ARKINV_Frame1ChangerWindowBag1IconTexture
)
end
end
)
hooksecurefunc
(
ArkInventory
,
'Frame_Border_Paint'
,
function
(
border
,
slot
,
file
,
size
,
offset
,
scale
,
r
,
g
,
b
,
a
)
local
parent
=
border
:
GetParent
()
parent
:
SetBackdropBorderColor
(
r
,
g
,
b
,
a
)
parent
:
SetBackdropColor
(
unpack
(
AS
.
BackdropColor
))
end
)
if
AS
:
CheckAddOn
(
'ElvUI'
)
then
hooksecurefunc
(
ArkInventory
,
'Frame_Item_Update_Clickable'
,
function
(
frame
)
local
obj
=
_G
[
frame
:
GetName
()
..
ArkInventory
.
Const
.
Frame
.
Cooldown
.
Name
]
if
obj
then
ElvUI
[
1
]:
RegisterCooldown
(
obj
)
end
end
)
end
end
AS
:
RegisterSkin
(
'ArkInventory'
,
AS
.
ArkInventory
)
\ No newline at end of file
AS
:
RegisterSkin
(
'ArkInventory'
,
AS
.
ArkInventory
)
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