How to get custom buttons in a hud?
Moderators: CEGUI MVP, CEGUI Team
How to get custom buttons in a hud?
Hi, I'm currently working on a rts game. I'm using the Ogre 1.0.5 SDK. I would rather use the SDK and not the CVS.
Now my question is: what will be the best way to get working buttons in my hud?
I thought about making A LOT of buttons and then just add them @ the .scheme / .looknfeel / .imageset but no 0.4.0 in the sdk .
Is there an way to get a background image on a button in ThararezLook?
-or-
Is there an easy/good way to make a custom dll (which works in the OgreSDK)? Cuz I did see some screenies here on the site where it is done (atleast I think )
-or-
Do I need to upgrade to Ogre CVS + Cegui 0.4.0 and then use FalagardBase
-or-
Do I have to wait for the next OgreSDK update and hope Cegui 0.4.0 is in there? (I think the update is in 2/3 weeks)
-or-
Did I mis something? And there is another way?
Now my question is: what will be the best way to get working buttons in my hud?
I thought about making A LOT of buttons and then just add them @ the .scheme / .looknfeel / .imageset but no 0.4.0 in the sdk .
Is there an way to get a background image on a button in ThararezLook?
-or-
Is there an easy/good way to make a custom dll (which works in the OgreSDK)? Cuz I did see some screenies here on the site where it is done (atleast I think )
-or-
Do I need to upgrade to Ogre CVS + Cegui 0.4.0 and then use FalagardBase
-or-
Do I have to wait for the next OgreSDK update and hope Cegui 0.4.0 is in there? (I think the update is in 2/3 weeks)
-or-
Did I mis something? And there is another way?
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: How to get custom buttons in a hud?
First off, I'm quite sure that you can just switch CEGUI version without trouble.
Otherwise you can use the customImagery feature of PushButton.
This means that TaharezLook/Button has the functionality as well.
Making a new look DLL is not that hard. have a look at the existing ones if you want to go that way.
Though I can only recommend upgrading to 0.4 and to use Falagard.
It's by far the easiest way to customize any widget for your specific needs.
And it's the only way to do it in future releases.
So get in the game and use Falagard
Otherwise you can use the customImagery feature of PushButton.
This means that TaharezLook/Button has the functionality as well.
Making a new look DLL is not that hard. have a look at the existing ones if you want to go that way.
Though I can only recommend upgrading to 0.4 and to use Falagard.
It's by far the easiest way to customize any widget for your specific needs.
And it's the only way to do it in future releases.
So get in the game and use Falagard
Re: How to get custom buttons in a hud?
Thx i have tried to update my CEGUI to 0.4.0 but i am getting an error when i try to start my program.
"The procedure entry point ??HCEGUI@@YA?AVString@0@ABV10@@Z could not be located in the dynamic link library CEGUIBase_d.dll"
Afaik i have included all the header files all the libraries and dll's and i have rebuild the program as well. I might forgot some files. Can someone help me?
"The procedure entry point ??HCEGUI@@YA?AVString@0@ABV10@@Z could not be located in the dynamic link library CEGUIBase_d.dll"
Code: Select all
09/11/2005 13:40:51 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
09/11/2005 13:40:51 (InfL1) + Crazy Eddie's GUI System - Event log +
09/11/2005 13:40:51 (InfL1) + (http://www.cegui.org.uk/) +
09/11/2005 13:40:51 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
09/11/2005 13:40:51 (InfL1) CEGUI::Logger singleton created.
09/11/2005 13:40:51 (InfL1) ---- Begining CEGUI System initialisation ----
09/11/2005 13:40:51 (InfL1) CEGUI::ImagesetManager singleton created
09/11/2005 13:40:51 (InfL1) CEGUI::FontManager singleton created.
09/11/2005 13:40:51 (InfL1) CEGUI::WindowFactoryManager singleton created
09/11/2005 13:40:51 (InfL1) CEGUI::WindowManager singleton created
09/11/2005 13:40:51 (InfL1) CEGUI::SchemeManager singleton created.
09/11/2005 13:40:51 (InfL1) CEGUI::MouseCursor singleton created.
09/11/2005 13:40:51 (InfL1) CEGUI::GlobalEventSet singleton created.
09/11/2005 13:40:51 (InfL1) WindowFactory for 'DefaultWindow' windows added.
09/11/2005 13:40:51 (InfL1) WindowFactory for 'DragContainer' windows added.
09/11/2005 13:40:51 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
09/11/2005 13:40:51 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
09/11/2005 13:40:51 (InfL1) CEGUI::System singleton created.
09/11/2005 13:40:51 (InfL1) ---- CEGUI System initialisation completed ----
09/11/2005 13:40:51 (InfL1) Attempting to load Scheme from file 'TaharezLook.scheme'.
09/11/2005 13:40:51 (InfL1) Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
09/11/2005 13:40:51 (InfL1) Attempting to create Font from the information specified in file 'tahoma-12.font'.
09/11/2005 13:40:51 (InfL1) Attempting to create Imageset 'Tahoma-12_auto_glyph_images' with texture only.
09/11/2005 13:41:00 (Error) Exception: FactoryModule::FactoryModule - Failed to load module 'CEGUITaharezLook_d'.
Afaik i have included all the header files all the libraries and dll's and i have rebuild the program as well. I might forgot some files. Can someone help me?
Re: How to get custom buttons in a hud?
A DLL seems to be missing: Failed to load module 'CEGUITaharezLook_d'. If I remember correctly some modules are not set to build automatically with the MS Visual C++ .SLN project. Look into the "Build Manager", where you can see the list of projects and a checkmark to indicate whether to build or not. Or simply locate the appropriate subproject and compile that one.
Re: How to get custom buttons in a hud?
well i checked it and i debugged all the the projects and i still have this error.
It seems i am missing either some library file or i made an error in calling the Factory.
Is there perhaps a guide for this : How to update CEGUI in a precompiled OGRE SDK. Since this is what i want.
It seems i am missing either some library file or i made an error in calling the Factory.
Is there perhaps a guide for this : How to update CEGUI in a precompiled OGRE SDK. Since this is what i want.
Re: How to get custom buttons in a hud?
Maybe I confused the systems. Maybe it's Ogre that does not compile everything; it's been a while, I don't remember the details. But since you are using the precompiled version of Ogre it should work. Still, the cegui log is pointing toward CEGUITaharezLook_d.
Perform a search on this word "CEGUITaharezLook_d", first as just the part of a filename then using *.* as the filename and looking for this word inside of files. Something is either not compiled or in the wrong location. I know that Ogre uses Taharez and Windows look from DLLs. This might be it (I'm at work so can't give a precise answer).
I have installed Ogre v1.0 and CEGUI v0.4 and they are working well together. If it's an Ogre resource then verify the .cfg files; maybe the file exists but not where Ogre thinks it should.
Perform a search on this word "CEGUITaharezLook_d", first as just the part of a filename then using *.* as the filename and looking for this word inside of files. Something is either not compiled or in the wrong location. I know that Ogre uses Taharez and Windows look from DLLs. This might be it (I'm at work so can't give a precise answer).
I have installed Ogre v1.0 and CEGUI v0.4 and they are working well together. If it's an Ogre resource then verify the .cfg files; maybe the file exists but not where Ogre thinks it should.
Re: How to get custom buttons in a hud?
CEGUITaharezLook_d.dll is present in my OgreSDK/bin/debug directory although I cannot figure out how it got there. Could you be missing the Ogre dependencies?
Re: How to get custom buttons in a hud?
hmm ...
well i found it there as well, but i copied them from my compiled cegui 0.4.0 source. Maybe that is where some things went wrong. Should i compile the libraries and dll's right into my program directory?
I have no idea about this this is also the first time i worked with cegui.
well i found it there as well, but i copied them from my compiled cegui 0.4.0 source. Maybe that is where some things went wrong. Should i compile the libraries and dll's right into my program directory?
I have no idea about this this is also the first time i worked with cegui.
Re: How to get custom buttons in a hud?
hmm ...
well i found it there as well, but i copied them from my compiled cegui 0.4.0 source. Maybe that is where some things went wrong. Should i compile the libraries and dll's right into my program directory?
I have no idea about this this is also the first time i worked with cegui.
well i found it there as well, but i copied them from my compiled cegui 0.4.0 source. Maybe that is where some things went wrong. Should i compile the libraries and dll's right into my program directory?
I have no idea about this this is also the first time i worked with cegui.
Re: How to get custom buttons in a hud?
double post
Re: How to get custom buttons in a hud?
For my project I modified Ogre_Plugins.cfg in order to lighten the contents of my application's root directory; RenderSystem_Direct3D7, RenderSystem_Direct3D9, RenderSystem_GL, Plugin_ParticleFX, Plugin_BSPSceneManager, Plugin_OctreeSceneManager, and Plugin_CgProgramManager are all moved into a Plugins subdirectory.
The following files remain within my root directory, at the same level as my program.exe: CEGUIBase_d.dll, CEGUITaharezLook_d.dll, CEGUIWindowsLook_d.dll, cg.dll, devil.dll, ilu.dll, OgreGUIRenderer_d.dll, OgreMain_d.dll, OgrePlatform_d.dll, zlib1.dll.
Ogre has a lot of good information, you might find help there, in the Wiki/Tutorials.
The following files remain within my root directory, at the same level as my program.exe: CEGUIBase_d.dll, CEGUITaharezLook_d.dll, CEGUIWindowsLook_d.dll, cg.dll, devil.dll, ilu.dll, OgreGUIRenderer_d.dll, OgreMain_d.dll, OgrePlatform_d.dll, zlib1.dll.
Ogre has a lot of good information, you might find help there, in the Wiki/Tutorials.
Re: How to get custom buttons in a hud?
i have a few more in the root folder ( next to the .exe ). But that isnt the promblem in my oppinion.
well i will scourge the ogre wiki and the cegui wiki again for it thanks for your help. If you might come up with another solution please help me.
well i will scourge the ogre wiki and the cegui wiki again for it thanks for your help. If you might come up with another solution please help me.
Re: How to get custom buttons in a hud?
Found it. CEGUITaharezLook_d.dll is coming from the OgreDependencies file. Here's the link for the windows version: http://www.ogre3d.org/index.php?option= ... tcat&cat=4. Download the file appropriate for your compiler.
Re: How to get custom buttons in a hud?
hmmm it might be me but i can't find the DLL there
well i read some more posts and they suggested to use the Ogre source.
So i did this and made it work.
Step 1: Build CEGUI 0.4.0 ( compiles without errors ).
Sted 2: Move include files and library files to the right ogre folders.
Step 3: Clean Ogre build. And build again with CEGUI 0.4.0. ( compiles without errors ).
Now all Ogre demo's work and CEGUI demo's as well. The only demo that doesnt work is the Demo_Gui.exe. This one uses both Ogre and CEGUI. And i still get the same error.
I think i did something wrong but i have no idea what.
well i read some more posts and they suggested to use the Ogre source.
So i did this and made it work.
Step 1: Build CEGUI 0.4.0 ( compiles without errors ).
Sted 2: Move include files and library files to the right ogre folders.
Step 3: Clean Ogre build. And build again with CEGUI 0.4.0. ( compiles without errors ).
Now all Ogre demo's work and CEGUI demo's as well. The only demo that doesnt work is the Demo_Gui.exe. This one uses both Ogre and CEGUI. And i still get the same error.
I think i did something wrong but i have no idea what.
Re: How to get custom buttons in a hud?
The Dependencies v1.0.3 For Visual C++ .Net 2003 (7.1) contains CEGUITaharezLook_d.dll within samples/common/bin/debug. VC++ 6.0 and VC++ 7.0 also contain this DLL. This DLL is not part of the source; it is only present within the dependencies download.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 11 guests