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

[EO] Equipment Display


Zarnick123
 Share

Recommended Posts

Working on changing around my GUI, Simple as That. I want to make it so the Four items currently equipped to the player are displayed on the white bar under health.

![](http://www.freemmorpgmaker.com/files/imagehost/pics/3c4dc66dd997d95fb6d8e55e3624c26a.png)
Link to comment
Share on other sites

@The:

> nah I fixed that part. nother prob though. when I click the item on the pic it wont unequip and im not getting the Description when I hover over it. but I transfered the conde from the char menu

So you copied the code from these into the proper events for the equipment picturebox?
```
Private Sub picCharacter_Click()
Ā  Ā  Dim EqNum As Long
Ā  Ā  EqNum = IsEqItem(EqX, EqY)

Ā  Ā  If EqNum <> 0 Then
Ā  Ā  Ā  Ā  SendUnequip EqNum
Ā  Ā  End If

End Sub

Private Sub picCharacter_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Ā  Ā  Dim EqNum As Long
Ā  Ā  Dim x2 As Long, y2 As Long
Ā  Ā  EqX = X
Ā  Ā  EqY = Y
Ā  Ā  EqNum = IsEqItem(X, Y)

Ā  Ā  If EqNum <> 0 Then
Ā  Ā  Ā  Ā  y2 = Y + picCharacter.Top - frmMainGame.picItemDesc.height - 2
Ā  Ā  Ā  Ā  x2 = X + picCharacter.Left + 2
Ā  Ā  Ā  Ā  UpdateDescWindow GetPlayerEquipment(MyIndex, EqNum), 0, x2, y2
Ā  Ā  Ā  Ā  LastItemDesc = GetPlayerEquipment(MyIndex, EqNum) ' set it so you don't re-set values
Ā  Ā  Ā  Ā  Exit Sub
Ā  Ā  End If

Ā  Ā  picItemDesc.Visible = False
Ā  Ā  LastItemDesc = 0 ' no item was last loaded
End Sub

```
If not, do that and change these lines to reflect your equipment picturebox:
```
Ā  Ā  Ā  Ā  y2 = Y + picCharacter.Top - frmMainGame.picItemDesc.height - 2
Ā  Ā  Ā  Ā  x2 = X + picCharacter.Left + 2

```
Link to comment
Share on other sites

  • 1 month later...

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...