Skip to content

Commit

Permalink
layers of loaded maps now show up directly
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToxyl committed May 28, 2024
1 parent 5c224e9 commit 1671531
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,10 @@ GMTEEditor >> exportAsMorph [

{
#category : #accessing,
#'squeak_changestamp' : 'TW 5/28/2024 11:44'
#'squeak_changestamp' : 'TW 5/28/2024 16:22'
}
GMTEEditor >> getLayerList [


"TODO include layers when loading a new project"
| layerList |
layerList := OrderedCollection new.
self tileMapMatrix
Expand Down Expand Up @@ -449,7 +447,7 @@ GMTEEditor >> import [

{
#category : #'button functions',
#'squeak_changestamp' : 'JS 5/24/2024 20:24'
#'squeak_changestamp' : 'TW 5/28/2024 16:21'
}
GMTEEditor >> importFromMorph [
|fc stream aFileStream morphOrList|
Expand All @@ -466,8 +464,11 @@ GMTEEditor >> importFromMorph [
morphOrList tileSelectionSet highlightImage: nil.
self tileMapMatrix: morphOrList.
morphOrList model: self.
self tileViewer removeAllMorphs.
self tileViewer addMorph: morphOrList
self tileViewer
removeAllMorphs;
addMorph: morphOrList.

self changed: #getLayerList
]

{
Expand Down

0 comments on commit 1671531

Please sign in to comment.