so i changed some code in looknfeel:
Code: Select all
<PropertyDefinition name="VertImageFormatting" initialValue="Stretched" redrawOnWrite="true" />
<PropertyDefinition name="HorzImageFormatting" initialValue="Tiled" redrawOnWrite="true" />
...
<ImagerySection name="normal">
<FrameComponent>
<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="Height" /></Dim>
</Area>
<Image type="LeftEdge" imageset="TaharezLook" image="ButtonLeftNormal" />
<Image type="RightEdge" imageset="TaharezLook" image="ButtonRightNormal" />
</FrameComponent>
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ButtonLeftNormal" dimension="Width" /></Dim>
<Dim type="TopEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="TaharezLook" image="ButtonLeftNormal" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="Height" ><UnifiedDim scale="1" type="Height" /></Dim>
</Area>
<Image type="Background" imageset="TaharezLook" image="ButtonMiddleNormal" />
<VertFormatProperty name="VertImageFormatting" />
<HorzFormatProperty name="HorzImageFormatting" />
</ImageryComponent>
</ImagerySection>
and this worked fine using TaharezLook(imageset+tga).
when i replace the images from our artist and opened CELayoutEditor
appeared.
the imageset is:
Code: Select all
<Image Name="ButtonLeftNormal" XPos="85" YPos="9" Width="50" Height="34" />
<Image Name="ButtonMiddleNormal" XPos="137" YPos="9" Width="7" Height="34" />
<Image Name="ButtonRightNormal" XPos="146" YPos="9" Width="43" Height="34" />
is it result in the left and right edge's width longer than the middle?