| Blockland Forums > Modification Help |
| I need help script for gui. |
| (1/4) > >> |
| Cubelands:
I made gui myself. how I can write script when player click disagree and force leave the server and player click agree the box close then continue play. --- Code: --- //--- OBJECT WRITE BEGIN --- new GuiControl(MessageBoxAgreeDisagreeDlg) { profile = "GuiDefaultProfile"; horizSizing = "width"; vertSizing = "height"; position = "0 0"; extent = "640 480"; minExtent = "8 8"; visible = "1"; new GuiWindowCtrl(MBAgreeDisagreeFrame) { profile = "BlockWindowProfile"; horizSizing = "center"; vertSizing = "center"; position = "172 113"; extent = "295 254"; minExtent = "48 92"; visible = "1"; maxLength = "255"; resizeWidth = "0"; resizeHeight = "0"; canMove = "1"; canClose = "0"; canMinimize = "0"; canMaximize = "0"; minSize = "50 50"; new GuiMLTextCtrl(MBAgreeDisagreeText) { profile = "GuiDefaultProfile"; horizSizing = "center"; vertSizing = "bottom"; position = "27 40"; extent = "236 126"; minExtent = "8 8"; visible = "1"; lineSpacing = "2"; allowColorChars = "0"; maxChars = "-1"; maxBitmapHeight = "-1"; selectable = "1"; }; new GuiBitmapButtonCtrl() { profile = "BlockButtonProfile"; horizSizing = "center"; vertSizing = "top"; position = "198 208"; extent = "91 38"; minExtent = "8 2"; visible = "1"; command = "MessageCallback(MessageBoxAgreeDisagreeDlg,MessageBoxAgreeDisagreeDlg.callback);"; accelerator = "enter"; text = "Disagree"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "base/client/ui/button2"; lockAspectRatio = "0"; alignLeft = "0"; overflowImage = "0"; mKeepCached = "0"; mColor = "255 255 255 255"; }; new GuiBitmapButtonCtrl() { profile = "BlockButtonProfile"; horizSizing = "left"; vertSizing = "top"; position = "8 209"; extent = "91 38"; minExtent = "8 2"; visible = "1"; command = "MessageCallback(MessageBoxAgreeDisagreeDlg,MessageBoxAgreeDisagreeDlg.cancelCallback);"; accelerator = "escape"; text = "Agree"; groupNum = "-1"; buttonType = "PushButton"; bitmap = "base/client/ui/button2"; lockAspectRatio = "0"; alignLeft = "0"; overflowImage = "0"; mKeepCached = "0"; mColor = "255 255 255 255"; }; }; }; //--- OBJECT WRITE END --- --- End code --- |
| Chrono:
No one is going to click disagree and no one is going to download a GUI just to see a rulebox. Just use the messageBoxOK |
| Cubelands:
--- Quote from: Chrono on March 28, 2012, 03:55:47 PM ---No one is going to click disagree and no one is going to download a GUI just to see a rulebox. Just use the messageBoxOK --- End quote --- I did talked to few people said ineresting idea. You not have to download add on. |
| Kalphiter:
A person looking to break rules will just click agree. |
| Chrono:
--- Quote from: Cubelands on March 28, 2012, 04:10:18 PM ---I did talked to few people said ineresting idea. You not have to download add on. --- End quote --- If you don't download it then you wont see the rules. |
| Navigation |
| Message Index |
| Next page |