mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
Fix variable naming in game-speed.ts
This commit is contained in:
parent
1bb47885da
commit
b3f5abe227
@ -1,10 +1,12 @@
|
|||||||
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
import SoundFade from "phaser3-rex-plugins/plugins/soundfade";
|
||||||
|
import type FadeIn from "phaser3-rex-plugins/plugins/audio/fade/FadeIn";
|
||||||
|
import type FadeOut from "phaser3-rex-plugins/plugins/audio/fade/FadeOut";
|
||||||
import type BattleScene from "#app/battle-scene";
|
import type BattleScene from "#app/battle-scene";
|
||||||
import { globalScene } from "#app/global-scene";
|
import { globalScene } from "#app/global-scene";
|
||||||
import * as Utils from "../utils";
|
import * as Utils from "../utils";
|
||||||
|
|
||||||
type FadeIn = typeof FadeIn;
|
type FadeInType = typeof FadeIn;
|
||||||
type FadeOut = typeof FadeOut;
|
type FadeOutType = typeof FadeOut;
|
||||||
|
|
||||||
export function initGameSpeed() {
|
export function initGameSpeed() {
|
||||||
const thisArg = this as BattleScene;
|
const thisArg = this as BattleScene;
|
||||||
@ -99,7 +101,7 @@ export function initGameSpeed() {
|
|||||||
|
|
||||||
const originalFadeOut = SoundFade.fadeOut;
|
const originalFadeOut = SoundFade.fadeOut;
|
||||||
SoundFade.fadeOut = ((_scene: Phaser.Scene, sound: Phaser.Sound.BaseSound, duration: number, destroy?: boolean) =>
|
SoundFade.fadeOut = ((_scene: Phaser.Scene, sound: Phaser.Sound.BaseSound, duration: number, destroy?: boolean) =>
|
||||||
originalFadeOut(globalScene, sound, transformValue(duration), destroy)) as FadeOut;
|
originalFadeOut(globalScene, sound, transformValue(duration), destroy)) as FadeOutType;
|
||||||
|
|
||||||
const originalFadeIn = SoundFade.fadeIn;
|
const originalFadeIn = SoundFade.fadeIn;
|
||||||
SoundFade.fadeIn = ((
|
SoundFade.fadeIn = ((
|
||||||
@ -108,5 +110,5 @@ export function initGameSpeed() {
|
|||||||
duration: number,
|
duration: number,
|
||||||
endVolume?: number,
|
endVolume?: number,
|
||||||
startVolume?: number,
|
startVolume?: number,
|
||||||
) => originalFadeIn(globalScene, sound, transformValue(duration), endVolume, startVolume)) as FadeIn;
|
) => originalFadeIn(globalScene, sound, transformValue(duration), endVolume, startVolume)) as FadeInType;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user