-
-
Notifications
You must be signed in to change notification settings - Fork 187
Add the option to disable size randomness in custom particles #5941
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
base: master
Are you sure you want to change the base?
Conversation
AlsoSomeoneElse
left a comment
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.
I'd flip the condition, so that checking the box enables the randomness
There are a couple of reasons I didn't do that:
|
Since this is a new parameter, there is no need for a converter. You can set the default value directly inside the |
I tried this, but if you open an existing particle, the checkbox won't be checked, it will only be checked when creating a new particle
I thought Klemen didn't have an issue with them since he approved the "Disable gravity?" checkbox in the projectile ME |
I guess a simpler solution would be to change the label to "Spawn particles with fixed size:" or similar
Probably means I should review PRs more often 😅 |
I guess I missed it. I agree with @AlsoSomeoneElse that it is better to not use it when possible as this can quickly be misread as we usually use "check to enable" text |
|
Renamed the checkbox to "Spawn with no size variation?" Would this be better? |
Perfect! |
plugins/generator-1.21.1/neoforge-1.21.1/templates/particle.java.ftl
Outdated
Show resolved
Hide resolved
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.
it seems ok
I would disable the option if particle scale == 1
Then in my opinion it doesn't make sense to do scale = 0.15f * fixed value, in my opinion we should do directly scale = fixed value when the option is enabled
This preserves original scale and is intended and was good idea to do so by the PR author |
In this PR, I introduce a new checkbox to particles which sets quadSize to a fixed value instead of reusing the vanilla value which includes randomness in its calculation, leading to particles varying in size even if the user wants the size to stay the same.