Posted 03 April 2013 - 04:15 PM
I am trying to make some buttons for my games and menus. I already know how to do buttons that are just plain out text but I wanted to know how to make some that have like colored boxes with text in them. When trying to figure out how to do this, this is all I came up with:
Help is appreciated!
Thanks! :D/>
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColor(colors.green)
write(" ")
term.setCursorPos(1,2)
write(" ")
term.setCursorPos(1,3)
write(" Start! ")
term.setCursorPos(1,4)
write(" ")
term.setCursorPos(1,5)
write(" ")
Of course I could probably use a for loop for this but it's just a concept. However, I feel like this concept is somewhat bad. I don't know if there is a better way to make boxes instead of writing blank spaces, but that definitely seems odd to me. I honestly don't know if there is a better way to do this or if how I'm doing it is the only way to do it. If someone knows a better way please tell me. Help is appreciated!
Thanks! :D/>