widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #10074
Re: [Merge] lp:~widelands-dev/widelands/bug-1655168-statistics-overlap into lp:widelands
Somehow that savegame seems familiar...
The problem is that the slider does not use the new function at all but has up to 7 hardcoded entries (see array time_in_ms). How many are shown is simply determined based on which one are less than the elapsed gametime.
A simple fix would be to reduce the number of entries to e.g. 5 which does not overlap for German. A more complex fix would be to render each label and only add it when their summed width is less than the slider width. This would have the disadvantage that for different languages different amounts of labels are offered (e.g. all 7 for English but only 5 for German).
I will do the reordering in this branch when the slider is fixed.
--
https://code.launchpad.net/~widelands-dev/widelands/bug-1655168-statistics-overlap/+merge/323441
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1655168-statistics-overlap.
References