cull(engine-cleanup): pass-9 cascade round 1 after DialogBase stub
This commit is contained in:
@@ -918,36 +918,6 @@ public class FilteringImageSelection : MonoBehaviour
|
||||
return dataList.Any((ItemData data) => data.IsLoaded());
|
||||
}
|
||||
|
||||
public void DestroyDialogCloseButtonCopy()
|
||||
{
|
||||
if (_dialogCloseButtonCopy != null)
|
||||
{
|
||||
UnityEngine.Object.Destroy(_dialogCloseButtonCopy.gameObject);
|
||||
_dialogCloseButtonCopy = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void RegisterFavoriteChanges()
|
||||
{
|
||||
IEnumerable<long> enumerable = from x in _dataList
|
||||
where x.IsFavorite
|
||||
select long.Parse(x._key);
|
||||
IEnumerable<long> favorites = GetFavorites();
|
||||
IEnumerable<long> remove = favorites.Except(enumerable);
|
||||
IEnumerable<long> add = enumerable.Except(favorites);
|
||||
if (remove.IsNotNullOrEmpty() || add.IsNotNullOrEmpty())
|
||||
{
|
||||
string[] remove2 = remove.Select((long x) => x.ToString()).ToArray();
|
||||
string[] add2 = add.Select((long x) => x.ToString()).ToArray();
|
||||
FavoriteTask favoriteTask = new FavoriteTask(TaskKind);
|
||||
favoriteTask.SetParameter(add2, remove2);
|
||||
UIManager.GetInstance().StartCoroutine(Toolbox.NetworkManager.Connect(favoriteTask, delegate
|
||||
{
|
||||
UpdateFavoriteFlag(add, remove);
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void UpdateFavoriteFlag(IEnumerable<long> added, IEnumerable<long> removed)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -100,11 +100,6 @@ public class LocalLog
|
||||
}
|
||||
}
|
||||
|
||||
public static void SendAllClientTraceLog(Action onSended)
|
||||
{
|
||||
MakeTreceLogToSend(TRACELOG_TYPE.TRACE_ALL_LOG, onSended);
|
||||
}
|
||||
|
||||
public static void SendLastTraceLog(Action onSended)
|
||||
{
|
||||
MakeTreceLogToSend(TRACELOG_TYPE.TRACE_LAST_LOG, onSended);
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
internal class TransformBackup
|
||||
{
|
||||
public Transform backup_parent { get; private set; }
|
||||
|
||||
public Vector3 backup_pos { get; private set; }
|
||||
|
||||
public Vector3 backup_scale { get; private set; }
|
||||
|
||||
public int backup_layer { get; private set; }
|
||||
|
||||
public void Save(Transform trans)
|
||||
{
|
||||
backup_parent = trans.parent;
|
||||
backup_pos = trans.localPosition;
|
||||
backup_scale = trans.localScale;
|
||||
backup_layer = trans.gameObject.layer;
|
||||
}
|
||||
|
||||
public void Restore(Transform trans)
|
||||
{
|
||||
trans.parent = backup_parent;
|
||||
trans.localPosition = backup_pos;
|
||||
trans.localScale = backup_scale;
|
||||
trans.gameObject.layer = backup_layer;
|
||||
}
|
||||
}
|
||||
@@ -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