pixi-rainman-game-engine 0.3.36 → 0.3.37
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/application/ButtonsEventManager/ButtonsEventManager.js +1 -5
- package/dist/components/AbstractBuyFreeSpins/AbstractBuyFreeSpinsPlate.d.ts +8 -8
- package/dist/components/AbstractMainContainer/AbstractMainContainer.js +3 -0
- package/dist/connectivity/spinData.d.ts +3 -1
- package/dist/connectivity/spinData.js +2 -0
- package/package.json +1 -1
|
@@ -157,11 +157,7 @@ export class ButtonsEventManager {
|
|
|
157
157
|
const animatedBackground = RainMan.componentRegistry.get(Background.registryName);
|
|
158
158
|
animatedBackground.eventMode = "static";
|
|
159
159
|
animatedBackground.addListener("pointerdown", () => {
|
|
160
|
-
|
|
161
|
-
!RainMan.settingsStore.isAutoplayEnabled &&
|
|
162
|
-
!RainMan.settingsStore.isFreeSpinsPlayEnabled) {
|
|
163
|
-
this.enableButtons();
|
|
164
|
-
}
|
|
160
|
+
hideLayerIfPresent();
|
|
165
161
|
});
|
|
166
162
|
}
|
|
167
163
|
/**
|
|
@@ -7,8 +7,8 @@ export type BuyFreeSpinConfig = {
|
|
|
7
7
|
};
|
|
8
8
|
export type BuyFreeSpinState = "selection" | "confirmation";
|
|
9
9
|
export declare abstract class AbstractBuyFreeSpinsPlate extends Container {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
protected buyType: BuyType;
|
|
11
|
+
protected state: BuyFreeSpinState;
|
|
12
12
|
protected selectedOption?: BuyFreeSpinOption;
|
|
13
13
|
protected readonly config: BuyFreeSpinConfig;
|
|
14
14
|
protected selectionPlate?: Sprite;
|
|
@@ -18,9 +18,9 @@ export declare abstract class AbstractBuyFreeSpinsPlate extends Container {
|
|
|
18
18
|
protected declineButton?: AcceptDeclineButton;
|
|
19
19
|
protected selectionPlateTexture: string;
|
|
20
20
|
protected confirmationPlateTexture: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
protected readonly onContinueCallback: () => void;
|
|
22
|
+
protected readonly resizeHandler: () => void;
|
|
23
|
+
protected handleClose: () => void;
|
|
24
24
|
protected constructor(onContinue: () => void, config: BuyFreeSpinConfig, buyType: BuyType);
|
|
25
25
|
init(): void;
|
|
26
26
|
private createElements;
|
|
@@ -39,8 +39,8 @@ export declare abstract class AbstractBuyFreeSpinsPlate extends Container {
|
|
|
39
39
|
protected abstract positionConfirmationScreen(): void;
|
|
40
40
|
protected onCleanup(): void;
|
|
41
41
|
protected onBuyButtonClick(option: BuyFreeSpinOption): void;
|
|
42
|
-
|
|
42
|
+
protected onAcceptClick(option: BuyFreeSpinOption): Promise<void>;
|
|
43
43
|
private renderState;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
protected onDeclineClick(): void;
|
|
45
|
+
protected cleanup(): void;
|
|
46
46
|
}
|
|
@@ -557,6 +557,7 @@ export class AbstractMainContainer extends Container {
|
|
|
557
557
|
});
|
|
558
558
|
if (this.gambleGame) {
|
|
559
559
|
this.removeChild(this.gambleGame);
|
|
560
|
+
this.messageBox.visible = true;
|
|
560
561
|
RainMan.settingsStore.isGambleGameActive = false;
|
|
561
562
|
this._controller.updateGambleValues(RainMan.settingsStore.gambleGameWin);
|
|
562
563
|
this.gambleGame = null;
|
|
@@ -913,6 +914,8 @@ export class AbstractMainContainer extends Container {
|
|
|
913
914
|
this._buyFreeSpinsPlate.resize();
|
|
914
915
|
}
|
|
915
916
|
if (this.gambleGame) {
|
|
917
|
+
this.gambleGame.parentLayer = UXLayer;
|
|
918
|
+
this.messageBox.visible = false;
|
|
916
919
|
this.gambleGame.resize();
|
|
917
920
|
this.addChild(this.gambleGame);
|
|
918
921
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Nullable } from "utils";
|
|
1
2
|
import { ApiConfig } from "../application";
|
|
2
|
-
import { SpinDataInterface } from "./serverData";
|
|
3
|
+
import { ExtraData, SpinDataInterface } from "./serverData";
|
|
3
4
|
/**
|
|
4
5
|
* Class representing the spin data.
|
|
5
6
|
* @class SpinData
|
|
@@ -9,6 +10,7 @@ export declare class SpinData {
|
|
|
9
10
|
private readonly rawData;
|
|
10
11
|
private readonly config;
|
|
11
12
|
balanceAfterSpin: number;
|
|
13
|
+
extraData: Nullable<ExtraData>;
|
|
12
14
|
constructor(config: ApiConfig, data: SpinDataInterface);
|
|
13
15
|
/**
|
|
14
16
|
* Get the raw spin data from the backend server
|
|
@@ -7,10 +7,12 @@ export class SpinData {
|
|
|
7
7
|
rawData;
|
|
8
8
|
config;
|
|
9
9
|
balanceAfterSpin;
|
|
10
|
+
extraData;
|
|
10
11
|
constructor(config, data) {
|
|
11
12
|
this.rawData = data;
|
|
12
13
|
this.config = config;
|
|
13
14
|
this.balance = data.balance;
|
|
15
|
+
this.extraData = data.extra_data;
|
|
14
16
|
this.balanceAfterSpin = data.future_balance_prediction;
|
|
15
17
|
if (data.action !== "spin" && data.action !== "buy" && data.action !== "mini-game") {
|
|
16
18
|
throw new Error(`Invalid type "${data.action}" provided, "spin" or "buy" expected`);
|
package/package.json
CHANGED