IvarK / AntimatterDimensionsSourceCode

MIT License
147 stars 127 forks source link

Sticky game header #3310

Open cyip92 opened 1 year ago

cyip92 commented 1 year ago

Is your feature request related to a problem? Please describe. On taller pages with lots of scrolling (primarily the time studies and glyph tabs), it can be annoying to be unable to see prestige resources and/or be able to switch tabs or subtabs without scrolling all the way back to the top. This also makes comparisons between values very tedious and/or difficult to do as well if they would otherwise require repeated scrolling back and forth and/or remembering the numbers.

Describe the solution you'd like The header and tab/subtab buttons should stay in a fixed spot on the page, even when scrolling down on taller subtabs.

Additional context This is arguably the most repeatedly requested UI feature request, so I think it's worth doing imo

DarkIntaqt commented 1 year ago

Hi, I'm currently more or less working on the feature (at least trying to). The current version I have works for both the classic and the modern UI. I'm not very happy with the backdrop-blur, but due to the fact that there is no variable with the current background color (or image, which might be the problem here), I think that is so far the best approach. ad-sticky-header

Now I wondered if the news ticker should also be included in the sticky header and if sticky header should be a value that you can toggle in the settings, that's why I am asking for some feedback here

paulstelian97 commented 1 year ago

I'd say the sticky header should indeed be toggleable (an equivalent setting to make the buttons sticky on Android exists/existed when I last played the game there).

As for the news ticker I'm a bit uncertain about what's the best way to do that. It's probably easier to include it, but if you can somehow make the header scroll as the news ticker goes off screen and not further that would be excellent. We'll take either solution though.