mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-05 21:32:40 +02:00
Added Pause menu BGM setting
This commit is contained in:
@@ -128,6 +128,7 @@ SETTINGS_DATA,,Data,Données,,,Datos,Dati,,,Daten,Verİler,Data,Dados,データ
|
||||
SETTINGS_RESOURCE_PACK,,Resource Packs,Packs de Ressources,Paczki Zasobów,tekctУp-пakи,Paquetes de recursos,Pacchetti di risorse,RESOURCE PACKS,Resource Packs,Ressourcenpakete,Kaynak Paketlerİ,Paket Resource,Pacotes de Recurso,リソースパック
|
||||
SETTING_ON,"might change to just be true or false, instead. idk",On,On,Wł.,bkл.,Activado,On,ON,On,An,Açık,Aktif,Ligado,オン
|
||||
SETTING_OFF,,Off,Off,Wył.,bыkл.,Desactivado,Off,OFF,Off,Aus,Kapalı,Mati,Desligado,オフ
|
||||
SETTING_MUFFLED,,Muffled,,,,,,,,,,,,
|
||||
VIDEO_MODE,"windowed, fullscreen, etc",Mode,Mode,Tryb,peжиm,Modo,Modalità video,MODE,Mode,Fenstermodus,Pencere Modu,Mode,Modo,ウィンドウモード
|
||||
VIDEO_SIZE,"aspect ratio (4:3, widescreen)",Size,Taille,Wielkość,paзmep,Tamaño,Formato schermo,SIZE,Sukat ng Screen,Seitenverhältnis,En Boy Oranı,Ukuran,Proporção,かいぞうど
|
||||
VIDEO_RENDER,,Rendering,Rendu,Renderowanie,pehдepиhг,Renderizardo,Rendering,RENDERING,,,Görselleştİrme,Rendering,Renderização,レンダリング
|
||||
@@ -151,6 +152,7 @@ AUDIO_MUSIC,,Music,Musique,Muzyka,mУзыka,Música,Musica,MUSIC,Musik
|
||||
AUDIO_SFX,,SFX,Effets Sonores,Efekty Dźwiękowe,Эффektы,SFX,SFX,SFX,SFX,Soundeffekte,Ses Efektlerİ,Efek Suara,Efeitos Sonoros,SFX
|
||||
AUDIO_EXTRA_BGM,"Setting to enable or disable extra music tracks in game (bonus theme, athletic theme, bowser theme)",Extra BGM,Musiques En Plus,Muzyka Atletyczna,Эkctpa BGM,Música de fondo adicional,BGM extra,EXTRA BGM,Extrang Musika,Extramusik,Ekstra Müzİk,BGM Ekstra,BGM Extra,ついかBGM
|
||||
AUDIO_EXTRA_SFX,Adds in some other optional sfxs from SMBDX and the modern games,Extra SFX,Effets Sonores En Plus,Dodatkowe Efekty Dźwiękowe,Эkctpa SFX,Efectos de sonido adicionales,SFX extra,EXTRA SFX,Extrang SFX,Extra-Soundeffekte,Ekstra Ses Efektlerİ,SFX Ekstra,SFX Extra,ついかSFX
|
||||
AUDIO_PAUSE_BGM,,Pause Menu BGM,,,,,,,,,,,,
|
||||
AUDIO_MENU_BGM,You win.,Menu BGM,Musique Menu,Muzyka Menu,BGM mehю,Música de fondo del menú,BGM del menu,MENU BGM,Musika sa Menu,Menümusik,Menü Müzİk,Menu BGM,BGM do Menu,メニューBGM
|
||||
AUDIO_SKID_SFX,Enables the skidding sfx from Lost Levels,Skid SFX,Bruit Dérapage,Dźwięki Hamowania,ЗbУk ckoльжehия,Effectos de derrape,Skid SFX,SKID SFX,SFX ng skid,Rutsch-Soundeffekt,Kayma Ses Efektİ,Efek Suara Selip,SFX de Derrapagem,スキールおん
|
||||
VISUALS_PARALLAX,Sets the amount of parallax used in BG's,Parallax,Parallaxe,Paralaks,Пapaллakc,Paralaje,Effetto parallasse,PARALLAX,Naka-parallax,Parallaxeneffekt,Paralaks,Paralaks,Parallax,ラスター
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -375,7 +375,7 @@ layout_mode = 2
|
||||
theme_override_constants/separation = -4
|
||||
script = ExtResource("4_avtty")
|
||||
category_name = "SETTINGS_AUDIO"
|
||||
options = [NodePath("SelectableOptionNode"), NodePath("SelectableOptionNode2"), NodePath("SelectableOptionNode3"), NodePath("AthleticMusic"), NodePath("SkidSFX"), NodePath("ExtraSFX"), NodePath("MenuBGM")]
|
||||
options = [NodePath("SelectableOptionNode"), NodePath("SelectableOptionNode2"), NodePath("SelectableOptionNode3"), NodePath("AthleticMusic"), NodePath("SkidSFX"), NodePath("ExtraSFX"), NodePath("PauseBGM"), NodePath("MenuBGM")]
|
||||
|
||||
[node name="Control" type="Control" parent="PanelContainer/MarginContainer/VBoxContainer/Audio"]
|
||||
custom_minimum_size = Vector2(0, 4)
|
||||
@@ -423,6 +423,13 @@ title = "AUDIO_EXTRA_SFX"
|
||||
values = ["SETTING_OFF", "SETTING_ON"]
|
||||
settings_category = "audio"
|
||||
|
||||
[node name="PauseBGM" parent="PanelContainer/MarginContainer/VBoxContainer/Audio" groups=["Options"] instance=ExtResource("3_dl6kk")]
|
||||
layout_mode = 2
|
||||
option_key = "pause_bgm"
|
||||
title = "AUDIO_PAUSE_BGM"
|
||||
values = ["SETTING_OFF", "SETTING_MUFFLED", "SETTING_ON"]
|
||||
settings_category = "audio"
|
||||
|
||||
[node name="MenuBGM" parent="PanelContainer/MarginContainer/VBoxContainer/Audio" groups=["Options"] instance=ExtResource("3_dl6kk")]
|
||||
layout_mode = 2
|
||||
option_key = "menu_bgm"
|
||||
@@ -1001,6 +1008,7 @@ script = ExtResource("19_k6yev")
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Audio/AthleticMusic" to="PanelContainer/MarginContainer/VBoxContainer/Audio/AudioAdjuster" method="athletic_changed"]
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Audio/SkidSFX" to="PanelContainer/MarginContainer/VBoxContainer/Audio/AudioAdjuster" method="skid_changed"]
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Audio/ExtraSFX" to="PanelContainer/MarginContainer/VBoxContainer/Audio/AudioAdjuster" method="extra_sfx_changed"]
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Audio/PauseBGM" to="PanelContainer/MarginContainer/VBoxContainer/Audio/AudioAdjuster" method="pause_bgm_changed"]
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Audio/MenuBGM" to="PanelContainer/MarginContainer/VBoxContainer/Audio/AudioAdjuster" method="menu_bgm_changed"]
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Visuals/ParallaxStyle" to="PanelContainer/MarginContainer/VBoxContainer/Visuals/VisualsSetter" method="parallax_style_changed"]
|
||||
[connection signal="value_changed" from="PanelContainer/MarginContainer/VBoxContainer/Visuals/BGParticles" to="PanelContainer/MarginContainer/VBoxContainer/Visuals/VisualsSetter" method="bg_particles_changed"]
|
||||
|
@@ -203,7 +203,17 @@ func load_sfx_map(json := {}) -> void:
|
||||
func handle_music() -> void:
|
||||
if Global.in_title_screen:
|
||||
current_level_theme = ""
|
||||
AudioServer.set_bus_effect_enabled(1, 0, Global.game_paused)
|
||||
|
||||
# guzlad: hack in the elif because it doesn't unpause itself like the normal music_player does
|
||||
if Global.game_paused and Settings.file.audio.pause_bgm == 0:
|
||||
AudioManager.music_player.stream_paused = true
|
||||
AudioManager.music_override_player.stream_paused = true
|
||||
return
|
||||
elif AudioManager.music_override_player.stream_paused == true:
|
||||
AudioManager.music_override_player.stream_paused = false
|
||||
|
||||
AudioServer.set_bus_effect_enabled(1, 0, Global.game_paused and Settings.file.audio.pause_bgm == 1)
|
||||
|
||||
if is_instance_valid(Global.current_level):
|
||||
if Global.current_level.music == null or current_music_override != MUSIC_OVERRIDES.NONE:
|
||||
music_player.stop()
|
||||
|
@@ -19,6 +19,7 @@ var file := {
|
||||
"extra_bgm": 1,
|
||||
"skid_sfx": 1,
|
||||
"extra_sfx": 0,
|
||||
"pause_bgm": 1,
|
||||
"menu_bgm": 0
|
||||
},
|
||||
"game": {
|
||||
|
@@ -21,6 +21,9 @@ func skid_changed(new_value := 0) -> void:
|
||||
func extra_sfx_changed(new_value := 0) -> void:
|
||||
Settings.file.audio.extra_sfx = new_value
|
||||
|
||||
func pause_bgm_changed(new_value := 0) -> void:
|
||||
Settings.file.audio.pause_bgm = new_value
|
||||
|
||||
func menu_bgm_changed(new_value := 0) -> void:
|
||||
Settings.file.audio.menu_bgm = new_value
|
||||
|
||||
@@ -36,5 +39,6 @@ func set_value(value_name := "", value := 0) -> void:
|
||||
"extra_bgm": athletic_changed,
|
||||
"skid_sfx": skid_changed,
|
||||
"extra_sfx": extra_sfx_changed,
|
||||
"pause_bgm": pause_bgm_changed,
|
||||
"menu_bgm": menu_bgm_changed
|
||||
}[value_name].call(value)
|
||||
|
Reference in New Issue
Block a user