narrat 2.0.13-test → 2.1.1
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/dist/narrat.es.js +45 -43
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +79 -80
- package/dist/narrat.umd.js.map +1 -1
- package/dist/{assets/lib.d7c0f4e9.css → style.css} +0 -0
- package/package.json +5 -4
package/dist/narrat.es.js
CHANGED
|
@@ -443,16 +443,17 @@ function b3(t) {
|
|
|
443
443
|
let n = Math.floor(e / 3600), r = Math.floor((e - n * 3600) / 60), o = e - n * 3600 - r * 60;
|
|
444
444
|
return n < 10 && (n = "0" + n), r < 10 && (r = "0" + r), o < 10 && (o = "0" + o), n + ":" + r + ":" + o;
|
|
445
445
|
}
|
|
446
|
+
const fP = _r({
|
|
447
|
+
props: {
|
|
448
|
+
containerCssClass: String
|
|
449
|
+
}
|
|
450
|
+
});
|
|
446
451
|
const oo = (t, e) => {
|
|
447
452
|
const n = t.__vccOpts || t;
|
|
448
453
|
for (const [r, o] of e)
|
|
449
454
|
n[r] = o;
|
|
450
455
|
return n;
|
|
451
|
-
},
|
|
452
|
-
props: {
|
|
453
|
-
containerCssClass: String
|
|
454
|
-
}
|
|
455
|
-
}), dP = { class: "modal-header" }, hP = /* @__PURE__ */ ja(" default header "), pP = /* @__PURE__ */ Fe("hr", { class: "solid" }, null, -1), vP = { class: "modal-body" }, mP = /* @__PURE__ */ ja(" default body "), gP = { class: "modal-footer" };
|
|
456
|
+
}, dP = { class: "modal-header" }, hP = /* @__PURE__ */ ja(" default header "), pP = /* @__PURE__ */ Fe("hr", { class: "solid" }, null, -1), vP = { class: "modal-body" }, mP = /* @__PURE__ */ ja(" default body "), gP = { class: "modal-footer" };
|
|
456
457
|
function yP(t, e, n, r, o, i) {
|
|
457
458
|
return ot(), pr(a3, { name: "modal" }, {
|
|
458
459
|
default: vr(() => [
|
|
@@ -37092,7 +37093,8 @@ const UU = _r({
|
|
|
37092
37093
|
return this.data;
|
|
37093
37094
|
}
|
|
37094
37095
|
}
|
|
37095
|
-
})
|
|
37096
|
+
});
|
|
37097
|
+
const JU = { class: "debug-menu" }, GU = {
|
|
37096
37098
|
key: 0,
|
|
37097
37099
|
class: "debug-info"
|
|
37098
37100
|
}, KU = /* @__PURE__ */ Fe("h3", null, "Debug mode is ON", -1), QU = /* @__PURE__ */ Fe("ul", null, [
|
|
@@ -37239,8 +37241,7 @@ function wJ(t, e, n, r, o, i) {
|
|
|
37239
37241
|
}, 8, ["onClose"])) : or("", !0)
|
|
37240
37242
|
]);
|
|
37241
37243
|
}
|
|
37242
|
-
const kJ = /* @__PURE__ */ oo(UU, [["render", wJ]])
|
|
37243
|
-
const jJ = _r({
|
|
37244
|
+
const kJ = /* @__PURE__ */ oo(UU, [["render", wJ]]), jJ = _r({
|
|
37244
37245
|
data() {
|
|
37245
37246
|
return {};
|
|
37246
37247
|
},
|
|
@@ -37265,7 +37266,8 @@ const jJ = _r({
|
|
|
37265
37266
|
};
|
|
37266
37267
|
}
|
|
37267
37268
|
}
|
|
37268
|
-
})
|
|
37269
|
+
});
|
|
37270
|
+
const xJ = ["src"], _J = { class: "bold hud-text" }, SJ = /* @__PURE__ */ ja(": ");
|
|
37269
37271
|
function CJ(t, e, n, r, o, i) {
|
|
37270
37272
|
return ot(), yt("div", {
|
|
37271
37273
|
class: "hud",
|
|
@@ -37285,8 +37287,7 @@ function CJ(t, e, n, r, o, i) {
|
|
|
37285
37287
|
]))), 128))
|
|
37286
37288
|
], 4);
|
|
37287
37289
|
}
|
|
37288
|
-
const $J = /* @__PURE__ */ oo(jJ, [["render", CJ]])
|
|
37289
|
-
const OJ = _r({
|
|
37290
|
+
const $J = /* @__PURE__ */ oo(jJ, [["render", CJ]]), OJ = _r({
|
|
37290
37291
|
props: {
|
|
37291
37292
|
percentage: Number,
|
|
37292
37293
|
step: String
|
|
@@ -37299,7 +37300,8 @@ const OJ = _r({
|
|
|
37299
37300
|
}
|
|
37300
37301
|
},
|
|
37301
37302
|
computed: {}
|
|
37302
|
-
})
|
|
37303
|
+
});
|
|
37304
|
+
const AJ = { id: "loading-bar" }, EJ = { id: "loading-text" };
|
|
37303
37305
|
function PJ(t, e, n, r, o, i) {
|
|
37304
37306
|
return ot(), yt("div", AJ, [
|
|
37305
37307
|
Fe("div", {
|
|
@@ -37311,8 +37313,7 @@ function PJ(t, e, n, r, o, i) {
|
|
|
37311
37313
|
])
|
|
37312
37314
|
]);
|
|
37313
37315
|
}
|
|
37314
|
-
const TJ = /* @__PURE__ */ oo(OJ, [["render", PJ]])
|
|
37315
|
-
const MJ = _r({
|
|
37316
|
+
const TJ = /* @__PURE__ */ oo(OJ, [["render", PJ]]), MJ = _r({
|
|
37316
37317
|
data() {
|
|
37317
37318
|
},
|
|
37318
37319
|
methods: {},
|
|
@@ -37431,7 +37432,8 @@ const qJ = _r({
|
|
|
37431
37432
|
this.muted ? (wa.Howler.mute(!1), this.muted = !1) : (wa.Howler.mute(!0), this.muted = !0);
|
|
37432
37433
|
}
|
|
37433
37434
|
}
|
|
37434
|
-
})
|
|
37435
|
+
});
|
|
37436
|
+
const VJ = { class: "volume-controls" }, HJ = /* @__PURE__ */ Fe("label", {
|
|
37435
37437
|
for: "volume",
|
|
37436
37438
|
class: "volume-label"
|
|
37437
37439
|
}, "Volume", -1);
|
|
@@ -37452,8 +37454,7 @@ function WJ(t, e, n, r, o, i) {
|
|
|
37452
37454
|
}, null, 544)
|
|
37453
37455
|
]);
|
|
37454
37456
|
}
|
|
37455
|
-
const UJ = /* @__PURE__ */ oo(qJ, [["render", WJ]])
|
|
37456
|
-
const JJ = _r({
|
|
37457
|
+
const UJ = /* @__PURE__ */ oo(qJ, [["render", WJ]]), JJ = _r({
|
|
37457
37458
|
components: {
|
|
37458
37459
|
Modal: Nc,
|
|
37459
37460
|
VolumeControls: UJ
|
|
@@ -37481,7 +37482,8 @@ const JJ = _r({
|
|
|
37481
37482
|
computed: {
|
|
37482
37483
|
...Ii(On, ["playTime"])
|
|
37483
37484
|
}
|
|
37484
|
-
})
|
|
37485
|
+
});
|
|
37486
|
+
const GJ = /* @__PURE__ */ Fe("h3", { class: "title" }, "Menu", -1), KJ = { class: "menu-content" };
|
|
37485
37487
|
function QJ(t, e, n, r, o, i) {
|
|
37486
37488
|
const a = kr("VolumeControls"), s = kr("modal");
|
|
37487
37489
|
return ot(), pr(s, {
|
|
@@ -37509,8 +37511,7 @@ function QJ(t, e, n, r, o, i) {
|
|
|
37509
37511
|
_: 1
|
|
37510
37512
|
});
|
|
37511
37513
|
}
|
|
37512
|
-
const YJ = /* @__PURE__ */ oo(JJ, [["render", QJ]])
|
|
37513
|
-
const XJ = _r({
|
|
37514
|
+
const YJ = /* @__PURE__ */ oo(JJ, [["render", QJ]]), XJ = _r({
|
|
37514
37515
|
setup() {
|
|
37515
37516
|
const t = sr();
|
|
37516
37517
|
return { skills: jn(() => t.skills) };
|
|
@@ -37560,7 +37561,8 @@ const XJ = _r({
|
|
|
37560
37561
|
return qt().skillOptions.xpPerLevel;
|
|
37561
37562
|
}
|
|
37562
37563
|
}
|
|
37563
|
-
})
|
|
37564
|
+
});
|
|
37565
|
+
const ZJ = /* @__PURE__ */ Fe("h3", { class: "title" }, "Skills", -1), eG = {
|
|
37564
37566
|
key: 0,
|
|
37565
37567
|
class: "skills-container"
|
|
37566
37568
|
}, tG = ["onClick"], nG = { class: "skill-title" }, rG = { class: "skill-xp-container" }, oG = { class: "skill-xp-text" }, iG = { class: "skill-level" }, aG = { key: 1 }, sG = { class: "flex flex-row skill-description-container" }, uG = { class: "flex skill-left" }, cG = { class: "flex skill-right" }, lG = /* @__PURE__ */ Fe("hr", { class: "hr-solid" }, null, -1);
|
|
@@ -37616,8 +37618,7 @@ function fG(t, e, n, r, o, i) {
|
|
|
37616
37618
|
_: 1
|
|
37617
37619
|
});
|
|
37618
37620
|
}
|
|
37619
|
-
const dG = /* @__PURE__ */ oo(XJ, [["render", fG]])
|
|
37620
|
-
const hG = _r({
|
|
37621
|
+
const dG = /* @__PURE__ */ oo(XJ, [["render", fG]]), hG = _r({
|
|
37621
37622
|
setup() {
|
|
37622
37623
|
const t = Mr(), e = bo(), n = jn(() => t.items), r = jn(() => e.currentDialog.choices);
|
|
37623
37624
|
return { items: n, currentlyChoosing: r };
|
|
@@ -37684,7 +37685,8 @@ const hG = _r({
|
|
|
37684
37685
|
return qt().items;
|
|
37685
37686
|
}
|
|
37686
37687
|
}
|
|
37687
|
-
})
|
|
37688
|
+
});
|
|
37689
|
+
const pG = /* @__PURE__ */ Fe("h3", { class: "title" }, "Inventory", -1), vG = {
|
|
37688
37690
|
key: 0,
|
|
37689
37691
|
class: "inventory-container"
|
|
37690
37692
|
}, mG = ["onClick"], gG = { class: "item-title" }, yG = { class: "item-amount" }, bG = { key: 1 }, wG = { class: "flex flex-row item-description-container" }, kG = { class: "flex item-left" }, jG = { class: "flex item-right" }, xG = /* @__PURE__ */ Fe("hr", { class: "hr-solid" }, null, -1), _G = { key: 2 }, SG = /* @__PURE__ */ Fe("h2", null, "The inventory is empty!", -1), CG = [
|
|
@@ -37739,8 +37741,7 @@ function $G(t, e, n, r, o, i) {
|
|
|
37739
37741
|
_: 1
|
|
37740
37742
|
}, 8, ["onClose"]);
|
|
37741
37743
|
}
|
|
37742
|
-
const OG = /* @__PURE__ */ oo(hG, [["render", $G]])
|
|
37743
|
-
const AG = _r({
|
|
37744
|
+
const OG = /* @__PURE__ */ oo(hG, [["render", $G]]), AG = _r({
|
|
37744
37745
|
props: {
|
|
37745
37746
|
pictureUrl: String
|
|
37746
37747
|
},
|
|
@@ -37757,7 +37758,8 @@ const AG = _r({
|
|
|
37757
37758
|
};
|
|
37758
37759
|
}
|
|
37759
37760
|
}
|
|
37760
|
-
})
|
|
37761
|
+
});
|
|
37762
|
+
const EG = ["src"];
|
|
37761
37763
|
function PG(t, e, n, r, o, i) {
|
|
37762
37764
|
return ot(), yt("div", {
|
|
37763
37765
|
class: "dialog-picture override",
|
|
@@ -37769,8 +37771,7 @@ function PG(t, e, n, r, o, i) {
|
|
|
37769
37771
|
}, null, 8, EG)
|
|
37770
37772
|
], 4);
|
|
37771
37773
|
}
|
|
37772
|
-
const TG = /* @__PURE__ */ oo(AG, [["render", PG]])
|
|
37773
|
-
const MG = _r({
|
|
37774
|
+
const TG = /* @__PURE__ */ oo(AG, [["render", PG]]), MG = _r({
|
|
37774
37775
|
data() {
|
|
37775
37776
|
return {
|
|
37776
37777
|
playerText: "",
|
|
@@ -37874,7 +37875,8 @@ const MG = _r({
|
|
|
37874
37875
|
On().playerAnswered(t);
|
|
37875
37876
|
}
|
|
37876
37877
|
}
|
|
37877
|
-
})
|
|
37878
|
+
});
|
|
37879
|
+
const IG = { class: "dialog-content" }, NG = ["innerHTML"], LG = ["innerHTML"], RG = ["innerHTML"], DG = {
|
|
37878
37880
|
key: 1,
|
|
37879
37881
|
class: "dialog-choices"
|
|
37880
37882
|
}, zG = ["onClick", "innerHTML"], BG = { key: 2 }, FG = {
|
|
@@ -37935,8 +37937,7 @@ function qG(t, e, n, r, o, i) {
|
|
|
37935
37937
|
])
|
|
37936
37938
|
], 4);
|
|
37937
37939
|
}
|
|
37938
|
-
const VG = /* @__PURE__ */ oo(MG, [["render", qG]])
|
|
37939
|
-
const HG = /* @__PURE__ */ Fe("div", { class: "anchor" }, null, -1), WG = /* @__PURE__ */ _r({
|
|
37940
|
+
const VG = /* @__PURE__ */ oo(MG, [["render", qG]]), HG = /* @__PURE__ */ Fe("div", { class: "anchor" }, null, -1), WG = /* @__PURE__ */ _r({
|
|
37940
37941
|
__name: "game-dialog",
|
|
37941
37942
|
props: {
|
|
37942
37943
|
layoutMode: String,
|
|
@@ -38019,13 +38020,13 @@ const HG = /* @__PURE__ */ Fe("div", { class: "anchor" }, null, -1), WG = /* @__
|
|
|
38019
38020
|
], 4)) : or("", !0)
|
|
38020
38021
|
], 64));
|
|
38021
38022
|
}
|
|
38022
|
-
})
|
|
38023
|
+
});
|
|
38024
|
+
const o3 = (t, e) => {
|
|
38023
38025
|
const n = {};
|
|
38024
38026
|
for (const r in t)
|
|
38025
38027
|
e(t[r]) && (n[r] = t[r]);
|
|
38026
38028
|
return n;
|
|
38027
|
-
}
|
|
38028
|
-
const UG = _r({
|
|
38029
|
+
}, UG = _r({
|
|
38029
38030
|
setup() {
|
|
38030
38031
|
const t = Ur();
|
|
38031
38032
|
return { quests: jn(() => t.quests) };
|
|
@@ -38067,7 +38068,8 @@ const UG = _r({
|
|
|
38067
38068
|
components: {
|
|
38068
38069
|
Modal: Nc
|
|
38069
38070
|
}
|
|
38070
|
-
})
|
|
38071
|
+
});
|
|
38072
|
+
const JG = /* @__PURE__ */ Fe("h3", { class: "title" }, "Quests", -1), GG = {
|
|
38071
38073
|
key: 0,
|
|
38072
38074
|
class: "quests-container"
|
|
38073
38075
|
}, KG = { class: "quest-title" }, QG = { class: "quest-description" }, YG = {
|
|
@@ -38123,8 +38125,7 @@ function tK(t, e, n, r, o, i) {
|
|
|
38123
38125
|
_: 1
|
|
38124
38126
|
}, 8, ["onClose"]);
|
|
38125
38127
|
}
|
|
38126
|
-
const nK = /* @__PURE__ */ oo(UG, [["render", tK]])
|
|
38127
|
-
const rK = _r({
|
|
38128
|
+
const nK = /* @__PURE__ */ oo(UG, [["render", tK]]), rK = _r({
|
|
38128
38129
|
data() {
|
|
38129
38130
|
return {
|
|
38130
38131
|
buttons: [
|
|
@@ -38206,7 +38207,8 @@ const rK = _r({
|
|
|
38206
38207
|
return Object.entries(qt().quests).length > 0;
|
|
38207
38208
|
}
|
|
38208
38209
|
}
|
|
38209
|
-
})
|
|
38210
|
+
});
|
|
38211
|
+
const oK = { class: "menu-container" }, iK = ["onClick", "id"];
|
|
38210
38212
|
function aK(t, e, n, r, o, i) {
|
|
38211
38213
|
return ot(), yt("div", oK, [
|
|
38212
38214
|
(ot(!0), yt(Pr, null, Vr(t.buttonsToShow, (a) => (ot(), yt("button", {
|
|
@@ -38217,8 +38219,7 @@ function aK(t, e, n, r, o, i) {
|
|
|
38217
38219
|
}, gn(a.text), 9, iK))), 128))
|
|
38218
38220
|
]);
|
|
38219
38221
|
}
|
|
38220
|
-
const sK = /* @__PURE__ */ oo(rK, [["render", aK]])
|
|
38221
|
-
const uK = ["id"], cK = ["id", "onClick"], lK = /* @__PURE__ */ _r({
|
|
38222
|
+
const sK = /* @__PURE__ */ oo(rK, [["render", aK]]), uK = ["id"], cK = ["id", "onClick"], lK = /* @__PURE__ */ _r({
|
|
38222
38223
|
__name: "screen-layer",
|
|
38223
38224
|
props: {
|
|
38224
38225
|
layer: String
|
|
@@ -38446,7 +38447,8 @@ const dK = _r({
|
|
|
38446
38447
|
On().closeModal();
|
|
38447
38448
|
}
|
|
38448
38449
|
}
|
|
38449
|
-
})
|
|
38450
|
+
});
|
|
38451
|
+
const hK = {
|
|
38450
38452
|
key: 2,
|
|
38451
38453
|
id: "game-menu",
|
|
38452
38454
|
style: { height: "100%", padding: "20px" }
|
|
@@ -38760,7 +38762,7 @@ const jK = new st("add_level", [
|
|
|
38760
38762
|
return (e, n) => {
|
|
38761
38763
|
const r = t(e, n);
|
|
38762
38764
|
return n.command.staticOptions = {
|
|
38763
|
-
text: n.code
|
|
38765
|
+
text: n.code.substring(1, n.code.length - 2)
|
|
38764
38766
|
}, r;
|
|
38765
38767
|
};
|
|
38766
38768
|
}, UK = st.FromOptions({
|