public FloatWrapper(BaseTextType text, Vector2 d, float l) { textType = text; position = textType.Vector; textType.DrawText = false; direction = d; length = l; lagTime = 5; }
public FadeWrapper(BaseTextType text, float textLength) { textType = text; length = textLength; interval = length / 3; alpha = 0; circular = true; fadeDirection = 1; DrawText = false; }
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; }
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; }
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; }
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; }
public NumberWrapper(BaseTextType text, int n) { textType = text; number = n; }
public void addText(BaseTextType t) { text.Add(t.Text, t); }