this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
getglobal(this:GetName().."Title"):SetText('Inventory')
local config = Aux.sell.inventory_listing_config
local sort_order = Aux.util.map(config.sort_order, function(column_order) return { column = config.columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
this.sheet = Aux.sheet.create(this, config.columns, sort_order, config.row_setter, config.on_row_click, config.on_row_enter, config.on_row_leave)
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
getglobal(this:GetName().."Title"):SetText('Parameters')
Aux.sell.quantity_update()
Aux.sell.quantity_update()
if AuxSellStackSizeSlider.charge_classes then
local charge_slider_value = Aux.util.index_of(this:GetNumber(), AuxSellStackSizeSlider.charge_classes)
if charge_slider_value then
AuxSellStackSizeSlider:SetValue(charge_slider_value)
end
else
AuxSellStackSizeSlider:SetValue(this:GetNumber())
end
Aux.sell.quantity_update()
this:HighlightText(0, 0)
this:HighlightText()
if AuxSellStackCountSlider.charge_classes then
local index = Aux.util.index_of(this:GetNumber(), AuxSellStackCountSlider.charge_classes)
if index then
AuxSellStackCountSlider:SetValue(index)
end
else
AuxSellStackCountSlider:SetValue(this:GetNumber())
end
Aux.sell.quantity_update()
this:HighlightText(0, 0)
this:HighlightText()
getglobal(this:GetName().."Text"):SetText("2h")
Aux.sell.duration_radio_button_on_click(1)
getglobal(this:GetName()..'Text'):SetText("8h")
Aux.sell.duration_radio_button_on_click(2)
getglobal(this:GetName().."Text"):SetText("24h")
Aux.sell.duration_radio_button_on_click(3)
MoneyInputFrame_SetOnvalueChangedFunc(this, Aux.sell.validate_parameters)
MoneyInputFrame_SetOnvalueChangedFunc(this, Aux.sell.validate_parameters)
SmallMoneyFrame_OnLoad()
MoneyFrame_SetType('STATIC')
this:SetBackdropBorderColor(0.4, 0.4, 0.4)
this:SetBackdropColor(0.15, 0.15, 0.15)
getglobal(this:GetName().."Title"):SetText('Existing Auctions')
local config = Aux.sell.auction_listing_config
local sort_order = Aux.util.map(config.sort_order, function(column_order) return { column = config.columns[column_order.column], sort_ascending = column_order.order == 'ascending' } end)
this.sheet = Aux.sheet.create(this, config.columns, sort_order, config.row_setter, config.on_cell_click, config.on_cell_enter, config.on_cell_leave)