@turnipxenon/pineapple 2.4.16 → 2.4.18
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 +61 -58
- package/.svelte-kit/__package__/index.d.ts +1 -0
- package/.svelte-kit/__package__/index.js +1 -0
- package/.svelte-kit/ambient.d.ts +0 -2
- package/.svelte-kit/generated/server/internal.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/docs/OverlaySpec.md +23 -23
- package/docs/PineappleFiberSpec.md +2 -2
- package/package.json +1 -1
- 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 +1 -1
- package/src/lib/index.ts +1 -0
- 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/routes/(pineapple)/pineapple/+page.svelte +16 -13
- package/src/routes/+error.svelte +1 -1
- package/src/routes/+layout.svelte +3 -3
- package/src/routes/ErrorYarn.ts +3 -3
package/.idea/workspace.xml
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
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="
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/pineapple/PineappleBaseLayout.svelte" afterDir="false" />
|
|
9
|
-
</list>
|
|
7
|
+
<list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Replace all $lib to $pkg" />
|
|
10
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
11
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
12
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -76,32 +74,32 @@
|
|
|
76
74
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
77
75
|
<option name="showLibraryContents" value="true" />
|
|
78
76
|
</component>
|
|
79
|
-
<component name="PropertiesComponent"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
77
|
+
<component name="PropertiesComponent">{
|
|
78
|
+
"keyToString": {
|
|
79
|
+
"DefaultHtmlFileTemplate": "HTML File",
|
|
80
|
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
|
81
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
82
|
+
"WebServerToolWindowFactoryState": "false",
|
|
83
|
+
"git-widget-placeholder": "turnip/dev",
|
|
84
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
85
|
+
"last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/scripts/pineapple_fiber",
|
|
86
|
+
"node.js.detected.package.eslint": "true",
|
|
87
|
+
"node.js.detected.package.tslint": "true",
|
|
88
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
89
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
90
|
+
"nodejs_interpreter_path": "node",
|
|
91
|
+
"nodejs_package_manager_path": "yarn",
|
|
92
|
+
"npm.build.executor": "Run",
|
|
93
|
+
"npm.dev (1).executor": "Run",
|
|
94
|
+
"npm.dev --open.executor": "Run",
|
|
95
|
+
"npm.dev offline.executor": "Run",
|
|
96
|
+
"npm.dev-offline.executor": "Run",
|
|
97
|
+
"npm.dev.executor": "Run",
|
|
98
|
+
"settings.editor.selected.configurable": "preferences.pluginManager",
|
|
99
|
+
"ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
|
|
100
|
+
"vue.rearranger.settings.migration": "true"
|
|
103
101
|
}
|
|
104
|
-
}
|
|
102
|
+
}</component>
|
|
105
103
|
<component name="RecentsManager">
|
|
106
104
|
<key name="CopyFile.RECENT_KEYS">
|
|
107
105
|
<recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\scripts\pineapple_fiber" />
|
|
@@ -205,31 +203,12 @@
|
|
|
205
203
|
<workItem from="1710623596666" duration="2298000" />
|
|
206
204
|
<workItem from="1710645881933" duration="8776000" />
|
|
207
205
|
<workItem from="1710721345686" duration="2025000" />
|
|
208
|
-
<workItem from="1710724001847" duration="
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
<
|
|
212
|
-
<
|
|
213
|
-
<
|
|
214
|
-
<option name="presentableId" value="LOCAL-00027" />
|
|
215
|
-
<option name="project" value="LOCAL" />
|
|
216
|
-
<updated>1709910109319</updated>
|
|
217
|
-
</task>
|
|
218
|
-
<task id="LOCAL-00028" summary="WIP carousel To be removed since it's distracting">
|
|
219
|
-
<option name="closed" value="true" />
|
|
220
|
-
<created>1709913016790</created>
|
|
221
|
-
<option name="number" value="00028" />
|
|
222
|
-
<option name="presentableId" value="LOCAL-00028" />
|
|
223
|
-
<option name="project" value="LOCAL" />
|
|
224
|
-
<updated>1709913016790</updated>
|
|
225
|
-
</task>
|
|
226
|
-
<task id="LOCAL-00029" summary="Add game section">
|
|
227
|
-
<option name="closed" value="true" />
|
|
228
|
-
<created>1709926810058</created>
|
|
229
|
-
<option name="number" value="00029" />
|
|
230
|
-
<option name="presentableId" value="LOCAL-00029" />
|
|
231
|
-
<option name="project" value="LOCAL" />
|
|
232
|
-
<updated>1709926810058</updated>
|
|
206
|
+
<workItem from="1710724001847" duration="13125000" />
|
|
207
|
+
<workItem from="1710825437247" duration="906000" />
|
|
208
|
+
<workItem from="1710914868232" duration="41000" />
|
|
209
|
+
<workItem from="1711051949931" duration="144000" />
|
|
210
|
+
<workItem from="1711052377810" duration="128000" />
|
|
211
|
+
<workItem from="1711090540281" duration="2384000" />
|
|
233
212
|
</task>
|
|
234
213
|
<task id="LOCAL-00030" summary="Migrate to skeleton 2.0">
|
|
235
214
|
<option name="closed" value="true" />
|
|
@@ -599,7 +578,31 @@
|
|
|
599
578
|
<option name="project" value="LOCAL" />
|
|
600
579
|
<updated>1710739937750</updated>
|
|
601
580
|
</task>
|
|
602
|
-
<
|
|
581
|
+
<task id="LOCAL-00076" summary="Add option to set default dialog behavior in Pineapple">
|
|
582
|
+
<option name="closed" value="true" />
|
|
583
|
+
<created>1710741953853</created>
|
|
584
|
+
<option name="number" value="00076" />
|
|
585
|
+
<option name="presentableId" value="LOCAL-00076" />
|
|
586
|
+
<option name="project" value="LOCAL" />
|
|
587
|
+
<updated>1710741953853</updated>
|
|
588
|
+
</task>
|
|
589
|
+
<task id="LOCAL-00077" summary="Export Card">
|
|
590
|
+
<option name="closed" value="true" />
|
|
591
|
+
<created>1711093190088</created>
|
|
592
|
+
<option name="number" value="00077" />
|
|
593
|
+
<option name="presentableId" value="LOCAL-00077" />
|
|
594
|
+
<option name="project" value="LOCAL" />
|
|
595
|
+
<updated>1711093190088</updated>
|
|
596
|
+
</task>
|
|
597
|
+
<task id="LOCAL-00078" summary="Replace all $lib to $pkg">
|
|
598
|
+
<option name="closed" value="true" />
|
|
599
|
+
<created>1711093944293</created>
|
|
600
|
+
<option name="number" value="00078" />
|
|
601
|
+
<option name="presentableId" value="LOCAL-00078" />
|
|
602
|
+
<option name="project" value="LOCAL" />
|
|
603
|
+
<updated>1711093944293</updated>
|
|
604
|
+
</task>
|
|
605
|
+
<option name="localTasksCounter" value="79" />
|
|
603
606
|
<servers />
|
|
604
607
|
</component>
|
|
605
608
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -657,9 +660,6 @@
|
|
|
657
660
|
</option>
|
|
658
661
|
</component>
|
|
659
662
|
<component name="VcsManagerConfiguration">
|
|
660
|
-
<MESSAGE value="Add unique class for Card" />
|
|
661
|
-
<MESSAGE value="Remove unnecessary files" />
|
|
662
|
-
<MESSAGE value="Fix accordion rounded border missing" />
|
|
663
663
|
<MESSAGE value="v2.4.6" />
|
|
664
664
|
<MESSAGE value="Extract styling out of Skeleton accordion" />
|
|
665
665
|
<MESSAGE value="Attempt to make postcss exportable" />
|
|
@@ -682,7 +682,10 @@
|
|
|
682
682
|
<MESSAGE value="2.4.14" />
|
|
683
683
|
<MESSAGE value="Run dialog parser in runtime" />
|
|
684
684
|
<MESSAGE value="Fix dialog layout to make it usable on hobby site" />
|
|
685
|
-
<
|
|
685
|
+
<MESSAGE value="Add option to set default dialog behavior in Pineapple" />
|
|
686
|
+
<MESSAGE value="Export Card" />
|
|
687
|
+
<MESSAGE value="Replace all $lib to $pkg" />
|
|
688
|
+
<option name="LAST_COMMIT_MESSAGE" value="Replace all $lib to $pkg" />
|
|
686
689
|
</component>
|
|
687
690
|
<component name="XDebuggerManager">
|
|
688
691
|
<breakpoint-manager>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
|
|
2
2
|
export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
|
|
3
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
4
|
+
export { default as Card } from "./components/Card.svelte";
|
|
4
5
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
5
6
|
export * from "./components/dialog_manager/DialogManager";
|
|
6
7
|
export * from "./components/dialog_manager/DialogUtils";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
|
|
2
2
|
export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
|
|
3
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
4
|
+
export { default as Card } from "./components/Card.svelte";
|
|
4
5
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
5
6
|
export * from "./components/dialog_manager/DialogManager";
|
|
6
7
|
export * from "./components/dialog_manager/DialogUtils";
|
package/.svelte-kit/ambient.d.ts
CHANGED
|
@@ -46,7 +46,6 @@ declare module '$env/static/private' {
|
|
|
46
46
|
export const HOMEDRIVE: string;
|
|
47
47
|
export const HOMEPATH: string;
|
|
48
48
|
export const IDEA_INITIAL_DIRECTORY: string;
|
|
49
|
-
export const IJ_RESTARTER_LOG: string;
|
|
50
49
|
export const INIT_CWD: string;
|
|
51
50
|
export const JAVA_HOME: string;
|
|
52
51
|
export const LOCALAPPDATA: string;
|
|
@@ -240,7 +239,6 @@ declare module '$env/dynamic/private' {
|
|
|
240
239
|
HOMEDRIVE: string;
|
|
241
240
|
HOMEPATH: string;
|
|
242
241
|
IDEA_INITIAL_DIRECTORY: string;
|
|
243
|
-
IJ_RESTARTER_LOG: string;
|
|
244
242
|
INIT_CWD: string;
|
|
245
243
|
JAVA_HOME: string;
|
|
246
244
|
LOCALAPPDATA: string;
|
|
@@ -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: "1lwpjw0"
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export async function get_hooks() {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
|
|
2
2
|
export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
|
|
3
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
4
|
+
export { default as Card } from "./components/Card.svelte";
|
|
4
5
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
5
6
|
export * from "./components/dialog_manager/DialogManager";
|
|
6
7
|
export * from "./components/dialog_manager/DialogUtils";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as PineappleLayoutBase } from "./components/pineapple/PineappleBaseLayout.svelte";
|
|
2
2
|
export { default as SeaweedTemplate } from "./template/SeaweedTemplate.svelte";
|
|
3
3
|
export { default as LazyAsset } from "./components/LazyAsset.svelte";
|
|
4
|
+
export { default as Card } from "./components/Card.svelte";
|
|
4
5
|
export * from "./components/dialog_manager/DialogManagerStore";
|
|
5
6
|
export * from "./components/dialog_manager/DialogManager";
|
|
6
7
|
export * from "./components/dialog_manager/DialogUtils";
|
package/docs/OverlaySpec.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# Overlay Spec
|
|
2
|
-
|
|
3
|
-
**What are the things that can appear on top of the normal content?**
|
|
4
|
-
|
|
5
|
-
- Toast
|
|
6
|
-
- Modal
|
|
7
|
-
- Dialog
|
|
8
|
-
- Choices
|
|
9
|
-
- Backstage
|
|
10
|
-
- Preferences
|
|
11
|
-
- Optional: Dialog??
|
|
12
|
-
|
|
13
|
-
**Which one appears on top?**
|
|
14
|
-
|
|
15
|
-
- Toast
|
|
16
|
-
- Modal
|
|
17
|
-
- blocks access on anything below
|
|
18
|
-
- Backstage
|
|
19
|
-
- blocks access on anything below
|
|
20
|
-
- Dialog: choices
|
|
21
|
-
- blocks access on anything below
|
|
22
|
-
- Dialog
|
|
23
|
-
- Everything else
|
|
1
|
+
# Overlay Spec
|
|
2
|
+
|
|
3
|
+
**What are the things that can appear on top of the normal content?**
|
|
4
|
+
|
|
5
|
+
- Toast
|
|
6
|
+
- Modal
|
|
7
|
+
- Dialog
|
|
8
|
+
- Choices
|
|
9
|
+
- Backstage
|
|
10
|
+
- Preferences
|
|
11
|
+
- Optional: Dialog??
|
|
12
|
+
|
|
13
|
+
**Which one appears on top?**
|
|
14
|
+
|
|
15
|
+
- Toast
|
|
16
|
+
- Modal
|
|
17
|
+
- blocks access on anything below
|
|
18
|
+
- Backstage
|
|
19
|
+
- blocks access on anything below
|
|
20
|
+
- Dialog: choices
|
|
21
|
+
- blocks access on anything below
|
|
22
|
+
- Dialog
|
|
23
|
+
- Everything else
|
|
@@ -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 "$pkg/store";
|
|
316
|
+
import { PortraitType } from "$pkg/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.18",
|
|
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 "$pkg/assets/characters/ares/ares_happy.webp";
|
|
3
3
|
import { onMount } from "svelte";
|
|
4
4
|
|
|
5
|
-
import { dialogManager } from "$
|
|
5
|
+
import { dialogManager } from "$pkg/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 "$pkg/components/LazyAssetType";
|
|
3
|
+
import BgTiledAres from "$pkg/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 { generatedDailySeed, mulberry32Generator } from "$
|
|
3
|
-
import BgTiledAres from "$
|
|
4
|
-
import BgTiledCorn from "$
|
|
5
|
-
import BgTiledPineapple from "$
|
|
6
|
-
import BgTiledReinhard from "$
|
|
7
|
-
import BgTiledTomato from "$
|
|
8
|
-
import BgTiledTurnip from "$
|
|
9
|
-
import RandomizedImage from "$
|
|
2
|
+
import { generatedDailySeed, mulberry32Generator } from "$pkg/util/stable_random";
|
|
3
|
+
import BgTiledAres from "$pkg/assets/bg_tiled/bg_tiled_ares.png";
|
|
4
|
+
import BgTiledCorn from "$pkg/assets/bg_tiled/bg_tiled_corn.png";
|
|
5
|
+
import BgTiledPineapple from "$pkg/assets/bg_tiled/bg_tiled_pineapple.png";
|
|
6
|
+
import BgTiledReinhard from "$pkg/assets/bg_tiled/bg_tiled_reinhard.png";
|
|
7
|
+
import BgTiledTomato from "$pkg/assets/bg_tiled/bg_tiled_tomato.png";
|
|
8
|
+
import BgTiledTurnip from "$pkg/assets/bg_tiled/bg_tiled_turnip.png";
|
|
9
|
+
import RandomizedImage from "$pkg/components/RandomizedImage.svelte";
|
|
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 "$pkg/types/pineapple_fiber/DialogVariableStore";
|
|
7
|
+
import { createNewMapStore } from "$pkg/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 "$pkg/types/pineapple_fiber/DialogDetail";
|
|
10
|
+
import { DialogManager } from "$pkg/components/dialog_manager/DialogManager";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Enables the dialogue overlay
|
|
@@ -16,7 +16,7 @@ import { DialogManager } from "$lib/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 "$pkg/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 "$pkg/types/pineapple_fiber/DialogDetail";
|
|
2
|
+
import { BehaviorState } from "$pkg/components/dialog_manager/behavior_tree/line_processors/BehaviorState";
|
|
3
|
+
import { IfNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/IfNode";
|
|
4
|
+
import { EndIfNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/EndIfNode";
|
|
5
|
+
import { ElseNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/ElseNode";
|
|
6
|
+
import { ElseIfNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/ElseIfNode";
|
|
7
|
+
import { SetVariableNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/SetVariableNode";
|
|
8
|
+
import { IgnoreGuardNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/IgnoreGuardNode";
|
|
9
|
+
import { NormalLineProcessorNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/NormalLineProcessorNode";
|
|
10
|
+
import { LineSelectorNode } from "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/line_processors/LineCommentNode";
|
|
13
|
+
import { DeclareCommand } from "$pkg/components/dialog_manager/behavior_tree/line_processors/commands/DeclareCommand";
|
|
14
|
+
import { JumpCommand } from "$pkg/components/dialog_manager/behavior_tree/line_processors/commands/JumpCommand";
|
|
15
|
+
import { IgnoreJumpNode } from "$pkg/components/dialog_manager/behavior_tree/line_processors/IgnoreJumpNode";
|
|
16
|
+
import { UnvisitCommand } from "$pkg/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 "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/core/BehaviorNode";
|
|
2
|
+
import { BehaviorStatus } from "$pkg/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
3
|
+
import type { BaseBehaviorResult } from "$pkg/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 "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/core/BehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/expression/OperatorNode";
|
|
3
|
+
import { OperandNode } from "$pkg/components/dialog_manager/behavior_tree/expression/OperandNode";
|
|
4
|
+
import { ExpressionSelectorNode } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionSelectorNode";
|
|
5
|
+
import type { ExpressionState } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionState";
|
|
6
|
+
import { btreeUtils } from "$pkg/components/dialog_manager/behavior_tree/core/BTreeUtils";
|
|
7
|
+
import { CommandExpressionNode } from "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/core/BaseBehaviorResult";
|
|
2
|
+
import type { ExpressionState } from "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/core/SelectorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { BehaviorStatus } from "$pkg/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
5
|
+
import type { ExpressionBehaviorNode } from "$pkg/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 "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { BehaviorStatus } from "$pkg/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
5
|
+
import { btreeUtils } from "$pkg/components/dialog_manager/behavior_tree/core/BTreeUtils";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Puts the token as an operand
|
|
@@ -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 { operatorMap } from "$
|
|
1
|
+
import type { ExpressionBehaviorNode } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { BehaviorStatus } from "$pkg/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
5
|
+
import { operatorMap } from "$pkg/components/dialog_manager/behavior_tree/expression/operators/OperatorMap";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A leaf node that returns:
|
package/src/lib/components/dialog_manager/behavior_tree/expression/commands/CommandExpressionNode.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ExpressionBehaviorNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
3
|
-
import type { ExpressionResult } from "$
|
|
4
|
-
import { commandMap } from "$
|
|
5
|
-
import { BehaviorStatus } from "$
|
|
1
|
+
import type { ExpressionBehaviorNode } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { commandMap } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/CommandMap";
|
|
5
|
+
import { BehaviorStatus } from "$pkg/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
6
6
|
|
|
7
7
|
export class CommandExpressionNode implements ExpressionBehaviorNode {
|
|
8
8
|
process(nodeArgs: ExpressionArguments): ExpressionResult {
|
package/src/lib/components/dialog_manager/behavior_tree/expression/commands/CommandLogicNode.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ExpressionBehaviorNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
3
|
-
import type { ExpressionResult } from "$
|
|
4
|
-
import { BehaviorStatus } from "$
|
|
1
|
+
import type { ExpressionBehaviorNode } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionBehaviorNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import type { ExpressionResult } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionResult";
|
|
4
|
+
import { BehaviorStatus } from "$pkg/components/dialog_manager/behavior_tree/core/BehaviorStatus";
|
|
5
5
|
|
|
6
6
|
export abstract class CommandLogicNode implements ExpressionBehaviorNode {
|
|
7
7
|
abstract getToken: () => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CommandLogicNode } from "$
|
|
2
|
-
import { RandomRangeCommand } from "$
|
|
3
|
-
import { VisitedCountCommand } from "$
|
|
4
|
-
import { VisitedCommand } from "$
|
|
1
|
+
import type { CommandLogicNode } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/CommandLogicNode";
|
|
2
|
+
import { RandomRangeCommand } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/RandomRangeCommand";
|
|
3
|
+
import { VisitedCountCommand } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/VisitedCountCommand";
|
|
4
|
+
import { VisitedCommand } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/VisitedCommand";
|
|
5
5
|
|
|
6
6
|
class CommandMap {
|
|
7
7
|
_commandMap: Map<string, CommandLogicNode> = new Map();
|
package/src/lib/components/dialog_manager/behavior_tree/expression/commands/RandomRangeCommand.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommandLogicNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
1
|
+
import { CommandLogicNode } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/CommandLogicNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Used for command like
|
package/src/lib/components/dialog_manager/behavior_tree/expression/commands/VisitedCommand.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommandLogicNode } from "$
|
|
2
|
-
import type { ExpressionArguments } from "$
|
|
3
|
-
import { VisitedCountCommand } from "$
|
|
1
|
+
import { CommandLogicNode } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/CommandLogicNode";
|
|
2
|
+
import type { ExpressionArguments } from "$pkg/components/dialog_manager/behavior_tree/expression/ExpressionArguments";
|
|
3
|
+
import { VisitedCountCommand } from "$pkg/components/dialog_manager/behavior_tree/expression/commands/VisitedCountCommand";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Used for command like
|