@open-slot-ui/pixi 0.3.0 → 0.3.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/index.cjs +0 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3415,22 +3415,6 @@ var OpenUIPixi = class {
|
|
|
3415
3415
|
const dialog = new DialogView(this.ui.noticePanel, this.ui.noticeBlocks, this.ui.noticeActions, this.ui, ticker, { controlSkins: this.opts.controlSkins });
|
|
3416
3416
|
this.root.addChild(dialog);
|
|
3417
3417
|
this.overlays.push(dialog);
|
|
3418
|
-
const vignette = new pixi_js.Graphics();
|
|
3419
|
-
vignette.zIndex = -1;
|
|
3420
|
-
this.root.addChild(vignette);
|
|
3421
|
-
this.overlays.push({
|
|
3422
|
-
applyLayout: (s) => {
|
|
3423
|
-
const r = 200 * s.scale;
|
|
3424
|
-
vignette.clear();
|
|
3425
|
-
for (let i = 0; i < 14; i++) {
|
|
3426
|
-
const t = i / 14;
|
|
3427
|
-
vignette.circle(0, 0, r * (1 - t)).fill({ color: 0, alpha: 0.5 / 14 });
|
|
3428
|
-
}
|
|
3429
|
-
},
|
|
3430
|
-
dispose: () => {
|
|
3431
|
-
if (!vignette.destroyed) vignette.destroy();
|
|
3432
|
-
}
|
|
3433
|
-
});
|
|
3434
3418
|
const replayBadge = new pixi_js.Container();
|
|
3435
3419
|
const replayBg = new pixi_js.Graphics();
|
|
3436
3420
|
const replayText = new pixi_js.Text({ text: this.ui.t("openui.replay").toUpperCase(), style: { fontFamily: this.ui.theme.type.family, fontSize: 16, fontWeight: "800", fill: 16777215, letterSpacing: 2 } });
|