fix:1、添加项目。2、基本箭头生成

This commit is contained in:
2026-06-12 18:10:00 +08:00
commit 2d5012e37e
6588 changed files with 665673 additions and 0 deletions
@@ -0,0 +1,84 @@
using FGUI.Game_04;
namespace ChillConnect
{
public class GameMenuUI : BaseUI
{
private GameMenuUICtrl ctrl;
private GameMenuModel model;
private com_game_menu ui;
private string content;
private bool isTerm;
public GameMenuUI(GameMenuUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.GameMenuUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "Game_04";
uiInfo.assetName = "com_game_menu";
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_game_menu;
}
protected override void OnOpenBefore(object args)
{
if (args != null)
{
isTerm = (bool)args;
}
InitView();
}
protected override void OnOpen(object args)
{
}
#endregion
private void InitView()
{
ui.btn_close.SetClick(() =>
{
CtrlCloseUI();
});
ui.btn_exit.SetClick(() =>
{
CtrlCloseUI();
GameDispatcher.Instance.Dispatch(GameMsg.ExitGame);
});
ui.btn_resume.SetClick(() =>
{
CtrlCloseUI();
});
}
}
}