@@ -80,6 +80,15 @@ GMTEEditorTileMap >> handlesMouseMove: anEvent [
80
80
^ true
81
81
]
82
82
83
+ {
84
+ #category : #' event handling' ,
85
+ #' squeak_changestamp' : ' Ivo Zilkenat 7/11/2024 17:14'
86
+ }
87
+ GMTEEditorTileMap >> handlesMouseOver: anEvent [
88
+
89
+ ^ true
90
+ ]
91
+
83
92
{
84
93
#category : #initialization ,
85
94
#' squeak_changestamp' : ' Alex M 6/28/2024 20:24'
@@ -131,7 +140,18 @@ GMTEEditorTileMap >> mouseDown: anEvent [
131
140
132
141
{
133
142
#category : #' event handling' ,
134
- #' squeak_changestamp' : ' JS 7/11/2024 14:01'
143
+ #' squeak_changestamp' : ' Ivo Zilkenat 7/11/2024 17:18'
144
+ }
145
+ GMTEEditorTileMap >> mouseLeave: anEvent [
146
+
147
+ self tileSelectionSet clearAllHighlightings.
148
+
149
+ ^ true
150
+ ]
151
+
152
+ {
153
+ #category : #' event handling' ,
154
+ #' squeak_changestamp' : ' Ivo Zilkenat 7/11/2024 17:01'
135
155
}
136
156
GMTEEditorTileMap >> mouseMove: anEvent [
137
157
" Implements highlighting of tiles when hovering"
@@ -146,9 +166,10 @@ GMTEEditorTileMap >> mouseMove: anEvent [
146
166
147
167
selectedCoordinates ifNil: [^ nil ].
148
168
149
- (selectedCoordinates select: [:c | (self tileMatrixStack layer: activeLayer) inBounds: c]) do: [:t |
150
- hoveredTileHighlighting := self highlightingTileFromIndex: t.
151
- hoveredTileHighlighting ifNotNil: [self tileSelectionSet highlightTile: hoveredTileHighlighting]]
169
+ (selectedCoordinates select: [:c |
170
+ (self tileMatrixStack layer: activeLayer) inBounds: c]) do: [:t |
171
+ hoveredTileHighlighting := self highlightingTileFromIndex: t.
172
+ hoveredTileHighlighting ifNotNil: [self tileSelectionSet highlightTile: hoveredTileHighlighting]]
152
173
]
153
174
154
175
{
0 commit comments