ProgressHealthBar extend required

haibo19981984

26-06-2010 07:53:39

I want to come true an exquisite progressbar just as "BloodBar.jpg".
ProgressHealthBar widget's function is limited.
It seems that the filled image must be rectangle.
If not,it will be like image"error.JPG".
This limits the effect of ProgressHealthBar.
Whether ProgressHealthBar can be improved on effect just as "BloodBar design.jpg".

Altren

26-06-2010 14:23:43

Look at ProgressFill skin that do what you need. Also keep in mind that skin for red thing should consist of three parts, not one, for proper scaling.

haibo19981984

26-06-2010 16:22:44

Look at ProgressFill skin that do what you need. Also keep in mind that skin for red thing should consist of three parts, not one, for proper scaling.
What you mean is ProgressFill can come true my mind?
Or other meaning.
I don't understand what you say.

Altren

26-06-2010 16:46:13

ProgressFill is Skin for Progress widget:
<Resource type="ResourceSkin" name = "ProgressFill" size = "49 15" texture = "#{MyGUI_Theme_Texture}" >
<Property key="TrackSkin" value = "HScrollTrack" />
<Property key="TrackMin" value = "15" />
<Property key="TrackFill" value = "true" />

<Child type="Widget" skin="Default" offset = "2 1 46 14" align = "Stretch" name = "Client"/>

<BasisSkin type="SubSkin" offset = "0 0 6 15" align = "Left VStretch">
<State name="normal" offset = "301 2 6 15"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "6 0 37 15" align = "HStretch VStretch">
<State name="normal" offset = "307 2 37 15"/>
</BasisSkin>
<BasisSkin type="SubSkin" offset = "43 0 6 15" align = "Right VStretch">
<State name="normal" offset = "344 2 6 15"/>
</BasisSkin>
</Resource>

You need
<Property key="TrackFill" value = "true" /> for your skin.

haibo19981984

26-06-2010 17:04:45

You maybe understand my mind mistakenly.
What I want is not the background of progress bar.
It is a simple problem.Just as image"progressFill.JPG".
What I need is the effect of bloodbar which has round rectangle.
Just as image"BloodBar_50percent.jpg".It makes by photoshop.

Altren

27-06-2010 02:40:37

Well, I know only one to make such skin, but only for fixed width:
Create TrackSkin with fixed size equal to size of your progress and set SubWidgets align to Left VStretch for each part. Or just make skin with one part and draw that red line in texture.

haibo19981984

27-06-2010 04:37:19

I know what you mean.
Then change a mind,if I rewrite and use the progress code just like Demo_ItemBox,whether it is possible or not?