pixi-rainman-game-engine 0.1.27 → 0.1.28
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/SettingsUI/components/AutoplaySettings/autoplaySettings.css +1 -1
- package/dist/SettingsUI/components/Bet/bet.css +7 -6
- package/dist/components/buttons/default/VolumeButton.d.ts +1 -1
- package/dist/components/buttons/default/VolumeButton.js +1 -1
- package/dist/components/buttons/registrynames.d.ts +1 -0
- package/dist/components/buttons/registrynames.js +1 -0
- package/dist/controllers/AbstractController.d.ts +1 -0
- package/dist/controllers/AbstractController.js +9 -0
- package/package.json +1 -1
|
@@ -11,16 +11,17 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: center;
|
|
14
|
-
width:
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
min-width: 140px;
|
|
15
|
+
width: fit-content;
|
|
16
|
+
text-align: center;
|
|
17
|
+
height: fit-content;
|
|
18
|
+
border-radius: 32px;
|
|
17
19
|
border: 2px white;
|
|
18
20
|
border-style: solid;
|
|
19
|
-
margin: 0px 10px;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.bet-container__value p {
|
|
23
|
-
font-size:
|
|
24
|
+
font-size: 24px;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.bet-container__button {
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
|
|
45
46
|
.bet-container__controls {
|
|
46
47
|
display: flex;
|
|
47
|
-
|
|
48
|
+
gap: 8px;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
.bet-container__button:active {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseButton } from "../BaseButton";
|
|
2
2
|
export declare class VolumeButton extends BaseButton {
|
|
3
|
-
static readonly registryName = "
|
|
3
|
+
static readonly registryName = "volumeButton";
|
|
4
4
|
private readonly normalTextureMap;
|
|
5
5
|
private readonly muteTextureMap;
|
|
6
6
|
constructor();
|
|
@@ -2,7 +2,7 @@ import { RainMan } from "../../../Rainman";
|
|
|
2
2
|
import { getTexture } from "../../../utils";
|
|
3
3
|
import { BaseButton, ButtonStates } from "../BaseButton";
|
|
4
4
|
export class VolumeButton extends BaseButton {
|
|
5
|
-
static registryName = "
|
|
5
|
+
static registryName = "volumeButton";
|
|
6
6
|
normalTextureMap;
|
|
7
7
|
muteTextureMap;
|
|
8
8
|
constructor() {
|
|
@@ -45,6 +45,7 @@ export declare abstract class AbstractController<T> {
|
|
|
45
45
|
private setupSpaceOrEnterListener;
|
|
46
46
|
private disableBetButtons;
|
|
47
47
|
private disableSpeedButton;
|
|
48
|
+
private disableInformationButtons;
|
|
48
49
|
protected handleDisablingButtons(disabled?: boolean): void;
|
|
49
50
|
private initButtons;
|
|
50
51
|
private initBetButtons;
|
|
@@ -109,9 +109,18 @@ export class AbstractController {
|
|
|
109
109
|
disableSpeedButton(shouldBeDisabled) {
|
|
110
110
|
RainMan.componentRegistry.get(SpeedControlButton.registryName).flipDisabledFlag(shouldBeDisabled);
|
|
111
111
|
}
|
|
112
|
+
disableInformationButtons(shouldBeDisabled) {
|
|
113
|
+
const buttonsToChange = [
|
|
114
|
+
RainMan.componentRegistry.get(BUTTONS.info),
|
|
115
|
+
RainMan.componentRegistry.get(BUTTONS.more),
|
|
116
|
+
RainMan.componentRegistry.get(BUTTONS.volume),
|
|
117
|
+
];
|
|
118
|
+
buttonsToChange.forEach((button) => button.flipDisabledFlag(shouldBeDisabled));
|
|
119
|
+
}
|
|
112
120
|
handleDisablingButtons(disabled) {
|
|
113
121
|
this.disableBetButtons(disabled ?? this.shouldBetButtonsBeDisabled);
|
|
114
122
|
this.disableSpeedButton(disabled ?? this.shouldButtonsBeDisabled);
|
|
123
|
+
this.disableInformationButtons(disabled ?? this.shouldButtonsBeDisabled);
|
|
115
124
|
}
|
|
116
125
|
initButtons() {
|
|
117
126
|
this.buttonsEventManager.initVolumeButtonEvent();
|
package/package.json
CHANGED