Jump to content




[1.4] mouse api and text highlighting


  • You cannot reply to this topic
9 replies to this topic

#1 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 12 June 2012 - 07: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

#2 Xfel

    Peripheral Designer

  • Members
  • 515 posts

Posted 12 June 2012 - 11:34 AM

Quote

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.

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 12 June 2012 - 05: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

#4 Bossman201

  • New Members
  • 92 posts

Posted 12 June 2012 - 06: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.

#5 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 12 June 2012 - 07:28 PM

... this is a suggestion
and why wont dan do it?

#6 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 12 June 2012 - 08: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.

#7 kazagistar

  • Members
  • 365 posts

Posted 13 June 2012 - 03:45 AM

I hope dans vision involves battle robots and mechs, or I might have to make my own mod someday. :(/>

#8 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 13 June 2012 - 04: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

#9 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 14 June 2012 - 11:17 PM

I like CC without mouses, but how about locating nearby players?

#10 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 June 2012 - 03:54 AM

not mouses but being able to detect where the mouse you already have is





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users