Skip to content

Commit

Permalink
added export as morph functionality to export button
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Morgensterns committed May 24, 2024
1 parent 68dabad commit 1eccc37
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ GMTEEditor >> commandBar: anObject [

{
#category : #building,
#'squeak_changestamp' : 'Alex M 5/23/2024 01:50'
#'squeak_changestamp' : 'Alex M 5/24/2024 18:31'
}
GMTEEditor >> createCommandBarWithBuilder: aBuilder [
^aBuilder pluggablePanelSpec new
Expand All @@ -202,6 +202,7 @@ GMTEEditor >> createCommandBarWithBuilder: aBuilder [
name: 'export';
label: 'Export';
model: self;
action: #exportAsMorph;
frame: (LayoutFrame fractions: (0 @ 0 corner: 0.25 @ 1) offsets: nil).
aBuilder pluggableButtonSpec new
name: 'saveAsImage';
Expand Down Expand Up @@ -368,6 +369,15 @@ GMTEEditor >> exportAsImage [
self tileMapMatrix exportAsImage
]

{
#category : #'button functions',
#'squeak_changestamp' : 'Alex M 5/24/2024 18:18'
}
GMTEEditor >> exportAsMorph [

self tileMapMatrix saveOnFile
]

{
#category : #'button functions',
#'squeak_changestamp' : 'TW 5/23/2024 13:57'
Expand Down

0 comments on commit 1eccc37

Please sign in to comment.