-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 an EditorSettings reference #395
Comments
Absolutely. At the same time, they might benefit from some reviewed grouping/reorganization first. In any case, a quick rundown of the most important settings would be helpful, to get started. |
I agree with Nathan, we need to review the list and do necessary renamings/groupings before the 3.0 release (as it will break the support of previous settings). |
I listed the entries of these two settings dialogs in two seperate gists for myself. Maybe it is helpful here too: Some points came to my mind, while doing so:
|
@pwab Do you still have the files? The gists aren't available anymore. Also, did you write some script to get the list from the source or what-not? That'd be useful because they're bound to evolve over time. I'm sure we can find contributors interested in working on this reference. |
Yeah @NathanLovato I still have the files. I tried to rework the lists into a rst-table structure and started updating the items. But it wasn't ready yet (I'm not sure if I ever touched the v3-project-settings again) so be aware that the content of these files isn't up to date. You can find the gists here (uploaded them again): My workflow was just plain copying from the menu. I wanted to create a little helper script but wasn't able to understand how these entries are implemented in code. Maybe I looked into the wrong files and the menu item strings could be find with very easily. Then python and some little regex magic should do the trick. |
Should we just include the list or should we put a screenshot of that section of the settings above the list? |
Hi, I'm interested in filling out these descriptions as I run into them. Thanks for your help. |
Hey @DevinPentecost, thanks for the help! For now we should have a dedicated page in this repository, probably in learning/editor. |
Hi, Is the doc generated from the main codebase at all or is it all separately defined? If it's separate, that would mean that if a settings is modified or added, the docs would also need to be updated to reflect correct? I can try to add the template from the gist above and create a pull request with a few of them filled out if that will help. Thanks. |
There's no editor reference generated from the sources, and no tooltips for the editor settings in the editor. It'd be ideal if we could add this, as a lot of options are not self-explanatory and their order may change in the future. But in the meantime, it's possible to write a reference by hand, have it in the learning section (again, maintained by hand, not generated from the sources) that someone could later reuse in the source code I guess. |
As #962 and #965 seem to be on hold I started creating a script to extract the available information from godot itself. The script
EDIT: It would be great if the The script and the generated files can be found here: EDIT2:
|
I completed the script and did a successful build with the rtd theme. Results preview can be seen here: I would like to get some feedback on these points:
|
Weighing in on this, I like the script-based approach because it incentivizes coupling the documentation and the implementations. When I was digging into the editor settings, it was strange to see the tooltips be the field names rather than something more useful, it would be a good quality-of-life change to add to both the editor and the documentation. The structuring looks good to me, it separates the settings cleanly while grouping them as they are in the settings dialogs. However, it does differ from the class reference in that you didn't put the fields within each grouping into bullet points with descriptions underneath them. I'm not sure how much consistency within the docs are desired. Using italics for the descriptive text feels odd as well. I do think that certain features will require further explanation (such as in #1164 for the external editor settings), but those could go into a separate section as you propose in that PR. |
Hi,
I agree 100% that the descriptions should be tied to the fields themselves.
Requiring that contributers maintain two different areas when adding or
improving these settings is just begging for them to fall out of sync. It
is easy to justify forgetting to update them if they are not directly
adjacent in the codebase. Additionally, pull requests can easily check the
field descriptions to ensure they are not going stale.
Having a separate document generated is great for when you are looking into
the API. However, hovering over items in the UI and simply getting their
name is very frustrating. Having at least a hyperlink to the documentation
will help, but actual tooltips would be the best. By tying documentation
with the fields, this allows them to be coupled together for viewing in the
actual GUI.
As far as the script so far, it's a great start but until we get actual
descriptions I can't give too much feedback :)
Thanks,
Devin
On Feb 19, 2018 16:05, "Neil Moore" <notifications@github.com> wrote:
Weighing in on this, I like the script-based approach because it
incentivizes coupling the documentation and the implementations. When I was
digging into the editor settings, it was strange to see the tooltips be the
field names rather than something more useful, it would be a good
quality-of-life change to add to both the editor and the documentation.
The structuring looks good to me, it separates the settings cleanly while
grouping them as they are in the settings dialogs. However, it does differ
from the class reference in that you didn't put the fields within each
grouping into bullet points with descriptions underneath them. I'm not sure
how much consistency within the docs are desired. Using italics for the
descriptive text feels odd as well.
I do think that certain features will require further explanation (such as
in #1164 <#1164> for the
external editor settings), but those could go into a separate section as
you propose in that PR.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#395 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA3olJlsCHqzKvVEK7I-hlg2663tCnUKks5tWgwygaJpZM4N9hxS>
.
|
@pwab Thanks very much for your work!
Suggestion for display, using level 2 titles for foldable sections, level 3 for setting pages, and bullet-lists for individual properties. ApplicationConfig |
Thanks guys for the great feedback! I'll keep you updated 🙂 |
Hey guys I found some time and updated my gist again. I refactored a bit of the code, added more styling options and made it a bit clearer I think. I also went with the proposal of @NathanLovato. Now the properties are packed into much more condensed bullet lists. Adding type hints (like String, bool and so on) shouldn't be that hard if the |
How is this going? With more users using godot and more options in the editor settings, we should add this to the doc for reference. Could there be a thing that people can fill in? |
Thanks for reminding me, @ZX-WT. I'm going to set up a first PR |
I tinkered with Godot 3.1 alpha today and saw this: And the ProjectSettings class is already well documented. This leads to an easy translatable settings reference. Awesome! 👍 I hope that the EditorSettings will receive the same treatment (the latest docs page does not list the member variables yet). |
The special case for listing properties in ProjectSettings.xml is here: I tried adding a similar condition for EditorSettings, but the editor is not initialized when running Any idea how we could do this? |
On IRC there was a discussion about collecting all GLOBAL_DEF-s and EDITOR_DEF-s similar to how TTR calls are collected at build time. That way, all project and editor settings would be listed without having to rely on build settings. |
RE: Auto-generating the reference for the editor. Not easy. Also, some project settings are not included in the documentation due to issues discussed here (among other things) : godotengine/godot-proposals#1339 (comment) |
The Project Settings is quite extensive. Having a reference page explaining briefly what each options does would be quite helpful. The same applies to the Editor Settings.
Bugsquad edit: ProjectSettings now has a reference, but it still has to be added for EditorSettings.
The text was updated successfully, but these errors were encountered: