Search found 14 matches

by phoenixy
Tue Jul 24, 2007 18:25
Forum: Modifications / Integrations / Customisations
Topic: simulate user click?
Replies: 2
Views: 2609

Thanks a lot!
It was really helpful :)
by phoenixy
Mon Jul 23, 2007 22:31
Forum: Modifications / Integrations / Customisations
Topic: simulate user click?
Replies: 2
Views: 2609

simulate user click?

I want to make an automated test for game. What i want to do is, to simulate mouse click on some windows. Of course, I can generate mouse events at Windows API level, but then it's hard to control which window(CEGUI) to click. Is there any way to specify a CEGUI window and generate mouse click event...
by phoenixy
Wed Jun 06, 2007 18:41
Forum: Modifications / Integrations / Customisations
Topic: how to fire event repeatedly
Replies: 1
Views: 2347

how to fire event repeatedly

Hello,

I want to fire event repeatedly when the mouse pointer is on some button.
EventMouseEnters or EventMouseLeaves can help determining the positiong of the mouse pointer..

but I want to do some job during the mouse pointer's on a button.

Is there any good idea?
by phoenixy
Tue May 01, 2007 16:52
Forum: Modifications / Integrations / Customisations
Topic: Please help~ change images for frame window dynamically
Replies: 0
Views: 2283

Please help~ change images for frame window dynamically

Hi, I want to change 9 images used in frame window dynamically. Currently, it is fixed in Look'n'Feel, and there seems to be no way to set it programmatically (or using layout XML) Even I modify the look'n'feel file, there seems to be no way to set images for frame border, because images for frame n...
by phoenixy
Wed Apr 25, 2007 17:11
Forum: Modifications / Integrations / Customisations
Topic: Question about DimOperator
Replies: 2
Views: 2579

I think you can do that in the following order. AbsoluteDim value='2' DimOperator op='/' (I'm not sure what the exact op name of /. Divide?) Text.h DimOperator op='-' ImageA.H /DimOperator /Text.h /DimOperator Since DimOperator does operation from inside to out, Text.H - ImageA.H is done first (I've...
by phoenixy
Mon Mar 19, 2007 19:21
Forum: Help
Topic: how to put background image in StaticText?
Replies: 2
Views: 2805

Well...you should be able to do it with setProperty I suppose, but Im not sure because I dont use 0.5. window->setProperty("BackgroundImage", "image:ImageName"); Or something like that. Sorry :) I hope I should be able to do it using setProperty, but there's no such prop...
by phoenixy
Sat Mar 17, 2007 04:31
Forum: Help
Topic: how to put background image in StaticText?
Replies: 2
Views: 2805

how to put background image in StaticText?

Hi, all.. I'm trying to upgrade CEGUI from 0.4.x to 0.5.0b.. and it looks like there's no more background image things in StaticText. There was a method called setBackgroundImage in 0.4.x, but now it's gone, and I can't even set the property using setProperty. Does anybody know how to do this? thank...
by phoenixy
Tue Mar 13, 2007 18:01
Forum: Help
Topic: Create Custom Image Button
Replies: 1
Views: 2124

Hi, there's no such properties in "WindowsLook/Button". They're property of "TaharezLook/ImageButton" only. I've copied the code for "ImageButton" from taharezlook.looknfeel to WindowsLook.looknfeel to make it work for "WindowsLook/ImageButton", but I'm not su...
by phoenixy
Mon Mar 12, 2007 18:39
Forum: Help
Topic: StaticText::getTextRenderArea in 0.5.0?
Replies: 0
Views: 1929

StaticText::getTextRenderArea in 0.5.0?

Hello,

I've subclassed StaticText in 0.4.x.
Now, I'm trying to upgrade to 0.5.0, but there's no StaticText class, and the DefaultWindow class doesn't have "getTextRenderArea".

How should I change it to something compatible?
by phoenixy
Tue Mar 06, 2007 20:11
Forum: Help
Topic: 0.4.x => 0.5.0 BackgroundImage of StaticText
Replies: 0
Views: 1996

0.4.x => 0.5.0 BackgroundImage of StaticText

Hello, I understand that StaticText is now replaced by DefaultWindow. Most of the properties of StaticText can be used by setProperty. But, there're some properties disappeared, such as BackgroundImage, BottomFrameImage, BottomLeftFrameImage, BottomRightFrameImage, LeftFrameImage, RightFrameImage, T...
by phoenixy
Tue Mar 06, 2007 18:13
Forum: Help
Topic: 0.4.x => 0.5.0 upgrade questions..
Replies: 6
Views: 4615

Thanks, Rackle. I think I've got the solution (I'm not sure it's correct, though) I added a custom type to the scheme file (currently, I tested it by adding to the windowslook.scheme) <FalagardMapping WindowType="MyGui/BubbleStaticText" TargetType="DefaultWindow" Renderer="F...
by phoenixy
Tue Mar 06, 2007 01:51
Forum: Help
Topic: 0.4.x => 0.5.0 upgrade questions..
Replies: 6
Views: 4615

Correcting my question.. I tried in various ways.. and found out something. Since I wanted to have custom class that inherited from DefaultWindow, I needed a factory. To make cegui WindowManager to use that factory, I need a custom window type (which I named "BubbleStaticText"). When I giv...
by phoenixy
Tue Mar 06, 2007 00:48
Forum: Help
Topic: 0.4.x => 0.5.0 upgrade questions..
Replies: 6
Views: 4615

Thanks, Rackle. I have some more questions..(Please excuse if the question doesn't make sense :( I'm a novice in game programming ) According to the WidgetGalore, to make the same effect with StaticText in 0.4.X, I need to use DefaultWindow. And from the code [http://www.cegui.org.uk/wiki/index.php/...
by phoenixy
Fri Mar 02, 2007 19:05
Forum: Help
Topic: 0.4.x => 0.5.0 upgrade questions..
Replies: 6
Views: 4615

0.4.x => 0.5.0 upgrade questions..

Hi, I'm trying to upgrade my program from CEGUI 0.4.x to 0.5.0.. I think lots of members(classes) have disappeared. I found somewhere in this forum that I can replace StaticText or StaticImage to DefaultWindow, but then, how can I replace many members of Static*? There're no such members in DefaultW...

Go to advanced search