create-pixi-vn 2.1.6 → 2.1.7
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-nqtr-react-vite-muijoy/src/components/menus/main-menu.tsx +3 -3
- package/template-nqtr-react-vite-muijoy-ink/src/components/menus/main-menu.tsx +3 -3
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/components/menus/main-menu.tsx +3 -3
- package/template-nqtr-react-vite-muijoy-tauri/src/components/menus/main-menu.tsx +3 -3
- package/template-react-vite-muijoy/src/components/menus/main-menu.tsx +3 -3
- package/template-react-vite-muijoy-ink/src/components/menus/main-menu.tsx +3 -3
- package/template-react-vite-muijoy-ink-tauri/src/components/menus/main-menu.tsx +3 -3
- package/template-react-vite-muijoy-tauri/src/components/menus/main-menu.tsx +3 -3
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import { useGameProps } from "@/lib/hooks/props-hooks";
|
|
|
13
13
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
14
14
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
15
15
|
import { cn } from "@/lib/utils";
|
|
16
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
16
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
17
17
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
18
18
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
19
19
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -224,7 +224,7 @@ export function ContinueMenuButton({
|
|
|
224
224
|
if (!lastSave) return;
|
|
225
225
|
setLoading(true);
|
|
226
226
|
onLoadingChange?.(true);
|
|
227
|
-
loadSave(lastSave)
|
|
227
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
228
228
|
.then(() =>
|
|
229
229
|
queryClient.invalidateQueries({
|
|
230
230
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -238,7 +238,7 @@ export function ContinueMenuButton({
|
|
|
238
238
|
setLoading(false);
|
|
239
239
|
onLoadingChange?.(false);
|
|
240
240
|
});
|
|
241
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
241
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
242
242
|
|
|
243
243
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
244
244
|
|
|
@@ -13,7 +13,7 @@ import { useGameProps } from "@/lib/hooks/props-hooks";
|
|
|
13
13
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
14
14
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
15
15
|
import { cn } from "@/lib/utils";
|
|
16
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
16
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
17
17
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
18
18
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
19
19
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -224,7 +224,7 @@ export function ContinueMenuButton({
|
|
|
224
224
|
if (!lastSave) return;
|
|
225
225
|
setLoading(true);
|
|
226
226
|
onLoadingChange?.(true);
|
|
227
|
-
loadSave(lastSave)
|
|
227
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
228
228
|
.then(() =>
|
|
229
229
|
queryClient.invalidateQueries({
|
|
230
230
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -238,7 +238,7 @@ export function ContinueMenuButton({
|
|
|
238
238
|
setLoading(false);
|
|
239
239
|
onLoadingChange?.(false);
|
|
240
240
|
});
|
|
241
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
241
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
242
242
|
|
|
243
243
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
244
244
|
|
|
@@ -14,7 +14,7 @@ import { useQuit } from "@/lib/hooks/quit-hooks";
|
|
|
14
14
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
15
15
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
16
16
|
import { cn } from "@/lib/utils";
|
|
17
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
17
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
18
18
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
19
19
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
20
20
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -239,7 +239,7 @@ export function ContinueMenuButton({
|
|
|
239
239
|
if (!lastSave) return;
|
|
240
240
|
setLoading(true);
|
|
241
241
|
onLoadingChange?.(true);
|
|
242
|
-
loadSave(lastSave)
|
|
242
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
243
243
|
.then(() =>
|
|
244
244
|
queryClient.invalidateQueries({
|
|
245
245
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -253,7 +253,7 @@ export function ContinueMenuButton({
|
|
|
253
253
|
setLoading(false);
|
|
254
254
|
onLoadingChange?.(false);
|
|
255
255
|
});
|
|
256
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
256
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
257
257
|
|
|
258
258
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
259
259
|
|
|
@@ -14,7 +14,7 @@ import { useQuit } from "@/lib/hooks/quit-hooks";
|
|
|
14
14
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
15
15
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
16
16
|
import { cn } from "@/lib/utils";
|
|
17
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
17
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
18
18
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
19
19
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
20
20
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -239,7 +239,7 @@ export function ContinueMenuButton({
|
|
|
239
239
|
if (!lastSave) return;
|
|
240
240
|
setLoading(true);
|
|
241
241
|
onLoadingChange?.(true);
|
|
242
|
-
loadSave(lastSave)
|
|
242
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
243
243
|
.then(() =>
|
|
244
244
|
queryClient.invalidateQueries({
|
|
245
245
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -253,7 +253,7 @@ export function ContinueMenuButton({
|
|
|
253
253
|
setLoading(false);
|
|
254
254
|
onLoadingChange?.(false);
|
|
255
255
|
});
|
|
256
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
256
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
257
257
|
|
|
258
258
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
259
259
|
|
|
@@ -13,7 +13,7 @@ import { useGameProps } from "@/lib/hooks/props-hooks";
|
|
|
13
13
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
14
14
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
15
15
|
import { cn } from "@/lib/utils";
|
|
16
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
16
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
17
17
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
18
18
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
19
19
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -225,7 +225,7 @@ export function ContinueMenuButton({
|
|
|
225
225
|
if (!lastSave) return;
|
|
226
226
|
setLoading(true);
|
|
227
227
|
onLoadingChange?.(true);
|
|
228
|
-
loadSave(lastSave)
|
|
228
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
229
229
|
.then(() =>
|
|
230
230
|
queryClient.invalidateQueries({
|
|
231
231
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -239,7 +239,7 @@ export function ContinueMenuButton({
|
|
|
239
239
|
setLoading(false);
|
|
240
240
|
onLoadingChange?.(false);
|
|
241
241
|
});
|
|
242
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
242
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
243
243
|
|
|
244
244
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
245
245
|
|
|
@@ -13,7 +13,7 @@ import { useGameProps } from "@/lib/hooks/props-hooks";
|
|
|
13
13
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
14
14
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
15
15
|
import { cn } from "@/lib/utils";
|
|
16
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
16
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
17
17
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
18
18
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
19
19
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -225,7 +225,7 @@ export function ContinueMenuButton({
|
|
|
225
225
|
if (!lastSave) return;
|
|
226
226
|
setLoading(true);
|
|
227
227
|
onLoadingChange?.(true);
|
|
228
|
-
loadSave(lastSave)
|
|
228
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
229
229
|
.then(() =>
|
|
230
230
|
queryClient.invalidateQueries({
|
|
231
231
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -239,7 +239,7 @@ export function ContinueMenuButton({
|
|
|
239
239
|
setLoading(false);
|
|
240
240
|
onLoadingChange?.(false);
|
|
241
241
|
});
|
|
242
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
242
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
243
243
|
|
|
244
244
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
245
245
|
|
|
@@ -14,7 +14,7 @@ import { useQuit } from "@/lib/hooks/quit-hooks";
|
|
|
14
14
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
15
15
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
16
16
|
import { cn } from "@/lib/utils";
|
|
17
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
17
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
18
18
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
19
19
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
20
20
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -240,7 +240,7 @@ export function ContinueMenuButton({
|
|
|
240
240
|
if (!lastSave) return;
|
|
241
241
|
setLoading(true);
|
|
242
242
|
onLoadingChange?.(true);
|
|
243
|
-
loadSave(lastSave)
|
|
243
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
244
244
|
.then(() =>
|
|
245
245
|
queryClient.invalidateQueries({
|
|
246
246
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -254,7 +254,7 @@ export function ContinueMenuButton({
|
|
|
254
254
|
setLoading(false);
|
|
255
255
|
onLoadingChange?.(false);
|
|
256
256
|
});
|
|
257
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
257
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
258
258
|
|
|
259
259
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
260
260
|
|
|
@@ -14,7 +14,7 @@ import { useQuit } from "@/lib/hooks/quit-hooks";
|
|
|
14
14
|
import { useQueryLastSave } from "@/lib/query/save-query";
|
|
15
15
|
import { InterfaceSettings } from "@/lib/stores/interface-settings-store";
|
|
16
16
|
import { cn } from "@/lib/utils";
|
|
17
|
-
import { loadSave } from "@/lib/utils/save-utility";
|
|
17
|
+
import { loadRefreshSave, loadSave } from "@/lib/utils/save-utility";
|
|
18
18
|
import { canvas, Game, ImageSprite } from "@drincs/pixi-vn";
|
|
19
19
|
import { useHotkeys } from "@tanstack/react-hotkeys";
|
|
20
20
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -240,7 +240,7 @@ export function ContinueMenuButton({
|
|
|
240
240
|
if (!lastSave) return;
|
|
241
241
|
setLoading(true);
|
|
242
242
|
onLoadingChange?.(true);
|
|
243
|
-
loadSave(lastSave)
|
|
243
|
+
(hasRefreshSave ? loadRefreshSave() : loadSave(lastSave))
|
|
244
244
|
.then(() =>
|
|
245
245
|
queryClient.invalidateQueries({
|
|
246
246
|
queryKey: [INTERFACE_DATA_USE_QUERY_KEY],
|
|
@@ -254,7 +254,7 @@ export function ContinueMenuButton({
|
|
|
254
254
|
setLoading(false);
|
|
255
255
|
onLoadingChange?.(false);
|
|
256
256
|
});
|
|
257
|
-
}, [lastSave, queryClient, t, onLoadingChange]);
|
|
257
|
+
}, [lastSave, hasRefreshSave, queryClient, t, onLoadingChange]);
|
|
258
258
|
|
|
259
259
|
const isDisabled = (!isLoading && !lastSave) || loading || disabled;
|
|
260
260
|
|