TombRunners / autosplitters

Tomb Raider Livesplit autosplitter code.
MIT License
1 stars 4 forks source link

Tracker for secrets / Max% etc. categories. #40

Open rtrger opened 2 years ago

rtrger commented 2 years ago

LiveSplit could display how many items you collected, how many secrets you found during your attempt etc.

Some work has been done on this on the branch feature\tr2-counters.

MidgeOnGithub commented 2 years ago

From my duplication of this issue:

This requires developing an actual graphical component for LiveSplit: a multi-line set of counters. Ideally they would have behaviors and sizing similar to the existing Splits component. The counters should be able to be advanced somehow, perhaps by being tied into LiveSplitState (OnSplit comes to mind).

The counters should include an optional "target" value for the case of tracking collectibles/progress versus a target. Ideally, the number of counters and their targets could be set by the user in the Layout Editor menu; consider saving/loading from a JSON or XML configuration so runners can save/load standardized templates for runs, e.g., Secrets, Max%, etc.

rtrger commented 2 years ago

I'd advance the counters through MemoryWatcher's OnChanged event: https://github.com/LiveSplit/LiveSplit/blob/master/LiveSplit/LiveSplit.Core/ComponentUtil/MemoryWatcher.cs#L228