Inheritance: DisplayObject
コード例 #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;
        }
コード例 #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;
        }
コード例 #3
0
        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;
        }
コード例 #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;
        }
コード例 #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;
 }
コード例 #6
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;
        }