![]() |
My first Crack at GUI
I thought about making this for a while but never got around to doing it but here it is. Its simple, but it works.
PHP Code:
|
Ideally use clientWidth and clientHeight (or width and height if not using clientRelative) for setting the dimensions of objects (edit: just noticed you used it for the window but not the buttons; consistency is key, and make sure to give the buttons a height).
If you're interested in improving the script, look into using catchEvent to avoid duplicated code and to greatly simplify your script. |
Tip: You can center a GUI when it's created by setting it's X and Y like this:
PHP Code:
You can also use a for-each loop and catchevent to remove the redundant button code. PHP Code:
|
This is already created, you just edited it, to keep the newer servers.
|
Quote:
Maybe, Emera, if you would spend your time learning instead of ripping off other people (which doesn't help you much anyways, the way you have been going), you would be able to actually learn to script... |
I made it myself using the gui editor so stop pointing fingers please. You are just out to spot my errors astram.
|
Quote:
|
Why is that? Sorry :(
|
It's cool and awesome of course, but lacks certain things that only coding can do. Try learning actual GUI script, wiki does have decent documentation on most GUI features, thankfully. If you learn how to GUI script, many light bulbs will click for you and you will be surprised at how many new ideas you can/will come up with, both GUI and other kinds scripts.
|
Quote:
|
Oops
Oh ok. Thanks:noob:
|
Quote:
I like them ^.^; Apparently I still have a few oddities in them like canMove not allowing something to move, and passing numbers via text with this. or thiso. but they are still neat to create.. I need to understand all of the types you can use in GUI; I've only used textbox, pulldown, slider, buttons, tabs and 1-2 other things so far.. I'd like to create my own tutorial which should be more helpful, but in the mean time this is what has helped me for the basics. http://forums.delteria.com/topic/1666-gui-tutorial/ |
Thanks for this Devil_lord
|
| All times are GMT +2. The time now is 07:48 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.