SquidDev-CC / artist

A Rather Tremendous Item SysTem
BSD 3-Clause "New" or "Revised" License
36 stars 12 forks source link

Statistics mode #12

Closed SquidDev closed 2 years ago

SquidDev commented 6 years ago

Effectively add the ability to write to external monitors some statistics about the system. For instance:

The big question here is how we let users display this. I'm thinking a "monitor name" ⇒ "list of components". So something like:

stats_monitors = {
  left = {
    -- Show a list of inventories, #slots and a percentage/barchart
    { type = "inventories" },
    -- Show the top 10 items
    { type = "items", limit = 10, sort = "count" },
  }
}

Obviously this is really restrictive though. Maybe we should just allow people to write programs which are run on each item_change event and provide some built-in methods for drawing things like that?