Postby BrightBit » Mon Dec 19, 2011 13:44
Hello CEGUI community,
I solved the issue on my own. I had to use DimOperatos for the ImagerySection of the "progressing" part of the ProgressBar to achieve the desired effect:
Code: Select all
<ImagerySection name="progress">
<FrameComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
<Dim type="TopEdge" >
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Subtract">
<UnifiedDim scale="1" type="TopEdge">
<DimOperator op="Multiply">
<PropertyDim name="CurrentProgress" />
</DimOperator>
</UnifiedDim>
</DimOperator>
</UnifiedDim>
</Dim>
<Dim type="Width" ><UnifiedDim scale="1" type="Width" /></Dim>
<Dim type="Height">
<UnifiedDim scale="1" type="Height">
<DimOperator op="Multiply">
<PropertyDim name="CurrentProgress" />
</DimOperator>
</UnifiedDim>
</Dim>
</Area>
<Image type="TopEdge" imageset="BNBWidgets" image="HealthBarTop" />
<Image type="Background" imageset="BNBWidgets" image="HealthBarMiddle" />
<Image type="BottomEdge" imageset="BNBWidgets" image="HealthBarBottom" />
</FrameComponent>
</ImagerySection>
Greetings
BrightBit
"Yeah so if you ever need info about anyone [...] Just ask. [...] They 'trust me'. Dumb fucks." - Mark Zuckerberg (Facebook CEO)