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

[EO 2.0]More/Less In-Game Buttons


XPiXel
 Share

Recommended Posts

**This guide 100% supports Version 2.0,but some parts may not work on outdated versions.**
________________________________________________________________________________
I would like to give credit to **Grimmnak**, who taught me how to do this, but I decided to share this to the community, because there seems to be no tutorial about this.By the end of the tutorial,you will have more/less animated buttons in-game. Everything is client-side,and of course,you need **Visual Basic 6(Enterprise/Professional)**.

1.Open up your **"client.vbp"**.
2.Open up **ModConstants** and search for:

```
' animated buttons
Public Const MAX_MENUBUTTONS As Long = 4
Public Const MAX_MAINBUTTONS As Long = 6
Public Const MENUBUTTON_PATH As String = "\Data Files\graphics\gui\menu\buttons\"
Public Const MAINBUTTON_PATH As String = "\Data Files\graphics\gui\main\buttons\"

```3.Change this to the number of animated buttons you want:

```
Public Const MAX_MAINBUTTONS As Long = 6

```4.Open up **ModGeneral** and search for:
```
    ' main - party
    With MainButton(6)
        .fileName = "party"
        .state = 0 ' normal
    End With
```5.**(You can obviously change "changeme" and you can change "MainButton(7)" to another number)**
Add this below it:

```
    ' main - changeme
    With MainButton(7)
        .fileName = "changeme"
        .state = 0 ' normal
    End With

```6.Open up **frmMain** and make a picturebox with these properties:

>! **(These properties are requirements for the 7th button.)**
Name:imgButton
Index:7
(These properties are recommendations for the 7th button.)
Height:29
Width:69
Top:168
Left:603
7.Make a new picture in:
```
data files\graphics\gui\main\buttons
```  And name it:
(Once again,changeme could obviously be changed. It follows the one here:
```
        .fileName = "changeme"

```"changeme_norm" - This will be the normal status of the button.
"changeme_hover" - This will be the hovered status of the button.
"changeme_click" - This will be the clicked status of the button.
8.Test it, it should work now! If it doesn't appear,hover a little over the skills button!
  (If you followed the recommendations for the picturebox, it will appear.)
  (The unappearing button when logged in can be fixed easily by adding a picture of the button on your main.jpg.)
________________________________________________________________________________
Glad to help out,if you get any issues on this,leave me a PM.
Once again,I will say,I give alot of credit to **Grimmnak**.
Link to comment
Share on other sites

@Piteq:

> Sorry, my english is bad and i don't understand… What this tutorial do?

It allows you to change the amount of buttons (with hover effects etc.) that are allowed on the main game screen or main menu.
Link to comment
Share on other sites

  • 7 months later...
  • 3 months later...
you trying to chage look of that white button??? xD just copy  and paste any other buttons and paste code of that white button(if you dont understude some 1 here hu better spek englesh will help you)
Nice tutorial just what i need tyy!!
Link to comment
Share on other sites

Alright so say I made a button check box button at the Menu for a Full Screen option. How do I get the button when clicked on to load the game into a Full Screen for whoever clicks on it? I also want this to buffer in size according to the monitor size of the person playing the game…where do I need to add code...im just unsure of where to add
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...