From bbacc6e62697e4a541792275054bfc7437e5a25c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 2 Jan 2023 03:04:04 +0000 Subject: shop --- shop2.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/shop2.lua b/shop2.lua index 83f01df..d4c75ee 100644 --- a/shop2.lua +++ b/shop2.lua @@ -41,25 +41,25 @@ local function disp_shopscreen() local m = peripheral.wrap"left" m.clear() m.setTextScale(0.5) - -- Stock Price Adr. Name - -- xxxxx xxxxxkst dmn Diamond + -- Stock Price Adr. Name + -- xxxx xxxkst dmn Diamond -- 123456789012345678901234567890123456789012345678901234567 -- 0 1 2 3 4 5 local function fmt_row(m,y, stock,price,adr,name, colour) colour = colour or colors.cyan printseq(m) { - {1,y}, colors.white, pad(stock,5), - {8,y}, colors.yellow, pad(price,5), colors.lightGray, "kst", - {18,y}, colour, adr, - {25,y}, colour, name, + {1,y}, colors.white, pad(stock,4), + {7,y}, colors.yellow, pad(price,3), colors.lightGray, "kst", + {15,y}, colour, adr, + {22,y}, colour, name, } end printseq(m) { {1,1}, colors.orange, "Apiaristics Consortium Store", - {1,2}, colors.lightGray, "Stock Price Adr. Name", + {1,2}, colors.lightGray, "Stock Price Adr. Name", } for ix,i in ipairs(ITEMS) do -- cgit v1.2.3