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
Particle scaling #4720
base: master
Are you sure you want to change the base?
Particle scaling #4720
Conversation
What do you mean? |
Check how this component looks in other parts of UI. It has border and background, while yours looks different |
I copied the selector code from that of the living entities, I don't understand how it can be different |
Fixed! |
Fixed! |
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.
Please see https://github.com/MCreator/MCreator/pull/4720/files tab to see it in action |
plugins/generator-1.20.1/forge-1.20.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.
Seems this PR was not tested enough yet.
This is a particle with the scale 1:
And this is same particle if I use number procedure that always returns 1:
To me, this does not look like the same size, despite me setting scale to 1 effectively in both cases (fixed value vs procedure returning same fixed value).
Please investigate this, fix it, and do another round of careful testing (not just this problem, but whole system carefully, including dynamic sizing and stuff like that).
Seems to be due to the quad size being modified instead of the multiplier (size), the return value probably needs to be multiplied by the scale variable the overriden method provides. (I didn't test that, it's just a theory from a quick look I took from my phone) |
Your fixes are getting really messy. Also why two commits? Please test locally and commit once you are sure you fixed the problem |
plugins/generator-1.20.4/neoforge-1.20.4/templates/particle.java.ftl
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Do not remove this label manually, it should be removed by the bot when new activity occurs. |
With this PR, the particles will be able to have a variable size
Example:
For the MCreator Changelog: