1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 16:15:08 +00:00
serenity/Userland/Games/Minesweeper/MinesweeperCustomGameWindow.gml
Pedro Pereira b7af536f9b Minesweeper: Decrease min for Columns and Rows on Custom Game
Since the Beginner difficulty has a 9x9 playing field, it is expected
that a Custom Game should allow to create a field with that size.
2021-11-15 14:05:03 +00:00

80 lines
1.4 KiB
Text

@GUI::Widget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::GroupBox {
title: "Field"
autosize: true
layout: @GUI::HorizontalBoxLayout {
margins: [16, 6, 6]
}
@GUI::Label {
text: "Columns: "
autosize: true
}
@GUI::SpinBox {
name: "columns_spinbox"
min: 9
max: 50
fixed_width: 40
}
@GUI::VerticalSeparator {
}
@GUI::Label {
text: "Rows: "
autosize: true
}
@GUI::SpinBox {
name: "rows_spinbox"
min: 9
max: 50
fixed_width: 40
}
@GUI::VerticalSeparator {
}
@GUI::Label {
text: "Mines: "
autosize: true
}
@GUI::SpinBox {
name: "mines_spinbox"
min: 1
max: 2500
fixed_width: 50
}
}
@GUI::Widget {
max_height: 24
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Widget {
}
@GUI::Button {
name: "ok_button"
text: "OK"
max_width: 75
}
@GUI::Button {
name: "cancel_button"
text: "Cancel"
max_width: 75
}
}
}