Mugen87 / three-m2loader

three.js loader for importing M2 assets from World of Warcraft.
MIT License
25 stars 8 forks source link

Simplify `listGlobalSequences` to `hasGlobalSequences`. #14

Closed Mat2095 closed 10 months ago

Mat2095 commented 10 months ago

Previously this PR hat more changes, but it was decided to split them into two PRs:

Mugen87 commented 10 months ago

Do you mind if we split up the PR into two 😇 ? I would like to merge point 1 and 2 first.

The third one maybe requires more thought. I'm not sure yet how to manage variations, tbh.

What do you think about making the variations handling more explicit and add a variations drop down if a sequence has variations and maybe add listVariations( id ) on manager level?

Mat2095 commented 10 months ago

Do you mind if we split up the PR into two 😇 ? I would like to merge point 1 and 2 first.

Sure, we can do that. What do you mean by point 1 and 2 in that case?

The third one maybe requires more thought. I'm not sure yet how to manage variations, tbh.

What do you think about making the variations handling more explicit and add a variations drop down if a sequence has variations and maybe add listVariations( id ) on manager level?

I thought about that as well. Other viewers switch between variations randomly, but that seems more complicated and I kindof like the idea of being able to choose the variation manually. I had no preference between having having sequence and variation in one list or splitting it into two lists, so I chose the option that seemed simpler. But if you prefer having a separate drop-down, I will do that.

Mugen87 commented 10 months ago

Sure, we can do that. What do you mean by point 1 and 2 in that case?

Replace listGlobalSequences() with hasGlobalSequences() and the rename onGlobalSequenceChange () to onPlayGlobalSequencesChange().

But if you prefer having a separate drop-down, I will do that.

Okay, then I would try this approach first and so how it works out.

Mat2095 commented 10 months ago

Okay, I've updated this PR to only refactor those two things. I'll open another PR for the variations when I'm done.