Merge branch 'develop' into bugfix/黑边

This commit is contained in:
2025-09-04 15:04:11 +08:00
4 changed files with 38 additions and 31 deletions
+28 -28
View File
@@ -15,37 +15,37 @@ namespace AibisDream
{
// GameManager.Instance.PauseGame();
gameObject.SetActive(true);
RegisterButton();
// RegisterButton();
}
public void Hide()
{
gameObject.SetActive(false);
UnRegisterButton();
// UnRegisterButton();
// GameManager.Instance.ContinueGame();
}
#endregion
private void RegisterButton()
{
var returnBtn = transform.Find("返回").GetComponent<Button>();
returnBtn.onClick.AddListener(BackToMain);
var backToMain = transform.Find("问卷").GetComponent<Button>();
backToMain.onClick.AddListener(OpenFeedbackLink);
var quit = transform.Find("Bug反馈").GetComponent<Button>();
quit.onClick.AddListener(OpenBugLink);
}
// private void RegisterButton()
// {
// var returnBtn = transform.Find("返回").GetComponent<Button>();
// returnBtn.onClick.AddListener(BackToMain);
// var backToMain = transform.Find("问卷").GetComponent<Button>();
// backToMain.onClick.AddListener(OpenFeedbackLink);
// var quit = transform.Find("Bug反馈").GetComponent<Button>();
// quit.onClick.AddListener(OpenBugLink);
// }
private void UnRegisterButton()
{
var returnBtn = transform.Find("返回").GetComponent<Button>();
returnBtn.onClick.RemoveAllListeners();
var backToMain = transform.Find("问卷").GetComponent<Button>();
backToMain.onClick.RemoveAllListeners();
var quit = transform.Find("Bug反馈").GetComponent<Button>();
quit.onClick.RemoveAllListeners();
}
// private void UnRegisterButton()
// {
// var returnBtn = transform.Find("返回").GetComponent<Button>();
// returnBtn.onClick.RemoveAllListeners();
// var backToMain = transform.Find("问卷").GetComponent<Button>();
// backToMain.onClick.RemoveAllListeners();
// var quit = transform.Find("Bug反馈").GetComponent<Button>();
// quit.onClick.RemoveAllListeners();
// }
private void BackToMain()
{
@@ -53,14 +53,14 @@ namespace AibisDream
GameManager.Instance.QuitGame();
}
private void OpenFeedbackLink()
{
Application.OpenURL(ConstRef.SurveyURL);
}
// private void OpenFeedbackLink()
// {
// Application.OpenURL(ConstRef.SurveyURL);
// }
private void OpenBugLink()
{
Application.OpenURL(ConstRef.BugSurveyURL);
}
// private void OpenBugLink()
// {
// Application.OpenURL(ConstRef.BugSurveyURL);
// }
}
}
+7 -1
View File
@@ -44,7 +44,13 @@ namespace AibisDream
// 其他链接按钮
var others = transform.Find("Others");
others.Find("问卷").GetComponent<Button>().onClick.AddListener(() => Application.OpenURL(ConstRef.SurveyURL));
others.Find("问卷").GetComponent<Button>().onClick.AddListener(() =>
{
string currentLanguage = "zh-Hans";
SettingLoader.Instance.TryRead("Language", out currentLanguage);
var url = currentLanguage == "zh-Hans" ? ConstRef.SurveyURL_CN : ConstRef.SurveyURL_EN;
Application.OpenURL(url);
});
others.Find("关注").GetComponent<Button>().onClick.AddListener(() =>
{
string currentLanguage = "zh-Hans";
+2 -1
View File
@@ -12,7 +12,8 @@ namespace AibisDream.Utility
public const string BugSurveyURL = "https://jsj.top/f/F24cC6";
public const string SurveyURL = "https://jsj.top/f/HkmCnH";
public const string SurveyURL_CN = "https://jsj.top/f/HkmCnH";
public const string SurveyURL_EN = "https://jsj.top/f/y501LX";
public const string WishlistURL = "https://store.steampowered.com/app/3473430/_All_Our_Broken_Parts?utm_source=playtest";
+1 -1
View File
@@ -1,5 +1,5 @@
{
"Volume": "0.89",
"Language": "zh-Hans",
"Language": "en",
"WindowMode": "Windowed"
}