| 217 | } |
| 218 | |
| 219 | void CDialogHolder::OnFrame() |
| 220 | { |
| 221 | if (MainInputReceiver() && GetUICursor()->IsVisible()) |
| 222 | { |
| 223 | MainInputReceiver()->UpdateFocus(); |
| 224 | // Сначала генерируем события потери фокуса |
| 225 | MainInputReceiver()->CommitFocus(true); |
| 226 | // и только потом генерируем события получения фокуса, что бы всегда |
| 227 | // потеря фокуса обрабатывалась первой, а не как получится. |
| 228 | MainInputReceiver()->CommitFocus(false); |
| 229 | } |
| 230 | |
| 231 | for (auto& it : m_dialogsToRender) |
| 232 | if (it.enabled && it.wnd->IsEnabled()) |
| 233 | it.wnd->Update(); |
| 234 | } |
| 235 | |
| 236 | void CDialogHolder::shedule_Update(u32 dt) |
| 237 | { |
nothing calls this directly
no test coverage detected