module refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-09 06:44:35 +02:00
parent 0cc09e3d71
commit d4bdd3b1d0
5 changed files with 38 additions and 28 deletions
+2 -2
View File
@@ -9,8 +9,6 @@ public.config = {
panel = {backdrop = {24, 24, 24, 1}, border = {255, 255, 255, .03}},
content = {backdrop = {42, 42, 42, 1}, border = {0, 0, 0, 0}},
state = {enabled = {70, 180, 70}, disabled = {190, 70, 70}},
money1 = {gold = {255, 215, 10, 1}, silver = {252, 199, 207, 1}, copper = {237, 165, 95, 1}},
money2 = {gold = {}, silver = {}, copper = {}},
},
edge_size = 1.5,
font = [[Fonts\ARIALN.TTF]],
@@ -95,9 +93,11 @@ function m.LOAD()
if strfind(dropdown:GetName() or '', 'aux_frame') then
DropDownList1Backdrop:SetBackdrop({})
DropDownList1Backdrop.border:Show()
DropDownList1Backdrop.backdrop:SetAllPoints()
DropDownList1Backdrop.backdrop:Show()
DropDownList1:SetWidth(dropdown:GetWidth() * 0.9)
DropDownList1:SetHeight(DropDownList1:GetHeight() - 10)
DropDownList1:ClearAllPoints()
DropDownList1:SetPoint('TOPLEFT', dropdown, 'BOTTOMLEFT', -2, -2)
for i=1,UIDROPDOWNMENU_MAXBUTTONS do
local button = getglobal('DropDownList1Button'..i)