| 579 | void DisplayNewUser::OnObjectMoved(int idc, Vector3Par offset) |
| 580 | { |
| 581 | if (idc == IDC_NEW_USER_NOTEBOOK) |
| 582 | { |
| 583 | PoseidonAssert(dynamic_cast<Control3D*>(GetCtrl(IDC_NEW_USER_HEAD_AREA))); |
| 584 | Control3D* area = static_cast<Control3D*>(GetCtrl(IDC_NEW_USER_HEAD_AREA)); |
| 585 | Vector3 pos = area->GetCenter(); |
| 586 | float coef = _head->Position().Z() / pos.Z(); |
| 587 | _head->SetPosition(_head->Position() + coef * offset); |
| 588 | } |
| 589 | Display::OnObjectMoved(idc, offset); |
| 590 | } |
| 591 | |
| 592 | void DisplayNewUser::OnCtrlClosed(int idc) |
| 593 | { |
| 594 | if (idc == IDC_NEW_USER_NOTEBOOK) |
| 595 | { |
nothing calls this directly
no test coverage detected