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

hudShape.py (1386B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\inflight\shipHud\hudShape.py
      2 from carbonui.primitives.container import Container
      3 from carbonui.primitives.sprite import Sprite
      4 import carbonui.const as uiconst
      5 import trinity
      6 from eve.client.script.ui.control.themeColored import SpriteThemeColored
      7 SIZE = 160
      8 
      9 class HUDShape(Container):
     10     default_width = SIZE
     11     default_height = SIZE
     12     default_name = 'HUDShape'
     13     dotTexturePath = 'res:/UI/Texture/classes/ShipUI/mainDOT.png'
     14     mainTexturePath = 'res:/UI/Texture/classes/ShipUI/mainUnderlay.png'
     15 
     16     def ApplyAttributes(self, attributes):
     17         Container.ApplyAttributes(self, attributes)
     18         Sprite(parent=self, name='mainDot', pos=(0,
     19          0,
     20          SIZE,
     21          SIZE), align=uiconst.CENTER, state=uiconst.UI_DISABLED, texturePath=self.dotTexturePath, spriteEffect=trinity.TR2_SFX_DOT, blendMode=trinity.TR2_SBM_ADD)
     22         self.shipuiMainShape = SpriteThemeColored(parent=self, name='shipuiMainShape', pos=(0,
     23          0,
     24          SIZE,
     25          SIZE), align=uiconst.CENTER, state=uiconst.UI_DISABLED, texturePath=self.mainTexturePath, opacity=1.0, colorType=uiconst.COLORTYPE_UIBASE)
     26 
     27 
     28 class StructureHUDShape(HUDShape):
     29     dotTexturePath = 'res:/UI/Texture/classes/ShipUI/mainDOT.png'
     30     mainTexturePath = 'res:/UI/Texture/classes/ShipUI/mainUnderlay.png'