1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 This file is part of GNOME Four-in-a-row. 4 5 Copyright 2015, 2019 Arnaud Bonatti 6 7 GNOME Four-in-a-row is free software: you can redistribute it and/or 8 modify it under the terms of the GNU General Public License as published 9 by the Free Software Foundation, either version 3 of the License, or 10 (at your option) any later version. 11 12 GNOME Four-in-a-row is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License along 18 with GNOME Four-in-a-row. If not, see <https://www.gnu.org/licenses/>. 19--> 20<interface> 21 <requires lib="gtk+" version="3.12"/> 22 <template class="NewGameScreen" parent="GtkBox"> 23 <property name="orientation">vertical</property> 24 <property name="visible">True</property> 25 <property name="homogeneous">True</property> 26 <property name="valign">fill</property> 27 <property name="spacing">18</property> 28 <property name="margin-bottom">22</property><!-- TODO better --> 29 <property name="margin-top">4</property> 30 <child> 31 <object class="GtkBox" id="infos_section"> 32 <property name="orientation">vertical</property> 33 <property name="visible">True</property> 34 <property name="spacing">6</property> 35 <child> 36 <object class="GtkLabel"> 37 <property name="visible">True</property> 38 <property name="halign">start</property> 39 <!-- Translators: when configuring a new game, on a thin window, header of the row for choosing the number of players --> 40 <property name="label" translatable="yes">Game type</property> 41 <style> 42 <class name="bold-label"/> 43 </style> 44 </object> 45 </child> 46 <child> 47 <object class="GtkBox"> 48 <property name="visible">True</property> 49 <property name="vexpand">True</property> 50 <property name="homogeneous">True</property> 51 <property name="spacing">0</property> 52 <property name="orientation">vertical</property> 53 <style> 54 <class name="linked"/> 55 </style> 56 <child> 57 <object class="GtkModelButton"> 58 <property name="visible">True</property> 59 <property name="use_underline">True</property> 60 <!-- Translators: when configuring a new game, on a thin window, group "Game type", label of the button to choose to play first (with a mnemonic that appears pressing Alt) --> 61 <property name="text" translatable="yes">Play _first</property> 62 <property name="action-name">app.game-type</property> 63 <property name="action-target">'human'</property> 64 <property name="iconic">True</property> 65 <property name="centered">True</property> 66 </object> 67 </child> 68 <child> 69 <object class="GtkModelButton"> 70 <property name="visible">True</property> 71 <property name="use_underline">True</property> 72 <!-- Translators: when configuring a new game, on a thin window, group "Game type", label of the button to choose to play second (with a mnemonic that appears pressing Alt) --> 73 <property name="text" translatable="yes">Play _second</property> 74 <property name="action-name">app.game-type</property> 75 <property name="action-target">'computer'</property> 76 <property name="iconic">True</property> 77 <property name="centered">True</property> 78 </object> 79 </child> 80 <child> 81 <object class="GtkModelButton"> 82 <property name="visible">True</property> 83 <property name="use_underline">True</property> 84 <!-- Translators: when configuring a new game, on a thin window, group "Game type", label of the button to choose a two-players game (with a mnemonic that appears pressing Alt) --> 85 <property name="text" translatable="yes">_Two players</property> 86 <property name="action-name">app.game-type</property> 87 <property name="action-target">'two'</property> 88 <property name="iconic">True</property> 89 <property name="centered">True</property> 90 </object> 91 </child> 92 </object> 93 <packing> 94 <property name="expand">True</property> 95 </packing> 96 </child> 97 </object> 98 </child> 99 <child> 100 <object class="GtkBox" id="users_section"> 101 <property name="orientation">vertical</property> 102 <property name="visible">True</property> 103 <property name="spacing">6</property> 104 <child> 105 <object class="GtkLabel"> 106 <property name="visible">True</property> 107 <property name="halign">start</property> 108 <!-- Translators: when configuring a new game, header of the row for choosing the number of players --> 109 <property name="label" translatable="yes">Players</property> 110 <style> 111 <class name="bold-label"/> 112 </style> 113 </object> 114 </child> 115 <child> 116 <object class="GtkBox" id="users_box"> 117 <property name="visible">True</property> 118 <property name="vexpand">True</property> 119 <property name="homogeneous">True</property> 120 <property name="spacing">12</property> 121 <child> 122 <object class="GtkModelButton"> 123 <property name="visible">True</property> 124 <property name="use_underline">True</property> 125 <!-- Translators: when configuring a new game, row "Players", label of the button to choose a one-player game (with a mnemonic that appears pressing Alt) --> 126 <property name="text" translatable="yes">_One</property> 127 <property name="action-name">app.num-players</property> 128 <property name="action-target">1</property> 129 <property name="iconic">True</property> 130 <property name="centered">True</property> 131 </object> 132 </child> 133 <child> 134 <object class="GtkModelButton"> 135 <property name="visible">True</property> 136 <property name="use_underline">True</property> 137 <!-- Translators: when configuring a new game, row "Players", label of the button to choose a one-player game (with a mnemonic that appears pressing Alt) --> 138 <property name="text" translatable="yes">_Two</property> 139 <property name="action-name">app.num-players</property> 140 <property name="action-target">2</property> 141 <property name="iconic">True</property> 142 <property name="centered">True</property> 143 </object> 144 </child> 145 </object> 146 <packing> 147 <property name="expand">True</property> 148 </packing> 149 </child> 150 </object> 151 </child> 152 <child> 153 <object class="GtkBox"> 154 <property name="orientation">vertical</property> 155 <property name="visible">True</property> 156 <property name="spacing">6</property> 157 <child> 158 <object class="GtkLabel"> 159 <property name="visible">True</property> 160 <property name="halign">start</property> 161 <!-- Translators: when configuring a new game, header of the row for choosing the level of the artificial intelligence --> 162 <property name="label" translatable="yes">Difficulty</property> 163 <style> 164 <class name="bold-label"/> 165 </style> 166 </object> 167 </child> 168 <child> 169 <object class="GtkBox" id="level_box"> 170 <property name="visible">True</property> 171 <property name="vexpand">True</property> 172 <property name="homogeneous">True</property> 173 <property name="spacing">12</property> 174 <child> 175 <object class="GtkModelButton"> 176 <property name="visible">True</property> 177 <property name="use_underline">True</property> 178 <!-- Translators: when configuring a new game, row "Difficulty", label of the button to choose an easy-level computer adversary (with a mnemonic that appears pressing Alt) --> 179 <property name="text" translatable="yes">_Easy</property> 180 <property name="action-name">app.opponent</property> 181 <property name="action-target">1</property> 182 <property name="iconic">True</property> 183 <property name="centered">True</property> 184 </object> 185 </child> 186 <child> 187 <object class="GtkModelButton"> 188 <property name="visible">True</property> 189 <property name="use_underline">True</property> 190 <!-- Translators: when configuring a new game, row "Difficulty", label of the button to choose a medium-level computer adversary (with a mnemonic that appears pressing Alt) --> 191 <property name="text" translatable="yes">_Medium</property> 192 <property name="action-name">app.opponent</property> 193 <property name="action-target">2</property> 194 <property name="iconic">True</property> 195 <property name="centered">True</property> 196 </object> 197 </child> 198 <child> 199 <object class="GtkModelButton"> 200 <property name="visible">True</property> 201 <property name="use_underline">True</property> 202 <!-- Translators: when configuring a new game, row "Difficulty", label of the button to choose a hard-level computer adversary (with a mnemonic that appears pressing Alt) --> 203 <property name="text" translatable="yes">_Hard</property> 204 <property name="action-name">app.opponent</property> 205 <property name="action-target">3</property> 206 <property name="iconic">True</property> 207 <property name="centered">True</property> 208 </object> 209 </child> 210 </object> 211 <packing> 212 <property name="expand">True</property> 213 </packing> 214 </child> 215 </object> 216 </child> 217 <child> 218 <object class="GtkBox" id="start_section"> 219 <property name="orientation">vertical</property> 220 <property name="visible">True</property> 221 <property name="spacing">6</property> 222 <child> 223 <object class="GtkLabel"> 224 <property name="visible">True</property> 225 <property name="halign">start</property> 226 <!-- Translators: when configuring a new game, header of the row for choosing whether to start or not --> 227 <property name="label" translatable="yes">Game start</property> 228 <style> 229 <class name="bold-label"/> 230 </style> 231 </object> 232 </child> 233 <child> 234 <object class="GtkBox" id="start_box"> 235 <property name="visible">True</property> 236 <property name="vexpand">True</property> 237 <property name="homogeneous">True</property> 238 <property name="spacing">12</property> 239 <child> 240 <object class="GtkModelButton"> 241 <property name="visible">True</property> 242 <property name="use_underline">True</property> 243 <!-- Translators: when configuring a new game, row "Game start", label of the button to start (with a mnemonic that appears pressing Alt) --> 244 <property name="text" translatable="yes">Play _first</property> 245 <property name="action-name">app.first-player</property> 246 <property name="action-target">'human'</property> 247 <property name="iconic">True</property> 248 <property name="centered">True</property> 249 </object> 250 </child> 251 <child> 252 <object class="GtkModelButton"> 253 <property name="visible">True</property> 254 <property name="use_underline">True</property> 255 <!-- Translators: when configuring a new game, row "Game start", label of the button to play after the computer (with a mnemonic that appears pressing Alt) --> 256 <property name="text" translatable="yes">Play _second</property> 257 <property name="action-name">app.first-player</property> 258 <property name="action-target">'computer'</property> 259 <property name="iconic">True</property> 260 <property name="centered">True</property> 261 </object> 262 </child> 263 </object> 264 <packing> 265 <property name="expand">True</property> 266 </packing> 267 </child> 268 </object> 269 </child> 270 </template> 271</interface> 272