矿物地图标签 (Ore Map Labels)

by wei937

在地图上以中文名字显示矿物及贮量,快捷栏按钮可显示/隐藏标签。

Utilities
5 hours ago
2.1
0

Changelog

Version: 0.1.6
Date: 2026-11-09
  Bugfixes:
    - Fixed map text shrinking when zooming out. scale_with_zoom is now true, so labels keep a
      constant on-screen size like the vanilla map labels.
Version: 0.1.5
Date: 2026-11-09
  Changes:
    - Much bigger map text (large bold font + larger scale).
Version: 0.1.4
Date: 2026-11-09
  Changes:
    - Rewrote ore grouping: aggregate per 32x32 chunk first, then merge adjacent same-ore chunks,
      so one connected ore field gets exactly one label.
    - Much faster: no more per-entity neighbour scan (fixes the lag when toggling/loading).
    - Larger map text.
Version: 0.1.3
Date: 2026-11-09
  Changes:
    - Merged connected ore patches into one field: one label per ore deposit (name + total), not one per chunk.
    - Much larger map text and text no longer shrinks when zooming out.
Version: 0.1.2
Date: 2026-11-09
  Changes:
    - Labels are now drawn only on the map (render_mode = "chart") instead of in the world view.
    - Resources are aggregated per 32x32 chunk; one label per chunk showing the total amount.
Version: 0.1.1
Date: 2026-11-09
  Bugfixes:
    - Fixed load error on Factorio 2.1 (updated to the new LuaRendering API:
      rendering.clear(mod_name) instead of the removed is_valid/destroy).
Version: 0.1.0
Date: 2026-11-09
  Features:
    - Draws a map label (localised name + amount) above every resource patch.
    - Added a shortcut-bar button to toggle the labels on/off.