From fb8924dd028e86314b2aa3fee6bdc3ffda636606 Mon Sep 17 00:00:00 2001 From: Ivo Zilkenat Date: Fri, 7 Jun 2024 22:22:34 +0200 Subject: [PATCH] minor renaming --- source/GM-TE/GMTEEditableTileMap.class.st | 4 ++-- source/GM-TE/GMTEEditor.class.st | 12 ++++++------ source/GM-TE/GMTETile.class.st | 4 ++-- source/GM-TE/GMTETileMatrixStack.class.st | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/source/GM-TE/GMTEEditableTileMap.class.st b/source/GM-TE/GMTEEditableTileMap.class.st index bbd1b96c..cbe4b3e4 100644 --- a/source/GM-TE/GMTEEditableTileMap.class.st +++ b/source/GM-TE/GMTEEditableTileMap.class.st @@ -116,11 +116,11 @@ GMTEEditableTileMap >> mouseMove: anEvent [ { #category : #removing, - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:17' + #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:22' } GMTEEditableTileMap >> resetAll [ "TODO: maybe combine this with updatTile: inLayer: FromEvent: . Currently not working with layers." - self tileMatrixStack setPlaceholder. + self tileMatrixStack setToPlaceholder. ] { diff --git a/source/GM-TE/GMTEEditor.class.st b/source/GM-TE/GMTEEditor.class.st index dba6a6a5..dd015324 100644 --- a/source/GM-TE/GMTEEditor.class.st +++ b/source/GM-TE/GMTEEditor.class.st @@ -123,13 +123,13 @@ GMTEEditor class >> fromTileHeight: aHeight widht: aWidth [ { #category : #'as yet unclassified', - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:17' + #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:22' } GMTEEditor class >> getTileMapFromFilePath: aFilePath [ |aFileStream tileMap| "TODO: Check if .morph is a tileMap" - aFileStream := (MultiByteBinaryOrTextStream with: ((FileStream readOnlyFileNamed: aFilePath) binary contentsOfEntireFile)) binary setPlaceholder. + aFileStream := (MultiByteBinaryOrTextStream with: ((FileStream readOnlyFileNamed: aFilePath) binary contentsOfEntireFile)) binary setToPlaceholder. tileMap := aFileStream fileInObjectAndCode. (tileMap isKindOf: GMTEEditableTileMap) ifFalse: [^nil]. ^GMTETileMap newFrom: (tileMap copy). @@ -137,12 +137,12 @@ GMTEEditor class >> getTileMapFromFilePath: aFilePath [ { #category : #'as yet unclassified', - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:17' + #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:22' } GMTEEditor class >> getTileMapFromProjectName: aName withPath: aPath [ |aFileStream tileMap| - aFileStream := (MultiByteBinaryOrTextStream with: ((GitAssetLoader for: aName) loadAsset: aPath)) binary setPlaceholder. + aFileStream := (MultiByteBinaryOrTextStream with: ((GitAssetLoader for: aName) loadAsset: aPath)) binary setToPlaceholder. tileMap := aFileStream fileInObjectAndCode. (tileMap isKindOf: GMTEEditableTileMap) ifFalse: [^nil]. ^GMTETileMap newFrom: (tileMap copy). @@ -546,7 +546,7 @@ GMTEEditor >> import [ { #category : #'button functions', - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:17' + #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:22' } GMTEEditor >> importFromMorph [ "import tilemap into editor from a .morph file" @@ -556,7 +556,7 @@ GMTEEditor >> importFromMorph [ stream ifNil: [^self]. - aFileStream := (MultiByteBinaryOrTextStream with: ((FileStream readOnlyFileNamed: stream fullName) binary contentsOfEntireFile)) binary setPlaceholder. + aFileStream := (MultiByteBinaryOrTextStream with: ((FileStream readOnlyFileNamed: stream fullName) binary contentsOfEntireFile)) binary setToPlaceholder. tileMap := aFileStream fileInObjectAndCode. (tileMap isKindOf: GMTEEditableTileMap) ifFalse: [^self]. diff --git a/source/GM-TE/GMTETile.class.st b/source/GM-TE/GMTETile.class.st index a0cffba1..50abfa4c 100644 --- a/source/GM-TE/GMTETile.class.st +++ b/source/GM-TE/GMTETile.class.st @@ -27,9 +27,9 @@ GMTETile class >> position: aPoint extent: anExtent [ { #category : #'as yet unclassified', - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:17' + #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:22' } -GMTETile >> setPlaceholder [ +GMTETile >> setToPlaceholder [ self setPlaceholderColor: GMTETile placeHolderColor ] diff --git a/source/GM-TE/GMTETileMatrixStack.class.st b/source/GM-TE/GMTETileMatrixStack.class.st index 80d258f0..b0a28d9d 100644 --- a/source/GM-TE/GMTETileMatrixStack.class.st +++ b/source/GM-TE/GMTETileMatrixStack.class.st @@ -171,9 +171,9 @@ GMTETileMatrixStack >> removeLayerAt: idx [ { #category : #removing, - #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:17' + #'squeak_changestamp' : 'Ivo Zilkenat 6/7/2024 22:22' } -GMTETileMatrixStack >> setPlaceholder [ +GMTETileMatrixStack >> setToPlaceholder [ self layerCount to: 2 by: -1 do: [ :layer | self removeLayerAt: layer]. (self layer: 1) free