create-pixi-vn 1.8.2 → 1.8.3
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/main.tsx +3 -3
- package/template-nqtr-react-vite-muijoy-ink/src/labels/startLabel.ts +15 -0
- package/template-nqtr-react-vite-muijoy-ink/src/main.tsx +3 -3
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/labels/startLabel.ts +15 -0
- package/template-nqtr-react-vite-muijoy-ink-tauri/src/main.tsx +3 -3
- package/template-nqtr-react-vite-muijoy-tauri/src/main.tsx +3 -3
- package/template-react-vite-muijoy/src/main.tsx +3 -3
- package/template-react-vite-muijoy-ink/src/main.tsx +3 -3
- package/template-react-vite-muijoy-ink-tauri/src/main.tsx +3 -3
- package/template-react-vite-muijoy-tauri/src/main.tsx +3 -3
- package/template-story-react-vite-muijoy/src/main.tsx +3 -3
- package/template-story-react-vite-muijoy-ink/src/main.tsx +3 -3
- package/template-story-react-vite-muijoy-ink-tauri/src/main.tsx +3 -3
- package/template-story-react-vite-muijoy-tauri/src/main.tsx +3 -3
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ Game.init(body, {
|
|
|
43
43
|
reactRoot.render(
|
|
44
44
|
<QueryClientProvider client={queryClient}>
|
|
45
45
|
<App />
|
|
46
|
-
</QueryClientProvider
|
|
46
|
+
</QueryClientProvider>,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -57,8 +57,8 @@ Game.onEnd(async (props) => {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
Game.onError((type, error, { notify,
|
|
61
|
-
notify(
|
|
60
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
61
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
62
62
|
console.error(`Error occurred: ${type}`, error);
|
|
63
63
|
});
|
|
64
64
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { navigator, timeTracker } from "@drincs/nqtr";
|
|
2
|
+
import { newLabel } from "@drincs/pixi-vn";
|
|
3
|
+
import { NAVIGATION_ROUTE } from "../constans";
|
|
4
|
+
import { aliceQuest } from "../values/quests";
|
|
5
|
+
import { mcRoom } from "../values/rooms";
|
|
6
|
+
|
|
7
|
+
const startLabel = newLabel("start", [
|
|
8
|
+
async (props) => {
|
|
9
|
+
navigator.currentRoom = mcRoom;
|
|
10
|
+
await aliceQuest.start(props);
|
|
11
|
+
await props.navigate(NAVIGATION_ROUTE);
|
|
12
|
+
timeTracker.currentTime = 8;
|
|
13
|
+
},
|
|
14
|
+
]);
|
|
15
|
+
export default startLabel;
|
|
@@ -44,7 +44,7 @@ Game.init(body, {
|
|
|
44
44
|
reactRoot.render(
|
|
45
45
|
<QueryClientProvider client={queryClient}>
|
|
46
46
|
<App />
|
|
47
|
-
</QueryClientProvider
|
|
47
|
+
</QueryClientProvider>,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -58,8 +58,8 @@ Game.onEnd(async (props) => {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
Game.onError((type, error, { notify,
|
|
62
|
-
notify(
|
|
61
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
62
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
63
63
|
console.error(`Error occurred: ${type}`, error);
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { navigator, timeTracker } from "@drincs/nqtr";
|
|
2
|
+
import { newLabel } from "@drincs/pixi-vn";
|
|
3
|
+
import { NAVIGATION_ROUTE } from "../constans";
|
|
4
|
+
import { aliceQuest } from "../values/quests";
|
|
5
|
+
import { mcRoom } from "../values/rooms";
|
|
6
|
+
|
|
7
|
+
const startLabel = newLabel("start", [
|
|
8
|
+
async (props) => {
|
|
9
|
+
navigator.currentRoom = mcRoom;
|
|
10
|
+
await aliceQuest.start(props);
|
|
11
|
+
await props.navigate(NAVIGATION_ROUTE);
|
|
12
|
+
timeTracker.currentTime = 8;
|
|
13
|
+
},
|
|
14
|
+
]);
|
|
15
|
+
export default startLabel;
|
|
@@ -44,7 +44,7 @@ Game.init(body, {
|
|
|
44
44
|
reactRoot.render(
|
|
45
45
|
<QueryClientProvider client={queryClient}>
|
|
46
46
|
<App />
|
|
47
|
-
</QueryClientProvider
|
|
47
|
+
</QueryClientProvider>,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -58,8 +58,8 @@ Game.onEnd(async (props) => {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
Game.onError((type, error, { notify,
|
|
62
|
-
notify(
|
|
61
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
62
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
63
63
|
console.error(`Error occurred: ${type}`, error);
|
|
64
64
|
});
|
|
65
65
|
|
|
@@ -43,7 +43,7 @@ Game.init(body, {
|
|
|
43
43
|
reactRoot.render(
|
|
44
44
|
<QueryClientProvider client={queryClient}>
|
|
45
45
|
<App />
|
|
46
|
-
</QueryClientProvider
|
|
46
|
+
</QueryClientProvider>,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -57,8 +57,8 @@ Game.onEnd(async (props) => {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
Game.onError((type, error, { notify,
|
|
61
|
-
notify(
|
|
60
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
61
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
62
62
|
console.error(`Error occurred: ${type}`, error);
|
|
63
63
|
});
|
|
64
64
|
|
|
@@ -43,7 +43,7 @@ Game.init(body, {
|
|
|
43
43
|
reactRoot.render(
|
|
44
44
|
<QueryClientProvider client={queryClient}>
|
|
45
45
|
<App />
|
|
46
|
-
</QueryClientProvider
|
|
46
|
+
</QueryClientProvider>,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -52,8 +52,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
52
52
|
navigate("/");
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
Game.onError((type, error, { notify,
|
|
56
|
-
notify(
|
|
55
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
56
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
57
57
|
console.error(`Error occurred: ${type}`, error);
|
|
58
58
|
});
|
|
59
59
|
|
|
@@ -44,7 +44,7 @@ Game.init(body, {
|
|
|
44
44
|
reactRoot.render(
|
|
45
45
|
<QueryClientProvider client={queryClient}>
|
|
46
46
|
<App />
|
|
47
|
-
</QueryClientProvider
|
|
47
|
+
</QueryClientProvider>,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -53,8 +53,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
53
53
|
navigate("/");
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
Game.onError((type, error, { notify,
|
|
57
|
-
notify(
|
|
56
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
57
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
58
58
|
console.error(`Error occurred: ${type}`, error);
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -44,7 +44,7 @@ Game.init(body, {
|
|
|
44
44
|
reactRoot.render(
|
|
45
45
|
<QueryClientProvider client={queryClient}>
|
|
46
46
|
<App />
|
|
47
|
-
</QueryClientProvider
|
|
47
|
+
</QueryClientProvider>,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -53,8 +53,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
53
53
|
navigate("/");
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
Game.onError((type, error, { notify,
|
|
57
|
-
notify(
|
|
56
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
57
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
58
58
|
console.error(`Error occurred: ${type}`, error);
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -43,7 +43,7 @@ Game.init(body, {
|
|
|
43
43
|
reactRoot.render(
|
|
44
44
|
<QueryClientProvider client={queryClient}>
|
|
45
45
|
<App />
|
|
46
|
-
</QueryClientProvider
|
|
46
|
+
</QueryClientProvider>,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -52,8 +52,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
52
52
|
navigate("/");
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
Game.onError((type, error, { notify,
|
|
56
|
-
notify(
|
|
55
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
56
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
57
57
|
console.error(`Error occurred: ${type}`, error);
|
|
58
58
|
});
|
|
59
59
|
|
|
@@ -43,7 +43,7 @@ Game.init(body, {
|
|
|
43
43
|
reactRoot.render(
|
|
44
44
|
<QueryClientProvider client={queryClient}>
|
|
45
45
|
<App />
|
|
46
|
-
</QueryClientProvider
|
|
46
|
+
</QueryClientProvider>,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -52,8 +52,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
52
52
|
navigate("/");
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
Game.onError((type, error, { notify,
|
|
56
|
-
notify(
|
|
55
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
56
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
57
57
|
console.error(`Error occurred: ${type}`, error);
|
|
58
58
|
});
|
|
59
59
|
|
|
@@ -44,7 +44,7 @@ Game.init(body, {
|
|
|
44
44
|
reactRoot.render(
|
|
45
45
|
<QueryClientProvider client={queryClient}>
|
|
46
46
|
<App />
|
|
47
|
-
</QueryClientProvider
|
|
47
|
+
</QueryClientProvider>,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -53,8 +53,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
53
53
|
navigate("/");
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
Game.onError((type, error, { notify,
|
|
57
|
-
notify(
|
|
56
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
57
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
58
58
|
console.error(`Error occurred: ${type}`, error);
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -44,7 +44,7 @@ Game.init(body, {
|
|
|
44
44
|
reactRoot.render(
|
|
45
45
|
<QueryClientProvider client={queryClient}>
|
|
46
46
|
<App />
|
|
47
|
-
</QueryClientProvider
|
|
47
|
+
</QueryClientProvider>,
|
|
48
48
|
);
|
|
49
49
|
});
|
|
50
50
|
|
|
@@ -53,8 +53,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
53
53
|
navigate("/");
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
Game.onError((type, error, { notify,
|
|
57
|
-
notify(
|
|
56
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
57
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
58
58
|
console.error(`Error occurred: ${type}`, error);
|
|
59
59
|
});
|
|
60
60
|
|
|
@@ -43,7 +43,7 @@ Game.init(body, {
|
|
|
43
43
|
reactRoot.render(
|
|
44
44
|
<QueryClientProvider client={queryClient}>
|
|
45
45
|
<App />
|
|
46
|
-
</QueryClientProvider
|
|
46
|
+
</QueryClientProvider>,
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -52,8 +52,8 @@ Game.onEnd(async ({ navigate }) => {
|
|
|
52
52
|
navigate("/");
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
Game.onError((type, error, { notify,
|
|
56
|
-
notify(
|
|
55
|
+
Game.onError((type, error, { notify, uiTransition }) => {
|
|
56
|
+
notify(uiTransition("allert_error_occurred"), { variant: "error" });
|
|
57
57
|
console.error(`Error occurred: ${type}`, error);
|
|
58
58
|
});
|
|
59
59
|
|