scmJS docs

The editor window

The window has nine parts, numbered in the picture below.

The editor window with its parts numbered

  1. Menu bar. Every command is here, with its shortcut beside it. The dot beside the map's name, at the right, glows while the map has unsaved changes. In the editor at scmjs.dev the bar is the site's header as well (see The menu bar at scmjs.dev).
  2. Toolbar. New / open / save, undo and redo, cut / copy / paste, the active layer and brush size, the grid, locations and fog-of-war toggles, symmetry, find, zoom, and buttons for Player Settings, the Trigger Editor and Test Map.
  3. Layer rail. The seven layers, top to bottom: Terrain, Doodads, Units, Sprites, Locations, Fog of War, Cut / Copy / Paste. The keys T D U S L F C switch between them.
  4. Palette. What the active layer places: terrain types and brushes, doodads, unit types, sprites, the location list, the fog players, the clipboard options.
  5. Map. Drag to paint or place, click to select, double-click for properties. Right-click opens a context menu, or stops whatever you are placing.
  6. Minimap. Click or drag on it to move the view.
  7. Layers panel. The eye hides a layer's objects from the view; the padlock locks a layer so its tools stop changing the map. Plugin overlays (Walkability, say) are listed under it.
  8. Properties. What is selected, or what is under the cursor: for a tile its id, group, elevation, walkability and buildability; for a unit its owner, position and vitals; for a location its bounds and elevation flags.
  9. Status bar. The tile and pixel under the cursor, the tile id, map size, tileset, layer and zoom, and a line saying what the last action did or why it was refused. At the right end, your scmjs.dev account (or Sign in to scmjs.dev), and the AI cell when the AI is on; each is a click to open.

The menu bar at scmjs.dev#

The editor at scmjs.dev is one of the site's three parts, with the play page and replays, and its menu bar says so. Nothing below is in the desktop app, in a container or in an editor hosted anywhere else, which have none of those pages.

These are links, and they leave the editor in the same tab. With unsaved changes the browser asks before it goes, as it does when you close the tab; Ctrl+click or a middle click opens the page in a new tab and keeps the editor where it is.

In a narrow window the menus keep the bar and these give way, in this order: the words in the game's files box (its dot stays, and pointing at it says what it stands for), the map's name (its dot stays), then Library, Replays, Play and the box. The mark stays, and the site's home page has all of them.

Several maps#

Open a second map and a row of tabs appears under the toolbar, one per open map, with a glowing dot on any that has unsaved changes. Click a tab to switch, or use the Window menu (Ctrl+Tab and Ctrl+Shift+Tab in the desktop app). The × on a tab, a middle click, or File ▸ Close Map closes that map, asking about unsaved changes first. Each map keeps its own undo history, selection and view, so switching back lands where you left off.

With one map open the row is hidden. To work on one map at a time, untick Open each map in its own tab in Preferences ▸ General; Open and New then replace the open map.

Moving around#

Undo#

Every layer has its own selection and its own palette. Undo is Ctrl+Z and redo Ctrl+Y. The history is two hundred steps deep and shared across all the layers, so a terrain stroke and the units it stranded come back together. In a dialog such as Player Settings, the triggers or the strings, nothing changes until OK or Apply, and each OK or Apply that changed something is one more undo step ("Edit triggers", "Edit settings"), in the same history as the strokes around it.

scmJS 0.18.0 · Generated from the repository. The source is under the MIT license, which does not cover what ATTRIBUTION.md lists. StarCraft and Brood War are trademarks of Blizzard Entertainment; this project ships none of their data.