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

Video, how to create a basic menu!

Started by JelaFish, 21 July 2012 - 11:49 AM
JelaFish #1
Posted 21 July 2012 - 01:49 PM
[media]http://www.youtube.com/watch?v=Zrzvh1K4zIg&feature=plcp[/media]
Skip to 4 minutes for the code tutorial, code used in description below the vid and also here http://www.mediafire...fc0jqeec0gfk5ku

Thanks for watching!
KingMachine #2
Posted 01 August 2012 - 06:45 PM
When I think of menu I think of a controllable selector moving across the screen, personally. Your way is very inventive however if I were to write out commands for my functions I would be writing a different program for each function to save time.
Ie a program
lighthouse
takes 1 argument
<on/off>
then the code for that etc…

Same with the energy management. I would rather type
em on or em off
straight from my console.

Just expressing what I would do to make this functioning more efficient. I mean no offense by that by the way. I just think that there is a better way to accomplish what is being done with your menu system.
JelaFish #3
Posted 02 August 2012 - 09:21 PM
Your way is more efficient, but this way is easier to understand and do (imo). In my tutorials I try to explain why each line of code does what it does :ph34r:/>/>
KingMachine #4
Posted 02 August 2012 - 09:37 PM
I'm glad that you added "imo" because I was gonna be like "wait what? I DISAGREE!". Fair enough though.
jww #5
Posted 16 August 2012 - 05:06 PM
Not trying to be a nitpick, but I just noticed a small thing. Your notes on the last "end" in the code say "while z" where z should be x. Just pointing out to save any confusion. Otherwise, it was a pretty good tutorial, very thorough.