public void InitLineMarker(IDETextField textField, IDEFocusLord focusLord) { instance = this; theTextField = textField; theFocusLord = focusLord; theMarkerRect = transform as RectTransform; enabled = false; theErrorBubble.Init(this); }
public void initLineMarker(IDETextField theTextField, IDEFocusLord theFocusLord) { instance = this; this.theTextField = theTextField; this.theFocusLord = theFocusLord; theMarkerRect = transform as RectTransform; this.enabled = false; theImage = GetComponentInChildren <Image>(); theErrorBubble.init(this); }
public static char MyValidate( char c, int charIndex, bool isPasting, List <IndentLevel> toAddLevels, string currentText, IDETextField theTextField) { if (isPasting) { return(c); } if (c == '\n') { toAddLevels.Clear(); toAddLevels.Add(new IndentLevel(charIndex, IDEParser.GetIndentLevel(charIndex, currentText))); theTextField.SetNewCaretPos(toAddLevels[0].GetNewCaretPos()); return('\n'); } return(c); }
public void InitReferences(InputField inputField, IDETextField textField) { theInputField = inputField; theTextField = textField; startSelectionColor = inputField.selectionColor; }
public void initReferences(InputField theInputField, IDETextField theTextField) { this.theInputField = theInputField; this.theTextField = theTextField; startSelectionColor = theInputField.selectionColor; }