diff --git a/source/GM-TE-TileMap/GMTETileVisual.class.st b/source/GM-TE-TileMap/GMTETileVisual.class.st deleted file mode 100644 index 2b38c81b..00000000 --- a/source/GM-TE-TileMap/GMTETileVisual.class.st +++ /dev/null @@ -1,101 +0,0 @@ -Class { - #name : #GMTETileHighlighting, - #superclass : #GMTETile, - #instVars : [ - 'decorationMorph' - ], - #category : #'GM-TE-TileMap' -} - -{ - #category : #constants, - #'squeak_changestamp' : 'jj 6/23/2024 16:33' -} -GMTETileHighlighting class >> decoMorphAlphaValue [ - "the alpha value for the default decoMorph" - - ^ 0.2 -] - -{ - #category : #highlighting, - #'squeak_changestamp' : 'Ivo Zilkenat 6/24/2024 11:04' -} -GMTETileHighlighting >> applyBorderHighlighting [ - - self - borderColor: Color white; - borderWidth: 1 -] - -{ - #category : #highlighting, - #'squeak_changestamp' : 'Ivo Zilkenat 6/24/2024 11:55' -} -GMTETileHighlighting >> applyDecoMorphHighlighting: aForm [ - "Set a form as a temporary decoration inside the tile" - - | newDecoMorph | - aForm - ifNotNil: [ - newDecoMorph := (ImageMorph new) - bounds: self bounds; - image: (aForm scaledToSize: self extent); - yourself] - ifNil: [ - newDecoMorph := Morph new - bounds: self bounds; - color: (Color black alpha: GMTETileHighlighting decoMorphAlphaValue); - yourself]. - self - addMorph: newDecoMorph; - decorationMorph: newDecoMorph -] - -{ - #category : #accessing, - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 21:26' -} -GMTETileHighlighting >> decorationMorph [ - - ^ decorationMorph -] - -{ - #category : #accessing, - #'squeak_changestamp' : 'TW 6/22/2024 01:16' -} -GMTETileHighlighting >> decorationMorph: anObject [ - - decorationMorph := anObject -] - -{ - #category : #initialization, - #'squeak_changestamp' : 'Ivo Zilkenat 6/18/2024 10:14' -} -GMTETileHighlighting >> initialize [ - - super initialize. - self applyBorderHighlighting -] - -{ - #category : #highlighting, - #'squeak_changestamp' : 'TW 6/22/2024 01:16' -} -GMTETileHighlighting >> removeBorderHighlighting [ - - self - borderColor: Color transparent; - borderWidth: 0 -] - -{ - #category : #highlighting, - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 21:25' -} -GMTETileHighlighting >> removeDecoMorphHighlighting [ - - self removeMorph: self decorationMorph -] diff --git a/source/GM-Test.package/GMTileEditorTest.class/instance/testToggleVisualLayer.st b/source/GM-Test.package/GMTileEditorTest.class/instance/testToggleVisualLayer.st index 59286967..976e88c5 100644 --- a/source/GM-Test.package/GMTileEditorTest.class/instance/testToggleVisualLayer.st +++ b/source/GM-Test.package/GMTileEditorTest.class/instance/testToggleVisualLayer.st @@ -1,8 +1,8 @@ layerTests -testToggleVisualLayer +testTogglehighlightingLayer "tests the visibility toggle for the visual layer" self editor toggleGrid. - self assert: (self editor tileMap tileMatrixStackVisual layer: 1) visible = false. + self assert: (self editor tileMap tileMatrixStackHighlighting layer: 1) visible = false. self editor toggleGrid. - self assert: (self editor tileMap tileMatrixStackVisual layer: 1) visible = true \ No newline at end of file + self assert: (self editor tileMap tileMatrixStackHighlighting layer: 1) visible = true \ No newline at end of file diff --git a/source/GM-Test.package/GMTileEditorTest.class/methodProperties.json b/source/GM-Test.package/GMTileEditorTest.class/methodProperties.json index ade51cfb..5f24af58 100644 --- a/source/GM-Test.package/GMTileEditorTest.class/methodProperties.json +++ b/source/GM-Test.package/GMTileEditorTest.class/methodProperties.json @@ -26,4 +26,4 @@ "testRescaleMap" : "jj 6/22/2024 20:32", "testSwapLayer" : "jj 6/22/2024 20:33", "testToggleLayerVisibility" : "jj 6/22/2024 20:34", - "testToggleVisualLayer" : "jj 6/22/2024 20:34" } } + "testTogglehighlightingLayer" : "jj 6/22/2024 20:34" } }