public UIInputBox(string text, string info, FontSet fonts, UIAnchor anchor, Func<float> width, Func<int> xOff, Func<int> yOff) : base(anchor, width, () => fonts.font_default.Height, xOff, yOff) { Text = text; Info = info; Fonts = fonts; }
public UIButton(string buttontexname, string buttontext, FontSet font, Action clicked, UIAnchor anchor, Func<float> width, Func<float> height, Func<int> xOff, Func<int> yOff) : base(anchor, width, height, xOff, yOff) { tName = buttontexname; Text = buttontext; TextFont = font; ClickedTask = clicked; }
public UIElement(UIAnchor anchor, Func<float> width, Func<float> height, Func<int> xOff, Func<int> yOff) { Children = new HashSet<UIElement>(); Anchor = anchor != null ? anchor : UIAnchor.TOP_LEFT; Width = width != null ? width : () => 0; Height = height != null ? height : () => 0; OffsetX = xOff != null ? xOff : () => 0; OffsetY = yOff != null ? yOff : () => 0; }
public UILabel(string btext, FontSet font, UIAnchor anchor, Func<int> xOff, Func<int> yOff, Func<int> maxx = null) : base(anchor, () => 0, () => 0, xOff, yOff) { Text = btext; TextFont = font; Width = () => (float)TextFont.MeasureFancyLinesOfText(MaxX != null ? TextFont.SplitAppropriately(Text, MaxX()) : Text, BColor).X; Height = () => (float)TextFont.MeasureFancyLinesOfText(MaxX != null ? TextFont.SplitAppropriately(Text, MaxX()) : Text, BColor).Y; MaxX = maxx; }
public UITextLink(Texture ico, string btext, string btexthover, string btextclick, FontSet font, Action clicked, UIAnchor anchor, Func<int> xOff, Func<int> yOff) : base(anchor, () => 0, () => 0, xOff, yOff) { Icon = ico; ClickedTask = clicked; Text = btext; TextHover = btexthover; TextClick = btextclick; TextFont = font; Width = () => font.MeasureFancyText(Text, BColor) + (Icon == null ? 0 : font.font_default.Height); Height = () => TextFont.font_default.Height; }
public UIGroup(UIAnchor anchor, Func <float> width, Func <float> height, Func <int> xOff, Func <int> yOff) : base(anchor, width, height, xOff, yOff) { }
public UIScrollBox(UIAnchor anchor, Func<float> width, Func<float> height, Func<int> xOff, Func<int> yOff) : base(anchor, width, height, xOff, yOff) { }
public UITextLink(Texture ico, string btext, string btexthover, string btextclick, FontSet font, Action clicked, UIAnchor anchor, Func <int> xOff, Func <int> yOff) : base(anchor, () => 0, () => 0, xOff, yOff) { Icon = ico; ClickedTask = clicked; Text = btext; TextHover = btexthover; TextClick = btextclick; TextFont = font; Width = () => font.MeasureFancyText(Text, BColor) + (Icon == null ? 0 : font.font_default.Height); Height = () => TextFont.font_default.Height; }
public UIButton(string buttontexname, string buttontext, FontSet font, Action clicked, UIAnchor anchor, Func <float> width, Func <float> height, Func <int> xOff, Func <int> yOff) : base(anchor, width, height, xOff, yOff) { tName = buttontexname; Text = buttontext; TextFont = font; ClickedTask = clicked; }
public UIColoredBox(Vector4 color, UIAnchor anchor, Func <float> width, Func <float> height, Func <int> xOff, Func <int> yOff) : base(anchor, width, height, xOff, yOff) { Color = color; }
public UIImage(Texture image, UIAnchor anchor, Func<float> width, Func<float> height, Func<int> xOff, Func<int> yOff) : base(anchor, width, height, xOff, yOff) { Image = image; }
public UIColoredBox(Vector4 color, UIAnchor anchor, Func<float> width, Func<float> height, Func<int> xOff, Func<int> yOff) : base(anchor, width, height, xOff, yOff) { Color = color; }
public UIImage(Texture image, UIAnchor anchor, Func <float> width, Func <float> height, Func <int> xOff, Func <int> yOff) : base(anchor, width, height, xOff, yOff) { Image = image; }