def _OnClose(self): SE_BaseClassCore._OnClose(self) self.Load = None self.celldata = None self.sr.lines = None self.sr.overlays = None self.sr.entries = None
def ApplyAttributes(self, attributes): SE_BaseClassCore.ApplyAttributes(self, attributes) left = Container(parent=self, align=uiconst.TOLEFT_PROP, width=0.5) right = Container(parent=self, align=uiconst.TOALL) self.label = Label(parent=left) self.value = Label(parent=right, autoUpdate=True) self.GetValue = None
def ApplyAttributes(self, attributes): SE_BaseClassCore.ApplyAttributes(self, attributes) cnt = Container(parent=self, pos=(0, 0, 0, 0), state=uiconst.UI_PICKCHILDREN) self._label = Label(parent=cnt, state=uiconst.UI_DISABLED, align=uiconst.CENTERLEFT, color=(1.0, 1.0, 1.0, 0.75)) self._valueContainer = Container(parent=cnt, state=uiconst.UI_PICKCHILDREN, align=uiconst.TOALL, padLeft=VALUEOFFSET) self._hilite = Fill(bgParent=self, color=(1, 1, 1, 0.125), state=uiconst.UI_HIDDEN) self._mainContainer = cnt
def OnMouseExit(self, *args): SE_BaseClassCore.OnMouseExit(self, *args) if getattr(self, 'Draggable_dragging', 0): return wnd = FittingWindow.GetIfOpen() if wnd is not None: wnd.HiliteFitting(None)
def ApplyAttributes(self, attributes): SE_BaseClassCore.ApplyAttributes(self, attributes) self._expandIcon = Sprite(parent=self, align=uiconst.CENTERLEFT, pos=(0, 0, 18, 18)) self._expandIcon.OnClick = self.ExpandUIObject self._label = Label(parent=self, state=uiconst.UI_DISABLED, align=uiconst.CENTERLEFT, left=20, color=(1.0, 1.0, 1.0, 1)) self._pickHilite = Frame(name='_pickHilite', bgParent=self, texturePath=RESROOT + 'hiliteBackground.png', color=(0, 1, 0, 0.3), state=uiconst.UI_HIDDEN) self._hilite = Fill(name='_hilite', bgParent=self, color=(1, 1, 1, 0.125), state=uiconst.UI_HIDDEN) self.loaded = False
def ApplyAttributes(self, attributes): SE_BaseClassCore.ApplyAttributes(self, attributes) self.node = self.sr.node = attributes.node if not self.node.Get('hideLines', None): Line(align=uiconst.TOBOTTOM, parent=self, color=uiconst.ENTRY_LINE_COLOR) if self.node.selected: self.Select()
def OnMouseEnter(self, *args): if uicore.uilib.leftbtn: return SE_BaseClassCore.OnMouseEnter(self, *args) self.sr.hint = '' if getattr(self, 'rec', None): TryGhostFitItemOnMouseAction(self.rec) if self.sr.node and self.sr.node.viewMode == 'icons': self.sr.hint = '%s%s' % ( [uix.GetItemQty(self.sr.node, 'ln') + ' - ', ''][bool( self.rec.singleton)], uix.GetItemName(self.sr.node.item, self.sr.node))
def OnMouseEnter(self, *args): if uicore.uilib.leftbtn: return SE_BaseClassCore.OnMouseEnter(self, *args) self.sr.hint = '' wnd = FittingWindow.GetIfOpen() if wnd is not None: if getattr(self, 'rec', None): wnd.HiliteFitting(self.rec) if self.sr.node and self.sr.node.viewMode == 'icons': self.sr.hint = '%s%s' % ( [uix.GetItemQty(self.sr.node, 'ln') + ' - ', ''][bool( self.rec.singleton)], uix.GetItemName(self.sr.node.item, self.sr.node))
def ApplyAttributes(self, attributes): SE_BaseClassCore.ApplyAttributes(self, attributes) ParserBase.Prepare(self) self.sr.selfProxy = _weakref.proxy(self) self.htmldebug = 0 self.xmargin = 0 self.sr.entries = [] self.sr.overlays = [] self.sr.overlays_content = Container(name='overlays', parent=self, padding=(1, 1, 1, 1)) self.sr.content = Container(name='content', parent=self) self.sr.underlays_content = Container(name='underlays_content', parent=self, padding=(1, 1, 1, 1)) self.sr.background = Container(name='background', parent=self) self.sr.backgroundColorContainer = Container( name='backgroundColorContainer', parent=self) browser = GetBrowser(self) self.sr.browser = browser
def OnMouseUp(self, *args): SE_BaseClassCore.OnMouseUp(self, *args) if self.node.Get('OnMouseUp', None): self.node.OnMouseUp(self)
def ConstructHiliteFill(self): SE_BaseClassCore.ConstructHiliteFill(self) self.UpdateHiliteFillColor()
def OnMouseEnter(self, *args): if self.rec.itemID is None: return SE_BaseClassCore.OnMouseEnter(self, *args)
def ApplyAttributes(self, attributes): SE_BaseClassCore.ApplyAttributes(self, attributes) self.node = self.sr.node = attributes.node if self.node.selected: self.Select()
def OnMouseEnter(self, *args): if self.onMouseEntyerThread is None: SE_BaseClassCore.OnMouseEnter(self, *args) self.onMouseEntyerThread = AutoTimer(10, self.MonitorMouseOver)
def KillHilite(self): SE_BaseClassCore.OnMouseExit(self) self.onMouseEntyerThread = None
def OnMouseExit(self, *args): SE_BaseClassCore.OnMouseExit(self, *args) self.checkbox.OnMouseExit(*args)
def OnMouseEnter(self, *args): SE_BaseClassCore.OnMouseEnter(self, *args) if self.sr.node: eve.Message('ListEntryEnter')
def ConstructHiliteFill(self): """ Nasty hack needed because of screwed up inheritance """ SE_BaseClassCore.ConstructHiliteFill(self) self.UpdateHiliteFillColor()
def OnMouseDown(self, *args): SE_BaseClassCore.OnMouseDown(self, *args) if self.sr.node and self.sr.node.Get('OnMouseDown', None): self.sr.node.OnMouseDown(self)
def OnMouseExit(self, *args): SE_BaseClassCore.OnMouseExit(self, *args) if getattr(self, 'Draggable_dragging', 0): return TryGhostFitItemOnMouseAction(None)
def OnMouseEnter(self, *args): if not sm.GetService('skills').HasSkill(self.rec.typeID): return SE_BaseClassCore.OnMouseEnter(self, *args)
def OnMouseExit(self, *args): SE_BaseClassCore.OnMouseExit(self, *args) sm.ScatterEvent('OnProbeScanner_ProbeEntryMouseExit', self.sr.node.probeID)