mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-01 03:19:59 +00:00
api: update SkinScrollbar
This commit is contained in:
+3
-2
@@ -344,7 +344,8 @@ function pfUI.api.SkinArrowButton(button, dir)
|
||||
end
|
||||
end
|
||||
|
||||
function pfUI.api.SkinScrollbar(frame, parent)
|
||||
function pfUI.api.SkinScrollbar(frame, always)
|
||||
local parent = frame:GetParent()
|
||||
local name = frame:GetName()
|
||||
local up = _G[name .. "ScrollUpButton"]
|
||||
local down = _G[name .. "ScrollDownButton"]
|
||||
@@ -369,7 +370,7 @@ function pfUI.api.SkinScrollbar(frame, parent)
|
||||
end
|
||||
|
||||
-- always show parent frame
|
||||
if parent then
|
||||
if always then
|
||||
parent:Show()
|
||||
parent.Hide = function(self) frame.thumb:Hide() end
|
||||
parent.Show = function(self) frame.thumb:Show() end
|
||||
|
||||
Reference in New Issue
Block a user