Loads the document from disk.
New from scratch
Specifies the current edit mode
Puts the loaded tiles onto a TileLayer
Assigns an imported tilemap to the currently selected layer.
Moves the priority of a layer.
Clears selection area.
Scrolls the selected layer by the amount set. Should be called for every frame.
Creates a copy event if called. Uses the internal states of this document.
Copies an area on a tilelayer to a MapClipboard item.
Creates a cut event if called. Uses the internal states of this document.
Deletes the selected area.
Fills selected area with selected tile, using overwrite rules defined by the materiallist.
Flips selected tiles horizontally.
Flips selected tiles vertically.
Moves the selected area by the given amounts.
Returns the next available layer number.
Context menu for selection events go here
Creates a paste event if called. Uses the internal states of this document.
Removes a layer.
Removes a tile from the material list.
Renames a layer.
Renames a tile on the material list.
Scrolls the selected layer by a given amount.
Mirrors selected items horizontally and vertically.
Mirrors selected items horizontally.
Mirrors selected items vertically.
Sets the continuous scroll amounts.
Updates the layers for this document.
Updates the material list for the selected layer.
Updates the selection on the raster window.
If set, then selection is shown
If set, then layer is being scrolled.
To solve some "debounce" issues around mouse click releases
If set, tilePlacement overrides only transparent (0xFFFF) tiles.
Contains the selected layer area parameters in pixels
Per document event stack
Null if not yet saved, otherwise name of the target file
Various status flags combined into one.
Local layerinfo for data lookup
Used to reduce duplicate data as much as possible
Contains the selected map area parameters
Mose event mode selector
Window used to output the screen data
Used for adding the palette for the document
Previous mouse X position
Previous mouse Y position
Continuous X scroll amount
Continuous Y scroll amount
Indicates the currently selected layer
Currently selected mapping element to write, including mirroring properties, palette selection, and priority attributes
Individual document for parallel editing