Now, some of you have probably been wondering how to create a more custom GUI design and what I’m going to explain here is to show you how you can change your Health Bar into a custom Bar or tank or whatever you wish to use on that Health Bar. Do note, this is Health bar only but everything applies the same for the MP and XP bar! (Name ids for their form is at end of this post)
Also, I’m not using pictures because if you can’t follow this in full detail (you will not get lost, if you know what 1+1 is)… You should look into learning VB6 ebooks which is posted in the forums…
Two health graphics of same size and separate color, preferably red for full HP bar and dark Red for empty HP bar
Click once on your Health Bar
Under properties to the right it should say under (Name): lblHP, it will be a transparent rectangle if you use default source.
Resize it to the same size and shape as the graphic you are wanting to use for your Health Graphic.
now Please place the lblHP box in the precise spot you are wanting your Health Graphic to be located at.
Click on the Red Health Bar again(where lblHP once was)
You will select a rectangle that isnt transparent by the (Name): shpHP
Press the Del(or maybe its Delete for you) key on your keyboard.
To the left in the toolbar of VB6 Program itself
Click on PictureBox
Create the PictureBox on your frmMirage, again, in the precise spot you placed lblHP
Without clicking off of the newly created PictureBox we are going to name it shpHP under the properties (Name)
After doing this with the newly created PictureBox now named shpHP, in its properties scroll down in the window and select “Picture” the picture you wish to use for your Health bar. (again make sure its the same size as your “lblHP” and directly over top of it)
After doing this you will go up to Appearance and where it says “1-3D” you will choose "0-Flat"
There you go you now have your new Health bar Graphic!
But wait when you try it, it’s not showing a back drop of it’s emptyness!
You will want to name another PictureBox in the precise spot you placed shpHP, you can call it “sHPtank” (for Shadow HP Tank)
Again you will want to select another “Picture” (Dark red one i mentioned above under tools required)
Also make sure the Appearance is set to “0-Flat” and not “1-3D” under the properties box to the right.
What you do now is right click on the newly created PictureBox, now called sHPtank
Select, “send to back”.
save, compile. Voila! Fully functional Graphic for your Health bar!
This also works for XP,MP bar too, the only thing that changes is that it isn’t shpHP.
for Mana Bar its: shpMP
for XP bar its: shpTNL
p.s: if you are doing a bubble, it will load its health horizontal instead of vertical, I’ll try to find out how to make it show vertical later when I have time and post here, unless someone beats me to it.