Author Topic: UIInput: Colored Caret  (Read 4452 times)

Zyxil

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 37
    • View Profile
UIInput: Colored Caret
« on: September 03, 2012, 08:57:30 PM »
I'd love to make my caret "[ff0000]|[-]".  Setting this now just adds the text to the label.  How about blinking, too?

And what's the status on "input within a string"?  I've seen it mentioned as "in progress" elsewhere on the board.

Thanks!!  Great work as always!
-John
« Last Edit: September 03, 2012, 09:14:44 PM by Zyxil »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput: Colored Caret
« Reply #1 on: September 04, 2012, 12:43:36 AM »
Assuming you mean moving the caret and modifying the string from the middle, as an example -- it's on the list of things to do. The input text is purposely missing the encoding from it so that players can't do their own encoding by typing in the bracketed colors. You could modify the font's texture and color the "|" character red though. Occam's razor.

Zyxil

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 4
  • Posts: 37
    • View Profile
Re: UIInput: Colored Caret
« Reply #2 on: September 04, 2012, 03:27:38 PM »
Hm, that makes sense about the color.  I can use one of the "disallowed" characters to make a caret.  That should work.

How about blinking the caret?

The challenge is to make the caret stand out from the rest of the input text.  Nothing does that better than blink text...  ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput: Colored Caret
« Reply #3 on: September 04, 2012, 04:35:56 PM »
No blinking just yet...