Rearrange landscape puzzle layout
Landscape leaves now lay the puzzle out in two columns: the whole grid keeps one column (square, sized to the page) with the heading, area totals, hint/undo and notes beside it, and the leaf navigation folds into a single row. The game leaf also keeps its actions in a compact bottom bar, so the board and controls are visible without scrolling. - Leaf gains an optional wideBody used on landscape pages. - Board gains maxWidth, defaulting to the previous 350. - Split the puzzle body into area, board and note builders so both layouts share the same controls. - Add a landscape widget regression test and document the layout. This snapshot also carries the pending 2.0.2 notebook work already in the tree: read-ahead restore, bundled PCM WAV narration assets, the audio consistency comment, version 2.0.2+11, and the related unit, integration and script updates.
This commit is contained in:
+11
-4
@@ -60,8 +60,9 @@ class Game extends ChangeNotifier {
|
||||
contents();
|
||||
} else if (saved == 'briefing') {
|
||||
briefing(campaignIndex);
|
||||
} else if (saved == 'reveal' && recovered(campaignIndex)) {
|
||||
reveal(campaignIndex);
|
||||
} else if (saved == 'reveal' &&
|
||||
(recovered(campaignIndex) || progress.flag('flutter_read_ahead'))) {
|
||||
reveal(campaignIndex, readAhead: progress.flag('flutter_read_ahead'));
|
||||
} else if (saved == 'game') {
|
||||
final mode = progress.text('flutter_mode');
|
||||
if (mode == 'campaign') {
|
||||
@@ -79,6 +80,12 @@ class Game extends ChangeNotifier {
|
||||
void _route(Screen value) {
|
||||
screen = value;
|
||||
unawaited(progress.set('flutter_screen', value.name));
|
||||
unawaited(
|
||||
progress.set(
|
||||
'flutter_read_ahead',
|
||||
value == Screen.reveal && !recovered(campaignIndex),
|
||||
),
|
||||
);
|
||||
unawaited(progress.set('flutter_campaign', campaignIndex));
|
||||
unawaited(progress.set('flutter_mode', mode.name));
|
||||
unawaited(progress.set('flutter_date', date.toIso8601String()));
|
||||
@@ -125,8 +132,8 @@ class Game extends ChangeNotifier {
|
||||
_route(Screen.briefing);
|
||||
}
|
||||
|
||||
void reveal(int i) {
|
||||
if (!recovered(i)) {
|
||||
void reveal(int i, {bool readAhead = false}) {
|
||||
if (!recovered(i) && (!readAhead || i > accessible)) {
|
||||
briefing(i);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user