label.py (1508B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\dynamicresources\client\ess\bracket\label.py 2 import trinity 3 from carbonui import uiconst 4 from carbonui.primitives.containerAutoSize import ContainerAutoSize 5 from eve.client.script.ui.control import eveLabel 6 7 class InSpaceLabel(ContainerAutoSize): 8 label_class = None 9 10 def __init__(self, parent, align, text = None, top = 0, left = 0, color = None, link_style = None): 11 super(InSpaceLabel, self).__init__(parent=parent, align=align, alignMode=uiconst.TOPLEFT, top=top, left=left) 12 self._label = self.label_class(parent=self, align=uiconst.TOPLEFT, text=text, bold=False, color=color or (1.0, 1.0, 1.0), linkStyle=link_style) 13 self._shadow = self.label_class(parent=self, align=uiconst.TOPLEFT, top=1, text=text, bold=False, color=(0.0, 0.0, 0.0), linkStyle=link_style) 14 self._shadow.renderObject.spriteEffect = trinity.TR2_SFX_BLUR 15 16 @property 17 def text(self): 18 return self._label.GetText() 19 20 @text.setter 21 def text(self, text): 22 self._label.text = text 23 self._shadow.text = text 24 25 @property 26 def mainLabel(self): 27 return self._label 28 29 30 class Header(InSpaceLabel): 31 label_class = eveLabel.EveCaptionLarge 32 33 34 class Notification(InSpaceLabel): 35 label_class = eveLabel.EveHeaderLarge 36 37 38 class MediumInSpaceLabel(InSpaceLabel): 39 label_class = eveLabel.EveLabelMedium 40 41 42 from dynamicresources.client.ess.bracket.debug import __reload_update__