Progress Problem.

luwei

14-07-2010 10:35:03

I want to use Progress to make a bloodbar, how to write the skin of this progress?
who can give me a simple? Thank you.

haibo19981984

15-07-2010 03:03:45

You can seach "editor_skin.xml" in myGUI's Media.

<Skin name = "ProgressHealthBar" size = "49 15" texture = "#{MyGUI_Theme_Texture}" >
<Property key="TrackSkin" value = "ProgressHealthBarTrack" />
<Property key="TrackWidth" value = "86" />
<Property key="TrackStep" value = "53" />
<Property key="TrackFill" value = "false" />

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

This progress just supports rectangle progress.
His theory is :
| 86 |
| 53 |
-------------------------------
------------ ------------- |
| || | |
------------ ------------- |
-------------------------------
You can seach "myGUI ProgressHealthBar" in Google.
If your bloodbar is not rectangle,you can use StaticImage to simulate progress.
Just set StaticImage's size.
Above is the method which need not to edit source.

luwei

15-07-2010 07:51:45

Thank you! I will have a try.

luwei

15-07-2010 09:46:37

Can gave me some detail method?
I am very new in this field.

haibo19981984

16-07-2010 02:46:00

http://www.ogre3d.org/addonforums/viewtopic.php?f=17&t=9112