Пример #1
0
        public void InitLineMarker(IDETextField textField, IDEFocusLord focusLord)
        {
            instance = this;

            theTextField  = textField;
            theFocusLord  = focusLord;
            theMarkerRect = transform as RectTransform;
            enabled       = false;
            theErrorBubble.Init(this);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 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;
 }