Changeset 73 for trunk/LocalPlayer
- Timestamp:
- Jan 15, 2017, 4:12:10 PM (8 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r72 r73 10 10 Protocol, ClientTools, Term, ScreenTools, IsoEngine, BaseWin, 11 11 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 12 ButtonA, ButtonC, Area ;12 ButtonA, ButtonC, Area, GraphType; 13 13 14 14 const … … 217 217 Back.Canvas.FillRect(0, 0, Back.Width, Back.Height); 218 218 Template := TBitmap.Create; 219 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'City', gfNoGamma);220 Template.PixelFormat := pf8bit;219 Template.PixelFormat := pf24bit; 220 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'City.png', gfNoGamma); 221 221 CityMapTemplate := TBitmap.Create; 222 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'BigCityMap', gfNoGamma);223 CityMapTemplate.PixelFormat := pf8bit;222 CityMapTemplate.PixelFormat := pf24bit; 223 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'BigCityMap.png', gfNoGamma); 224 224 SmallCityMapTemplate := TBitmap.Create; 225 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'SmallCityMap', 225 SmallCityMapTemplate.PixelFormat := pf24bit; 226 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'SmallCityMap.png', 226 227 gfNoGamma); 227 SmallCityMapTemplate.PixelFormat := pf24bit;228 228 SmallCityMap := TBitmap.Create; 229 229 SmallCityMap.PixelFormat := pf24bit; -
trunk/LocalPlayer/Draft.pas
r62 r73 91 91 Back.Canvas.FillRect(0, 0, Back.Width, Back.Height); 92 92 Template := TBitmap.Create; 93 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'MiliRes', gfNoGamma);94 Template.PixelFormat := pf8bit;93 Template.PixelFormat := pf24bit; 94 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'MiliRes.png', gfNoGamma); 95 95 end; 96 96 -
trunk/LocalPlayer/Help.pas
r69 r73 968 968 until (p > length(s)) or (s[p] = '\'); 969 969 if LoadGraphicFile(ExtPic, LocalizedFilePath('Help' + 970 DirectorySeparator + copy(s, 2, p - 2)) ) then970 DirectorySeparator + copy(s, 2, p - 2)) + '.png') then 971 971 begin 972 972 MainText.AddLine('', pkExternal); -
trunk/LocalPlayer/IsoEngine.pas
r68 r73 111 111 begin 112 112 result := false; 113 HGrTerrainNew := LoadGraphicSet(Format('Terrain%dx%d ',113 HGrTerrainNew := LoadGraphicSet(Format('Terrain%dx%d.png', 114 114 [xxtNew * 2, yytNew * 2])); 115 115 if HGrTerrainNew < 0 then 116 116 exit; 117 HGrCitiesNew := LoadGraphicSet(Format('Cities%dx%d ',117 HGrCitiesNew := LoadGraphicSet(Format('Cities%dx%d.png', 118 118 [xxtNew * 2, yytNew * 2])); 119 119 if HGrCitiesNew < 0 then … … 334 334 OceanMore.Free; 335 335 DitherMask.Free; 336 //LandPatch.Savetofile('landpatch.bmp');337 336 338 337 // reduce size of terrain icons -
trunk/LocalPlayer/NatStat.pas
r61 r73 92 92 Back.Canvas.FillRect(0, 0, Back.Width, Back.Height); 93 93 Template := TBitmap.Create; 94 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'Nation', gfNoGamma);95 Template.PixelFormat := pf8bit;94 Template.PixelFormat := pf24bit; 95 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'Nation.png', gfNoGamma); 96 96 end; 97 97 -
trunk/LocalPlayer/TechTree.pas
r72 r73 128 128 begin 129 129 Image := TBitmap.Create; 130 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree', gfNoGamma);131 130 Image.PixelFormat := pf24bit; 131 LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', gfNoGamma); 132 132 133 133 with Image.Canvas do -
trunk/LocalPlayer/Term.pas
r72 r73 588 588 SmallImp.EndUpdate; 589 589 FreeMem(resampled); 590 // smallimp.savetofile(homedir+'smallimp.bmp'); //!!!591 590 end; 592 591 … … 674 673 with Tribe[p].ModelPicture[mix] do 675 674 begin 676 HGr := LoadGraphicSet(Picture.GrName );675 HGr := LoadGraphicSet(Picture.GrName + '.png'); 677 676 pix := Picture.pix; 678 677 end; … … 1203 1202 if AILogo[p] = nil then 1204 1203 AILogo[p] := TBitmap.Create; 1205 if not LoadGraphicFile(AILogo[p], HomeDir + Name , gfNoError) then1204 if not LoadGraphicFile(AILogo[p], HomeDir + Name + '.png', gfNoError) then 1206 1205 begin 1207 1206 AILogo[p].free; … … 1467 1466 MainMap.SetOutput(offscreen); 1468 1467 1469 HGrStdUnits := LoadGraphicSet('StdUnits ');1468 HGrStdUnits := LoadGraphicSet('StdUnits.png'); 1470 1469 SmallImp := TBitmap.Create; 1471 1470 SmallImp.PixelFormat := pf24bit; -
trunk/LocalPlayer/Tribes.pas
r38 r73 301 301 Item := Get; 302 302 sympix := GetNum; 303 symHGr := LoadGraphicSet(Item );303 symHGr := LoadGraphicSet(Item + '.png'); 304 304 end 305 305 end; … … 425 425 end 426 426 end; 427 cHGr := LoadGraphicSet(Item );427 cHGr := LoadGraphicSet(Item + '.png'); 428 428 for x := 0 to 3 do 429 429 with CityPicture[x] do … … 445 445 else 446 446 begin 447 faceHGr := LoadGraphicSet(Item );447 faceHGr := LoadGraphicSet(Item + '.png'); 448 448 facepix := GetNum; 449 449 if GrExt[faceHGr].Data.Canvas.Pixels[facepix mod 10 * 65, … … 477 477 dec(i); 478 478 assert(i >= 0); 479 assert(PictureList[i].HGr = LoadGraphicSet(GrName ));479 assert(PictureList[i].HGr = LoadGraphicSet(GrName + '.png')); 480 480 assert(PictureList[i].pix = pix); 481 481 ModelPicture[mix].HGr := PictureList[i].HGr; … … 487 487 with ModelPicture[mix] do 488 488 begin 489 HGr := LoadGraphicSet(GrName );489 HGr := LoadGraphicSet(GrName + '.png'); 490 490 pix := Info.pix; 491 491 inc(GrExt[HGr].pixUsed[pix]); -
trunk/LocalPlayer/UnitStat.pas
r61 r73 82 82 Back.Canvas.FillRect(0, 0, Back.Width,Back.Height); 83 83 Template := TBitmap.Create; 84 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'Unit', gfNoGamma);85 Template.PixelFormat := pf8bit;84 Template.PixelFormat := pf24bit; 85 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'Unit.png', gfNoGamma); 86 86 end; 87 87
Note:
See TracChangeset
for help on using the changeset viewer.