Display panel can display circuit amount as text

by Quezler

When you leave the label empty (or when it is a valid number) it'll show the circuit amount.

Utilities
16 hours ago
2.0
230
Circuit network

Changelog

Version: 1.0.6
Date: 2024. 11. 26
  Info:
    - Fix rare "attempt to index local surfacedata" control.lua:200 crash
Version: 1.0.5
Date: 2024. 11. 19
  Info:
    - Fix old worlds that had display posts not yet migrated into sign posts
Version: 1.0.4
Date: 2024. 11. 17
  Info:
    - Fix crash when a (new) mod creates a new surface in their on_init
Version: 1.0.3
Date: 2024. 11. 15
  Info:
    - Suggest the presence of newsletter-for-mods-made-by-quezler
Version: 1.0.2
Date: 2024. 11. 14
  Info:
    - Require the presence of newsletter-for-mods-made-by-quezler
Version: 1.0.1
Date: 2024. 11. 14
  Info:
    - Fix crash when mining a display panel
Version: 1.0.0
Date: 2024. 11. 13
  Info:
    - Mod portal release
Version: 0.0.2
Date: 2024. 11. 13
  Info:
    - Test reading messages
    - Update the text of the message
    - Only evaluate a message if the text is nil or number
    - See what would happen if you tried to edit it while the gui is open
    - Draft up code to support being conditionally selected by players
    - Change how i deal with selected structs
    - Constantly update while a player has the gui open
    - Cache always_show and show_in_chart
    - Doesn't really make sense to check upon selection end
    - Do not update when the gui is open and no one has alt mode on
    - Ignore cached always_show while you have the gui open
    - Keep track of which surfaces have players looking at them
    - Only tick structs on observed surfaces
    - Drop compatibility with earlier development versions of this mod
    - Make it clear storage.observed_surfaces exists, even though it gets reset on the next line
    - Ensure storage.alt_mode is always populated with booleans
    - Move the surface populator to a handler too
    - Convert storage.structs_on_surface to storage.surfacedata
    - Update structs that show in chart every tick
    - Cleanup comments
    - Cleanup the struct when the display panel deathrattles
    - Tick the display panels when selected/opened again
    - Track which players are viewing a surface with alt mode
    - Only update surface wide display panels in always_show mode
    - Document performance
    - Fix adding this mod to worlds with existing display panels
    - Measure how many structs actually got ticked
    - Do not tick for 10 seconds if it had no wires
    - Skip updating structs without wires
    - Awaken display panels when you touch them
    - Only tick always show display panels when there is a player nearby
    - Do not tick the always show ones when blurred to remote view
    - Disable `ticked_this_tick` debug
    - Fix deconstruction planner crash
    - Add thumbnail
Version: 0.0.1
Date: 2024. 11. 13
  Info:
    - Initial commit