public static new ChatTextWidget Create(Game game, int x, int y, string text, Anchor horizontal, Anchor vertical, Font font) { ChatTextWidget widget = new ChatTextWidget(game, font); widget.Init(); widget.HorizontalAnchor = horizontal; widget.VerticalAnchor = vertical; widget.XOffset = x; widget.YOffset = y; widget.SetText(text); return(widget); }
public override void Init() { overview = ChatTextWidget.Create(game, 0, 0, "Connected players:", Anchor.Centre, Anchor.Centre, font); base.Init(); }