MapEditor
Map editing context for the currently open map editor in SLADE.
Properties
| Property | Type | Description |
|---|---|---|
| The current edit mode (see Mode) | ||
| The current sector edit mode (see SectorMode) | ||
| The current grid size | ||
| The map associated with this editor |
Enumerations
Mode
Values: Vertices, Lines, Sectors, Things, Visual
SectorMode
Values: Both, Floor, Ceiling
Constructors
No Constructors
This type can not be created directly in scripts.
Functions
selectedVertices
[boolean try_highlight :false]: Whether to get the current highlight if nothing is selected
Returns
Returns an array of all currently selected vertices. If nothing is selected and true, the currently highlighted vertex is returned in the array.
selectedLines
[boolean try_highlight :false]: Whether to get the current highlight if nothing is selected
Returns
Returns an array of all currently selected lines. If nothing is selected and true, the currently highlighted line is returned in the array.
selectedSectors
[boolean try_highlight :false]: Whether to get the current highlight if nothing is selected
Returns
Returns an array of all currently selected sectors. If nothing is selected and true, the currently highlighted sector is returned in the array.
selectedThings
[boolean try_highlight :false]: Whether to get the current highlight if nothing is selected
Returns
Returns an array of all currently selected things. If nothing is selected and true, the currently highlighted thing is returned in the array.
clearSelection
Deselects all currently selected items
select
MapObject object : TheMapObject to (de)select[boolean select :true]: Whether to select or deselect the object
Selects or deselects the given
setEditMode
number mode : The edit mode to switch to[number sector_mode :MapEditor.SectorMode.Both]: The sector edit mode to switch to
Sets the edit mode to the given MapEditor.Mode.Sectors, the