mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:17:43 +00:00
Chess: Optionaly display coordinates at edge of board
This commit is contained in:
parent
28db3cd5ef
commit
b0ffd4e946
3 changed files with 29 additions and 0 deletions
|
@ -78,6 +78,9 @@ public:
|
|||
|
||||
void maybe_input_engine_move();
|
||||
|
||||
void set_coordinates(bool coordinates) { m_coordinates = coordinates; }
|
||||
bool coordinates() const { return m_coordinates; }
|
||||
|
||||
private:
|
||||
Chess::Board m_board;
|
||||
BoardTheme m_board_theme { "Beige", Color::from_rgb(0xb58863), Color::from_rgb(0xf0d9b5) };
|
||||
|
@ -90,4 +93,5 @@ private:
|
|||
bool m_dragging_piece { false };
|
||||
bool m_drag_enabled { true };
|
||||
RefPtr<Engine> m_engine;
|
||||
bool m_coordinates { true };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue