-
Notifications
You must be signed in to change notification settings - Fork 701
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
Pokemon Emerald: Adjust options #3278
Conversation
Is this behavior not a WebHost bug? |
I'm unsure. I didn't try to track down why the appearance is different, I only saw that it was when comparing my own option tooltips with the one for progression balancing. |
That definitely should be some kind of bug, since it means violating PEP8 is ideal |
I assume you're aware of this, but just in case, removing the lists of valid keys from the option descriptions means that template yamls will not be easily usable on their own |
Yeah. The tooltip is just cluttered and long with the list of possible values included. I'm considering inverting the option so that including the value makes the roadblock present, and then setting the default value to all true. That way the template automatically shows all options. But that's a breaking change, so I wouldn't want to do it in this PR. I'm removing I also might even consider this a docs PR instead of an enhancement, but that distinction isn't really important here. |
It's definitely mostly docs. But there's also
|
Since option set are now sorted on webhost, you could remove those changes |
There is also no display difference between these, so your multiline docstrings are fine to put the closing
|
Several of these changes are also 120-character line length violations that don't actually change the display.
|
While technically true (now that it would also retain order if keys are ordered), I see no real harm in keeping them explicitly sorted. If I add other "shortcuts" to the blacklists, I may want to order them in a manner other than alphabetical.
I did a little more investigating and found out why there's a difference if you have a new line between the opening So one could add extra indentation in their own descriptions if they wanted that behavior. I think I'm going to settle on using
As long as linebreaks in the docstring correspond with linebreaks on the web page, I'm probably going to mostly ignore the 120-character limit for specifically these docstrings. Maybe I'll set a hard limit of like 180, since most long sentences or groups of long sentences can probably fit in there or be split into new sentences or paragraphs. I also don't want to add custom "matching" line breaks because it doesn't work if the CSS changes out from under me. The better option would be for the webhost code to support merging multi-line sentences somehow. |
9ed04e3
to
bb3fdc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome to me!
What is this fixing or adding?
In anticipation of #2614 being able to display more options on the main options page, I went through the Emerald options to add clarity and make things look a little nicer.
Removing the newlines adjacent to theFigured out why this is; reverted the change."""
s I guess makes them render differently on the site, to get the automatic intents between lines.easter_egg
option not having a display name.valid_keys
to lists so that they're ordered for the user's benefit.OptionSets
that don't need to exist on the website.full
alias for HM and TM compatibility.HmRequirements
fromTextChoice
toChoice
, since custom entries have no effect.How was this tested?
Generated templates, read through the options page on the site in a branch with #2614 also merged.