big progress on new UI

This commit is contained in:
Manuel Simon Hirsig
2015-10-24 19:37:44 +02:00
13 changed files with 1094 additions and 1159 deletions
+8 -4
View File
@@ -432,6 +432,8 @@ function Aux.buy.exit()
end
function Aux.buy.on_open()
AuxBuySearchButton:Show()
AuxBuyStopButton:Hide()
update_sheet()
end
@@ -825,18 +827,20 @@ end
function AuxBuyQualityDropDown_Initialize()
local function on_click()
UIDropDownMenu_SetSelectedValue(AuxBuyQualityDropDown, this.value)
end
UIDropDownMenu_AddButton{
text = ALL,
value = -1,
func = AuxBuyQualityDropDown_OnClick,
func = on_click,
}
for i=0,getn(ITEM_QUALITY_COLORS)-2 do
UIDropDownMenu_AddButton{
text = getglobal("ITEM_QUALITY"..i.."_DESC"),
value = i,
func = function()
UIDropDownMenu_SetSelectedValue(AuxBuyQualityDropDown, this.value)
end,
func = on_click,
}
end
end