Page 1 of 1

Separate GUI module

Posted: Wed Mar 10, 2010 09:34
by madeinsoviets
Hello again...)
I have a little question...
Let's imagine, we have an app, controlled by our GUI, so, we have events from both direction - CEGUI send events to app through subscribers, and the question is - are there any provided facilities to notify CEGUI about app events (or only direct C++ calls)? For example we have a full GUI defined in Lua, we have an error in app and we want to show wnd in GUI in Lua...Main idea is to build GUI like a separate module, so it can be developed by 3d party, and our task is only handle events from GUI and send events to GUI...Are there any ideas?)

Re: Separate GUI module

Posted: Wed Mar 10, 2010 10:14
by CrazyEddie
Hi there,

The only way to notify CEGUI of events is to call in via C++ or the Lua binding (or some binding of your own creation). I think any other mechanism we could supply would be difficult to provide in a way that would be expressive. You might consider a thin interface layer to provide such a thing that is suitable for your specific scenario(s) though.

CE.