From 14d1c9c1be7e0142303744d841f6dd095cb091aa Mon Sep 17 00:00:00 2001 From: Aleksander Morgensterns Date: Thu, 11 Jul 2024 17:40:29 +0200 Subject: [PATCH 1/3] fixed empty delete save request bug --- source/GM-TE/GMTEEditorTileMap.class.st | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/GM-TE/GMTEEditorTileMap.class.st b/source/GM-TE/GMTEEditorTileMap.class.st index 00ac43bf..08972342 100644 --- a/source/GM-TE/GMTEEditorTileMap.class.st +++ b/source/GM-TE/GMTEEditorTileMap.class.st @@ -324,7 +324,7 @@ GMTEEditorTileMap >> updateTileSprite: aTile [ { #category : #updating, - #'squeak_changestamp' : 'JS 7/11/2024 14:01' + #'squeak_changestamp' : 'Alex M 7/11/2024 17:39' } GMTEEditorTileMap >> updateTiles: aCoordinateCollection inLayer: aLayer FromEvent: anEvent [ "Add currently selected tile (model) to editable matrix stack at mouse position" @@ -347,16 +347,16 @@ GMTEEditorTileMap >> updateTiles: aCoordinateCollection inLayer: aLayer FromEven ifTrue: [ aCoordinateCollection do: [:c | | tilePos | - self savePreviousImageFromMatrixCoordinate: c inLayer: aLayer. ((self tileMatrixStack layer: aLayer) inBounds: c) ifTrue: [ tile := self tileMatrixStack layer: aLayer at: c y at: c x. tile ifNotNil: [ + self savePreviousImageFromMatrixCoordinate: c inLayer: aLayer. tilePos := tile position. tile abandon. self tileMatrixStack layer: aLayer at: c y at: c x put: nil. - self saveNewImageFromPosition: tilePos inLayer: aLayer]. + self saveNewImageFromPosition: tilePos inLayer: aLayer. + self model savedSinceModified: false]. ] - ]. - self model savedSinceModified: false] + ]] ] From 0cab5113bf284f5a8d27158d65ff60059c871bbf Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Thu, 11 Jul 2024 17:57:21 +0200 Subject: [PATCH 2/3] removed tilesizeratio from inspector --- source/GM-TE/GMTEEditor.class.st | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/GM-TE/GMTEEditor.class.st b/source/GM-TE/GMTEEditor.class.st index 750c25e9..b18a27a5 100644 --- a/source/GM-TE/GMTEEditor.class.st +++ b/source/GM-TE/GMTEEditor.class.st @@ -637,7 +637,7 @@ GMTEEditor >> createCommandBarSpecWithBuilder: aBuilder [ { #category : #building, - #'squeak_changestamp' : 'jj 6/22/2024 20:42' + #'squeak_changestamp' : 'tw 7/11/2024 17:48' } GMTEEditor >> createInspectorSpecWithBuilder: aBuilder [ "creates the spec for the inspector tab" @@ -652,8 +652,6 @@ GMTEEditor >> createInspectorSpecWithBuilder: aBuilder [ children: { self createAttributeSpecWithBuilder: aBuilder descriptor: 'Padding:' getter: #getPaddingAsString setter: #setPadding: model: self. - self createAttributeSpecWithBuilder: aBuilder descriptor: 'Tile Ratio:' getter: #getTileRatioAsString setter: #setTileRatio: model: self. - self createAttributeSpecWithBuilder: aBuilder descriptor: 'Grid Width:' getter: #getGridWidthAsString setter: #setGridWidth: model: self. self createAttributeSpecWithBuilder: aBuilder descriptor: 'Grid Height:' getter: #getGridHeightAsString setter: #setGridHeight: model: self From 624629ab92c5986f5bdcb4af69799cdc7dd306f2 Mon Sep 17 00:00:00 2001 From: Aleksander Morgensterns Date: Thu, 11 Jul 2024 18:07:56 +0200 Subject: [PATCH 3/3] fixed wrong resizing of layers --- source/GM-TE/GMTEEditor.class.st | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/GM-TE/GMTEEditor.class.st b/source/GM-TE/GMTEEditor.class.st index 750c25e9..076cb7de 100644 --- a/source/GM-TE/GMTEEditor.class.st +++ b/source/GM-TE/GMTEEditor.class.st @@ -665,7 +665,7 @@ GMTEEditor >> createInspectorSpecWithBuilder: aBuilder [ { #category : #building, - #'squeak_changestamp' : 'Alex M 7/10/2024 02:14' + #'squeak_changestamp' : 'Alex M 7/11/2024 18:04' } GMTEEditor >> createLayersSpecWithBuilder: aBuilder [ "creates the spec for layer viewer" @@ -673,6 +673,7 @@ GMTEEditor >> createLayersSpecWithBuilder: aBuilder [ ^ (aBuilder pluggablePanelSpec new) name: 'layer viewer'; model: self; + minimumExtent:150 @ 150; frame: (LayoutFrame fractions: (0.8 @ 0.25 corner: 1 @ 1)); children: { @@ -766,7 +767,7 @@ GMTEEditor >> createLayersSpecWithBuilder: aBuilder [ { #category : #building, - #'squeak_changestamp' : 'tw 7/11/2024 16:46' + #'squeak_changestamp' : 'Alex M 7/11/2024 18:04' } GMTEEditor >> createTileViewerSpecWithBuilder: aBuilder [ "creates the spec for the tile viewer" @@ -789,7 +790,7 @@ GMTEEditor >> createTileViewerSpecWithBuilder: aBuilder [ fractions: (0 @ 0 corner: 1 @ 0.9)) }; - minimumExtent:150@150; + minimumExtent:150 @ 150; yourself ]