| 197 | } |
| 198 | |
| 199 | void AnimationViewControl::updateFrame() |
| 200 | { |
| 201 | mCurrentFrame %= mAnimation.getFrames().size(); |
| 202 | MyGUI::IntPoint point = mAnimation.getFrames()[mCurrentFrame].first; |
| 203 | |
| 204 | mImage->setImageCoord( |
| 205 | MyGUI::IntCoord(point.left, point.top, mAnimation.getSize().width, mAnimation.getSize().height)); |
| 206 | mImage->setImageTile(mAnimation.getSize()); |
| 207 | mImage->setImageIndex(0); |
| 208 | mFrameInfo->setCaption(MyGUI::utility::toString(mCurrentFrame, " : ", mAnimation.getFrames().size())); |
| 209 | } |
| 210 | |
| 211 | void AnimationViewControl::updateSelectedFrame() |
| 212 | { |
nothing calls this directly
no test coverage detected