チェンジセット 1172

差分発生行の前後
無視リスト:
コミット日時:
2008/08/27 18:21:54 (5 年前)
コミッタ:
tasuku
ログメッセージ:

r123@poppop (orig r122): tasuku | 2008-08-18 16:50:57 +0900
layer mondai kaiketu?

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint/entities/GPLayerArray.as

    r1171 r1172  
    198198    } 
    199199    // 描画用レイヤを一時的に挿入・削除する。 
    200     public function insertDrawLayer(s:Shape):void { 
     200    public function insertDrawLayer(s:Shape, p:GPPen):void { 
    201201      // ターゲットレイヤと描画レイヤを子に持つSpriteを作成し、 
    202202      // それをターゲットレイヤと一時的に入れ換える。 
     
    205205      _targetSprite = new Sprite(); 
    206206      _targetSprite.mouseEnabled = false; 
    207       _targetSprite.blendMode = flash.display.BlendMode.LAYER; 
    208       _targetSprite.addChild(_a[_targetIndex].bitmap); 
     207      _targetSprite.blendMode = _a[_targetIndex].blendMode == flash.display.BlendMode.NORMAL ? 
     208                                flash.display.BlendMode.LAYER : 
     209                                _a[_targetIndex].blendMode; 
     210      _targetSprite.alpha = _a[_targetIndex].alpha; 
     211      _a[_targetIndex].blendMode = flash.display.BlendMode.NORMAL; 
     212      _a[_targetIndex].alpha = 1; 
     213/* 
     214      s.blendMode = p.blendMode; 
     215      s.alpha = p.alpha; 
     216*/ 
     217      _targetSprite.addChild(_a[_targetIndex].bitmap);       
    209218      _targetSprite.addChild(s); 
    210219      _view.addChildAt(_targetSprite, _targetIndex); 
     
    212221    public function removeDrawLayer(s:Shape):void { 
    213222      // 上のを戻す 
     223      _a[_targetIndex].blendMode = _targetSprite.blendMode == flash.display.BlendMode.LAYER ? 
     224                                   flash.display.BlendMode.NORMAL : 
     225                                   _targetSprite.blendMode; 
     226      _a[_targetIndex].alpha = _targetSprite.alpha; 
    214227      if (_targetSprite) { 
    215228        _view.removeChild(_targetSprite); 
  • as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint/entities/GPPen.as

    r1165 r1172  
    358358 
    359359    public function insertDrawShape():void { 
    360       _layers.insertDrawLayer(_drawShape); 
     360      _layers.insertDrawLayer(_drawShape, this); 
    361361    } 
    362362