Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Rayford
Tukui
Commits
74ad0d6d
Commit
74ad0d6d
authored
Dec 16, 2018
by
Azilroka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API Cleanup
parent
74faf98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Tukui/Core/Api.lua
Tukui/Core/Api.lua
+4
-6
No files found.
Tukui/Core/Api.lua
View file @
74ad0d6d
...
@@ -50,8 +50,8 @@ local function Point(obj, arg1, arg2, arg3, arg4, arg5)
...
@@ -50,8 +50,8 @@ local function Point(obj, arg1, arg2, arg3, arg4, arg5)
end
end
local
function
SetOutside
(
obj
,
anchor
,
xOffset
,
yOffset
)
local
function
SetOutside
(
obj
,
anchor
,
xOffset
,
yOffset
)
xOffset
=
xOffset
or
(
MakeInset
and
2
)
or
1
xOffset
=
xOffset
or
1
yOffset
=
yOffset
or
(
MakeInset
and
2
)
or
1
yOffset
=
yOffset
or
1
anchor
=
anchor
or
obj
:
GetParent
()
anchor
=
anchor
or
obj
:
GetParent
()
if
obj
:
GetPoint
()
then
obj
:
ClearAllPoints
()
end
if
obj
:
GetPoint
()
then
obj
:
ClearAllPoints
()
end
...
@@ -61,8 +61,8 @@ local function SetOutside(obj, anchor, xOffset, yOffset)
...
@@ -61,8 +61,8 @@ local function SetOutside(obj, anchor, xOffset, yOffset)
end
end
local
function
SetInside
(
obj
,
anchor
,
xOffset
,
yOffset
)
local
function
SetInside
(
obj
,
anchor
,
xOffset
,
yOffset
)
xOffset
=
xOffset
or
(
MakeInset
and
2
)
or
1
xOffset
=
xOffset
or
1
yOffset
=
yOffset
or
(
MakeInset
and
2
)
or
1
yOffset
=
yOffset
or
1
anchor
=
anchor
or
obj
:
GetParent
()
anchor
=
anchor
or
obj
:
GetParent
()
if
obj
:
GetPoint
()
then
obj
:
ClearAllPoints
()
end
if
obj
:
GetPoint
()
then
obj
:
ClearAllPoints
()
end
...
@@ -242,8 +242,6 @@ local function SkinButton(Frame, Strip)
...
@@ -242,8 +242,6 @@ local function SkinButton(Frame, Strip)
end
)
end
)
Frame
:
HookScript
(
"OnLeave"
,
function
(
self
)
Frame
:
HookScript
(
"OnLeave"
,
function
(
self
)
local
Color
=
RAID_CLASS_COLORS
[
select
(
2
,
UnitClass
(
"player"
))]
self
:
SetBackdropColor
(
C
.
General
.
BackdropColor
[
1
],
C
.
General
.
BackdropColor
[
2
],
C
.
General
.
BackdropColor
[
3
])
self
:
SetBackdropColor
(
C
.
General
.
BackdropColor
[
1
],
C
.
General
.
BackdropColor
[
2
],
C
.
General
.
BackdropColor
[
3
])
self
:
SetBackdropBorderColor
(
C
.
General
.
BorderColor
[
1
],
C
.
General
.
BorderColor
[
2
],
C
.
General
.
BorderColor
[
3
])
self
:
SetBackdropBorderColor
(
C
.
General
.
BorderColor
[
1
],
C
.
General
.
BorderColor
[
2
],
C
.
General
.
BorderColor
[
3
])
end
)
end
)
...
...
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