Skip to content

Commit

Permalink
scaled down icons, iconised "add layer"
Browse files Browse the repository at this point in the history
  • Loading branch information
RedToxyl committed Jun 23, 2024
1 parent 07ade33 commit 73132f6
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 21 deletions.
9 changes: 8 additions & 1 deletion .squot-materialize
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
#package : MCPackage {
#name : 'GM-TE'
},
#path : @57
#path : @4
},
SquotPlaintextMapper {
#path : FSAbsolutePath [
Expand Down Expand Up @@ -229,6 +229,13 @@
],
#encoding : 'TXT'
},
SquotImageMapper {
#path : FSAbsolutePath [
'GMTEIcons',
'add.png'
],
#encoding : @21
},
SquotTonelMapper {
#package : MCPackage {
#name : 'GM-TilemapMakerCore'
Expand Down
Binary file added GMTEIcons/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/broom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/eye.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/merge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/rename.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/trash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified GMTEIcons/up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 20 additions & 20 deletions source/GM-TE/GMTEEditor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ GMTEEditor >> createInspectorSpecWithBuilder: aBuilder [

{
#category : #building,
#'squeak_changestamp' : 'jj 6/22/2024 20:44'
#'squeak_changestamp' : 'TW 6/23/2024 23:14'
}
GMTEEditor >> createLayersSpecWithBuilder: aBuilder [
"creates the spec for layer viewer"
Expand All @@ -439,66 +439,65 @@ GMTEEditor >> createLayersSpecWithBuilder: aBuilder [
name: 'layer viewer';
model: self;
frame: (LayoutFrame
fractions: (0.8 @ 0.25 corner: 1 @ 1)
offsets: (0 @ 30 corner: 0 @ 0));
fractions: (0.8 @ 0.25 corner: 1 @ 1));
children: {
(aBuilder pluggableButtonSpec new)
name: 'addLayer';
label: 'add Layer';
model: self;
action: #addLayer;
frame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 0) offsets: (0 @ 0 corner: 0 @ 30)).

(aBuilder pluggablePanelSpec new)
frame: (LayoutFrame fractions: (1 @ 0 corner: 1 @ 1) offsets: (-30 @ 30 corner: 0 @ 0));

children: {
children: {
(aBuilder pluggableImageButtonSpec new)
model:self;
action: #addLayer;
frame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 0.125));
project: 'GameMecha';
path: '/GMTEIcons/add.png'.

(aBuilder pluggableImageButtonSpec new)
model:self;
action: #moveLayerDown;
frame: (LayoutFrame fractions: (0 @ 0 corner: 1 @ 0.083));
frame: (LayoutFrame fractions: (0 @ 0.125 corner: 1 @ 0.25));
project: 'GameMecha';
path: '/GMTEIcons/up.png'.

(aBuilder pluggableImageButtonSpec new)
model:self;
action: #moveLayerUp;
frame: (LayoutFrame fractions: (0 @ 0.083 corner: 1 @ 0.166));
frame: (LayoutFrame fractions: (0 @ 0.25 corner: 1 @ 0.375));
project: 'GameMecha';
path: '/GMTEIcons/down.png'.

(aBuilder pluggableImageButtonSpec new)
model: self;
action: #renameLayer;
frame: (LayoutFrame fractions: (0 @ 0.166 corner: 1 @ 0.333));
frame: (LayoutFrame fractions: (0 @ 0.375 corner: 1 @ 0.5));
project: 'GameMecha';
path: '/GMTEIcons/rename.png'.

(aBuilder pluggableImageButtonSpec new)
model:self;
action:#resetSelectedLayers;
frame: (LayoutFrame fractions: (0 @ 0.333 corner: 1 @ 0.5));
frame: (LayoutFrame fractions: (0 @ 0.5 corner: 1 @ 0.625));
project: 'GameMecha';
path: '/GMTEIcons/broom.png'.

(aBuilder pluggableImageButtonSpec new)
model:self;
action: #blendSelectedLayers;
frame: (LayoutFrame fractions: (0 @ 0.5 corner: 1 @ 0.666));
frame: (LayoutFrame fractions: (0 @ 0.625 corner: 1 @ 0.75));
project: 'GameMecha';
path: '/GMTEIcons/merge.png'.

(aBuilder pluggableImageButtonSpec new)
model:self;
action: #deleteSelectedLayers;
frame: (LayoutFrame fractions: (0 @ 0.666 corner: 1 @ 0.833));
frame: (LayoutFrame fractions: (0 @ 0.75 corner: 1 @ 0.875));
project: 'GameMecha';
path: '/GMTEIcons/trash.png'.

(aBuilder pluggableImageButtonSpec new)
model:self;
action: #toggleSelectedLayerVisibility;
frame: (LayoutFrame fractions: (0 @ 0.833 corner: 1 @ 1));
frame: (LayoutFrame fractions: (0 @ 0.875 corner: 1 @ 1));
project: 'GameMecha';
path: '/GMTEIcons/eye.png'}.

Expand Down Expand Up @@ -598,7 +597,7 @@ GMTEEditor >> createTraySpecWithBuilder: aBuilder [

{
#category : #'layer button functions',
#'squeak_changestamp' : 'jj 6/23/2024 22:35'
#'squeak_changestamp' : 'TW 6/23/2024 22:51'
}
GMTEEditor >> deleteSelectedLayers [
"deletes all selected layers unless this would delete all layers"
Expand All @@ -608,7 +607,8 @@ GMTEEditor >> deleteSelectedLayers [
self tileMap removeLayers: self selectedLayers.
self
deselectAllLayers;
changed: #getLayerList
changed: #getLayerList;
selectOnlyLayer: self layerCount
]

{
Expand Down

0 comments on commit 73132f6

Please sign in to comment.