Inheritance: DisplayObject
Example #1
0
        static void CreateCaret()
        {
            _caret                   = new Shape();
            _caret.touchable         = false;
            _caret.graphics.dontClip = true;

            _selectionShape           = new SelectionShape();
            _selectionShape.color     = UIConfig.inputHighlightColor;
            _selectionShape.touchable = false;
        }
Example #2
0
        static void CreateCaret()
        {
            _caret = new Shape();
            _caret.gameObject.name      = "Caret";
            _caret.touchable            = false;
            _caret._skipInFairyBatching = true;
            _caret.graphics.dontClip    = true;

            _selectionShape       = new SelectionShape();
            _selectionShape.color = UIConfig.inputHighlightColor;
            _selectionShape._skipInFairyBatching = true;
            _selectionShape.touchable            = false;
        }
        void CreateCaret()
        {
            _caret = new Shape();
            _caret.gameObject.name = "Caret";
            _caret.touchable       = false;
            _caret._flags         |= Flags.SkipBatching;
            _caret.xy = textField.xy;

            _selectionShape = new SelectionShape();
            _selectionShape.gameObject.name = "Selection";
            _selectionShape.color           = UIConfig.inputHighlightColor;
            _selectionShape._flags         |= Flags.SkipBatching;
            _selectionShape.touchable       = false;
            _selectionShape.xy = textField.xy;
        }
Example #4
0
        static void CreateCaret()
        {
            _caret = new Shape();
            _caret.gameObject.name      = "InputCaret";
            _caret.touchable            = false;
            _caret._skipInFairyBatching = true;
            _caret.graphics.dontClip    = true;
            _caret.home = Stage.inst.cachedTransform;

            _selectionShape = new SelectionShape();
            _selectionShape.gameObject.name      = "InputSelection";
            _selectionShape.color                = UIConfig.inputHighlightColor;
            _selectionShape._skipInFairyBatching = true;
            _selectionShape.touchable            = false;
            _selectionShape.home = Stage.inst.cachedTransform;
        }
Example #5
0
 static new public void ClearStatic()
 {
     if (_caret != null)
     {
         _caret.Dispose();
     }
     if (_selectionShape != null)
     {
         _selectionShape.Dispose();
     }
     _caret          = null;
     _selectionShape = null;
     _nextBlink      = 0;
     onCopy          = null;
     onPaste         = null;
 }
        static void CreateCaret()
        {
            _caret = new Shape();
            _caret.gameObject.name = "InputCaret";
            _caret.touchable = false;
            _caret._skipInFairyBatching = true;
            _caret.graphics.dontClip = true;
            _caret.home = Stage.inst.cachedTransform;

            _selectionShape = new SelectionShape();
            _selectionShape.gameObject.name = "InputSelection";
            _selectionShape.color = UIConfig.inputHighlightColor;
            _selectionShape._skipInFairyBatching = true;
            _selectionShape.touchable = false;
            _selectionShape.home = Stage.inst.cachedTransform;
        }