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
How Create an own Window like FileOpenDialog?
-
Serg Nechaeff
- Posts: 162
- Joined: Wed Nov 26, 2003 5:24 pm
- Location: Europe
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.
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:
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.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![]()
Sorry for the off-topic, but i do not know the answer to your question
http://www.gameplayzone.com/forum
Join the gameplayzone forums today!
http://www.gameplayzone.com
All the latest gaming news and advancements
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
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 
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6