Changeset 61
- Timestamp:
- Nov 25, 2020, 12:23:23 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BigMetro.lpi
r60 r61 16 16 </General> 17 17 <i18n> 18 <EnableI18N LFM="False"/> 18 <EnableI18N Value="True"/> 19 <OutDir Value="Languages"/> 19 20 </i18n> 20 21 <BuildModes Count="2"> … … 141 142 <StackChecks Value="True"/> 142 143 </Checks> 144 <VerifyObjMethodCallValidity Value="True"/> 143 145 </CodeGeneration> 144 146 <Linking> -
trunk/Forms/UFormMain.lfm
r58 r61 1 1 object FormMain: TFormMain 2 Left = 2633 Height = 8234 Top = 1 025 Width = 1 1392 Left = 344 3 Height = 929 4 Top = 195 5 Width = 1276 6 6 Caption = 'Big Metro' 7 ClientHeight = 8238 ClientWidth = 1 1399 DesignTimePPI = 1 287 ClientHeight = 929 8 ClientWidth = 1276 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 12 OnKeyPress = FormKeyPress 13 13 OnShow = FormShow 14 LCLVersion = ' 1.9.0.0'14 LCLVersion = '2.0.10.0' 15 15 WindowState = wsMaximized 16 16 object PaintBox1: TPaintBox 17 17 Left = 0 18 Height = 82318 Height = 929 19 19 Top = 0 20 Width = 1 13920 Width = 1276 21 21 Align = alClient 22 ParentFont = False 22 23 OnMouseDown = PaintBox1MouseDown 23 24 OnMouseMove = PaintBox1MouseMove … … 31 32 Interval = 50 32 33 OnTimer = Timer1Timer 33 left = 44634 top = 1934 Left = 502 35 Top = 21 35 36 end 36 37 end -
trunk/UEngine.pas
r59 r61 361 361 resourcestring 362 362 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.'; 363 368 364 369 { TTrackLinks } … … 567 572 TrackPoint.NeighLinks.Add(NewLink); 568 573 Track.Links.Add(NewLink); 569 end else raise Exception.Create( 'Trying to connect already connected track point');574 end else raise Exception.Create(SAlreadyConnectedTrackPoint); 570 575 end; 571 576 … … 585 590 TrackPoint.NeighLinks.Remove(Link); 586 591 Track.Links.Remove(Link); 587 end else raise Exception.Create( 'Trying to disconnect not connected track point');592 end else raise Exception.Create(SAlreadyDisconnectedTrackPoint); 588 593 end; 589 594 … … 2256 2261 MapStation: TMapStation; 2257 2262 Passenger: TMetroPassenger; 2258 const2259 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.';2262 2263 begin 2263 2264 Canvas := MetaCanvas; … … 2477 2478 TargetCanvas.Font.Size := 40; 2478 2479 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); 2480 2481 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)]); 2483 2484 TargetCanvas.TextOut((TargetCanvas.Width - TargetCanvas.TextWidth(Text)) div 2, 180, Text); 2484 2485 end;
Note:
See TracChangeset
for help on using the changeset viewer.