Layout XML

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

flocker
Just popping in
Just popping in
Posts: 1
Joined: Fri Aug 18, 2006 00:02

Layout XML

Postby flocker » Fri Aug 18, 2006 00:29

Hi guys! it´s my first time posting, and i am now experimenting cegui!

I would like to know, if there is any reference about the properities i can use in a layout xml file. The thing i want to do is to set a backround colour to a imageset throught the XML file.

The syntax i am using is at folows

Code: Select all

<Window Type="TaharezLook/StaticImage" Name="VidaFundo" >
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.01,0},{0.4,0},{0.05,0}}" />
            <Window Type="TaharezLook/StaticImage" Name="Vida" >               
                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
                <Property Name="UnifiedAreaRect" Value="{{0.0136232,0},{0.0718309,0},{0.983623,0},{0.871831,0}}" />
                <Property Name="ImageColours" Value="{1,0.0,0.0,1}" />
            </Window>
        </Window>


How do i specify the value for the property ImageColours? Is that the correct property to set the backround color? i want to use it as a simple progress bar.

I also checked the TaharezLook.looknfeel file, and found the definitions of the proterities in the StaticImage widget:

Code: Select all

 <WidgetLook name="TaharezLook/StaticImage">
      <PropertyDefinition name="ImageColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
      <PropertyDefinition name="FrameColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
      <PropertyDefinition name="BackgroundColours" initialValue="tl:FFFFFFFF tr:FFFFFFFF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />



There, they use that syntax, that i also tried without sucess!

Anyone can help? plz! tnx!

Flocker

Xirnohn
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Thu Jun 22, 2006 13:32
Location: Hungary, Debrecen
Contact:

Postby Xirnohn » Fri Aug 18, 2006 07:50

Hi.

You can find properties in the CEGUI*Properties.h.

The thing i want to do is to set a backround colour to a imageset throught the XML file.


You can use the

Code: Select all

<Property Name="Image" Value="set:TaharezLook image:ClientBrush" />

property.


Code: Select all

<Window Type="TaharezLook/StaticImage" Name="VidaFundo" >
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.01,0},{0.4,0},{0.05,0}}" />
            <Property Name="Image" Value="set:TaharezLook image:ClientBrush" />
</Window>


Xir.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Tue Aug 22, 2006 00:12

Another option is to look in the namespaces section of the API reference. All property sets have their own namespace.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests