Support for dragging multiple character/outfit cards at the same time in studio #14

Merged
Timo713 merged 17 commits from master into master 2024-07-06 18:46:34 +00:00
Timo713 commented 2024-06-09 15:42:28 +00:00 (Migrated from github.com)

This PR is related to this issue: https://github.com/IllusionMods/DragAndDrop/issues/12

Thanks to the power of AI, I managed to edit this plugin to allow for multiple card loading into KK studio slots, it adds a new method for loading all the selected cards in a folder whenever they're dragged over the selected slots in studio. I've checked and it hasn't broken any other functionalities yet, but you're free to review the code and edit it as it might need some polishing.

I tried to add the option to load them into the classroom screen slots too but there's no handler for it yet and without any references on how that screen works I have no idea on what to work with.

This PR is related to this issue: https://github.com/IllusionMods/DragAndDrop/issues/12 Thanks to the power of AI, I managed to edit this plugin to allow for multiple card loading into KK studio slots, it adds a new method for loading all the selected cards in a folder whenever they're dragged over the selected slots in studio. I've checked and it hasn't broken any other functionalities yet, but you're free to review the code and edit it as it might need some polishing. I tried to add the option to load them into the classroom screen slots too but there's no handler for it yet and without any references on how that screen works I have no idea on what to work with.
ManlyMarco (Migrated from github.com) reviewed 2024-06-09 17:47:43 +00:00
ManlyMarco (Migrated from github.com) left a comment

Thanks for the PR! Did you build and test these changes in game? I'm pretty sure this won't compile and will have issues outside of studio since it will load each character card onto the same character.

Thanks for the PR! Did you build and test these changes in game? I'm pretty sure this won't compile and will have issues outside of studio since it will load each character card onto the same character.
Timo713 commented 2024-06-09 18:04:51 +00:00 (Migrated from github.com)

Yes, I've tested it already in maker, free h and live and and no problems so far. Outside of studio, you're only meant to load a character at a time, so I don't see where this could be an issue. I'll include it in case you want to test it too.
DragAndDropMultipleCardLoading.zip

Yes, I've tested it already in maker, free h and live and and no problems so far. Outside of studio, you're only meant to load a character at a time, so I don't see where this could be an issue. I'll include it in case you want to test it too. [DragAndDropMultipleCardLoading.zip](https://github.com/user-attachments/files/15753612/DragAndDropMultipleCardLoading.zip)
ManlyMarco (Migrated from github.com) reviewed 2024-06-28 20:37:31 +00:00
ManlyMarco (Migrated from github.com) left a comment

Sorry I went silent about this PR, it works but I didn't merge it yet because it only works for KK and not other games, but that's partially because the overall structure of this plugin isn't ideal. If you could make it also at least work in KKS (ideally also AI and HS2) I would merge it.

Sorry I went silent about this PR, it works but I didn't merge it yet because it only works for KK and not other games, but that's partially because the overall structure of this plugin isn't ideal. If you could make it also at least work in KKS (ideally also AI and HS2) I would merge it.
@ -8,7 +8,7 @@ namespace DragAndDrop
public virtual void Scene_Import(string path, POINT pos) { }
ManlyMarco (Migrated from github.com) commented 2024-06-28 20:37:26 +00:00

I wouldn't add this to the API since it's only useful in one specific case.

I wouldn't add this to the API since it's only useful in one specific case.
Timo713 commented 2024-07-05 19:20:50 +00:00 (Migrated from github.com)

I guess I managed to make it work on the other games too, I tested on all of them and no problems so far. The only game I didn't test was PH and I didn't add compatibility for EC since there's no handler for anything that this is useful for.

I also took the liberty to implement the same feature for coordinate loading, so, now you can grab multiple coordinate cards into character slots and each of them will all be loaded separately. Great for previewing lots of clothing and characters!

I guess I managed to make it work on the other games too, I tested on all of them and no problems so far. The only game I didn't test was PH and I didn't add compatibility for EC since there's no handler for anything that this is useful for. I also took the liberty to implement the same feature for coordinate loading, so, now you can grab multiple coordinate cards into character slots and each of them will all be loaded separately. Great for previewing lots of clothing and characters!
ManlyMarco (Migrated from github.com) requested changes 2024-07-06 14:43:37 +00:00
ManlyMarco (Migrated from github.com) left a comment

Looks like you forgot to update StudioHandler for Sunshine, build fails. Looks good otherwise.

Looks like you forgot to update StudioHandler for Sunshine, build fails. Looks good otherwise.
Timo713 commented 2024-07-06 15:37:41 +00:00 (Migrated from github.com)

Woops! sorry! it should be fixed now.

Woops! sorry! it should be fixed now.
ManlyMarco (Migrated from github.com) approved these changes 2024-07-06 18:40:02 +00:00
ManlyMarco (Migrated from github.com) left a comment

It works, thank you for the PR!

It works, thank you for the PR!
Sign in to join this conversation.
No description provided.