Version 2.2 - retro layout + bug fixes

This commit is contained in:
OTCv8
2020-03-31 21:34:09 +02:00
parent 1df9b82846
commit 6b39f061ae
189 changed files with 3384 additions and 4603 deletions

View File

@@ -39,16 +39,20 @@ function fillTrade(name, items, counter)
local tradeContainer
local label
local countLabel
if counter then
tradeContainer = tradeWindow:recursiveGetChildById('counterTradeContainer')
label = tradeWindow:recursiveGetChildById('counterTradeLabel')
countLabel = tradeWindow:recursiveGetChildById('counterTradeCountLabel')
tradeWindow:recursiveGetChildById('acceptButton'):enable()
else
tradeContainer = tradeWindow:recursiveGetChildById('ownTradeContainer')
label = tradeWindow:recursiveGetChildById('ownTradeLabel')
countLabel = tradeWindow:recursiveGetChildById('ownTradeCountLabel')
end
label:setText(name)
countLabel:setText(tr("Items") .. ": " .. #items)
for index,item in ipairs(items) do
local itemWidget = g_ui.createWidget('Item', tradeContainer)