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

[EA] Add button


Keny14
 Share

Recommended Posts

Hello,

I'm using Eclipse Advanced, and I want to add new buttons on the main. (like inventory, skills etc)

Thank you for your help. ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)
Link to comment
Share on other sites

Yeah I've VB6.

So, I found in ModConstant

```
' GUI

Public Const MAX_BUTTONS As Long = 45
```
I changed to 46.

Then in modGeneral I've found```

' BUTTONS

' main - inventory

With Buttons(1)

.state = 0 ' normal

.X = 115

.Y = 6

.Width = 27

.Height = 29

.visible = True

.PicNum = 1

End With

```
(there is 45buttons like this)

So, I've add this after the End With```

With Buttons(46)

.state = 0 ' normal

.X = 10

.Y = 6

.Width = 24

.Height = 29

.visible = True

.PicNum = 27

End With

```
But it do not appear. :/

Am I supposed to do other things ?

Thank you for your help and sorry for my dirty english. u_u
Link to comment
Share on other sites

You need to set the graphic for the image. Look in your GUI folder, and look at the names of the button images. Look for those in your source. Then again, I'm only familiar with 2.0 and EclipseVB.

3.0 might work differently.
Link to comment
Share on other sites

its b/c you didnt ,make a render those are just bout the button image not drawing it…. look at one of the buttons and track it around and see where the rest of the code like for example, Mouse down, mouse up, the render code the call for it . srry i cant explain more but you should be able to follow it.

o-o
Link to comment
Share on other sites

> Why are you looping from 46 to 46? lol
>
> The loop isn't necessary unless there are more values than 46 that is to be rendered together.

I'm having him use a for-loop in case he decides to add more buttons.

It will only require changing the second 46.(ex For I = 46 to 49)

You don't have to do it this way, I was just making it easier for future edits.
Link to comment
Share on other sites

> I'm having him use a for-loop in case he decides to add more buttons.
>
> It will only require changing the second 46.(ex For I = 46 to 49)
>
> You don't have to do it this way, I was just making it easier for future edits.

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