AamuLumi / Rimworld-Diary

Rimworld mod to write, read and export colony's tales.
MIT License
7 stars 0 forks source link

Add a Grouped Log Entry #13

Open AamuLumi opened 1 year ago

AamuLumi commented 1 year ago

The purpose of the grouped log entry is to aggregate some entries into one. The idea is proposed in this comment.

Examples:

- colonist ranged combat log entry X animal as target = hunting activity
- colonist any combat log entry X another human = duel
- several colonists combat log entries X several targets = shotout

It needs a rework of the data storage model, because the storage is currently a Dictionary<string, string> (see this line). Adding a proxy object before the string entry could solve easily the problem.

It also needs a refresh of the UI : we cannot manage Grouped Log Entry with a simple text area. Maybe we can replace the text area with a list of grouped entry and texts, but the UX will be sharper. Maybe we can implement something like Code Folding in text editors which can solve the problem.