def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.main = ContainerAutoSize(parent=self.sr.main, name='main', padding=3, state=uiconst.UI_PICKCHILDREN, align=uiconst.TOTOP, alignMode=uiconst.TOTOP) self.planetUISvc = sm.GetService('planetUI') self.planetSvc = sm.GetService('planetSvc') self.pin = attributes.Get('pin', None) self.uiEffects = uicls.UIEffects() self.showingActionContainer = False self.currentRoute = None self.showNext = None self.lastCalled = None self.commodityToRoute = None self.buttonTextValue = '' infoCont = Container(parent=self.main, name='infoCont', padding=5, align=uiconst.TOTOP, height=self.INFO_CONT_HEIGHT) self.infoContLeft = Container(name='leftCol', parent=infoCont, align=uiconst.TOLEFT_PROP, width=0.5) self.infoContRight = Container(name='rightCol', parent=infoCont, align=uiconst.TOLEFT_PROP, width=0.5) self._GetInfoCont() self._UpdateInfoCont() self.buttonCont = GridContainer(parent=self.main, name='buttonCont', height=40, align=uiconst.TOTOP, padding=(-1, 0, -1, 0)) BumpedUnderlay(bgParent=self.buttonCont) self.buttonCont.lines = 1 self.buttonCont.columns = 6 self.buttonTextCont = self._DrawAlignTopCont(22, 'buttonTextCont') self.buttonText = EveLabelSmall(parent=self.buttonTextCont, align=uiconst.CENTER, color=(1.0, 1.0, 1.0, 1.0), state=uiconst.UI_NORMAL) self.buttonTextCont.height = max(22, self.buttonText.textheight) self.actionCont = Container(parent=self.sr.main, name='actionCont', padding=(6, 0, 6, 6), clipChildren=True) self.SetCaption(self._GetPinName()) self.main.SetSizeAutomatically() self.height = self.GetBaseHeight() self.LoadActionButtons(self._GetActionButtons()) uicore.animations.FadeTo(self, 0.0, 1.0, duration=0.3) self.updateInfoContTimer = base.AutoTimer(100, self._UpdateInfoCont) sm.GetService('audio').SendUIEvent( 'wise:/msg_pi_pininteraction_open_play') self.ResizeActionCont(None)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) mainArea = self.GetMainArea() mainArea.padding = 6 self._selectedObject = None self.SetTopparentHeight(0) self._infoContainer = Container(parent=mainArea, align=uiconst.TOTOP, height=72) self.searchInput = SinglelineEdit(parent=self._infoContainer, align=uiconst.BOTTOMRIGHT, left=4, top=8, width=100, OnChange=self.OnSearchInputChange, hinttext='Search') self.searchInput.SetHistoryVisibility(False) self.searchInput.ShowClearButton() m = UtilMenu(menuAlign=uiconst.TOPRIGHT, parent=self._infoContainer, align=uiconst.TOPRIGHT, GetUtilMenu=self.SettingMenu) self._infoLabel = Label(parent=self._infoContainer, state=uiconst.UI_DISABLED, color=(1.0, 1.0, 1.0, 0.75), left=2) self.searchResultParent = ContainerAutoSize(parent=mainArea, align=uiconst.TOTOP_NOPUSH, padding=(26, -6, 4, 0), bgColor=(0.5, 0.5, 0.5, 1)) self.attributeScroll = Scroll(parent=mainArea, align=uiconst.TOBOTTOM, name='attributeScroll') self.attributeScroll.height = min(self.height / 2, max(72, settings.user.ui.Get('uitree_attributeScroll_height', 200))) settings.user.ui.Set('uitree_attributeScroll_height', self.attributeScroll.height) self.divider = Divider(align=uiconst.TOBOTTOM, parent=mainArea, height=11, state=uiconst.UI_NORMAL) self.divider.OnChange_ = self.OnDividerMove self.divider.OnChangeStart_ = self.OnDividerMoveStart Fill(parent=self.divider, align=uiconst.CENTER, pos=(0, 0, 20, 1)) self.scroll = Scroll(parent=mainArea, name='treeScroll') self._hiliteFrame = Fill(parent=uicore.desktop, align=uiconst.ABSOLUTE, color=(0, 1, 0, 0.3), idx=0, state=uiconst.UI_DISABLED) self._selectedFrame = Frame(parent=uicore.desktop, align=uiconst.ABSOLUTE, color=(0, 1, 0, 0.3), idx=0, state=uiconst.UI_DISABLED) self.ReloadUIRoots() uthread.new(self.UpdateInfo) self._keyDownCookie = uicore.uilib.RegisterForTriuiEvents([uiconst.UI_KEYDOWN], self.OnGlobalKeyDown)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) sm.RegisterNotify(self) self.SetTopparentHeight(0) mainCont = Container(name='mainCont', parent=self.sr.main, padding=const.defaultPadding) buttonCont = Container(name='buttonCont', parent=mainCont, align=uiconst.TOBOTTOM, height=26) scrollCont = Container(name='scrollCont', parent=mainCont) self.planetScroll = Scroll(name='planetsScroll', parent=scrollCont) self.planetScroll.multiSelect = False self.planetScroll.sr.id = 'planetscroll' self.planetScroll.OnSelectionChange = self.OnPlanetScrollSelectionChange self.planetClickID = None scrolllist, headers = self.GetPlanetScrollList() noCommandBuiltLabel = GetByLabel( 'UI/ScienceAndIndustry/ScienceAndIndustryWindow/NoCommandCenterBuilt' ) self.planetScroll.Load(contentList=scrolllist, headers=headers, noContentHint=noCommandBuiltLabel) viewPlanetLabel = GetByLabel( 'UI/ScienceAndIndustry/ScienceAndIndustryWindow/ViewPlanet') buttons = ButtonGroup(btns=[[viewPlanetLabel, self.ViewPlanet, ()]], parent=buttonCont, idx=0) viewPlanetLabel = GetByLabel( 'UI/ScienceAndIndustry/ScienceAndIndustryWindow/ViewPlanet') self.viewPlanetBtn = buttons.GetBtnByLabel(viewPlanetLabel) self.viewPlanetBtn.Disable()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.itemID = attributes.itemID self.typeID = attributes.typeID self.nameFilter = None self.stateManager = sm.GetService('godma').GetStateManager() self.SetCaption('Attribute Inspector') self.SetWndIcon(None) self.SetTopparentHeight(0) main = Container(name='main', parent=uiutil.GetChild(self, 'main'), pos=(const.defaultPadding, const.defaultPadding, const.defaultPadding, const.defaultPadding)) top = Container(name='top', parent=main, height=20, align=uiconst.TOTOP) Button(parent=top, label='Refresh', align=uiconst.TORIGHT, func=self.Refresh) self.input = SinglelineEdit(name='itemID', parent=top, width=-1, height=-1, align=uiconst.TOALL) self.input.readonly = not eve.session.role & ROLE_GMH self.input.OnReturn = self.Refresh self.input.SetValue(str(self.itemID)) Container(name='div', parent=main, height=5, align=uiconst.TOTOP) self.scroll = Scroll(parent=main) self.Refresh()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) achievementSvc = sm.GetService('achievementSvc') isCharacterListening = sm.RemoteSvc( 'achievementTrackerMgr').IsCharacterIsListening(session.charid) if isCharacterListening: text = 'This character is listening for broadcasted opportunity changes' else: text = 'This character is <color=red><b>NOT</b></color> listening for broadcasted opportunity changes' EveLabelMedium(parent=self.sr.main, name='listeningLabel', text=text, align=uiconst.TOTOP, padding=(10, 4, 10, 4)) maintabs = TabGroup(name='tabparent', align=uiconst.TOTOP, height=18, parent=self.sr.main) self.mainContainer = AchievementMainContainer( align=uiconst.TOALL, parent=self.sr.main, padding=const.defaultPadding) self.conditionsCont = ConditionsContainer(align=uiconst.TOALL, parent=self.sr.main, padding=const.defaultPadding) tabs = [[ 'Achievements', None, self, 'achievements', self.mainContainer ], ['Conditions', None, self, 'conditions', self.conditionsCont]] maintabs.Startup(tabs, groupID='achievements', autoselecttab=True) self.initData()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.browserMyStructures = None self.tabs = None self.SetWndIcon(self.iconNum, mainTop=-8) WndCaptionLabel(text=GetByLabel('UI/Structures/Browser/StructureBrowser'), subcaption=GetByLabel('UI/StructureBrowser/Delayed5Minutes'), parent=self.sr.topParent, align=uiconst.RELATIVE) self.controller = sm.GetService('structureControllers').GetStructureBrowserController() self.browserCont = Container(name='browserCont', parent=self.sr.main, padding=4) self.browserAllStructures = BrowserAllStructures(parent=self.browserCont, structureBrowserController=self.controller, padTop=4) if session.corprole & const.corpRoleStationManager: self.browserMyStructures = BrowserMyCorpStructures(parent=self.browserCont, padTop=4, structureBrowserController=self.controller) tabs = ((GetByLabel('UI/Structures/Browser/AllStructures'), self.browserAllStructures, None, 'allStructures', None, GetByLabel('UI/StructureBrowser/TabAllStructures')), (GetByLabel('UI/Structures/Browser/MyStructures'), self.browserMyStructures, None, 'myStructures', None, GetByLabel('UI/StructureBrowser/TabMyStructures'))) self.tabs = TabGroup(parent=self.browserCont, tabs=tabs, height=26, labelPadding=12, idx=0, padLeft=0, groupID='StructureBrowser') else: self.browserAllStructures.LoadPanel()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) settingCont = Container(parent=self.sr.main, name='settingCont', align=uiconst.TOTOP, height=60) isCharacterListening = sm.RemoteSvc('achievementTrackerMgr').IsCharacterIsListening(session.charid) if isCharacterListening: text = 'This character is listening for broadcasted opportunity changes' else: text = 'This character is <color=red><b>NOT</b></color> listening for broadcasted opportunity changes' listendingLabel = EveLabelMedium(parent=settingCont, name='listendingLabel', text=text, align=uiconst.TOTOP, padLeft=10) showOpportunities = settings.user.ui.Get('opportunities_showTemp', False) cb = Checkbox(text='Show in info panel', parent=settingCont, configName='opportunities_showTemp', checked=showOpportunities, callback=self.CheckBoxChange, prefstype=('user', 'ui'), align=uiconst.TOTOP, padding=(9, 4, 0, 0)) self.mainContainer = AchievementMainContainer(align=uiconst.TOALL, parent=self.sr.main) self.conditionsCont = ConditionsContainer(align=uiconst.TOALL, parent=self.sr.main) self.groupCont = GroupContainer(align=uiconst.TOALL, parent=self.sr.main) tabs = [['Achievements', None, self, 'achievements', self.mainContainer], ['Conditions', None, self, 'conditions', self.conditionsCont], ['AchievementGroup', None, self, 'groups', self.groupCont]] maintabs = TabGroup(name='tabparent', align=uiconst.TOTOP, height=18, parent=self.sr.main, idx=1, tabs=tabs, groupID='achievements', autoselecttab=True) self.initData()
def ApplyAttributes(self, attributes): self.viewState = sm.GetService('viewState') self.scope = 'station' self.userType = settings.user.ui.Get('guestCondensedUserList', False) self._SetDefaultMinSize() Window.ApplyAttributes(self, attributes) self.controller = attributes.controller self.SetGuestEntryType() self.guestScroll = None self.SetWndIcon(None) self.HideHeader() self.MakeUnKillable() self.MakeUnstackable() self.SetTopparentHeight(0) self.sr.main.clipChildren = True self.BuildTopSection() self._AddStationServices() btnGroup = self._AddPanelToggleBtnCont() self._AddGuestPanel() self._AddAgentPanel() self._AddOfficePanel() self._AddToggleBtns() activePanel = settings.user.ui.Get('stationsLobbyTabs', AGENTSPANEL) if settings.char.windows.Get('dockshipsanditems', 0): self._AddInventoryPanel(btnGroup) elif activePanel == INVENTORYPANEL: activePanel = AGENTSPANEL btnGroup.SelectByID(activePanel) self._SetCorrectViewState() self.LoadOwnerInfo() self.LoadServiceButtons() if self.destroyed: return sm.RegisterNotify(self) self.UpdateGuestTabText()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.MakeUnResizeable() self.controller = attributes.controller self.btnGroup = ButtonGroup(parent=self.sr.main, idx=0, line=True) self.btnGroup.AddButton(GetByLabel(self.confirmLabelPath), self.OnConfirmClicked) self.btnGroup.AddButton(GetByLabel('UI/Commands/Cancel'), self.Cancel) self.groupNameField = SinglelineEdit(parent=self.sr.main, align=uiconst.TOTOP, label=GetByLabel( self.nameLabelPath), padding=4, top=10, maxLength=30) EveLabelSmall(name='titleHeader', parent=self.sr.main, text=GetByLabel(self.descriptionLabelPath), align=uiconst.TOTOP, top=6, padLeft=4) self.groupDescField = EditPlainText(parent=self.sr.main, padding=(4, 0, 4, 4), maxLength=200) self.PopulateFields()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.oldCamID = None self.mainCont = Container(parent=self.sr.main, padding=5) Button(parent=self.mainCont, align=uiconst.TOTOP, label='Toggle Debug Camera', func=self.ToggleDebugCam, hint=BUTTONHINT) self.atLabel = Label(parent=self.mainCont, align=uiconst.TOTOP) stateCont = Container(parent=self.mainCont, align=uiconst.TOTOP, height=20, padTop=5) self.orbitLabel = StateCont(parent=stateCont, align=uiconst.TOLEFT, text='ORBIT', padRight=2) self.zoomLabel = StateCont(parent=stateCont, align=uiconst.TOLEFT, text='ZOOM', padRight=2) self.fovZoomLabel = StateCont(parent=stateCont, align=uiconst.TOLEFT, text='FOVZOOM', padRight=2) self.panLabel = StateCont(parent=stateCont, align=uiconst.TOLEFT, text='PAN', padRight=2) self.rotateLabel = StateCont(parent=stateCont, align=uiconst.TOLEFT, text='ROTATE', padRight=2) uthread.new(self.Update)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.sr.main.clipChildren = True self.MakeUnMinimizable() self.HideHeader() descText = attributes.missingText self.faildToLoadInfo = attributes.faildToLoadInfo title = GetByLabel('UI/Common/Information') caption = EveCaptionLarge(text=title, align=uiconst.CENTERLEFT, parent=self.sr.topParent, left=64, width=270) self.SetTopparentHeight(max(56, caption.textheight + 16)) self.SetWndIcon('res:/ui/Texture/WindowIcons/info.png') descLabel = EveLabelMedium(parent=self.sr.main, text=descText, align=uiconst.TOTOP, padding=(11, 11, defaultPadding, defaultPadding)) buttonGroup = ButtonGroup(parent=self.sr.main, unisize=1, idx=0) buyAllBtn = buttonGroup.AddButton( GetByLabel('UI/Market/MarketQuote/BuyAll'), self.BuyAll) closeBtn = buttonGroup.AddButton(GetByLabel('/Carbon/UI/Common/Close'), self.Close) if session.role & ROLE_GMH == ROLE_GMH: buttonGroup.AddButton('GM: Give all', self.GiveAllGM) self.typeScroll = Scroll(name='typeScroll', parent=self.sr.main, padding=(defaultPadding, 0, defaultPadding, 0)) self.LoadTypes(self.faildToLoadInfo)
def ApplyAttributes(self, attributes): self._ready = False self.detailsWindow = None Window.ApplyAttributes(self, attributes) self.SetTopparentHeight(8) self.settingsContainer = Container(parent=self.sr.main, align=uiconst.TOTOP, height=16, padding=8) self.filterEdit = SinglelineEdit(parent=self.settingsContainer, align=uiconst.TOLEFT, width=150, label='Filter:', OnReturn=self.PopulateScroll) Button(parent=self.settingsContainer, label='Reset', align=uiconst.TORIGHT, func=self.Reset, padRight=8) Button(parent=self.settingsContainer, label='Refresh', align=uiconst.TORIGHT, func=self.PopulateScroll, padRight=8) self.scroll = Scroll(parent=self.sr.main, id='pythonobjectscroll', align=uiconst.TOALL) self.Reset() self._ready = True
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.SetWndIcon(fullPath='res:/UI/Texture/icons/38_16_224.png', mainTop=-8) self.sr.clippedIcon = Sprite( parent=self.sr.iconClipper, name='windowIcon', pos=(-22, -36, 150, 150), texturePath='res:/ui/Texture/WindowIcons/help.png', opacity=0.1) self.SetTopparentHeight(0) termID = attributes.termID self.history = HistoryBuffer() self.headerCont = Container(name='headerCont', parent=self.sr.main, align=uiconst.TOTOP, height=70) categories = GetCategories() self.podGuideNavigation = PodGuideNavigation( name='podGuideNavigation', parent=self.headerCont, align=uiconst.TOALL, categories=categories, callback=self.LoadPanelByID) self.CustomizeHeader() self.contentCont = ScrollContainer(name='contentCont', parent=self.sr.main, align=uiconst.TOALL, padding=4) self.SetupContentPanel() self.InitializeData() if termID: self.LoadPanelByID(termID)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.MakeUnMinimizable() self.MakeUnpinable() self.MakeUnstackable() mainArea = self.GetMainArea() mainArea.clipChildren = True self.isFadingOut = False leftSide = Container(parent=mainArea, align=uiconst.TOLEFT, width=AURA_SIZE * 0.8) auraSprite = Sprite( parent=leftSide, texturePath='res:/UI/Texture/classes/achievements/auraAlpha.png', pos=(0, -4, AURA_SIZE, AURA_SIZE), align=uiconst.CENTERTOP) self.mainContent = ContainerAutoSize(parent=self.GetMainArea(), align=uiconst.TOTOP, alignMode=uiconst.TOTOP, padding=(0, 6, 10, 10)) self.opacity = 0.0 self.fadeoutState = FADE_STATE_OUT self.sizeTimer = AutoTimer(10, self.UpdateWindowSize) if not settings.char.ui.Get('opportunities_aura_introduced', False): settings.char.ui.Set('opportunities_aura_introduced', True) self.Step_Intro() elif attributes.loadAchievementTask: self.Step_TaskInfo_Manual(attributes.loadAchievementTask, attributes.loadAchievementGroup) else: self.UpdateOpportunityState()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) mainArea = self.GetMainArea() mainArea.clipChildren = True infoContainer = Container(parent=mainArea, align=uiconst.TOLEFT_NOPUSH, width=260, padding=6) if not SLOT_SHOW_MOUSEOVER_INFO: self.activeInfo = ActiveAchievementInfo( parent=infoContainer, achievementGroupID=sm.GetService( 'achievementSvc').GetActiveAchievementGroupID()) self.legendInfo = AchievementTreeLegend(parent=mainArea, align=uiconst.BOTTOMRIGHT, left=10, top=10) treeClipper = Container(parent=mainArea, padding=4, clipChildren=True) self.achievementTree = AchievementTree(parent=treeClipper, align=uiconst.CENTER, left=110, top=-10) connections = set() for i, achievementGroup in enumerate(achievementGroups): column, row = achievementGroup.treePosition self.achievementTree.AddSlot(column, row, achievementGroup.groupID) for groupID1, groupID2 in connections: self.achievementTree.AddConnection(groupID1, groupID2) self.achievementTree.UpdateTreePositions() self.achievementTree.UpdateTreeState() sm.RegisterNotify(self)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.SetTopparentHeight(0) self.preSelectedItems = attributes.selectedItems self.outputPrice = 0 self.outputItemsCount = 0 mainCont = Container(name='mainCont', parent=self.sr.main, padding=const.defaultPadding) bottomCont = Container(name='bottomCont', parent=mainCont, align=uiconst.TOBOTTOM, height=36) reprocessingCont = Container(name='reprocessingCont', parent=mainCont, align=uiconst.TOALL) inputCont = Container(name='inputCont', parent=reprocessingCont, align=uiconst.TOLEFT_PROP, width=0.48) centerCont = Container(name='centerCont', parent=reprocessingCont, align=uiconst.TOLEFT_PROP, width=0.02) outputCont = Container(name='outputCont', parent=reprocessingCont, align=uiconst.TORIGHT_PROP, width=0.48) self.inputInfoCont = ReprocessInputContainer(name='inputInfo', parent=inputCont, dropFunc=self.AddItemByDrag, removeFunc=self.RemoveItem) self.outputInfoCont = ReprocessOutputContainer(name='outputInfo', parent=outputCont) self.loadingOverlay = Container(parent=self.inputInfoCont, idx=0) Fill(bgParent=self.loadingOverlay, color=(0.0, 0.0, 0.0, 0.3)) LoadingWheel(name='loadingWheel', parent=self.loadingOverlay, align=uiconst.CENTER, width=80, height=80) self.loadingOverlay.opacity = 0.0 self.controller = CreateReprocessingWindowController(self, self.inputInfoCont, self.outputInfoCont, sm.GetService('invCache'), sm.GetService('reprocessing'), GetActiveShip) self.inputInfoCont.captionLabel.text = GetByLabel('UI/Reprocessing/ReprocessingWindow/InputMaterials') self.outputInfoCont.captionLabel.text = GetByLabel('UI/Reprocessing/ReprocessingWindow/OutputResults') btnCont = Container(name='buttonCont', parent=bottomCont, align=uiconst.TOBOTTOM, height=36, idx=0, padding=(-4, 3, -4, -2)) GradientUnderlay(bgParent=btnCont) self.reprocessButton = Button(parent=btnCont, label=GetByLabel('UI/Reprocessing/ReprocessingWindow/ReprocessButton'), func=self.ReprocessItems, align=uiconst.CENTER, fixedheight=28) self.cancelButton = Button(parent=btnCont, label=GetByLabel('UI/Common/Buttons/Cancel'), func=self.Cancel, align=uiconst.CENTERRIGHT, left=8) self.DisableReprocessButton(disable=True) if self.preSelectedItems: start_tasklet(self.AddPreselectedItems, self.preSelectedItems)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.SetWndIcon(None) self.SetCaption('Window manager') self.SetTopparentHeight(10) self.SetMinSize([360, 220]) options = [] for wndCls in Window.__subclasses__(): options.append((wndCls.__name__, wndCls)) options.sort() topCont = Container(name='params', parent=self.sr.main, align=uiconst.TOTOP, pad=(5, 5, 5, 5), pos=(0, 10, 0, 30)) self.mainCont = Container(name='params', parent=self.sr.main, align=uiconst.TOTOP, pos=(0, 0, 0, 50), padding=(5, 15, 5, 5)) self.extrasCont = Container(name='params', parent=self.sr.main, align=uiconst.TOALL, padding=(5, 15, 5, 5)) self.combo = Combo(parent=topCont, label='Select window', options=options, name='', select=settings.user.ui.Get('windowManagerOpenWindow'), callback=self.OnComboChanged, pos=(5, 0, 0, 0), width=150, align=uiconst.TOPLEFT) self.startupArgs = SinglelineEdit(name='', label='attributes', parent=topCont, setvalue='', align=uiconst.TOPLEFT, left=165, width=100) Button(parent=topCont, label='Load', align=uiconst.RELATIVE, func=self.OpenWindow, pos=(300, 0, 0, 0)) self.filenameEdit = SinglelineEdit(name='', label='Location', parent=self.mainCont, setvalue='', align=uiconst.TOTOP, top=15, readonly=True) Label(text='RELOAD', parent=self.extrasCont, top=10, state=uiconst.UI_NORMAL) Line(parent=self.extrasCont, align=uiconst.TOTOP) buttonCont = Container(name='buttonCont', parent=self.extrasCont, align=uiconst.TOTOP, pos=(0, 30, 0, 30)) Button(parent=buttonCont, label='ShipUI', align=uiconst.TOLEFT, func=self.ReloadShipUI) Button(parent=buttonCont, label='NEOCOM', align=uiconst.TOLEFT, func=self.ReloadNeocom, padLeft=1) Button(parent=buttonCont, label='Info Panels', align=uiconst.TOLEFT, func=self.ReloadInfoPanels, padLeft=1) Button(parent=buttonCont, label='Lobby', align=uiconst.TOLEFT, func=self.ReloadLobby, padLeft=1) Button(parent=buttonCont, label='Overview', align=uiconst.TOLEFT, func=self.ReloadOverview, padLeft=1) Button(parent=buttonCont, label='Mapbrowser', align=uiconst.TOLEFT, func=self.ReloadMapBrowser, padLeft=1) self.UpdateInfo(self.combo.GetKey(), self.combo.GetValue())
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.entriesByID = {} self.currClassData = None self.currSampleNum = 1 self.numSamples = 0 uthread.new(self.ConstuctLayout)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) sm.RegisterNotify(self) self.streamBtn = None self.topCont = ContainerAutoSize(name='topCont', parent=self.sr.main, align=uiconst.TOTOP, padding=(10, 10, 10, 0)) self.loginCont = Container(name='loginCont', parent=self.sr.main, align=uiconst.TOTOP, height=120, padding=5) self.settingsCont = ContainerAutoSize(name='settingsCont', parent=self.sr.main, align=uiconst.TOTOP, padding=5) self.ConstructTopCont() self.ConstructLoginCont() self.ConstructSettingsCont() self.ConstructBottomButtons() self.bottomGradient = GradientSprite(bgParent=self.btnGroup, rotation=-pi / 2, rgbData=[(0, (0.3, 0.3, 0.3))], alphaData=[(0, 0.3), (0.9, 0.0)]) self.UpdateState() self.CheckEnableStreamBtn() if bool(session.role & ROLE_PROGRAMMER): self.debugLabel = Label(parent=self.topCont, align=uiconst.TOPLEFT, top=120)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.MakeUnstackable() self.MakeUnResizeable() self.MakeUncollapseable() self.scheduleStepBuilt = False self.structureTypeID = attributes.typeID self.height = 100 self.width = self.default_width self.step = STEP_POSITION self.controller = attributes.controller self.structureDeploymentCont = StructureDeploymentCont( parent=self.sr.main, controller=self.controller, align=uiconst.TOBOTTOM, positionCallback=self.OnPositionBtnClicked, confirmCallback=self.OnConfirmBtnClicked) self.structureDeploymentCont.ChangeMouseDisplayFade(faded=False, animated=True) requiredHours = sm.GetService( 'clientDogmaIM').GetDogmaLocation().GetModifiedTypeAttribute( self.structureTypeID, const.attributeVulnerabilityRequired) self.mySchedule = structures.Schedule(required=int(requiredHours)) self.scheduleContParent = Container(parent=self.sr.main, name='scheduleContParent', padding=(10, 4, 10, 4), controller=self.controller) self.explanationCont = ContainerAutoSize(parent=self.sr.main, name='explanationCont', alignMode=uiconst.TOTOP, align=uiconst.TOTOP) self.BuildExplanationStep() self.ChangeSignalConnection()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) uicore.layer.systemmenu.FadeBGOut() uicore.layer.systemmenu.Hide() uicore.layer.inflight.Disable() mainCont = Container(name='mainCont', parent=self.sr.main, align=uiconst.CENTER, state=uiconst.UI_NORMAL, width=200, height=60) self.savedValue = gfxsettings.Get(gfxsettings.GFX_BRIGHTNESS) self.currentValue = self.savedValue self.gammaSlider = Slider(name='gammaSlider', parent=mainCont, minValue=0.5, maxValue=1.5, startValue=1.0, onsetvaluefunc=self.OnMySliderMoved, setlabelfunc=self.UpdateSliderLabel) self.gammaSlider.SetValue(self.ConvertValue(self.currentValue), True) buttonGroup = ButtonGroup(name='buttonGroup', parent=mainCont, align=uiconst.CENTERBOTTOM, buttonPadding=10) buttonGroup.AddButton( localization.GetByLabel('UI/Common/Buttons/Save'), self.Save) buttonGroup.AddButton( localization.GetByLabel('UI/SystemMenu/ResetSettings/Reset'), self.Reset) buttonGroup.AddButton( localization.GetByLabel('UI/Common/Buttons/Cancel'), self.Cancel)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.SetTopparentHeight(0) optionsContainer = Container(parent=self.sr.main, align=uiconst.TOBOTTOM, height=24, padding=4) Label(parent=optionsContainer, text='<b>Threshold:</b>', align=uiconst.TOLEFT, padLeft=10, padTop=1) for text, value in OPTIONS: isChecked = blue.logInMemory.threshold == value Checkbox(parent=optionsContainer, text=text, groupname='threshold', align=uiconst.TOLEFT, width=100, checked=isChecked, callback=self.OnLogThresholdRadioButtons, retval=value) ButtonGroup(parent=optionsContainer, line=False, btns=[['Copy', self.ExportLogInMemory, (), 51], ['Attach', self.AttachToLogServer, (), 51], ['Save', self.SaveLogsToFile, (), 51]]) self.scroll = Scroll(parent=self.sr.main, id='logviewerscroll', align=uiconst.TOALL) self.logSaveHandle = None self.PopulateScroll() blue.pyos.SetLogEchoFunction(blue.logInMemory.threshold, self._log_echo)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.CreateLocationSelector() self.CreateSecurityFilter() self.CreateShipSelector() self.CreatePasses() self.CreateButtons() self.CreateLogDisplay()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.isTesting = False self.startBtn = Button(name='self.startBtn', parent=self.sr.main, align=uiconst.CENTER, label='Start Test', func=self.OnStartBtn)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.fleetSvc = attributes.fleetSvc self.SetTopparentHeight(0) self.SetCaption( localization.GetByLabel('UI/Fleet/FleetWindow/SetupsOverview')) self.scroll = uicls.ScrollContainer(parent=self.sr.main, padding=4) self.LoadSetups()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.origin = attributes.get('origin', None) self.reason = attributes.get('reason', None) self.message = attributes.get('message', None) if self.origin not in ORIGINS: raise RuntimeError('Origin Not defined for upsell') self._LogWindowOpened() self.Layout()
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.taskMap = {} self.nodeCount = 0 self.controller = None self.mainScroll = ScrollContainer(name='myScrollCont', parent=self.sr.main, align=uiconst.TOALL, padding=(4, 4, 4, 4))
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.solarSystemID = attributes.solarSystemID self.assetWrapID = attributes.assetWrapID self.nearestNPCStationInfo = attributes.nearestNPCStationInfo self.autoDeliveryTimestamp = attributes.autoDeliveryTimestamp self.manualDeliveryTimestamp = attributes.manualDeliveryTimestamp self.Layout() uthread.new(self.ReloadContent)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) self.charID = attributes.charID self.dna = attributes.dna self.btnGroup = ButtonGroup(parent=self.sr.main, idx=0) self.btnGroup.AddButton( localization.GetByLabel('UI/Preview/ViewPortrait'), self.SwitchToPortrait, (self.charID, )) self.previewContainer = PreviewContainer(parent=self.sr.main) self.PreviewCharacter(self.charID, dna=self.dna)
def ApplyAttributes(self, attributes): Window.ApplyAttributes(self, attributes) developerMode = sm.GetService( 'notificationUIService').IsDeveloperMode() self.mainContainer = NotificationSettingsMainContainer( name='mainContainer', align=uiconst.TOALL, parent=self.GetMainArea(), parentwidth=self.default_width, developerMode=developerMode)