big progress on new UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user