Skip to content

Commit

Permalink
Add new bundle to prepare for dedicated
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jul 7, 2024
1 parent 6e29916 commit a847334
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file modified Fika.Core/Bundles/Files/newmatchmakerui.bundle
Binary file not shown.
2 changes: 2 additions & 0 deletions Fika.Core/UI/Custom/MatchMakerUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class MatchMakerUI : MonoBehaviour
public Button CloseButton;
[SerializeField]
public TextMeshProUGUI PlayerAmountText;
[SerializeField]
public Toggle DedicatedToggle;

public void SetServerNumberText(string text)
{
Expand Down
6 changes: 6 additions & 0 deletions Fika.Core/UI/Custom/MatchMakerUIScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ private void CreateMatchMakerUI()
fikaMatchMakerUi.PlayerAmountSelection.SetActive(false);
}

fikaMatchMakerUi.DedicatedToggle.isOn = false;
fikaMatchMakerUi.DedicatedToggle.onValueChanged.AddListener((arg) =>
{
Singleton<GUISounds>.Instance.PlayUISound(EUISoundType.MenuCheckBox);
});

fikaMatchMakerUi.RaidGroupHostButton.onClick.AddListener(() =>
{
Singleton<GUISounds>.Instance.PlayUISound(EUISoundType.ButtonClick);
Expand Down

0 comments on commit a847334

Please sign in to comment.