mirror of
https://github.com/edubart/otclient.git
synced 2025-11-30 23:26:51 +01:00
Added 'sell all' tooltip to show items you can sell
* Now 'sell all' button with enable/disable * Fixed display issue with 'sell all' button * Also changed spinbox button click
This commit is contained in:
@@ -138,6 +138,15 @@ function table.findbyfield(t, fieldname, fieldvalue)
|
||||
return nil
|
||||
end
|
||||
|
||||
function table.size(t)
|
||||
local size = 0
|
||||
for i, n in pairs(table) do
|
||||
size = size + 1
|
||||
end
|
||||
|
||||
return size
|
||||
end
|
||||
|
||||
function table.tostring(t)
|
||||
local maxn = #t
|
||||
local str = ""
|
||||
|
||||
Reference in New Issue
Block a user