예제 #1
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
예제 #2
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
예제 #3
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()
 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 ApplyAttributes(self, attributes):
     SE_BaseClassCore.ApplyAttributes(self, attributes)
     self.node = self.sr.node = attributes.node
     if self.node.selected:
         self.Select()