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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-pixi-vn",
3
3
  "description": "Create a new Pixi’VN project",
4
- "version": "1.8.2",
4
+ "version": "1.8.3",
5
5
  "type": "module",
6
6
  "license": "GPL-3.0",
7
7
  "author": "DRincs-Productions",
@@ -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, t }) => {
61
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
62
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
62
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
61
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
56
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
57
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
57
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
56
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
56
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
57
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
57
- notify(t("allert_error_occurred"), { variant: "error" });
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, t }) => {
56
- notify(t("allert_error_occurred"), { variant: "error" });
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