-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for game variations #380
Comments
Search the code for "variation support" for markers where it is already known that the code needs to be changes to add variation support. |
the upcoming variation view will be another scroll view that competes with the board view for screen estate. clearly the user must be able to resize the views to his liking. ResizableStackViewController provides support for this. this initial implementation was tested on the simulator. CPU usage during resizing still needs to be measured on a real device. also drag handles are only drawn in a rudimentary fashion at the moment.
…380) this is preparation work for implementing the variation view, as this will also be based upon TiledScrollView
the skeleton is ready to be integrated in the view's app hierarchy. it currently displays dummy content only. it demonstrates that the basic functions work: drawing with CoreGraphics, tiling, zooming, scrolling and syncing the main scroll view with the node numbers scroll view.
…skeleton (#380) change details - integration takes place in PlayRootViewControllerPhonePortraitOnly; other PlayRootViewController subclasses will follow later - refactoring (i.e. no real changes) in PlayRootViewControllerPhonePortraitOnly: setup of view hierarchy and Auto Layout constraints has been refactored into many small methods for better readability - actual changes in PlayRootViewControllerPhonePortraitOnly: - add ResizableStackViewController as a new child view controller of PlayRootViewControllerPhonePortraitOnly - add two child view controllers for the two resizable panes; these are child view controllers of ResizableStackViewController, not of PlayRootViewControllerPhonePortraitOnly - BoardViewController, ButtonBoxController, AnnotationViewController and BoardPositionCollectionViewController are now child view controllers of these two resizable pane view controllers, no longer of PlayRootViewControllerPhonePortraitOnly - add NodeTreeViewController as child view controller of the view controller that manages the second resizable pane - setup the view hierarchy to match the new view controller hierarchy - add a new button that when tapped switches between board position collection view and node tree view - BoardViewDrawingHelper now contains a number of checks for invalid layer and drawing rectangles, to avoid the spamming of CoreGraphics warnings in Xcode's debug console that are due to the inability to draw because of extremely small board dimensions - UiUtilities now applies button tint color depending on user interface style (light/dark mode) - AnnotationViewController uses UiUtilities button tint color handling - cleanup: remove obsolete constant indexOfMoreNavigationController - unrelated: improve SaveSgfCommand documentation
Merge commit e9eea6a contains a first set of important changes:
|
Merge commit 035304e contains the next batch of major changes:
|
Further important commits:
At this point rendering the node tree seems quite complete. The development focus now shifts back again to integrating the view into the device-specific UI layouts. |
change details - node tree view is now displayed in both Portrait and Landscape user interface orientations, for both UITypePad and UITypePhone. the view is displayed in addition to everything else, i.e. no toggle feature like in UITypePhonePortraitOnly. - node tree view and node numbers view now support different color schemes for light/dark mode - improved orchestration during NodeTreeViewController dealloc: the controller now explicitly removes observer registrations so that the observed objects are guaranteed to be still alive - fix board position collection view border in UITypePhonePortraitOnly - apply transparent style to node tree view and node numbers view in UITypePhonePortraitOnly - reduce minimum size for node tree view resizable pane from 30% to 10%
In the year since the last comment, the work on this feature has been finalized, bugs were eliminated and unit tests were written. Overall it's too much effort to link all the relevant commits to this feature. |
With the intregration of SgfcKit the app has now access to game variations that are stored inside an SGF file. The app should be able to display game variations, but also to create new game variations and modify/delete existing game variations.
The text was updated successfully, but these errors were encountered: