Ignore:
Timestamp:
Mar 18, 2021, 10:58:28 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Gamma was incorrectly applied to images with transparency colors.
  • Modified: Change Templates to GraphicSet so it can also have description of its items.
  • Modified: Use TextExtent instead of both TextWidth and TextHeight.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Term.pas

    r314 r315  
    25472547          Jump[0] := 999999;
    25482548        GameMode := Command;
    2549         for i := 0 to GrExt.Count - 1 do
    2550           GrExt[i].ResetPixUsed;
     2549        GrExt.ResetPixUsed;
    25512550        IsoEngine.Reset;
    25522551        Tribes.Init;
     
    35123511  Canvas.Font.Assign(UniFont[ftSmall]);
    35133512  InitButtons;
    3514   EOT.Template := Templates;
     3513  EOT.Template := Templates.Data;
    35153514end;
    35163515
     
    48444843  end;
    48454844  if GameMode <> cMovie then
    4846     ImageOp_BCC(TopBar, Templates, 2, 1, 145, 38, 36, 36, $BFBF20, $4040DF);
     4845    ImageOp_BCC(TopBar, Templates.Data, 2, 1, 145, 38, 36, 36, $BFBF20, $4040DF);
    48474846  if MyRO.nCity > 0 then
    48484847  begin
     
    48604859
    48614860    // treasury section
    4862     ImageOp_BCC(TopBar, Templates, xTreasurySection + 8, 1, 145, 1, 36, 36,
     4861    ImageOp_BCC(TopBar, Templates.Data, xTreasurySection + 8, 1, 145, 1, 36, 36,
    48634862      $40A040, $4030C0);
    48644863    s := IntToStr(TrueMoney);
     
    48674866    if MyRO.Government <> gAnarchy then
    48684867    begin
    4869       ImageOp_BCC(TopBar, Templates, xTreasurySection + 48, 22, 124, 1, 14, 14,
     4868      ImageOp_BCC(TopBar, Templates.Data, xTreasurySection + 48, 22, 124, 1, 14, 14,
    48704869        $0000C0, $0080C0);
    48714870      if TaxSum >= 0 then
     
    48784877
    48794878    // research section
    4880     ImageOp_BCC(TopBar, Templates, xResearchSection + 8, 1, 145, 75, 36, 36,
     4879    ImageOp_BCC(TopBar, Templates.Data, xResearchSection + 8, 1, 145, 75, 36, 36,
    48814880      $FF0000, $00FFE0);
    48824881    if MyData.FarTech <> adNexus then
     
    49294928    if (MyData.FarTech <> adNexus) and (ScienceSum > 0) then
    49304929    begin
    4931       ImageOp_BCC(TopBar, Templates, xResearchSection + 48 + CostFactor + 11,
     4930      ImageOp_BCC(TopBar, Templates.Data, xResearchSection + 48 + CostFactor + 11,
    49324931        22, 124, 1, 14, 14, $0000C0, $0080C0);
    49334932      s := Format(Phrases.Lookup('TECHGAIN'), [ScienceSum]);
Note: See TracChangeset for help on using the changeset viewer.