Author Topic: [Need Help] How do I add a button to existing GUI  (Read 852 times)

Ok, let's get started. I'm sorry if this has been posted before, but I searched ALL OVER these forums and found nothing short of what im trying to do. Anyways, i'm creating a GUI-based add-on, but I still cannot figure out how to add GuiButtonCtrl to a base GUI. So it's like this: I want to add a GuiButtonCtrl to the blockland MainMenuButtonsGui. Upon activating said button will activate the following command:
Code: [Select]
canvas.pushdialog(BBSF_LOBBY);. Can anyone help me out?

Useless replies will be ignored.
« Last Edit: November 17, 2014, 06:50:43 PM by RTBARCHIVE »

Bump - I need help on this

MainMenuButtonsGui.add(YourButton);

MainMenuButtonsGui.add(YourButton);
This, after you create YourButton:
Code: [Select]
new GuiButtonCtrl(YourButton) //I think that's the name
{
    //I don't know what properties you need
};
MainMenuButtonsGui.Add(YourButton);



Just open any .gui file, and see what's in it

Thanks for the help!  :cookieMonster: Locking Topic