Search found 19 matches

by vr
Mon Jun 25, 2007 07:39
Forum: Help
Topic: How to set a button state?
Replies: 5
Views: 2627

Thats a good question. Tried EventCheckStateChanged with no luck (either). The two available for a RadioButton in the api description is: onSelectStateChanged (WindowEventArgs &e) onMouseButtonUp (MouseEventArgs &e) And as it is a ButtonBase is should also react to onMouseMove (MouseEventArg...
by vr
Wed Jun 20, 2007 20:14
Forum: Help
Topic: How to set a button state?
Replies: 5
Views: 2627

Sure, Checkbox is what I need. But I have problem getting any events triggered when using a checkbox. Im doing the programming in lua and its working just fine with dozens of other buttons, but not the CheckBox... Neither of the ones below work: local winMgr = CEGUI.WindowManager:getSingleton() loca...
by vr
Tue Jun 19, 2007 09:14
Forum: Help
Topic: How to set a button state?
Replies: 5
Views: 2627

How to set a button state?

How can I set a button to pushed/non-pushed?
I would like to do that from lua code.

That is:

button:setPushed(true) -- which obviously wont work as the method setPushed does not exist.
So how do I do it?
by vr
Tue Jun 19, 2007 08:37
Forum: CEGUI Library Development Discussion
Topic: Lua arguments OO:style
Replies: 2
Views: 3852

Lua arguments OO:style

Hi. Im wondering how people uses the lua scripting for handling callbacks... A brief example function colourChangeHandler(args) local scroller = CEGUI.toScrollbar(CEGUI.toWindowEventArgs(args).window)end local value = scroller:getScrollPosition() etc... end winMgr:getWindow("root/Window/MySlide...
by vr
Wed Dec 20, 2006 21:13
Forum: Bug Reports, Suggestions, Feature Requests
Topic: The #1 topic: Finding datafiles.
Replies: 12
Views: 6411

It works like a charm, 20minutes of copy pasteing and voila a ResourceProvide of my taste. Thanks. The CELayoutEditor is another beast though, as it requires to find ONE single directory for each resourcegroup, whereas my solution can consists of many, so there Im using a slightly different approach...
by vr
Wed Dec 20, 2006 15:45
Forum: Bug Reports, Suggestions, Feature Requests
Topic: The #1 topic: Finding datafiles.
Replies: 12
Views: 6411

Ok that sounds like an idea.
I will definately look into that.
Thanks for the tip, this is what I have been looking for, for a while.

/A
by vr
Wed Dec 20, 2006 13:47
Forum: Bug Reports, Suggestions, Feature Requests
Topic: The #1 topic: Finding datafiles.
Replies: 12
Views: 6411

Possible solution?

One call would solve quite a few problems here: CEGUI::System::getSingleton().setLayoutFilePathList(".\layouts;c:\system\layouts;d:\hisdirectory\layouts"); after this call, CEGUI looks in the above mentioned directories after a given layout when loading it. Another method: CEGUI::System::g...
by vr
Wed Dec 20, 2006 13:41
Forum: Help
Topic: Loading multiple layouts - CElayouteditor not working?
Replies: 5
Views: 2127

You can rename it though. But I agree, it should be possible to load a layout even if there are windows with the same name. Its after you have added it to an active root it becomes a problem. But CEGUI is designed from the core that every window has to have a unique name, otherwise it becomes hard t...
by vr
Wed Dec 20, 2006 10:40
Forum: Help
Topic: Loading multiple layouts - CElayouteditor not working?
Replies: 5
Views: 2127

Loading multiple layouts - CElayouteditor not working?

Hi all. Could someone tell me how to load multiple layouts into one guisheet? Assume you have two .layout files, one containing projectspecific (menus for the game etc...) stuff and the other contains more general stuff (console, messagewindows etc) Now if I do: Window *l1 = loadLayout("game.la...
by vr
Thu Dec 07, 2006 15:57
Forum: Help
Topic: window:addChildWIndow()
Replies: 0
Views: 1138

window:addChildWIndow()

Hi. I have the following function that load a specified layout. If there is no GuiSheet active it sets the loaded window as GuiSheet. If there already is a GuiSheet() it adds the newly loaded layout as a child to the existing. This gives the result that: 1. Both layouts are visible 2. only the layou...
by vr
Tue Dec 05, 2006 08:17
Forum: Bug Reports, Suggestions, Feature Requests
Topic: The #1 topic: Finding datafiles.
Replies: 12
Views: 6411

Adding more command-lines will only partially solve the problem of finding datafiles. I find this fact that people are copying around data pretty disturbing. It will make an upgrade somewhat harder in the future. Is there anyone that can either reject or accept my suggestion? I have emailed paul dir...
by vr
Thu Nov 30, 2006 19:15
Forum: Bug Reports, Suggestions, Feature Requests
Topic: The #1 topic: Finding datafiles.
Replies: 12
Views: 6411

Not a solution

As if that would be a solution? Problem 1: How many celayouteditor.ini can one harddrive hold? The editor spreads out .ini files in each directory it is started. Problem 2: Relative paths, relative to one top directory yes. What if you have most of the base data (schemes, looknfeel, fonts) specified...
by vr
Wed Nov 29, 2006 20:44
Forum: Bug Reports, Suggestions, Feature Requests
Topic: The #1 topic: Finding datafiles.
Replies: 12
Views: 6411

The #1 topic: Finding datafiles.

It seems that the most hot topic regarding CEGUI seems to be how to find the datafiles. I also have a few problems regarding this when using the CELayoutEditor. It seems that the only way to specify the path to the datafiles is to explicitly write it into the cegeuilayouteditor.ini file. This makes ...
by vr
Wed Nov 29, 2006 20:29
Forum: Help
Topic: Radiobutton in lua
Replies: 0
Views: 1057

Radiobutton in lua

Is there any examples of using a Radiobutton from lua?

Im having problems of getting any events executed

I have tried to register events with Clicked, SelectStateChanged

but I dont get any event called.
I dont get a error message either, if I specify a non-existing event name.
by vr
Tue Nov 28, 2006 14:27
Forum: Help
Topic: Name of events
Replies: 2
Views: 1370

MM, assuming you are working in C++, which I am not. Im using CEGUI using lua. Im sorry I didnt explicitly say that.. (could have been derived from my code examples though). So the problem is still....a problem. Where can I find the exported Event names, and why couldnt one throw an exception upon s...

Go to advanced search