Changeset 73 for trunk/Start.pas
- Timestamp:
- Jan 15, 2017, 4:12:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r72 r73 330 330 331 331 BrainPicture[0] := TBitmap.Create; 332 BrainPicture[0].width := 64; 333 BrainPicture[0].height := 64; 332 BrainPicture[0].SetSize(64, 64); 334 333 BitBlt(BrainPicture[0].Canvas.Handle, 0, 0, 64, 64, 335 334 GrExt[HGrSystem2].Data.Canvas.Handle, 1, 111, SRCCOPY); 336 335 BrainPicture[1] := TBitmap.Create; 337 BrainPicture[1].width := 64; 338 BrainPicture[1].height := 64; 336 BrainPicture[1].SetSize(64, 64); 339 337 BitBlt(BrainPicture[1].Canvas.Handle, 0, 0, 64, 64, 340 338 GrExt[HGrSystem2].Data.Canvas.Handle, 66, 111, SRCCOPY); 341 339 BrainPicture[2] := TBitmap.Create; 342 BrainPicture[2].width := 64; 343 BrainPicture[2].height := 64; 340 BrainPicture[2].SetSize(64, 64); 344 341 BitBlt(BrainPicture[2].Canvas.Handle, 0, 0, 64, 64, 345 342 GrExt[HGrSystem2].Data.Canvas.Handle, 131, 111, SRCCOPY); 346 343 BrainPicture[3] := TBitmap.Create; 347 BrainPicture[3].width := 64; 348 BrainPicture[3].height := 64; 344 BrainPicture[3].SetSize(64, 64); 349 345 BitBlt(BrainPicture[3].Canvas.Handle, 0, 0, 64, 64, 350 346 GrExt[HGrSystem2].Data.Canvas.Handle, 131, 46, SRCCOPY); 351 for i := bixFirstAI to nBrain - 1 do 352 begin 347 for i := bixFirstAI to nBrain - 1 do begin 353 348 BrainPicture[i] := TBitmap.Create; 354 if not LoadGraphicFile(BrainPicture[i], HomeDir + 'AI' + DirectorySeparator + Brain[i].FileName, 355 gfNoError) then 356 begin 349 if not LoadGraphicFile(BrainPicture[i], HomeDir + 'AI' + DirectorySeparator + Brain[i].FileName + '.png', 350 gfNoError) then begin 357 351 BrainPicture[i].width := 64; 358 352 BrainPicture[i].height := 64; 359 with BrainPicture[i].Canvas do 360 begin 353 with BrainPicture[i].Canvas do begin 361 354 Brush.Color := $904830; 362 355 FillRect(Rect(0, 0, 64, 64)); … … 366 359 Textout(32 - TextWidth(Brain[i].FileName) div 2, 367 360 32 - TextHeight(Brain[i].FileName) div 2, Brain[i].FileName); 368 end 369 end 361 end; 362 end; 370 363 end; 371 364 … … 1168 1161 MapFileName := List.Items[List.ItemIndex] + '.cevo map'; 1169 1162 if LoadGraphicFile(Mini, DataDir + 'Maps' + DirectorySeparator + Copy(MapFileName, 1, 1170 Length(MapFileName) - 9) , gfNoError) then1163 Length(MapFileName) - 9) + '.png', gfNoError) then 1171 1164 begin 1172 1165 if Mini.width div 2 > MaxWidthMapLogo then … … 1765 1758 try // rename map picture 1766 1759 AssignFile(f, DataDir + 'Maps'+ DirectorySeparator + List.Items[List.ItemIndex] 1767 + '. bmp');1768 Rename(f, DataDir + 'Maps'+ DirectorySeparator + NewName + '. bmp');1760 + '.png'); 1761 Rename(f, DataDir + 'Maps'+ DirectorySeparator + NewName + '.png'); 1769 1762 except 1770 1763 end;
Note:
See TracChangeset
for help on using the changeset viewer.