public BorderDetail(JObject border, CustomJPrototypeResolver resolver) { Color = resolver.GetColorOrDefault(border, "Color", Color.Black); X = resolver.GetInt(border, "X"); Y = resolver.GetInt(border, "Y"); Width = resolver.GetInt(border, "Width"); Height = resolver.GetInt(border, "Height"); Thickness = resolver.GetInt(border, "Thickness"); Alignment = resolver.GetEnum <BorderAlignment>(border, "Alignment"); }
public HorizontalMovingLabel(string text, float speed, Vector2 startPosition, float stopPosition, BorderAlignment alignedBorder, float displayAfter) : base() { this.textArea = new Rect(startPosition.x, startPosition.y, 0, 0); this.Text = text; this.Speed = speed; this.StopPosition = stopPosition; this.AlignedBorder = alignedBorder; this.displayAfter = displayAfter; this.lastLayoutTime = 0; this.firstTick = 0; }