This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CaosTECH's profile picture

More APIs / Better APIs -=- Also more colors

Started by CaosTECH, 07 September 2015 - 02:40 AM
CaosTECH #1
Posted 07 September 2015 - 04:40 AM
Ive played ComputerCraft since 1.5 and there has been alot of OS's and other games/programs that use buttons. But its not also some dont use buttons. Idk if its because they purposely dont use buttons or its because they cant figure it out. So what im saying is that there should be stuff like

term.setItem("arg1") – arg1 is a program. like shell.run(" ")

term.createButton("arg1, arg2, arg3") – arg1 is X, arg2 is Y, arg3 is item
(also if you want you can change how the term.setItem is, like term.setName or term.setProg, or you can make a whole new api [ie: button.create and button.setProg])
And there should be more colors, like darkRed, darkPurple, and etc, just more colors

I do hope someone sees this and helps with more ideas and/or adds this to computercraft or a pastebin for an API that does this, very very simple button making
KingofGamesYami #2
Posted 07 September 2015 - 02:31 PM
There are numerous button APIs that are very simple. A good example is Lyqyd's touchpoint API, originally designed to work on monitors, but now works with term as well.

More colors isn't something that's going to happen because the current color pallet was chosen for the amount of data it takes; there are 256 combinations (background + text), and with only 8 bits (1 byte) you can cover all of those.