Revision d4c88c8...
Go back to digest for 9th February 2014Features in Games
Ian Wadham committed changes in [palapeli] /:
Re-organise zooming. Do just one rendering and scaling of the scene.
The zoom range (0 to 200) is adjusted to fit each puzzle as it loads,
with close-up view near one end and full-puzzle view near the other and
smoother operation in between. The close-up view is always larger than
the full view and can never be closer than a noticeable margin, even in
puzzles with a small number of pieces.
The scene is populated with items and sized only when all pieces have
been loaded from files, constructed, positioned and joined together (if
previously solved). A frame is added and the whole scene is fitted into
the view closely, showing the whole puzzle. Loading times are improved.
File Changes
Modified 13 files
- src/engine/constraintvisualizer.cpp
- src/engine/constraintvisualizer.h
- src/engine/gameplay.cpp
- src/engine/gameplay.h
- src/engine/mergegroup.cpp
- src/engine/mergegroup.h
- src/engine/piece.cpp
- src/engine/piece.h
- src/engine/scene.cpp
- src/engine/scene.h
- src/engine/view.cpp
- src/engine/view.h
- src/window/puzzletablewidget.cpp
13 files changed in total