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