Posted 26 January 2015 - 01:46 AM
I'm not sure if this is the board this post belongs on. If not, please move it!
I'm creating the Display API for ComputerCraft; a really simple and easy to use API to make your programs look prettier.
Additions so far:
centerPrint(text,y)
Prints your text directly in the center of the screen, and drops down a line.
centerWrite(text,y)
Prints your text directly in the center of the screen, however cursor is placed right after last character in string (similar to "term.write")
rightPrint(text,y)
Aligns your text to the right side of the screen, and drops down a line.
rightWrite(text,y)
Aligns your text to the right side of the screen, and places cursor after final character.
cls()
Shorthand for "term.clear() term.setCursorPos(1,1)"
text(color)
Shorthand for "term.setTextColor(color)"
bg(color)
Shorthand for "term.setBackgroundColor(color)"
What I want to know is… what would you like in this api? Let me know!
I'm creating the Display API for ComputerCraft; a really simple and easy to use API to make your programs look prettier.
Additions so far:
centerPrint(text,y)
Prints your text directly in the center of the screen, and drops down a line.
centerWrite(text,y)
Prints your text directly in the center of the screen, however cursor is placed right after last character in string (similar to "term.write")
rightPrint(text,y)
Aligns your text to the right side of the screen, and drops down a line.
rightWrite(text,y)
Aligns your text to the right side of the screen, and places cursor after final character.
cls()
Shorthand for "term.clear() term.setCursorPos(1,1)"
text(color)
Shorthand for "term.setTextColor(color)"
bg(color)
Shorthand for "term.setBackgroundColor(color)"
What I want to know is… what would you like in this api? Let me know!