CEGUI Noobie question

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
kungfoomasta
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Wed Apr 06, 2005 08:25

CEGUI Noobie question

Postby kungfoomasta » Wed Apr 06, 2005 08:34

I've started using OGRE for about a month now, and I've reached the point where I want to start learning to use CEGUI. The problem is, there aren't any tutorials (that I know of), and although the GUI demo works and I can view the source code, it doesn't work when I try and reuse the code to set up my scene.

What I'm wondering is if anybody can help me get started by posting some generic code that can display a window with a button on it (or something similar). I looked through the forum in the help section, but I guess everybody but me has mastered the art of creating windows with buttons and other things.

Thanks in advance, I'm sure this information would help other CEGUI beginners like me. ^_^

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: CEGUI Noobie question

Postby lindquist » Wed Apr 06, 2005 18:40

Hi.
I wrote another post some time ago with some simple example code.

Maybe you'll find it useful:
simple example code

User avatar
kungfoomasta
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Wed Apr 06, 2005 08:25

Re: CEGUI Noobie question

Postby kungfoomasta » Thu Apr 07, 2005 09:51

Thanks lindquist! You really saved me there. Anybody else who needs help getting started should look at that other post.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: CEGUI Noobie question

Postby lindquist » Thu Apr 07, 2005 10:29

np, I'm glad you found it useful.
I'm not sure the guy who asked the question actually ever read my post!

User avatar
jdhorux
Just popping in
Just popping in
Posts: 2
Joined: Fri Apr 08, 2005 10:03
Contact:

Re: CEGUI Noobie question

Postby jdhorux » Fri Apr 08, 2005 10:08

Hi kungfoomasta

Thanks to your questions some of us could start programming with CEGUI ;)

But... i'm tryint to integrate with OGRE and I've some problems. :cry:

Could you send us your TEST CODE with OGRE and CEGUI integrated????? :oops:

It could be usefull for all (dummies :hammer: ) of us

THANK YOU!

Regards,

JD

User avatar
kungfoomasta
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Wed Apr 06, 2005 08:25

Re: CEGUI Noobie question

Postby kungfoomasta » Tue Apr 12, 2005 05:33

I can tell you what I did to make it work (if I remember everything well). I'm using the Ogre Source 1.0.0 package and running on .NET 2003 (7.1). I downloaded the stable release of the source for CEGUI (cegui_mk2-0.2.0.zip) and installed it to my C:. I compiled the .NET project file

C:\cegui_mk2\makefiles\win32\VC++7.1\CEGUI.sln

(I had to do some things to get it to compile them all correctly, but forgot =( ). Then I just copied the

C:\cegui_mk2\Samples\datafiles

folder into my media folder. Then you should be able to use the code lindquist gave, just substitute the
"data/schemes/TaharezLook.scheme" to
"datafiles/schemes/TaharezLook.scheme".
(make sure and do the WindowsLook one also)
Also, I had to delete the (CEGUI::utf8*) in the defineFontGlyphs line.

Hope this helps, that's what I did to get it working on my system. My system layout is no where near organized, though..(I've recently started)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests