MCPcopy Create free account
hub / github.com/MyGUI/mygui / prepareItem

Method prepareItem

MyGUIEngine/src/MyGUI_ControllerFadeAlpha.cpp:17–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

setEnabledSilentMethod · 0.80
unlinkWidgetMethod · 0.80
getVisibleMethod · 0.45
setAlphaMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected