create-pixi-vn 2.1.3 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template-lib/package.json +3 -0
- package/template-nqtr-react-vite-muijoy/.assetpack.ts +82 -2
- package/template-nqtr-react-vite-muijoy/package.json +2 -2
- package/template-nqtr-react-vite-muijoy/src/assets/index.ts +2 -11
- package/template-nqtr-react-vite-muijoy/src/assets/manifest.gen.json +2 -7
- package/template-nqtr-react-vite-muijoy/src/components/menus/settings/index.tsx +15 -6
- package/template-nqtr-react-vite-muijoy/src/components/menus/settings/menus/diagnostics.tsx +266 -0
- package/template-nqtr-react-vite-muijoy/src/components/menus/settings/quick-menus.tsx +25 -1
- package/template-nqtr-react-vite-muijoy/src/lib/hooks/device-diagnostics-hooks.ts +68 -0
- package/template-nqtr-react-vite-muijoy/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-nqtr-react-vite-muijoy/src/lib/utils/device-diagnostics-utility.ts +382 -0
- package/template-nqtr-react-vite-muijoy/src/locales/en.json +50 -0
- package/template-nqtr-react-vite-muijoy/src/pixi-vn.keys.gen.ts +4 -7
- package/template-nqtr-react-vite-muijoy-ink/.assetpack.ts +82 -2
- package/template-nqtr-react-vite-muijoy-ink/package.json +3 -3
- package/template-nqtr-react-vite-muijoy-ink/src/assets/index.ts +2 -11
- package/template-nqtr-react-vite-muijoy-ink/src/assets/manifest.gen.json +2 -7
- package/template-nqtr-react-vite-muijoy-ink/src/components/menus/settings/index.tsx +15 -6
- package/template-nqtr-react-vite-muijoy-ink/src/components/menus/settings/menus/diagnostics.tsx +266 -0
- package/template-nqtr-react-vite-muijoy-ink/src/components/menus/settings/quick-menus.tsx +25 -1
- package/template-nqtr-react-vite-muijoy-ink/src/lib/hooks/device-diagnostics-hooks.ts +68 -0
- package/template-nqtr-react-vite-muijoy-ink/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-nqtr-react-vite-muijoy-ink/src/lib/utils/device-diagnostics-utility.ts +382 -0
- package/template-nqtr-react-vite-muijoy-ink/src/locales/en.json +50 -0
- package/template-nqtr-react-vite-muijoy-ink/src/pixi-vn.keys.gen.ts +4 -7
- package/template-nqtr-react-vite-muijoy-ink-tauri/.assetpack.ts +82 -2
- package/template-nqtr-react-vite-muijoy-ink-tauri/.vscode/launch.json +1 -1
- package/template-nqtr-react-vite-muijoy-ink-tauri/.vscode/tasks.json +1 -35
- package/template-nqtr-react-vite-muijoy-ink-tauri/package.json +3 -3
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/assets/index.ts +2 -11
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/assets/manifest.gen.json +2 -7
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/components/menus/settings/index.tsx +15 -6
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/components/menus/settings/menus/diagnostics.tsx +332 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/components/menus/settings/quick-menus.tsx +32 -1
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/content/ink/hashtag-commands.ts +17 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/lib/hooks/device-diagnostics-hooks.ts +96 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/lib/system-info.ts +54 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/lib/utils/device-diagnostics-utility.ts +511 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/locales/en.json +66 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/pixi-vn.keys.gen.ts +4 -7
- package/template-nqtr-react-vite-muijoy-ink-tauri/src-tauri/Cargo.toml +1 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src-tauri/src/lib.rs +34 -22
- package/template-nqtr-react-vite-muijoy-ink-tauri/src-tauri/src/system_info.rs +33 -0
- package/template-nqtr-react-vite-muijoy-tauri/.assetpack.ts +82 -2
- package/template-nqtr-react-vite-muijoy-tauri/.vscode/launch.json +1 -1
- package/template-nqtr-react-vite-muijoy-tauri/.vscode/tasks.json +1 -35
- package/template-nqtr-react-vite-muijoy-tauri/package.json +2 -2
- package/template-nqtr-react-vite-muijoy-tauri/src/assets/index.ts +2 -11
- package/template-nqtr-react-vite-muijoy-tauri/src/assets/manifest.gen.json +2 -7
- package/template-nqtr-react-vite-muijoy-tauri/src/components/menus/settings/index.tsx +15 -6
- package/template-nqtr-react-vite-muijoy-tauri/src/components/menus/settings/menus/diagnostics.tsx +332 -0
- package/template-nqtr-react-vite-muijoy-tauri/src/components/menus/settings/quick-menus.tsx +32 -1
- package/template-nqtr-react-vite-muijoy-tauri/src/lib/hooks/device-diagnostics-hooks.ts +96 -0
- package/template-nqtr-react-vite-muijoy-tauri/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-nqtr-react-vite-muijoy-tauri/src/lib/system-info.ts +54 -0
- package/template-nqtr-react-vite-muijoy-tauri/src/lib/utils/device-diagnostics-utility.ts +511 -0
- package/template-nqtr-react-vite-muijoy-tauri/src/locales/en.json +66 -0
- package/template-nqtr-react-vite-muijoy-tauri/src/pixi-vn.keys.gen.ts +4 -7
- package/template-nqtr-react-vite-muijoy-tauri/src-tauri/Cargo.toml +1 -0
- package/template-nqtr-react-vite-muijoy-tauri/src-tauri/src/lib.rs +32 -20
- package/template-nqtr-react-vite-muijoy-tauri/src-tauri/src/system_info.rs +33 -0
- package/template-react-vite-muijoy/.assetpack.ts +82 -2
- package/template-react-vite-muijoy/package.json +1 -1
- package/template-react-vite-muijoy/src/assets/index.ts +55 -55
- package/template-react-vite-muijoy/src/assets/manifest.gen.json +2 -7
- package/template-react-vite-muijoy/src/components/menus/settings/index.tsx +15 -6
- package/template-react-vite-muijoy/src/components/menus/settings/menus/diagnostics.tsx +266 -0
- package/template-react-vite-muijoy/src/components/menus/settings/quick-menus.tsx +25 -1
- package/template-react-vite-muijoy/src/lib/hooks/device-diagnostics-hooks.ts +68 -0
- package/template-react-vite-muijoy/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-react-vite-muijoy/src/lib/utils/device-diagnostics-utility.ts +382 -0
- package/template-react-vite-muijoy/src/locales/en.json +50 -0
- package/template-react-vite-muijoy/src/pixi-vn.keys.gen.ts +2 -3
- package/template-react-vite-muijoy-ink/.assetpack.ts +82 -2
- package/template-react-vite-muijoy-ink/ink/second_part.ink +0 -1
- package/template-react-vite-muijoy-ink/ink/start.ink +4 -6
- package/template-react-vite-muijoy-ink/package.json +2 -2
- package/template-react-vite-muijoy-ink/src/assets/index.ts +55 -55
- package/template-react-vite-muijoy-ink/src/assets/manifest.gen.json +2 -7
- package/template-react-vite-muijoy-ink/src/components/menus/settings/index.tsx +15 -6
- package/template-react-vite-muijoy-ink/src/components/menus/settings/menus/diagnostics.tsx +266 -0
- package/template-react-vite-muijoy-ink/src/components/menus/settings/quick-menus.tsx +25 -1
- package/template-react-vite-muijoy-ink/src/lib/hooks/device-diagnostics-hooks.ts +68 -0
- package/template-react-vite-muijoy-ink/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-react-vite-muijoy-ink/src/lib/utils/device-diagnostics-utility.ts +382 -0
- package/template-react-vite-muijoy-ink/src/locales/en.json +50 -0
- package/template-react-vite-muijoy-ink/src/pixi-vn.keys.gen.ts +2 -3
- package/template-react-vite-muijoy-ink-tauri/.assetpack.ts +82 -2
- package/template-react-vite-muijoy-ink-tauri/.vscode/launch.json +1 -1
- package/template-react-vite-muijoy-ink-tauri/.vscode/tasks.json +1 -35
- package/template-react-vite-muijoy-ink-tauri/ink/second_part.ink +0 -1
- package/template-react-vite-muijoy-ink-tauri/ink/start.ink +4 -6
- package/template-react-vite-muijoy-ink-tauri/package.json +2 -2
- package/template-react-vite-muijoy-ink-tauri/src/assets/index.ts +55 -55
- package/template-react-vite-muijoy-ink-tauri/src/assets/manifest.gen.json +2 -7
- package/template-react-vite-muijoy-ink-tauri/src/components/menus/settings/index.tsx +15 -6
- package/template-react-vite-muijoy-ink-tauri/src/components/menus/settings/menus/diagnostics.tsx +332 -0
- package/template-react-vite-muijoy-ink-tauri/src/components/menus/settings/quick-menus.tsx +32 -1
- package/template-react-vite-muijoy-ink-tauri/src/lib/hooks/device-diagnostics-hooks.ts +96 -0
- package/template-react-vite-muijoy-ink-tauri/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-react-vite-muijoy-ink-tauri/src/lib/system-info.ts +54 -0
- package/template-react-vite-muijoy-ink-tauri/src/lib/utils/device-diagnostics-utility.ts +511 -0
- package/template-react-vite-muijoy-ink-tauri/src/locales/en.json +66 -0
- package/template-react-vite-muijoy-ink-tauri/src/pixi-vn.keys.gen.ts +2 -3
- package/template-react-vite-muijoy-ink-tauri/src-tauri/Cargo.toml +1 -0
- package/template-react-vite-muijoy-ink-tauri/src-tauri/src/lib.rs +32 -20
- package/template-react-vite-muijoy-ink-tauri/src-tauri/src/system_info.rs +33 -0
- package/template-react-vite-muijoy-tauri/.assetpack.ts +82 -2
- package/template-react-vite-muijoy-tauri/.vscode/launch.json +1 -1
- package/template-react-vite-muijoy-tauri/.vscode/tasks.json +1 -35
- package/template-react-vite-muijoy-tauri/package.json +1 -1
- package/template-react-vite-muijoy-tauri/src/assets/index.ts +55 -55
- package/template-react-vite-muijoy-tauri/src/assets/manifest.gen.json +2 -7
- package/template-react-vite-muijoy-tauri/src/components/menus/settings/index.tsx +15 -6
- package/template-react-vite-muijoy-tauri/src/components/menus/settings/menus/diagnostics.tsx +332 -0
- package/template-react-vite-muijoy-tauri/src/components/menus/settings/quick-menus.tsx +32 -1
- package/template-react-vite-muijoy-tauri/src/lib/hooks/device-diagnostics-hooks.ts +96 -0
- package/template-react-vite-muijoy-tauri/src/lib/hooks/hotkeys-hooks.ts +16 -0
- package/template-react-vite-muijoy-tauri/src/lib/system-info.ts +54 -0
- package/template-react-vite-muijoy-tauri/src/lib/utils/device-diagnostics-utility.ts +511 -0
- package/template-react-vite-muijoy-tauri/src/locales/en.json +66 -0
- package/template-react-vite-muijoy-tauri/src/pixi-vn.keys.gen.ts +2 -3
- package/template-react-vite-muijoy-tauri/src-tauri/Cargo.toml +1 -0
- package/template-react-vite-muijoy-tauri/src-tauri/src/lib.rs +32 -20
- package/template-react-vite-muijoy-tauri/src-tauri/src/system_info.rs +33 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import packageJson from "@/../package.json";
|
|
2
|
+
import { canvas, PIXIVN_VERSION } from "@drincs/pixi-vn";
|
|
3
|
+
import motionPackageJson from "motion/package.json";
|
|
4
|
+
import { VERSION as PIXIJS_VERSION } from "pixi.js";
|
|
5
|
+
import tonePackageJson from "tone/package.json";
|
|
6
|
+
|
|
7
|
+
export interface WebglExtensionCheck {
|
|
8
|
+
name: string;
|
|
9
|
+
supported: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface WebglDiagnostics {
|
|
13
|
+
webgl1Supported: boolean;
|
|
14
|
+
webgl2Supported: boolean;
|
|
15
|
+
vendor: string | null;
|
|
16
|
+
renderer: string | null;
|
|
17
|
+
unmaskedVendor: string | null;
|
|
18
|
+
unmaskedRenderer: string | null;
|
|
19
|
+
/** null when it cannot be determined (e.g. WEBGL_debug_renderer_info is blocked). */
|
|
20
|
+
hardwareAccelerated: boolean | null;
|
|
21
|
+
maxTextureSize: number | null;
|
|
22
|
+
floatTexturesSupported: boolean;
|
|
23
|
+
msaaSupported: boolean;
|
|
24
|
+
shadersCompile: boolean;
|
|
25
|
+
keyExtensions: WebglExtensionCheck[];
|
|
26
|
+
allExtensions: string[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface BrowserCapabilities {
|
|
30
|
+
audio: boolean;
|
|
31
|
+
gamepad: boolean;
|
|
32
|
+
clipboard: boolean;
|
|
33
|
+
fullscreen: boolean;
|
|
34
|
+
localStorage: boolean;
|
|
35
|
+
indexedDb: boolean;
|
|
36
|
+
/** Best-effort heuristic only: Steam's overlay is compositor-level and generally invisible to page JS. */
|
|
37
|
+
steamOverlayDetected: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ResolutionInfo {
|
|
41
|
+
innerWidth: number;
|
|
42
|
+
innerHeight: number;
|
|
43
|
+
screenWidth: number;
|
|
44
|
+
screenHeight: number;
|
|
45
|
+
devicePixelRatio: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface JsMemoryInfo {
|
|
49
|
+
usedJSHeapSize: number;
|
|
50
|
+
totalJSHeapSize: number;
|
|
51
|
+
jsHeapSizeLimit: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const KEY_WEBGL_EXTENSIONS = [
|
|
55
|
+
"WEBGL_debug_renderer_info",
|
|
56
|
+
"WEBGL_lose_context",
|
|
57
|
+
"WEBGL_compressed_texture_s3tc",
|
|
58
|
+
"WEBGL_compressed_texture_astc",
|
|
59
|
+
"WEBGL_compressed_texture_etc",
|
|
60
|
+
"OES_texture_float",
|
|
61
|
+
"OES_texture_float_linear",
|
|
62
|
+
"OES_texture_half_float",
|
|
63
|
+
"OES_element_index_uint",
|
|
64
|
+
"OES_standard_derivatives",
|
|
65
|
+
"ANGLE_instanced_arrays",
|
|
66
|
+
"EXT_texture_filter_anisotropic",
|
|
67
|
+
"EXT_color_buffer_float",
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
const SOFTWARE_RENDERER_PATTERN =
|
|
71
|
+
/swiftshader|llvmpipe|software|microsoft basic render|d3d11 warp|apple software renderer/i;
|
|
72
|
+
|
|
73
|
+
function testShaderCompilation(gl: WebGLRenderingContext | WebGL2RenderingContext): boolean {
|
|
74
|
+
try {
|
|
75
|
+
const vertexShader = gl.createShader(gl.VERTEX_SHADER);
|
|
76
|
+
const fragmentShader = gl.createShader(gl.FRAGMENT_SHADER);
|
|
77
|
+
if (!vertexShader || !fragmentShader) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
gl.shaderSource(
|
|
82
|
+
vertexShader,
|
|
83
|
+
"attribute vec2 p; void main() { gl_Position = vec4(p, 0.0, 1.0); }",
|
|
84
|
+
);
|
|
85
|
+
gl.compileShader(vertexShader);
|
|
86
|
+
gl.shaderSource(
|
|
87
|
+
fragmentShader,
|
|
88
|
+
"precision mediump float; void main() { gl_FragColor = vec4(1.0); }",
|
|
89
|
+
);
|
|
90
|
+
gl.compileShader(fragmentShader);
|
|
91
|
+
if (
|
|
92
|
+
!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS) ||
|
|
93
|
+
!gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS)
|
|
94
|
+
) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const program = gl.createProgram();
|
|
99
|
+
if (!program) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
gl.attachShader(program, vertexShader);
|
|
103
|
+
gl.attachShader(program, fragmentShader);
|
|
104
|
+
gl.linkProgram(program);
|
|
105
|
+
return !!gl.getProgramParameter(program, gl.LINK_STATUS);
|
|
106
|
+
} catch {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Probes a throwaway canvas instead of the live Pixi-VN canvas so this works
|
|
113
|
+
* regardless of which renderer Pixi actually picked (or before Pixi has initialized).
|
|
114
|
+
*/
|
|
115
|
+
export function getWebglDiagnostics(): WebglDiagnostics {
|
|
116
|
+
const probeCanvas = document.createElement("canvas");
|
|
117
|
+
const gl2 = probeCanvas.getContext("webgl2") as WebGL2RenderingContext | null;
|
|
118
|
+
const gl1 = (probeCanvas.getContext("webgl") ??
|
|
119
|
+
probeCanvas.getContext("experimental-webgl")) as WebGLRenderingContext | null;
|
|
120
|
+
const gl = gl2 ?? gl1;
|
|
121
|
+
|
|
122
|
+
if (!gl) {
|
|
123
|
+
return {
|
|
124
|
+
webgl1Supported: false,
|
|
125
|
+
webgl2Supported: false,
|
|
126
|
+
vendor: null,
|
|
127
|
+
renderer: null,
|
|
128
|
+
unmaskedVendor: null,
|
|
129
|
+
unmaskedRenderer: null,
|
|
130
|
+
hardwareAccelerated: null,
|
|
131
|
+
maxTextureSize: null,
|
|
132
|
+
floatTexturesSupported: false,
|
|
133
|
+
msaaSupported: false,
|
|
134
|
+
shadersCompile: false,
|
|
135
|
+
keyExtensions: KEY_WEBGL_EXTENSIONS.map((name) => ({ name, supported: false })),
|
|
136
|
+
allExtensions: [],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const debugInfo = gl.getExtension("WEBGL_debug_renderer_info");
|
|
141
|
+
const vendor = (gl.getParameter(gl.VENDOR) as string) ?? null;
|
|
142
|
+
const renderer = (gl.getParameter(gl.RENDERER) as string) ?? null;
|
|
143
|
+
const unmaskedVendor = debugInfo
|
|
144
|
+
? ((gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) as string) ?? null)
|
|
145
|
+
: null;
|
|
146
|
+
const unmaskedRenderer = debugInfo
|
|
147
|
+
? ((gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) as string) ?? null)
|
|
148
|
+
: null;
|
|
149
|
+
const rendererForHeuristic = unmaskedRenderer ?? renderer;
|
|
150
|
+
const hardwareAccelerated = rendererForHeuristic
|
|
151
|
+
? !SOFTWARE_RENDERER_PATTERN.test(rendererForHeuristic)
|
|
152
|
+
: null;
|
|
153
|
+
|
|
154
|
+
const allExtensions = gl.getSupportedExtensions() ?? [];
|
|
155
|
+
const keyExtensions = KEY_WEBGL_EXTENSIONS.map((name) => ({
|
|
156
|
+
name,
|
|
157
|
+
supported: allExtensions.includes(name),
|
|
158
|
+
}));
|
|
159
|
+
|
|
160
|
+
const maxTextureSize = (gl.getParameter(gl.MAX_TEXTURE_SIZE) as number) ?? null;
|
|
161
|
+
const floatTexturesSupported = gl2 ? true : allExtensions.includes("OES_texture_float");
|
|
162
|
+
const msaaSupported = gl2
|
|
163
|
+
? ((gl2.getParameter(gl2.MAX_SAMPLES) as number) ?? 0) > 1
|
|
164
|
+
: (gl.getContextAttributes()?.antialias ?? false);
|
|
165
|
+
const shadersCompile = testShaderCompilation(gl);
|
|
166
|
+
|
|
167
|
+
// This is a throwaway probe context; release it instead of leaving it around.
|
|
168
|
+
gl.getExtension("WEBGL_lose_context")?.loseContext();
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
webgl1Supported: !!gl1 || !!gl2,
|
|
172
|
+
webgl2Supported: !!gl2,
|
|
173
|
+
vendor,
|
|
174
|
+
renderer,
|
|
175
|
+
unmaskedVendor,
|
|
176
|
+
unmaskedRenderer,
|
|
177
|
+
hardwareAccelerated,
|
|
178
|
+
maxTextureSize,
|
|
179
|
+
floatTexturesSupported,
|
|
180
|
+
msaaSupported,
|
|
181
|
+
shadersCompile,
|
|
182
|
+
keyExtensions,
|
|
183
|
+
allExtensions,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function detectPlatform(): string {
|
|
188
|
+
const ua = navigator.userAgent;
|
|
189
|
+
const uaData = (navigator as Navigator & { userAgentData?: { platform?: string } })
|
|
190
|
+
.userAgentData;
|
|
191
|
+
const platformHint = uaData?.platform ?? navigator.platform ?? "";
|
|
192
|
+
|
|
193
|
+
if (/android/i.test(ua)) return "Android";
|
|
194
|
+
if (/iphone|ipod/i.test(ua)) return "iOS";
|
|
195
|
+
// iPadOS reports as "MacIntel" but exposes multi-touch, unlike a real Mac.
|
|
196
|
+
if (/ipad/i.test(ua) || (/mac/i.test(platformHint) && navigator.maxTouchPoints > 1))
|
|
197
|
+
return "iOS";
|
|
198
|
+
if (/mac/i.test(platformHint)) return "macOS";
|
|
199
|
+
if (/win/i.test(platformHint)) return "Windows";
|
|
200
|
+
if (/linux/i.test(platformHint)) return "Linux";
|
|
201
|
+
return "Unknown";
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function detectBrowserEngine(): string {
|
|
205
|
+
const ua = navigator.userAgent;
|
|
206
|
+
if (/edg\//i.test(ua)) return "Chromium (Edge)";
|
|
207
|
+
if (/firefox|fxios/i.test(ua)) return "Gecko (Firefox)";
|
|
208
|
+
if (/crios/i.test(ua)) return "Chromium (Chrome iOS)";
|
|
209
|
+
if (/chrome|chromium/i.test(ua)) return "Chromium";
|
|
210
|
+
if (/safari/i.test(ua)) return "WebKit (Safari)";
|
|
211
|
+
return "Unknown";
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function getBrowserCapabilities(): BrowserCapabilities {
|
|
215
|
+
const win = window as Window & {
|
|
216
|
+
webkitAudioContext?: typeof AudioContext;
|
|
217
|
+
cefQuery?: unknown;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
let localStorageAvailable = false;
|
|
221
|
+
try {
|
|
222
|
+
const testKey = "__diagnostics_test__";
|
|
223
|
+
window.localStorage.setItem(testKey, "1");
|
|
224
|
+
window.localStorage.removeItem(testKey);
|
|
225
|
+
localStorageAvailable = true;
|
|
226
|
+
} catch {
|
|
227
|
+
localStorageAvailable = false;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
audio: typeof AudioContext !== "undefined" || typeof win.webkitAudioContext !== "undefined",
|
|
232
|
+
gamepad: typeof navigator.getGamepads === "function",
|
|
233
|
+
clipboard: typeof navigator.clipboard?.writeText === "function",
|
|
234
|
+
fullscreen: document.fullscreenEnabled === true,
|
|
235
|
+
localStorage: localStorageAvailable,
|
|
236
|
+
indexedDb: typeof window.indexedDB !== "undefined",
|
|
237
|
+
steamOverlayDetected:
|
|
238
|
+
typeof win.cefQuery === "function" ||
|
|
239
|
+
/Valve Steam|SteamOverlay/i.test(navigator.userAgent),
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export function getResolutionInfo(): ResolutionInfo {
|
|
244
|
+
return {
|
|
245
|
+
innerWidth: window.innerWidth,
|
|
246
|
+
innerHeight: window.innerHeight,
|
|
247
|
+
screenWidth: window.screen?.width ?? 0,
|
|
248
|
+
screenHeight: window.screen?.height ?? 0,
|
|
249
|
+
devicePixelRatio: window.devicePixelRatio || 1,
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export function getJsMemoryInfo(): JsMemoryInfo | null {
|
|
254
|
+
const memory = (performance as Performance & { memory?: JsMemoryInfo }).memory;
|
|
255
|
+
if (!memory) {
|
|
256
|
+
return null;
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
usedJSHeapSize: memory.usedJSHeapSize,
|
|
260
|
+
totalJSHeapSize: memory.totalJSHeapSize,
|
|
261
|
+
jsHeapSizeLimit: memory.jsHeapSizeLimit,
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function getCurrentFps(): number | null {
|
|
266
|
+
try {
|
|
267
|
+
return Math.round(canvas.app.ticker.FPS);
|
|
268
|
+
} catch {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export function getGameVersion(): string {
|
|
274
|
+
return packageJson.version;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export function getPixiJsVersion(): string {
|
|
278
|
+
return PIXIJS_VERSION;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function getPixiVnVersion(): string {
|
|
282
|
+
return PIXIVN_VERSION;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export function getToneJsVersion(): string {
|
|
286
|
+
return tonePackageJson.version;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export function getMotionVersion(): string {
|
|
290
|
+
return motionPackageJson.version;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function formatBytes(bytes: number): string {
|
|
294
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export interface DeviceDiagnosticsSnapshot {
|
|
298
|
+
webgl: WebglDiagnostics;
|
|
299
|
+
capabilities: BrowserCapabilities;
|
|
300
|
+
resolution: ResolutionInfo;
|
|
301
|
+
memory: JsMemoryInfo | null;
|
|
302
|
+
fps: number | null;
|
|
303
|
+
userAgent: string;
|
|
304
|
+
platform: string;
|
|
305
|
+
browserEngine: string;
|
|
306
|
+
gameVersion: string;
|
|
307
|
+
pixiJsVersion: string;
|
|
308
|
+
pixiVnVersion: string;
|
|
309
|
+
toneJsVersion: string;
|
|
310
|
+
motionVersion: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export function buildDiagnosticsReportText(snapshot: DeviceDiagnosticsSnapshot): string {
|
|
314
|
+
const { webgl, capabilities, resolution, memory, fps } = snapshot;
|
|
315
|
+
const yn = (value: boolean | null) => (value === null ? "Unknown" : value ? "Yes" : "No");
|
|
316
|
+
|
|
317
|
+
const lines = [
|
|
318
|
+
"=== Device Diagnostics Report ===",
|
|
319
|
+
`Game version: ${snapshot.gameVersion}`,
|
|
320
|
+
`PixiJS version: ${snapshot.pixiJsVersion}`,
|
|
321
|
+
`Pixi'VN version: ${snapshot.pixiVnVersion}`,
|
|
322
|
+
`Tone.js version: ${snapshot.toneJsVersion}`,
|
|
323
|
+
`Motion version: ${snapshot.motionVersion}`,
|
|
324
|
+
`User Agent: ${snapshot.userAgent}`,
|
|
325
|
+
`Platform: ${snapshot.platform}`,
|
|
326
|
+
`Browser/WebView: ${snapshot.browserEngine}`,
|
|
327
|
+
"",
|
|
328
|
+
"-- Graphics --",
|
|
329
|
+
`WebGL1 available: ${yn(webgl.webgl1Supported)}`,
|
|
330
|
+
`WebGL2 available: ${yn(webgl.webgl2Supported)}`,
|
|
331
|
+
`Hardware acceleration: ${yn(webgl.hardwareAccelerated)}`,
|
|
332
|
+
`GPU vendor: ${webgl.unmaskedVendor ?? webgl.vendor ?? "Unknown"}`,
|
|
333
|
+
`GPU renderer: ${webgl.unmaskedRenderer ?? webgl.renderer ?? "Unknown"}`,
|
|
334
|
+
`Max texture size: ${webgl.maxTextureSize ?? "Unknown"}`,
|
|
335
|
+
`Float textures: ${yn(webgl.floatTexturesSupported)}`,
|
|
336
|
+
`MSAA: ${yn(webgl.msaaSupported)}`,
|
|
337
|
+
`Shaders compile: ${yn(webgl.shadersCompile)}`,
|
|
338
|
+
`WebGL extensions: ${webgl.keyExtensions
|
|
339
|
+
.filter((extension) => extension.supported)
|
|
340
|
+
.map((extension) => extension.name)
|
|
341
|
+
.join(", ")}`,
|
|
342
|
+
"",
|
|
343
|
+
"-- Display --",
|
|
344
|
+
`Resolution: ${resolution.innerWidth}x${resolution.innerHeight} (screen ${resolution.screenWidth}x${resolution.screenHeight})`,
|
|
345
|
+
`Device pixel ratio: ${resolution.devicePixelRatio}`,
|
|
346
|
+
`FPS: ${fps ?? "Unknown"}`,
|
|
347
|
+
"",
|
|
348
|
+
"-- Memory --",
|
|
349
|
+
memory
|
|
350
|
+
? `JS heap: ${formatBytes(memory.usedJSHeapSize)} / ${formatBytes(memory.totalJSHeapSize)} (limit ${formatBytes(memory.jsHeapSizeLimit)})`
|
|
351
|
+
: "JS heap: Not available in this browser",
|
|
352
|
+
"",
|
|
353
|
+
"-- Browser capabilities --",
|
|
354
|
+
`Audio (Web Audio API): ${yn(capabilities.audio)}`,
|
|
355
|
+
`Gamepad API: ${yn(capabilities.gamepad)}`,
|
|
356
|
+
`Clipboard API: ${yn(capabilities.clipboard)}`,
|
|
357
|
+
`Fullscreen API: ${yn(capabilities.fullscreen)}`,
|
|
358
|
+
`LocalStorage: ${yn(capabilities.localStorage)}`,
|
|
359
|
+
`IndexedDB: ${yn(capabilities.indexedDb)}`,
|
|
360
|
+
`Steam Overlay detected (best-effort): ${yn(capabilities.steamOverlayDetected)}`,
|
|
361
|
+
];
|
|
362
|
+
|
|
363
|
+
return lines.join("\n");
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export function buildDiagnosticsReportJson(snapshot: DeviceDiagnosticsSnapshot): object {
|
|
367
|
+
return {
|
|
368
|
+
generatedAt: new Date().toISOString(),
|
|
369
|
+
...snapshot,
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export function downloadDiagnosticsReportJson(snapshot: DeviceDiagnosticsSnapshot) {
|
|
374
|
+
const jsonString = JSON.stringify(buildDiagnosticsReportJson(snapshot), null, 2);
|
|
375
|
+
const blob = new Blob([jsonString], { type: "application/json" });
|
|
376
|
+
const url = URL.createObjectURL(blob);
|
|
377
|
+
const a = document.createElement("a");
|
|
378
|
+
a.href = url;
|
|
379
|
+
a.download = `${__APP_NAME__}-${__APP_VERSION__}-diagnostics-${Date.now()}.json`;
|
|
380
|
+
a.click();
|
|
381
|
+
URL.revokeObjectURL(url);
|
|
382
|
+
}
|
|
@@ -63,6 +63,56 @@
|
|
|
63
63
|
"name": "Name",
|
|
64
64
|
"version": "Version",
|
|
65
65
|
"engine": "Engine",
|
|
66
|
+
"diagnostics": "Diagnostics",
|
|
67
|
+
"diagnostics_yes": "Yes",
|
|
68
|
+
"diagnostics_no": "No",
|
|
69
|
+
"diagnostics_unknown": "Unknown",
|
|
70
|
+
"diagnostics_webgl2_missing_message": "This game requires WebGL2. Please update your browser, operating system, or GPU drivers.",
|
|
71
|
+
"diagnostics_section_engine": "Engine",
|
|
72
|
+
"diagnostics_section_device": "Device",
|
|
73
|
+
"diagnostics_section_graphics": "Graphics",
|
|
74
|
+
"diagnostics_section_display": "Display",
|
|
75
|
+
"diagnostics_section_memory": "Memory",
|
|
76
|
+
"diagnostics_section_capabilities": "Browser Capabilities",
|
|
77
|
+
"diagnostics_section_extensions": "WebGL Extensions",
|
|
78
|
+
"diagnostics_game_version": "Game version",
|
|
79
|
+
"diagnostics_pixijs_version": "PixiJS version",
|
|
80
|
+
"diagnostics_pixivn_version": "Pixi'VN version",
|
|
81
|
+
"diagnostics_tonejs_version": "Tone.js version",
|
|
82
|
+
"diagnostics_motion_version": "Motion version",
|
|
83
|
+
"diagnostics_platform": "Platform",
|
|
84
|
+
"diagnostics_browser_engine": "Browser/WebView",
|
|
85
|
+
"diagnostics_user_agent": "User Agent",
|
|
86
|
+
"diagnostics_webgl1": "WebGL1 available",
|
|
87
|
+
"diagnostics_webgl2": "WebGL2 available",
|
|
88
|
+
"diagnostics_hardware_acceleration": "Hardware acceleration",
|
|
89
|
+
"diagnostics_gpu_vendor": "GPU vendor",
|
|
90
|
+
"diagnostics_gpu_renderer": "GPU renderer",
|
|
91
|
+
"diagnostics_max_texture_size": "Max texture size",
|
|
92
|
+
"diagnostics_max_texture_size_check": "Max texture size >= 8192",
|
|
93
|
+
"diagnostics_gpu_supported": "GPU supported",
|
|
94
|
+
"diagnostics_float_textures": "Float textures",
|
|
95
|
+
"diagnostics_msaa": "MSAA",
|
|
96
|
+
"diagnostics_shaders_compile": "Shaders compile",
|
|
97
|
+
"diagnostics_resolution": "Resolution",
|
|
98
|
+
"diagnostics_device_pixel_ratio": "Device pixel ratio",
|
|
99
|
+
"diagnostics_fps": "FPS",
|
|
100
|
+
"diagnostics_js_heap": "JS heap used / total",
|
|
101
|
+
"diagnostics_js_heap_unavailable": "Not available in this browser.",
|
|
102
|
+
"diagnostics_audio": "Audio (Web Audio API)",
|
|
103
|
+
"diagnostics_gamepad": "Gamepad API",
|
|
104
|
+
"diagnostics_clipboard": "Clipboard API",
|
|
105
|
+
"diagnostics_fullscreen": "Fullscreen API",
|
|
106
|
+
"diagnostics_local_storage": "LocalStorage",
|
|
107
|
+
"diagnostics_indexed_db": "IndexedDB",
|
|
108
|
+
"diagnostics_steam_overlay": "Steam Overlay",
|
|
109
|
+
"diagnostics_steam_overlay_hint": "Best-effort detection only; not reliable in a standard browser.",
|
|
110
|
+
"diagnostics_copy_report": "Copy report",
|
|
111
|
+
"diagnostics_report_copied": "Report copied to clipboard",
|
|
112
|
+
"diagnostics_report_copy_failed": "Could not copy the report",
|
|
113
|
+
"diagnostics_download_report": "Download JSON",
|
|
114
|
+
"diagnostics_report_downloaded": "Report downloaded",
|
|
115
|
+
"diagnostics_hotkey_description": "Open settings directly on the diagnostics page.",
|
|
66
116
|
"quick_actions": "Quick Actions",
|
|
67
117
|
"quick_actions_open_description": "Press Tab to open or close the quick actions wheel.",
|
|
68
118
|
"quick_actions_click_hint": "Click an action to execute",
|
|
@@ -24,7 +24,6 @@ declare module "@drincs/pixi-vn/narration" {
|
|
|
24
24
|
}
|
|
25
25
|
declare module "@drincs/pixi-vn/canvas" {
|
|
26
26
|
interface PixivnBundleIds {
|
|
27
|
-
"default": never;
|
|
28
27
|
"audio": never;
|
|
29
28
|
"/": never;
|
|
30
29
|
"main_map": never;
|
|
@@ -39,8 +38,6 @@ declare module "@drincs/pixi-vn/canvas" {
|
|
|
39
38
|
"alice": never;
|
|
40
39
|
}
|
|
41
40
|
interface PixivnAssetAliasIds {
|
|
42
|
-
"bgm_cheerful": never;
|
|
43
|
-
"sfx_whoosh": never;
|
|
44
41
|
"background_main_menu": never;
|
|
45
42
|
"map-0": never;
|
|
46
43
|
"map-1": never;
|
|
@@ -80,7 +77,7 @@ export const characterIds = ["mc","alice"] as const;
|
|
|
80
77
|
export const characterIdsEnum = {"mc":"mc","alice":"alice"} as const;
|
|
81
78
|
export const labelIds = ["sleep_1_hour","nap_1_hour","sleep","nap","start","order_product","talk_alice_sleep_result","talk_alice_sleep","talk_alice","alice_talk_menu","take_product"] as const;
|
|
82
79
|
export const labelIdsEnum = {"sleep_1_hour":"sleep_1_hour","nap_1_hour":"nap_1_hour","sleep":"sleep","nap":"nap","start":"start","order_product":"order_product","talk_alice_sleep_result":"talk_alice_sleep_result","talk_alice_sleep":"talk_alice_sleep","talk_alice":"talk_alice","alice_talk_menu":"alice_talk_menu","take_product":"take_product"} as const;
|
|
83
|
-
export const bundleIds = ["
|
|
84
|
-
export const bundleIdsEnum = {"
|
|
85
|
-
export const assetAliasIds = ["
|
|
86
|
-
export const assetAliasIdsEnum = {"
|
|
80
|
+
export const bundleIds = ["audio","/","main_map","nightcity_map","mc_room","alice_room","ann_room","bathroom","lounge","terrace","gym_room","alice"] as const;
|
|
81
|
+
export const bundleIdsEnum = {"audio":"audio","/":"/","main_map":"main_map","nightcity_map":"nightcity_map","mc_room":"mc_room","alice_room":"alice_room","ann_room":"ann_room","bathroom":"bathroom","lounge":"lounge","terrace":"terrace","gym_room":"gym_room","alice":"alice"} as const;
|
|
82
|
+
export const assetAliasIds = ["background_main_menu","map-0","map-1","map-2","map-3","icon_location_home","icon_location_gym","map-nightcity","location_myroom-0","location_myroom-1","location_myroom-2","location_myroom-3","location_aliceroom-0","location_aliceroom-1","location_aliceroom-2","location_aliceroom-3","location_annroom-0","location_annroom-1","location_annroom-2","location_annroom-3","location_bathroom","location_lounge-0","location_lounge-1","location_lounge-2","location_lounge-3","location_terrace-0","location_terrace-1","location_terrace-2","location_terrace-3","location_gym","alice_terrace0A","alice_terrace0At","alice_roomsleep0A"] as const;
|
|
83
|
+
export const assetAliasIdsEnum = {"background_main_menu":"background_main_menu","map-0":"map-0","map-1":"map-1","map-2":"map-2","map-3":"map-3","icon_location_home":"icon_location_home","icon_location_gym":"icon_location_gym","map-nightcity":"map-nightcity","location_myroom-0":"location_myroom-0","location_myroom-1":"location_myroom-1","location_myroom-2":"location_myroom-2","location_myroom-3":"location_myroom-3","location_aliceroom-0":"location_aliceroom-0","location_aliceroom-1":"location_aliceroom-1","location_aliceroom-2":"location_aliceroom-2","location_aliceroom-3":"location_aliceroom-3","location_annroom-0":"location_annroom-0","location_annroom-1":"location_annroom-1","location_annroom-2":"location_annroom-2","location_annroom-3":"location_annroom-3","location_bathroom":"location_bathroom","location_lounge-0":"location_lounge-0","location_lounge-1":"location_lounge-1","location_lounge-2":"location_lounge-2","location_lounge-3":"location_lounge-3","location_terrace-0":"location_terrace-0","location_terrace-1":"location_terrace-1","location_terrace-2":"location_terrace-2","location_terrace-3":"location_terrace-3","location_gym":"location_gym","alice_terrace0A":"alice_terrace0A","alice_terrace0At":"alice_terrace0At","alice_roomsleep0A":"alice_roomsleep0A"} as const;
|
|
@@ -1,5 +1,83 @@
|
|
|
1
|
-
import type { AssetPackConfig } from "@assetpack/core";
|
|
1
|
+
import type { AssetPackConfig, AssetPipe } from "@assetpack/core";
|
|
2
|
+
import { path } from "@assetpack/core";
|
|
2
3
|
import { pixiPipes } from "@assetpack/core/pixi";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
|
+
|
|
6
|
+
const manifestOutput = "src/assets/manifest.gen.json";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* AssetPack only creates a manifest bundle for folders explicitly tagged
|
|
10
|
+
* with "{m}" (see pixiManifest's `manifest` tag); everything else lands in
|
|
11
|
+
* the single "default" bundle. This splits the "default" bundle into one
|
|
12
|
+
* bundle per top-level folder under the assets entry, named after that
|
|
13
|
+
* folder, so bundles mirror the folder structure without needing to tag
|
|
14
|
+
* every folder manually. Files directly at the entry root (no folder) stay
|
|
15
|
+
* in "default". Runs after the manifest has been written to disk, so it
|
|
16
|
+
* re-reads and rewrites the file.
|
|
17
|
+
*/
|
|
18
|
+
function groupBundlesByFolder(options: { output: string }): AssetPipe<{ output: string }> {
|
|
19
|
+
return {
|
|
20
|
+
name: "group-bundles-by-folder",
|
|
21
|
+
defaultOptions: options,
|
|
22
|
+
async finish(_asset, opts) {
|
|
23
|
+
const manifest = JSON.parse(await fs.readFile(opts.output, "utf-8"));
|
|
24
|
+
|
|
25
|
+
const bundles = new Map<string, { name: string; assets: unknown[] }>();
|
|
26
|
+
for (const bundle of manifest.bundles) {
|
|
27
|
+
if (bundle.name !== "default") {
|
|
28
|
+
bundles.set(bundle.name, bundle);
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
for (const asset of bundle.assets) {
|
|
32
|
+
const folder = path.dirname(asset.src[0]).split("/")[0];
|
|
33
|
+
const bundleName = folder === "." ? "default" : folder;
|
|
34
|
+
const target = bundles.get(bundleName) ?? { name: bundleName, assets: [] };
|
|
35
|
+
target.assets.push(asset);
|
|
36
|
+
bundles.set(bundleName, target);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
manifest.bundles = [...bundles.values()];
|
|
40
|
+
|
|
41
|
+
await fs.writeFile(opts.output, JSON.stringify(manifest, null, 2));
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Removes file extensions from the aliases generated by the pixi manifest
|
|
48
|
+
* pipe and replaces path separators with underscores (e.g.
|
|
49
|
+
* "yard/yard1.png" -> "yard_yard1"). Runs after the manifest has been
|
|
50
|
+
* written to disk, so it re-reads and rewrites the file.
|
|
51
|
+
*
|
|
52
|
+
* If two assets end up with the same normalized alias, the later one is
|
|
53
|
+
* prefixed with its bundle name (e.g. "yard_yard_yard1") to keep aliases
|
|
54
|
+
* unique across the whole manifest.
|
|
55
|
+
*/
|
|
56
|
+
function normalizeAliases(options: { output: string }): AssetPipe<{ output: string }> {
|
|
57
|
+
return {
|
|
58
|
+
name: "normalize-aliases",
|
|
59
|
+
defaultOptions: options,
|
|
60
|
+
async finish(_asset, opts) {
|
|
61
|
+
const manifest = JSON.parse(await fs.readFile(opts.output, "utf-8"));
|
|
62
|
+
|
|
63
|
+
const seen = new Set<string>();
|
|
64
|
+
for (const bundle of manifest.bundles) {
|
|
65
|
+
for (const asset of bundle.assets) {
|
|
66
|
+
asset.alias = asset.alias.map((alias: string) => {
|
|
67
|
+
const normalized = path.trimExt(alias).replaceAll("/", "_");
|
|
68
|
+
const unique = seen.has(normalized)
|
|
69
|
+
? `${bundle.name}_${normalized}`
|
|
70
|
+
: normalized;
|
|
71
|
+
seen.add(normalized);
|
|
72
|
+
return unique;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
await fs.writeFile(opts.output, JSON.stringify(manifest, null, 2));
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
3
81
|
|
|
4
82
|
const config: AssetPackConfig = {
|
|
5
83
|
entry: "./src/assets",
|
|
@@ -8,10 +86,12 @@ const config: AssetPackConfig = {
|
|
|
8
86
|
pipes: [
|
|
9
87
|
...pixiPipes({
|
|
10
88
|
manifest: {
|
|
11
|
-
output:
|
|
89
|
+
output: manifestOutput,
|
|
12
90
|
createShortcuts: true,
|
|
13
91
|
},
|
|
14
92
|
}),
|
|
93
|
+
groupBundlesByFolder({ output: manifestOutput }),
|
|
94
|
+
normalizeAliases({ output: manifestOutput }),
|
|
15
95
|
],
|
|
16
96
|
};
|
|
17
97
|
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@base-ui/react": "^1.6.0",
|
|
22
|
-
"@drincs/nqtr": "^1.0.
|
|
23
|
-
"@drincs/pixi-vn": "^1.8.
|
|
24
|
-
"@drincs/pixi-vn-ink": "^1.1.
|
|
22
|
+
"@drincs/nqtr": "^1.0.3",
|
|
23
|
+
"@drincs/pixi-vn": "^1.8.25",
|
|
24
|
+
"@drincs/pixi-vn-ink": "^1.1.9",
|
|
25
25
|
"@tailwindcss/vite": "^4.3.0",
|
|
26
26
|
"@tanstack/hotkeys": "^0.8.0",
|
|
27
27
|
"@tanstack/react-hotkeys": "^0.10.0",
|
|
@@ -14,16 +14,7 @@ export const manifest: AssetsManifest = {
|
|
|
14
14
|
...generatedManifestJson.bundles,
|
|
15
15
|
{
|
|
16
16
|
name: AUDIO_BUNDLE_NAME,
|
|
17
|
-
assets: [
|
|
18
|
-
{
|
|
19
|
-
alias: "bgm_cheerful",
|
|
20
|
-
src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/audio/bgm_cheerful.wav",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
alias: "sfx_whoosh",
|
|
24
|
-
src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/audio/sfx_whoosh.wav",
|
|
25
|
-
},
|
|
26
|
-
],
|
|
17
|
+
assets: [],
|
|
27
18
|
},
|
|
28
19
|
// screens
|
|
29
20
|
{
|
|
@@ -31,7 +22,7 @@ export const manifest: AssetsManifest = {
|
|
|
31
22
|
assets: [
|
|
32
23
|
{
|
|
33
24
|
alias: "background_main_menu",
|
|
34
|
-
src: "https://
|
|
25
|
+
src: "https://pub-72ff059a2c6642fb9eab15df80fb3b45.r2.dev/main-menu.png",
|
|
35
26
|
},
|
|
36
27
|
],
|
|
37
28
|
},
|