Compare commits

..

No commits in common. "master" and "v0.0.3" have entirely different histories.

4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
project(ochess VERSION 0.0.4)
project(ochess VERSION 0.0.0)
# Configure CXX Standards
set(CMAKE_CXX_STANDARD 17)

View file

@ -18,7 +18,6 @@
- [ ] Debug the Preference window on OS X (GetIcon() must be overridden)
- [x] When MainWindow is resized, the chess move editor scroll get broken if it was in used(It is related to CGEditor, on canvas resize, ScrollX/ScrollY is not updated properly, thus item can become unreachable)
- [ ] When OChess preferences are changed, they are not applied on the openned tabs (only on OS X)
- [ ] In CGEditor, when moves are deleted, scroll mus be resets otherwise bugs (sounds like a reset scroll method in the Scrollbar should do the trick)
## Additional Features
- [x] Add a live evaluation bar to the BoardCanvas

@ -1 +1 @@
Subproject commit 7d753ae2d82592e09e04e4ecf11df976a2d187fd
Subproject commit e9bcc710ff40cd257de242a2ff3b68feb7b68cac

View file

@ -183,11 +183,13 @@ void EditorCanvas::MouseEvent(wxMouseEvent &event) {
void EditorCanvas::SetMoves(HalfMove *moves, HalfMove *current) {
CGEditor::status.Moves = moves;
CGEditor::status.CurrentMove = current;
Refresh();
// Focus on current move:
if(current!=nullptr){
Update(); // Wait for preview call to Refresh() to finish (otherwise heisenbugs)
CGEditor::FocusOnMove(current);
Refresh();
}
Refresh();
}
void EditorCanvas::ApplyPreferences(){