Author Topic: GUI HELP  (Read 962 times)

Ok so I'm not sure where else this would go (unless coding maybe or modding) but I am making a real simple GUI and I wanted to know how to put buttons on a window...
I can make buttons and make windows but how do I make the button like a part of the window.
Also how do I make it so when you press a key the GUI pops up (or /slashcommand either or)

sry Dr.Bling :(
« Last Edit: March 08, 2008, 06:19:25 PM by DYLANzzz »

Lets bump a 30 minute old topic! On Topic: From what I have done, press f10 in mission editor to make Gui's. Just keep at it and you will find the button maker. Since its a main aspect, it shouldn't be too hard to find.

I'd suggest looking at simple GUIs that are already in Blockland, learn how the hierarchy of objects works on the right, familiarize yourself with the common settings used for controls (like base\client\ui\button1 for the GuiBitmapButtonCtrl) and then start experimenting. You can use ctrl+c and ctrl+v in the gui editor, so that might help.

Lets bump a 30 minute old topic! On Topic: From what I have done, press f10 in mission editor to make Gui's. Just keep at it and you will find the button maker. Since its a main aspect, it shouldn't be too hard to find.


Ok if you read my post...
Quote
I can make buttons and I can make windows
So I already kow how to make buttons , oh, and sry for da bump :( when I went to check on it it was the fourth one down the list already then it was moved





I'd suggest looking at simple GUIs that are already in Blockland, learn how the hierarchy of objects works on the right, familiarize yourself with the common settings used for controls (like base\client\ui\button1 for the GuiBitmapButtonCtrl) and then start experimenting. You can use ctrl+c and ctrl+v in the gui editor, so that might help.



Ok I'll try that, and one more quick questtion: How do I load a GUI? There is no load option and it doesn't popup.






EDIT: And by
Quote
how do I make the button like a part of the window.
I mean how do I make a window the parent of a button?
« Last Edit: March 08, 2008, 06:18:17 PM by DYLANzzz »


Two things: Don't be sorry just don't do it :P and only bumping every couple of days I think is best.

How do I load a GUI?
In the console, exec() the GUI file you made (i.e. exec("Add-Ons/Client/mynewgui.gui");), then it appears in the GUI Editor in the drop down box. To actually open it by scripting (if you are releasing this), make sure it has been exec();'d by your client scripts and then use canvas.pushDialog(mynewgui);.


EDIT: And by
Quote
how do I make the button like a part of the window.
I mean how do I make a window the parent of a button?
Right click on the window you want to put things in to set that as the parent for newly created objects.