[ add ] unit vendor price to post tab

This commit is contained in:
gwetchen
2025-06-25 17:32:06 +02:00
parent 697726e3b7
commit b986cc518a
2 changed files with 20 additions and 1 deletions
+14
View File
@@ -336,6 +336,7 @@ function update_item_configuration()
deposit:Hide()
duration_dropdown:Hide()
hide_checkbox:Hide()
vendor_price_label:Hide()
else
unit_start_price_input:Show()
unit_buyout_price_input:Show()
@@ -344,6 +345,7 @@ function update_item_configuration()
deposit:Show()
duration_dropdown:Show()
hide_checkbox:Show()
vendor_price_label:Show()
item.texture:SetTexture(selected_item.texture)
item.name:SetText('[' .. selected_item.name .. ']')
@@ -369,6 +371,18 @@ function update_item_configuration()
deposit:SetText('Deposit: ' .. money.to_string(amount, nil, nil, aux.color.text.enabled))
end
--vendor price
do
local unit_vendor_price = selected_item.unit_vendor_price
if not unit_vendor_price then
vendor_price_label:SetText("Unit Vendor Price: N/A")
elseif unit_vendor_price == 0 then
vendor_price_label:SetText("Unit Vendor Price: None")
else
vendor_price_label:SetText("Unit Vendor Price: " .. money.to_string(unit_vendor_price, nil, nil, aux.color.text.enabled))
end
end
refresh_button:Enable()
end
end
+6 -1
View File
@@ -307,9 +307,14 @@ do
end
do
local label = gui.label(frame.parameters, gui.font_size.medium)
label:SetPoint('TOPLEFT', unit_buyout_price_input, 'BOTTOMLEFT', 0, -24)
label:SetPoint('TOPLEFT', unit_buyout_price_input, 'BOTTOMLEFT', -180, -24)
deposit = label
end
do
local label = gui.label(frame.parameters, gui.font_size.medium)
label:SetPoint('TOPLEFT', unit_buyout_price_input, 'BOTTOMLEFT', 0, -24)
vendor_price_label = label
end
function aux.handle.LOAD()
if not aux.account_data.post_bid then