bingo 项目提交

This commit is contained in:
2026-04-20 13:49:36 +08:00
commit ad5920ac6a
5585 changed files with 1216243 additions and 0 deletions
@@ -0,0 +1,25 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class BingoWhatCtrl : BaseCtrl
{
public static BingoWhatCtrl Instance { get; private set; }
private BingoWhatModel model;
#region
protected override void OnInit()
{
Instance = this;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 84376285cc28416a80c7089cd95df41f
timeCreated: 1680055697
@@ -0,0 +1,23 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class BingoWhatModel : BaseModel
{
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
protected override void OnReset()
{
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a6fe187c569f4ca3acfde8dd629aaeb6
timeCreated: 1680055697
@@ -0,0 +1,55 @@
using BingoBrain.Core;
using FGUI.JSettings;
namespace BingoBrain
{
public class BingoWhatUI : BaseUI
{
private BingoWhatUICtrl ctrl;
private BingoWhatModel model;
private com_howto ui;
public BingoWhatUI(BingoWhatUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.BingoWhatUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "JSettings";
uiInfo.assetName = "com_howto";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = true;
uiInfo.isNeedCloseAnim = true;
uiInfo.isNeedUIMask = true;
}
#region
protected override void OnInit()
{
}
protected override void OnClose()
{
}
protected override void OnBind()
{
ui = baseUI as com_howto;
}
protected override void OnOpenBefore(object args)
{
ui.closeButton.onClick.Set(CtrlCloseUI);
Audio.Instance.PlayDynamicEffect("pop_open");
}
protected override void OnOpen(object args)
{
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4110349d20ef4022bf99411f14f4a093
timeCreated: 1680055697
@@ -0,0 +1,71 @@
using BingoBrain.Core;
using BingoBrain.HotFix;
namespace BingoBrain
{
public class BingoWhatUICtrl : BaseUICtrl
{
private BingoWhatUI ui;
private BingoWhatModel model;
private uint openUIMsg = SkinInfo.BingoWhatUI_Open;
private uint closeUIMsg = SkinInfo.BingoWhatUI_Close;
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new BingoWhatUI(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: e176357a01ef44c0a19b5e74aa93d6fc
timeCreated: 1680055697