mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
parent
0a3b834346
commit
cf750b5d3f
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
Add a link
Reference in a new issue