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

2 more returned numbers in the mouse click event for use with "teletext" characters

Started by Slash0mega, 28 December 2015 - 09:41 AM
Slash0mega #1
Posted 28 December 2015 - 10:41 AM
ok, so now we kind of have pixels, right? but there is no real way to get a particular pixel when you click.

i think 2 more returned numbers would be usfull, which would be the "coordinate" within a character. 1-2 for x, 1-3 for y (or 0-1 and 0-2)

example, if the mouse click event returns {1,2,5,2,3} that means that the left mouse button click at the cordnates 2x5, at the bottom right of the character
–1 2
1[ ][ ]
2[ ][ ]
3[ ][x]



{1,2,5,1,2} would be left-middle
–1 2
1[ ][ ]
2[x][ ]
3[ ][ ]
gaec #2
Posted 06 February 2016 - 09:26 PM
I like this one, it would make GUIs much better an adds the ability to make better drawing progs