| System/MainInterfacePanel/ChatFrame.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmPoolBehaviour.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmPoolBehaviour.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmTransitionWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Realm/RealmTransitionWin.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/MainInterfacePanel/ChatFrame.cs
@@ -330,8 +330,8 @@ } private void OnRealmButton() { WindowCenter.Instance.Open<RealmWin>(); WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<RealmTransitionWin>(); //WindowCenter.Instance.Close<MainInterfaceWin>(); } void MailButton()//邮件按钮 System/Realm/RealmModel.cs
@@ -397,7 +397,7 @@ { return; } WindowCenter.Instance.Open<RealmWin>(); WindowCenter.Instance.Open<RealmTransitionWin>(); } void RefreshRedpoint() System/Realm/RealmPoolBehaviour.cs
New file @@ -0,0 +1,23 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class RealmPoolBehaviour : MonoBehaviour { [SerializeField] ImageEx m_Bottom; [SerializeField] ImageEx m_Word; [SerializeField] Transform m_Lock; [SerializeField] Text m_Progress; RealmModel model { get { return ModelCenter.Instance.GetModel<RealmModel>(); } } public void Display(int realmLevel) { } } } System/Realm/RealmPoolBehaviour.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: b9403989db1c1064c883f333eee2dec5 timeCreated: 1553052486 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/Realm/RealmTransitionWin.cs
New file @@ -0,0 +1,107 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Wednesday, March 20, 2019 //-------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace Snxxz.UI { public class RealmTransitionWin : Window { [SerializeField] UIAlphaTween m_AlphaTween; [SerializeField] Transform m_ContainerProgress; [SerializeField] Image m_Progress; [SerializeField, Header("进入时间"), Range(0.1f, 5f)] float m_Duration = 1f; float timer = 0f; #region Built-in protected override void BindController() { } protected override void AddListeners() { } protected override void OnPreOpen() { timer = 0f; m_Progress.fillAmount = 0f; m_ContainerProgress.gameObject.SetActive(true); m_AlphaTween.SetStartState(); WindowCenter.Instance.windowBeforeOpenEvent += WindowBeforeOpenEvent; } protected override void OnActived() { base.OnActived(); StartCoroutine(Co_Enter()); } protected override void OnAfterOpen() { } protected override void OnPreClose() { WindowCenter.Instance.windowBeforeOpenEvent -= WindowBeforeOpenEvent; StopAllCoroutines(); } protected override void OnAfterClose() { } protected override void LateUpdate() { base.LateUpdate(); if (m_Progress.fillAmount <= m_Duration) { var progress = Mathf.Clamp01(timer / m_Duration); m_Progress.fillAmount = progress; } timer += Time.deltaTime; } #endregion IEnumerator Co_Enter() { yield return WaitingForSecondConst.GetWaitForSeconds(m_Duration); CameraController.Instance.PlayAnimationClip("RealmFuncOpen"); m_AlphaTween.Play(OnTweenComplete); } private void WindowBeforeOpenEvent(Window window) { if (window is RealmWin) { m_AlphaTween.Play(OnTweenBackComplete); m_AlphaTween.SetEndState(); m_AlphaTween.reversal = true; } } private void OnTweenBackComplete() { CloseImmediately(); } private void OnTweenComplete() { m_ContainerProgress.gameObject.SetActive(false); WindowCenter.Instance.Close<MainInterfaceWin>(); WindowCenter.Instance.Open<RealmWin>(); } } } System/Realm/RealmTransitionWin.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 8ccced4a0d2a10b4e868fc8896afbcba timeCreated: 1553060356 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: