Lapito Posted June 24, 2013 Share Posted June 24, 2013 Hello, I'm trying to make a button that connects to a defined server ip. What function do I need to give it? Here's the button: this.buttonList.add(new GuiButton(10, this.width / 2 - 100, par1 - par2 * 1, par3StringTranslate.translateKey("Connect to Spacecrafters"))); Quote Link to comment Share on other sites More sharing options...
Altair357 Posted June 24, 2013 Share Posted June 24, 2013 Hi Lapito! Quote Link to comment Share on other sites More sharing options...
planetguy Posted June 25, 2013 Share Posted June 25, 2013 http://www.minecraftforge.net/wiki/Containers_and_GUIs See the "Buttons" section. Quote Link to comment Share on other sites More sharing options...
Lapito Posted June 25, 2013 Author Share Posted June 25, 2013 http://www.minecraftforge.net/wiki/Containers_and_GUIs See the "Buttons" section. Thanks, but could you help me please? I just want the people to click in the button and connect to the server. Quote Link to comment Share on other sites More sharing options...
planetguy Posted June 25, 2013 Share Posted June 25, 2013 VoxelMenu adds just that, so you might try decompiling it to see. You might try the Forge forums, since more knowledgeable modders are likely to be there. Quote Link to comment Share on other sites More sharing options...
Lapito Posted June 25, 2013 Author Share Posted June 25, 2013 VoxelMenu adds just that, so you might try decompiling it to see. You might try the Forge forums, since more knowledgeable modders are likely to be there. Ok, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.