adammack Posted June 12, 2011 Author Share Posted June 12, 2011 [e.o - 2.0]Problem:Tried to make a new button on the gui and when i goto click/hover it;```RTE: 53File 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 More sharing options...
Yxxe Posted June 14, 2011 Share Posted June 14, 2011 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 More sharing options...
adammack Posted June 14, 2011 Author Share Posted June 14, 2011 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 More sharing options...
blkcrow Posted June 23, 2011 Share Posted June 23, 2011 go to modGeneral and find the sub cacheButtons() then add this```With MainButton(7) .fileName = "quest" .state = 0 ' normalEnd With``` Link to comment Share on other sites More sharing options...
adammack Posted June 23, 2011 Author Share Posted June 23, 2011 @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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now