Ignore:
Timestamp:
Jan 7, 2017, 1:28:56 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Converted to Lazarus project. Application can be run with errors.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        66Win32
        77*.~dsk
         8C-evo.exe
         9Integrated.compiled
         10Integrated.lps
         11lib
  • trunk/LocalPlayer/Term.pas

    r6 r9  
    1 {$INCLUDE switches}
     1{$INCLUDE switches.pas}
    22unit Term;
    33
     
    55
    66uses
    7   Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase,
    8 
    9   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Menus,
     7  Windows, Protocol, Tribes, PVSB, ClientTools, ScreenTools, BaseWin, Messg, ButtonBase,
     8
     9  LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, Menus,
    1010  ExtCtrls,
    1111  ButtonA, ButtonB, ButtonC, EOTButton, Area;
     
    427427uses
    428428  Directories, IsoEngine, CityScreen, Draft, MessgEx, Select, CityType, Help,
    429   UnitStat, Diplomacy, Inp, log, Diagram, NatStat, Wonders, Enhance, Nego,
     429  UnitStat, Diplomacy, Inp, Log, Diagram, NatStat, Wonders, Enhance, Nego,
    430430  Battle, Rates,
    431431  TechTree,
    432432
    433   Registry, ShellAPI;
    434 
    435 {$R *.DFM}
    436 {$R Res1.res}
     433  Registry;
     434
     435{$R *.lfm}
     436// TODO {$R Res1.res}
    437437
    438438const
     
    42044204      offscreen.Canvas.Font.Assign(UniFont[ftSmall]);
    42054205      rec := Rect(0, 0, MapWidth, MapHeight);
    4206       ScrollDC(offscreen.Canvas.Handle, (xwd - xw) * (xxt * 2),
    4207         (ywd - yw) * yyt, rec, rec, 0, nil);
     4206      { TODO ScrollDC(offscreen.Canvas.Handle, (xwd - xw) * (xxt * 2),
     4207        (ywd - yw) * yyt, rec, rec, 0, nil);}
    42084208      for DoInvalidate := false to FastScrolling do
    42094209      begin
     
    42114211        begin
    42124212          rec.Bottom := MapHeight - overlap;
    4213           ScrollDC(Canvas.Handle, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt, rec,
    4214             rec, 0, nil);
     4213          { TODO ScrollDC(Canvas.Handle, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt, rec,
     4214            rec, 0, nil);}
    42154215          ProcessOptions := prInvalidate;
    42164216        end
     
    43724372        if supervising then
    43734373        begin
    4374           Frame(Panel.Canvas, ClientWidth - xPalace - 1, yPalace - 1,
     4374          ScreenTools.Frame(Panel.Canvas, ClientWidth - xPalace - 1, yPalace - 1,
    43754375            ClientWidth - xPalace + xSizeBig, yPalace + ySizeBig,
    43764376            $B0B0B0, $FFFFFF);
     
    43924392
    43934393      if GameMode = cMovie then
    4394         Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2,
     4394        ScreenTools.Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2,
    43954395          yMini + 2 + G.ly, $000000, $000000)
    43964396      else
    43974397      begin
    4398         Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2,
     4398        ScreenTools.Frame(Panel.Canvas, xMini + 1, yMini + 1, xMini + 2 + G.lx * 2,
    43994399          yMini + 2 + G.ly, $B0B0B0, $FFFFFF);
    44004400        RFrame(Panel.Canvas, xMini, yMini, xMini + 3 + G.lx * 2,
     
    44984498            if BrushTypes[i] = BrushType then
    44994499            begin
    4500               Frame(Panel.Canvas, xTroop + 2 + x, yTroop + 7 - yyt div 2,
     4500              ScreenTools.Frame(Panel.Canvas, xTroop + 2 + x, yTroop + 7 - yyt div 2,
    45014501                xTroop + 2 * xxt + x, yTroop + 2 * yyt + 11, $000000, $000000);
    4502               Frame(Panel.Canvas, xTroop + 1 + x, yTroop + 6 - yyt div 2,
     4502              ScreenTools.Frame(Panel.Canvas, xTroop + 1 + x, yTroop + 6 - yyt div 2,
    45034503                xTroop + 2 * xxt - 1 + x, yTroop + 2 * yyt + 10,
    45044504                MainTexture.clMark, MainTexture.clMark);
     
    46554655                        if uix = UnFocus then
    46564656                        begin
    4657                           Frame(Panel.Canvas, xTroop + 4 + x, yTroop + 3,
     4657                          ScreenTools.Frame(Panel.Canvas, xTroop + 4 + x, yTroop + 3,
    46584658                            xTroop + 64 + x, yTroop + 47, $000000, $000000);
    4659                           Frame(Panel.Canvas, xTroop + 3 + x, yTroop + 2,
     4659                          ScreenTools.Frame(Panel.Canvas, xTroop + 3 + x, yTroop + 2,
    46604660                            xTroop + 63 + x, yTroop + 46, MainTexture.clMark,
    46614661                            MainTexture.clMark);
     
    48224822      LineTo(ClientWidth, TopBarHeight - 3);
    48234823      Pen.Color := MainTexture.clBevelLight;
    4824       Frame(TopBar.Canvas, 40, -1, xTreasurySection - 1, TopBarHeight - 7,
     4824      ScreenTools.Frame(TopBar.Canvas, 40, -1, xTreasurySection - 1, TopBarHeight - 7,
    48254825        MainTexture.clBevelShade, MainTexture.clBevelLight);
    4826       Frame(TopBar.Canvas, xResearchSection + 332, -1, ClientWidth,
     4826      ScreenTools.Frame(TopBar.Canvas, xResearchSection + 332, -1, ClientWidth,
    48274827        TopBarHeight - 7, MainTexture.clBevelShade, MainTexture.clBevelLight);
    48284828    end;
     
    68456845          end
    68466846          else
    6847             with MessgExDlg do
     6847            // TODO with MessgExDlg do
    68486848            begin // revolution!
    6849               MessgText := Tribe[me].TPhrase('REVOLUTION');
    6850               Kind := mkYesNo;
    6851               IconKind := mikPureIcon;
    6852               IconIndex := 72; // anarchy palace
    6853               ShowModal;
     6849              MessgExDlg.MessgText := Tribe[me].TPhrase('REVOLUTION');
     6850              MessgExDlg.Kind := mkYesNo;
     6851              MessgExDlg.IconKind := mikPureIcon;
     6852              MessgExDlg.IconIndex := 72; // anarchy palace
     6853              MessgExDlg.ShowModal;
    68546854              if ModalResult = mrOK then
    68556855              begin
     
    68686868      end
    68696869      else if Sender = mWebsite then
    6870         ShellExecute(Handle, 'open', 'http://c-evo.org', '', '', SW_SHOWNORMAL)
     6870        OpenURL('http://c-evo.org'){ *Převedeno z ShellExecute* }
    68716871      else if Sender = mRandomMap then
    68726872      begin
Note: See TracChangeset for help on using the changeset viewer.