Problem with Vanilla theme

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

westpointer
Just popping in
Just popping in
Posts: 16
Joined: Sat Nov 15, 2008 13:12

Problem with Vanilla theme

Postby westpointer » Mon Mar 02, 2009 14:30

I find that there are many errors logged in CEGUI.log when using vanilla theme:
02/03/2009 22:21:03 (InfL2) Assigning LookNFeel 'Vanilla/Button' to window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_incbtn__'.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'UseStandardImagery' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'NormalImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'HoverImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'PushedImage' available in the set.
02/03/2009 22:21:03 (InfL2) Window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_decbtn__' of type 'Vanilla/Button' has been created.
02/03/2009 22:21:03 (InfL2) Assigning the window renderer 'Falagard/Button' to the window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_decbtn__'
02/03/2009 22:21:03 (InfL2) Assigning LookNFeel 'Vanilla/Button' to window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_decbtn__'.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'UseStandardImagery' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'NormalImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'HoverImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'PushedImage' available in the set.
02/03/2009 22:21:03 (InfL2) Window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_thumb__' of type 'Vanilla/HorizontalScrollbarThumb' has been created.
02/03/2009 22:21:03 (InfL2) Assigning the window renderer 'Falagard/Button' to the window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_thumb__'
02/03/2009 22:21:03 (InfL2) Assigning LookNFeel 'Vanilla/HorizontalScrollbarThumb' to window 'SimulatorSheet/AboutMenu/MsgTxt__auto_hscrollbar____auto_thumb__'.
02/03/2009 22:21:03 (InfL2) Window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar__' of type 'Vanilla/VerticalScrollbar' has been created.
02/03/2009 22:21:03 (InfL2) Assigning the window renderer 'Falagard/Scrollbar' to the window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar__'
02/03/2009 22:21:03 (InfL2) Assigning LookNFeel 'Vanilla/VerticalScrollbar' to window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar__'.
02/03/2009 22:21:03 (InfL2) Window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar____auto_incbtn__' of type 'Vanilla/Button' has been created.
02/03/2009 22:21:03 (InfL2) Assigning the window renderer 'Falagard/Button' to the window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar____auto_incbtn__'
02/03/2009 22:21:03 (InfL2) Assigning LookNFeel 'Vanilla/Button' to window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar____auto_incbtn__'.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'UseStandardImagery' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'NormalImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'HoverImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'PushedImage' available in the set.
02/03/2009 22:21:03 (InfL2) Window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar____auto_decbtn__' of type 'Vanilla/Button' has been created.
02/03/2009 22:21:03 (InfL2) Assigning the window renderer 'Falagard/Button' to the window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar____auto_decbtn__'
02/03/2009 22:21:03 (InfL2) Assigning LookNFeel 'Vanilla/Button' to window 'SimulatorSheet/AboutMenu/MsgTxt__auto_vscrollbar____auto_decbtn__'.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'UseStandardImagery' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'NormalImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'HoverImage' available in the set.
02/03/2009 22:21:03 (Error) Exception: There is no Property named 'PushedImage' available in the set.

The CEGUI version I use is 0.5.1 and vanilla related file comes from CEGUI 0.6.0 What the problem is?

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

Postby CrazyEddie » Mon Mar 02, 2009 18:58

Hi,

This is a problem at our end - basically many years ago when we stripped out most of the rendering related properties from the C++ code, we apparently forgot to add the corresponding property definitions and other support into the Vanilla.looknfeel :roll:

There is no immediate fix you can perform other than to either add the properties and other bits to the looknfeel yourself (the exact details is not something I'm going into here, since if I did that I may as well do the fix immediately, which I'm not!). Alternatively, you could remove the offending "<Property>" lines from the looknfeel (and perhaps layouts), or just make sure you catch the exceptions and ignore them (I know these solutions are not ideal ;) ).

Thanks very much for raising the issue - I was not aware of it before now :) I've added a mantis ticket so that this will get fixed.

CE.

westpointer
Just popping in
Just popping in
Posts: 16
Joined: Sat Nov 15, 2008 13:12

Postby westpointer » Tue Mar 03, 2009 02:37

