pixi-rainman-game-engine 0.1.35 → 0.1.36
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/types.d.ts
CHANGED
|
@@ -63,5 +63,6 @@ export type AppConfig = RequiredAppConfig & DeepPartial<OptionalAppConfig>;
|
|
|
63
63
|
export interface Globals {
|
|
64
64
|
currency: Currency;
|
|
65
65
|
disableSpeedPopup?: (value: boolean) => void;
|
|
66
|
+
handleDisablingButtons?: (value?: boolean) => void;
|
|
66
67
|
throttledSpin?: () => void;
|
|
67
68
|
}
|
|
@@ -263,6 +263,7 @@ export class ButtonsEventManager {
|
|
|
263
263
|
this.speedPopupShownAt = performance.now();
|
|
264
264
|
const spinSpeedSettingsLayer = window.document.getElementById(UI_ITEMS.speedSettings);
|
|
265
265
|
if (spinSpeedSettingsLayer !== null) {
|
|
266
|
+
RainMan.globals.handleDisablingButtons?.();
|
|
266
267
|
spinSpeedSettingsLayer.style.display = displayValue;
|
|
267
268
|
}
|
|
268
269
|
}
|
|
@@ -58,6 +58,7 @@ export class AbstractController {
|
|
|
58
58
|
this.uiController = new UiController(this.config);
|
|
59
59
|
this.componentRegistry = RainMan.componentRegistry;
|
|
60
60
|
this.setupSpaceOrEnterListener();
|
|
61
|
+
RainMan.globals.handleDisablingButtons = this.handleDisablingButtons.bind(this);
|
|
61
62
|
RainMan.settingsStore.increaseBet = () => this.uiController.updateBet("increase");
|
|
62
63
|
RainMan.settingsStore.decreaseBet = () => this.uiController.updateBet("decrease");
|
|
63
64
|
}
|
|
@@ -365,6 +366,7 @@ export class AbstractController {
|
|
|
365
366
|
const elementsToSkipHide = [];
|
|
366
367
|
if (performance.now() - this.buttonsEventManager.speedPopupShownAt <
|
|
367
368
|
RainMan.config.durationOfActions.speedPopupVisibleTime) {
|
|
369
|
+
RainMan.globals.handleDisablingButtons?.();
|
|
368
370
|
elementsToSkipHide.push(UI_ITEMS.speedSettings);
|
|
369
371
|
}
|
|
370
372
|
hideLayerIfPresent(elementsToSkipHide);
|
package/package.json
CHANGED