Open Lakoja opened 1 year ago
"Reset to defaults" - as that is likely the same as "close and open the screen again".
Nope. This screen uses either the exact same settings as a running game did (when you open it from the WorldScreen menu), or the settings from the last successful new-game (when you open it from main menu). Reset was added later "by popular demand" and it resets to Unciv virgin defaults. What's strange is that I've seen a screenshot of that button to the left of the Start one somewhere but can't remember what context. As it is, it's been added late in #5141 to an existing VerticalGroup - my my, why did I not use VerticalGroup.space for that ugly padding?
tabs
Not a bad idea. Why didn't nobody not think of that before? Would also likely make the separate layout for portrait redundant. What do other issue readers think? The header buttons would easily sport icons too!
As patch - anyone willing to thoroughly test?
Thank's. That was quick. It works in (my) the aforementioned test setting.
Some minor observations:
And - probably not to be solved in this issue:
That was quick
Not a "solution" yet, just a <1h toy. So, I haven't really taken the old code out except to silence warnings. Getting that button to the left would require even more hacking of the "PickerPane" superclass it's using, so, for this express route, no. Vertical scrollbars - yes I noticed what you mean yesterday, but - quick&dirty and I don't like the scrollbars we currently have. Too ugly (or maybe too plain - or maybe I'm prejudiced because another Widget, SelectBox, makes them really ugly. Just try actually dragging one with a mouse, let alone a finger). What I'd like isn't really easily done - have it alpha-fade over ~1.5 lines of text, both top and botton if there's stuff out of view, which would be indication enough... No, activate scrollbars is better. Should go in the TabbedPager API, however, which could be painful - I'd do that Widget totally different today, and resisting a total rewrite may be hard.
map options have their own "Reset to defaults"?
Yup, that's code grown over time for you. The entire Widget combo is reused elsewhere, so moving the button would be no fun, and no confirmation isn't bad as the "loss" on an accidental click isn't really much. If you tweaked those meaningfully, then you'll likely remember why. But there's another ticket floating around asking for a copy/paste for those settings, so maybe, someday, someone, could do a luxury editor for that simple set of numbers (history w/renaming entries??).
thoroughly test
I also meant:
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days.
👀I may take a look at that patch because that menu style looks nice, at least for portrait mode (though, I forgot how to turn on portrait mode). Leaving open anyways as a general "this doesn't work on small screens"
Problem When tapping "New Game" on a Tablet the screen looks like this. (A "Pixel C" from the Android Studio Emulator.) Game and Map options are horizontally scrollable. Most content is not fully readable (one must scroll rather far horizontally).
Describe the solution you'd like Not quite sure if tablet is a target audience. If it is this should probably be made more directly accessible: at most vertically scrollable anywhere. For the "Base ruleset" I did exemplatory what I would do for a reactive web page: the label has its own line.
From a consistency perspective it could (should?) maybe be done like the options screen: with selectable tabs for each section. So that each section has the whole screen available.
Related The lower section could probably be reduced (in height). I. e. with removing "Reset to defaults" - as that is likely the same as "close and open the screen again".