コード例 #1
0
 static void onRequestFinished(HTTPRequest request, HTTPResponse response)
 {
     if (response != null && new Version("7.0.4") < new Version(response.DataAsText))
     {
         DialogBase base2 = UIManager.GetInstance().CreateDialogClose();
         base2.SetTitleLabel("汉化有更新啦!");
         base2.SetText($"汉化有更新啦,最新版本{response.DataAsText}\n点击确定跳转网页下载");
         base2.SetButtonLayout(DialogBase.ButtonLayout.BlueBtn_CancelBtn);
         base2.SetButtonText("确定");
         base2.SetPanelDepth(0x7d0);
         base2.onPushButton1 = () => { Application.OpenURL("https://sennatsu.com/"); };
     }
 }