- Export world backgrounds, thumbnails, and characters from Figma as SVGs;
there should be 9 SVG files for each world, use the following naming
convention:
src/svg/<WorldName>.svgsrc/svg/<WorldName>Gray.svgsrc/svg/<WorldName>Contrast.svgsrc/svg/<WorldName>Thumbnail.svgsrc/svg/<WorldName>ThumbnailGray.svgsrc/svg/<WorldName>ThumbnailContrast.svgsrc/svg/<WorldName><CharacterName>.svgsrc/svg/<WorldName><CharacterName>Gray.svgsrc/svg/<WorldName><CharacterName>Contrast.svg
- Add an entry for the new world to
Worlds.js- Each value in the
backgroundInfoobject is a key to look up in themessages.jsonfile
- Each value in the
- Add an entry for the new world to the
availableWorldOptionslist property ofWorldSelector.js- Worlds are ordered alphabetically, except for
Sketchpadwhich is always first
- Worlds are ordered alphabetically, except for
- Update the
'All worlds should be displayed as options and only one is checked'test inWorldSelector.test.jsfor the new world - Add entries to
messages.jsonUI.<WorldName>.name: the name of the world<WorldName>.character: the name of the character<WorldName>.label: the label used for the world in the Scene Background dialog<WorldName>.<CellInfo>: add one entry for each type of cell in the world'sbackgroundInfo; thesemessages.jsonentries are used to localize the cell descriptions
- To facilitate styling of the thumbnail when hovered in the Scene Background
dialog, add a
classNameattribute to those elements of the thumbnail SVGs that should be styled differently on hover - Add styles to
Worlds.scss- Styles for Default, Grayscale, and High Contrast themes (at least, adding styles for any other themes as needed)
- Character background in the Program Block Editor
- Grid line colour
- Drawing and character starting point colour
- Thumbnail hover colours