fix:1、添加项目

This commit is contained in:
2026-04-22 09:52:55 +08:00
commit 173cfb2dc9
5871 changed files with 600870 additions and 0 deletions
@@ -0,0 +1,19 @@
namespace FlowerPower
{
public class NetLoadingCtrl : BaseCtrl
{
public static NetLoadingCtrl Instance { get; private set; }
private NetLoadingModel model;
protected override void OnInit()
{
Instance = this;
}
protected override void OnDispose()
{
Instance = null;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6142496ef0da2704a863845e488d9bc2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,15 @@
namespace FlowerPower
{
public class NetLoadingModel : BaseModel
{
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d00cea29eaa93cf4aa58cd57918caf6c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,83 @@
using FairyGUI;
namespace FlowerPower
{
public class NetLoadingUI : BaseUI
{
private NetLoadingUICtrl ctrl;
private NetLoadingModel model;
private FGUI.PC_NetIdle.com_Netidle ui;
public NetLoadingUI(NetLoadingUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.NetLoadingUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "PC_NetIdle";
uiInfo.assetName = "com_Netidle";
uiInfo.layerType = UILayerType.Loading;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = false;
uiInfo.isNeedUIMask = true;
}
#region
protected override void OnInit()
{
}
protected override void OnClose()
{
CommonHelper.FadeOut(ui);
}
protected override void OnBind()
{
ui = baseUI as FGUI.PC_NetIdle.com_Netidle;
}
protected override void OnOpenBefore(object args)
{
InitView();
}
protected override void OnOpen(object args)
{
CommonHelper.FadeIn(ui);
}
protected override void OnHide()
{
}
protected override void OnDisplay(object args)
{
}
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
#endregion
private void InitView()
{
ui.com_net_loading.loader_gameicon.texture = new NTexture(LoadKit.Instance.LoadSprite("Atlas.Game", "icon512"));
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 78e634966cfe17a46a62a8ef22398204
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,64 @@
namespace FlowerPower
{
public class NetLoadingUICtrl : BaseUICtrl
{
private NetLoadingUI ui;
private NetLoadingModel model;
private uint openUIMsg = UICtrlMsg.NetLoadingUI_Open;
private uint closeUIMsg = UICtrlMsg.NetLoadingUI_Close;
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new NetLoadingUI(this);
ui.Open(args);
}
else
{
ui.Display(args);
}
}
public override void CloseUI(object args = null)
{
if (ui != null && !ui.isClose)
{
ui.Close();
}
ui = null;
}
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);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 07064e3ce59096d43a4629e1e38a38ce
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: