source: trunk/Forms/FormHelp.pas

Last change on this file was 101, checked in by chronos, 7 months ago
  • Added: Close button in moves history and help forms.
  • Modified: Always show moves history menu action.
File size: 1005 bytes
Line 
1unit FormHelp;
2
3interface
4
5uses
6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx;
7
8type
9
10 { TFormHelp }
11
12 TFormHelp = class(TFormEx)
13 ButtonOk: TButton;
14 Memo1: TMemo;
15 procedure FormShow(Sender: TObject);
16 end;
17
18
19implementation
20
21{$R *.lfm}
22
23resourcestring
24 SParagraph1 = '2048 is a single-player block sliding puzzle game.';
25 SParagraph2 = 'The game''s objective is to slide numbered tiles on a grid to combine them to create a tile with the number 2048.';
26 SControls = 'Use arrow keys to slide blocks to one of board side.';
27 SEveryTurn = 'Every turn, a new tile will randomly appear in an empty spot on the board with a value of either 2 or 4.';
28 SUndo = 'You can undo one move back, if undo action is enabled.';
29
30{ TFormHelp }
31
32procedure TFormHelp.FormShow(Sender: TObject);
33begin
34 Memo1.Text := SParagraph1 + LineEnding +
35 SParagraph2 + LineEnding +
36 SControls + LineEnding +
37 SEveryTurn + LineEnding +
38 SUndo + LineEnding +
39 '';
40end;
41
42end.
43
Note: See TracBrowser for help on using the repository browser.