Note that I use a right edge, not a width.
Code: Select all
<!-- top edge -->
<ImageryComponent>
<Area>
<Dim type="LeftEdge" >
<AbsoluteDim value="0" >
<DimOperator op="Add">
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedTopLeft" dimension="Width" />
</DimOperator>
</AbsoluteDim>
</Dim>
<Dim type="TopEdge" >
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" offset="0" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedTopRight" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="Height" >
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedTop" dimension="Height" />
</Dim>
</Area>
<Image imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedTop" />
<VertFormat type="Stretched" />
<HorzFormat type="Tiled" />
</ImageryComponent>
<!-- bottom edge -->
<ImageryComponent>
<Area>
<Dim type="LeftEdge" >
<AbsoluteDim value="0" >
<DimOperator op="Add">
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedBottomLeft" dimension="Width" />
</DimOperator>
</AbsoluteDim>
</Dim>
<Dim type="TopEdge" >
<UnifiedDim scale="1" offset="0" type="BottomEdge">
<DimOperator op="Subtract">
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedBottom" dimension="Height" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="RightEdge" >
<UnifiedDim scale="1" offset="0" type="RightEdge">
<DimOperator op="Subtract">
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedBottomRight" dimension="Width" />
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="Height" >
<ImageDim imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedBottom" dimension="Height" />
</Dim>
</Area>
<Image imageset="XenoLook/Button_v2" image="XnetSubitemHighlightedBottom" />
<VertFormat type="Stretched" />
<HorzFormat type="Tiled" />
</ImageryComponent>