Skip to content

1.5 Fix for reordering#16

Open
lisanhu wants to merge 6 commits intofluffy-mods:1.5from
RunningBugs:1.5
Open

1.5 Fix for reordering#16
lisanhu wants to merge 6 commits intofluffy-mods:1.5from
RunningBugs:1.5

Conversation

@lisanhu
Copy link
Copy Markdown

@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