| 356 | int plselFinalSelection(HWND hWnd); |
| 357 | |
| 358 | boolean |
| 359 | mswin_player_selection_window(void) |
| 360 | { |
| 361 | INT_PTR ret; |
| 362 | plsel_data_t data; |
| 363 | boolean ok = TRUE; |
| 364 | |
| 365 | /* save away configuration settings */ |
| 366 | data.config_role = flags.initrole; |
| 367 | data.config_race = flags.initrace; |
| 368 | data.config_gender = flags.initgend; |
| 369 | data.config_alignment = flags.initalign; |
| 370 | |
| 371 | if (!plselRandomize(&data)) { |
| 372 | /* create modal dialog */ |
| 373 | ret = DialogBoxParam( |
| 374 | GetNHApp()->hApp, MAKEINTRESOURCE(IDD_PLAYER_SELECTOR), |
| 375 | GetNHApp()->hMainWnd, PlayerSelectorDlgProc, (LPARAM) &data); |
| 376 | if (ret == -1) |
| 377 | panic("Cannot create getlin window"); |
| 378 | ok = (ret == IDOK); |
| 379 | } |
| 380 | |
| 381 | return ok; |
| 382 | } |
| 383 | |
| 384 | int |
| 385 | list_view_height(HWND hWnd, int count) |
no test coverage detected