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

1.5 Fix for reordering #16

Open
wants to merge 6 commits into
base: 1.5
Choose a base branch
from
Open

1.5 Fix for reordering #16

wants to merge 6 commits into from

Conversation

lisanhu
Copy link

@lisanhu lisanhu commented Aug 16, 2024

Hi Fluffy!

Really love your mod. I just tried to fix the reordering issue for AreaUnlocker and I succeeded.

The problem was caused by the ReorderableWidget.NewGroup function which would return -1 when the current event type is not repaint. And if you logged the value of reorderableGroup, you will find it is a lot of -1,0,-1,0

After assigning it to a static private variable and check it only when the event type is repaint, it solves the issue.

I didn't have the exact same environment with you, so I'm just changing the source file in this fork after tested it on my configuration. You may need to rebuild it and see whether everything works fine. (I don't have the ColourPicker project on my system afterall, on my system I have to remove the sln file, changing the project reference to reference dll, and ignore the emitted error for mod update command not found )

I'm using a lot of mods from you. Thank you so much for all your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant