-
-
Notifications
You must be signed in to change notification settings - Fork 871
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
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. |
Right, after asking @nielsmh decided to pick this PR up again. It really was nearly done. I moved the requested commit to #11288 , and did a bunch of cleanup / update to our latest state of code (read: removing C-strings and using the C++ variants we have now). I kept that in a separate commit, so it is more visible what I changed. We will squash this PR when it is done I assumed anyway. The quality of this Pull Request is REALLY high. There is so much stuff in here .. working links, history, table-of-content .. you did an amazing job @nielsmh , it is really lovely to work with a Pull Request of this quality. So my job was also really easy :) Next up, is some testing. I will build some release binaries based on this work, and test in various of OSes if it is actually working. To keep a list for myself:
Release build running in https://github.com/OpenTTD/OpenTTD/actions/runs/6144602745 . |
3fe5ca0
to
441599d
Compare
All files can be found on all OSes we support via our distribution mechanisms. So we should be good there. Found a few bugs that I am addressing (this to keep track of them):
|
441599d
to
74c6298
Compare
74c6298
to
a438ae4
Compare
a438ae4
to
3329207
Compare
3329207
to
fb89cbb
Compare
fb89cbb
to
8d15515
Compare
8d15515
to
109bf0a
Compare
Also include it in Emscripten packages
109bf0a
to
9b1f8d7
Compare
9b1f8d7
to
d3d5926
Compare
d3d5926
to
98a0e99
Compare
This adds another button to the main menu, letting you access both included documentation in the package, as well as links to various official online resources. The Markdown format files are parsed, offering a Table of Contents dropdown and working hyperlinks.
It also adds this choice to the in-game help/about menu.
Several issues: