fix:1、添加兑换code界面。2、更改单双指的禁用和开启(打开其他界面时)

This commit is contained in:
2026-06-24 11:22:55 +08:00
parent f0f102fe4c
commit 65a797d384
36 changed files with 341 additions and 28 deletions
@@ -0,0 +1,19 @@
namespace ChillConnect
{
public class RedeemCodeCtrl : BaseCtrl
{
public static RedeemCodeCtrl Instance { get; private set; }
private RedeemCodeModel model;
protected override void OnInit()
{
Instance = this;
}
protected override void OnDispose()
{
Instance = null;
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a93167d1dab140d2917cf72e64e89770
timeCreated: 1782269723
@@ -0,0 +1,15 @@
namespace ChillConnect
{
public class RedeemCodeModel : BaseModel
{
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 20b6c254390a48eabb165d883f54bf67
timeCreated: 1782269723
@@ -0,0 +1,75 @@
using System.Collections;
using System.Globalization;
using DG.Tweening;
using FairyGUI;
using FGUI.Loading_25;
using FGUI.tixian;
using UnityEngine;
namespace ChillConnect
{
public class RedeemCodeUI : BaseUI
{
private RedeemCodeUICtrl ctrl;
private RedeemCodeModel model;
private com_redeem_code ui;
public RedeemCodeUI(RedeemCodeUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.RedeemCodeUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "tixian";
uiInfo.assetName = "com_redeem_code";
uiInfo.layerType = UILayerType.Loading;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = false;
uiInfo.isNeedUIMask = false;
}
#region
protected override void OnInit()
{
}
protected override void OnClose()
{
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, true);
}
protected override void OnBind()
{
ui = baseUI as com_redeem_code;
}
protected override void OnOpenBefore(object args)
{
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, false);
}
protected override void OnOpen(object args)
{
}
#endregion
#region
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 02aaefad43c146b18cb726f31814007e
timeCreated: 1782269723
@@ -0,0 +1,64 @@
namespace ChillConnect
{
public class RedeemCodeUICtrl : BaseUICtrl
{
private RedeemCodeUI ui;
private RedeemCodeModel model;
private uint openUIMsg = UICtrlMsg.RedeemCodeUI_Open;
private uint closeUIMsg = UICtrlMsg.RedeemCodeUI_Close;
#region
protected override void OnInit()
{
}
protected override void OnDispose()
{
}
public override void OpenUI(object args = null)
{
if (ui == null)
{
ui = new RedeemCodeUI(this);
ui.Open(args);
}
}
public override void CloseUI(object args = null)
{
if (ui is { isClose: false })
{
ui.Close();
}
ui = null;
}
#endregion
public override uint GetOpenUIMsg(string uiName)
{
return openUIMsg;
}
public override uint GetCloseUIMsg(string uiName)
{
return closeUIMsg;
}
protected override void AddListener()
{
AppDispatcher.Instance.AddListener(AppMsg.UI_DisplayLoadingUI, OpenUI);
}
protected override void RemoveListener()
{
AppDispatcher.Instance.RemoveListener(AppMsg.UI_DisplayLoadingUI, OpenUI);
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: db2d94c85bfc42988faab968658f117e
timeCreated: 1782269723