Other files ignored by Codecov
Showing 3 of 6 files from the diff.
@@ -25,7 +25,6 @@
Loading
25 | 25 | public static final VKey MOUSE_LEFT = new VKey("mouseLeft"); |
|
26 | 26 | ||
27 | 27 | // Special keys to access debug/test functionality |
|
28 | - | public static final VKey TOGGLE_CONSOLE = new VKey("toggleConsole"); |
|
29 | 28 | public static final VKey TOGGLE_OSD = new VKey("toggleOsd"); |
|
30 | 29 | ||
31 | 30 | private static final ImmutableList<VKey> STANDARD_KEYS = ImmutableList.of( |
@@ -12,7 +12,6 @@
Loading
12 | 12 | import nl.weeaboo.vn.core.NovelPrefs; |
|
13 | 13 | import nl.weeaboo.vn.gdx.res.NativeMemoryTracker; |
|
14 | 14 | import nl.weeaboo.vn.gdx.scene2d.Scene2dEnv; |
|
15 | - | import nl.weeaboo.vn.impl.core.StaticEnvironment; |
|
16 | 15 | import nl.weeaboo.vn.impl.save.SaveParams; |
|
17 | 16 | import nl.weeaboo.vn.impl.script.lua.ILuaConsole; |
|
18 | 17 | import nl.weeaboo.vn.impl.script.lua.LuaConsole; |
@@ -45,7 +44,7 @@
Loading
45 | 44 | public void update(INovel novel, INativeInput input) { |
|
46 | 45 | IEnvironment env = novel.getEnv(); |
|
47 | 46 | screenshotTaker.update(env, input); |
|
48 | - | luaConsole.update(env, null); |
|
47 | + | luaConsole.update(env, input); |
|
49 | 48 | ||
50 | 49 | if (!env.getPref(NovelPrefs.DEBUG)) { |
|
51 | 50 | return; // Debug mode not enabled |
@@ -86,9 +85,6 @@
Loading
86 | 85 | LOG.warn("Load error", e); |
|
87 | 86 | } |
|
88 | 87 | } |
|
89 | - | ||
90 | - | // Lua console |
|
91 | - | luaConsole.update(env, StaticEnvironment.INPUT.get()); |
|
92 | 88 | } |
|
93 | 89 | ||
94 | 90 | } |
@@ -27,8 +27,8 @@
Loading
27 | 27 | import nl.weeaboo.vn.core.NovelPrefs; |
|
28 | 28 | import nl.weeaboo.vn.gdx.scene2d.Scene2dEnv; |
|
29 | 29 | import nl.weeaboo.vn.gdx.scene2d.Scene2dUtil; |
|
30 | - | import nl.weeaboo.vn.input.IInput; |
|
31 | - | import nl.weeaboo.vn.input.VKey; |
|
30 | + | import nl.weeaboo.vn.input.INativeInput; |
|
31 | + | import nl.weeaboo.vn.input.KeyCode; |
|
32 | 32 | import nl.weeaboo.vn.script.ScriptException; |
|
33 | 33 | ||
34 | 34 | /** |
@@ -56,12 +56,12 @@
Loading
56 | 56 | } |
|
57 | 57 | ||
58 | 58 | @Override |
|
59 | - | public void update(IEnvironment env, IInput input) { |
|
59 | + | public void update(IEnvironment env, INativeInput input) { |
|
60 | 60 | if (!env.getPref(NovelPrefs.DEBUG)) { |
|
61 | 61 | return; // Debug mode not enabled |
|
62 | 62 | } |
|
63 | 63 | ||
64 | - | if (input.consumePress(VKey.TOGGLE_OSD)) { |
|
64 | + | if (input.consumePress(KeyCode.F1)) { |
|
65 | 65 | if (isVisible()) { |
|
66 | 66 | close(); |
|
67 | 67 | } else { |
@@ -120,6 +120,17 @@
Loading
120 | 120 | layout.row(); |
|
121 | 121 | layout.add(inputField).bottom().expandX().fill(); |
|
122 | 122 | layout.add(inputButton).bottom().fill(); |
|
123 | + | layout.addListener(new InputListener() { |
|
124 | + | @Override |
|
125 | + | public boolean keyDown(InputEvent event, int keycode) { |
|
126 | + | if (keycode == Keys.F1) { |
|
127 | + | close(); |
|
128 | + | return true; |
|
129 | + | } |
|
130 | + | return false; |
|
131 | + | } |
|
132 | + | ||
133 | + | }); |
|
123 | 134 | ||
124 | 135 | stage.addActor(layout); |
|
125 | 136 | stage.setKeyboardFocus(inputField); |
Files | Complexity | Coverage |
---|---|---|
api/src/main/java/nl/weeaboo/vn | 91.53% | 96.76% |
buildtools/src/main/java/nl/weeaboo/vn/buildtools | 63.39% | 70.06% |
core/src/main/java/nl/weeaboo/vn | 82.02% | 86.30% |
Project Totals (369 files) | 81.68% | 86.02% |
673845591
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.