parent
0a3b834346
commit
cf750b5d3f
Notes:
sideshowbarker
2024-07-19 00:00:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cf750b5d3f4
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ PromotionDialog::PromotionDialog(ChessWidget& chess_widget)
|
|||
|
||||
for (auto& type : Vector({ Chess::Type::Queen, Chess::Type::Knight, Chess::Type::Rook, Chess::Type::Bishop })) {
|
||||
auto& button = main_widget.add<GUI::Button>("");
|
||||
button.set_fixed_height(70);
|
||||
button.set_icon(chess_widget.get_piece_graphic({ chess_widget.board().turn(), type }));
|
||||
button.on_click = [this, type](auto) {
|
||||
m_selected_piece = type;
|
||||
|
|
Loading…
Add table
Reference in a new issue