I've seen a
lot of people doing this lately, and I wanted to let them know that it should be done differently in nearly all cases.
Rather than naming your GUI windows (and other controls) such as
PHP Code:
new GuiWindowCtrl("Window") {
// whatever
}
put part of the thing you're creating it in
PHP Code:
new GuiWindowCtrl("JailInformation_Window") {
// whatever
}
The reason this matters is because if you name your buttons things like "Button1" and "Close", which I've seen a lot of people doing, any script that has
PHP Code:
function Button1.onAction() {
triggerserver("gui", name, "summonAllPlayers");
}
or any other function having to do with that button would be called, not just the script that created it.
Lesson's over, thanks for reading.