module

Automatic Journal Icon Numbers

Endorsements
5
Installs
1.93%
Comments
0
Latest versionv1.9.3
Minimum Core10
Compatible Core12.324
File size0 B
Last updated5 months ago
Created4 years ago
Authors
Languages English
Português (Brasil)
Spanish
日本語
Systems All systems
Dependencies lib - ColorSettings
Project source Project URL
Report bugs Bug tracker URL
Read-me Readme URL
Changelog Changelog URL

Features

This module will automatically apply numbered icons (map pins) to journal entries that start with a number. It supports the following numbering formats automatically, with both upper and lower cases.

  • [0-9999]
  • [A-Z][0-999]
  • [0-999][A-Z]
  • Icon based on folder name (i.e. 'Village', or 'Cave')
  • [A-Z].
  • [A-Z] (space)
  • [0-9999].
  • Custom RegEx matching
  • Image from the journal

The last five are disabled by default, and they all can be enabled/disabled in the settings menu

Example of assorted pins on a map

You can manually specify arbitrary text in an icon; though a max of 3 characters is recommended for legibility, but 4 may work in some cases. You can also disable the mod on specific pins if you wish to use the stock icons.

Additionally, you can set a default stock icon for a group of journal entries by putting them in a folder named like one of the default icons like "Village", "Temple", "Book".

Usage

To use, just drag correctly named journals to your map. The icon will be automatically selected to match the name. Alternatively, you can manually enter the icon text in the Map Note Configuration window.

You can select a default global style of shape, color and font in the settings menu, and also override all of thm on a per-pin basis.

The above screenshot uses the Backgroundless Pins mod which is highly recommended.

Matching and RegEx details

  • All matching is done in the order seen in the settings page
  • Built in regexs
    • /^d{1,3}[a-zA-Z]/
    • /^[a-zA-Z]d{1,3}/
    • /^d{1,4}/
    • /^([a-zA-Z]) /
    • /^([a-zA-Z])./
  • Custom Regex
    • No need for leading or trailing /.
    • You should start with ^ to match off the first character of the journal title
    • The last match-group used will be returned
    • Multiple values can be separated | separated.
      • e.g. ^d:d|^[a-zA-Z].d{1,2}
    • Use CONFIG.debug.journal_icon_numbers = true in the console for debugging
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x