NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

previewTierCont.py (1378B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\loginRewards\previewTierCont.py
      2 from carbonui.primitives.container import Container
      3 from carbonui import uiconst
      4 from carbonui.primitives.sprite import Sprite
      5 
      6 class TierLineCont(Container):
      7     default_name = 'tierLineCont'
      8     default_align = uiconst.TOTOP_NOPUSH
      9     default_fullOpacity = 1.0
     10 
     11     def ApplyAttributes(self, attributes):
     12         Container.ApplyAttributes(self, attributes)
     13         self.fullOpacity = attributes.get('fullOpacity', self.default_fullOpacity)
     14         self.tierLineGlow = Sprite(name='tierLineGlow', parent=self, align=uiconst.TOTOP_NOPUSH, texturePath='res:/UI/Texture/classes/LoginCampaign/todaysReward_gradientGlow_2.png', height=10)
     15         self.tierLine = Sprite(name='tierLine', parent=self, align=uiconst.TOTOP_NOPUSH, texturePath='res:/UI/Texture/classes/LoginCampaign/todaysReward_gradientGlow_1.png', pos=(0, 3, 0, 4), opacity=10)
     16         self.tierGradient = Sprite(name='tierGradient', parent=self, align=uiconst.TOTOP_NOPUSH, texturePath='res:/UI/Texture/classes/LoginCampaign/tierGradient.png', height=133, opacity=1.0, top=-self.top)
     17 
     18     def SetColor(self, color):
     19         self.tierLine.SetRGBA(*color)
     20         self.tierLineGlow.SetRGBA(*color)
     21         self.tierGradient.display = True
     22         self.tierGradient.SetRGBA(*color)