summaryrefslogtreecommitdiff
path: root/Userland/Games/2048/GameSizeDialog.gml
blob: 0ca9494915911e159819aec226d11c98b48507e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
@GUI::Frame {
    fill_with_background_color: true
    layout: @GUI::VerticalBoxLayout {
        margins: [4]
    }

    @GUI::Widget {
        layout: @GUI::HorizontalBoxLayout {
            spacing: 4
        }

        @GUI::Label {
            text: "Board size"
            text_alignment: "CenterLeft"
        }

        @GUI::SpinBox {
            name: "board_size_spinbox"
            max: 100
            min: 2
        }
    }

    @GUI::Widget {
        layout: @GUI::HorizontalBoxLayout {
            spacing: 4
        }

        @GUI::Label {
            text: "Target tile"
            text_alignment: "CenterLeft"
        }

        @GUI::Label {
            name: "tile_value_label"
            text_alignment: "CenterRight"
        }

        @GUI::SpinBox {
            name: "target_spinbox"
            min: 3
        }
    }

    @GUI::CheckBox {
        name: "evil_ai_checkbox"
        text: "Evil AI"
    }

    @GUI::CheckBox {
        name: "temporary_checkbox"
        text: "Temporarily apply changes"
    }

    @GUI::Widget {
        layout: @GUI::HorizontalBoxLayout {
            spacing: 10
        }

        @GUI::Button {
            name: "cancel_button"
            text: "Cancel"
        }

        @GUI::Button {
            name: "ok_button"
            text: "OK"
        }
    }
}