A plugin that allows you to format the stats UI in AID. Through the configuration object found in shared.js
you can change how the stats are ordered, aligned and/or whether the label should be displayed.
const statsFormatterConfig = {
order: ["Author's Note", "Scene", "Think", "Focus", "World Info"], // an array of strings corresponding with the label of the stats
alignVertical: true,
truncateLabels: true
}
This is meant to be used in conjunction with other scripts that actually "do" something with the state.displayStats
functionality built within AID.
If you are creating your own script that modifies the state.displayStats
array, consider using this plugin to help you display it nicely.
To use, you simply run the execute
function after you have made changes to state.displayStats
:
statsFormatterPlugin.execute(statsFormatterConfig)