kopia lustrzana https://github.com/backface/turtlestitch
				
				
				
			fixed overlapping blocks bug in unified palette
							rodzic
							
								
									1859b4a1bf
								
							
						
					
					
						commit
						a04fcd5434
					
				|  | @ -33,6 +33,7 @@ | ||||||
| * readme update, thanks, Michael! | * readme update, thanks, Michael! | ||||||
| * objects, gui: rearranged internal order of categories | * objects, gui: rearranged internal order of categories | ||||||
| * byob: rearranged internal order of categories | * byob: rearranged internal order of categories | ||||||
|  | * objects: fixed overlapping blocks bug in unified palette | ||||||
| 
 | 
 | ||||||
| ### 2021-07-15 | ### 2021-07-15 | ||||||
| * gui: made sprite-bar height independent of the number of categories | * gui: made sprite-bar height independent of the number of categories | ||||||
|  |  | ||||||
|  | @ -3160,7 +3160,7 @@ SpriteMorph.prototype.freshPalette = function (category) { | ||||||
|             hideNextSpace = true; |             hideNextSpace = true; | ||||||
|         } else if (block === '#') { |         } else if (block === '#') { | ||||||
|             x = 0; |             x = 0; | ||||||
|             y = ry; |             y = (ry === 0 ? y : ry); | ||||||
|         } else { |         } else { | ||||||
|             hideNextSpace = false; |             hideNextSpace = false; | ||||||
|             if (x === 0) { |             if (x === 0) { | ||||||
|  | @ -3168,8 +3168,9 @@ SpriteMorph.prototype.freshPalette = function (category) { | ||||||
|             } |             } | ||||||
|             block.setPosition(new Point(x, y)); |             block.setPosition(new Point(x, y)); | ||||||
|             palette.addContents(block); |             palette.addContents(block); | ||||||
|             if (block instanceof ToggleMorph |             if (block instanceof ToggleMorph) { | ||||||
|                     || (block instanceof RingMorph)) { |                 x = block.right() + unit / 2; | ||||||
|  |             } else if (block instanceof RingMorph) { | ||||||
|                 x = block.right() + unit / 2; |                 x = block.right() + unit / 2; | ||||||
|                 ry = block.bottom(); |                 ry = block.bottom(); | ||||||
|             } else { |             } else { | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 jmoenig
						jmoenig