New map
	empties all variables  (reinitialize)
Open
	asks for XML level file & loads it
	(Minor ERROR if chipset not found)
Save
	Generates XML level file, containing:
	- Number:MapSize X  (width)
	- Number:MapSize Y  (height)
	- Array:all events (objects)
	- String:chipset (filename)
	- 2dArray:tileUpperImage (palette index)
	- 2dArray:tileLowerImage (palette index)
	- 2dArray:tileTerrain (terrain index)
Save palette's terrain
	- Array:paletteTerrain (default terrain types for palette) (terrain index)

Chipset TextField
	loads the specified chipset, updates both panes
	(terrain is not affected)





Mode: tile mode
	tilePalette Pane:		= VISIBLE
		Clicking selects the tile to draw with.
		assigned terrain types = HIDDEN
	map Pane:
		clicking places selected tile in that location
	tileMode_btn = VISIBLE
	chipSet_txt = VISIBLE
	loadChipSet_btn = VISIBLE
	terrainType_dropList = HIDDEN
	Key: SPACE  =  DISABLED

Mode: terrain mode
	tilePalette Pane:		= VISIBLE
		assigned terrain types = VISIBLE
		sets default terrain type	
	map Pane:
		assigned terrain types = VISIBLE
		overwrites tile's terrain type
	tileMode_btn = HIDDEN
	chipSet_txt = HIDDEN
	loadChipSet_btn = HIDDEN
	terrainType_dropList = VISIBLE  (replaces ChipsetField)
		- ground
		- wall
		- water
	Key: SPACE  =  DISABLED
	
Mode: event mode
	tilePalette Pane		 = HIDDEN
	map Pane:
		clicking selects a location / event
	tileMode_btn = HIDDEN
	chipSet_txt = HIDDEN
	loadChipSet_btn = HIDDEN
	terrainType_dropList = HIDDEN
	KEY: SPACE  =  ACTIVE
		Create / Edit event  (opens event editor)
		Hides map editor  (no click-through)






(The ENTIRE map editor is deactivated while an event's command script editor is open.)
(When the event command script editor is closed, it re-activates this map editor, because the map editor is the event editor's parent.)