pretty input box

This commit is contained in:
Manuel Simon Hirsig
2016-01-23 17:18:57 +01:00
parent b1641ad0b8
commit b310ab5558
5 changed files with 137 additions and 53 deletions
+3 -2
View File
@@ -82,11 +82,12 @@ function public.create(params)
local scrollbar = getglobal(scroll_frame:GetName()..'ScrollBar')
scrollbar:SetPoint('TOPLEFT', scroll_frame, 'TOPRIGHT', 6, -4)
scrollbar:SetPoint('BOTTOMLEFT', scroll_frame, 'BOTTOMRIGHT', 6, 4)
scrollbar:SetWidth(12)
local thumbTex = scrollbar:GetThumbTexture()
thumbTex:SetPoint('CENTER', 0, 0)
thumbTex:SetTexture(42/255, 42/255, 42/255, 1)
thumbTex:SetHeight(params.frame:GetHeight() * .4)
thumbTex:SetWidth(scrollbar:GetWidth())
thumbTex:SetHeight(50)
thumbTex:SetWidth(12)
local scrollbg = scrollbar:CreateTexture(nil, 'BACKGROUND')
scrollbg:SetAllPoints(scrollbar)
scrollbg:SetTexture(24/255, 24/255, 24/255, 1)