New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add: Help and manuals window #7786
base: master
Are you sure you want to change the base?
Conversation
This is probably why the game crashes when you generate too many news messages at once (#7613). |
9d4f02c
to
958df3c
Compare
Does anyone have suggestions for how to best handle the "finding the right path for the docs files" problem? In particular on Unix-y systems where the docs may be in /usr/share/openttd while the binary may be in /usr/bin. Are any of the existing search paths useful for this, or is a new one necessary? |
a) Can you please re-run the checks, preferably by rebasing this PR? |
Can maybe make more of the changelog viewable with the scrollbar fix in #8006 too. Although the text file viewer is already slow with many lines. |
@TrueBrain mentioned that he'd like if the Markdown parsing was moved around, so it could also be used for user content and basesets. There's also a question of where to put the feature on the main menu. Is it really the right thing to do, to remove the highscore table button? |
I know I've never (intentionally) clicked it :) |
Linking to the manual is nice, but I do not see the purpose for all the other buttons. Why providing players with links to resources mostly aimed at developers who would end up consulting the documentation with the same info either way? This makes no sense from a user experience POV, much less as a replacement for the highscore board, which is an actual user experience feature. |
Which of my proposed buttons are mostly aimed at developers?
As for replacing the high score screen, nobody ever said that was a final decision. However the high score game mechanic makes little sense today, since the scoring is rather arbitrary, and does not take difficulty, game settings, or mods into account. The entire main menu experience is kind of weird considering all the extensions and changes to gameplay, e.g. the four big landscape selection buttons pertain to new games only but are front and center. A completely redesigned main menu could offer a much better location for a help and manuals button. |
I completely agree that the main menu requires a redesign, and if modding does indeed make the scoreboard irrelevant, then it should go. My proposition for the time being, however, would be to add all the relevant info to the About window (which already contains the link to the website), and add a new button for it either from the Options window, or the main menu. This is for example what OpenRCT2 does: |
Well here we go, I did manage to make multiple hyperlinks in one line work. Sort of. |
Crash and not-working-at-all (with sprite font) issues with links fixed, but still have an outstanding issue with how the click position on the line is measured, causing links to extend the click position for all following text. Right now it's "kind of acceptable", but it might become a problem in the future and probably better to fix now. Still need to make a plan for squashing. |
…cer indexes right
…mapping visual coordinates to/from original string
Warnings can occur if FreeTypeSettings isn't defined when textfile_gui.h is included.
There we go, squashed and neat to look at now. |
The finding files and browsing around in them works on Windows and Emscripten, but no idea about Mac or Unix builds. Someone needs to test those. |
Right now, this replaces the Highscore button on the main menu. Maybe the Highscore button should stay, definitely up for discussion.
It also adds this choice to the in-game help/about menu.
Several issues: