Changeset 73 for trunk/LocalPlayer


Ignore:
Timestamp:
Jan 15, 2017, 4:12:10 PM (8 years ago)
Author:
chronos
Message:
  • Modified: All graphics images converted from BMP to PNG.
Location:
trunk/LocalPlayer
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r72 r73  
    1010  Protocol, ClientTools, Term, ScreenTools, IsoEngine, BaseWin,
    1111  LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
    12   ButtonA, ButtonC, Area;
     12  ButtonA, ButtonC, Area, GraphType;
    1313
    1414const
     
    217217  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    218218  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);
    221221  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);
    224224  SmallCityMapTemplate := TBitmap.Create;
    225   LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'SmallCityMap',
     225  SmallCityMapTemplate.PixelFormat := pf24bit;
     226  LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'SmallCityMap.png',
    226227    gfNoGamma);
    227   SmallCityMapTemplate.PixelFormat := pf24bit;
    228228  SmallCityMap := TBitmap.Create;
    229229  SmallCityMap.PixelFormat := pf24bit;
  • trunk/LocalPlayer/Draft.pas

    r62 r73  
    9191  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    9292  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);
    9595end;
    9696
  • trunk/LocalPlayer/Help.pas

    r69 r73  
    968968          until (p > length(s)) or (s[p] = '\');
    969969          if LoadGraphicFile(ExtPic, LocalizedFilePath('Help' +
    970             DirectorySeparator + copy(s, 2, p - 2))) then
     970            DirectorySeparator + copy(s, 2, p - 2)) + '.png') then
    971971          begin
    972972            MainText.AddLine('', pkExternal);
  • trunk/LocalPlayer/IsoEngine.pas

    r68 r73  
    111111begin
    112112  result := false;
    113   HGrTerrainNew := LoadGraphicSet(Format('Terrain%dx%d',
     113  HGrTerrainNew := LoadGraphicSet(Format('Terrain%dx%d.png',
    114114    [xxtNew * 2, yytNew * 2]));
    115115  if HGrTerrainNew < 0 then
    116116    exit;
    117   HGrCitiesNew := LoadGraphicSet(Format('Cities%dx%d',
     117  HGrCitiesNew := LoadGraphicSet(Format('Cities%dx%d.png',
    118118    [xxtNew * 2, yytNew * 2]));
    119119  if HGrCitiesNew < 0 then
     
    334334  OceanMore.Free;
    335335  DitherMask.Free;
    336   //LandPatch.Savetofile('landpatch.bmp');
    337336
    338337  // reduce size of terrain icons
  • trunk/LocalPlayer/NatStat.pas

    r61 r73  
    9292  Back.Canvas.FillRect(0, 0, Back.Width, Back.Height);
    9393  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);
    9696end;
    9797
  • trunk/LocalPlayer/TechTree.pas

    r72 r73  
    128128  begin
    129129    Image := TBitmap.Create;
    130     LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree', gfNoGamma);
    131130    Image.PixelFormat := pf24bit;
     131    LoadGraphicFile(Image, HomeDir + 'Help' + DirectorySeparator + 'AdvTree.png', gfNoGamma);
    132132
    133133    with Image.Canvas do
  • trunk/LocalPlayer/Term.pas

    r72 r73  
    588588  SmallImp.EndUpdate;
    589589  FreeMem(resampled);
    590   // smallimp.savetofile(homedir+'smallimp.bmp'); //!!!
    591590end;
    592591
     
    674673    with Tribe[p].ModelPicture[mix] do
    675674    begin
    676       HGr := LoadGraphicSet(Picture.GrName);
     675      HGr := LoadGraphicSet(Picture.GrName + '.png');
    677676      pix := Picture.pix;
    678677    end;
     
    12031202    if AILogo[p] = nil then
    12041203      AILogo[p] := TBitmap.Create;
    1205     if not LoadGraphicFile(AILogo[p], HomeDir + Name, gfNoError) then
     1204    if not LoadGraphicFile(AILogo[p], HomeDir + Name + '.png', gfNoError) then
    12061205    begin
    12071206      AILogo[p].free;
     
    14671466    MainMap.SetOutput(offscreen);
    14681467
    1469     HGrStdUnits := LoadGraphicSet('StdUnits');
     1468    HGrStdUnits := LoadGraphicSet('StdUnits.png');
    14701469    SmallImp := TBitmap.Create;
    14711470    SmallImp.PixelFormat := pf24bit;
  • trunk/LocalPlayer/Tribes.pas

    r38 r73  
    301301        Item := Get;
    302302        sympix := GetNum;
    303         symHGr := LoadGraphicSet(Item);
     303        symHGr := LoadGraphicSet(Item + '.png');
    304304      end
    305305    end;
     
    425425                  end
    426426              end;
    427             cHGr := LoadGraphicSet(Item);
     427            cHGr := LoadGraphicSet(Item + '.png');
    428428            for x := 0 to 3 do
    429429              with CityPicture[x] do
     
    445445          else
    446446          begin
    447             faceHGr := LoadGraphicSet(Item);
     447            faceHGr := LoadGraphicSet(Item + '.png');
    448448            facepix := GetNum;
    449449            if GrExt[faceHGr].Data.Canvas.Pixels[facepix mod 10 * 65,
     
    477477            dec(i);
    478478          assert(i >= 0);
    479           assert(PictureList[i].HGr = LoadGraphicSet(GrName));
     479          assert(PictureList[i].HGr = LoadGraphicSet(GrName + '.png'));
    480480          assert(PictureList[i].pix = pix);
    481481          ModelPicture[mix].HGr := PictureList[i].HGr;
     
    487487          with ModelPicture[mix] do
    488488          begin
    489             HGr := LoadGraphicSet(GrName);
     489            HGr := LoadGraphicSet(GrName + '.png');
    490490            pix := Info.pix;
    491491            inc(GrExt[HGr].pixUsed[pix]);
  • trunk/LocalPlayer/UnitStat.pas

    r61 r73  
    8282  Back.Canvas.FillRect(0, 0, Back.Width,Back.Height);
    8383  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);
    8686end;
    8787
Note: See TracChangeset for help on using the changeset viewer.