Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Question about hp,mp bar..


Domino_
 Share

Recommended Posts

The following sets of code might help (all client side):

Find:
```
Public HPBar_Width As Long

```
and replace it with:
```
Public HPBar_Height As Long

```
Find in loadGUI:
```
HPBar_Width = frmMain.imgHPBar.width

```
replace with:
```
HPBar_Height = frmMain.imgHPBar.height

```

Find in HandlePlayerHP:
```
frmMain.imgHPBar.width = ((GetPlayerVital(MyIndex, Vitals.HP) / HPBar_Width) / (GetPlayerMaxVital(MyIndex, Vitals.HP) / HPBar_Width)) * HPBar_Width

```
and replace it with:
```
frmMain.imgHPBar.height = ((GetPlayerVital(MyIndex, Vitals.HP) / HPBar_Height) / (GetPlayerMaxVital(MyIndex, Vitals.HP) / HPBar_Height)) * HPBar_Height

```
Now it goes from up to down. Logic is pretty easy to follow: instead of calculating the width we calculate the height. Making the GUI good is your job.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...