bingo 项目提交
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using BingoBrain.Core;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class CheckReadyCtrl : BaseCtrl
|
||||
{
|
||||
public static CheckReadyCtrl Instance { get; private set; }
|
||||
|
||||
private CheckReadyModel model;
|
||||
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
Instance = null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b3785520f184a07b12d2a4c12226a50
|
||||
timeCreated: 1680078649
|
||||
@@ -0,0 +1,23 @@
|
||||
using BingoBrain.Core;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class CheckReadyModel : BaseModel
|
||||
{
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnReset()
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6bcec7807f2b42fc9bf9d52f01d4cb7c
|
||||
timeCreated: 1680078649
|
||||
@@ -0,0 +1,66 @@
|
||||
namespace BingoBrain
|
||||
{
|
||||
using DG.Tweening;
|
||||
using BingoBrain.Core;
|
||||
using UnityEngine;
|
||||
using FairyGUI;
|
||||
|
||||
public class CheckReadyUI : BaseUI
|
||||
{
|
||||
private CheckReadyUICtrl ctrl;
|
||||
private CheckReadyModel model;
|
||||
private FGUI.JNetIdle.com_Netidle ui;
|
||||
|
||||
public CheckReadyUI(CheckReadyUICtrl ctrl) : base(ctrl)
|
||||
{
|
||||
uiName = UIConst.CheckReadyUI;
|
||||
this.ctrl = ctrl;
|
||||
}
|
||||
|
||||
protected override void SetUIInfo(UIInfo uiInfo)
|
||||
{
|
||||
uiInfo.packageName = "JNetIdle";
|
||||
uiInfo.assetName = "com_Netidle";
|
||||
uiInfo.layerType = UILayerType.Tips;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = false;
|
||||
}
|
||||
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnClose()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnBind()
|
||||
{
|
||||
ui = baseUI as FGUI.JNetIdle.com_Netidle;
|
||||
}
|
||||
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
InitView();
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
{
|
||||
ui.alpha = 0;
|
||||
DOTween.To(() => ui.alpha, x => ui.alpha = x, 1, 0.3f);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void InitView()
|
||||
{
|
||||
// EyesHarmony.GetPicture("Atlas.Game", "ic_launcher",
|
||||
// tx => { ui.com_net_loading.loader_gameicon.texture = tx; });
|
||||
|
||||
//ui.com_net_loading.loader_gameicon.texture = new NTexture(Resources.Load<Sprite>("AssetHotFix/Atlas/Game/ic_launcher"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 337f051949bb47fba5be9ab929e7c7b9
|
||||
timeCreated: 1680078649
|
||||
@@ -0,0 +1,71 @@
|
||||
using BingoBrain.Core;
|
||||
using BingoBrain.HotFix;
|
||||
|
||||
namespace BingoBrain
|
||||
{
|
||||
public class CheckReadyUICtrl : BaseUICtrl
|
||||
{
|
||||
private CheckReadyUI ui;
|
||||
private CheckReadyModel model;
|
||||
|
||||
private uint openUIMsg = SkinInfo.CheckReadyUI_Open;
|
||||
private uint closeUIMsg = SkinInfo.CheckReadyUI_Close;
|
||||
|
||||
#region 生命周期
|
||||
|
||||
protected override void OnInit()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnDispose()
|
||||
{
|
||||
}
|
||||
|
||||
public override void OpenUI(object args = null)
|
||||
{
|
||||
if (ui == null)
|
||||
{
|
||||
ui = new CheckReadyUI(this);
|
||||
ui.Open(args);
|
||||
}
|
||||
}
|
||||
|
||||
public override void CloseUI(object args = null)
|
||||
{
|
||||
if (ui != null && !ui.isClose)
|
||||
{
|
||||
ui.Close();
|
||||
}
|
||||
|
||||
ui = null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 消息
|
||||
|
||||
public override uint GetOpenUIMsg(string uiName)
|
||||
{
|
||||
return openUIMsg;
|
||||
}
|
||||
|
||||
public override uint GetCloseUIMsg(string uiName)
|
||||
{
|
||||
return closeUIMsg;
|
||||
}
|
||||
|
||||
protected override void AddListener()
|
||||
{
|
||||
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
|
||||
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
|
||||
}
|
||||
|
||||
protected override void RemoveListener()
|
||||
{
|
||||
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
|
||||
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8c87ccfe5a84604a3b93f69c8796c98
|
||||
timeCreated: 1680078649
|
||||
Reference in New Issue
Block a user