@open-slot-ui/pixi 0.1.1 → 0.2.0
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/index.cjs +2 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1511,7 +1511,7 @@ var TurboView = class extends ControlView {
|
|
|
1511
1511
|
} else {
|
|
1512
1512
|
this.art.addChild(this.bg);
|
|
1513
1513
|
}
|
|
1514
|
-
this.addChild(this.art
|
|
1514
|
+
this.addChild(this.art);
|
|
1515
1515
|
this.eventMode = "static";
|
|
1516
1516
|
this.cursor = "pointer";
|
|
1517
1517
|
this.hitArea = new Circle(0, 0, (this.sprite ? this.target / 2 : this.radius) + 8);
|
|
@@ -1526,7 +1526,6 @@ var TurboView = class extends ControlView {
|
|
|
1526
1526
|
turbo;
|
|
1527
1527
|
art = new Container();
|
|
1528
1528
|
bg = new Graphics();
|
|
1529
|
-
pips = new Graphics();
|
|
1530
1529
|
sprite;
|
|
1531
1530
|
tween;
|
|
1532
1531
|
modeTex;
|
|
@@ -1563,19 +1562,6 @@ var TurboView = class extends ControlView {
|
|
|
1563
1562
|
this.bg.circle(0, 0, r).fill({ color: lit ? th.color.accent : th.color.surface, alpha: lit ? Math.min(1, 0.55 + i * 0.25) : 1 }).stroke({ width: 4, color: th.color.accent });
|
|
1564
1563
|
this.bg.poly([-6, -r * 0.42, 8, -4, 0, -4, 7, r * 0.42, -9, 2, 0, 2]).fill({ color: lit ? th.color.accentText : th.color.accent, alpha: disabled ? 0.5 : 1 });
|
|
1565
1564
|
}
|
|
1566
|
-
this.pips.clear();
|
|
1567
|
-
const steps = this.turbo.modeCount - 1;
|
|
1568
|
-
if (steps >= 2) {
|
|
1569
|
-
const baseR = this.sprite ? this.target / 2 : this.radius;
|
|
1570
|
-
const gap = 16;
|
|
1571
|
-
const total = (steps - 1) * gap;
|
|
1572
|
-
const y = baseR + 14;
|
|
1573
|
-
for (let s = 0; s < steps; s++) {
|
|
1574
|
-
const x = -total / 2 + s * gap;
|
|
1575
|
-
const on = s < i;
|
|
1576
|
-
this.pips.circle(x, y, 5).fill({ color: on ? th.color.accent : th.color.surface, alpha: disabled ? 0.5 : 1 }).stroke({ width: 2, color: th.color.accent, alpha: disabled ? 0.5 : 1 });
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
1565
|
}
|
|
1580
1566
|
play(t) {
|
|
1581
1567
|
this.animating = true;
|
|
@@ -3927,7 +3913,7 @@ function mountHud(app, spec = {}, opts = {}) {
|
|
|
3927
3913
|
ui.showNotice(
|
|
3928
3914
|
[
|
|
3929
3915
|
{ kind: "heading", id: "buy-title", text: o.title ?? "openui.buyFeature.title" },
|
|
3930
|
-
{ kind: "
|
|
3916
|
+
{ kind: "text", id: "buy-body", text: o.message ?? "openui.buyFeature.message" }
|
|
3931
3917
|
],
|
|
3932
3918
|
[
|
|
3933
3919
|
{ label: o.cancelLabel ?? "openui.cancel", variant: "secondary" },
|