nibbles.ui 35.3 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<interface>
Iulian Radu's avatar
Iulian Radu committed
3
    <object class="GtkHeaderBar" id="headerbar">
4
        <property name="visible">True</property>
5
        <property name="title" translatable="yes">Nibbles</property>
Iulian Radu's avatar
Iulian Radu committed
6
        <property name="show-close-button">True</property>
7 8 9 10 11
        <child>
            <object class="GtkButton" id="new_game_button">
                <property name="visible">False</property>
                <property name="use-underline">True</property>
                <property name="label" translatable="yes">_New Game</property>
12
                <property name="action-name">app.new-game</property>
13
            </object>
Iulian Radu's avatar
Iulian Radu committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27
            <packing>
                <property name="pack-type">start</property>
            </packing>
        </child>
        <child>
            <object class="GtkButton" id="pause_button">
                <property name="visible">False</property>
                <property name="use-underline">True</property>
                <property name="label" translatable="yes">_Pause</property>
                <property name="action-name">app.pause</property>
            </object>
            <packing>
                <property name="pack-type">end</property>
            </packing>
28
        </child>
29 30 31 32
    </object>
    <object class="GtkApplicationWindow" id="nibbles-window">
        <property name="title" translatable="yes">Nibbles</property>
        <child>
33
            <object class="GtkOverlay" id="main_overlay">
34 35
                <property name="visible">True</property>
                <child>
36
                    <object class="GtkBox" id="vbox">
37
                        <property name="visible">True</property>
38
                        <property name="orientation">vertical</property>
39
                        <style><class name="window-background"/></style>
40
                        <child>
41
                            <object class="GtkStack" id="main_stack">
42
                                <property name="visible">True</property>
43 44 45 46 47
                                <property name="homogeneous">True</property>
                                <property name="margin">25</property>
                                <property name="expand">True</property>
                                <property name="transition-type">5</property> <!-- SLIDE_UP -->
                                <property name="transition-duration">500</property>
48
                                <child>
49
                                    <object class="GtkBox" id="first_run">
50 51
                                        <property name="visible">True</property>
                                        <property name="orientation">vertical</property>
52 53
                                        <property name="width-request">350</property>
                                        <property name="height-request">350</property>
54
                                        <child>
55
                                            <object class="GtkButton">
56
                                                <property name="visible">True</property>
57 58 59 60 61 62 63 64 65 66 67
                                                <property name="use-underline">True</property>
                                                <property name="label" translatable="yes">Let's _Play</property>
                                                <property name="action-name">app.show-new-game-screen</property>
                                                <property name="halign">center</property>
                                                <property name="valign">end</property>
                                                <property name="width-request">140</property>
                                                <property name="height-request">40</property>
                                                <style>
                                                    <class name="suggested-action"/>
                                                    <class name="play"/>
                                                </style>
68 69
                                            </object>
                                            <packing>
70
                                                <property name="pack-type">end</property>
71 72
                                            </packing>
                                        </child>
73
                                        <child>
74
                                            <object class="GtkBox">
75
                                                <property name="visible">True</property>
76
                                                <property name="orientation">vertical</property>
77 78 79
                                                <property name="homogeneous">True</property>
                                                <property name="valign">center</property>
                                                <property name="vexpand">True</property>
80
                                                <child>
81
                                                    <object class="GtkImage">
82
                                                        <property name="visible">True</property>
83 84 85
                                                        <property name="icon-name">gnome-nibbles</property>
                                                        <property name="icon-size">6</property> <!-- DIALOG -->
                                                        <property name="pixel-size">96</property>
86
                                                    </object>
87 88 89
                                                    <packing>
                                                        <property name="pack-type">start</property>
                                                    </packing>
90 91 92 93
                                                </child>
                                                <child>
                                                    <object class="GtkLabel">
                                                        <property name="visible">True</property>
94 95
                                                        <property name="label" translatable="yes">Welcome, worms.</property>
                                                        <style><class name="menu-title"/></style>
96
                                                    </object>
97 98 99
                                                    <packing>
                                                        <property name="pack-type">start</property>
                                                    </packing>
100 101
                                                </child>
                                                <child>
102
                                                    <object class="GtkLabel">
103
                                                        <property name="visible">True</property>
104 105 106
                                                        <property name="label" translatable="yes">Eat the treats before the other worms, but don't hit anything!</property>
                                                        <property name="valign">1</property> <!-- START -->
                                                        <style><class name="tip"/></style>
107 108 109 110 111
                                                    </object>
                                                    <packing>
                                                        <property name="pack-type">start</property>
                                                    </packing>
                                                </child>
112 113 114 115 116
                                            </object>
                                            <packing>
                                                <property name="pack-type">end</property>
                                            </packing>
                                        </child>
117
                                    </object> <!-- End of first_run -->
118 119 120 121 122 123 124 125 126
                                    <packing>
                                        <property name="name">first_run</property>
                                    </packing>
                                </child>
                                <child>
                                    <object class="GtkBox" id="number_of_players">
                                        <property name="visible">True</property>
                                        <property name="orientation">vertical</property>
                                        <property name="halign">center</property>
127
                                        <property name="width-request">644</property>
128 129 130 131 132 133
                                        <child>
                                            <object class="GtkBox">
                                                <property name="visible">True</property>
                                                <property name="orientation">vertical</property>
                                                <property name="valign">center</property>
                                                <property name="spacing">60</property>
134
                                                <child>
135
                                                    <object class="GtkBox">
136
                                                        <property name="visible">True</property>
137 138 139 140 141 142 143 144 145
                                                        <property name="orientation">vertical</property>
                                                        <property name="spacing">10</property>
                                                        <child>
                                                            <object class="GtkLabel">
                                                                <property name="visible">True</property>
                                                                <property name="label" translatable="yes">Number of players</property>
                                                                <style><class name="menu-title"/></style>
                                                            </object>
                                                        </child>
146 147 148
                                                    </object>
                                                </child>
                                                <child>
149
                                                    <object class="GtkBox">
150
                                                        <property name="visible">True</property>
151
                                                        <property name="orientation">vertical</property>
152 153
                                                        <property name="spacing">10</property>
                                                        <child>
154
                                                            <object class="GtkLabel">
155
                                                                <property name="visible">True</property>
156
                                                                <property name="label" translatable="yes">Select the number of human players.</property>
157 158 159
                                                            </object>
                                                        </child>
                                                        <child>
160
                                                            <object class="GtkBox" id="number_of_players_box">
161
                                                                <property name="visible">True</property>
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
                                                                <property name="orientation">horizontal</property>
                                                                <property name="valign">center</property>
                                                                <property name="halign">center</property>
                                                                <property name="spacing">10</property>
                                                                <property name="vexpand">True</property>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="players1">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_1</property>
                                                                        <property name="active">True</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="players2">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_2</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="players3">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_3</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="players4">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_4</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
220 221
                                                            </object>
                                                        </child>
222 223 224 225 226 227 228
                                                    </object>
                                                </child>
                                                <child>
                                                    <object class="GtkBox">
                                                        <property name="visible">True</property>
                                                        <property name="orientation">vertical</property>
                                                        <property name="spacing">10</property>
229
                                                        <child>
230
                                                            <object class="GtkLabel">
231
                                                                <property name="visible">True</property>
232
                                                                <property name="label" translatable="yes">Select the number of computer players.</property>
233 234 235
                                                            </object>
                                                        </child>
                                                        <child>
236
                                                            <object class="GtkBox" id="number_of_ai_box">
237
                                                                <property name="visible">True</property>
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
                                                                <property name="orientation">horizontal</property>
                                                                <property name="valign">center</property>
                                                                <property name="halign">center</property>
                                                                <property name="spacing">10</property>
                                                                <property name="vexpand">True</property>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="ai0">
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_0</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="ai1">
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_1</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="ai2">
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_2</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="ai3">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_3</property>
                                                                        <property name="active">True</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="ai4">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_4</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
                                                                <child>
                                                                    <object class="GtkToggleButton" id="ai5">
                                                                        <property name="visible">True</property>
                                                                        <property name="use-underline">True</property>
                                                                        <property name="label">_5</property>
                                                                        <style>
                                                                            <class name="number-box"/>
                                                                        </style>
                                                                    </object>
                                                                    <packing>
                                                                        <property name="pack-type">start</property>
                                                                    </packing>
                                                                </child>
319 320
                                                            </object>
                                                        </child>
321 322
                                                    </object>
                                                </child>
323 324 325 326
                                            </object>
                                            <packing>
                                                <property name="pack-type">start</property>
                                            </packing>
327 328
                                        </child>
                                        <child>
329
                                            <object class="GtkButton" id="next_button">
330
                                                <property name="visible">True</property>
331
                                                <property name="can-default">True</property>
332 333 334 335 336 337 338 339 340 341
                                                <property name="use-underline">True</property>
                                                <property name="label" translatable="yes">_Next</property>
                                                <property name="action-name">app.show-controls-screen</property>
                                                <property name="width-request">116</property>
                                                <property name="height-request">34</property>
                                                <property name="halign">center</property>
                                                <style>
                                                    <class name="suggested-action"/>
                                                    <class name="play"/>
                                                </style>
Iulian Radu's avatar
Iulian Radu committed
342 343
                                            </object>
                                            <packing>
344
                                                <property name="pack-type">end</property>
Iulian Radu's avatar
Iulian Radu committed
345 346
                                            </packing>
                                        </child>
