klikli-dev / modonomicon

Data-driven minecraft in-game documentation with progress visualization.
22 stars 9 forks source link

The Navigationing #197

Closed DaFuqs closed 3 months ago

DaFuqs commented 3 months ago

Why?

Lots of the mouse and keyboard gestures in BookContentScreen could not be used in BookSearchScreen. There also were some inconsistencies that felt unintutive that have been unified in this PR.

How?

Since BookContentScreen and BookSearchScreen were kind of similar internally and used quite a bit of identical code, I introduced BookPaginatedScreen as a super class and pulled up all of the relevant methods. Most code from BookContentScreen that handled navigation was unified to match both cases and some additional gestures introduced or changed.

Changes

Both Content and Search screens can now