| Blockland Forums > Modification Help |
| [Tutorial] Making a Gui |
| << < (11/30) > >> |
| AGlass0fMilk:
What? |
| AGlass0fMilk:
Bump |
| AGlass0fMilk:
With the coming of Blockland v12, Badspot has granted us the use oif the GUI Animated Bitmap control, due to his need of it for the Ghosting thing at the bottom. I don't know much about this new thing, but you can explore it's properties if you want. |
| Azjherben:
I don't get the message though..... --- Code: ---//--- OBJECT WRITE BEGIN --- new GuiControl(Joincit) { profile = "GuiDefaultProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "0 0"; extent = "640 480"; minExtent = "8 2"; visible = "1"; new GuiWindowCtrl() { profile = "GuiWindowProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "112 184"; extent = "96 98"; minExtent = "8 2"; visible = "1"; maxLength = "255"; resizeWidth = "1"; resizeHeight = "1"; canMove = "1"; canClose = "1"; canMinimize = "1"; canMaximize = "1"; minSize = "50 50"; new GuiBitmapButtonCtrl() { profile = "GuiDefaultProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "17 46"; extent = "60 28"; minExtent = "8 2"; visible = "1"; text = " Join us!"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "base/client/ui/button1"; lockAspectRatio = "0"; alignLeft = "0"; overflowImage = "0"; mKeepCached = "0"; mColor = "255 255 255 255"; }; }; }; //--- OBJECT WRITE END --- function pushtestgui(%Gui) { %Gui = canvas.pushDialog(Joincit); } --- End code --- |
| AGlass0fMilk:
You never set a command for the button. On the GUI creator screen, there's a field called "Command" you fill that in with a command, for example: testbutton(); That could be your command and then you would put this in the client.cs: --- Code: ---function testbutton() { messageboxOk("Test","Thanks for pushing the test GUI button!"); } --- End code --- Or something like that. Re-read the creating part of the Tutorial, I haven't read through this in a while. |
| Navigation |
| Message Index |
| Next page |
| Previous page |