Beispiel #1
0
 def ApplyAttributes(self, attributes):
     SpriteThemeColored.ApplyAttributes(self, attributes)
     sm.RegisterNotify(self)
     self.isInFocus = attributes.Get('isInFocus', self.default_isInFocus)
     self.isPinned = attributes.Get('isPinned', self.default_isPinned)
     self.isCameraDragging = False
     if uicore.uilib.blurredBackBufferAtlas:
         self.texture.atlasTexture = uicore.uilib.blurredBackBufferAtlas
     trinity.device.RegisterResource(self)
     self.UpdateState()
Beispiel #2
0
 def ApplyAttributes(self, attributes):
     SpriteThemeColored.ApplyAttributes(self, attributes)
     self.shadowSize = attributes.shadowSize