| 415 | } |
| 416 | |
| 417 | void CWorldObjectsRobotDialog::OnRobotModel() { |
| 418 | #if 0 // LGT: undeclared symbols |
| 419 | char filename[255]; |
| 420 | char curname[255]; |
| 421 | int img_handle; |
| 422 | int robot_handle; |
| 423 | int c=1,finding_name=1; |
| 424 | int model=0; |
| 425 | |
| 426 | // Get the filename of the representing image |
| 427 | |
| 428 | CString filter = "Descent III files (*.pof,*.oof)|*.pof;*.oof||"; |
| 429 | |
| 430 | CFileDialog dlg_open(TRUE, 0,0, OFN_FILEMUSTEXIST, (LPCTSTR)filter, this); |
| 431 | |
| 432 | if (dlg_open.DoModal() == IDCANCEL) return; |
| 433 | |
| 434 | // Okay, we selected a file. Lets do what needs to be done here. |
| 435 | |
| 436 | strcpy (filename,dlg_open.GetPathName()); |
| 437 | img_handle=LoadRobotImage (filename); |
| 438 | |
| 439 | if (img_handle<0) |
| 440 | { |
| 441 | OutrageMessageBox ("Couldn't open that animation/model file."); |
| 442 | return; |
| 443 | } |
| 444 | |
| 445 | |
| 446 | robot_handle=D3EditState.current_robot; |
| 447 | |
| 448 | Robots[robot_handle].render_handle=img_handle; |
| 449 | |
| 450 | // Finally, save a local copy of the model |
| 451 | |
| 452 | sprintf (curname,"%s\\%s",LocalModelsDir,Poly_models[Robots[robot_handle].render_handle].name); |
| 453 | cf_CopyFile (curname,filename); |
| 454 | |
| 455 | UpdateDialog(); |
| 456 | #endif |
| 457 | } |
| 458 | |
| 459 | void CWorldObjectsRobotDialog::OnKillfocusRobotNameEdit() { |
| 460 | #if 0 // LGT: undeclared symbols |
nothing calls this directly
no test coverage detected