Changeset 61


Ignore:
Timestamp:
Nov 25, 2020, 12:23:23 PM (3 years ago)
Author:
chronos
Message:
  • Added: Activated multi-language support in the project file.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BigMetro.lpi

    r60 r61  
    1616    </General>
    1717    <i18n>
    18       <EnableI18N LFM="False"/>
     18      <EnableI18N Value="True"/>
     19      <OutDir Value="Languages"/>
    1920    </i18n>
    2021    <BuildModes Count="2">
     
    141142        <StackChecks Value="True"/>
    142143      </Checks>
     144      <VerifyObjMethodCallValidity Value="True"/>
    143145    </CodeGeneration>
    144146    <Linking>
  • trunk/Forms/UFormMain.lfm

    r58 r61  
    11object FormMain: TFormMain
    2   Left = 263
    3   Height = 823
    4   Top = 102
    5   Width = 1139
     2  Left = 344
     3  Height = 929
     4  Top = 195
     5  Width = 1276
    66  Caption = 'Big Metro'
    7   ClientHeight = 823
    8   ClientWidth = 1139
    9   DesignTimePPI = 128
     7  ClientHeight = 929
     8  ClientWidth = 1276
     9  DesignTimePPI = 144
    1010  OnCreate = FormCreate
    1111  OnDestroy = FormDestroy
    1212  OnKeyPress = FormKeyPress
    1313  OnShow = FormShow
    14   LCLVersion = '1.9.0.0'
     14  LCLVersion = '2.0.10.0'
    1515  WindowState = wsMaximized
    1616  object PaintBox1: TPaintBox
    1717    Left = 0
    18     Height = 823
     18    Height = 929
    1919    Top = 0
    20     Width = 1139
     20    Width = 1276
    2121    Align = alClient
     22    ParentFont = False
    2223    OnMouseDown = PaintBox1MouseDown
    2324    OnMouseMove = PaintBox1MouseMove
     
    3132    Interval = 50
    3233    OnTimer = Timer1Timer
    33     left = 446
    34     top = 19
     34    Left = 502
     35    Top = 21
    3536  end
    3637end
  • trunk/UEngine.pas

    r59 r61  
    361361resourcestring
    362362  SZeroZoomNotAlowed = 'Zero zoom not allowed';
     363  SAlreadyConnectedTrackPoint = 'Trying to connect already connected track point';
     364  SAlreadyDisconnectedTrackPoint = 'Trying to disconnect not connected track point';
     365  SGameOver = 'Game Over';
     366  SGameOverReason = 'Overcrowding at this station has forced you to resign as metro manager.';
     367  SGameOverStatistic = '%d passengers travelled on your metro over %d days.';
    363368
    364369{ TTrackLinks }
     
    567572    TrackPoint.NeighLinks.Add(NewLink);
    568573    Track.Links.Add(NewLink);
    569   end else raise Exception.Create('Trying to connect already connected track point');
     574  end else raise Exception.Create(SAlreadyConnectedTrackPoint);
    570575end;
    571576
     
    585590    TrackPoint.NeighLinks.Remove(Link);
    586591    Track.Links.Remove(Link);
    587   end else raise Exception.Create('Trying to disconnect not connected track point');
     592  end else raise Exception.Create(SAlreadyDisconnectedTrackPoint);
    588593end;
    589594
     
    22562261  MapStation: TMapStation;
    22572262  Passenger: TMetroPassenger;
    2258 const
    2259   GameOverText = 'Game Over';
    2260   GameOverReason = 'Overcrowding at this station has forced you to resign as metro manager.';
    2261   GameOverStatistic = '%d passengers travelled on your metro over %d days.';
    22622263begin
    22632264  Canvas := MetaCanvas;
     
    24772478    TargetCanvas.Font.Size := 40;
    24782479    TargetCanvas.Font.Color := clBlack;
    2479     TargetCanvas.TextOut((TargetCanvas.Width - TargetCanvas.TextWidth(GameOverText)) div 2, 100, GameOverText);
     2480    TargetCanvas.TextOut((TargetCanvas.Width - TargetCanvas.TextWidth(SGameOver)) div 2, 100, SGameOver);
    24802481    TargetCanvas.Font.Size := 14;
    2481     TargetCanvas.TextOut((TargetCanvas.Width - TargetCanvas.TextWidth(GameOverReason)) div 2, 160, GameOverReason);
    2482     Text := Format(GameOverStatistic, [ServedPassengerCount, Trunc(Time)]);
     2482    TargetCanvas.TextOut((TargetCanvas.Width - TargetCanvas.TextWidth(SGameOverReason)) div 2, 160, SGameOverReason);
     2483    Text := Format(SGameOverStatistic, [ServedPassengerCount, Trunc(Time)]);
    24832484    TargetCanvas.TextOut((TargetCanvas.Width - TargetCanvas.TextWidth(Text)) div 2, 180, Text);
    24842485  end;
Note: See TracChangeset for help on using the changeset viewer.