Search found 11 matches

by jack1104
Tue Nov 22, 2011 02:16
Forum: Help
Topic: Animation cause LAG
Replies: 4
Views: 2980

Re: Animation cause LAG

Thanks CE. Now I know Animation can do in looknfeel or my code, either. And Affector property "image" can't work problem is solved, because i need a correspond property name. The performance problem still exist. I setup an animation instance in my code, and I set only two keyframe as you s...
by jack1104
Thu Nov 17, 2011 08:06
Forum: Modifications / Integrations / Customisations
Topic: [solved] How to Animate gifs
Replies: 7
Views: 10223

Re: [solved] How to Animate gifs

Hello, I'm trying make an icon with changing image, I reference the code by ogre2012 in my WidgetLook: <WidgetLook name="game1/Button"> ... <AnimationDefinition name="Testing" duration="0.3" replayMode="once"> <Affector property="Image" interpolator=...
by jack1104
Thu Nov 17, 2011 04:22
Forum: Help
Topic: Animation cause LAG
Replies: 4
Views: 2980

Re: Animation cause LAG

Now I'm trying use Animation System to make a ".gif like" animation, an icon with change it's image all the time. I try the sample code: <AnimationDefinition name="Testing" duration="0.3" replayMode="once"> <Affector property="Image" interpolator=&qu...
by jack1104
Wed Nov 16, 2011 06:15
Forum: Help
Topic: Animation cause LAG
Replies: 4
Views: 2980

Animation cause LAG

Hi, there I'm trying to make a FrameWindow with Fade in/out effect. I use Animation System on my FrameWindow to implement Fading effect. I reference the article step by step form this link: http://www.cegui.org.uk/wiki/index.php/Animation_System The fading effect is work, but it cause my game LAG Th...
by jack1104
Tue Nov 15, 2011 03:26
Forum: Help
Topic: Why tooltip can auto extend width, but height can't?
Replies: 3
Views: 3655

Re: Why tooltip can auto extend width, but height can't?

here is the part of my .looknfeel content: <WidgetLook name="game1/ItemTooltip"> ...... <NamedArea name="TextArea"> <Area> <Dim type="LeftEdge" ><ImageDim imageset="game1" image="TooltipLeftEdge" dimension="Width" /></Dim> <Dim type="T...
by jack1104
Mon Nov 14, 2011 08:41
Forum: Help
Topic: Why tooltip can auto extend width, but height can't?
Replies: 3
Views: 3655

Re: Why tooltip can auto extend width, but height can't?

Can I know how many times of change line by <HorzFormat type="WordWrapLeftAligned" /> do? The extend of height seems to depend on how many "\n" does the text content have. So, If one row has auto change line by "WordWrapLeftAligned" twice, my tooltip's height will leak ...
by jack1104
Mon Nov 14, 2011 04:00
Forum: Help
Topic: Why tooltip can auto extend width, but height can't?
Replies: 3
Views: 3655

Why tooltip can auto extend width, but height can't?

hello, I have a question about when text length is too long, the tooltip will extend it's width automatic. And if I set the tooltip's max size, I can use <WordWrapLeftAligned> let it change line automaticlly,too. But when it change line, the tooltip's height doesn't extend itself. I can only use a v...
by jack1104
Fri Nov 11, 2011 13:41
Forum: Help
Topic: How do I have a floating text in the tooltip?
Replies: 1
Views: 1540

How do I have a floating text in the tooltip?

hi there, I'm trying to make an icon buff and it has count down time. When my cursor hover the icon, it's tooltip show out the remaining time. It is a changing text at every second in the tooltip. I think that I can have two or more text component in .looknfeel, just like <ImagerySection name="...
by jack1104
Mon Nov 07, 2011 10:37
Forum: Help
Topic: How can I change text color and insert an pic in tooltip?
Replies: 4
Views: 2887

Re: How can I change text color and insert an pic in tooltip

yeah, the problem has been solved. The attribute of tooltip in my .lookfeel: <WidgetLook name="game1/Tooltip1"> ... <ImagerySection name="text"> <TextComponent> ... </TextProperty> <Colours topLeft="FFFFFFFF" topRight="FFFFFFFF" bottomLeft="FFFFFFFF"...
by jack1104
Mon Nov 07, 2011 03:24
Forum: Help
Topic: How can I change text color and insert an pic in tooltip?
Replies: 4
Views: 2887

Re: How can I change text color and insert an pic in tooltip

I use the version 0.7.5, and I do these things in Lua script I do subscribeEvent to catch tooltip active event: OnTooltip1Active(args) In OnTooltip1Active(args) function, I get the tooltiop window like this: local winEventArgs = CEGUI.toWindowEventArgs(args); local tooltipWindow = winEventArgs.windo...
by jack1104
Fri Nov 04, 2011 13:40
Forum: Help
Topic: How can I change text color and insert an pic in tooltip?
Replies: 4
Views: 2887

How can I change text color and insert an pic in tooltip?

hello, I try to change the text color in the tooltip, but it doesn't work my code: setTooltipText("This is just some text that shows how nicely [colour='FFFF0000']CEGUI can format strings.[colour='FF00FF00'] and this is just colour [colour='FF0000FF'] formatting!"); why the format tag does...

Go to advanced search