How to add MultiColumnList to Vanilla scheme?

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

Emtec
Just popping in
Just popping in
Posts: 11
Joined: Tue Aug 05, 2014 15:10

How to add MultiColumnList to Vanilla scheme?

Postby Emtec » Tue Jul 21, 2015 21:40

In Thaerozol scheme there is something like "MultiColumnList". I would like to add it to vanilla scheme. To do this I have added something like this below to Vanilla.looknfeel.

<WidgetLook name="Vanilla/MultiColumnList">
<NamedArea name="ItemRenderingArea">
<Area>
<Dim type="LeftEdge" ><ImageDim name="Vanilla/MultiListLeft" dimension="Width" /></Dim>
<Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
<Dim type="RightEdge" >
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="RightEdge" />
<ImageDim name="Vanilla/MultiListRight" dimension="Width" />
</OperatorDim>
</Dim>
<Dim type="BottomEdge" >
<OperatorDim op="Subtract">
<UnifiedDim scale="1" type="BottomEdge" />
<ImageDim name="Vanilla/MultiListBottom" dimension="Height" />
</OperatorDim>
</Dim>
</Area>
</NamedArea>
<Child type="Vanilla/ListHeader" nameSuffix="__auto_listheader__">
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="2" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="2" /></Dim>
<Dim type="RightEdge" ><UnifiedDim scale="1" offset="-2" type="RightEdge" /></Dim>
<Dim type="Height" >
<OperatorDim op="Multiply">
<FontDim type="LineSpacing" />
<AbsoluteDim value="1.5" />
</OperatorDim>
</Dim>
</Area>
</Child>
<Child type="Vanilla/HorizontalScrollbar" nameSuffix="__auto_hscrollbar__">
<Area>
<Dim type="Width" ><UnifiedDim scale="1" offset="-12" type="Width" /></Dim>
<Dim type="Height" ><AbsoluteDim value="12" /></Dim>
</Area>
<VertAlignment type="BottomAligned" />
</Child>
<Child type="Vanilla/VerticalScrollbar" nameSuffix="__auto_vscrollbar__">
<Area>
<Dim type="TopEdge" ><WidgetDim widget="__auto_listheader__" dimension="BottomEdge" /></Dim>
<Dim type="Width" ><AbsoluteDim value="12" /></Dim>
<Dim type="BottomEdge" ><UnifiedDim scale="1" offset="-12" type="BottomEdge" /></Dim>
</Area>
<HorzAlignment type="RightAligned" />
</Child>
<StateImagery name="Enabled">
<Layer>
<Section section="main" />
</Layer>
</StateImagery>
</WidgetLook>



I think that I added every definitions to Vanilla.imageset, e.g.:
<Image height="6" name="MultiListLeft" width="7" xPos="170" yPos="92" />

and in Vanilla.scheme I added, e.g.:
<FalagardMapping windowType="Vanilla/MultiColumnList" targetType="CEGUI/MultiColumnList" renderer="Core/MultiColumnList" lookNFeel="Vanilla/MultiColumnList" />
.
Now when I running the game I got an exceptions, which is connected with creating MultiColumnList, because I think that I make some mistake defining in Vanilla.*.
The question is: is it enough to add definitions to Vanilla.* and everything should work? I uploaded my Vanilla.* files to server:
http://www.filedropper.com/1_20
. Thanks very much.

jjonj
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Fri Mar 21, 2014 22:11

Re: How to add MultiColumnList to Vanilla scheme?

Postby jjonj » Thu Jul 23, 2015 16:23

I'm not a CEGUI expert by any stretch but I think what you've done should work fine.
What error are you getting exactly?

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: How to add MultiColumnList to Vanilla scheme?

Postby Ident » Sat Jul 25, 2015 12:42

Your approach is correct, but like jjonj said: without error message we can't really say much.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: Bing [Bot] and 12 guests