milo shop tweaks
This commit is contained in:
@@ -101,7 +101,7 @@ local function createPage(node)
|
||||
text = ' < '
|
||||
},
|
||||
resetButton = UI.Button {
|
||||
x = 6, ex = -6,
|
||||
x = 7, ex = -7,
|
||||
event = 'reset',
|
||||
backgroundColor = colors.lightGray,
|
||||
text = 'Reset'
|
||||
|
||||
@@ -60,8 +60,8 @@ local function createPage(node)
|
||||
unfocusedBackgroundSelectedColor = colors.gray,
|
||||
columns = {
|
||||
{ heading = 'Stock', key = 'count', width = 6, justify = 'right' },
|
||||
{ heading = ' Price', key = 'price', width = 9, justify = 'right' },
|
||||
{ heading = 'Name', key = 'displayName' },
|
||||
{ heading = ' Price', key = 'price', width = 9, justify = 'right' },
|
||||
{ heading = 'Address', key = 'address', width = 12 },
|
||||
},
|
||||
sortColumn = 'displayName',
|
||||
@@ -120,8 +120,8 @@ local function createPage(node)
|
||||
|
||||
function page.grid:getDisplayValues(row)
|
||||
row = Util.shallowCopy(row)
|
||||
row.count = Util.toBytes(row.count) .. ' x'
|
||||
row.price = row.price .. ' kst '
|
||||
row.count = Util.toBytes(row.count) .. ' '
|
||||
row.price = string.format('%s kst ', row.price)
|
||||
row.address = row.name
|
||||
return row
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user