1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

Minesweeper: Port to GML compilation

This patch ports minesweeper to GML compilation,
and introduces a few changes made to associated files.
This commit is contained in:
tetektoza 2023-09-25 19:45:37 +02:00 committed by Tim Schumacher
parent 1c37385904
commit 4db9996cc0
8 changed files with 95 additions and 30 deletions

View file

@ -0,0 +1,72 @@
@Minesweeper::CustomGameWidget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4]
spacing: 6
}
@GUI::GroupBox {
title: "Field"
layout: @GUI::HorizontalBoxLayout {
margins: [6]
}
@GUI::Label {
text: "Columns: "
autosize: true
}
@GUI::SpinBox {
name: "columns_spinbox"
min: 9
max: 50
fixed_width: 40
}
@GUI::Layout::Spacer {}
@GUI::Label {
text: "Rows: "
autosize: true
}
@GUI::SpinBox {
name: "rows_spinbox"
min: 9
max: 50
fixed_width: 40
}
@GUI::Layout::Spacer {}
@GUI::Label {
text: "Mines: "
autosize: true
}
@GUI::SpinBox {
name: "mines_spinbox"
min: 1
max: 2500
fixed_width: 50
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 10
}
@GUI::Layout::Spacer {}
@GUI::DialogButton {
name: "ok_button"
text: "OK"
}
@GUI::DialogButton {
name: "cancel_button"
text: "Cancel"
}
}
}