diff options
author | ubq323 <ubq323@ubq323.website> | 2023-01-07 05:28:09 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-01-07 05:28:09 +0000 |
commit | 54a5e9e36731dcb972ba4746d18f9e46fc062eb2 (patch) | |
tree | 095ca1a56ac6f626d37baf3b0cf2aabb13782639 /shop2 | |
parent | dfbcd362bbd9c9e210dc72c9cf451d3f844118c0 (diff) |
shop2
Diffstat (limited to 'shop2')
-rw-r--r-- | shop2/disp.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/shop2/disp.lua b/shop2/disp.lua index 46270a2..6a0ce32 100644 --- a/shop2/disp.lua +++ b/shop2/disp.lua @@ -54,10 +54,6 @@ local function disp_shopscreen(items) } end - printseq(mon) { - {1,1}, colors.orange, "Apiaristics Consortium Store", - {1,2}, colors.lightGray, "Stock Price Adr. Name", - } -- sort alphabetically by address -- todo: more intuitive sort, once more things are for sale @@ -67,9 +63,15 @@ local function disp_shopscreen(items) mon.clear() mon.setTextScale(0.5) + + printseq(mon) { + {1,1}, colors.orange, "Apiaristics Consortium Store", + {1,2}, colors.lightGray, "Stock Price Adr. Name", + } + for ix,adr in ipairs(adrs) do local idesc = items[adr] - fmt_row(ix+2, idesc) + fmt_row(ix+2, idesc, ) end local w,h = mon.getSize() |