This commit is contained in:
2026-05-15 16:15:09 +08:00
commit dd3b97bb48
4515 changed files with 1165044 additions and 0 deletions
@@ -0,0 +1,21 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class BottomCtrl : BaseCtrl
{
public static BottomCtrl Instance { get; private set; }
private BottomModel model;
protected override void OnInit()
{
Instance = this;
}
protected override void OnDispose()
{
Instance = null;
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 060584ef18174bad89fd4e584daa1e2a
timeCreated: 1678954992
@@ -0,0 +1,19 @@
using BingoBrain.Core;
namespace BingoBrain
{
public class BottomModel : BaseModel
{
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
protected override void OnReset()
{
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6d5f01274c034fbaa06f51ddda444a1b
timeCreated: 1678954992
@@ -0,0 +1,55 @@
using BingoBrain.Core;
using FGUI.ABigImg;
namespace BingoBrain
{
public class BottomUI : BaseUI
{
private BottomUICtrl ctrl;
private BottomModel model;
private com_mainbg ui;
public BottomUI(BottomUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.BottomUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "ABigImg";
uiInfo.assetName = "com_mainbg";
uiInfo.layerType = UILayerType.Background;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = true;
uiInfo.isNeedUIMask = false;
}
#region
protected override void OnInit()
{
}
protected override void OnClose()
{
GlobalHarmony.Out(ui);
}
protected override void OnBind()
{
ui = baseUI as com_mainbg;
}
protected override void OnOpenBefore(object args)
{
}
protected override void OnOpen(object args)
{
GlobalHarmony.In(ui);
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 108fe7d0372a4c84ae591713fa9dd6e0
timeCreated: 1678954992
@@ -0,0 +1,71 @@
using BingoBrain.Core;
using BingoBrain.HotFix;
namespace BingoBrain
{
public class BottomUICtrl : BaseUICtrl
{
private BottomUI ui;
private BottomModel model;
private uint openUIMsg = SkinInfo.BottomUI_Open;
private uint closeUIMsg = SkinInfo.BottomUI_Close;
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new BottomUI(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: ef8105d40abb4d5c87c0b7ab3d703caa
timeCreated: 1678954992