Skip to content

Conversation

@NerdyPuzzle
Copy link
Collaborator

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.

image

@NerdyPuzzle NerdyPuzzle requested review from KlemenDEV and Spectrall368 and removed request for KlemenDEV November 26, 2025 11:13
@NerdyPuzzle NerdyPuzzle added the new feature Used to mark PRs that add new feature(s) label Nov 26, 2025
Copy link
Collaborator

@AlsoSomeoneElse AlsoSomeoneElse left a 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

@NerdyPuzzle NerdyPuzzle marked this pull request as draft November 27, 2025 01:23
@NerdyPuzzle
Copy link
Collaborator Author

I'd flip the condition, so that checking the box enables the randomness

There are a couple of reasons I didn't do that:

  • Particles have had the randomness on by default ever since the particle element existed so that's the expected default behaviour
  • This would require yet another converter that does nothing but tick a checkbox for existing particles

@NerdyPuzzle NerdyPuzzle marked this pull request as ready for review November 27, 2025 07:40
@AlsoSomeoneElse
Copy link
Collaborator

I'd flip the condition, so that checking the box enables the randomness

There are a couple of reasons I didn't do that:

* Particles have had the randomness on by default ever since the particle element existed so that's the expected default behaviour

* This would require yet another converter that does nothing but tick a checkbox for existing particles

Since this is a new parameter, there is no need for a converter. You can set the default value directly inside the Particle element constructor and select the checkbox inside initGUI (for reference, you can look at the hasBlockItem checkbox of plants and blocks)
For better clarity, we should probably avoid "Check to disable" checkboxes

@NerdyPuzzle
Copy link
Collaborator Author

Since this is a new parameter, there is no need for a converter. You can set the default value directly inside the Particle element constructor and select the checkbox inside initGUI (for reference, you can look at the hasBlockItem checkbox of plants and blocks) For better clarity, we should probably avoid "Check to disable" checkboxes

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

For better clarity, we should probably avoid "Check to disable" checkboxes

I thought Klemen didn't have an issue with them since he approved the "Disable gravity?" checkbox in the projectile ME

@AlsoSomeoneElse
Copy link
Collaborator

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 guess a simpler solution would be to change the label to "Spawn particles with fixed size:" or similar

I thought Klemen didn't have an issue with them since he approved the "Disable gravity?" checkbox in the projectile ME

Probably means I should review PRs more often 😅

@KlemenDEV
Copy link
Contributor

I thought Klemen didn't have an issue with them since he approved the "Disable gravity?" checkbox in the projectile ME

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

@KlemenDEV KlemenDEV marked this pull request as draft November 28, 2025 19:10
@NerdyPuzzle NerdyPuzzle marked this pull request as ready for review November 28, 2025 21:39
@NerdyPuzzle
Copy link
Collaborator Author

Renamed the checkbox to "Spawn with no size variation?"

Would this be better?

@NerdyPuzzle
Copy link
Collaborator Author

image

Image for socials

@KlemenDEV
Copy link
Contributor

Renamed the checkbox to "Spawn with no size variation?"

Would this be better?

Perfect!

@KlemenDEV KlemenDEV marked this pull request as draft December 8, 2025 13:59
@NerdyPuzzle NerdyPuzzle marked this pull request as ready for review December 8, 2025 14:53
@KlemenDEV KlemenDEV added the community review Used by maintainers to mark issues that should get community reviews, tests, and feedback label Dec 8, 2025
Copy link
Collaborator

@Spectrall368 Spectrall368 left a 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

@KlemenDEV
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community review Used by maintainers to mark issues that should get community reviews, tests, and feedback new feature Used to mark PRs that add new feature(s)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants