How to get custom buttons in a hud?

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
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

How to get custom buttons in a hud?

Postby pxL » Fri Nov 04, 2005 15:28

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 :oops:.

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 :D)
-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?

User avatar
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?

Postby lindquist » Fri Nov 04, 2005 16:55

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 ;)

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Wed Nov 09, 2005 13:48

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"

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?

User avatar
stephb7
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 02, 2005 13:56

Re: How to get custom buttons in a hud?

Postby stephb7 » Wed Nov 09, 2005 14:26

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.

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Wed Nov 09, 2005 15:12

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.

User avatar
stephb7
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 02, 2005 13:56

Re: How to get custom buttons in a hud?

Postby stephb7 » Wed Nov 09, 2005 16:02

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.

User avatar
stephb7
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 02, 2005 13:56

Re: How to get custom buttons in a hud?

Postby stephb7 » Thu Nov 10, 2005 00:01

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?

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Thu Nov 10, 2005 09:25

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. :oops:

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Thu Nov 10, 2005 09:31

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. :oops:

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Thu Nov 10, 2005 09:31

:oops: double post :oops:

User avatar
stephb7
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 02, 2005 13:56

Re: How to get custom buttons in a hud?

Postby stephb7 » Thu Nov 10, 2005 12:38

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.

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Thu Nov 10, 2005 13:12

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.

User avatar
stephb7
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 02, 2005 13:56

Re: How to get custom buttons in a hud?

Postby stephb7 » Thu Nov 10, 2005 17:36

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.

User avatar
pxL
Just popping in
Just popping in
Posts: 14
Joined: Mon Oct 31, 2005 16:05

Re: How to get custom buttons in a hud?

Postby pxL » Fri Nov 11, 2005 12:27

hmmm it might be me but i can't find the DLL there :oops:

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.

User avatar
stephb7
Just popping in
Just popping in
Posts: 14
Joined: Wed Nov 02, 2005 13:56

Re: How to get custom buttons in a hud?

Postby stephb7 » Fri Nov 11, 2005 13:08

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 8 guests