Esempio n. 1
0
 public FloatWrapper(BaseTextType text, Vector2 d, float l)
 {
     textType          = text;
     position          = textType.Vector;
     textType.DrawText = false;
     direction         = d;
     length            = l;
     lagTime           = 5;
 }
Esempio n. 2
0
 public FadeWrapper(BaseTextType text, float textLength)
 {
     textType      = text;
     length        = textLength;
     interval      = length / 3;
     alpha         = 0;
     circular      = true;
     fadeDirection = 1;
     DrawText      = false;
 }
Esempio n. 3
0
 public ScaleWrapper(BaseTextType text, float scaleFactor, float effectLength, float time)
 {
     textType          = text;
     textType.DrawText = false;
     scale             = 1;
     factor            = scaleFactor;
     length            = effectLength;
     period            = 0;
     stopTime          = time;
     speed             = 0;
 }
Esempio n. 4
0
 public ColorWrapper(BaseTextType text, string fontAsset, Color sColor, Color eColor, float s, int l)
 {
     textType       = text;
     startColor     = sColor;
     endColor       = eColor;
     speed          = s;
     lagTime        = l;
     reverse        = false;
     textType.Color = startColor;
     textType.Asset = fontAsset;
 }
Esempio n. 5
0
 public ScaleWrapper(BaseTextType text, Vector2 textOrigin, float effectLength, float time, int pulseSpeed)
 {
     textType          = text;
     origin            = textOrigin;
     textType.DrawText = false;
     scale             = 1;
     factor            = 1;
     length            = effectLength;
     period            = 0;
     stopTime          = time;
     speed             = (float)(pulseSpeed) / 100.0f;
 }
Esempio n. 6
0
        public FadeWrapper(BaseTextType text, float textLength, int direction)
        {
            textType = text;
            length   = textLength;
            interval = length;
            circular = false;

            if (direction > 0)
            {
                alpha = 0;
            }
            else
            {
                alpha = 255;
            }

            fadeDirection = direction;
            DrawText      = false;
        }
Esempio n. 7
0
        public NumberWrapper(BaseTextType text, int n)
        {
            textType = text;

            number = n;
        }
Esempio n. 8
0
 public void addText(BaseTextType t)
 {
     text.Add(t.Text, t);
 }