anonl / nvlist

@@ -12,6 +12,9 @@
Loading
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,7 +22,7 @@
Loading
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,6 +58,11 @@
Loading
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,6 +9,7 @@
Loading
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,6 +67,11 @@
Loading
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) {

@@ -24,7 +24,7 @@
Loading
24 24
25 25
    @Override
26 26
    public boolean isSkipping() {
27 -
        return getSkipMode() != SkipMode.NONE;
27 +
        return getSkipMode().compareTo(SkipMode.AUTO_READ) > 0;
28 28
    }
29 29
30 30
    @Override
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%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading