From a976043a04a425e8387941bc90b56da021405f7c Mon Sep 17 00:00:00 2001 From: Aleksander Morgensterns Date: Tue, 28 May 2024 02:12:02 +0200 Subject: [PATCH] smol fix --- source/GM-TE/GMTEEditor.class.st | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source/GM-TE/GMTEEditor.class.st b/source/GM-TE/GMTEEditor.class.st index ca360d5d..058380fb 100644 --- a/source/GM-TE/GMTEEditor.class.st +++ b/source/GM-TE/GMTEEditor.class.st @@ -255,7 +255,7 @@ GMTEEditor >> createCommandBarWithBuilder: aBuilder [ { #category : #building, - #'squeak_changestamp' : 'Alex M 5/23/2024 01:51' + #'squeak_changestamp' : 'Alex M 5/28/2024 02:03' } GMTEEditor >> createLayersWithBuilder: aBuilder [ ^aBuilder pluggableListSpec new @@ -267,7 +267,7 @@ GMTEEditor >> createLayersWithBuilder: aBuilder [ "A LOT OF MOCKUP CODE" model: self; getSelected: #selectedLayer; - setSelected: #selectedLayer:; + setSelected: #selectLayer:; list: #layerList; autoDeselect: false; "minimumWidth:100;" @@ -627,6 +627,18 @@ GMTEEditor >> resetAll [ self tileMapMatrix resetAll ] +{ + #category : #accessing, + #'squeak_changestamp' : 'Alex M 5/28/2024 02:11' +} +GMTEEditor >> selectLayer: anObject [ + + selectedLayer := anObject. + self changed: #selectedLayer. + "self LAYER_TEST: self selectedLayer last asString asInteger" + "^^^ Use something like that later on?" +] + { #category : #accessing, #'squeak_changestamp' : 'Alex M 5/24/2024 00:40'