public void init(string guiName, string guiClass) { GuiEditorGui.GuiEditor GuiEditor = "GuiEditor"; GuiTextEditCtrl nameField = this.FOT("nameField"); nameField.setValue(guiName); // Initialize the class dropdown if we haven't already. GuiPopUpMenuCtrl classDropdown = this.FOT("classDropdown"); if (classDropdown.size() == 0) { string classes = Util.enumerateConsoleClassesByCategory("Gui"); int count = Util.getFieldCount(classes); for (int i = 0; i < count; i++) { string className = Util.getField(classes, i); if (GuiEditor.isFilteredClass(className) || !Util.isMemberOfClass(className, "GuiControl")) { continue; } classDropdown.add(className, 0); } classDropdown.sort(); } classDropdown.setText("GuiControl"); }