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

Render The Button Error, Help?


adammack
 Share

Recommended Posts

[e.o - 2.0]

Problem:

Tried to make a new button on the gui and when i goto click/hover it;

```
RTE: 53

File not found -Drive Location- : _Hover.jpg
```

for the life of me i dont know where i declare the file name for it to locate it.
Link to comment
Share on other sites

You need to make a button where its name is "*_hover", "*_norm" and "*_click" where * is the name of the button you made. For example, the * could be trade, char, exit. Take a look in your client's "\graphics\gui\main\buttons\" folder to see what I mean. :P
Link to comment
Share on other sites

Ok what i did was "copy" one of the other buttons already on the gui, then changed the "Index" to "7" on it.

Also changed "Public Const MAX_MAINBUTTONS As Long =" to "7".

Made 3 new images named "quest_hover.jpg", "quest_norm.jpg" and "quest_click.jpg" then when i load the game and hover over the button it

**RTE: 53**
```
"frmMain.imgButton(buttonNum).Picture = LoadPicture(App.Path & MAINBUTTON_PATH & MainButton(buttonNum).fileName & bSuffix & ".jpg")
```
So i don't know whats happening XD
Link to comment
Share on other sites

  • 2 weeks later...
@blkcrow:

> go to modGeneral and find the sub cacheButtons() then add this
> ```
> With MainButton(7)
>         .fileName = "quest"
>         .state = 0 ' normal
> End With
>
> ```

That is what i was missing!
Thank you this has sorted it :D
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...