Skip to content

AsciiGrid

infinity8 edited this page Jan 21, 2017 · 1 revision

Added in 1.4.0 is the AsciiGrid focus editor for MultilineString elements.

MainView

You can get to this by setting the 'IsAsciiGrid' attribute to true on the definition, then clicking the edit button to the right of the element (as in the picture above). This will display the asciigrid editor in the focus tool. Along the top is the control panel, with the various editor modes and the controls for them. There are currently 4 available modes: Draw, MagicWand, Draw and Shape.


Normal Mode

This modes allows selecting tiles and using the keyboard to fill them in. Click on the grid anywhere to select that tile. You can then navigate the selection around using the arrow keys, or by clicking somewhere else. Type a key to fill in those tiles with the typed character, or click delete to clear them.

MultiSelect

You can click and draw to multiselect tiles to do fill/clear as a group. You can also copy/cut/paste those tiles.

Delete Fill

If you type outside the current grid the grid will be expanded to contain this new point. The light grey background shows you the area that will be written into the data.

Expand1 Expand2

You can also hold alt to temporarily switch to the MagicWand mode.


Magic Wand Mode

This mode allows for selecting all the tiles containing the clicking character. An option for whether the selection should be Continuous or global is checkable at the top.

MagicWand1 MagicWand1

You can also type a character to select all of that character.


Draw Mode

This mode allows freehand drawing of characters into the grid. Type a character to set the brush to that character (or press delete to change to erase mode) then simply draw into the grid.

Draw

You can hold alt in this mode to switch to eyedropper mode. Then click on a character in the grid to set the brush to that character.


Shape Mode

This mode allows inserting various shapes. Each shape has a border and fill character. Currently the shapes Rectangle, Line and Ellipse are supported. Type a character to change the border charater to that one. To change the fill colour click on the fill character box in the bar to the top, then click a tile or type a character to set the fill character to it.

Rectangle Line Ellipse

Clone this wiki locally