public TableLayout(ITable table, ITextRegistry <ITextComponent> textRegistry) { if (table == null) { throw new ArgumentNullException(nameof(table)); } if (textRegistry == null) { throw new ArgumentNullException(nameof(textRegistry)); } Table = table; TextRegistry = textRegistry; }
public TableLayout(ITable table) { Table = table; TextRegistry = new TextMeshProTextRegistry(); }