//Cheks if the current input will fit into the speciefied borders!
        //Restricted by amount of rows in Y
        //and by maxChars in X
        private void doValidateInput()
        {
            if (IDETextManipulation.validateText(theInputField.text, codeRowsLimit, maxChars))
            {
                lastText = theInputField.text;
                ColorCodeDaCode();
            }
            else
            {
                inserting                   = true;
                theInputField.text          = lastText;
                theInputField.caretPosition = lastCharInsertIndex;
            }

            Progress.Instance.LevelData[PMWrapper.CurrentLevel.id].MainCode = PMWrapper.mainCode;
            FocusCursor();
            theLineMarker.removeErrorMessage();
        }
Exemple #2
0
        //Cheks if the current input will fit into the speciefied borders!
        //Restricted by amount of rows in Y
        //and by maxChars in X
        private void doValidateInput()
        {
            if (IDETextManipulation.validateText(theInputField.text, codeRowsLimit, maxChars))
            {
                lastText = theInputField.text;
                ColorCodeDaCode();
            }
            else
            {
                inserting                   = true;
                theInputField.text          = lastText;
                theInputField.caretPosition = lastCharInsertIndex;
            }

            FocusCursor();

            SaveData.SaveMainCode();

            theLineMarker.removeErrorMessage();
        }