Jazz2/Editor/Tools/EditorTool.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::Tiles
Tile sets and maps.
namespace Jazz2::UI
User interface and menus.
namespace Jazz2::UI::Windows
Toolkit of windows, panels and controls, compiled only if WITH_UI_WINDOWS.
namespace Jazz2::Editor

Classes

struct Jazz2::Editor::ToolSettings
Options shared by the tools, kept with the settings of the editor.
struct Jazz2::Editor::ToolOptionItem
A value of an option of a tool, or a toggle, see ToolOptionsBuilder.
class Jazz2::Editor::ToolOptionsBuilder
Makes the options of a tool, shown in the toolbar while the tool is chosen, see EditorTool::BuildOptions().
class Jazz2::Editor::EditorTool
Tool used in the view of the level editor.
class Jazz2::Editor::ToolManager
Keeps the tools and which of them is used.

Enums

enum class EditorToolType : std::uint8_t { Brush, Eraser, Rectangle, Fill, Eyedropper, Select, Wand, Hand, Event, Measure, Path, Smart, Ground, TilePixels, Shape, Count }
Tool of the level editor.
enum class TileModifierMode : std::uint8_t { Keep, Normal, Translucent, Invisible, Heat }
Modifier of tiles the tile tools paint, see Formats::TileRecord::ModifierMask.
enum class ToolShape : std::uint8_t { Line, Rectangle, Ellipse, FilledEllipse }
Shape the shape tool draws.
enum class EventPlaceMode : std::uint8_t { Paint, Rectangle, Fill, Select }
How the event tool places the event of the stamp, or that it only selects events.

Enum documentation

enum class TileModifierMode : std::uint8_t

Modifier of tiles the tile tools paint, see Formats::TileRecord::ModifierMask.

Enumerators
Keep

As the tiles of the stamp have it

Normal

Neither translucent, invisible nor heat

Translucent

Translucent

Invisible

Invisible, solid but not drawn

Heat

Rows of pixels drawn wavily, as if seen through heat (see Formats::TileRecord::ModifierHeat)

enum class ToolShape : std::uint8_t

Shape the shape tool draws.

Enumerators
Line

A straight line

Rectangle

The outline of a rectangle

Ellipse

The outline of an ellipse

FilledEllipse

A filled ellipse

enum class EventPlaceMode : std::uint8_t

How the event tool places the event of the stamp, or that it only selects events.

Enumerators
Paint

Where it's clicked or dragged

Rectangle

On every empty tile of a rectangle

Fill

On the empty tiles of an area joined to the tile clicked, of the same kind of tiles, solid or not

Select

Nowhere, a drag selects the events in a rectangle as the select tool selects tiles