bingo b面修改

This commit is contained in:
2026-05-08 11:03:44 +08:00
parent ad5920ac6a
commit 5d32fd56f4
1780 changed files with 36187 additions and 73978 deletions
@@ -1,8 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using BingoBrain.Core;
namespace BingoBrain
namespace BingoBrain
{
public class RecordViewCtrl : BaseCtrl
{
@@ -10,14 +8,18 @@ using BingoBrain.Core;
private RecordViewModel model;
#region
protected override void OnInit()
{
Instance = this;
//model = ModuleManager.Instance..GetModel(ModelConst.RecordViewModel) as RecordViewModel;
}
protected override void OnDispose()
{
Instance = null;
}
#endregion
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5c219c03fd1474d73bd17b07c7df43c7
guid: ad133fc8d24bd3e4392d1d483e156019
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -1,9 +1,11 @@
using System.Collections.Generic;
using BingoBrain.Core;
namespace BingoBrain
{
public class RecordViewModel : BaseModel
{
#region
public List<string> recordList = new List<string>();
protected override void OnInit()
{
@@ -15,7 +17,8 @@ namespace BingoBrain
protected override void OnReset()
{
throw new System.NotImplementedException();
}
#endregion
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 8267bf1de4e9949828f446ca83bcacfa
guid: c68b8b32fc927ea468ccee7c68846d2d
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -1,20 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BingoBrain.Core;
using BingoBrain.HotFix;
using DG.Tweening;
using FairyGUI;
using FGUI.ACommon;
using System;
using DG.Tweening;
using FGUI.bkg_jilu;
using Unity.VisualScripting;
using UnityEngine;
namespace BingoBrain
{
public class RecordViewUI : BaseUI
{
private RecordViewUICtrl ctrl;
private RecordViewModel model;
public RecordViewUICtrl ctrl;
public RecordViewModel model;
private FGUI.bkg_jilu.com_jilu ui;
public RecordViewUI(RecordViewUICtrl ctrl) : base(ctrl)
@@ -28,15 +28,15 @@ namespace BingoBrain
uiInfo.packageName = "bkg_jilu";
uiInfo.assetName = "com_jilu";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = true;
uiInfo.isNeedCloseAnim = true;
uiInfo.isNeedOpenAnim = false;
uiInfo.isNeedCloseAnim = false;
uiInfo.isNeedUIMask = true;
}
#region
protected override void OnInit()
{
//model = ModuleManager.Instance.GetModel(ModelConst.RecordViewModel) as RecordViewModel;
}
protected override void OnClose()
@@ -49,7 +49,7 @@ namespace BingoBrain
protected override void OnBind()
{
ui = baseUI as FGUI.bkg_jilu.com_jilu;
ui = baseUI as com_jilu;
}
protected override void OnOpenBefore(object args)
@@ -86,7 +86,7 @@ namespace BingoBrain
}
#endregion
private bool isroll = false;
private bool isroll;
private List<GObject> list_panel = new List<GObject>();
@@ -102,7 +102,7 @@ namespace BingoBrain
UpdateRecord();
}
private Coroutine coroutine = null;
private Coroutine coroutine;
public void UpdateRecord()
{
if (ctrl.model == null || ctrl.model.recordList.Count == 0) return;
@@ -129,11 +129,10 @@ namespace BingoBrain
string[] values = ctrl.model.recordList[index].Split('-');
item.name.text = values[0];
item.num.text = "$" + values[1]; // 假设 money 是显示金额的字段
item.num.text = GameHelper.getChString(decimal.Parse(values[1]));
string[] parts = values[2].Split(" ");
item.time.text = parts[0];
item.lab_claim.text = GameHelper.getDesByKey("ww");
}
private IEnumerator ScrollRoutine()
@@ -145,8 +144,8 @@ namespace BingoBrain
{
if (i < list_panel.Count) // 再次检查索引是否有效
{
float targetY = list_panel[i].y - 129;
GObjectMoveFunc.MoveTween(list_panel[i], targetY);
float targetY = list_panel[i].y - 110;
list_panel[i].MoveTween(targetY);
}
}
@@ -172,13 +171,14 @@ namespace BingoBrain
{
obj.TweenMove(new Vector2(obj.x, targetY), 0.5f)
.SetEase((EaseType)Ease.Linear)
.OnComplete(()=>{
if (targetY <= -16)
{
// 第一个 item 放到最后一个位置
obj.y = 1048;
}
.OnComplete(() =>
{
if (targetY <= -16)
{
// 第一个 item 放到最后一个位置
obj.y = 890;
}
});
}
}
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1ead525ed41bd47bb87703021c40c757
guid: 401f77facf125e0439d09580a69ddae7
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -1,23 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BingoBrain.Core;
using BingoBrain.HotFix;
using UnityEngine;
namespace BingoBrain
{
public class RecordViewUICtrl : BaseUICtrl
{
private RecordViewUI ui;
public RecordViewUI ui;
public RecordViewModel model;
private uint openUIMsg = UICtrlMsg.RecordViewUI_Open;
private uint closeUIMsg = UICtrlMsg.RecordViewUI_Close;
private uint openUIMsg = SkinInfo.RecordViewUI_Open;
private uint closeUIMsg = SkinInfo.RecordViewUI_Close;
#region
protected override void OnInit()
{
model = ModuleBoardk.GetModel(ModelConst.RecordViewModel) as RecordViewModel;
model = ModuleBoardk.Instance.GetModel(ModelConst.RecordViewModel) as RecordViewModel;
}
protected override void OnDispose()
@@ -57,16 +56,32 @@ namespace BingoBrain
{
uiCtrlDispatcher.AddListener(openUIMsg, OpenUI);
uiCtrlDispatcher.AddListener(closeUIMsg, CloseUI);
GameDispatcher.Instance.AddListener(GameMsg.updateRecordList, RefreshList);
GameDispatcher.Instance.AddListener(BingoInfo.updateRecordList, RefreshList);
}
protected override void RemoveListener()
{
uiCtrlDispatcher.RemoveListener(openUIMsg, OpenUI);
uiCtrlDispatcher.RemoveListener(closeUIMsg, CloseUI);
GameDispatcher.Instance.RemoveListener(GameMsg.updateRecordList, RefreshList);
GameDispatcher.Instance.RemoveListener(BingoInfo.updateRecordList, RefreshList);
}
void RefreshList(object args = null)
{
Debug.Log("????????????????0");
Debug.Log(args);
Debug.Log(model);
Debug.Log(model.recordList);
if (args == null || model.recordList == null) return;
Debug.Log("????????????????1");
if (model.recordList.Count >= 9)
{
model.recordList.RemoveAt(0);
}
model.recordList.Add(args.ToString());
ui?.UpdateRecord();
}
protected override void AddServerListener()
{
@@ -74,23 +89,6 @@ namespace BingoBrain
protected override void RemoveServerListener()
{
}
void RefreshList(object args = null)
{
if (args == null || model.recordList == null) return;
// Debug.Log($" barry refresh args == {args}");
// Debug.Log($" barry refresh list == {model.recordList.Count}");
if (model.recordList.Count >= 9)
{
model.recordList.RemoveAt(0);
}
model.recordList.Add(args.ToString());
ui?.UpdateRecord();
}
#endregion
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f4b262c4e5a954831be8cf5baf8aff72
guid: 25d0f566135c40f478971ffae78516c8
MonoImporter:
externalObjects: {}
serializedVersion: 2