diff options
author | ubq323 <ubq323@ubq323.website> | 2023-01-02 03:05:07 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-01-02 03:05:07 +0000 |
commit | 54f4a978ed936fba95a0cf68856816c58ab72b5f (patch) | |
tree | d487aa80ae258b946e4fa7cb9b274a4ad1ef57af | |
parent | bbacc6e62697e4a541792275054bfc7437e5a25c (diff) |
shop
-rw-r--r-- | shop2.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -41,17 +41,17 @@ local function disp_shopscreen() local m = peripheral.wrap"left" m.clear() m.setTextScale(0.5) - -- Stock Price Adr. Name - -- xxxx xxxkst 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,4), - {7,y}, colors.yellow, pad(price,3), colors.lightGray, "kst", - {15,y}, colour, adr, + {1,y}, colors.white, pad(stock,5), + {8,y}, colors.yellow, pad(price,3), colors.lightGray, "kst", + {16,y}, colour, adr, {22,y}, colour, name, } end |