dobbythenerd Posted May 31, 2017 Author Share Posted May 31, 2017 I have been following this guide https://www.eclipseorigins.com/Thread-Eclipse-Final-Frontier-Adding-a-extra-buttonto add a button below the hotbar on eclipse final frontier but the button i have inserted does nothing. Im not sure why. Any ideas? Link to comment Share on other sites More sharing options...
PD Posted May 31, 2017 Share Posted May 31, 2017 Are you using EFF or another engine? The "thing" the button does is in this code, specifically the **OpenGuiWindow 10** line.```' friend buttonI = 65x = GUIWindow(GUI_MENU).x + Buttons(I).xy = GUIWindow(GUI_MENU).y + Buttons(I).y' check if we're on the buttonIf (GlobalX >= x And GlobalX <= x + Buttons(I).Width) And (GlobalY >= y And GlobalY <= y + Buttons(I).Height) Then If Buttons(I).state = 2 Then ' do stuffs OpenGuiWindow 10 ' play sound PlaySound Sound_ButtonClick, -1, -1 End IfEnd If```You need to go into the **OpenGuiWindow** function and see what values it accepts. It maybe that **10** isn't accepted in your version of the engine. You can try changing the number to something else or putting in some other code under **' do stuffs**. Link to comment Share on other sites More sharing options...
dobbythenerd Posted June 1, 2017 Author Share Posted June 1, 2017 Hey it's on final frontier I'm using. I have been messing with it loads and moved the button beside the chat bar by changing the button from GUI_MENU to GUI_CHAT but now when the button is pressed it crashes with a dx8 error.Im trying to make a hide menu button sort of thing that will hide and show GUI_MENU when pressed.Any ideas?I do appreciate the help Link to comment Share on other sites More sharing options...
PD Posted June 1, 2017 Share Posted June 1, 2017 You need to post the code and the error you are getting. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted June 1, 2017 Share Posted June 1, 2017 My guess is there isn't an error, the engine is just popping the msgbox up saying DX8 crashed. Try using breakpoints in your code (click the side of VB6's IDE and a red dot should appear). Put the breakpoint on the sub where the button is clicked and then press F8 to follow the code and see where something goes wrong. Link to comment Share on other sites More sharing options...
dobbythenerd Posted June 1, 2017 Author Share Posted June 1, 2017 Okay when im home (Tomorrow) i shall post the code and take some screenshots. Hope to get this one working. Thank you for the replies. I have been tinkering with eclipse origins for years but stopped when the gold version thing came out. Now it's something i can come back to and tinker with when im not working. 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