-
Notifications
You must be signed in to change notification settings - Fork 4
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
Animation Manager #34
Comments
I definitely agree that an easy access to the animation manager would be great. |
Have to think about important features, what I have in mind would be like animating quads in / out, the toggling as you said and whole frames. |
I would find more important to be able to animate a translation in X/Y axis |
As the animation manager just takes the target-state xml wouldn't it be handy to have something like $targetState = clone $myControl;
$targetState->setPosition(100, 0)->setOpacity(0);
$animationFeature = new AnimationFeature($myControl, $targetState, 0, 500, AnimationHandler::EaseInOutSine);
$myControl->addClickHandler($animationFeature); I have pretty much no clue about your API but I had the impression that the structure would be somewhat like this. When rendering the code for the feature you would then just render your targetState control in triple quotes and this should be pretty much generic? A notation as in my pseudo example would provide everything for the signature
If features are animatable is then decided by the AnimManager. |
I think this hardly would be a problem to implement. It gets more interesting when you want to have your animation be called on a custom event |
An issue appears when the PHP script re-sends/updates the manialink for some reason during the animation, in this case things will get messy: After the animation the PHP must send the target location to not reset the control to the start position. |
I don't think this case would be that rare, it could easily happen, for Example if you make animations on a MapVeto Plugin where you animate the Maps out of the screen, and another map got vetoed out at same time it would stop. But on the other hand the map would be not on the screen than anyways, hard to say if this issue could make problems. Maybe @JocyW can think better of that problem. |
Would be cool if the Animation Manager of ManiaScript could be used somehow, some compatiblity to make the use very easy without programming ManiaScript would be amazing :D
The text was updated successfully, but these errors were encountered: