Remove "All rights reserved" line from license headers.
[profile/ivi/qtdeclarative.git] / examples / declarative / particles / plasmapatrol / content / HelpScreens.qml
1 /****************************************************************************
2 **
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/
5 **
6 ** This file is part of the QtDeclarative module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** GNU Lesser General Public License Usage
10 ** This file may be used under the terms of the GNU Lesser General Public
11 ** License version 2.1 as published by the Free Software Foundation and
12 ** appearing in the file LICENSE.LGPL included in the packaging of this
13 ** file. Please review the following information to ensure the GNU Lesser
14 ** General Public License version 2.1 requirements will be met:
15 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
16 **
17 ** In addition, as a special exception, Nokia gives you certain additional
18 ** rights. These rights are described in the Nokia Qt LGPL Exception
19 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
20 **
21 ** GNU General Public License Usage
22 ** Alternatively, this file may be used under the terms of the GNU General
23 ** Public License version 3.0 as published by the Free Software Foundation
24 ** and appearing in the file LICENSE.GPL included in the packaging of this
25 ** file. Please review the following information to ensure the GNU General
26 ** Public License version 3.0 requirements will be met:
27 ** http://www.gnu.org/copyleft/gpl.html.
28 **
29 ** Other Usage
30 ** Alternatively, this file may be used in accordance with the terms and
31 ** conditions contained in a signed written agreement between you and Nokia.
32 **
33 **
34 **
35 **
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 import QtQuick 2.0
42 import QtQuick.Particles 2.0
43
44 SequentialLoader {
45     id: hLdr
46     signal exitDesired
47     Component.onCompleted: advance();
48     ParticleSystem { id: helpSystem }
49     PlasmaPatrolParticles { sys: helpSystem }
50     pages: [
51         Component {Item {
52             id: story
53             Text {
54                 color: "white"
55                 text: "Story"
56                 font.pixelSize: 48
57             }
58             /*
59             Flickable {
60                 y: 60
61                 width: 360
62                 height: 500
63                 contentHeight: txt1.height
64                 contentWidth: 360//TODO: Less magic numbers?
65                 */
66                 Text {
67                     id: txt1
68                     color: "white"
69                     y: 60
70                     font.pixelSize: 18
71                     text: "
72 In a remote nebula, a race of energy beings formed and lived prosperous lives for millenia. Until the schism - when they became constantly at each other's energy-throats. War soon followed, crippling both sides, until a truce was formed. But while governments knew the desparate need for peace, the soldiers in the ion-field were still filled with rampant bloodlust. On the border, patrols are constantly engaging in minor skirmishes whenever they cross paths. 
73
74 You must select one such patrol unit for the border, heading into an inevitable skirmish, in Plasma Patrol: the game of energy being spaceship combat!
75                     "
76                     width: 360
77                     wrapMode: Text.WordWrap
78                 }
79            // }
80             Button {
81                 x: 20
82                 y: 560
83                 height: 40
84                 width: 120
85                 text: "Next"
86                 onClicked: hLdr.advance();
87             }
88             Button {
89                 x: 220
90                 y: 560
91                 height: 40
92                 width: 120
93                 text: "Menu"
94                 onClicked: hLdr.exitDesired();
95             }
96         }},
97         Component {Item {
98             id: ships
99             Text {
100                 color: "white"
101                 text: "Vessels"
102                 font.pixelSize: 48
103             }
104             Column {
105                 spacing: 16
106                 y: 60
107                 Row {
108                     height: 128
109                     Sloop {
110                         system: helpSystem
111                     }
112                     Text {
113                         text: "The nimble sloop"
114                         color: "white"
115                         font.pixelSize: 18
116                     }
117                 }
118                 Row {
119                     height: 128
120                     Frigate {
121                         system: helpSystem
122                     }
123                     Text {
124                         text: "The versitile shield frigate"
125                         color: "white"
126                         font.pixelSize: 18
127                     }
128                 }
129                 Row {
130                     height: 128
131                     Cruiser {
132                         system: helpSystem
133                     }
134                     Text {
135                         text: "The armored cruiser"
136                         color: "white"
137                         font.pixelSize: 18
138                     }
139                 }
140             }
141             Button {
142                 x: 20
143                 y: 560
144                 height: 40
145                 width: 120
146                 text: "Next"
147                 onClicked: hLdr.advance();
148             }
149             Button {
150                 x: 220
151                 y: 560
152                 height: 40
153                 width: 120
154                 text: "Menu"
155                 onClicked: hLdr.exitDesired();
156             }
157         }},
158         Component {Item {
159             id: guns
160             Text {
161                 color: "white"
162                 text: "Hardpoints"
163                 font.pixelSize: 48
164             }
165             Column {
166                 spacing: 16
167                 y: 60
168                 Row {
169                     height: 128
170                     LaserHardpoint {
171                         system: helpSystem
172                     }
173                     Text {
174                         text: "The laser hardpoint almost always hits the target, even the nimble sloop, but loses much of its potency against the frigate's shields"
175                         width: 332
176                         wrapMode: Text.WordWrap
177                         color: "white"
178                         font.pixelSize: 18
179                     }
180                 }
181                 Row {
182                     height: 128
183                     BlasterHardpoint {
184                         system: helpSystem
185                     }
186                     Text {
187                         text: "The blaster passes right through the frigate's shields but loses much of its impact against the armor of the cruiser"
188                         width: 332
189                         wrapMode: Text.WordWrap
190                         color: "white"
191                         font.pixelSize: 18
192                     }
193                 }
194                 Row {
195                     height: 128
196                     CannonHardpoint {
197                         system: helpSystem
198                     }
199                     Text {
200                         text: "The cannon has poor accuracy, often missing the nimble sloop, but can punch right through the armor of the cruiser"
201                         width: 332
202                         wrapMode: Text.WordWrap
203                         color: "white"
204                         font.pixelSize: 18
205                     }
206                 }
207             }
208             Button {
209                 x: 20
210                 y: 560
211                 height: 40
212                 width: 120
213                 text: "Next"
214                 onClicked: hLdr.advance();
215             }
216             Button {
217                 x: 220
218                 y: 560
219                 height: 40
220                 width: 120
221                 text: "Menu"
222                 onClicked: hLdr.exitDesired();
223             }
224         }},
225         Component {Item {
226             id: strategy
227             Text {
228                 color: "white"
229                 text: "Strategy"
230                 font.pixelSize: 48
231             }
232             Flickable {
233                 y: 60
234                 width: 360
235                 height: 500
236                 contentHeight: txt1.height
237                 contentWidth: 360//TODO: Less magic numbers?
238                 Text {
239                     id: txt1
240                     color: "white"
241                     font.pixelSize: 18
242                     text: "
243 Basic Strategy: Good luck, have fun - don't die.
244 More to come after thorough playtesting.
245                     "
246                     width: 360
247                     wrapMode: Text.WordWrap
248                 }
249             }
250             Button {
251                 x: 20
252                 y: 560
253                 height: 40
254                 width: 120
255                 text: "Story"
256                 onClicked: {hLdr.at=0; hLdr.advance();}
257             }
258             Button {
259                 x: 220
260                 y: 560
261                 height: 40
262                 width: 120
263                 text: "Menu"
264                 onClicked: hLdr.exitDesired();
265             }
266         }}
267     ]
268 }