improvement in buying mechanism
This commit is contained in:
@@ -80,8 +80,8 @@ function public.create(params)
|
||||
local scroll_frame = CreateFrame('ScrollFrame', name..'ScrollFrame', params.frame, 'FauxScrollFrameTemplate')
|
||||
|
||||
local scrollbar = getglobal(scroll_frame:GetName()..'ScrollBar')
|
||||
scrollbar:SetPoint('TOPLEFT', scroll_frame, 'TOPRIGHT', 6, -4)
|
||||
scrollbar:SetPoint('BOTTOMLEFT', scroll_frame, 'BOTTOMRIGHT', 6, 4)
|
||||
scrollbar:SetPoint('TOPLEFT', scroll_frame, 'TOPRIGHT', 6, 0)
|
||||
scrollbar:SetPoint('BOTTOMLEFT', scroll_frame, 'BOTTOMRIGHT', 6, 0)
|
||||
scrollbar:SetWidth(12)
|
||||
local thumbTex = scrollbar:GetThumbTexture()
|
||||
thumbTex:SetPoint('CENTER', 0, 0)
|
||||
@@ -91,8 +91,8 @@ function public.create(params)
|
||||
local scrollbg = scrollbar:CreateTexture(nil, 'BACKGROUND')
|
||||
scrollbg:SetAllPoints(scrollbar)
|
||||
scrollbg:SetTexture(24/255, 24/255, 24/255, 1)
|
||||
local scrollbar = getglobal(scroll_frame:GetName()..'ScrollBarScrollUpButton'):Hide()
|
||||
local scrollbar = getglobal(scroll_frame:GetName()..'ScrollBarScrollDownButton'):Hide()
|
||||
getglobal(scroll_frame:GetName()..'ScrollBarScrollUpButton'):Hide()
|
||||
getglobal(scroll_frame:GetName()..'ScrollBarScrollDownButton'):Hide()
|
||||
|
||||
scroll_frame:SetScript('OnVerticalScroll', function()
|
||||
FauxScrollFrame_OnVerticalScroll(16, function() public.render(this.sheet) end)
|
||||
|
||||
Reference in New Issue
Block a user