WindowsLook ProgressBar Background question
Posted: Fri May 14, 2010 05:45
I want use ProgressBar make Player HPBar .But come up against difficulties.
the ProgressBar's Background has color.
When I set the Background at .imageset file the alpha area.Now the ProgressBar Foreground Color unseen.
How to do?
thanks!
the ProgressBar's Background has color.
When I set the Background at .imageset file the alpha area.Now the ProgressBar Foreground Color unseen.
Code: Select all
<Image imageset="WindowsLook" image="BackHP" /> //the BackHP at the .imageset file alpha area.
<Colours topLeft="FFFFFFFF" topRight="FFFFFFFF" bottomLeft="FFFFFFFF" bottomRight="FFFFFFFF" />
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<ImagerySection name="progress_lights" >
<ImageryComponent>
<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 imageset="WindowsLook" image="BackHP" /> //the BackHP at the .imageset file alpha area.
<VertFormat type="Stretched" />
<HorzFormat type="Stretched" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Enabled">
<Layer>
<Section section="frame" />
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="frame" />
</Layer>
</StateImagery>
<StateImagery name="EnabledProgress">
<Layer>
<Section section="progress_lights">
<Colours topLeft="FF990000" topRight="FF990000" bottomLeft="FF990000" bottomRight="FF990000" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="DisabledProgress">
<Layer>
<Section section="progress_lights">
<Colours topLeft="FF990000" topRight="FF990000" bottomLeft="FF990000" bottomRight="FF990000" />
</Section>
</Layer>
</StateImagery>
How to do?
thanks!