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

eveLoadingWheel.py (961B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\control\eveLoadingWheel.py
      2 from carbonui import uiconst
      3 from carbonui.primitives.sprite import StreamingVideoSprite
      4 from carbonui.uiconst import SpriteEffect, BlendMode
      5 
      6 class LoadingWheel(StreamingVideoSprite):
      7     default_name = 'loadingWheel'
      8     default_width = 64
      9     default_height = 64
     10     default_colorType = uiconst.COLORTYPE_UIHILIGHT
     11     default_state = uiconst.UI_DISABLED
     12     default_spriteEffect = SpriteEffect.COPY
     13     default_blendMode = BlendMode.ADD
     14 
     15     def ApplyAttributes(self, attributes):
     16         super(LoadingWheel, self).ApplyAttributes(attributes)
     17         if self.width <= 16:
     18             path = 'res:/Video/loading/loading_16.webm'
     19         elif self.width <= 32:
     20             path = 'res:/Video/loading/loading_32.webm'
     21         else:
     22             path = 'res:/Video/loading/loading_64.webm'
     23         self.SetVideoPath(path, videoLoop=True)