| 1 |
unit ${UNIT_NAME}; |
| 2 |
|
| 3 |
interface |
| 4 |
|
| 5 |
uses Classes, |
| 6 |
CastleVectors, CastleUIControls, CastleControls, CastleKeysMouse; |
| 7 |
|
| 8 |
type |
| 9 |
${VIEW_CLASS_NAME} = class(TCastleView) |
| 10 |
published |
| 11 |
{ Components designed using CGE editor. |
| 12 |
These fields will be automatically initialized at Start. } |
| 13 |
// ButtonXxx: TCastleButton; |
| 14 |
public |
| 15 |
constructor Create(AOwner: TComponent); override; |
| 16 |
procedure Start; override; |
| 17 |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
| 18 |
end; |
| 19 |
|
| 20 |
var |
| 21 |
${VIEW_VARIABLE_NAME}: ${VIEW_CLASS_NAME}; |
| 22 |
|
| 23 |
implementation |
| 24 |
|
| 25 |
constructor ${VIEW_CLASS_NAME}.Create(AOwner: TComponent); |
| 26 |
begin |
| 27 |
inherited; |
| 28 |
DesignUrl := '${DESIGN_FILE_URL}'; |
| 29 |
end; |
| 30 |
|
| 31 |
procedure ${VIEW_CLASS_NAME}.Start; |
| 32 |
begin |
| 33 |
inherited; |
| 34 |
{ Executed once when view starts. } |
| 35 |
end; |
| 36 |
|
| 37 |
procedure ${VIEW_CLASS_NAME}.Update(const SecondsPassed: Single; var HandleInput: boolean); |
| 38 |
begin |
| 39 |
inherited; |
| 40 |
{ Executed every frame. } |
| 41 |
end; |
| 42 |
|
| 43 |
end. |