チェンジセット 1486
- コミット日時:
- 2008/10/02 15:08:02 (5 年前)
- ファイル:
-
- as3/gunyarapaint/trunk/gunyarapaint/src/gplogplayer.mxml (更新) (3 diffs)
- as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.as (更新) (1 diff)
- as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.mxml (更新) (1 diff)
- as3/gunyarapaint/trunk/gunyarapaint/src/org/libspark/gunyarapaint/entities/GPLayerArray.as (更新) (7 diffs)
- as3/gunyarapaint/trunk/gunyarapaint/src/org/libspark/gunyarapaint/entities/GPLogger.as (更新) (9 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/gunyarapaint/trunk/gunyarapaint/src/gplogplayer.mxml
r1485 r1486 32 32 33 33 /*** debug ***/ 34 private var debugOekakiId:uint = 0; // 0でデバッグしない34 private var debugOekakiId:uint = 22655; // 0でデバッグしない 35 35 private var debugCheckPngUrl:String; 36 36 private var debugCheckPng:ByteArray; … … 94 94 95 95 private function createLogCan():void { 96 if ( !baseImgInfo) {96 if (baseImg && !baseImgInfo) { 97 97 baseImgInfo = {'width': baseImg.width, 'height': baseImg.height}; 98 98 } … … 158 158 ]]> 159 159 </mx:Script> 160 <mx:Label x="313" y="11" text="ver.200810020 1"/>160 <mx:Label x="313" y="11" text="ver.2008100202"/> 161 161 </mx:Application> as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.as
r1482 r1486 1 private const DEBUG:Boolean = false;1 private const DEBUG:Boolean = true; 2 2 3 3 import flash.events.Event; as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.mxml
r1482 r1486 12 12 </mx:Script> 13 13 <mx:Canvas id="toolCanvas" x="0" y="0" width="685" height="102"> 14 <mx:Label id="versionLabel" x="238" y="9" text="ver.200810020 1"/>14 <mx:Label id="versionLabel" x="238" y="9" text="ver.2008100202"/> 15 15 <mx:Label x="28" y="7" text="名前"/> 16 16 <mx:TextInput id="fromTextInput" x="55" y="3" maxChars="32" fontSize="14" focusThickness="0"/> as3/gunyarapaint/trunk/gunyarapaint/src/org/libspark/gunyarapaint/entities/GPLayerArray.as
r1481 r1486 44 44 _view.addChild(a[i].bitmap); 45 45 } 46 this. targetIndex =targetIndex;46 this._targetIndex = _targetIndex; 47 47 } else { 48 48 _a = new Array(); … … 146 146 return; 147 147 } 148 _canvas.logWrite(['layerCopy']); // ここでイベントとらないと、targetIndexがズレる 148 149 var n:GPLayer = _a[i].clone(); 149 150 n.name += 'のコピー' … … 152 153 reindex(); 153 154 recombine(); 154 _canvas.logWrite(['layerCopy']);155 155 } 156 156 … … 171 171 return; 172 172 } 173 _canvas.logWrite(['layerMergeWithBelow']); // ここでイベントとらないと、targetIndexがズレる 173 174 this.targetIndex = i - 1; 174 175 _a[i].drawDest(_a[_targetIndex].bitmapData); … … 180 181 reindex(); 181 182 recombine(); 182 _canvas.logWrite(['layerMergeWithBelow']);183 183 } 184 184 … … 189 189 return; 190 190 } 191 _canvas.logWrite(['layerRemove']); // ここでイベントとらないと、targetIndexがズレる 191 192 _a.splice(i, 1); 192 193 if (_targetIndex == i) { … … 196 197 reindex(); 197 198 recombine(); 198 _canvas.logWrite(['layerRemove']);199 199 } 200 200 as3/gunyarapaint/trunk/gunyarapaint/src/org/libspark/gunyarapaint/entities/GPLogger.as
r1481 r1486 46 46 this.undoBufferSize = undoBufferSize; 47 47 48 log.writeUTFBytes('GUNYARA_PAINT:0.0. 2:');48 log.writeUTFBytes('GUNYARA_PAINT:0.0.4:'); 49 49 writeShort(width); 50 50 writeShort(height); … … 136 136 preX = x; 137 137 preY = y; 138 trace('MOVE_TO x:' + info[1] + ' y:' + info[2]); 138 139 break; 139 140 case 'lineTo': … … 156 157 preX = x; 157 158 preY = y; 159 trace('LINE_TO x:' + info[1] + ' y:' + info[2]); 158 160 break; 159 161 case 'lineStyle': … … 164 166 case GPLogger.LINESTYLE_THICKNESS: 165 167 writeByte(info[2]); // 255 168 trace('LINE_STYLE thickness:' + info[2]); 166 169 break; 167 170 case GPLogger.LINESTYLE_COLOR: 168 171 writeUInt(info[2]); 172 trace('LINE_STYLE color:' + info[2]); 169 173 break; 170 174 case GPLogger.LINESTYLE_ALPHA: 175 writeDouble(info[2]); 176 trace('LINE_STYLE alpha:' + info[2]); 177 break; 171 178 case GPLogger.LINESTYLE_MITER_LIMIT: 172 179 writeDouble(info[2]); 180 trace('LINE_STYLE miter_limit:' + info[2]); 173 181 break; 174 182 case GPLogger.LINESTYLE_BLEND_MODE: 183 writeUTF(info[2]); 184 trace('LINE_STYLE blend_mode:' + info[2]); 185 break; 175 186 case GPLogger.LINESTYLE_SCALE_MODE: 187 writeUTF(info[2]); 188 trace('LINE_STYLE scale_mode:' + info[2]); 189 break; 176 190 case GPLogger.LINESTYLE_CAPS: 191 writeUTF(info[2]); 192 trace('LINE_STYLE caps_mode:' + info[2]); 193 break; 177 194 case GPLogger.LINESTYLE_JOINTS: 178 195 writeUTF(info[2]); 196 trace('LINE_STYLE joint_style:' + info[2]); 179 197 break; 180 198 case GPLogger.LINESTYLE_PIXEL_HINTING: 181 199 writeBoolean(info[2]); 200 trace('LINE_STYLE pixel_hinting:' + info[2]); 182 201 break; 183 202 default: … … 188 207 case 'drawShapeOnBitmap': 189 208 writeByte(ACTION_DRAW_SHAPE_ON_BITMAP); 209 trace('DRAW_SHAPE_ON_BITMAP'); 190 210 break; 191 211 case 'undo': 192 212 writeByte(ACTION_UNDO); 213 trace('UNDO'); 193 214 break; 194 215 case 'redo': 195 216 writeByte(ACTION_REDO); 217 trace('REDO'); 196 218 break; 197 219 case 'beginFill': … … 199 221 writeUInt(info[1]); // color 200 222 writeDouble(info[2]); // alpha 223 trace('BEGIN_FILL color:'+ info[1] + ' alpha:' + info[2]); 201 224 break; 202 225 case 'endFill': 203 226 writeByte(ACTION_END_FILL); 227 trace('END_FILL'); 204 228 break; 205 229 case 'drawCircle': … … 207 231 writeByte(ACTION_DRAW_CIRCLE); 208 232 writeDouble(info[1]); 233 trace('DRAW_CIRCLE radius:' + info[1]); 209 234 break; 210 235 case 'floodFill': 211 236 writeByte(ACTION_FLOOD_FILL); 237 trace('FLOOD_FILL'); 212 238 break; 213 239 case 'layerNew': 214 240 writeByte(ACTION_LAYER_NEW); 241 trace('LAYER_NEW'); 215 242 break; 216 243 case 'layerCopy': 217 244 writeByte(ACTION_LAYER_COPY); 245 trace('LAYER_COPY'); 218 246 break; 219 247 case 'layerSwap': … … 221 249 writeByte(info[1]); 222 250 writeByte(info[2]); 251 trace('LAYER_SWAP from:' + info[1] + ' to:' + info[2]); 223 252 break; 224 253 case 'layerMergeWithBelow': 225 254 writeByte(ACTION_LAYER_MERGE_WITH_BELOW); 255 trace('LAYER_MERGE_WITH_BELOW'); 226 256 break; 227 257 case 'layerRemove': 228 258 writeByte(ACTION_LAYER_REMOVE); 259 trace('LAYER_REMOVE'); 229 260 break; 230 261 case 'layerChangeTarget': 231 262 writeByte(ACTION_LAYER_CHANGE_TARGET); 232 263 writeByte(info[1]); 264 trace('LAYER_CHANGE_TARGET target:' + info[1]); 233 265 break; 234 266 case 'layerChangeVisible': … … 236 268 writeByte(info[1]); 237 269 writeBoolean(info[2]); 270 trace('LAYER_CHANGE_VISIBLE target:' + info[1] + ' value:' + info[2]); 238 271 break; 239 272 case 'layerChangeBlendMode': 240 273 writeByte(ACTION_LAYER_CHANGE_BLEND_MODE); 241 274 writeUTF(info[1]); 275 trace('LAYER_CHANGE_BLEND_MODE blendMode:' + info[1]); 242 276 break; 243 277 case 'layerChangeAlpha': 244 278 writeByte(ACTION_LAYER_CHANGE_ALPHA); 245 279 writeDouble(info[1]); 280 trace('LAYER_CHANGE_ALPHA alpha:' + info[1]); 246 281 break; 247 282 default:

