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 _OnClose(self):
     SE_BaseClassCore._OnClose(self)
     self.Load = None
     self.celldata = None
     self.sr.lines = None
     self.sr.overlays = None
     self.sr.entries = None
示例#3
0
 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
示例#4
0
文件: main.py 项目: connoryang/1v1dec
 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
示例#5
0
 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)
示例#6
0
文件: main.py 项目: connoryang/1v1dec
 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()
示例#8
0
文件: item.py 项目: connoryang/1v1dec
 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))
示例#9
0
 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)
示例#12
0
文件: item.py 项目: connoryang/1v1dec
 def ConstructHiliteFill(self):
     SE_BaseClassCore.ConstructHiliteFill(self)
     self.UpdateHiliteFillColor()
示例#13
0
 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()
示例#15
0
 def OnMouseEnter(self, *args):
     if self.onMouseEntyerThread is None:
         SE_BaseClassCore.OnMouseEnter(self, *args)
         self.onMouseEntyerThread = AutoTimer(10, self.MonitorMouseOver)
示例#16
0
 def KillHilite(self):
     SE_BaseClassCore.OnMouseExit(self)
     self.onMouseEntyerThread = None
示例#17
0
 def OnMouseExit(self, *args):
     SE_BaseClassCore.OnMouseExit(self, *args)
     self.checkbox.OnMouseExit(*args)
示例#18
0
 def OnMouseEnter(self, *args):
     SE_BaseClassCore.OnMouseEnter(self, *args)
     if self.sr.node:
         eve.Message('ListEntryEnter')
示例#19
0
 def ConstructHiliteFill(self):
     """
     Nasty hack needed because of screwed up inheritance
     """
     SE_BaseClassCore.ConstructHiliteFill(self)
     self.UpdateHiliteFillColor()
示例#20
0
 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)
示例#21
0
文件: item.py 项目: connoryang/1v1dec
 def OnMouseExit(self, *args):
     SE_BaseClassCore.OnMouseExit(self, *args)
     if getattr(self, 'Draggable_dragging', 0):
         return
     TryGhostFitItemOnMouseAction(None)
示例#22
0
 def OnMouseEnter(self, *args):
     if not sm.GetService('skills').HasSkill(self.rec.typeID):
         return
     SE_BaseClassCore.OnMouseEnter(self, *args)
示例#23
0
 def OnMouseExit(self, *args):
     SE_BaseClassCore.OnMouseExit(self, *args)
     sm.ScatterEvent('OnProbeScanner_ProbeEntryMouseExit',
                     self.sr.node.probeID)