mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Tileset dialog for Tilorswift and fix for adding rows.
This commit is contained in:
@@ -13,6 +13,7 @@ const TilorswiftEvent = {
|
||||
ADD_COLUMNS_CLICKED: 'addColumnsClicked',
|
||||
NEW_TERRAIN: 'newTerrain',
|
||||
NEW_TERRAIN_CLICKED: 'newTerrainClicked',
|
||||
TILESET_SELECTED: 'tilesetSelected',
|
||||
};
|
||||
|
||||
export default TilorswiftEvent;
|
||||
@@ -2,12 +2,11 @@ import TilorswiftEvent from "./TilorswiftEvent.js";
|
||||
|
||||
export default class TilorswiftNewTerrainEvent extends Event
|
||||
{
|
||||
constructor(tileset, tilesX, tilesY)
|
||||
constructor(tilesetIndex, tilesX, tilesY)
|
||||
{
|
||||
super(TilorswiftEvent.NEW_TERRAIN);
|
||||
this.tileset = tileset;
|
||||
this.tilesetIndex = tilesetIndex;
|
||||
this.tilesX = tilesX;
|
||||
this.tilesY = tilesY;
|
||||
this.backgroundColor = '#6096ff';
|
||||
}
|
||||
}
|
||||
9
tilorswift/js/events/TilorswiftTilesetSelectedEvent.js
Normal file
9
tilorswift/js/events/TilorswiftTilesetSelectedEvent.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import TilorswiftEvent from "./TilorswiftEvent.js";
|
||||
|
||||
export default class TilorswiftTilesetSelectedEvent extends Event
|
||||
{
|
||||
constructor(tilesetIndex) {
|
||||
super(TilorswiftEvent.TILESET_SELECTED);
|
||||
this.tilesetIndex = tilesetIndex;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user