chiyadev / genshin-schedule

🕑 Genshin farming scheduler
https://genshin.chiya.dev
MIT License
72 stars 17 forks source link

Add support for custom resin buttons #106

Closed luaneko closed 2 years ago

luaneko commented 2 years ago

Resolves #84

This adds support for an arbitrary number of custom add/subtract buttons for the resin calculator. For example, buttons customized like this:

image

will appear like this:

image

Primajin commented 2 years ago

When I manually add 60 and then substract it again, the statsitics on resins spent somehow misses that - does using that button solve that as well?

luaneko commented 2 years ago

When I manually add 60 and then substract it again, the statsitics on resins spent somehow misses that - does using that button solve that as well?

Yes. When the input is edited manually, the edited difference is subtracted from "resins spent" statistics. It behaves that way because it is intended to undo the mistake of subtracting too much. The new addition buttons added in this PR don't subtract from "resins spent" statistics because they are specifically intended to be used for resin gains like Fragile Resins.

Primajin commented 2 years ago

Ooohh perfect, thank you so much! 🚀