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

[Deleted]

Started by Shazz, 13 May 2012 - 09:30 PM
Shazz #1
Posted 13 May 2012 - 11:30 PM
[Removed]
MysticT #2
Posted 14 May 2012 - 12:03 AM
Just some suggestions:
- tables + for loop = shorter and better code + "infinite" options
- Always use local variables where possible.
There's a tutorial about making menus, you can check it out to see some ways to do it, and maybe make an api with diferent, customizable menus.
Shazz #3
Posted 14 May 2012 - 12:05 AM
Just some suggestions:
- tables + for loop = shorter and better code + "infinite" options
- Always use local variables where possible.
There's a tutorial about making menus, you can check it out to see some ways to do it, and maybe make an api with diferent, customizable menus.

Thanks for commenting, I will definetely look into these.
PixelToast #4
Posted 17 May 2012 - 06:17 PM
this might help:
offset=0
ops1={
  [1]="option 1"
  [2]="option 2"
  [3]="option 3"
  [4]="option 4"
  [5]="option 5"
  [6]="option 6"
}
for l1=1,#ops1 do
  term.setCursorPos(selectionindent,l1)
  print(ops[l1+offset])
end
PossieTV #5
Posted 25 July 2012 - 10:47 PM
Thank you!!! I have been looking for how to make a menu for a long time and your code showed me how!!! Thank you :)/>/> !!!
TheEisbaer #6
Posted 25 September 2012 - 07:44 PM
Help!
When i press enter nothing happens

aaah nvm