[solved]static image without border

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

K0h4n
Just popping in
Just popping in
Posts: 14
Joined: Sun Apr 06, 2008 15:21

[solved]static image without border

Postby K0h4n » Wed Jul 02, 2008 15:42

ok...
i think this is a common problem but i can't figure out the solution yet
i would like to create a static image without any border on the frame

this is the code for the layout:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<GUILayout >
    <Window Type="DefaultWindow" Name="Root" >
        <Property Name="InheritsAlpha" Value="False" />
        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
     <Window Type="TaharezLook/StaticImage" Name="MenuTitle" >
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="UnifiedAreaRect" Value="{{0.05,0},{0,0},{0.95,0},{0.35,0}}" />
      <Property Name="Image" Value="set:Title image:SwthTitle" />
        </Window>
        <Window Type="TaharezLook/Button" Name="NewGame" >
            <Property Name="Text" Value="New Game" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.45,0},{0.6,0},{0.55,0}}" />
        </Window>
        <Window Type="TaharezLook/Button" Name="Option" >
            <Property Name="Text" Value="Option" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6,0},{0.6,0},{0.7,0}}" />
        </Window>
        <Window Type="TaharezLook/Button" Name="Quit" >
            <Property Name="Text" Value="Quit" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.75,0},{0.6,0},{0.85,0}}" />
        </Window>
    </Window>
</GUILayout>


i only add the image set into the scheme and that's all i had change from default TaharezLook skin

this is the result of the above code
http://www.imageox.com/image/291635-001.jpeg
i try to remove the frame, but the image also gone with the frame

is it possible to remove the border by changing the layout code only?
if not, could someone teach me how to achive it using look and feel code?

any help is appreciated
Last edited by K0h4n on Fri Jul 04, 2008 12:56, edited 1 time in total.

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

Postby CrazyEddie » Wed Jul 02, 2008 17:46

Hi,

How about:

Code: Select all

<Property Name="FrameEnabled" Value="False" />

in the properties for the StaticImage?

HTH

CE.

K0h4n
Just popping in
Just popping in
Posts: 14
Joined: Sun Apr 06, 2008 15:21

Postby K0h4n » Wed Jul 02, 2008 18:09

wow....
it works like a charm
thank you CE


Return to “Help”

Who is online

Users browsing this forum: No registered users and 3 guests