Blockland Forums > Modification Help

[Tutorial] Making a Gui

Pages: << < (24/30) > >>

AGlass0fMilk:

Bump, read above edit ^^^

AGlass0fMilk:

Any suggestions people? Anything you want to know how to do? Anything you think other people should know how to do?

YoshiDude:


--- Quote from: AGlass0fMilk on August 06, 2010, 10:32:27 PM ---Any suggestions people? Anything you want to know how to do? Anything you think other people should know how to do?

--- End quote ---
Sorry if you mentioned this already; I'm a bit hasty to know. How do you change an already-existing GUI at start-up? Like, say, I would like to change the MainMenuGUI to something I made. How would I do that? FYI, it's a complete GUI; I wouldn't want to overlap my GUI on top of the existing one. I'd like to wipe it before I put anything there.

AGlass0fMilk:

I dont think it's a very good idea to remove the main menu GUI completely, but I will cover adding (and if possible, removing) pieces to (/from) a GUI.

If you must know now, I'll tell you that you can add controls to a GUI by using something like this:


--- Code: ---$NewCntrl = new CtrlType(CntrlName) {
                        profile = "GuiDefaultProfile";
                        horizSizing = "right";
                        vertSizing = "bottom";
                        position = "0 0";
                        extent = "310 335";
                        minExtent = "8 2";
                        visible = "0";
                        color = "50 50 50 128";
};

CntrlName/WindowName.add($NewCntrl);

--- End code ---
Note that you can add the new control to either a named Control (like a scroll bar) or to the window it self


I don't know if there is a remove(); function, but there might be. Try dump()-ing some GUI's to see what methods they have.

DarkShadow6:


--- Quote from: Truce on April 30, 2009, 05:38:53 PM ---Computer version doesn't matter. If their Blockland path has spaces in it, then you need the quotations or it won't work. XP Just so happens to install into Program Files by default, which has spaces, where Vista doesn't.

--- End quote ---
I have Windoodle Seven and I throw all my fecal matter in %PROGRAMFILES.

Pages: << < (24/30) > >>

Go to full version