public void CreateText(int index, string content, bool isName) { if (isName) { TextOptions[index] = new TextOption(content, "Custom text option " + index + " for use in scripts.", ""); } else { TextOptions[index] = new TextOption("Text " + index + ": ", content, ""); } TextboxCreated?.Invoke(TextOptions[index]); }
public void CreateText(int index, string content) { TextOptions[index] = new TextOption("Text " + index + ": ", "Custom text option " + index + " for use in scripts.", content); TextboxCreated?.Invoke(TextOptions[index]); }