mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Markers added by procedural generation have custom notes depending on the type of marker (e.g. dungeons have a procedurally generated map); however, the notes for markers manually added by the user are empty. This patch separates the cell selection logic from the legend and name generation logic in markers-generator.js, so that the latter can be shared with manually added markers. There is some additional simplifications such as storing the dx/dy/px/min/each values directly in the markers table to simplify the writing of the generic "list and add" loop in `generateTypes()`. Currently, the legend is only generated when adding a marker of the same type as an existing marker, and only when a legend generation function is available for that type. To generate a marker of a type that is not currently present on the map, one must first change the type field of an existing marker (which will not get a procedural note), then use "Add additional marker of that type". The UI for this can be improved later. Co-authored-by: Basile Clement <basile-github@clement.pm> |
||
|---|---|---|
| .. | ||
| 3d.js | ||
| battle-screen.js | ||
| biomes-editor.js | ||
| burg-editor.js | ||
| burgs-overview.js | ||
| coastline-editor.js | ||
| cultures-editor.js | ||
| diplomacy-editor.js | ||
| editors.js | ||
| elevation-profile.js | ||
| emblems-editor.js | ||
| general.js | ||
| heightmap-editor.js | ||
| hotkeys.js | ||
| ice-editor.js | ||
| labels-editor.js | ||
| lakes-editor.js | ||
| layers.js | ||
| markers-editor.js | ||
| markers-overview.js | ||
| measurers.js | ||
| military-overview.js | ||
| namesbase-editor.js | ||
| notes-editor.js | ||
| options.js | ||
| provinces-editor.js | ||
| regiment-editor.js | ||
| regiments-overview.js | ||
| relief-editor.js | ||
| religions-editor.js | ||
| rivers-creator.js | ||
| rivers-editor.js | ||
| rivers-overview.js | ||
| routes-editor.js | ||
| states-editor.js | ||
| style.js | ||
| stylePresets.js | ||
| temperature-graph.js | ||
| tools.js | ||
| units-editor.js | ||
| world-configurator.js | ||
| zones-editor.js | ||