pixi-rainman-game-engine 0.0.6 → 0.1.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/ComponentRegistry/ComponentRegistry.d.ts +1 -0
- package/dist/ComponentRegistry/ComponentRegistry.js +4 -0
- package/dist/ComponentRegistry/types.d.ts +7 -7
- package/dist/ComponentRegistry/types.js +1 -1
- package/dist/DescribedPlayableAction/DescribedPlayableAction.d.ts +1 -1
- package/dist/Money/MoneyText.js +2 -2
- package/dist/Rainman/Rainman.js +2 -2
- package/dist/Rainman/appConfig.js +4 -3
- package/dist/Rainman/types.d.ts +1 -0
- package/dist/SettingsUI/SystemSettings/SystemSettingsComponent.d.ts +3 -0
- package/dist/SettingsUI/SystemSettings/SystemSettingsComponent.jsx +17 -0
- package/dist/SettingsUI/SystemSettings/systemSettings.css +35 -0
- package/dist/SettingsUI/components/AutoplaySettings/autoplaySettings.css +267 -0
- package/dist/SettingsUI/components/AutoplaySettings/index.d.ts +6 -0
- package/dist/SettingsUI/components/AutoplaySettings/index.jsx +121 -0
- package/dist/SettingsUI/components/Bet/bet.css +71 -0
- package/dist/SettingsUI/components/Bet/index.d.ts +5 -0
- package/dist/SettingsUI/components/Bet/index.jsx +21 -0
- package/dist/SettingsUI/components/BuyFreeSpins/buyFreeSpin.css +46 -0
- package/dist/SettingsUI/components/BuyFreeSpins/index.d.ts +3 -0
- package/dist/SettingsUI/components/BuyFreeSpins/index.jsx +25 -0
- package/dist/SettingsUI/components/CloseModalButton/closeModalButton.css +20 -0
- package/dist/SettingsUI/components/CloseModalButton/index.d.ts +8 -0
- package/dist/SettingsUI/components/CloseModalButton/index.jsx +13 -0
- package/dist/SettingsUI/components/GameRules/data.d.ts +3 -0
- package/dist/SettingsUI/components/GameRules/data.js +7 -0
- package/dist/SettingsUI/components/GameRules/gameRules.css +96 -0
- package/dist/SettingsUI/components/GameRules/index.d.ts +6 -0
- package/dist/SettingsUI/components/GameRules/index.jsx +41 -0
- package/dist/SettingsUI/components/OptionButton/index.d.ts +3 -0
- package/dist/SettingsUI/components/OptionButton/index.jsx +40 -0
- package/dist/SettingsUI/components/OptionButton/types.d.ts +7 -0
- package/dist/SettingsUI/components/OptionButton/types.js +1 -0
- package/dist/SettingsUI/components/RichLimitingSlider/index.d.ts +13 -0
- package/dist/SettingsUI/components/RichLimitingSlider/index.jsx +26 -0
- package/dist/SettingsUI/components/RichLimitingSlider/richLimitingSlider.css +39 -0
- package/dist/SettingsUI/components/SlidingSwitch/index.d.ts +10 -0
- package/dist/SettingsUI/components/SlidingSwitch/index.jsx +10 -0
- package/dist/SettingsUI/components/SlidingSwitch/slidingSwitch.css +126 -0
- package/dist/SettingsUI/components/SpeedSettingsPopup/index.d.ts +7 -0
- package/dist/SettingsUI/components/SpeedSettingsPopup/index.jsx +27 -0
- package/dist/SettingsUI/components/SpeedSettingsPopup/speedSettingsPopup.css +119 -0
- package/dist/SettingsUI/components/SpeedSwitchButton/index.d.ts +4 -0
- package/dist/SettingsUI/components/SpeedSwitchButton/index.jsx +19 -0
- package/dist/SettingsUI/components/SwitchWithHeader/headerStyle.css +28 -0
- package/dist/SettingsUI/components/SwitchWithHeader/index.d.ts +10 -0
- package/dist/SettingsUI/components/SwitchWithHeader/index.jsx +23 -0
- package/dist/SettingsUI/components/SwitchWithHeader/types.d.ts +14 -0
- package/dist/SettingsUI/components/SwitchWithHeader/types.js +1 -0
- package/dist/SettingsUI/components/SymbolMultiplierPopup/index.d.ts +5 -0
- package/dist/SettingsUI/components/SymbolMultiplierPopup/index.jsx +58 -0
- package/dist/SettingsUI/components/SymbolMultiplierPopup/symbolPopup.css +96 -0
- package/dist/SettingsUI/components/UXSettings/UXSettings.css +28 -0
- package/dist/SettingsUI/components/UXSettings/index.d.ts +5 -0
- package/dist/SettingsUI/components/UXSettings/index.jsx +30 -0
- package/dist/SettingsUI/components/VolumeSettings/index.d.ts +6 -0
- package/dist/SettingsUI/components/VolumeSettings/index.jsx +46 -0
- package/dist/SettingsUI/components/VolumeSettings/volume.css +54 -0
- package/dist/SettingsUI/components/index.d.ts +12 -0
- package/dist/SettingsUI/components/index.jsx +12 -0
- package/dist/SettingsUI/hooks/index.d.ts +2 -0
- package/dist/SettingsUI/hooks/index.js +2 -0
- package/dist/SettingsUI/hooks/useBuyFreeSpins/index.d.ts +2 -0
- package/dist/SettingsUI/hooks/useBuyFreeSpins/index.js +2 -0
- package/dist/SettingsUI/hooks/useBuyFreeSpins/types.d.ts +4 -0
- package/dist/SettingsUI/hooks/useBuyFreeSpins/types.js +1 -0
- package/dist/SettingsUI/hooks/useBuyFreeSpins/useBuyFreeSpins.d.ts +2 -0
- package/dist/SettingsUI/hooks/useBuyFreeSpins/useBuyFreeSpins.js +12 -0
- package/dist/SettingsUI/hooks/useStore.d.ts +5 -0
- package/dist/SettingsUI/hooks/useStore.js +7 -0
- package/dist/SettingsUI/index.css +150 -0
- package/dist/SettingsUI/index.d.ts +3 -0
- package/dist/SettingsUI/index.jsx +30 -0
- package/dist/application/ApiConfig/ApiConfig.d.ts +7 -4
- package/dist/application/ApiConfig/ApiConfig.js +14 -5
- package/dist/application/ButtonsEventManager/ButtonsEventManager.js +6 -8
- package/dist/application/SoundManager/SoundManager.js +3 -3
- package/dist/application/SoundManager/types.d.ts +5 -6
- package/dist/application/SoundManager/types.js +5 -6
- package/dist/application/SpinLogic/util.d.ts +1 -1
- package/dist/application/SpinLogic/util.js +5 -5
- package/dist/application/TimedActions/IncentiveComponent.js +1 -1
- package/dist/application/index.d.ts +1 -0
- package/dist/application/index.js +1 -0
- package/dist/application/setup.d.ts +1 -0
- package/dist/application/setup.js +22 -0
- package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.d.ts +1 -2
- package/dist/components/AbstractFreeSpinContainer/AbstractFreeSpinContainer.js +3 -5
- package/dist/components/AbstractMainContainer/AbstractMainContainer.d.ts +9 -9
- package/dist/components/AbstractMainContainer/AbstractMainContainer.js +20 -8
- package/dist/components/buttons/BaseButton/BaseButton.d.ts +1 -2
- package/dist/components/buttons/BaseButton/BaseButton.js +0 -3
- package/dist/components/buttons/BaseButton/types.d.ts +8 -1
- package/dist/components/buttons/BaseButton/types.js +1 -1
- package/dist/components/buttons/buttonGroups/AbstractLeftButtons.d.ts +5 -5
- package/dist/components/buttons/buttonGroups/AbstractLeftButtons.js +15 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsLandscape.js +2 -0
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsMobile.d.ts +3 -4
- package/dist/components/buttons/buttonGroups/AbstractLeftButtonsMobile.js +9 -0
- package/dist/components/buttons/buttonGroups/AbstractMiddleButtons.d.ts +5 -6
- package/dist/components/buttons/buttonGroups/AbstractMiddleButtons.js +10 -1
- package/dist/components/buttons/buttonGroups/AbstractRightButtons.d.ts +8 -8
- package/dist/components/buttons/buttonGroups/AbstractRightButtons.js +18 -1
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsLandscape.d.ts +6 -8
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsLandscape.js +15 -1
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsMobile.d.ts +5 -6
- package/dist/components/buttons/buttonGroups/AbstractRightButtonsMobile.js +11 -0
- package/dist/components/buttons/{AutoplayButton → default}/AutoplayButton.d.ts +3 -2
- package/dist/components/buttons/default/AutoplayButton.js +39 -0
- package/dist/components/buttons/default/InfoButton.d.ts +5 -0
- package/dist/components/buttons/default/InfoButton.js +17 -0
- package/dist/components/buttons/default/MoreButton.d.ts +5 -0
- package/dist/components/buttons/default/MoreButton.js +17 -0
- package/dist/components/buttons/default/NegButton.d.ts +5 -0
- package/dist/components/buttons/default/NegButton.js +15 -0
- package/dist/components/buttons/default/PlusButton.d.ts +5 -0
- package/dist/components/buttons/default/PlusButton.js +19 -0
- package/dist/components/buttons/default/RefreshButton.d.ts +15 -0
- package/dist/components/buttons/default/RefreshButton.js +93 -0
- package/dist/components/buttons/{SpeedControlButton → default}/SpeedControlButton.d.ts +1 -1
- package/dist/components/buttons/default/SpeedControlButton.js +24 -0
- package/dist/components/buttons/default/SpinConfirmationButton.d.ts +5 -0
- package/dist/components/buttons/default/SpinConfirmationButton.js +13 -0
- package/dist/components/buttons/default/VolumeButton.d.ts +8 -0
- package/dist/components/buttons/{VolumeButton → default}/VolumeButton.js +14 -3
- package/dist/components/buttons/default/index.d.ts +9 -0
- package/dist/components/buttons/default/index.js +9 -0
- package/dist/components/buttons/index.d.ts +1 -4
- package/dist/components/buttons/index.js +1 -4
- package/dist/components/buttons/registrynames.d.ts +1 -0
- package/dist/components/buttons/registrynames.js +1 -0
- package/dist/components/common/Background.js +5 -5
- package/dist/components/{buttons/FreeSpinBox → common}/FreeSpinBox.d.ts +1 -1
- package/dist/components/{buttons/FreeSpinBox → common}/FreeSpinBox.js +4 -4
- package/dist/components/common/LogoStatic.d.ts +6 -0
- package/dist/components/common/LogoStatic.js +19 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/components/common/index.js +2 -0
- package/dist/components/dictionary/i18n.d.ts +2 -1
- package/dist/components/dictionary/i18n.js +3 -2
- package/dist/components/dictionary/locales/en.json +47 -24
- package/dist/components/dictionary/locales/index.d.ts +2 -2
- package/dist/components/dictionary/locales/index.js +2 -2
- package/dist/components/frame/AbstractColumnsContainer.d.ts +3 -5
- package/dist/components/frame/AbstractColumnsContainer.js +4 -6
- package/dist/components/frame/AbstractFrame.d.ts +8 -5
- package/dist/components/frame/AbstractFrame.js +23 -9
- package/dist/components/frame/AbstractInnerFrame.d.ts +1 -1
- package/dist/components/frame/AbstractInnerFrame.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/messageBox/MessageBox.d.ts +3 -2
- package/dist/components/messageBox/MessageBox.js +13 -10
- package/dist/components/symbols/AbstractSymbolBase.d.ts +9 -9
- package/dist/components/symbols/AbstractSymbolBase.js +14 -16
- package/dist/components/symbols/AbstractSymbolsColumn.d.ts +5 -4
- package/dist/components/symbols/AbstractSymbolsColumn.js +10 -23
- package/dist/components/updatable/StylefulUpdatableText.d.ts +2 -2
- package/dist/components/updatable/StylefulUpdatableText.js +2 -1
- package/dist/components/updatable/UpdatableTextComponent.d.ts +1 -1
- package/dist/components/updatable/UpdatableTextComponent.js +3 -3
- package/dist/components/winLineIndicator/WinLineIndicator.d.ts +3 -5
- package/dist/components/winLineIndicator/WinLineIndicator.js +5 -7
- package/dist/connectivity/ConnectionWrapper.d.ts +2 -1
- package/dist/connectivity/ConnectionWrapper.js +16 -2
- package/dist/connectivity/LocalConnectionWrapper.d.ts +1 -0
- package/dist/connectivity/LocalConnectionWrapper.js +20 -0
- package/dist/connectivity/apiQueue.d.ts +1 -1
- package/dist/connectivity/serverConnection.d.ts +1 -0
- package/dist/connectivity/serverData.d.ts +14 -6
- package/dist/connectivity/transformation.d.ts +6 -1
- package/dist/controllers/AbstractController.d.ts +12 -10
- package/dist/controllers/AbstractController.js +18 -8
- package/dist/controllers/UiController.d.ts +3 -3
- package/dist/controllers/UiController.js +4 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/loading/AbstractLoadingContainer.d.ts +12 -0
- package/dist/loading/AbstractLoadingContainer.js +22 -0
- package/dist/loading/SpriteLoadingContainer.js +3 -2
- package/dist/loading/index.d.ts +1 -0
- package/dist/loading/index.js +1 -0
- package/dist/stores/SettingsStore.d.ts +2 -0
- package/dist/stores/SettingsStore.js +6 -2
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.js +1 -0
- package/dist/utils/assets/assetGetter.d.ts +3 -0
- package/dist/utils/assets/assetGetter.js +14 -1
- package/dist/utils/common/functions.js +3 -3
- package/dist/utils/common/logger.d.ts +4 -4
- package/dist/utils/common/logger.js +7 -12
- package/dist/utils/common/screenHelpers.d.ts +1 -0
- package/dist/utils/common/screenHelpers.js +7 -0
- package/dist/utils/common/uiItems.d.ts +4 -5
- package/dist/utils/common/uiItems.js +3 -4
- package/dist/winComponents/winFactory.d.ts +2 -2
- package/package.json +14 -3
- package/dist/components/buttons/AutoplayButton/AutoplayButton.js +0 -21
- package/dist/components/buttons/AutoplayButton/index.d.ts +0 -1
- package/dist/components/buttons/AutoplayButton/index.js +0 -1
- package/dist/components/buttons/FreeSpinBox/index.d.ts +0 -1
- package/dist/components/buttons/FreeSpinBox/index.js +0 -1
- package/dist/components/buttons/SpeedControlButton/SpeedControlButton.js +0 -16
- package/dist/components/buttons/SpeedControlButton/index.d.ts +0 -1
- package/dist/components/buttons/SpeedControlButton/index.js +0 -1
- package/dist/components/buttons/VolumeButton/VolumeButton.d.ts +0 -8
- package/dist/components/buttons/VolumeButton/index.d.ts +0 -1
- package/dist/components/buttons/VolumeButton/index.js +0 -1
- package/dist/loading/LoadingContainer.d.ts +0 -10
- package/dist/loading/LoadingContainer.js +0 -34
|
@@ -18,6 +18,7 @@ export declare class ComponentRegistry {
|
|
|
18
18
|
remove(component: Container): void;
|
|
19
19
|
updateAllSpeedAdaptable(speedLevel: SpeedLevel): void;
|
|
20
20
|
get<T extends keyof RegistryMap>(componentName: T): RegistryMap[T];
|
|
21
|
+
getIfExists<T extends keyof RegistryMap>(componentName: T): RegistryMap[T];
|
|
21
22
|
has<T extends keyof RegistryMap>(componentName: T): boolean;
|
|
22
23
|
addMany(components: Container[]): void;
|
|
23
24
|
removeMany(components: Container[]): void;
|
|
@@ -85,6 +85,10 @@ export class ComponentRegistry {
|
|
|
85
85
|
}
|
|
86
86
|
return componentToReturn;
|
|
87
87
|
}
|
|
88
|
+
getIfExists(componentName) {
|
|
89
|
+
const componentToReturn = this.registry.get(componentName);
|
|
90
|
+
return componentToReturn;
|
|
91
|
+
}
|
|
88
92
|
has(componentName) {
|
|
89
93
|
return this.registry.has(componentName);
|
|
90
94
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractColumnsContainer, AbstractFrame, AbstractInnerFrame, AutoplayButton, Background, BaseButton, BUTTONS, COMPONENTS, FreeSpinBox, MessageBox, SpeedControlButton, StylefulUpdatableText, UpdatableTextComponent, UpdatableValueComponent, VolumeButton } from "../components";
|
|
1
|
+
import { AbstractColumnsContainer, AbstractFrame, AbstractInnerFrame, AutoplayButton, Background, BaseButton, BUTTONS, COMPONENTS, FreeSpinBox, InfoButton, MessageBox, MoreButton, NegButton, PlusButton, RefreshButton, SpeedControlButton, StylefulUpdatableText, UpdatableTextComponent, UpdatableValueComponent, VolumeButton } from "../components";
|
|
2
2
|
export interface RegistryMap {
|
|
3
3
|
[MessageBox.autoSpinTextRegistryName]: UpdatableValueComponent;
|
|
4
4
|
[MessageBox.currentWinTextRegistryName]: UpdatableTextComponent;
|
|
@@ -8,15 +8,15 @@ export interface RegistryMap {
|
|
|
8
8
|
[Background.registryName]: Background;
|
|
9
9
|
[VolumeButton.registryName]: VolumeButton;
|
|
10
10
|
[AutoplayButton.registryName]: AutoplayButton;
|
|
11
|
-
[FreeSpinBox.registryName]
|
|
11
|
+
[FreeSpinBox.registryName]?: FreeSpinBox;
|
|
12
12
|
[AbstractFrame.registryName]: AbstractFrame;
|
|
13
13
|
[AbstractInnerFrame.registryName]: AbstractInnerFrame;
|
|
14
14
|
[AbstractColumnsContainer.registryName]: AbstractColumnsContainer;
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
15
|
+
[RefreshButton.registryName]: RefreshButton;
|
|
16
|
+
[PlusButton.registryName]: PlusButton;
|
|
17
|
+
[NegButton.registryName]: NegButton;
|
|
18
|
+
[InfoButton.registryName]: InfoButton;
|
|
19
|
+
[MoreButton.registryName]: MoreButton;
|
|
20
20
|
[BUTTONS.gamble]: BaseButton;
|
|
21
21
|
[COMPONENTS.betText]: UpdatableTextComponent;
|
|
22
22
|
[COMPONENTS.creditText]: UpdatableTextComponent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { AbstractColumnsContainer, AbstractFrame, AbstractInnerFrame, AutoplayButton, Background, BUTTONS, COMPONENTS, FreeSpinBox, MessageBox, SpeedControlButton, VolumeButton, } from "../components";
|
|
1
|
+
import { AbstractColumnsContainer, AbstractFrame, AbstractInnerFrame, AutoplayButton, Background, BUTTONS, COMPONENTS, FreeSpinBox, InfoButton, MessageBox, MoreButton, NegButton, PlusButton, RefreshButton, SpeedControlButton, VolumeButton, } from "../components";
|
package/dist/Money/MoneyText.js
CHANGED
|
@@ -3,9 +3,9 @@ import { RainMan } from "../Rainman";
|
|
|
3
3
|
export class MoneyText {
|
|
4
4
|
money;
|
|
5
5
|
constructor(amount) {
|
|
6
|
-
this.money = Money.fromDecimal(amount, RainMan.config
|
|
6
|
+
this.money = Money.fromDecimal(amount, RainMan.config.currency, Math.round);
|
|
7
7
|
}
|
|
8
8
|
toString() {
|
|
9
|
-
return `${this.money} ${RainMan.config.currency}`;
|
|
9
|
+
return `${this.money} ${RainMan.config.currency.symbol_native}`;
|
|
10
10
|
}
|
|
11
11
|
}
|
package/dist/Rainman/Rainman.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../components/dictionary/i18n";
|
|
2
2
|
import { merge } from "lodash";
|
|
3
3
|
import { ComponentRegistry } from "../ComponentRegistry";
|
|
4
|
-
import {
|
|
4
|
+
import { settingStore } from "../SettingsUI/hooks";
|
|
5
5
|
import { defaultAppConfig } from "./appConfig";
|
|
6
6
|
export class RainMan {
|
|
7
7
|
static app;
|
|
@@ -16,7 +16,7 @@ export class RainMan {
|
|
|
16
16
|
RainMan.config = merge(defaultAppConfig, config);
|
|
17
17
|
RainMan.symbolIds = symbolIds;
|
|
18
18
|
RainMan.winTypeIds = winTypeIds;
|
|
19
|
-
RainMan.settingsStore =
|
|
19
|
+
RainMan.settingsStore = settingStore;
|
|
20
20
|
RainMan.componentRegistry = new ComponentRegistry(app);
|
|
21
21
|
RainMan.spinLogicFactory = spinLogicFactory;
|
|
22
22
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Color } from "pixi.js";
|
|
2
2
|
import { Currencies } from "ts-money";
|
|
3
3
|
export const defaultAppConfig = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
gameWidth: 1920,
|
|
5
|
+
gameHeight: 1080,
|
|
6
6
|
idleTimeout: 10000,
|
|
7
7
|
fontSize: 35,
|
|
8
|
+
mobileFontSize: 45,
|
|
8
9
|
fontColor: new Color(0xfbd400).toHex(),
|
|
9
10
|
updatableTextValueColor: new Color(0xffffff).toHex(),
|
|
10
11
|
fontFace: "HelveticaNeueLTStd",
|
|
@@ -15,7 +16,7 @@ export const defaultAppConfig = {
|
|
|
15
16
|
timeToSpeedUp: 200,
|
|
16
17
|
timeToSlowDown: 10,
|
|
17
18
|
symbolDropDownTime: 500,
|
|
18
|
-
wiggleTweenDuration:
|
|
19
|
+
wiggleTweenDuration: 400,
|
|
19
20
|
balloonFlyUpTime: 500,
|
|
20
21
|
timeToSetResults: 10,
|
|
21
22
|
bigWinDuration: 2000,
|
package/dist/Rainman/types.d.ts
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./systemSettings.css";
|
|
2
|
+
import i18next from "i18next";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { UI_ITEMS } from "../../utils";
|
|
5
|
+
import { BetComponent, CloseModalButton, UXSettings } from "../components";
|
|
6
|
+
export const SystemSettingsComponent = () => {
|
|
7
|
+
return (<div className="settings">
|
|
8
|
+
<div className="settings__title">
|
|
9
|
+
<h2>{i18next.t("systemSettings")}</h2>
|
|
10
|
+
</div>
|
|
11
|
+
<CloseModalButton layerId={UI_ITEMS.settings}/>
|
|
12
|
+
<div className="settings__column">
|
|
13
|
+
<BetComponent />
|
|
14
|
+
<UXSettings />
|
|
15
|
+
</div>
|
|
16
|
+
</div>);
|
|
17
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.settings__title {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.settings {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
height: 90%;
|
|
11
|
+
align-items: center;
|
|
12
|
+
width: 90%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.settings__title h2 {
|
|
16
|
+
color: #ec5e27;
|
|
17
|
+
margin: 0px;
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
text-transform: uppercase;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.settings__column {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: row;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
align-items: center;
|
|
27
|
+
height: 100%;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media only screen and (max-width: 900px) {
|
|
32
|
+
.settings__column {
|
|
33
|
+
flex-direction: column-reverse;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
.autoplay-settings {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 90%;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: 70%;
|
|
7
|
+
max-width: 800px;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.autoplay-settings__title {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.autoplay-settings__exit {
|
|
18
|
+
font-size: 30px;
|
|
19
|
+
color: white;
|
|
20
|
+
position: absolute;
|
|
21
|
+
right: 30px;
|
|
22
|
+
top: 15px;
|
|
23
|
+
background-color: #00000000;
|
|
24
|
+
border-style: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.autoplay-settings__title h2 {
|
|
28
|
+
color: #ec5e27;
|
|
29
|
+
margin: 0px;
|
|
30
|
+
text-decoration: underline;
|
|
31
|
+
text-transform: uppercase;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.autoplay-settings__sliders {
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.autoplay-settings__switch {
|
|
39
|
+
width: 300px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.autoplay-settings__column {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
overflow: auto;
|
|
46
|
+
align-items: center;
|
|
47
|
+
height: 100%;
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.autoplay-settings__switches {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
align-items: center;
|
|
56
|
+
width: 100%;
|
|
57
|
+
margin: 10px 0px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.autoplay-settings__stop-limits {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 50px;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.autoplay-settings__limit {
|
|
69
|
+
width: 40px;
|
|
70
|
+
border: solid 2px white;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
font-size: 20px;
|
|
75
|
+
font-weight: bolder;
|
|
76
|
+
margin: 0px 5px;
|
|
77
|
+
color: white;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.autoplay-settings__limit:hover {
|
|
81
|
+
background-color: #fdf42525;
|
|
82
|
+
border: 2px solid #fdf425;
|
|
83
|
+
color: #fdf425;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.autoplay-settings__limit--active {
|
|
87
|
+
background-color: #fdf42550;
|
|
88
|
+
border: 2px solid #fdf425;
|
|
89
|
+
color: #fdf425;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.autoplay-settings__limit--infinity {
|
|
93
|
+
border: 2px solid #5a5a5aad;
|
|
94
|
+
color: #5a5a5aad;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.left {
|
|
98
|
+
border-radius: 34px 0px 0px 34px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.right {
|
|
102
|
+
border-radius: 0px 34px 34px 0px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.middle {
|
|
106
|
+
width: 60px;
|
|
107
|
+
border-radius: 0px 0px 0px 0px;
|
|
108
|
+
background-color: #00000000;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.circle {
|
|
112
|
+
border-radius: 34px;
|
|
113
|
+
font-size: 40px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.autoplay-settings__limit.circle p {
|
|
117
|
+
position: relative;
|
|
118
|
+
top: -4px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.autoplay-settings__limit.left p {
|
|
122
|
+
position: relative;
|
|
123
|
+
top: -2px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.autoplay-settings__limit.right p {
|
|
127
|
+
position: relative;
|
|
128
|
+
top: -2px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.autoplay-settings__confirmation {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: row;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
align-items: center;
|
|
136
|
+
width: 100%;
|
|
137
|
+
margin-top: 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.autoplay-settings__confirmation-button {
|
|
141
|
+
margin: 10px 0px 10px 10px;
|
|
142
|
+
width: 100px;
|
|
143
|
+
height: 40px;
|
|
144
|
+
border: solid white 2px;
|
|
145
|
+
background-color: black;
|
|
146
|
+
border-radius: 34px;
|
|
147
|
+
font-size: large;
|
|
148
|
+
font-weight: bold;
|
|
149
|
+
color: white;
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
align-items: center;
|
|
153
|
+
margin: 0px 10px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.autoplay-settings__confirmation-button:hover {
|
|
157
|
+
background-color: #fdf42550;
|
|
158
|
+
border: 2px solid #fdf425;
|
|
159
|
+
color: #fdf425;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@media only screen and (max-width: 900px) {
|
|
163
|
+
.autoplay-settings {
|
|
164
|
+
width: 90%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.autoplay-settings__column {
|
|
168
|
+
flex-direction: column-reverse;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.autoplay-settings__switches {
|
|
172
|
+
width: 100%;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.autoplay-settings__switch {
|
|
177
|
+
width: 250px;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
margin: 5px 0px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.left {
|
|
183
|
+
width: 40px;
|
|
184
|
+
border-radius: 34px 0px 0px 34px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.right {
|
|
188
|
+
width: 40px;
|
|
189
|
+
border-radius: 0px 34px 34px 0px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.middle {
|
|
193
|
+
width: 70px;
|
|
194
|
+
font-size: 12px;
|
|
195
|
+
border-radius: 0px 0px 0px 0px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.circle {
|
|
199
|
+
border-radius: 34px;
|
|
200
|
+
font-size: 40px;
|
|
201
|
+
width: 30px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.autoplay-settings__stop-limits {
|
|
205
|
+
height: 35px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.autoplay-settings__limit.circle p {
|
|
209
|
+
position: relative;
|
|
210
|
+
top: -4px;
|
|
211
|
+
font-size: 20px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.autoplay-settings__limit.left p {
|
|
215
|
+
position: relative;
|
|
216
|
+
top: -2px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.autoplay-settings__limit.right p {
|
|
220
|
+
position: relative;
|
|
221
|
+
top: -2px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.autoplay-settings__confirmation {
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-direction: row;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
align-items: center;
|
|
229
|
+
width: 100%;
|
|
230
|
+
margin-top: 0px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.left {
|
|
234
|
+
border-radius: 34px 0px 0px 34px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.right {
|
|
238
|
+
border-radius: 0px 34px 34px 0px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.middle {
|
|
242
|
+
width: 60px;
|
|
243
|
+
border-radius: 0px 0px 0px 0px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.circle {
|
|
247
|
+
border-radius: 34px;
|
|
248
|
+
font-size: 40px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.autoplay-settings__limit.circle p {
|
|
252
|
+
top: -2px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.autoplay-settings__limit.left p {
|
|
256
|
+
top: -2px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.autoplay-settings__limit.right p {
|
|
260
|
+
top: -2px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.autoplay-settings__exit {
|
|
264
|
+
right: -10px;
|
|
265
|
+
top: 10px;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import "react-custom-scroll/dist/customScroll.css";
|
|
2
|
+
import "./autoplaySettings.css";
|
|
3
|
+
import i18next from "i18next";
|
|
4
|
+
import { observer } from "mobx-react-lite";
|
|
5
|
+
import React, { useEffect, useState } from "react";
|
|
6
|
+
import { COMPONENTS } from "../../../components";
|
|
7
|
+
import { UI_ITEMS } from "../../../utils";
|
|
8
|
+
import { useStores } from "../../hooks";
|
|
9
|
+
import { closeModal, CloseModalButton } from "../CloseModalButton";
|
|
10
|
+
import { RichLimitingSlider } from "../RichLimitingSlider";
|
|
11
|
+
import { SpeedButtonWithHeader, SwitchWithHeader } from "../SwitchWithHeader";
|
|
12
|
+
export const AutoplaySettings = observer(() => {
|
|
13
|
+
const [limit_numbers, setLimitNumbers] = useState([0]);
|
|
14
|
+
const initialAutoSpinCount = 50;
|
|
15
|
+
const availableAutoSpinLimits = [10, 20, 50, 100, 150, 200, 250, 300, 350, 400, 500, 600, 700, 800, 900, 1000];
|
|
16
|
+
const { settingStore } = useStores();
|
|
17
|
+
const calculateLimitBounds = (indexOfSelectedLimit) => {
|
|
18
|
+
let bottomLimitIndex = indexOfSelectedLimit - 2;
|
|
19
|
+
let topLimitIndex = indexOfSelectedLimit + 1;
|
|
20
|
+
if (bottomLimitIndex < 0) {
|
|
21
|
+
bottomLimitIndex = availableAutoSpinLimits.length - -bottomLimitIndex;
|
|
22
|
+
}
|
|
23
|
+
if (topLimitIndex === availableAutoSpinLimits.length) {
|
|
24
|
+
topLimitIndex = 0;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
bottomLimitIndex,
|
|
28
|
+
topLimitIndex,
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
const updateLimitsBounds = (newLimit) => {
|
|
32
|
+
setAutoSpinsCount(newLimit);
|
|
33
|
+
const indexOfSelectedSpinsLimit = availableAutoSpinLimits.findIndex((limitCount) => limitCount === newLimit);
|
|
34
|
+
if (indexOfSelectedSpinsLimit === -1) {
|
|
35
|
+
}
|
|
36
|
+
const { bottomLimitIndex, topLimitIndex } = calculateLimitBounds(indexOfSelectedSpinsLimit);
|
|
37
|
+
const limitNumbersIndexes = [];
|
|
38
|
+
for (let index = bottomLimitIndex; index !== topLimitIndex + 1; index++) {
|
|
39
|
+
if (index === availableAutoSpinLimits.length) {
|
|
40
|
+
index = 0;
|
|
41
|
+
}
|
|
42
|
+
limitNumbersIndexes.push(availableAutoSpinLimits[index]);
|
|
43
|
+
if (limitNumbersIndexes.length === 4) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
setLimitNumbers(limitNumbersIndexes);
|
|
48
|
+
};
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
updateLimitsBounds(initialAutoSpinCount);
|
|
51
|
+
}, []);
|
|
52
|
+
const { singleWinExceeds, balancedIncreased, balancedDecreased, howManyAutoSpinsLeft, infinitySpinsEnabled, setSingleWinExceeds, setBalancedIncreased, setBalancedDecreased, setAutoSpinsCount, flipInfinitySpinsFlag, resetAutoplaySettings, } = settingStore;
|
|
53
|
+
return (<div className="autoplay-settings">
|
|
54
|
+
<CloseModalButton layerId={UI_ITEMS.autoplay}/>
|
|
55
|
+
<div className="autoplay-settings__title">
|
|
56
|
+
<h2>{i18next.t("autoPlay")}</h2>
|
|
57
|
+
</div>
|
|
58
|
+
<div className="autoplay-settings__stop-limits">
|
|
59
|
+
<div className={`autoplay-settings__limit left ${infinitySpinsEnabled ? "autoplay-settings__limit--infinity" : ""}`} onClick={() => {
|
|
60
|
+
let indexOfSelectedSpinsLimit = availableAutoSpinLimits.findIndex((limitCount) => limitCount === howManyAutoSpinsLeft);
|
|
61
|
+
indexOfSelectedSpinsLimit -= 1;
|
|
62
|
+
if (indexOfSelectedSpinsLimit === -1) {
|
|
63
|
+
indexOfSelectedSpinsLimit = availableAutoSpinLimits.length - 1;
|
|
64
|
+
}
|
|
65
|
+
updateLimitsBounds(availableAutoSpinLimits[indexOfSelectedSpinsLimit]);
|
|
66
|
+
}}>
|
|
67
|
+
<p>-</p>
|
|
68
|
+
</div>
|
|
69
|
+
{limit_numbers.map((limiter, index) => {
|
|
70
|
+
return (<button key={`${limiter}${index}`} value={limiter} className={`autoplay-settings__limit ${limiter === howManyAutoSpinsLeft ? "autoplay-settings__limit--active" : ""} middle ${infinitySpinsEnabled ? "autoplay-settings__limit--infinity" : ""}`} onClick={(event) => updateLimitsBounds(Number(event.currentTarget.value))}>
|
|
71
|
+
<p>{limiter}</p>
|
|
72
|
+
</button>);
|
|
73
|
+
})}
|
|
74
|
+
<div className={`autoplay-settings__limit right ${infinitySpinsEnabled ? "autoplay-settings__limit--infinity" : ""}`} onClick={() => {
|
|
75
|
+
let indexOfSelectedSpinsLimit = availableAutoSpinLimits.findIndex((limitCount) => limitCount === howManyAutoSpinsLeft);
|
|
76
|
+
indexOfSelectedSpinsLimit += 1;
|
|
77
|
+
if (indexOfSelectedSpinsLimit === availableAutoSpinLimits.length) {
|
|
78
|
+
indexOfSelectedSpinsLimit = 0;
|
|
79
|
+
}
|
|
80
|
+
const newAutoSpinsLimitNumber = availableAutoSpinLimits[indexOfSelectedSpinsLimit];
|
|
81
|
+
updateLimitsBounds(newAutoSpinsLimitNumber);
|
|
82
|
+
}}>
|
|
83
|
+
<p>+</p>
|
|
84
|
+
</div>
|
|
85
|
+
<div className={`autoplay-settings__limit circle ${infinitySpinsEnabled ? "autoplay-settings__limit--active" : ""}`} onClick={() => flipInfinitySpinsFlag()}>
|
|
86
|
+
<p>∞</p>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div className="autoplay-settings__title">
|
|
91
|
+
<h2>{i18next.t("stopAutoPlay")}</h2>
|
|
92
|
+
</div>
|
|
93
|
+
<div className="autoplay-settings__sliders">
|
|
94
|
+
<RichLimitingSlider value={singleWinExceeds} setValue={setSingleWinExceeds} maxValue={Number(i18next.t("ifSingleWinExceedsMax"))} description={i18next.t("ifSingleWinExceedsMaxDescription")}/>
|
|
95
|
+
<RichLimitingSlider value={balancedIncreased} setValue={setBalancedIncreased} maxValue={Number(i18next.t("ifBalanceIncreasesBy"))} description={i18next.t("ifBalanceIncreasesByDescription")}/>
|
|
96
|
+
<RichLimitingSlider value={balancedDecreased} setValue={setBalancedDecreased} maxValue={Number(i18next.t("ifSingleWinExceedsMax"))} description={i18next.t("ifBalanceDecreaseByDescription")}/>
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div className="autoplay-settings__switches">
|
|
100
|
+
<div className="autoplay-settings__switch">
|
|
101
|
+
<SwitchWithHeader header={i18next.t("onAnyWin")} flag={settingStore.onAnyWin} setFlag={settingStore.setOnAnyWin}/>
|
|
102
|
+
</div>
|
|
103
|
+
<div className="autoplay-settings__switch">
|
|
104
|
+
<SpeedButtonWithHeader header={i18next.t("speedButtonHeader")} description={i18next.t("speedButtonDescription")}/>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div className="autoplay-settings__confirmation">
|
|
109
|
+
<div className="autoplay-settings__confirmation-button" onClick={() => {
|
|
110
|
+
resetAutoplaySettings();
|
|
111
|
+
updateLimitsBounds(initialAutoSpinCount);
|
|
112
|
+
closeModal(UI_ITEMS.autoplay);
|
|
113
|
+
}}>
|
|
114
|
+
<p>{i18next.t("cancel")}</p>
|
|
115
|
+
</div>
|
|
116
|
+
<div id={COMPONENTS.autoSpinConfirm} className="autoplay-settings__confirmation-button" onClick={() => closeModal(UI_ITEMS.autoplay)}>
|
|
117
|
+
<p>{i18next.t("confirm")}</p>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>);
|
|
121
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.bet-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
width: 50%;
|
|
7
|
+
height: 150px;
|
|
8
|
+
margin: 0px 30px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.bet-container__value {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
width: 150px;
|
|
16
|
+
height: 60px;
|
|
17
|
+
border-radius: 60px;
|
|
18
|
+
border: 2px white;
|
|
19
|
+
border-style: solid;
|
|
20
|
+
margin: 0px 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.bet-container__value p {
|
|
24
|
+
font-size: 25px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.bet-container__button {
|
|
28
|
+
height: 62px;
|
|
29
|
+
width: 62px;
|
|
30
|
+
font-size: 40px;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
border-radius: 50%;
|
|
33
|
+
background-color: rgba(0, 0, 0, 0);
|
|
34
|
+
border: 2px solid white;
|
|
35
|
+
color: white;
|
|
36
|
+
text-align: center;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.bet-container h2 {
|
|
41
|
+
text-transform: uppercase;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bet-container__controls {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.bet-container__button:hover {
|
|
50
|
+
background-color: #fdf42550;
|
|
51
|
+
color: #fdf425;
|
|
52
|
+
border: 2px solid #fdf425;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media only screen and (max-width: 900px) {
|
|
56
|
+
.bet-container__value {
|
|
57
|
+
width: 70px;
|
|
58
|
+
height: 30px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.bet-container__value p {
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.bet-container__button {
|
|
66
|
+
height: 32px;
|
|
67
|
+
width: 32px;
|
|
68
|
+
font-size: 20px;
|
|
69
|
+
padding: 0px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./bet.css";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { useStores } from "../../hooks";
|
|
5
|
+
export const BetComponent = observer(() => {
|
|
6
|
+
const { settingStore } = useStores();
|
|
7
|
+
return (<div className="bet-container">
|
|
8
|
+
<h2>Total bet</h2>
|
|
9
|
+
<div className="bet-container__controls">
|
|
10
|
+
<button name="bet-minus" className="bet-container__button">
|
|
11
|
+
-
|
|
12
|
+
</button>
|
|
13
|
+
<div className="bet-container__value">
|
|
14
|
+
<p>{settingStore.betText}</p>
|
|
15
|
+
</div>
|
|
16
|
+
<button name="bet-plus" className="bet-container__button">
|
|
17
|
+
+
|
|
18
|
+
</button>
|
|
19
|
+
</div>
|
|
20
|
+
</div>);
|
|
21
|
+
});
|