mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
optimize UIWidget for largers NPC trades
This commit is contained in:
@@ -148,7 +148,7 @@ local function refreshTradeItems()
|
||||
for key,item in pairs(currentTradeItems) do
|
||||
local itemBox = createWidget('NPCItemBox', itemsPanel)
|
||||
itemBox.item = item
|
||||
|
||||
|
||||
local name = item.name
|
||||
local weight = string.format('%.2f', item.weight) .. ' ' .. WEIGHT_UNIT
|
||||
local price = item.price .. ' ' .. CURRENCY
|
||||
|
@@ -19,7 +19,7 @@ NPCItemBox < UICheckBox
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin-top: 5
|
||||
|
||||
$checked:
|
||||
$checked:
|
||||
border-color: #ffffff
|
||||
|
||||
$hover !checked:
|
||||
|
Reference in New Issue
Block a user