Files
BlueArchiveMiniGame/Assets/Scripts/HotUpdate/Main/UI/SettingWindow/GeneralPanel.cs

25 lines
648 B
C#
Raw Normal View History

2025-09-29 07:45:07 +08:00
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class GeneralPanel : UIBasePanel,ISettingsPanel
{
[SerializeField] private TMP_InputField serverAddressInput;
public override void OnShow()
{
serverAddressInput.text = SettingsManager.Inst.CurrentSettings.serverAddress;
}
public void OnServerAddressChanged(string value)
{
2025-10-09 07:51:05 +08:00
SettingsManager.Inst.CurrentSettings.serverAddress = value;
2025-09-29 07:45:07 +08:00
}
public void ApplySettings()
{
2025-10-09 07:51:05 +08:00
2025-09-29 07:45:07 +08:00
}
public void ResetToDefault()
{
2025-10-09 07:51:05 +08:00
SettingsManager.Inst.CurrentSettings.serverAddress = SettingsManager.Inst.DefSetting.serverAddress;
2025-09-29 07:45:07 +08:00
}
}