A suggestion about looknfeel

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

songge3604
Quite a regular
Quite a regular
Posts: 60
Joined: Tue Oct 28, 2008 10:46

A suggestion about looknfeel

Postby songge3604 » Wed May 27, 2009 06:04

After I have written looknfeel, it's painful to debug the looknfeel I write, the ceguilog doesn't have anything about
the error, I just know that it has a error ...

So, could you give some infomation about the error of looknfeel, to make debuging looknfeel happy : )

Thank you, by the way, below is the looknfeel I am debuging:

Code: Select all

   <!--
   ***************************************************
      LLK3Look/UIPlayer
   ***************************************************
   -->
   <WidgetLook name="LLK3Look/UIPlayer">
      <PropertyDefinition name="Nickname" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="Titlename" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="RunwayImage" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="AvatarImage" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="HonorImage" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <PropertyDefinition name="HonorSpr" initialValue="" redrawOnWrite="true" layoutOnWrite="true" />
      <ImagerySection name="Nickname">
         <TextComponent>
            <Area>
               <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
               <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
               <Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
               <Dim type="Height"><UnifiedDim scale="1" type="Height" /></Dim>
            </Area>
            <TextProperty name="Nickname" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </TextComponent>
      </ImagerySection>
      <ImagerySection name="Titlename">
         <TextComponent>
            <Area>
               <Dim type="LeftEdge"><AbsoluteDim value="0" /></Dim>
               <Dim type="TopEdge"><AbsoluteDim value="0" /></Dim>
               <Dim type="Width"><UnifiedDim scale="1" type="Width" /></Dim>
               <Dim type="Height"><UnifiedDim scale="1" type="Height" /></Dim>
            </Area>
            <TextProperty name="Titlename" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </TextComponent>
      </ImagerySection>
      <ImagerySection name="normal">
         <ImageryComponent>
            <Area>
               <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
               <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
            </Area>
            <ImageProperty name="RunwayImage" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
         <ImageryComponent>
            <Area>
               <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
               <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
            </Area>
            <ImageProperty name="AvatarImage" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
         <ImageryComponent>
            <Area>
               <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
               <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
            </Area>
            <ImageProperty name="HonorImage" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
         <ImageryComponent>
            <Area>
               <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
               <Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
               <Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
            </Area>
            <ImageProperty name="HonorSpr" />
            <HorzAlignment type="LeftAligned" />
            <VertAlignment type="BottomAligned" />
            <VertFormat type="CentreAligned" />
            <HorzFormat type="CentreAligned" />
         </ImageryComponent>
      </ImagerySection>
      <StateImagery name="Enabled">
         <Layer>
            <Section section="normal" />
         </Layer>
      </StateImagery>
      <StateImagery name="Disabled">
         <Layer>
            <Section section="normal">
               <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
            </Section>
         </Layer>
      </StateImagery>
   </WidgetLook>

songge3604
Quite a regular
Quite a regular
Posts: 60
Joined: Tue Oct 28, 2008 10:46

Re: A suggestion about looknfeel

Postby songge3604 » Wed May 27, 2009 10:02

I solved my looknfeel's bug.

However, I hope the debug of looknfeel could be easier. :D

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: A suggestion about looknfeel

Postby CrazyEddie » Wed May 27, 2009 11:36

Hi,

This is why we have xerces-c++ for XML validation - you might like to try that out, though lots of exceptions in your app while you try and figure it out might not be much fun either.

We have an external command line tool for linux that can do this validation and output the errors. This is source only currently though. If I get the time I'd like to extend it to work on Win32 / Mac and also GUI-ify it to make it more friendly.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests