Okay, I used the Timeline and got what I was after. I need to streamline it
a little (I'll probably not use the marker_name in the end, but it is nice
to know how it works) ...
[...
timeline = new Timeline(250);
timeline.add_marker_at_time("one",1);
timeline.add_marker_at_time("two",50);
timeline.add_marker_at_time("three",100);
timeline.add_marker_at_time("four",150);
timeline.add_marker_at_time("five",200);
timeline.add_marker_at_time("six",250);
timeline.marker_reached.connect(marker_reached);
timeline.start();
...]
private void marker_reached(string marker_name) {
stdout.printf("%s", marker_name);
if (marker_name == "one") {
item.set_opacity(0);
}else if (marker_name == "two") {
item.set_opacity(255);
}else if (marker_name == "three") {
item.set_opacity(0);
}else if (marker_name == "four") {
item.set_opacity(255);
}else if (marker_name == "five") {
item.set_opacity(0);
}else if (marker_name == "six") {
item.set_opacity(255);
}
}
Thanks for your help.
On Tue, Jan 17, 2012 at 10:18 PM, Roland Peffer <[email protected]> wrote:
> Hi Duff,
>
> I don't think so , but it's an interesting question. I could think about 2
> approaches:
> 1.) Instead of an animation you could just start a ClutterTimeline with
> markers and use the
> "marker-reached<http://docs.clutter-project.org/docs/clutter/stable/ClutterTimeline.html#ClutterTimeline-marker-reached>"
> signal for blinking.
> 2.) You use an animation on the opacity and make use of
> clutter_alpha_set_func() with your own ClutterAlphaFunction.
>
> Hope it helps
> Roland
>
>
>
> On 17.01.2012, at 22:58, Brian Duffy wrote:
>
> Hi,
>
> I am trying to get a menu item to blink quickly a few times when it is
> chosen. Is there a built in animation that I can use? Any suggestions?
>
> thnx
>
> --
> Duff
> _______________________________________________
> clutter-app-devel-list mailing list
> [email protected]
> http://lists.clutter-project.org/listinfo/clutter-app-devel-list
>
>
--
Duff
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list