EMOF Examples


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

2 days ago
2.0
4
Cheats
Owner:
djfariel
Source:
https://github.com/djfariel/emof-examples
Homepage:
https://github.com/djfariel/emof-examples
License:
MIT
Created:
2 days ago
Latest Version:
0.1.0 (2 days ago)
Factorio version:
2.0
Downloaded by:
4 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 >= 0.1.0.

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.