Exemplo n.º 1
0
        private void setDisplay(Object display)
        {
            if (_displayBridge.Display != null)
            {
                _displayBridge.Display = display;
            }
            else
            {
                _displayBridge.Display = display;
                if (this._armature != null)
                {
                    _displayBridge.AddDisplay(this._armature.Display, this.ZOrder);
                    this._armature._slotsZOrderChanged = true;
                }
            }

            updateChildArmatureAnimation();

            if (!_isHideDisplay && _displayBridge.Display != null)
            {
                _isDisplayOnStage = true;
                _displayBridge.UpdateBlendMode(_blendMode);
            }
            else
            {
                _isDisplayOnStage = false;
            }
        }
Exemplo n.º 2
0
        public Slot(IDisplayBridge displayBrideg)
        {
            _displayBridge = displayBrideg;
            _displayList   = new List <object>();
            _displayIndex  = -1;
            _scaleType     = 1;

            _originZOrder = 0;
            _tweenZorder  = 0;
            _offsetZOrder = 0;

            _isDisplayOnStage = false;
            _isHideDisplay    = false;

            _blendMode = "normal";
            if (_displayBridge.Display != null)
            {
                _displayBridge.UpdateBlendMode(_blendMode);
            }
        }
Exemplo n.º 3
0
		public Slot(IDisplayBridge displayBrideg)
		{
			_displayBridge = displayBrideg;
			_displayList = new List<object>();
			_displayIndex = -1;
			_scaleType = 1;
			
			_originZOrder = 0;
			_tweenZorder = 0;
			_offsetZOrder = 0;
			
			_isDisplayOnStage = false;
			_isHideDisplay = false;
			
			_blendMode = "normal";
			if(_displayBridge.Display!=null)
			{
				_displayBridge.UpdateBlendMode(_blendMode);
			}
		}