| 15 | { |
| 16 | |
| 17 | void ControllerFadeAlpha::prepareItem(Widget* _widget) |
| 18 | { |
| 19 | // подготовка виджета, блокируем если только нужно |
| 20 | if (!mEnabled) |
| 21 | _widget->setEnabledSilent(mEnabled); |
| 22 | |
| 23 | if ((ALPHA_MIN != mAlpha) && (!_widget->getVisible())) |
| 24 | { |
| 25 | _widget->setAlpha(ALPHA_MIN); |
| 26 | _widget->setVisible(true); |
| 27 | } |
| 28 | |
| 29 | // отписываем его от ввода |
| 30 | if (!mEnabled) |
| 31 | InputManager::getInstance().unlinkWidget(_widget); |
| 32 | |
| 33 | // вызываем пользовательский делегат для подготовки |
| 34 | eventPreAction(_widget, this); |
| 35 | } |
| 36 | |
| 37 | bool ControllerFadeAlpha::addTime(Widget* _widget, float _time) |
| 38 | { |
nothing calls this directly
no test coverage detected