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
41d817b0
Commit
41d817b0
authored
Oct 19, 2020
by
fuba82
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed Backdrop errors in 9.x
parent
30d5a523
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Skins/AddOns/ArkInventory.lua
Skins/AddOns/ArkInventory.lua
+5
-1
No files found.
Skins/AddOns/ArkInventory.lua
View file @
41d817b0
...
...
@@ -31,6 +31,7 @@ function AS:ArkInventory()
local
bbc
=
ArkInventory
.
GetLocationCodex
(
loc_id
).
style
.
bar
.
border
.
colour
bd
:
SetFrameLevel
(
f
:
GetFrameLevel
())
AS
:
SetOutside
(
bd
,
nil
,
1
,
-
5
)
Mixin
(
bd
,
BackdropTemplateMixin
)
bd
:
SetBackdropBorderColor
(
bbc
.
r
,
bbc
.
g
,
bbc
.
b
,
bbc
.
a
or
1
)
end
end
...
...
@@ -56,6 +57,7 @@ function AS:ArkInventory()
AS
:
SetTemplate
(
bar
)
if
ArkInventory
.
Global
.
Mode
.
Edit
then
Mixin
(
bar
,
BackdropTemplateMixin
)
bar
:
SetBackdropBorderColor
(
1
,
0
,
0
,
1
)
bar
:
SetBackdropColor
(
1
,
0
,
0
,
.
1
)
else
...
...
@@ -77,6 +79,7 @@ function AS:ArkInventory()
AS
:
Kill
(
obj
)
AS
:
SetTemplate
(
frame
)
Mixin
(
frame
,
BackdropTemplateMixin
)
frame
:
SetBackdropBorderColor
(
obj
:
GetBackdropBorderColor
())
frame
:
SetBackdropColor
(
unpack
(
AS
.
BorderColor
))
AS
:
SkinTexture
(
frame
.
icon
)
...
...
@@ -91,6 +94,7 @@ function AS:ArkInventory()
hooksecurefunc
(
ArkInventory
,
'Frame_Border_Paint'
,
function
(
border
,
slot
,
file
,
size
,
offset
,
scale
,
r
,
g
,
b
,
a
)
local
parent
=
border
:
GetParent
()
Mixin
(
parent
,
BackdropTemplateMixin
)
parent
:
SetBackdropBorderColor
(
r
,
g
,
b
,
a
)
parent
:
SetBackdropColor
(
unpack
(
AS
.
BackdropColor
))
end
)
...
...
@@ -105,4 +109,4 @@ function AS:ArkInventory()
end
end
AS
:
RegisterSkin
(
'ArkInventory'
,
AS
.
ArkInventory
)
AS
:
RegisterSkin
(
'ArkInventory'
,
AS
.
ArkInventory
)
\ No newline at end of file
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