Setting an ImageButton's image - With no imageset!

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

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon May 07, 2007 18:04

The WindowsLook does not have properties specify an image:

Code: Select all

<WidgetLook name="WindowsLook/Button">
    <PropertyDefinition name="NormalTextColour" initialValue="FF000000" redrawOnWrite="true" />
    <PropertyDefinition name="HoverTextColour" initialValue="FF000000" redrawOnWrite="true" />
    <PropertyDefinition name="PushedTextColour" initialValue="FF000000" redrawOnWrite="true" />
    <PropertyDefinition name="DisabledTextColour" initialValue="FF888888" redrawOnWrite="true" />


The TaharezLook has these:

Code: Select all

<WidgetLook name="TaharezLook/Button">
    <PropertyDefinition name="NormalTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
    <PropertyDefinition name="HoverTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
    <PropertyDefinition name="PushedTextColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
    <PropertyDefinition name="DisabledTextColour" initialValue="FF7F7F7F" redrawOnWrite="true" />
    <PropertyDefinition name="VertLabelFormatting" initialValue="CentreAligned" />
    <PropertyDefinition name="HorzLabelFormatting" initialValue="CentreAligned" />
    <PropertyDefinition name="NormalImage" initialValue="" redrawOnWrite="true" />
    <PropertyDefinition name="HoverImage" initialValue="" redrawOnWrite="true" />
    <PropertyDefinition name="PushedImage" initialValue="" redrawOnWrite="true" />
    <PropertyDefinition name="DisabledImage" initialValue="" redrawOnWrite="true" />
    <PropertyDefinition name="VertImageFormatting" initialValue="Stretched" redrawOnWrite="true" />
    <PropertyDefinition name="HorzImageFormatting" initialValue="Stretched" redrawOnWrite="true" />


I dislike that these are not consistent; it makes it difficult to switch from one skin to another.

I can't research this but I'm guessing there's a way to access the imagery of a scheme/widget and specify a different image.

P.S. Create an application out of Property Finder to obtain a list of the properties for any .scheme.

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Mon May 07, 2007 21:38

Rackle wrote:P.S. Create an application out of Property Finder to obtain a list of the properties for any .scheme.

Wasnt that what the property finder was for?? and it already did that didnt it?
Image
Image

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon May 07, 2007 23:26

Property Finder was used to generate the contents of Set Property. Very useful to figure out which properties are supported by a scheme. As well as which properties are not supported, such as all the images for a button.

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Tue May 08, 2007 06:30

Yes...

So..It already did the following then?
Rackle wrote:P.S. Create an application out of Property Finder to obtain a list of the properties for any .scheme.
Image

Image

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Tue May 08, 2007 09:40

Every Wiki I've posted has contained a main.cpp, which can be used to generate an executable.

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Tue May 08, 2007 11:36

..Nevermind, we don't understand eachother but I do understand that its already done ;)
Image

Image


Return to “Help”

Who is online

Users browsing this forum: No registered users and 10 guests