| 209 | } |
| 210 | |
| 211 | void AnimationViewControl::updateSelectedFrame() |
| 212 | { |
| 213 | if (mParentData == nullptr || mParentData->getChildSelected() == nullptr) |
| 214 | { |
| 215 | mImage->setImageCoord(MyGUI::IntCoord()); |
| 216 | mCurrentFrame = 0; |
| 217 | mFrameInfo->setCaption(MyGUI::utility::toString(mCurrentFrame, " : ", mAnimation.getFrames().size())); |
| 218 | } |
| 219 | else |
| 220 | { |
| 221 | DataPtr selected = mParentData->getChildSelected(); |
| 222 | |
| 223 | mCurrentFrame = mParentData->getChildIndex(selected); |
| 224 | updateFrame(); |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | } |
nothing calls this directly
no test coverage detected