| 525 | } |
| 526 | |
| 527 | void MenuControl::setVisible(bool _visible) |
| 528 | { |
| 529 | if (mAnimateSmooth) |
| 530 | { |
| 531 | ControllerManager::getInstance().removeItem(this); |
| 532 | setAlpha(ALPHA_MAX); |
| 533 | setEnabledSilent(true); |
| 534 | mAnimateSmooth = false; |
| 535 | } |
| 536 | |
| 537 | if (_visible) |
| 538 | { |
| 539 | if (mOwner == nullptr && mHideByLostKey) |
| 540 | { |
| 541 | MyGUI::InputManager::getInstance().setKeyFocusWidget(this); |
| 542 | } |
| 543 | } |
| 544 | |
| 545 | Base::setVisible(_visible); |
| 546 | } |
| 547 | |
| 548 | void MenuControl::setVisibleSmooth(bool _visible) |
| 549 | { |
no test coverage detected