1#textdomain wesnoth-lib 2### 3### Definition of the window to edit gamemap scenarios 4### 5 6#define _GUI_SIDE_RADIO_OPTION ID LABEL 7 [column] 8 grow_factor = 1 9 border = "all" 10 border_size = 5 11 horizontal_alignment = "left" 12 13 [toggle_button] 14 id = {ID} 15 definition = "radio" 16 label = {LABEL} 17 linked_group = "radio_options" 18 [/toggle_button] 19 [/column] 20#enddef 21 22[window] 23 id = "editor_edit_side" 24 description = "Editor Side Editor." 25 26 [resolution] 27 definition = "default" 28 29 automatic_placement = true 30 vertical_placement = "center" 31 horizontal_placement = "center" 32 33 maximum_width = 800 34 35 [tooltip] 36 id = "tooltip" 37 [/tooltip] 38 39 [helptip] 40 id = "tooltip" 41 [/helptip] 42 43 [linked_group] 44 id = "radio_options" 45 fixed_width = true 46 [/linked_group] 47 48 [grid] 49 50 [row] 51 52 [column] 53 border = "all" 54 border_size = 5 55 horizontal_alignment = "left" 56 57 [label] 58 id = "title" 59 definition = "title" 60 label = _ "Side Setup" 61 [/label] 62 [/column] 63 64 [/row] 65 66 [row] 67 68 [column] 69 horizontal_grow = true 70 71 [grid] 72 73 [row] 74 75 [column] 76 grow_factor = 0 77 border = "all" 78 border_size = 5 79 horizontal_alignment = "left" 80 81 [label] 82 definition = "default" 83 label = _ "Number:" 84 [/label] 85 [/column] 86 87 [column] 88 grow_factor = 1 89 border = "all" 90 border_size = 5 91 horizontal_alignment = "left" 92 93 [label] 94 id = "side_number" 95 definition = "default" 96 label = "0" 97 [/label] 98 [/column] 99 100 [/row] 101 102 [row] 103 104 [column] 105 border = "all" 106 border_size = 5 107 horizontal_alignment = "left" 108 109 [label] 110 definition = "default" 111 label = _ "Team identifier:" 112 [/label] 113 [/column] 114 115 [column] 116 border = "all" 117 border_size = 5 118 horizontal_grow = true 119 120 [text_box] 121 id = "team_name" 122 definition = "default" 123 [/text_box] 124 [/column] 125 126 [/row] 127 128 [row] 129 130 [column] 131 grow_factor = 0 132 border = "all" 133 border_size = 5 134 horizontal_alignment = "left" 135 136 [label] 137 definition = "default" 138 label = _ "Team name:" 139 [/label] 140 [/column] 141 142 [column] 143 grow_factor = 1 144 border = "all" 145 border_size = 5 146 horizontal_grow = true 147 148 [text_box] 149 id = "user_team_name" 150 definition = "default" 151 [/text_box] 152 [/column] 153 [/row] 154 155 [/grid] 156 157 [/column] 158 159 [/row] 160 161 [row] 162 163 [column] 164 165 horizontal_grow = true 166 vertical_grow = true 167 168 [grid] 169 170 [row] 171 172 [column] 173 horizontal_alignment = "left" 174 border = "all" 175 border_size = 5 176 177 [toggle_button] 178 id = "shroud" 179 definition = "default" 180 label= _ "Shroud" 181 [/toggle_button] 182 [/column] 183 184 [column] 185 horizontal_alignment = "left" 186 border = "all" 187 border_size = 5 188 189 [toggle_button] 190 id = "no_leader" 191 definition = "default" 192 label= _ "No leader" 193 [/toggle_button] 194 [/column] 195 196 [/row] 197 198 [row] 199 200 [column] 201 horizontal_alignment = "left" 202 border = "all" 203 border_size = 5 204 205 [toggle_button] 206 id = "fog" 207 definition = "default" 208 label= _ "Fog of war" 209 [/toggle_button] 210 [/column] 211 212 [column] 213 horizontal_alignment = "left" 214 border = "all" 215 border_size = 5 216 217 [toggle_button] 218 id = "hidden" 219 definition = "default" 220 label= _ "Hide in status table" 221 [/toggle_button] 222 [/column] 223 224 [/row] 225 226 [/grid] 227 228 [/column] 229 230 [/row] 231 232 [row] 233 234 [column] 235 236 horizontal_grow = true 237 vertical_grow = true 238 239 [grid] 240 241 [row] 242 [column] 243 border = "all" 244 border_size = 5 245 horizontal_alignment = "left" 246 247 [label] 248 definition = "default" 249 label = _ "Gold:" 250 [/label] 251 [/column] 252 253 [column] 254 border = "all" 255 border_size = 5 256 horizontal_grow = true 257 258 [slider] 259 id = "gold" 260 definition = "default" 261 best_slider_length = 200 262 minimum_value = 0 263 maximum_value = 1000 264 step_size = 5 265 [/slider] 266 [/column] 267 [/row] 268 269 [row] 270 [column] 271 border = "all" 272 border_size = 5 273 horizontal_alignment = "left" 274 275 [label] 276 definition = "default" 277 label = _ "Gold per village:" 278 [/label] 279 [/column] 280 281 [column] 282 border = "all" 283 border_size = 5 284 horizontal_grow = true 285 286 [slider] 287 id = "village_income" 288 definition = "default" 289 best_slider_length = 200 290 minimum_value = 1 291 maximum_value = 10 292 step_size = 1 293 [/slider] 294 [/column] 295 [/row] 296 297 [row] 298 [column] 299 border = "all" 300 border_size = 5 301 horizontal_alignment = "left" 302 303 [label] 304 definition = "default" 305 label = _ "Income:" 306 [/label] 307 [/column] 308 309 [column] 310 border = "all" 311 border_size = 5 312 horizontal_grow = true 313 314 [slider] 315 id = "income" 316 definition = "default" 317 best_slider_length = 200 318 minimum_value = -2 319 maximum_value = 20 320 step_size = 1 321 [/slider] 322 [/column] 323 [/row] 324 325 [row] 326 [column] 327 border = "all" 328 border_size = 5 329 horizontal_alignment = "left" 330 331 [label] 332 definition = "default" 333 label = _ "Support per village:" 334 [/label] 335 [/column] 336 337 [column] 338 border = "all" 339 border_size = 5 340 horizontal_grow = true 341 342 [slider] 343 id = "village_support" 344 definition = "default" 345 best_slider_length = 200 346 minimum_value = 0 347 maximum_value = 20 348 step_size = 1 349 [/slider] 350 [/column] 351 [/row] 352 353 [row] 354 355 [column] 356 border = "all" 357 border_size = 5 358 horizontal_alignment = "left" 359 vertical_alignment = "top" 360 361 [label] 362 definition = "default" 363 label = _ "Controller:" 364 [/label] 365 [/column] 366 367 [column] 368 horizontal_alignment = "left" 369 370 [grid] 371 372 [row] 373 {_GUI_SIDE_RADIO_OPTION controller_human ( _ "controller^Human")} 374 375 {_GUI_SIDE_RADIO_OPTION controller_ai ( _ "controller^AI only")} 376 377 {_GUI_SIDE_RADIO_OPTION controller_null ( _ "controller^None")} 378 [/row] 379 380 [/grid] 381 382 [/column] 383 384 [/row] 385 386 [row] 387 388 [column] 389 border = "all" 390 border_size = 5 391 horizontal_alignment = "left" 392 vertical_alignment = "top" 393 394 [label] 395 definition = "default" 396 label = _ "Share Vision:" 397 [/label] 398 [/column] 399 400 [column] 401 horizontal_alignment = "left" 402 403 [grid] 404 405 [row] 406 {_GUI_SIDE_RADIO_OPTION vision_all ( _ "vision^All")} 407 408 {_GUI_SIDE_RADIO_OPTION vision_shroud ( _ "vision^Shroud")} 409 410 {_GUI_SIDE_RADIO_OPTION vision_null ( _ "vision^None")} 411 [/row] 412 413 [/grid] 414 415 [/column] 416 417 [/row] 418 419 [/grid] 420 421 [/column] 422 423 [/row] 424 425 [row] 426 427 [column] 428 horizontal_alignment = "right" 429 430 [grid] 431 432 [row] 433 grow_factor = 0 434 435 [column] 436 border = "all" 437 border_size = 5 438 horizontal_alignment = "right" 439 440 [button] 441 id = "ok" 442 definition = "default" 443 label = _ "OK" 444 [/button] 445 [/column] 446 447 [column] 448 border = "all" 449 border_size = 5 450 horizontal_alignment = "right" 451 452 [button] 453 id = "cancel" 454 definition = "default" 455 label = _ "Cancel" 456 [/button] 457 [/column] 458 459 [/row] 460 461 [/grid] 462 463 [/column] 464 465 [/row] 466 467 [/grid] 468 469 [/resolution] 470 471[/window] 472 473#undef _GUI_SIDE_CONTROLLER_OPTION 474