| 993 | base::OnSimulate(vehicle); |
| 994 | } |
| 995 | |
| 996 | DisplayServerGetReady::DisplayServerGetReady(ControlsContainer* parent) : base(parent, "RscDisplayServerGetReady") {} |
| 997 | |
| 998 | void DisplayServerGetReady::OnButtonClicked(int idc) |
| 999 | { |
| 1000 | switch (idc) |
| 1001 | { |
| 1002 | case IDC_OK: |
| 1003 | { |
| 1004 | CListBox* lbox = dynamic_cast<CListBox*>(GetCtrl(IDC_SERVER_READY_PLAYERS)); |
| 1005 | PoseidonAssert(lbox); |
| 1006 | for (int i = 0; i < lbox->GetSize(); i++) |
| 1007 | { |
| 1008 | if (lbox->GetValue(i) == 0) |
| 1009 | { |
| 1010 | CreateMsgBox(MB_BUTTON_OK | MB_BUTTON_CANCEL, LocalizeString(IDS_MSG_LAUNCH_GAME), |
| 1011 | IDD_MSG_LAUNCHGAME); |
| 1012 | return; |
| 1013 | } |
| 1014 | } |
| 1015 | Exit(IDC_OK); |
| 1016 | } |
| 1017 | break; |
| 1018 | default: |
| 1019 | base::OnButtonClicked(idc); |
| 1020 | break; |
| 1021 | } |
| 1022 | } |
nothing calls this directly
no test coverage detected