Skip to content

Commit

Permalink
minor renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo Zilkenat committed Jun 7, 2024
1 parent 6a384a7 commit fb8924d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions source/GM-TE/GMTEEditableTileMap.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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.
]

{
Expand Down
12 changes: 6 additions & 6 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,26 @@ 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).
]

{
#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).
Expand Down Expand Up @@ -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"
Expand All @@ -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].

Expand Down
4 changes: 2 additions & 2 deletions source/GM-TE/GMTETile.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
4 changes: 2 additions & 2 deletions source/GM-TE/GMTETileMatrixStack.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb8924d

Please sign in to comment.