Example #1
0
 public ObjDetails(float spawnTime, Vector2 velocity, float initialAlpha, IHUDObject obj)
 {
     SpawnTime    = spawnTime;
     Velocity     = velocity;
     InitialAlpha = initialAlpha;
     HUDObject    = obj;
 }
Example #2
0
 public HUDItemExciterEntity(IHUDObject targetObj)
 {
     this.targetObj = targetObj;
     lock (staticMutationLock) {
         allExciters.Add(this);
     }
 }
Example #3
0
        public void CopyTo(IHUDObject targetObj)
        {
            lock (instanceMutationLock) {
                FontString objAsFontString = (FontString)targetObj;

                objAsFontString.anchoring    = anchoring;
                objAsFontString.anchorOffset = anchorOffset;
                objAsFontString.scale        = scale;
                objAsFontString.text         = text;
                objAsFontString.color        = color;
                objAsFontString.RefreshText();
            }
        }
 public void CopyTo(IHUDObject targetObj)
 {
     lock (instanceMutationLock) {
         HUDTexture targetAsTex = (HUDTexture)targetObj;
         targetAsTex.Anchoring                = anchoring;
         targetAsTex.AnchorOffset             = anchorOffset;
         targetAsTex.AspectCorrectionStrategy = aspectCorrectionStrategy;
         targetAsTex.Color    = color;
         targetAsTex.Rotation = rotation;
         targetAsTex.Scale    = scale;
         targetAsTex.Texture  = texture;
         targetAsTex.ZIndex   = material.ZIndex;
     }
 }