Page 1 of 1
CEGUI In Practice - A Game Console
Posted: Mon Mar 24, 2014 03:35
by nicoo
Hi,
could you please check if the includes are correctly wrote in "CEGUI InPractice 6 - A game Console" I suspect it should be :
Code: Select all
#include <CEGUI/System.h>
#include <CEGUI/SchemeManager.h>
#include <CEGUI/colour.h>also,
is it needed for cegui 0.8 ?
Re: CEGUI In Practice - A Game Console
Posted: Mon Mar 24, 2014 10:52
by Ident
Link to the page we talk aboutThe community wiki is not always updated by us because it is intended that the community updates the pages (forum login and password can be used to login at wiki). I often edit and create pages that I consider helpful and I occasionally update these pages. I think this how-to was written by a user who is nto active here anymore. So if you see that the whole thing works with your changes, then please feel free to edit the page, and finally you can even edit the version badge on top to 0.8, if it isn't set to this already!
"iInstanceNumber" <-- I think this is just a helper variable for you if you want to debug how many consoles you created. I don't see it used anywhere so you could remove it, you are right. It can come handy to have this variable, so you can be sure you have exactly "1" window (or maybe exactly "2", or whatever number you were expecting)
Regarding your includes - I do not know. Test it and see if it compiles and then edit it for later users if something was wrong and you fixed it. If you get a an error that you can't fix, post it here and we will help
Re: CEGUI In Practice - A Game Console
Posted: Sun Mar 30, 2014 08:38
by superpws
So here's the news

I've edited the CEGUI In Practice series for 0.8.3 (except for CEGUI In Practice - A Game Console which already has edit). Version tag changed, doxygen links points to 0.8.3, C++/Python tab fixed etc. Also, I don't use Python so I tried to match it's API with C++ CEGUI so it may not work. If you are a Python user and find out that they don't work then please edit them.
Re: CEGUI In Practice - A Game Console
Posted: Sun Mar 30, 2014 10:35
by Ident
very cool, thanks. we are always happy about community edits
Re: CEGUI In Practice - A Game Console
Posted: Tue Apr 01, 2014 18:33
by superpws
CEGUI really rocks but it's documentation sucks at the same time. Most wiki articles are written for 0.6.x or 0.7.x whose API is quite different than 0.8.x. Converting them all to 0.8.x will break the compatibility for users that use older versions. Do you think we should edit them all (gradually) for 0.8.x?
Re: CEGUI In Practice - A Game Console
Posted: Tue Apr 01, 2014 19:32
by Kulik
superpws: Yes! But we need help with that.
Re: CEGUI In Practice - A Game Console
Posted: Tue Apr 01, 2014 19:55
by Ident
The best we can do is that we keep the official API docu up-to-date and even that is not always the case. Our priorities are fixing the bugs, improving CEGUI at all ends, and adding new, crucial features. Donations help us to be motivated to improve the docs as well

Other than that, it is in the hands of the community
Re: CEGUI In Practice - A Game Console
Posted: Wed Apr 09, 2014 20:47
by nicoo
The tutorial doesn't work, there is several error, I didn't find how to change on the wiki page of the tutorial to remove "work with the last release" what is not the case. So plz just remove this false assertion
Re: CEGUI In Practice - A Game Console
Posted: Wed Apr 09, 2014 20:49
by Ident
Fix the errors and update the wiki please
Re: CEGUI In Practice - A Game Console
Posted: Wed Apr 09, 2014 22:19
by nicoo
it's hard to clean the code since there is no the whole sources,
- I updated the includes.
- rewrote the output function, there was a object called FormattedListboxTextItem who is not present in 0.83... so I've adapted the code for ListboxTextItem
- syntax correction CEGUI::colour to CEGUI::Colour.
- for the XML part I remove the one for 0.8 (it didn't work) and put the one I'm using...
I think it's all I did. I hoppe I didn't put the mess inside... but the changes are the same in my code, my code will be avaible at my bitbucket
Re: CEGUI In Practice - A Game Console
Posted: Wed Apr 09, 2014 22:24
by Ident
Just edit as much as you can. It will help other users.
Re: CEGUI In Practice - A Game Console
Posted: Sat Apr 19, 2014 10:20
by superpws
Ident wrote:Donations help us to be motivated to improve the docs as well

Other than that, it is in the hands of the community
I'm choosing later option for now unless I go commercial

(I think that's what most users do, they donate to open-source projects when they start making money with it)
nicco, I must have forgot to test that. Thanks for the edit. That's how wiki supposed to work
