Skip to content
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

Improved rigidity slider handling again #3588

Closed
wants to merge 1 commit into from

Conversation

84634E1A607A
Copy link
Contributor

@84634E1A607A 84634E1A607A commented Jul 23, 2022

Related Issues
Suppresses #1533
Closes #3452
Fixes #3203

Progress Checklist

Note: before starting this checklist the PR should be marked as non-draft.

  • PR author has checked that this PR works as intended and doesn't
    break existing features:
    https://wiki.revolutionarygamesstudio.com/wiki/Testing_Checklist
    (this is important as to not waste the time of Thrive team
    members reviewing this PR)
  • Multicellular functionality needs testing
  • Initial code review passed (this and further items should not be checked by the PR author)
  • Functionality is confirmed working by another person (see above checklist link)
  • Final code review is passed and code conforms to the
    styleguide.

Before merging all CI jobs should finish on this PR without errors, if
there are automatically detected style issues they should be fixed by
the PR author. Merging must follow our
styleguide.

@hhyyrylainen hhyyrylainen added this to the Release 0.5.10 milestone Jul 23, 2022
@hhyyrylainen hhyyrylainen requested review from a team July 23, 2022 08:08
@84634E1A607A
Copy link
Contributor Author

I think this's got bugs in multicellular. Wait until I figure this out.

@84634E1A607A
Copy link
Contributor Author

It works well actually...

@@ -598,6 +598,7 @@ public override void OnEditorSpeciesSetup(Species species)
// that just marks things dirty and we update our stats on the next _Process call)
Membrane = Editor.EditedCellProperties!.MembraneType;
Rigidity = Editor.EditedCellProperties.MembraneRigidity;
originalRigidity = (int)Math.Round(Rigidity * Constants.MEMBRANE_RIGIDITY_SLIDER_TO_VALUE_RATIO);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storing the original value like this goes against the dynamic MP, so having just the rigidity not follow the way everything else is handled in the editor is not the right design in my opinion.

@84634E1A607A
Copy link
Contributor Author

I tried but was defeated by the dynamic MP. I don't even know if a bug is because dynamic MP or because I wrote it. Closing this.

@hhyyrylainen
Copy link
Member

I think I'll open sometime soon a discussion topic on the dev forum about the dynamic MP and if there is enough willingness to do a system overhaul on it.

@84634E1A607A 84634E1A607A deleted the rigidity_slider_handling_ branch August 4, 2022 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Rigidity slider can become disabled while there is still MP (multicellular?)
2 participants