From 54a5e9e36731dcb972ba4746d18f9e46fc062eb2 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 7 Jan 2023 05:28:09 +0000 Subject: shop2 --- shop2/disp.lua | 12 +++++++----- 1 file 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() -- cgit v1.2.3