@turnipxenon/pineapple 2.4.18 → 2.4.20
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 +29 -34
- package/.svelte-kit/__package__/app.postcss +4 -0
- 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 +7 -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/app.postcss +4 -0
- package/dist/components/Card.svelte +3 -0
- package/dist/components/RandomizedBackground.svelte +2 -2
- package/dist/components/pineapple/PineappleBaseLayout.svelte +7 -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/app.postcss +4 -0
- 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 +11 -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,10 @@
|
|
|
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="
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="v2.4.19">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/src/lib/app.postcss" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/app.postcss" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" afterDir="false" />
|
|
10
|
+
</list>
|
|
8
11
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
13
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -115,6 +118,9 @@
|
|
|
115
118
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(pineapple)" />
|
|
116
119
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\routes\(seaweed)" />
|
|
117
120
|
</key>
|
|
121
|
+
<key name="es6.move.members.recent.items">
|
|
122
|
+
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\util\util.ts" />
|
|
123
|
+
</key>
|
|
118
124
|
</component>
|
|
119
125
|
<component name="RunManager" selected="npm.dev --open">
|
|
120
126
|
<configuration name="dev --open" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
|
@@ -208,23 +214,7 @@
|
|
|
208
214
|
<workItem from="1710914868232" duration="41000" />
|
|
209
215
|
<workItem from="1711051949931" duration="144000" />
|
|
210
216
|
<workItem from="1711052377810" duration="128000" />
|
|
211
|
-
<workItem from="1711090540281" duration="
|
|
212
|
-
</task>
|
|
213
|
-
<task id="LOCAL-00030" summary="Migrate to skeleton 2.0">
|
|
214
|
-
<option name="closed" value="true" />
|
|
215
|
-
<created>1709928538758</created>
|
|
216
|
-
<option name="number" value="00030" />
|
|
217
|
-
<option name="presentableId" value="LOCAL-00030" />
|
|
218
|
-
<option name="project" value="LOCAL" />
|
|
219
|
-
<updated>1709928538758</updated>
|
|
220
|
-
</task>
|
|
221
|
-
<task id="LOCAL-00031" summary="Add web scraper for thumbnails and more projects">
|
|
222
|
-
<option name="closed" value="true" />
|
|
223
|
-
<created>1709953967323</created>
|
|
224
|
-
<option name="number" value="00031" />
|
|
225
|
-
<option name="presentableId" value="LOCAL-00031" />
|
|
226
|
-
<option name="project" value="LOCAL" />
|
|
227
|
-
<updated>1709953967323</updated>
|
|
217
|
+
<workItem from="1711090540281" duration="5170000" />
|
|
228
218
|
</task>
|
|
229
219
|
<task id="LOCAL-00032" summary="Fix import error">
|
|
230
220
|
<option name="closed" value="true" />
|
|
@@ -602,7 +592,23 @@
|
|
|
602
592
|
<option name="project" value="LOCAL" />
|
|
603
593
|
<updated>1711093944293</updated>
|
|
604
594
|
</task>
|
|
605
|
-
<
|
|
595
|
+
<task id="LOCAL-00079" summary="Refactor all util functions into util/util">
|
|
596
|
+
<option name="closed" value="true" />
|
|
597
|
+
<created>1711096111508</created>
|
|
598
|
+
<option name="number" value="00079" />
|
|
599
|
+
<option name="presentableId" value="LOCAL-00079" />
|
|
600
|
+
<option name="project" value="LOCAL" />
|
|
601
|
+
<updated>1711096111508</updated>
|
|
602
|
+
</task>
|
|
603
|
+
<task id="LOCAL-00080" summary="v2.4.19">
|
|
604
|
+
<option name="closed" value="true" />
|
|
605
|
+
<created>1711096300621</created>
|
|
606
|
+
<option name="number" value="00080" />
|
|
607
|
+
<option name="presentableId" value="LOCAL-00080" />
|
|
608
|
+
<option name="project" value="LOCAL" />
|
|
609
|
+
<updated>1711096300622</updated>
|
|
610
|
+
</task>
|
|
611
|
+
<option name="localTasksCounter" value="81" />
|
|
606
612
|
<servers />
|
|
607
613
|
</component>
|
|
608
614
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -640,7 +646,7 @@
|
|
|
640
646
|
<entry key="branch">
|
|
641
647
|
<value>
|
|
642
648
|
<list>
|
|
643
|
-
<option value="turnip/
|
|
649
|
+
<option value="turnip/dev" />
|
|
644
650
|
</list>
|
|
645
651
|
</value>
|
|
646
652
|
</entry>
|
|
@@ -660,8 +666,6 @@
|
|
|
660
666
|
</option>
|
|
661
667
|
</component>
|
|
662
668
|
<component name="VcsManagerConfiguration">
|
|
663
|
-
<MESSAGE value="v2.4.6" />
|
|
664
|
-
<MESSAGE value="Extract styling out of Skeleton accordion" />
|
|
665
669
|
<MESSAGE value="Attempt to make postcss exportable" />
|
|
666
670
|
<MESSAGE value="Change lib to pkg to prevent the references from breaking from downstream apps" />
|
|
667
671
|
<MESSAGE value="Add data-nosnippet" />
|
|
@@ -685,17 +689,8 @@
|
|
|
685
689
|
<MESSAGE value="Add option to set default dialog behavior in Pineapple" />
|
|
686
690
|
<MESSAGE value="Export Card" />
|
|
687
691
|
<MESSAGE value="Replace all $lib to $pkg" />
|
|
688
|
-
<
|
|
689
|
-
|
|
690
|
-
|
|
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>
|
|
692
|
+
<MESSAGE value="Refactor all util functions into util/util" />
|
|
693
|
+
<MESSAGE value="v2.4.19" />
|
|
694
|
+
<option name="LAST_COMMIT_MESSAGE" value="v2.4.19" />
|
|
700
695
|
</component>
|
|
701
696
|
</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 { fade } 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:fade>
|
|
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:fade>{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
|
}
|
|
@@ -183,26 +165,12 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
183
165
|
display: flex;
|
|
184
166
|
align-items: center;
|
|
185
167
|
justify-content: center;
|
|
186
|
-
|
|
187
|
-
|
|
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));
|
|
168
|
+
margin: 0.1em;
|
|
196
169
|
}
|
|
197
170
|
|
|
198
171
|
.crumb-separator {
|
|
199
172
|
display: flex;
|
|
200
|
-
|
|
201
|
-
color: rgb(var(--color-surface-700));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.dark .crumb-separator {
|
|
205
|
-
color: rgb(var(--color-surface-200));
|
|
173
|
+
color: var(--color-text-50);
|
|
206
174
|
}
|
|
207
175
|
|
|
208
176
|
/* === 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: "1old5ki"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
package/dist/app.postcss
CHANGED
|
@@ -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 { fade } 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:fade>
|
|
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:fade>{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
|
}
|
|
@@ -183,26 +165,12 @@ enableDialogueOverlay.set(showDialogByDefault);
|
|
|
183
165
|
display: flex;
|
|
184
166
|
align-items: center;
|
|
185
167
|
justify-content: center;
|
|
186
|
-
|
|
187
|
-
|
|
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));
|
|
168
|
+
margin: 0.1em;
|
|
196
169
|
}
|
|
197
170
|
|
|
198
171
|
.crumb-separator {
|
|
199
172
|
display: flex;
|
|
200
|
-
|
|
201
|
-
color: rgb(var(--color-surface-700));
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.dark .crumb-separator {
|
|
205
|
-
color: rgb(var(--color-surface-200));
|
|
173
|
+
color: var(--color-text-50);
|
|
206
174
|
}
|
|
207
175
|
|
|
208
176
|
/* === 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.20",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite dev",
|
|
7
7
|
"build": "npm run check-requirements && vite build && yarn package",
|
package/src/lib/app.postcss
CHANGED
|
@@ -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;
|