347
                                    </object> <!-- End of number_of_players -->
348
                                    <packing>
349
                                        <property name="name">number_of_players</property>
350 351
                                    </packing>
                                </child>
Iulian Radu's avatar
Iulian Radu committed
352
                                <child>
353
                                    <object class="GtkBox">
Iulian Radu's avatar
Iulian Radu committed
354
                                        <property name="visible">True</property>
355 356
                                        <property name="orientation">vertical</property>
                                        <child>
357
                                            <object class="GtkBox">
358
                                                <property name="visible">True</property>
359
                                                <property name="orientation">vertical</property>
360
                                                <property name="valign">center</property>
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
                                                <property name="spacing">25</property>
                                                <child>
                                                    <object class="GtkLabel">
                                                        <property name="visible">True</property>
                                                        <property name="label" translatable="yes">Controls</property>
                                                        <property name="valign">center</property>
                                                        <style><class name="menu-title"/></style>
                                                    </object>
                                                </child>
                                                <child>
                                                    <object class="GtkBox" id="grids_box">
                                                        <property name="visible">True</property>
                                                        <property name="orientation">horizontal</property>
                                                        <property name="homogeneous">True</property>
                                                        <property name="valign">center</property>
                                                    </object>
                                                </child>
378 379 380
                                            </object>
                                        </child>
                                        <child>
381
                                            <object class="GtkButton" id="start_button">
382
                                                <property name="visible">True</property>
383
                                                <property name="can-default">True</property>
384 385 386 387 388 389 390 391 392 393
                                                <property name="use-underline">True</property>
                                                <property name="label" translatable="yes">_Start</property>
                                                <property name="action-name">app.start-game</property>
                                                <property name="halign">center</property>
                                                <property name="width-request">116</property>
                                                <property name="height-request">34</property>
                                                <style>
                                                    <class name="suggested-action"/>
                                                    <class name="play"/>
                                                </style>
394
                                            </object>
395 396 397
                                            <packing>
                                                <property name="pack-type">end</property>
                                            </packing>
398
                                        </child>
Iulian Radu's avatar
Iulian Radu committed
399 400
                                    </object>
                                    <packing>
401
                                        <property name="name">controls</property>
Iulian Radu's avatar
Iulian Radu committed
402 403
                                    </packing>
                                </child>
Iulian Radu's avatar
Iulian Radu committed
404
                                <child>
405
                                    <object class="GtkBox" id="game_box">
Iulian Radu's avatar
Iulian Radu committed
406
                                        <property name="visible">True</property>
407
                                        <property name="orientation">vertical</property>
Iulian Radu's avatar
Iulian Radu committed
408
                                        <child>
409
                                            <object class="GtkBox" id="statusbar">
Iulian Radu's avatar
Iulian Radu committed
410
                                                <property name="visible">True</property>
411
                                                <property name="halign">center</property>
Iulian Radu's avatar
Iulian Radu committed
412
                                                <child>
413
                                                    <object class="GtkStack" id="statusbar_stack">
Iulian Radu's avatar
Iulian Radu committed
414
                                                        <property name="visible">True</property>
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
                                                        <child>
                                                            <object class="GtkLabel" id="countdown">
                                                                <property name="visible">True</property>
                                                                <property name="label">3</property>
                                                                <property name="halign">center</property>
                                                                <style><class name="countdown"/></style>
                                                            </object>
                                                            <packing>
                                                                <property name="name">countdown</property>
                                                            </packing>
                                                        </child>
                                                        <child>
                                                            <object class="GtkLabel">
                                                                <property name="visible">True</property>
                                                                <property name="label" translatable="yes">Paused</property>
                                                                <style><class name="menu-title"/></style>
                                                            </object>
                                                            <packing>
                                                                <property name="name">paused</property>
                                                            </packing>
                                                        </child>
Iulian Radu's avatar
Iulian Radu committed
436
                                                    </object>
Iulian Radu's avatar
Iulian Radu committed
437 438
                                                </child>
                                            </object>
439 440 441
                                            <packing>
                                                <property name="pack-type">end</property>
                                            </packing>
Iulian Radu's avatar
Iulian Radu committed
442 443 444
                                        </child>
                                    </object>
                                    <packing>
445
                                        <property name="name">game_box</property>
Iulian Radu's avatar
Iulian Radu committed
446 447
                                    </packing>
                                </child>
448
                            </object> <!-- End of main_stack -->
Iulian Radu's avatar
Iulian Radu committed
449
                            <packing>
450
                                <property name="pack-type">start</property>
Iulian Radu's avatar
Iulian Radu committed
451
                            </packing>
452
                        </child>
453
                    </object> <!-- End of vbox -->
454
                </child>
455
            </object>
456 457 458
        </child>
    </object> <!-- End of nibbles_app -->
</interface>