Other files ignored by Codecov
docs/_userguide/ch22-text.md
has changed.
CHANGELOG.md
has changed.
core/src/main/lua/builtin/script/vn/context.lua
has changed.
12 | 12 | /** Not skipping. */ |
|
13 | 13 | NONE, |
|
14 | 14 | ||
15 | + | /** Automatically continue to the next line after a timed delay. */ |
|
16 | + | AUTO_READ, |
|
17 | + | ||
15 | 18 | /** Skip until the end of the paragraph. */ |
|
16 | 19 | PARAGRAPH, |
|
17 | 20 |
19 | 22 | SCENE; |
|
20 | 23 | ||
21 | 24 | private static final Ordering<SkipMode> ORDER = Ordering |
|
22 | - | .explicit(NONE, PARAGRAPH, SCENE) |
|
25 | + | .explicit(NONE, AUTO_READ, PARAGRAPH, SCENE) |
|
23 | 26 | .nullsFirst(); |
|
24 | 27 | ||
25 | 28 | /** |
58 | 58 | 50, |
|
59 | 59 | "The number of pages the textlog keeps in memory."); |
|
60 | 60 | ||
61 | + | public static final Preference<Integer> AUTO_READ_DELAY = newPreference("vn.autoReadDelay", |
|
62 | + | "Auto Read Delay", |
|
63 | + | 90, |
|
64 | + | "The time delay (in frames) after which the next line should be displayed when auto read mode is enabled."); |
|
65 | + | ||
61 | 66 | public static final Preference<Double> MUSIC_VOLUME = newPreference("vn.sound.volume.music", |
|
62 | 67 | "Music volume", |
|
63 | 68 | 1.0, |
9 | 9 | import nl.weeaboo.prefsstore.IPreferenceStore; |
|
10 | 10 | import nl.weeaboo.vn.core.ISkipState; |
|
11 | 11 | import nl.weeaboo.vn.core.NovelPrefs; |
|
12 | + | import nl.weeaboo.vn.core.SkipMode; |
|
12 | 13 | import nl.weeaboo.vn.impl.core.StaticEnvironment; |
|
13 | 14 | import nl.weeaboo.vn.impl.render.OffscreenRenderTaskBuffer; |
|
14 | 15 | import nl.weeaboo.vn.input.IInput; |
66 | 67 | } |
|
67 | 68 | ||
68 | 69 | private void handleInput(IInput input) { |
|
70 | + | // Disable auto-read if the text continue key is pressed |
|
71 | + | if (skipState.getSkipMode() == SkipMode.AUTO_READ && input.consumePress(VKey.TEXT_CONTINUE)) { |
|
72 | + | skipState.stopSkipping(); |
|
73 | + | } |
|
74 | + | ||
69 | 75 | // Handle text continue |
|
70 | 76 | ITextDrawable td = textState.getTextDrawable(); |
|
71 | 77 | if (td != null) { |
Files | Complexity | Coverage |
---|---|---|
api/src/main/java/nl/weeaboo/vn | 92.65% | 97.17% |
buildtools/src/main/java/nl/weeaboo/vn/buildtools | 63.39% | 70.06% |
core/src/main/java/nl/weeaboo/vn | 81.31% | 85.20% |
Project Totals (366 files) | 81.17% | 85.09% |