cull(engine-cleanup): pass-9 cascade round 1 after DialogBase stub
This commit is contained in:
@@ -202,64 +202,6 @@ public class WebViewHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
public DialogBase CreateOpenURLWindow(UrlType type)
|
||||
{
|
||||
string applicationServerURL = CustomPreference.GetApplicationServerURL();
|
||||
string text = "?lang=" + CustomPreference.GetTextLanguage();
|
||||
string openUrl = null;
|
||||
string key = null;
|
||||
DialogBase dialogBase = UIManager.GetInstance().CreateDialogClose();
|
||||
SystemText systemText = Data.SystemText;
|
||||
switch (type)
|
||||
{
|
||||
case UrlType.POLICY:
|
||||
dialogBase.SetPanelDepth(3000);
|
||||
openUrl = applicationServerURL + "information/policy" + text;
|
||||
key = "OtherTop_0009";
|
||||
break;
|
||||
case UrlType.FACEBOOK:
|
||||
key = "Account_0038";
|
||||
break;
|
||||
case UrlType.RECOMMENDED_DEVICE:
|
||||
key = "Common_0134";
|
||||
openUrl = "https://shadowverse.jp/device.php";
|
||||
break;
|
||||
case UrlType.GAME_GUIDE:
|
||||
openUrl = systemText.Get("URL_0012_steam");
|
||||
key = "OtherTop_0021";
|
||||
break;
|
||||
case UrlType.NICONICO:
|
||||
dialogBase.SetPanelDepth(3000);
|
||||
key = "VideoHosting_0034";
|
||||
openUrl = "https://account.nicovideo.jp/rules/account";
|
||||
break;
|
||||
case UrlType.NICONICO_PUBLISH:
|
||||
dialogBase.SetPanelDepth(3000);
|
||||
key = "VideoHosting_0035";
|
||||
openUrl = "http://live.nicovideo.jp/static/rule.html";
|
||||
break;
|
||||
}
|
||||
dialogBase.SetTitleLabel(systemText.Get(key));
|
||||
dialogBase.SetText(systemText.Get("Common_0208"));
|
||||
dialogBase.SetButtonLayout(DialogBase.ButtonLayout.BlueBtn_CancelBtn);
|
||||
dialogBase.SetButtonText(systemText.Get("Dia_Web_001_Button"));
|
||||
dialogBase.onPushButton1 = delegate
|
||||
{
|
||||
PrepareOpenUrl(delegate
|
||||
{
|
||||
if (type == UrlType.FACEBOOK)
|
||||
{
|
||||
UIManager.GetInstance().AccountTransferHelper.DataTransferByFaceBook();
|
||||
}
|
||||
else
|
||||
{
|
||||
BrowserURL.Open(openUrl);
|
||||
}
|
||||
});
|
||||
};
|
||||
return dialogBase;
|
||||
}
|
||||
|
||||
public void PrepareOpenUrl(Action onFinish)
|
||||
{
|
||||
onFinish();
|
||||
|
||||
Reference in New Issue
Block a user