mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 2.2 - retro layout + bug fixes
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user