diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-09 14:43:54 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-09 14:43:54 +0100 |
| commit | 518edf6f3050022fa4d1a15d147efe6665459863 (patch) | |
| tree | 99bb53b970af942a0bef3f1801c9c2afaf1f73d1 /src/game_tab/left_panel/board/BoardCanvas.cpp | |
| parent | 445cc09d01f8e3beeb406e175b5a98d6be58ea9a (diff) | |
Bind settings of the Editor (still ongoing)
Diffstat (limited to 'src/game_tab/left_panel/board/BoardCanvas.cpp')
| -rw-r--r-- | src/game_tab/left_panel/board/BoardCanvas.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game_tab/left_panel/board/BoardCanvas.cpp b/src/game_tab/left_panel/board/BoardCanvas.cpp index 7cca378..0593cde 100644 --- a/src/game_tab/left_panel/board/BoardCanvas.cpp +++ b/src/game_tab/left_panel/board/BoardCanvas.cpp @@ -243,17 +243,17 @@ void BoardCanvas::DrawBoard(wxDC &dc) { type=s[2]; // Default highlight (type='a' or something else not supported) dc.SetPen(wxNullPen); - dc.SetBrush(wxColour(255,0,0,110)); + dc.SetBrush(wxColour(255, 102, 122)); if(type=='b') - dc.SetBrush(wxColour(0,255,0,110)); + dc.SetBrush(wxColour(120, 255, 102)); else if(type=='c') - dc.SetBrush(wxColour(0,0,255,110)); + dc.SetBrush(wxColour(102, 196, 255)); else if(type=='d') - dc.SetBrush(wxColour(255,0,0,50)); + dc.SetBrush(wxColour(255, 204, 213)); else if(type=='e') - dc.SetBrush(wxColour(0,255,0,50)); + dc.SetBrush(wxColour(220, 255, 204)); else if(type=='f') - dc.SetBrush(wxColour(0,0,255,50)); + dc.SetBrush(wxColour(204, 231, 255)); dc.DrawRectangle(wxRect(x,y,square_width,square_width)); } } @@ -505,7 +505,7 @@ void BoardCanvas::MouseEvent(wxMouseEvent &event) { if(std::count(squares_hl.begin(), squares_hl.end(), src)){ squares_hl.erase(std::remove(squares_hl.begin(), squares_hl.end(), src), squares_hl.end()); }else{ - squares_hl.push_back(src); + squares_hl.push_back(src+"f"); wxLogDebug("Highlight square %s",src); } } |
