169 posts
Posted 13 May 2012 - 11:30 PM
[Removed]
1604 posts
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.
169 posts
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.
2217 posts
Location
3232235883
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
67 posts
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 :)/>/> !!!
37 posts
Posted 25 September 2012 - 07:44 PM
Help!
When i press enter nothing happens
aaah nvm