Rackle wrote:windowslookskin.scheme is from v0.4. Could some of the problems you are having be solved within v0.5? Maybe you can spend an hour on installing this newer version and performing a test.
This *may* be a possibility; unfortunately I cannot make that leap at the moment. We are using delta3d, and currently are using version 1.3 of it. Which, you may or may not know, but delta3d 1.3 uses CEGUI 0.4.1. Now, delta 3d has released version 1.4, which does support CEGUI 0.5.0, however, we haven't been told to migrate to that yet...
Habba wrote:You don't need to redo your layout each time you change LookNFeel-file.
What I did was that I made a basic layout with the editor (the one you can see in the picture). I saved it, and then edited it with text editor to support my skin and changed few properties (such as font colors and overrided images). After that I didn't tough the layout file nor the layout editor.
Well of course you don't need to redo the layout. But if you have to manually go into the layout file to change colors, etc, it is almost the same thing as redoing your layout...
Then I made a copy of Taharezlook, and renamed everything that was related to TaharezLook from those files to Horizon.
In my case, I am initially just trying to modify the windowslook skin - to become familiar with what does what, what changes will do what, etc.
However, what do you do with the dll? Since the dll can only be loaded once, it can only be used by one scheme at a time. If the idea is that you will only ship whatever skin you make and only allow its use, then this is no problem. But if you have more than one scheme referencing the same dll [regardless if the dlls are named differently] you wind up with a problem, ya?
I created a simple program that loads up the LookNFeel and layout files, and then displays the GUI. After that I started making changes to the LookNFeel and imagest file. Piece by pice I converted it from TaharezLook into what it is now.
And yes, I wouldn't have minded having a better tool to change those files, but a XML editor will do.
Again, it's not really about editing the files. What my problem is that things are needing to be edited that, from the reading and from intuition, should not need to be =p
I simply use edxor [a plain text editor] for editing them. Maybe I'll look into something else that is as light weight that offers slightly more niceties, but that's a different topic :p
To get started, maybe back on track: Let's say I want to change all black colors for the WindowsLook skin/looknfeel to now be white [only talking about the colors that are set via code [xml], not the colors in the imageset's .tga file]. How would I do that?
Open the LookNFeel-file with a text editor. Use 'replace' function and search for 'FFFFFFFF' and replace it with 'FF000000'.
Well yes. As I stated several times, I have done this and SEE NO RESULTS. So, apparently you are doing something different than me, but from your comments, I have absolutely no idea what it could be.
So, let me say what I've done so that maybe somebody can go "oh dude, you missed THIS" lol
The current, simple goal: change all black colors in the WindowsLook skin to be white.
1) Edit WindowsLook.looknfeel by doing a find and replace. I find "FF000000" and replace with "FFFFFFFF".
2) I go over to the code side of things and code up a simple app that builds a window and a button, like so [relevant code]:
Code: Select all
CEGUI::SchemeManager::getSingleton().loadScheme( "schemes/WindowsLookSkin.scheme" );
CEGUI::System::getSingleton().setDefaultFont( "Tahoma-12" );
CEGUIWindowManager = CEGUI::WindowManager::getSingletonPtr();
CEGUISheet = CEGUIWindowManager->createWindow( "DefaultGUISheet", "root_wnd" );
CEGUI::System::getSingleton().setGUISheet( CEGUISheet );
CEGUI::PushButton* ExitButton = (CEGUI::PushButton*)CEGUI::WindowManager::getSingletonPtr()->createWindow( "WindowsLook/Button", "QuitButton" );
CEGUI::System::getSingleton().getGUISheet()->addChildWindow( ExitButton );
ExitButton->setText( "Exit" );
ExitButton->setPosition( CEGUI::Point(0.4f, 0.7f) );
ExitButton->setSize( CEGUI::Size(0.2f, 0.1f) );
Those 2 steps is basically my whole test. Until the ExitButton's text color is white [without me manually setting it] I can only conclude the looknfeel is not being consulted properly?
So, with that bit of easiness, what vital step must I be missing?