improvement in buying mechanism

This commit is contained in:
Manuel Simon Hirsig
2016-01-24 08:41:11 +01:00
parent 3258e60214
commit 0f66a4d1fe
5 changed files with 142 additions and 178 deletions
+4 -4
View File
@@ -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)