def handleSelection(core, owner, target, option): suiSvc = NGECore().getInstance().suiService # Create Guild if option == 185 and target: wndGuildCreate = core.suiService.createInputBox(InputBoxType.INPUT_BOX_OK_CANCEL, '@guild:create_name_title', '@guild:create_name_prompt', owner, owner, 0, handleGuildCreateName) wndGuildCreate.setProperty("txtInput:MaxLength", "24"); wndGuildCreate.setProperty("txtInput:NumericInteger", "false") suiSvc.openSUIWindow(wndGuildCreate) return return
def handleGuildCreateName(owner, window, eventType, returnList): suiSvc = NGECore().getInstance().suiService if eventType == 0: guildName = str(returnList.get(0)) if guildName is not None: owner.setAttachment('guildName', guildName) wndGuildInitials = NGECore().getInstance().suiService.createInputBox(InputBoxType.INPUT_BOX_OK, '@guild:create_abbrev_title', '@guild:create_abbrev_prompt', owner, owner, 0, doGuildCreate) wndGuildInitials.setProperty("txtInput:MaxLength", "4"); wndGuildInitials.setProperty("txtInput:NumericInteger", "false") suiSvc.openSUIWindow(wndGuildInitials) return return