[Plugin]Text Highlighter

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply
Author
5,295 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Topic: [Plugin]Text Highlighter
    Posted: 25 May 2012 at 3:05pm
Update : version 1.2. Second bugfix of the day !
https://dl.dropbox.com/u/1412774/HighlightTextDemo/pode_texthighlighter.1.2.zip


version 1.1. Fix for 'jitter' bug
https://dl.dropbox.com/u/1412774/HighlightTextDemo/pode_texthighlighter.1.1.zip

Here's a quick plugin to highlight a piece of text, in a sequence (think karaoke players).

You can set the text, the styling for the drop cap (the Header Letter), the styling for the regular text, and the styling for the Highlight effect (which is using CSS3 drop shadows).
The demo : https://dl.dropbox.com/u/1412774/HighlightTextDemo/index.html
The plugin : https://dl.dropbox.com/u/1412774/HighlightTextDemo/pode_texthighlighter.1.0.zip
The .capx : https://dl.dropbox.com/u/1412774/HighlightTextDemo/HighlightTextDemo.capx

To sync the text with an audio track, you need to enter the time manually, like I did in the demo.
@rexrainbow : is it possible, with one of your plugin, to have a timeline (with different time between each step) where you give at the beginning a list of number (the timestamps), and to trigger a function (with the function plugin) at each cue point ?

Edit : here's a version using rexrainbow's Worksheet plugin (it helps to avoid multiple nested "Wait" command...) : https://dl.dropbox.com/u/1412774/HighlightTextDemo/HighlightTextDemo_rexWorksheet.capx

Edited by Pode - 17 Jul 2012 at 3:41pm
Back to Top
10,316 Rep
Post Options Post Options   Quote rexrainbow Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2012 at 3:14pm
@Pode

Does WorkSheet plugin meet your requirement?
It could assign a sequence of timestamps with comamnds (through function plugin).

Edited by rexrainbow - 25 May 2012 at 3:16pm
Back to Top
5,295 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2012 at 3:47pm
@rexrainbow : thanks, I updated the first post with a demo using your plugin !
Back to Top
5,295 Rep
Post Options Post Options   Quote Pode Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jul 2012 at 3:41pm
I updated the first post with a new build : jitter bugfix.
Back to Top
5,147 Rep
Post Options Post Options   Quote NRABrazil Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2013 at 3:09pm
Hi @Pode

Please I wanna know if it is possible and easy to adapt this plugin to select some portion of the text, in the plugin window, to retrieve the selected text and change its background color. And it need to be done with many parts of the text, like you can see in the image below.

Back to Top
646 Rep
Post Options Post Options   Quote keroberos Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2013 at 3:35am
Seconded
Back to Top
1,259 Rep
Post Options Post Options   Quote Pinco Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2013 at 10:06pm
I agree with nrabrazil, it would be nice to be able to specify the css when you call the highlight function.
Also would be nice to have a function for custom highlight where you can specify from and to which character to highlight, and also another one to remove the highlight.

Another interesting thing to have would be an "On highlight clicked" event.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down