@turnipxenon/pineapple 2.4.18 → 2.4.19
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/.idea/workspace.xml +15 -14
- package/.svelte-kit/__package__/components/Card.svelte +3 -0
- package/.svelte-kit/__package__/components/RandomizedBackground.svelte +2 -2
- package/.svelte-kit/__package__/components/pineapple/PineappleBaseLayout.svelte +6 -39
- package/.svelte-kit/__package__/index.d.ts +3 -1
- package/.svelte-kit/__package__/index.js +3 -1
- package/{dist/util/stable_random.d.ts → .svelte-kit/__package__/util/util.d.ts} +1 -0
- package/{dist/util/stable_random.js → .svelte-kit/__package__/util/util.js} +5 -0
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/components/Card.svelte +3 -0
- package/dist/components/RandomizedBackground.svelte +2 -2
- package/dist/components/pineapple/PineappleBaseLayout.svelte +6 -39
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/{.svelte-kit/__package__/util/stable_random.d.ts → dist/util/util.d.ts} +1 -0
- package/{.svelte-kit/__package__/util/stable_random.js → dist/util/util.js} +5 -0
- package/docs/PineappleFiberSpec.md +2 -2
- package/package.json +1 -1
- package/src/lib/components/Card.svelte +4 -0
- package/src/lib/components/DialogOverlay.svelte +2 -2
- package/src/lib/components/LazyAsset.svelte +2 -2
- package/src/lib/components/RandomizedBackground.svelte +8 -8
- package/src/lib/components/dialog_manager/DialogManagerStore.ts +5 -5
- package/src/lib/components/dialog_manager/DialogProcessor.ts +15 -15
- package/src/lib/components/dialog_manager/DialogUtils.ts +1 -1
- package/src/lib/components/dialog_manager/behavior_tree/core/BaseBehaviorResult.ts +1 -1
- package/src/lib/components/dialog_manager/behavior_tree/core/SelectorNode.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionArguments.ts +1 -1
- package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionEvaluator.ts +6 -6
- package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionResult.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionSelectorNode.ts +5 -5
- package/src/lib/components/dialog_manager/behavior_tree/expression/OperandNode.ts +5 -5
- package/src/lib/components/dialog_manager/behavior_tree/expression/OperatorNode.ts +5 -5
- package/src/lib/components/dialog_manager/behavior_tree/expression/commands/CommandExpressionNode.ts +5 -5
- package/src/lib/components/dialog_manager/behavior_tree/expression/commands/CommandLogicNode.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/expression/commands/CommandMap.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/expression/commands/RandomRangeCommand.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/commands/VisitedCommand.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/commands/VisitedCountCommand.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/AndOperator.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/EqualityOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/GreaterThanEqualOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/GreaterThanOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/InequalityOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/LessThanEqualOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/LessThanOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/NegationOperator.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/OperatorLogicNode.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/OperatorMap.ts +16 -16
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/OrOperator.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/XorOperator.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/arithmetic/DivisionOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/arithmetic/MinusOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/arithmetic/MultiplicationOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/arithmetic/PlusOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/expression/operators/arithmetic/RemainderDivisionOperator.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/line_core/LineBehaviorNode.ts +3 -3
- package/src/lib/components/dialog_manager/behavior_tree/line_core/LineBehaviorResult.ts +2 -2
- package/src/lib/components/dialog_manager/behavior_tree/line_core/LineNodeArguments.ts +1 -1
- package/src/lib/components/dialog_manager/behavior_tree/line_core/LineSelectorNode.ts +6 -6
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/BehaviorState.ts +1 -1
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/ElseIfNode.ts +7 -7
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/ElseNode.ts +6 -6
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/EndIfNode.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/IfNode.ts +7 -7
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/IgnoreGuardNode.ts +6 -6
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/IgnoreJumpNode.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/LineCommentNode.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/NormalLineProcessorNode.ts +4 -4
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/SetVariableNode.ts +7 -7
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/commands/DeclareCommand.ts +5 -5
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand.ts +7 -7
- package/src/lib/components/dialog_manager/behavior_tree/line_processors/commands/UnvisitCommand.ts +5 -5
- package/src/lib/components/layouts/SeaweedBaseLayout.svelte +3 -3
- package/src/lib/components/pineapple/PineappleBaseLayout.svelte +10 -18
- package/src/lib/index.ts +3 -1
- package/src/lib/scripts/util/ManualCheck.ts +1 -1
- package/src/lib/scripts/util/ManualCheckRun.ts +1 -1
- package/src/lib/store.ts +1 -1
- package/src/lib/types/pineapple_fiber/DialogDetail.ts +1 -1
- package/src/lib/util/{stable_random.ts → util.ts} +22 -16
- package/src/routes/(pineapple)/+page.svelte +22 -12
- package/src/routes/(pineapple)/pineapple/+page.svelte +13 -16
- package/src/routes/+error.svelte +1 -1
- package/src/routes/+layout.svelte +3 -3
- package/src/routes/ErrorYarn.ts +3 -3
- package/.svelte-kit/__package__/util/create_go_to_function.d.ts +0 -1
- package/.svelte-kit/__package__/util/create_go_to_function.js +0 -5
- package/dist/util/create_go_to_function.d.ts +0 -1
- package/dist/util/create_go_to_function.js +0 -5
- package/src/lib/util/create_go_to_function.ts +0 -5
package/.idea/workspace.xml
CHANGED
|
@@ -4,7 +4,16 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Replace all $lib to $pkg"
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Replace all $lib to $pkg">
|
|
8
|
+
<change afterPath="$PROJECT_DIR$/src/lib/util/util.ts" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/Card.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/Card.svelte" afterDir="false" />
|
|
10
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/RandomizedBackground.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/RandomizedBackground.svelte" afterDir="false" />
|
|
11
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" afterDir="false" />
|
|
12
|
+
<change beforePath="$PROJECT_DIR$/src/lib/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/index.ts" afterDir="false" />
|
|
13
|
+
<change beforePath="$PROJECT_DIR$/src/lib/util/create_go_to_function.ts" beforeDir="false" />
|
|
14
|
+
<change beforePath="$PROJECT_DIR$/src/lib/util/stable_random.ts" beforeDir="false" />
|
|
15
|
+
<change beforePath="$PROJECT_DIR$/src/routes/(pineapple)/+page.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/routes/(pineapple)/+page.svelte" afterDir="false" />
|
|
16
|
+
</list>
|
|
8
17
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
18
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
19
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -115,6 +124,9 @@
|
|
|
115
124
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)" />
|
|
116
125
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(seaweed)" />
|
|
117
126
|
</key>
|
|
127
|
+
<key name="es6.move.members.recent.items">
|
|
128
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\util\util.ts" />
|
|
129
|
+
</key>
|
|
118
130
|
</component>
|
|
119
131
|
<component name="RunManager" selected="npm.dev --open">
|
|
120
132
|
<configuration name="dev --open" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
@@ -208,7 +220,7 @@
|
|
|
208
220
|
<workItem from="1710914868232" duration="41000" />
|
|
209
221
|
<workItem from="1711051949931" duration="144000" />
|
|
210
222
|
<workItem from="1711052377810" duration="128000" />
|
|
211
|
-
<workItem from="1711090540281" duration="
|
|
223
|
+
<workItem from="1711090540281" duration="4426000" />
|
|
212
224
|
</task>
|
|
213
225
|
<task id="LOCAL-00030" summary="Migrate to skeleton 2.0">
|
|
214
226
|
<option name="closed" value="true" />
|
|
@@ -640,7 +652,7 @@
|
|
|
640
652
|
<entry key="branch">
|
|
641
653
|
<value>
|
|
642
654
|
<list>
|
|
643
|
-
<option value="turnip/
|
|
655
|
+
<option value="turnip/dev" />
|
|
644
656
|
</list>
|
|
645
657
|
</value>
|
|
646
658
|
</entry>
|
|
@@ -687,15 +699,4 @@
|
|
|
687
699
|
<MESSAGE value="Replace all $lib to $pkg" />
|
|
688
700
|
<option name="LAST_COMMIT_MESSAGE" value="Replace all $lib to $pkg" />
|
|
689
701
|
</component>
|
|
690
|
-
<component name="XDebuggerManager">
|
|
691
|
-
<breakpoint-manager>
|
|
692
|
-
<breakpoints>
|
|
693
|
-
<line-breakpoint enabled="true" type="javascript">
|
|
694
|
-
<url>file://$PROJECT_DIR$/src/routes/(pineapple)/pineapple/+page.svelte</url>
|
|
695
|
-
<line>31</line>
|
|
696
|
-
<option name="timeStamp" value="1" />
|
|
697
|
-
</line-breakpoint>
|
|
698
|
-
</breakpoints>
|
|
699
|
-
</breakpoint-manager>
|
|
700
|
-
</component>
|
|
701
702
|
</project>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import BgTiledAres from "../assets/bg_tiled/bg_tiled_ares.png";
|
|
1
|
+
<script>import BgTiledAres from "../assets/bg_tiled/bg_tiled_ares.png";
|
|
3
2
|
import BgTiledCorn from "../assets/bg_tiled/bg_tiled_corn.png";
|
|
4
3
|
import BgTiledPineapple from "../assets/bg_tiled/bg_tiled_pineapple.png";
|
|
5
4
|
import BgTiledReinhard from "../assets/bg_tiled/bg_tiled_reinhard.png";
|
|
6
5
|
import BgTiledTomato from "../assets/bg_tiled/bg_tiled_tomato.png";
|
|
7
6
|
import BgTiledTurnip from "../assets/bg_tiled/bg_tiled_turnip.png";
|
|
8
7
|
import RandomizedImage from "./RandomizedImage.svelte";
|
|
8
|
+
import { generatedDailySeed, mulberry32Generator } from "../util/util";
|
|
9
9
|
export let enable;
|
|
10
10
|
const imageList = [BgTiledAres, BgTiledCorn, BgTiledPineapple, BgTiledReinhard, BgTiledTomato, BgTiledTurnip];
|
|
11
11
|
const seed = generatedDailySeed();
|
|
@@ -9,6 +9,7 @@ import CloseIcon from "../../assets/icons/close.svg";
|
|
|
9
9
|
import { dialogManager, enableDialogueOverlay } from "../dialog_manager/DialogManagerStore";
|
|
10
10
|
import Toast from "./toast/Toast.svelte";
|
|
11
11
|
import DialogOverlay from "../DialogOverlay.svelte";
|
|
12
|
+
import { crossfade } from "svelte/transition";
|
|
12
13
|
let pages = [];
|
|
13
14
|
const updateBreadcrumb = (pathname) => {
|
|
14
15
|
pages = [];
|
|
@@ -80,12 +81,12 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
80
81
|
<ol class="breadcrumb">
|
|
81
82
|
{#each pages as crumb, i}
|
|
82
83
|
{#if i < pages.length - 1}
|
|
83
|
-
<li class="crumb">
|
|
84
|
+
<li class="crumb" transition:crossfade>
|
|
84
85
|
<a href={crumb.path}>{crumb.name.charAt(0).toUpperCase() + crumb.name.slice(1)}</a>
|
|
86
|
+
›
|
|
85
87
|
</li>
|
|
86
|
-
<li class="crumb-separator" aria-hidden="true">›</li>
|
|
87
88
|
{:else}
|
|
88
|
-
<li class="crumb">{crumb.name.charAt(0).toUpperCase() + crumb.name.slice(1)}</li>
|
|
89
|
+
<li class="crumb" transition:crossfade>{crumb.name.charAt(0).toUpperCase() + crumb.name.slice(1)}</li>
|
|
89
90
|
{/if}
|
|
90
91
|
{/each}
|
|
91
92
|
</ol>
|
|
@@ -106,17 +107,7 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
106
107
|
<slot />
|
|
107
108
|
<div class="footer-space" />
|
|
108
109
|
</div>
|
|
109
|
-
|
|
110
|
-
<!-- <!– Page Route Content –>-->
|
|
111
|
-
<!-- <div class="default-page-container">-->
|
|
112
|
-
<!-- <slot />-->
|
|
113
|
-
<!-- <div class="footer-space" />-->
|
|
114
|
-
<!-- </div>-->
|
|
115
|
-
<!-- <DialogOverlay />-->
|
|
116
|
-
<!--{:else}-->
|
|
117
|
-
<!-- <DialogOverlay />-->
|
|
118
|
-
<!-- <slot />-->
|
|
119
|
-
<!--{/if}-->
|
|
110
|
+
|
|
120
111
|
</AppShell>
|
|
121
112
|
|
|
122
113
|
<style>
|
|
@@ -166,15 +157,6 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
166
157
|
display: flex;
|
|
167
158
|
width: 100%;
|
|
168
159
|
align-items: center;
|
|
169
|
-
}
|
|
170
|
-
.breadcrumb > :not([hidden]) ~ :not([hidden]),
|
|
171
|
-
.breadcrumb-nonresponsive > :not([hidden]) ~ :not([hidden]) {
|
|
172
|
-
--tw-space-x-reverse: 0;
|
|
173
|
-
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
174
|
-
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
175
|
-
}
|
|
176
|
-
.breadcrumb,
|
|
177
|
-
.breadcrumb-nonresponsive {
|
|
178
160
|
overflow-x: auto;
|
|
179
161
|
/*@apply flex items-center space-x-4 w-full hide-scrollbar overflow-x-auto;*/
|
|
180
162
|
}
|
|
@@ -185,24 +167,9 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
185
167
|
justify-content: center;
|
|
186
168
|
}
|
|
187
169
|
|
|
188
|
-
.crumb > :not([hidden]) ~ :not([hidden]) {
|
|
189
|
-
--tw-space-x-reverse: 0;
|
|
190
|
-
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
191
|
-
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.dark .crumb-separator {
|
|
195
|
-
color: rgb(var(--color-surface-200));
|
|
196
|
-
}
|
|
197
|
-
|
|
198
170
|
.crumb-separator {
|
|
199
171
|
display: flex;
|
|
200
|
-
|
|
201
|
-
color: rgb(var(--color-surface-700));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.dark .crumb-separator {
|
|
205
|
-
color: rgb(var(--color-surface-200));
|
|
172
|
+
color: var(--color-text-50);
|
|
206
173
|
}
|
|
207
174
|
|
|
208
175
|
/* === Auto-Responsive === */
|
|
@@ -7,4 +7,6 @@ export * from "./components/dialog_manager/DialogManager";
|
|
|
7
7
|
export * from "./components/dialog_manager/DialogUtils";
|
|
8
8
|
export * from "./types/pineapple_fiber/PortraitType";
|
|
9
9
|
export * from "./types/pineapple_fiber/DialogDetail";
|
|
10
|
-
export * from "./util/
|
|
10
|
+
export * from "./util/util";
|
|
11
|
+
export { mulberry32Generator } from "./util/util";
|
|
12
|
+
export { generatedDailySeed } from "./util/util";
|
|
@@ -7,4 +7,6 @@ export * from "./components/dialog_manager/DialogManager";
|
|
|
7
7
|
export * from "./components/dialog_manager/DialogUtils";
|
|
8
8
|
export * from "./types/pineapple_fiber/PortraitType";
|
|
9
9
|
export * from "./types/pineapple_fiber/DialogDetail";
|
|
10
|
-
export * from "./util/
|
|
10
|
+
export * from "./util/util";
|
|
11
|
+
export { mulberry32Generator } from "./util/util";
|
|
12
|
+
export { generatedDailySeed } from "./util/util";
|
|
@@ -21,7 +21,7 @@ export const options = {
|
|
|
21
21
|
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\n\t<body data-sveltekit-preload-data=\"hover\" data-theme=\"crimson\">\n\t\t<div style=\"display: contents\" class=\"h-full overflow-hidden\">" + body + "</div>\n\t</body>\n</html>\n",
|
|
22
22
|
error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
|
|
23
23
|
},
|
|
24
|
-
version_hash: "
|
|
24
|
+
version_hash: "1nuybzt"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script>import
|
|
2
|
-
import BgTiledAres from "../assets/bg_tiled/bg_tiled_ares.png";
|
|
1
|
+
<script>import BgTiledAres from "../assets/bg_tiled/bg_tiled_ares.png";
|
|
3
2
|
import BgTiledCorn from "../assets/bg_tiled/bg_tiled_corn.png";
|
|
4
3
|
import BgTiledPineapple from "../assets/bg_tiled/bg_tiled_pineapple.png";
|
|
5
4
|
import BgTiledReinhard from "../assets/bg_tiled/bg_tiled_reinhard.png";
|
|
6
5
|
import BgTiledTomato from "../assets/bg_tiled/bg_tiled_tomato.png";
|
|
7
6
|
import BgTiledTurnip from "../assets/bg_tiled/bg_tiled_turnip.png";
|
|
8
7
|
import RandomizedImage from "./RandomizedImage.svelte";
|
|
8
|
+
import { generatedDailySeed, mulberry32Generator } from "../util/util";
|
|
9
9
|
export let enable;
|
|
10
10
|
const imageList = [BgTiledAres, BgTiledCorn, BgTiledPineapple, BgTiledReinhard, BgTiledTomato, BgTiledTurnip];
|
|
11
11
|
const seed = generatedDailySeed();
|
|
@@ -9,6 +9,7 @@ import CloseIcon from "../../assets/icons/close.svg";
|
|
|
9
9
|
import { dialogManager, enableDialogueOverlay } from "../dialog_manager/DialogManagerStore";
|
|
10
10
|
import Toast from "./toast/Toast.svelte";
|
|
11
11
|
import DialogOverlay from "../DialogOverlay.svelte";
|
|
12
|
+
import { crossfade } from "svelte/transition";
|
|
12
13
|
let pages = [];
|
|
13
14
|
const updateBreadcrumb = (pathname) => {
|
|
14
15
|
pages = [];
|
|
@@ -80,12 +81,12 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
80
81
|
<ol class="breadcrumb">
|
|
81
82
|
{#each pages as crumb, i}
|
|
82
83
|
{#if i < pages.length - 1}
|
|
83
|
-
<li class="crumb">
|
|
84
|
+
<li class="crumb" transition:crossfade>
|
|
84
85
|
<a href={crumb.path}>{crumb.name.charAt(0).toUpperCase() + crumb.name.slice(1)}</a>
|
|
86
|
+
›
|
|
85
87
|
</li>
|
|
86
|
-
<li class="crumb-separator" aria-hidden="true">›</li>
|
|
87
88
|
{:else}
|
|
88
|
-
<li class="crumb">{crumb.name.charAt(0).toUpperCase() + crumb.name.slice(1)}</li>
|
|
89
|
+
<li class="crumb" transition:crossfade>{crumb.name.charAt(0).toUpperCase() + crumb.name.slice(1)}</li>
|
|
89
90
|
{/if}
|
|
90
91
|
{/each}
|
|
91
92
|
</ol>
|
|
@@ -106,17 +107,7 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
106
107
|
<slot />
|
|
107
108
|
<div class="footer-space" />
|
|
108
109
|
</div>
|
|
109
|
-
|
|
110
|
-
<!-- <!– Page Route Content –>-->
|
|
111
|
-
<!-- <div class="default-page-container">-->
|
|
112
|
-
<!-- <slot />-->
|
|
113
|
-
<!-- <div class="footer-space" />-->
|
|
114
|
-
<!-- </div>-->
|
|
115
|
-
<!-- <DialogOverlay />-->
|
|
116
|
-
<!--{:else}-->
|
|
117
|
-
<!-- <DialogOverlay />-->
|
|
118
|
-
<!-- <slot />-->
|
|
119
|
-
<!--{/if}-->
|
|
110
|
+
|
|
120
111
|
</AppShell>
|
|
121
112
|
|
|
122
113
|
<style>
|
|
@@ -166,15 +157,6 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
166
157
|
display: flex;
|
|
167
158
|
width: 100%;
|
|
168
159
|
align-items: center;
|
|
169
|
-
}
|
|
170
|
-
.breadcrumb > :not([hidden]) ~ :not([hidden]),
|
|
171
|
-
.breadcrumb-nonresponsive > :not([hidden]) ~ :not([hidden]) {
|
|
172
|
-
--tw-space-x-reverse: 0;
|
|
173
|
-
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
174
|
-
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
175
|
-
}
|
|
176
|
-
.breadcrumb,
|
|
177
|
-
.breadcrumb-nonresponsive {
|
|
178
160
|
overflow-x: auto;
|
|
179
161
|
/*@apply flex items-center space-x-4 w-full hide-scrollbar overflow-x-auto;*/
|
|
180
162
|
}
|
|
@@ -185,24 +167,9 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
185
167
|
justify-content: center;
|
|
186
168
|
}
|
|
187
169
|
|
|
188
|
-
.crumb > :not([hidden]) ~ :not([hidden]) {
|
|
189
|
-
--tw-space-x-reverse: 0;
|
|
190
|
-
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
191
|
-
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.dark .crumb-separator {
|
|
195
|
-
color: rgb(var(--color-surface-200));
|
|
196
|
-
}
|
|
197
|
-
|
|
198
170
|
.crumb-separator {
|
|
199
171
|
display: flex;
|
|
200
|
-
|
|
201
|
-
color: rgb(var(--color-surface-700));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.dark .crumb-separator {
|
|
205
|
-
color: rgb(var(--color-surface-200));
|
|
172
|
+
color: var(--color-text-50);
|
|
206
173
|
}
|
|
207
174
|
|
|
208
175
|
/* === Auto-Responsive === */
|
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,6 @@ export * from "./components/dialog_manager/DialogManager";
|
|
|
7
7
|
export * from "./components/dialog_manager/DialogUtils";
|
|
8
8
|
export * from "./types/pineapple_fiber/PortraitType";
|
|
9
9
|
export * from "./types/pineapple_fiber/DialogDetail";
|
|
10
|
-
export * from "./util/
|
|
10
|
+
export * from "./util/util";
|
|
11
|
+
export { mulberry32Generator } from "./util/util";
|
|
12
|
+
export { generatedDailySeed } from "./util/util";
|
package/dist/index.js
CHANGED
|
@@ -7,4 +7,6 @@ export * from "./components/dialog_manager/DialogManager";
|
|
|
7
7
|
export * from "./components/dialog_manager/DialogUtils";
|
|
8
8
|
export * from "./types/pineapple_fiber/PortraitType";
|
|
9
9
|
export * from "./types/pineapple_fiber/DialogDetail";
|
|
10
|
-
export * from "./util/
|
|
10
|
+
export * from "./util/util";
|
|
11
|
+
export { mulberry32Generator } from "./util/util";
|
|
12
|
+
export { generatedDailySeed } from "./util/util";
|
|
@@ -312,8 +312,8 @@ In Typescript, this would look like:
|
|
|
312
312
|
|
|
313
313
|
// auto-generated from About.yarn
|
|
314
314
|
|
|
315
|
-
import { dialogManager } from "$
|
|
316
|
-
import { PortraitType } from "$
|
|
315
|
+
import { dialogManager } from "$lib/store";
|
|
316
|
+
import { PortraitType } from "$lib/types/pineapple_fiber/PortraitType";
|
|
317
317
|
|
|
318
318
|
class _AboutYarn {
|
|
319
319
|
setDialogTree = () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turnipxenon/pineapple",
|
|
3
3
|
"description": "personal package for base styling for other personal projects",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.19",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "npm run check-requirements && vite build && yarn package",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import AresHappy from "$
|
|
2
|
+
import AresHappy from "$lib/assets/characters/ares/ares_happy.webp";
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
4
|
|
|
5
|
-
import { dialogManager } from "$
|
|
5
|
+
import { dialogManager } from "$lib/components/dialog_manager/DialogManagerStore";
|
|
6
6
|
import { DialogState } from "$pkg/types/pineapple_fiber/DialogState";
|
|
7
7
|
|
|
8
8
|
let currentMessage = "";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {LazyAssetStatus, LazyAssetType} from "$
|
|
3
|
-
import BgTiledAres from "$
|
|
2
|
+
import {LazyAssetStatus, LazyAssetType} from "$lib/components/LazyAssetType";
|
|
3
|
+
import BgTiledAres from "$lib/assets/bg_tiled/bg_tiled_ares.png";
|
|
4
4
|
import {onMount} from "svelte";
|
|
5
5
|
|
|
6
6
|
export let src: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import BgTiledAres from "$lib/assets/bg_tiled/bg_tiled_ares.png";
|
|
3
|
+
import BgTiledCorn from "$lib/assets/bg_tiled/bg_tiled_corn.png";
|
|
4
|
+
import BgTiledPineapple from "$lib/assets/bg_tiled/bg_tiled_pineapple.png";
|
|
5
|
+
import BgTiledReinhard from "$lib/assets/bg_tiled/bg_tiled_reinhard.png";
|
|
6
|
+
import BgTiledTomato from "$lib/assets/bg_tiled/bg_tiled_tomato.png";
|
|
7
|
+
import BgTiledTurnip from "$lib/assets/bg_tiled/bg_tiled_turnip.png";
|
|
8
|
+
import RandomizedImage from "$lib/components/RandomizedImage.svelte";
|
|
9
|
+
import { generatedDailySeed, mulberry32Generator } from "$pkg/util/util";
|
|
10
10
|
|
|
11
11
|
export let enable;
|
|
12
12
|
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* or is saved in local storage
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { DialogMapStore } from "$
|
|
7
|
-
import { createNewMapStore } from "$
|
|
6
|
+
import type { DialogMapStore } from "$lib/types/pineapple_fiber/DialogVariableStore";
|
|
7
|
+
import { createNewMapStore } from "$lib/types/pineapple_fiber/DialogVariableStore";
|
|
8
8
|
import { writable } from "svelte/store";
|
|
9
|
-
import type { DialogDetail } from "$
|
|
10
|
-
import { DialogManager } from "$
|
|
9
|
+
import type { DialogDetail } from "$lib/types/pineapple_fiber/DialogDetail";
|
|
10
|
+
import { DialogManager } from "$lib/components/dialog_manager/DialogManager";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Enables the dialogue overlay
|
|
@@ -16,7 +16,7 @@ import { DialogManager } from "$pkg/components/dialog_manager/DialogManager";
|
|
|
16
16
|
* When updating to false, remember to restore the value to true, our default value, onDestroy.
|
|
17
17
|
* Avoid async to prevent weird flashes of updates!
|
|
18
18
|
* ```
|
|
19
|
-
* import {enableDialogueOverlay} from "$
|
|
19
|
+
* import {enableDialogueOverlay} from "$lib/store.ts";
|
|
20
20
|
* enableDialogueOverlay.update(() => false);
|
|
21
21
|
*
|
|
22
22
|
* onDestroy(() => {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { DialogDetail } from "$
|
|
2
|
-
import { BehaviorState } from "$
|
|
3
|
-
import { IfNode } from "$
|
|
4
|
-
import { EndIfNode } from "$
|
|
5
|
-
import { ElseNode } from "$
|
|
6
|
-
import { ElseIfNode } from "$
|
|
7
|
-
import { SetVariableNode } from "$
|
|
8
|
-
import { IgnoreGuardNode } from "$
|
|
9
|
-
import { NormalLineProcessorNode } from "$
|
|
10
|
-
import { LineSelectorNode } from "$
|
|
1
|
+
import type { DialogDetail } from "$lib/types/pineapple_fiber/DialogDetail";
|
|
2
|
+
import { BehaviorState } from "$lib/components/dialog_manager/behavior_tree/line_processors/BehaviorState";
|
|
3
|
+
import { IfNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/IfNode";
|
|
4
|
+
import { EndIfNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/EndIfNode";
|
|
5
|
+
import { ElseNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/ElseNode";
|
|
6
|
+
import { ElseIfNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/ElseIfNode";
|
|
7
|
+
import { SetVariableNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/SetVariableNode";
|
|
8
|
+
import { IgnoreGuardNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/IgnoreGuardNode";
|
|
9
|
+
import { NormalLineProcessorNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/NormalLineProcessorNode";
|
|
10
|
+
import { LineSelectorNode } from "$lib/components/dialog_manager/behavior_tree/line_core/LineSelectorNode";
|
|
11
11
|
import { browser } from "$app/environment";
|
|
12
|
-
import { LineCommentNode } from "$
|
|
13
|
-
import { DeclareCommand } from "$
|
|
14
|
-
import { JumpCommand } from "$
|
|
15
|
-
import { IgnoreJumpNode } from "$
|
|
16
|
-
import { UnvisitCommand } from "$
|
|
12
|
+
import { LineCommentNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/LineCommentNode";
|
|
13
|
+
import { DeclareCommand } from "$lib/components/dialog_manager/behavior_tree/line_processors/commands/DeclareCommand";
|
|
14
|
+
import { JumpCommand } from "$lib/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand";
|
|
15
|
+
import { IgnoreJumpNode } from "$lib/components/dialog_manager/behavior_tree/line_processors/IgnoreJumpNode";
|
|
16
|
+
import { UnvisitCommand } from "$lib/components/dialog_manager/behavior_tree/line_processors/commands/UnvisitCommand";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* DialogProcessor processes dialogs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BehaviorStatus } from "$
|
|
1
|
+
import type { BehaviorStatus } from "$lib/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
2
2
|
|
|
3
3
|
export interface BaseBehaviorResult {
|
|
4
4
|
status: BehaviorStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BehaviorNode } from "$
|
|
2
|
-
import { BehaviorStatus } from "$
|
|
3
|
-
import type { BaseBehaviorResult } from "$
|
|
1
|
+
import type { BehaviorNode } from "$lib/components/dialog_manager/behavior_tree/core/BehaviorNode";
|
|
2
|
+
import { BehaviorStatus } from "$lib/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
3
|
+
import type { BaseBehaviorResult } from "$lib/components/dialog_manager/behavior_tree/core/BaseBehaviorResult";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Selector is a composite behavior node where it tries to process everything until it
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExpressionState } from "$
|
|
1
|
+
import type { ExpressionState } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionState";
|
|
2
2
|
|
|
3
3
|
export interface ExpressionArguments {
|
|
4
4
|
token: string;
|
package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BehaviorNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
3
|
-
import type { ExpressionResult } from "$
|
|
1
|
+
import type { BehaviorNode } from "$lib/components/dialog_manager/behavior_tree/core/BehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
4
|
|
|
5
5
|
export type ExpressionBehaviorNode = BehaviorNode<ExpressionArguments, ExpressionResult>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { browser } from "$app/environment";
|
|
2
|
-
import { OperatorNode } from "$
|
|
3
|
-
import { OperandNode } from "$
|
|
4
|
-
import { ExpressionSelectorNode } from "$
|
|
5
|
-
import type { ExpressionState } from "$
|
|
6
|
-
import { btreeUtils } from "$
|
|
7
|
-
import { CommandExpressionNode } from "$
|
|
2
|
+
import { OperatorNode } from "$lib/components/dialog_manager/behavior_tree/expression/OperatorNode";
|
|
3
|
+
import { OperandNode } from "$lib/components/dialog_manager/behavior_tree/expression/OperandNode";
|
|
4
|
+
import { ExpressionSelectorNode } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionSelectorNode";
|
|
5
|
+
import type { ExpressionState } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionState";
|
|
6
|
+
import { btreeUtils } from "$lib/components/dialog_manager/behavior_tree/core/BTreeUtils";
|
|
7
|
+
import { CommandExpressionNode } from "$lib/components/dialog_manager/behavior_tree/expression/commands/CommandExpressionNode";
|
|
8
8
|
|
|
9
9
|
class ExpressionEvaluator {
|
|
10
10
|
evaluatorTree = new ExpressionSelectorNode([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseBehaviorResult } from "$
|
|
2
|
-
import type { ExpressionState } from "$
|
|
1
|
+
import type { BaseBehaviorResult } from "$lib/components/dialog_manager/behavior_tree/core/BaseBehaviorResult";
|
|
2
|
+
import type { ExpressionState } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionState";
|
|
3
3
|
|
|
4
4
|
export interface ExpressionResult extends BaseBehaviorResult {
|
|
5
5
|
nextState: ExpressionState;
|
package/src/lib/components/dialog_manager/behavior_tree/expression/ExpressionSelectorNode.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SelectorNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
3
|
-
import type { ExpressionResult } from "$
|
|
4
|
-
import { BehaviorStatus } from "$
|
|
5
|
-
import type { ExpressionBehaviorNode } from "$
|
|
1
|
+
import { SelectorNode } from "$lib/components/dialog_manager/behavior_tree/core/SelectorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { BehaviorStatus } from "$lib/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
5
|
+
import type { ExpressionBehaviorNode } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode";
|
|
6
6
|
|
|
7
7
|
export class ExpressionSelectorNode extends SelectorNode<ExpressionArguments, ExpressionResult> {
|
|
8
8
|
constructor(nodeList: ExpressionBehaviorNode[]) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ExpressionBehaviorNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
3
|
-
import type { ExpressionResult } from "$
|
|
4
|
-
import { BehaviorStatus } from "$
|
|
5
|
-
import { btreeUtils } from "$
|
|
1
|
+
import type { ExpressionBehaviorNode } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$lib/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { BehaviorStatus } from "$lib/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
5
|
+
import { btreeUtils } from "$lib/components/dialog_manager/behavior_tree/core/BTreeUtils";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Puts the token as an operand
|