EMOF Examples


Reference Extensible Map Overlay Framework buttons plus a wonderful chart overlay demo.

a month ago
2.0 - 2.1
9
Cheats
Owner:
djfariel
Source:
https://github.com/djfariel/emof-examples
Homepage:
https://github.com/djfariel/emof-examples
License:
MIT
Created:
a month ago
Latest Version:
1.0.0 (a month ago)
Factorio version:
2.0 - 2.1
Downloaded by:
9 users

Companion mod for Extensible Map Overlay Framework. Runnable reference buttons for mod authors, plus a chart overlay demo you can turn on from Chart Controls.

Requires Extensible Map Overlay Framework.

Quick start

  1. Enable Extensible Map Overlay Framework and EMOF Examples.
  2. Open the map in chart view and open Chart Controls.
  3. Try the overlay toggle and action buttons; watch the chart and chat.

What it demonstrates

  • EMOF overlay toggle and action button registration in the data stage
  • Subscribing to emof-on-map-overlay-toggled and emof-on-map-action-clicked
  • Syncing overlay state with get_player_toggle on join and config change
  • Per-player chart rendering with rendering (render_mode = "chart")
  • Stateful overlay runtime: storage, cleanup, tick-driven updates
  • Action buttons gated on whether an overlay is currently enabled
  • Runtime per-user mod setting plus storage-backed count while playing

The overlay is cosmetic chart rendering only. Toggle it off to clean up.

For mod authors

Source and code walkthrough: GitHub repository. Integration guide: EMOF documentation.md.