diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-01 04:39:02 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-01 04:39:02 +0100 |
commit | eedd07e327bf804829dc9e8d7b8df5eac9c55768 (patch) | |
tree | ec0f2051e3a89eba02881b844d26a058802f36af | |
parent | 255ec2a03d5110d2ae99551c3dd42a6dbcf7bf09 (diff) |
launch john
-rw-r--r-- | john.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -23,16 +23,17 @@ for ix,iname in ipairs(monitors) do total_width = total_width + (mon.getSize())*2 end local leftover = total_width - W +print("mmm",total_width,W,leftover) local xoffs = math.floor(leftover/2) for ix,iname in ipairs(monitors) do - print("doing",ix,iname) + print("doing",ix,iname,"at",xoffs) local mon = peripheral.wrap(iname) mon.clear() mon.setTextScale(0.5) local _, bee = pcall(function() fb:present(mon,xoffs,0) end) xoffs = xoffs + (mon.getSize())*2 + 8 - print(bee) + -- print(bee) end -- local m = peripheral.wrap "bottom" |