diff --git a/Fika.Core/Bundles/Files/newmatchmakerui.bundle b/Fika.Core/Bundles/Files/newmatchmakerui.bundle index b904ac13..d741d314 100644 Binary files a/Fika.Core/Bundles/Files/newmatchmakerui.bundle and b/Fika.Core/Bundles/Files/newmatchmakerui.bundle differ diff --git a/Fika.Core/UI/Custom/MatchMakerUI.cs b/Fika.Core/UI/Custom/MatchMakerUI.cs index 78dd350e..bbd5a3ad 100644 --- a/Fika.Core/UI/Custom/MatchMakerUI.cs +++ b/Fika.Core/UI/Custom/MatchMakerUI.cs @@ -20,6 +20,8 @@ public class MatchMakerUI : MonoBehaviour public Button CloseButton; [SerializeField] public TextMeshProUGUI PlayerAmountText; + [SerializeField] + public Toggle DedicatedToggle; public void SetServerNumberText(string text) { diff --git a/Fika.Core/UI/Custom/MatchMakerUIScript.cs b/Fika.Core/UI/Custom/MatchMakerUIScript.cs index 074047af..6142daa7 100644 --- a/Fika.Core/UI/Custom/MatchMakerUIScript.cs +++ b/Fika.Core/UI/Custom/MatchMakerUIScript.cs @@ -91,6 +91,12 @@ private void CreateMatchMakerUI() fikaMatchMakerUi.PlayerAmountSelection.SetActive(false); } + fikaMatchMakerUi.DedicatedToggle.isOn = false; + fikaMatchMakerUi.DedicatedToggle.onValueChanged.AddListener((arg) => + { + Singleton.Instance.PlayUISound(EUISoundType.MenuCheckBox); + }); + fikaMatchMakerUi.RaidGroupHostButton.onClick.AddListener(() => { Singleton.Instance.PlayUISound(EUISoundType.ButtonClick);