Quote:
Originally Posted by fowlplay4
I normally name the GuiWindowCtrl's or GuiBitmapBorderCtrl's after the main title for it.
I.e: JailInformation instead of JailInformation_Window
But everything below that uses your naming convention.
I.e Close button: JailInformation_Close
|
The reason I would add the _Window is so I can, for example, close all those windows.
PHP Code:
for (temp.control : GraalControl.controls) {
if (control.name.starts("JailInformation_")) {
control.destroy();
}
}
without picking up JailInformation2_Window or whatever for a completely different window.
I see what you mean, though.
Quote:
Originally Posted by Chompy
Personal preference.
|
It's not really personal preference. If you name all your windows "Window", you're going to have problems.