1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/***************************************************************************
helpwindow.cpp - description
-------------------
begin : Sun Sep 8 2002
copyright : (C) 2002 by Andy Qua
email : andy.qua@blueyonder.co.uk
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <qlayout.h>
#include <qtextview.h>
#include <qpe/qpeapplication.h>
#include "helpwindow.h"
static QString HELP_TEXT() {
return QObject::tr("<qt><h1>SFCave Help</h1><p> "
"SFCave is a flying game for the Zaurus.<br><br> "
"The aim is to stay alive for as long as possible and get the highest score "
"you can.<br><br>"
"There are three game types currently - SFCave, Gates, and Fly.<br>"
"<b>SFCave</b> is a remake of the classic SFCave game - fly through the "
"cavern avoiding all the blocks that just happen to be hanging in "
"midair<br><br>"
"<b>Gates</b> is similar to SFCave but instead you must fly through the "
"without crashing.<br><br>"
"<b>Fly</b> is somewhat different to SFCave and above. Instead, you have "
"are flying in the open air above a scrolling landscape, and the aim is to "
"hug the ground - the closer to the land you fly the more points "
"scored.<br><br><br>"
"Basic instruction - Press <b>Up</B> or <b>Down</b> on the circle pad to "
"start a new game, press the middle of the pad to apply thrust (makes you "
"go up), and release the pad to remove thrust and drop down.<br><br>"
"Also, if playing the Fly game, you can press z to toggle the display "
"of the scoring zones. This will display 4 red lines at varying heights "
"above the landscape - if your ship falls into this zone, point are scored. "
"The closer to the landscape you get the more points you get.<br><br>"
"In addition, SFCave has replays - save and load too so you can show off to all "
"your friends (or vice versa). Currently, this is in its infancy but will improve.<br>"
"To use, once you have crashed, press 'r' to replay the last game.<br>"
"To save the replay press 's'.<br>"
"To load a saved replay press 'l' (after you've crashed at least once).<br><br>"
"Replays are currently saved to your home directory in a file called sfcave.replay."
"This file can be copied and given to others as long as it it put in their home directory.<br><br>"
"Have lots of fun.<br>"
"Andy"
"</p></qt>");
}
HelpWindow::HelpWindow( QWidget *parent, const char *name)
: QWidget( parent, name, WDestructiveClose )
{
setCaption( tr("Help for SFCave") );
QVBoxLayout *layout = new QVBoxLayout( this );
QString text = HELP_TEXT();;
QTextView *view = new QTextView( text, 0, this, "view" );
layout->insertSpacing( -1, 5 );
layout->insertWidget( -1, view );
layout->insertSpacing( -1, 5 );
}
HelpWindow::~HelpWindow()
{
}
|