Page 1 of 1

Two problems with Layout Editor 0.5rc2

Posted: Thu Dec 28, 2006 23:40
by Azure
Im noticing two problems with the Layout Editor 0.5rc2...

1.) Snap to grid just doesnt seem to work. If I hit the 'g' key my windows will just hop a seemingly random amount up and to the left. They Just keep jumping till they reach the upper left corner, but at NO point do they ever allign with the grid. Is this feature just plain broken?

2.) When I try and add a MenuBar, the whole thing crashes...

CELayoutEditor.exe has encountered a problem and needs to close.


No errors in the log, here are the last few lines before it stops...

28/12/2006 16:35:08 (InfL1) ---- Successfully completed loading of GUI layout from 'test.layout' ----
28/12/2006 16:35:08 (InfL2) Window 'BackgroundWindow' of type 'TaharezLook/StaticImage' has been created.
28/12/2006 16:35:08 (InfL2) Assigning the window renderer 'Falagard/StaticImage' to the window 'BackgroundWindow'
28/12/2006 16:35:08 (InfL2) Assigning LookNFeel 'TaharezLook/StaticImage' to window 'BackgroundWindow'.
28/12/2006 16:35:16 (InfL2) Window 'Root/' of type 'WindowsLook/Menubar' has been created.
28/12/2006 16:35:16 (InfL2) Assigning the window renderer 'Falagard/Menubar' to the window 'Root/'
28/12/2006 16:35:16 (InfL2) Assigning LookNFeel 'WindowsLook/Menubar' to window 'Root/'.
28/12/2006 16:35:18 (InfL2) Window 'Root' has been added to dead pool.
28/12/2006 16:35:18 (InfL2) Window 'Root/' has been added to dead pool.
28/12/2006 16:35:18 (InfL2) Window 'BackgroundWindow' has been added to dead pool.


Any idea what could be going on? Onlything I can think of is maybe the resources arent compatible (im using the 'data files' from the latest CEGUI sdk available on the website).

Thanks in advance

Posted: Sat Dec 30, 2006 21:22
by scriptkid
Hi,

i just got back from holidays and will have a look at these issues this weekend! :-)

Posted: Fri Apr 06, 2007 03:58
by Azure
Back to working on my gui now, but im still having trouble...

Does anyone else have these problems? They seem pretty major (unless its just me). Are there any other layout editors with a working menu bar editor and a working snap to grid feature?

Posted: Fri Apr 06, 2007 09:07
by scriptkid
Hi,

you are still using rc2 apparently? There have been two new releases of the editor already: http://sourceforge.net/project/showfile ... _id=194684

Can you try the 0.5b verion, which is the latest?

Thanks and good luck :)

Posted: Fri Apr 06, 2007 23:36
by Azure
Haha! I thought I was using the latest one but I guess not. This new version solves the menu problem and snap to grid seems to be working now! Thanks!

Onlything is I still get that "a gui scheme named taharez is already present' error when I launch. How can I get rid of that? Do I need to grab a new 'data files' folder from somewhere (I guess thats old too)?

Posted: Sun Apr 08, 2007 12:51
by scriptkid
Hi,

good to hear that the bugs are gone for you :)

To answer your question: the datafiles contain several files in the Schemes folder. TaharezLook.scheme, TaharezLookWidgets.scheme, TaharezLookWidgetAliases.scheme and so on. All three have the same name tag in their xml file, which caused the exceptions. I think you are fine by only keeping TaharezLook.scheme and removing the other two.

Good luck :)

Posted: Wed Apr 11, 2007 21:01
by Evak
hmm, I downloaded the 0.5b version of the windows installer and it still says RC2 in the info. Seems to work ok only I can't seem to do anything with the image parameters of the static image gadget.

Posted: Thu Apr 12, 2007 08:29
by scriptkid
Hi Evak,

yeah i forgot to update the about box, sorry for the confusion!

About the StaticImage widget; you mean the Image property right? I just checked it and if you pass it in the correct format it should work, for example try to set the value exactly to:

Code: Select all

set:WindowsLook image:MultiListSelectionBrush


This sample works with the WindowsLook. To make any image work make sure to load the imageset first. This happens automatically when it's inside a .scheme file. The 'datafiles' directory as shipped with cegui has this already setup correctly.

Good luck :)

Posted: Thu Apr 12, 2007 19:21
by Evak
ok I am sorted now. I had to spend quite a lot of time getting around some of the layout editors oddness. But it's working with my images ok :) thanks

Posted: Fri Apr 13, 2007 07:42
by scriptkid
okay that's good to hear. Feel free to post suggestions though :)