mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:08:12 +00:00

In Solitaire, when the stock stack is empty and all cards have been revealed, finishing the game is trivial, since you only need to sort the already visible cards onto the foundation stacks. To simplify this, the game will now give you the option to finish the game automatically if these conditions are met. It then sorts the cards with a delay of 100ms between each card.
33 lines
664 B
Text
33 lines
664 B
Text
@Solitaire::MainWidget {
|
|
fill_with_background_color: true
|
|
layout: @GUI::VerticalBoxLayout {}
|
|
|
|
@Solitaire::Game {
|
|
name: "game"
|
|
fill_with_background_color: true
|
|
}
|
|
|
|
@GUI::Frame {
|
|
name: "game_action_bar"
|
|
fill_with_background_color: true
|
|
fixed_height: 32
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
margins: [3]
|
|
}
|
|
|
|
@GUI::Layout::Spacer {}
|
|
|
|
@GUI::Button {
|
|
name: "solve_button"
|
|
text: "Solve"
|
|
fixed_width: 80
|
|
}
|
|
|
|
@GUI::Layout::Spacer {}
|
|
}
|
|
|
|
@GUI::Statusbar {
|
|
name: "statusbar"
|
|
segment_count: 3
|
|
}
|
|
}
|