It seems those exceptions comes from Vanilla/StaticText widget because after I delete Vanilla/StaticText in layout file or use TaharezLook instead of Vanilla the exceptions disappear.
But I can't find 'UseStandardImagery', 'NormalImage', and 'PushedImage' properties in the Vanilla/StaticText block in Vanilla.looknfeel:
<WidgetLook name="Vanilla/StaticText">
<Property name="BackgroundEnabled" value="True" />
<Property name="FrameEnabled" value="True" />
<NamedArea name="WithFrameTextRenderArea">
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
<Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
</NamedArea>
<NamedArea name="WithFrameTextRenderAreaHScroll">
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
<Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="Vanilla-Images" image="FrameRight" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1" offset="-20" type="BottomEdge" />
</Dim>
</Area>
</NamedArea>
<NamedArea name="WithFrameTextRenderAreaVScroll">
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
<Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" offset="-20" type="RightEdge" />
</Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="Vanilla-Images" image="FrameBottom" dimension="Height" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
</NamedArea>
<NamedArea name="WithFrameTextRenderAreaHVScroll">
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="Vanilla-Images" image="FrameLeft" dimension="Width" /></Dim>
<Dim type="TopEdge" ><ImageDim imageset="Vanilla-Images" image="FrameTop" dimension="Height" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" offset="-20" type="RightEdge" />
</Dim>
<Dim type="BottomEdge" >
<UnifiedDim scale="1" offset="-20" type="BottomEdge" />
</Dim>
</Area>
</NamedArea>
<NamedArea name="NoFrameTextRenderArea">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1" type="RightEdge" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
</NamedArea>
<NamedArea name="NoFrameTextRenderAreaHScroll">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1" type="RightEdge" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-20" type="BottomEdge" /></Dim>
</Area>
</NamedArea>
<NamedArea name="NoFrameTextRenderAreaVScroll">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1" offset="-20" type="RightEdge" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" type="BottomEdge" /></Dim>
</Area>
</NamedArea>
<NamedArea name="NoFrameTextRenderAreaHVScroll">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1" offset="-20" type="RightEdge" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-20" type="BottomEdge" /></Dim>
</Area>
</NamedArea>
<Child type="Vanilla/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><UnifiedDim scale="1" offset="-20" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="20" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
<Child type="Vanilla/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="Width" ><AbsoluteDim value="20" /></Dim>
<Dim type="Height" ><UnifiedDim scale="1" offset="-20" type="Height" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
<StateImagery name="Enabled" />
<StateImagery name="Disabled" />
<StateImagery name="EnabledFrame">
<Layer>
<Section look="Vanilla/Shared" section="FrameOnly">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="DisabledFrame">
<Layer>
<Section look="Vanilla/Shared" section="FrameOnly">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="WithFrameEnabledBackground">
<Layer>
<Section look="Vanilla/Shared" section="BackgroundOnly">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="WithFrameDisabledBackground">
<Layer>
<Section look="Vanilla/Shared" section="BackgroundOnly">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="NoFrameEnabledBackground">
<Layer>
<Section look="Vanilla/Shared" section="BackgroundOnlyFull">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="NoFrameDisabledBackground">
<Layer>
<Section look="Vanilla/Shared" section="BackgroundOnlyFull">
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>

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

Postby CrazyEddie » Tue Mar 03, 2009 09:30

Hi,

They're actually coming from the scrollbar definitions (which are used by the static text). So you should look at "Vanilla/VerticalScrollbar" and "Vanilla/HorizontalScrollbar".

A snippet of the vertical one is:

Code: Select all

<WidgetLook name="Vanilla/VerticalScrollbar">
        <Property name="VerticalScrollbar" value="True" />
        <NamedArea name="ThumbTrackArea">
            <Area>
                <Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
                <Dim type="TopEdge" ><WidgetDim widget="__auto_decbtn__" dimension="BottomEdge" /></Dim>
                <Dim type="RightEdge" ><UnifiedDim scale="1.0" type="RightEdge" /></Dim>
                <Dim type="BottomEdge" >
                    <UnifiedDim scale="1.0" type="BottomEdge">
                        <DimOperator op="Subtract">
                            <WidgetDim widget="__auto_incbtn__" dimension="Height" />
                        </DimOperator>
                    </UnifiedDim>
                </Dim>
            </Area>
        </NamedArea>
        <Child  type="Vanilla/Button" nameSuffix="__auto_incbtn__">
            <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="Width" /></Dim>
            </Area>
            <VertAlignment type="BottomAligned" />
            <HorzAlignment type="CentreAligned" />
            <Property name="UseStandardImagery" value="False" />
            <Property name="NormalImage" value="set:Vanilla-Images image:ScrollDownArrow" />
            <Property name="HoverImage" value="set:Vanilla-Images image:ScrollDownArrow" />
            <Property name="PushedImage" value="set:Vanilla-Images image:ScrollDownArrow" />
        </Child>
...

At the bottom of the snippet here, you can see where these properties are attempted to be set.

With regards to getting this fixed properly, I should get to it over the coming weekend, unless something else comes up in the mean time ;)

CE.

westpointer
Just popping in
Just popping in
Posts: 16
Joined: Sat Nov 15, 2008 13:12

Postby westpointer » Tue Mar 03, 2009 12:05

Thanks for your answer :D

BTW, I think Vanilla theme is good amongs those themes come with the layout editor.
But it lacks many widgets, and I think it just like a semi-product.
So I hope that it will have as many widgets as TaharezLook theme one day in the near future.

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

Postby CrazyEddie » Tue Mar 03, 2009 14:19

Yeah, it would be good to add support for some more widget types in the Vanilla skin at some stage.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 14 guests