fixed rarity all not being selectable and sorting bug with full mode

This commit is contained in:
Manuel Simon Hirsig
2015-10-23 23:18:03 +02:00
parent 2de27258f9
commit beb8018f0a
3 changed files with 126 additions and 48 deletions
+6 -4
View File
@@ -826,18 +826,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