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

How do I add new parts to the gui?


Zexion
 Share

Recommended Posts

Hello I added the altar quest system, which made this little white box appear, and a menu that is very empty. Obviously I don't want the little white box, or the menu to be empty, but how do I make the client load an image for the quest background and a button for the little white box?
Link to comment
Share on other sites

For the little white box, here is a tutorial:
@hazeygaming:

> I have seen this question asked a few times, So I will add this here. Its really simple people who are having troubles…
>
> How to add the quest button with the others.
>
> Inside _Client.vbp_
>
> In **ModConstants** find:
>
> ```
> Public Const MAX_MAINBUTTONS As Long = 6
> ```
> Change to:
>
> ```
> Public Const MAX_MAINBUTTONS As Long = 7
> ```
> In **ModGeneral** find:
>
> ```
> ' main - party
>     With MainButton(6)
>         .fileName = "party"
>         .state = 0 ' normal
>     End With
> ```
> Below add this:
>
> ```
> ' main - quest
>     With MainButton(7)
>         .fileName = "quest"
>         .state = 0 ' normal
>     End With
> ```
> Inside **frmMain** copy and paste an existing button:
>
> Now change the properties to:
>
> ```
> Required button Properties
> Name: imgButton
> Index: 7
>
> ```
> Next in Sub **imgButton** **Click** find:
>
> ```
> Case 6
>             ' show the window
>             picCharacter.Visible = False
>             picInventory.Visible = False
>             picSpells.Visible = False
>             picOptions.Visible = False
>             picParty.Visible = True
>             picQuestLog.Visible = False
>             ' play sound
>             PlaySound Sound_ButtonClick
> ```
> Below it add:
>
> ```
> Case 7
>             If Not picQuestLog.Visible Then
>             ' show the window
>             picCharacter.Visible = False
>             picInventory.Visible = False
>             picSpells.Visible = False
>             picOptions.Visible = False
>             picParty.Visible = False
>             picQuestLog.Visible = True
>             ' play sound
>             PlaySound Sound_ButtonClick
>             End If
> ```
> Also add the below code to Cases 1,2,3,4,6 skipping 5
>
> ```
> picQuestLog.Visible = False
> ```
>
> Now simply create 3 buttons with the others using the name quest_norm, quest_hover, quest_click.

And the others, I simply load in the Propeties at the "Picture"
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...