SHOW:
|
|
- or go back to the newest paste.
1 | function centerText(text, y, color) | |
2 | -- mon.clear() | |
3 | mX = mon.getSize() | |
4 | x = math.floor(mX/2) - math.floor(string.len(text)/2) | |
5 | mon.setCursorPos(x, y) | |
6 | mon.setTextColor(colors.green) | |
7 | mon.write(text) | |
8 | end | |
9 | ||
10 | mon = peripheral.wrap("top") | |
11 | - | mon.setTextScale(1) |
11 | + | mon.setTextScale(0.8) |
12 | mon.setBackgroundColor(colors.black) | |
13 | -- mon.clear() | |
14 | centerText("Welcome!", 1,16384) | |
15 | centerText("--------------", 2,1) | |
16 | centerText("Kitty City is a friendly zone!", 3,1) | |
17 | centerText("No griefing, No stealing! No scamming!", 4,1) | |
18 | centerText("Respect others, don't beg for items!", 5,1) | |
19 | centerText("Members should try to contribute to the town!", 6,1) | |
20 | centerText("Kitty reserves the right to evict meanies!", 7,1) | |
21 | centerText("Don't forget to see the Information Boards!", 8,1) |