pixi-rainman-game-engine 0.3.38 → 0.3.39
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/Rainman/Rainman.js +1 -3
- package/dist/Rainman/appConfig.js +0 -1
- package/dist/Rainman/types.d.ts +0 -2
- package/dist/SettingsUI/components/CloseModalButton/index.jsx +0 -5
- package/dist/SettingsUI/components/UXSettings/index.jsx +0 -3
- package/dist/SettingsUI/components/index.d.ts +0 -1
- package/dist/SettingsUI/components/index.jsx +0 -1
- package/dist/SettingsUI/index.jsx +1 -6
- package/dist/application/ButtonsEventManager/ButtonsEventManager.d.ts +3 -17
- package/dist/application/ButtonsEventManager/ButtonsEventManager.js +62 -95
- package/dist/application/SoundManager/SoundManager.d.ts +6 -0
- package/dist/application/SoundManager/SoundManager.js +50 -21
- package/dist/application/SpeedState/SpeedLevelHandler.js +0 -2
- package/dist/application/setup.js +1 -1
- package/dist/components/AbstractBuyFreeSpins/AbstractBuyFreeSpinsPlate.js +1 -0
- package/dist/components/AbstractMainContainer/AbstractMainContainer.js +4 -1
- package/dist/controllers/AbstractController.d.ts +3 -4
- package/dist/controllers/AbstractController.js +22 -30
- package/dist/controllers/index.d.ts +0 -1
- package/dist/controllers/index.js +0 -1
- package/dist/localStorage/localStorage.d.ts +0 -1
- package/dist/localStorage/localStorage.js +0 -1
- package/dist/stores/SettingsStore.d.ts +3 -13
- package/dist/stores/SettingsStore.js +16 -23
- package/dist/utils/common/functions.d.ts +1 -1
- package/dist/utils/common/functions.js +2 -3
- package/dist/utils/common/sound.js +5 -8
- package/package.json +1 -1
- package/dist/SettingsUI/components/SpeedSettingsPopup/index.d.ts +0 -7
- package/dist/SettingsUI/components/SpeedSettingsPopup/index.jsx +0 -27
- package/dist/SettingsUI/components/SpeedSettingsPopup/speedSettingsPopup.css +0 -159
- package/dist/controllers/QuickStopController.d.ts +0 -54
- package/dist/controllers/QuickStopController.js +0 -86
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ButtonsEventManager } from "../application";
|
|
2
|
-
/**
|
|
3
|
-
* This controller is used to show the speed popup and handle quick stops
|
|
4
|
-
* After 4 quick stops, the speed popup will be shown.
|
|
5
|
-
* Number of quick spin can be adjusted in {@link MAX_QUICK_STOPS}
|
|
6
|
-
* @class QuickStopController
|
|
7
|
-
*/
|
|
8
|
-
export declare class QuickStopController {
|
|
9
|
-
private buttonsEventManager;
|
|
10
|
-
quickStopCounterLock: boolean;
|
|
11
|
-
shouldInvokeSpeedPopup: boolean;
|
|
12
|
-
speedPopupDisabled: boolean;
|
|
13
|
-
private quickStopsCounter;
|
|
14
|
-
constructor(buttonsEventManager: ButtonsEventManager);
|
|
15
|
-
/**
|
|
16
|
-
* Function for handling invoking speed popup
|
|
17
|
-
* This function will increment the quick stops counter and lock the counter if it reaches the maximum
|
|
18
|
-
* If the maximum is reached, it will set the flag to show the speed popup
|
|
19
|
-
* @public
|
|
20
|
-
* @returns {void}
|
|
21
|
-
*/
|
|
22
|
-
handleInvokingSpeedPopup(): void;
|
|
23
|
-
/**
|
|
24
|
-
* Function for handling speed popup invocation
|
|
25
|
-
* This function will set the visibility of the speed popup and reset the quick stop counter lock
|
|
26
|
-
* It will also disable the speed popup to prevent it from being shown again until the next
|
|
27
|
-
* quick stop counter reset
|
|
28
|
-
* @public
|
|
29
|
-
* @returns {void}
|
|
30
|
-
*/
|
|
31
|
-
handleSpeedPopupInvocation(): void;
|
|
32
|
-
/**
|
|
33
|
-
* Function for setting speed popup disabled state
|
|
34
|
-
* @public
|
|
35
|
-
* @param {boolean} value - whether the speed popup should be disabled
|
|
36
|
-
* @returns {void}
|
|
37
|
-
*/
|
|
38
|
-
setSpeedPopupDisabled(value: boolean): void;
|
|
39
|
-
/**
|
|
40
|
-
* Function for resetting the quick stops counter
|
|
41
|
-
* This function will reset the quick stops counter to 0 if the shouldReset parameter is true
|
|
42
|
-
* @public
|
|
43
|
-
* @param {boolean} shouldReset - whether the quick stops counter should be reset
|
|
44
|
-
* @returns {void}
|
|
45
|
-
*/
|
|
46
|
-
handleResetCounter(shouldReset: boolean): void;
|
|
47
|
-
/**
|
|
48
|
-
* Function for setting quick stop counter lock state
|
|
49
|
-
* @public
|
|
50
|
-
* @param {boolean} value - whether the quick stop counter should be locked
|
|
51
|
-
* @returns {void}
|
|
52
|
-
*/
|
|
53
|
-
setQuickStopCounterLock(value: boolean): void;
|
|
54
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { SPEED_LEVELS } from "../application";
|
|
2
|
-
import { RainMan } from "../Rainman";
|
|
3
|
-
const MAX_QUICK_STOPS = 4;
|
|
4
|
-
/**
|
|
5
|
-
* This controller is used to show the speed popup and handle quick stops
|
|
6
|
-
* After 4 quick stops, the speed popup will be shown.
|
|
7
|
-
* Number of quick spin can be adjusted in {@link MAX_QUICK_STOPS}
|
|
8
|
-
* @class QuickStopController
|
|
9
|
-
*/
|
|
10
|
-
export class QuickStopController {
|
|
11
|
-
buttonsEventManager;
|
|
12
|
-
quickStopCounterLock = false;
|
|
13
|
-
shouldInvokeSpeedPopup = false;
|
|
14
|
-
speedPopupDisabled = false;
|
|
15
|
-
quickStopsCounter = 0;
|
|
16
|
-
constructor(buttonsEventManager) {
|
|
17
|
-
this.buttonsEventManager = buttonsEventManager;
|
|
18
|
-
RainMan.globals.disableSpeedPopup = this.setSpeedPopupDisabled.bind(this);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Function for handling invoking speed popup
|
|
22
|
-
* This function will increment the quick stops counter and lock the counter if it reaches the maximum
|
|
23
|
-
* If the maximum is reached, it will set the flag to show the speed popup
|
|
24
|
-
* @public
|
|
25
|
-
* @returns {void}
|
|
26
|
-
*/
|
|
27
|
-
handleInvokingSpeedPopup() {
|
|
28
|
-
if (!this.quickStopCounterLock &&
|
|
29
|
-
this.quickStopsCounter < MAX_QUICK_STOPS &&
|
|
30
|
-
RainMan.settingsStore.currentSpeed !== SPEED_LEVELS.fast) {
|
|
31
|
-
this.quickStopCounterLock = true;
|
|
32
|
-
this.quickStopsCounter++;
|
|
33
|
-
if (this.quickStopsCounter === MAX_QUICK_STOPS) {
|
|
34
|
-
this.shouldInvokeSpeedPopup = true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Function for handling speed popup invocation
|
|
40
|
-
* This function will set the visibility of the speed popup and reset the quick stop counter lock
|
|
41
|
-
* It will also disable the speed popup to prevent it from being shown again until the next
|
|
42
|
-
* quick stop counter reset
|
|
43
|
-
* @public
|
|
44
|
-
* @returns {void}
|
|
45
|
-
*/
|
|
46
|
-
handleSpeedPopupInvocation() {
|
|
47
|
-
if (this.shouldInvokeSpeedPopup && !this.speedPopupDisabled && !RainMan.settingsStore.isFreeSpinsPlayEnabled) {
|
|
48
|
-
this.buttonsEventManager?.setSpeedPopupVisibility("flex");
|
|
49
|
-
RainMan.settingsStore.isSpeedModalShown = true;
|
|
50
|
-
this.buttonsEventManager.disableButtons();
|
|
51
|
-
this.shouldInvokeSpeedPopup = false;
|
|
52
|
-
this.speedPopupDisabled = true;
|
|
53
|
-
}
|
|
54
|
-
this.quickStopCounterLock = false;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Function for setting speed popup disabled state
|
|
58
|
-
* @public
|
|
59
|
-
* @param {boolean} value - whether the speed popup should be disabled
|
|
60
|
-
* @returns {void}
|
|
61
|
-
*/
|
|
62
|
-
setSpeedPopupDisabled(value) {
|
|
63
|
-
this.speedPopupDisabled = value;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Function for resetting the quick stops counter
|
|
67
|
-
* This function will reset the quick stops counter to 0 if the shouldReset parameter is true
|
|
68
|
-
* @public
|
|
69
|
-
* @param {boolean} shouldReset - whether the quick stops counter should be reset
|
|
70
|
-
* @returns {void}
|
|
71
|
-
*/
|
|
72
|
-
handleResetCounter(shouldReset) {
|
|
73
|
-
if (shouldReset) {
|
|
74
|
-
this.quickStopsCounter = 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Function for setting quick stop counter lock state
|
|
79
|
-
* @public
|
|
80
|
-
* @param {boolean} value - whether the quick stop counter should be locked
|
|
81
|
-
* @returns {void}
|
|
82
|
-
*/
|
|
83
|
-
setQuickStopCounterLock(value) {
|
|
84
|
-
this.quickStopCounterLock = value;
|
|
85
|
-
}
|
|
86
|
-
}
|