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

A simpler way of doing things?

Started by Nikolai, 02 December 2012 - 04:22 PM
Nikolai #1
Posted 02 December 2012 - 05:22 PM
I am making a program that will allow users to select a food/beverage and have it made and served to them. The options are Milk, coffee, baked potato and cake. Is it possible to make a list that they can navigate through with the arrow keys to select what they want, instead of having to type it in? So far all I have is this. :unsure:/>


os.pullEvent = os.pullEventRaw
print("Hello user, please select your preferred item")
zekesonxx #2
Posted 02 December 2012 - 07:03 PM
Yes, perfectly possible. There are at least 5 menu APIs circulating around the forums, go find one and implement it.

Also don't have a meme as a form signature. Makes you look like a 5 year old.
Kingdaro #3
Posted 02 December 2012 - 07:21 PM
Yes, perfectly possible. There are at least 5 menu APIs circulating around the forums, go find one and implement it.

Also don't have a meme as a form signature. Makes you look like a 5 year old.
The same can be said for a simple coding joke involving pie, which by the way, has a syntax error.

People can have whatever signature they please.
KaoS #4
Posted 02 December 2012 - 07:45 PM
take a look at my pastebin, I have 5 different menu functions there. I would advise using the basic menu function if you do not want to scroll or the advanced one if you do want to scroll, the others will just make it too complex with multiple columns etc, they are defined in the code as local functions, they were not designed to be APIs or require credit. just paste it in at the top of your code
Nikolai #5
Posted 02 December 2012 - 08:00 PM
thanks guys, I should have looked around more before I asked.



Yes, perfectly possible. There are at least 5 menu APIs circulating around the forums, go find one and implement it.

Also don't have a meme as a form signature. Makes you look like a 5 year old.

You have no idea how painful windows 8 is do you?
zekesonxx #6
Posted 02 December 2012 - 09:09 PM
I work in public tech support. I know exactly how painful it is, and how to make up a bullsh*t letter to management saying we need hundreds of Windows 7 keys.
Nikolai #7
Posted 04 December 2012 - 07:31 AM
Within the first hour of using it I was asking myself "I wasted $30 for THIS?" Installed Ubuntu the next day, I've never looked back.
ChunLing #8
Posted 04 December 2012 - 08:23 AM
I take it that this is your graphical representation of installing Ubuntu? I'll admit, I like Ubuntu. Not enough to give up my trusty old XP entirely, but enough that I never "upgraded" past it.
DaWooShit #9
Posted 05 December 2012 - 09:31 AM
Might be of use: http://pastebin.com/SfLW4rE2
Its the standard template that I use for making menu screens. Simple and flexible.