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

[1.4] mouse api and text highlighting

Started by PixelToast, 12 June 2012 - 06:59 AM
PixelToast #1
Posted 12 June 2012 - 08:59 AM
why the heck want suggested before
mouse api:

mouse.getPos() -- returnes the mouses exact position as a table {x,y}
mouse.testPos(x,y[,x2,y2]) -- if x2 and y2 specified then it will detect the mouse in a square area, returns true or false
mouse.snap(t) -- converts the mouses position to the text grid position
mouse.unsnap(t)
event mouse_right
event mouse_left
combined with text highlighting you could make some verry nice clickable buttons
Xfel #2
Posted 12 June 2012 - 12:34 PM
dan wants it to be text based.
Don't remember from where this is, but it was said multiple times before. Use the arrow keys for cursor movement.
PixelToast #3
Posted 12 June 2012 - 06:00 PM
… it is text based
finding the cursors position on the screen dosent intefere with the ui
also DOS can use pointing devices and highlight
Bossman201 #4
Posted 12 June 2012 - 07:30 PM
If you want it, create it, as dan isn't going to. At the risk of sounding like a dick, I don't know why dan is being so stubborn with CC.
PixelToast #5
Posted 12 June 2012 - 08:28 PM
… this is a suggestion
and why wont dan do it?
Cloudy #6
Posted 12 June 2012 - 09:54 PM
It's amazing what people have said Dan isn't going to do without asking him :(/>/>

Anyhow, the reason Dan seems hesitant with some things in CC, is because Dan has a vision he wants to stick to for this mod - much like eloraam has a vision for RP Control. When it comes down to it, it's Dan's mod, so it is his ultimate choice at the end of it all.
kazagistar #7
Posted 13 June 2012 - 04:45 AM
I hope dans vision involves battle robots and mechs, or I might have to make my own mod someday. :(/>/>
PixelToast #8
Posted 13 June 2012 - 05:06 AM
how about a model editor and being able to engineer the inside of each part as a minecraft world then it is made into a entity with simulated worlds to tell it how to move and do stuff
Leo Verto #9
Posted 15 June 2012 - 12:17 AM
I like CC without mouses, but how about locating nearby players?
PixelToast #10
Posted 15 June 2012 - 04:54 AM
not mouses but being able to detect where the mouse you already have is