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

Screen Mapping Help

Started by Too_Quataz, 19 August 2013 - 08:17 PM
Too_Quataz #1
Posted 19 August 2013 - 10:17 PM
I have been developing an operating system in my free time. I've been slowly making it more complex, and each time, I distribute updates throughout my server. I've decided to try to add a GUI into the OS. I've got most of it working.

www.pastebin.com/pQb0aa22 –save as startup
www.pastebin.com/0kxDUbmc –create directory "OS" and save as "scrollAPI" within it

The code is very messy, I'll apologize in advance. The problem lies in the GUI function, within the while loop under mapping. The GUI prints in a grid, 3 to a row, and a variable amount of rows. It tracks the click by running through a for loop (within the while loop) and using the looping variables to track its position. The problem is that, when it resets rows, one of the variables resets, instead of counting on (1,2,3,4), it resets at the end of the row (1,2,3,2). I've tried troubleshooting, but cannot figure out the problem. Hopefully someone understands what I'm trying to say.

Note: This needs to be ran on an advanced computer.
Lyqyd #2
Posted 20 August 2013 - 01:13 AM
Split into new topic.