diff --git a/tabs/post/core.lua b/tabs/post/core.lua index 85b267d..b2f8897 100644 --- a/tabs/post/core.lua +++ b/tabs/post/core.lua @@ -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 diff --git a/tabs/post/frame.lua b/tabs/post/frame.lua index 60bebbf..1e1b2ac 100644 --- a/tabs/post/frame.lua +++ b/tabs/post/frame.lua @@ -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