![]() |
Server Select GUI
1 Attachment(s)
I've been trying to teach myself some GS2 and I thought GUI scripting would be an easy place to start. So i messed around with some GUI Controls and come up with this.
PHP Code:
|
Cool :)
|
Nice. For future note, completed scripts to share go in the Code Gallery.
|
I really hate your styling, but good job :)
|
Quote:
Quote:
|
Quote:
I recommend the Java style guidelines at Sun's Java site, apart from the java/javadoc specific stuff. |
There doesn't really seem to be any "styling". It's inconsistent throughout the script.
I recommend picking up a form of styling as soon as you can, otherwise you're going to have to start later, which is a pain. |
Not to mention styling helps you out when you're scripting. It's a lot easier to know where a function starts and ends, what's part of a function, what's part of this if statement and not that one... so on and so forth. You a lot less likely to make errors and get lost in your own script.
And if you ever need help, it'll be a lot easier for the helper when they can understand it because of good styling. |
cool, but try using a loop :)
|
I'm surprised that this doesn't produce an error. I've never seen functions declared like so:
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 04:03 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.