How Create an own Window like FileOpenDialog?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
spom

How Create an own Window like FileOpenDialog?

Post by spom »

Hi,

i want to Create an own window on my environment. My own means it is derived from IGUIWindow (or do i have to take CGUIWindow?).

The Problem: Usually I add Buttons etc. with the simple method env->addButton, env->addWindow and so on. But there is no easy method to add my own GUIElement to the environment. How to Create a Window (or derived Window) without env->addWindow?

Thank you for comments
spom

Post by spom »

Hello? Anybody Alive?
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

i cant realise why does a game engine need a kind of standard window-like GUI... games don't need it anyway :D
Sorry for the off-topic, but i do not know the answer to your question :wink:
spom

Post by spom »

You need such windows to show Informations about one player for example.
Boogle
Posts: 162
Joined: Fri Nov 21, 2003 3:16 pm
Location: Toronto, Canada

Post by Boogle »

Create your own class that extends IGUIWindow. Copy any code you can use from CGUIWindow to your own class. You will probably just need to modify the draw() method. You won't be able to use the guienv->add<type>() methods, but I believe if you create instances of your object in the normal manner (new CGUIMyWindow()) and set the guienv as the your object's parent, you can then treat it as you do every other GUI object.

Skinnable GUI elements will eventually be added to the engine, though the version at which this will be added is not yet set.
unrealfragmaster
Posts: 31
Joined: Mon Dec 15, 2003 5:49 pm
Location: Ireland
Contact:

Post by unrealfragmaster »

Serg Nechaeff wrote:i cant realise why does a game engine need a kind of standard window-like GUI... games don't need it anyway :D
Sorry for the off-topic, but i do not know the answer to your question :wink:
Game Engine??? I always thought Irrlicht was a 3D Engine. You can make interactive scenes and virtual tours etc. with GUI windows to select options.
http://www.gameplayzone.com/forum
Join the gameplayzone forums today!
http://www.gameplayzone.com
All the latest gaming news and advancements
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

You are right! And also it supports 2d graphics, collisions, physics, sound, music, timers, keyboard & mouse support and many other things. And besides virtual interactive tours I can program games even without 3rd party libraries like ODE or AUDIERE. Something tells me it is a game engine :wink:
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

yes, but its got broad enough functionality not only to handle games, but also tools--

having an integrated tool application on the same code base as your game engine is a hugely valueable asset.
Post Reply