Carat blinking

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

dewyatt
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Sat Jun 14, 2008 21:26

Carat blinking

Postby dewyatt » Mon Sep 01, 2008 14:24

This has been asked before, but there was no answer.
Is it possible to make the carat of an editbox blink?
If this can't be done right now, I know it wouldn't be hard to add it (since CEGUI receives time pulses).

Liberator
Just popping in
Just popping in
Posts: 19
Joined: Mon Jun 25, 2007 13:16
Contact:

Postby Liberator » Mon Sep 01, 2008 22:33

This would require more dynamic rendering instead of the cached frames CEGUI uses. This could be implemented by using a second render pass to render the dynamic elements as I posted before somewhere on this forum.
Image
All that is necessary for the triumph of evil is that good men do nothing

dewyatt
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Sat Jun 14, 2008 21:26

Postby dewyatt » Tue Sep 02, 2008 01:10

Aw, more work than I thought.
I'll probably just live without it. :)

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Postby Jamarr » Tue Sep 02, 2008 19:17

This should probably be added as a feature request in mantis, as a blinking cursor is pratically always desired for an editbox.

I'm not sure when the EventRenderingStarted event is fired, nor do I know how/if the cursor rendering is cached, but if that event is fired per frame and the cursor rendering is cached separate from the editbox, you could probably just add an elapsed_time member/property to the object and inside the event handler change the visibility state of the cursor every half second or so.

dewyatt
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Sat Jun 14, 2008 21:26

Postby dewyatt » Sun Sep 07, 2008 19:07


User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Mon Sep 08, 2008 09:01

Thanks :)


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests