inputUnderlay.py (937B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\carbonui\decorative\inputUnderlay.py 2 from carbonui import uiconst 3 from carbonui.primitives.container import Container 4 from carbonui.primitives.fill import Fill 5 from carbonui.primitives.frame import Frame 6 from carbonui.uianimations import animations 7 8 class InputUnderlay(Container): 9 10 def ApplyAttributes(self, attributes): 11 super(InputUnderlay, self).ApplyAttributes(attributes) 12 Frame(bgParent=self, color=(1.0, 1.0, 1.0, 0.05)) 13 self._background = Fill(bgParent=self, padding=1, color=(0.0, 0.0, 0.0, 0.1)) 14 15 def OnWindowAboveSetActive(self): 16 animations.FadeTo(self._background, startVal=self._background.opacity, endVal=0.5, duration=uiconst.TIME_ENTRY) 17 18 def OnWindowAboveSetInactive(self): 19 animations.FadeTo(self._background, startVal=self._background.opacity, endVal=0.1, duration=uiconst.TIME_EXIT)