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
@@ -4,6 +4,8 @@ using DG.Tweening;
using BingoBrain.Core;
using FGUI.JWheel;
using System.Collections.Generic;
using Spine.Unity;
using Newtonsoft.Json;
namespace BingoBrain
{
@@ -18,6 +20,7 @@ namespace BingoBrain
private bool isClickSpin;
private Action CloseCb;
private ParticleSystem fx_zhuangpan_enter;
private SkeletonAnimation wheel_ani;
public BingoToyUI(BingoToyUICtrl ctrl) : base(ctrl)
{
@@ -57,13 +60,18 @@ namespace BingoBrain
protected override void OnOpenBefore(object args)
{
Audio.Instance.PlayDynamicEffect("pop_open");
FX.Instance.SetFx<ParticleSystem>(ui.gp_Fx, Fx_Type.fx_zhuangpan_enter, ps =>
{
fx_zhuangpan_enter = ps;
fx_zhuangpan_enter.gameObject.SetActive(false);
}, CloseCb);
FX.Instance.SetFx<ParticleSystem>(ui.com_wheels.gp_Select, Fx_Type.fx_zhuanpan_Select,
ps => { ps.transform.localPosition = new Vector3(0, 195, 0); }, CloseCb);
// FX.Instance.SetFx<ParticleSystem>(ui.gp_Fx, Fx_Type.fx_zhuangpan_enter, ps =>
// {
// fx_zhuangpan_enter = ps;
// fx_zhuangpan_enter.gameObject.SetActive(false);
// }, CloseCb);
FX.Instance.SetFx<SkeletonAnimation>(ui.gp_Fx, Fx_Type.fx_wheel,
ps =>
{
// ps.transform.localPosition = new Vector3(0, 195, 0);
wheel_ani = ps;
NAAVsa.PlayAnim(wheel_ani, "daiji", true);
}, CloseCb);
ui.com_wheels.gp_Select.visible = false;
@@ -115,21 +123,21 @@ namespace BingoBrain
// PreferencesMgr.Instance.VidelWheelLst.Count < turntableModel.GetCount())
// {
Debug.Log("????????????????ttttttttttttttttt");
PreferencesMgr.Instance.FerrWheelLst.Clear();
PreferencesMgr.Instance.VidelWheelLst.Clear();
var list = turntableModel.GetDataList();
foreach (var item in list)
{
PreferencesMgr.Instance.FerrWheelLst.Add(
item.quantityA[GameHelper.GetDynamicIndex(item.wheel_itemA)]);
PreferencesMgr.Instance.VidelWheelLst.Add(
item.quantityB[GameHelper.GetDynamicIndex(item.wheel_itemB)]);
}
PreferencesMgr.Instance.FerrWheelLst.Clear();
PreferencesMgr.Instance.VidelWheelLst.Clear();
var list = turntableModel.GetDataList();
foreach (var item in list)
{
PreferencesMgr.Instance.FerrWheelLst.Add(
item.quantityA[GameHelper.GetDynamicIndex(item.wheel_itemA)]);
PreferencesMgr.Instance.VidelWheelLst.Add(
item.quantityB[GameHelper.GetDynamicIndex(item.wheel_itemB)]);
}
PreferencesMgr.Instance.SaveFerrWheelLst();
PreferencesMgr.Instance.SaveVidelWheelLst();
PreferencesMgr.Instance.WheelVersion = GameHelper.GetDynamicVersion();
// }
PreferencesMgr.Instance.SaveFerrWheelLst();
PreferencesMgr.Instance.SaveVidelWheelLst();
PreferencesMgr.Instance.WheelVersion = GameHelper.GetDynamicVersion();
// }
}
protected override void OnOpen(object args)
@@ -144,10 +152,11 @@ namespace BingoBrain
private void RefreshUI(object o = null)
{
var turntableModel = GameHelper.GetConfig<TurntableModel>();
for (var i = 0; i < com_RewardLst.Count; i++)
{
var rewards = com_RewardLst[i];
if (GameHelper.IsGiftSwitch()) rewards.gift.selectedIndex = 1;
if (GameHelper.IsGiftSwitch()) rewards.gift.selectedIndex = 1;
var turntable = turntableModel.GetData(i + 1);
int id;
string val;
@@ -161,6 +170,10 @@ namespace BingoBrain
else
{
id = turntable.wheel_itemB;
if(id == 101)
{
PreferencesMgr.Instance.VidelWheelLst[i]=MathF.Ceiling(PreferencesMgr.Instance.VidelWheelLst[i]);
}
val = id == 102
? GameHelper.Get102Str((decimal)PreferencesMgr.Instance.VidelWheelLst[i])
: PreferencesMgr.Instance.VidelWheelLst[i].ToString();
@@ -213,7 +226,6 @@ namespace BingoBrain
ui.btn_spin.grayed = true;
ui.com_Spinn.touchable = false;
ui.com_Spinn.cont_spin.selectedIndex = com_spin.Spin_grey;
ui.closeButton.touchable = false;
ui.com_wheels.rotation = 0;
var index = PreferencesMgr.Instance.IsOnceWheel
? GlobalHarmony.RandomWeight(freeWeight)
@@ -222,9 +234,9 @@ namespace BingoBrain
var turntableModel = GameHelper.GetConfig<TurntableModel>();
var vo = turntableModel.GetData(index + 1);
var angle = UnityEngine.Random.Range(3600 - (vo.Seq - 1) * 45 - 10, 3600 - (vo.Seq - 1) * 45 + 10) +
22.5f;
var angle = UnityEngine.Random.Range(3600 - (vo.Seq - 1) * 45, 3600 - (vo.Seq - 1) * 45)
;
NAAVsa.PlayAnim(wheel_ani, "zhuandong", true);
Audio.Instance.PlayDynamicEffect("wheel_spin");
ui.fx_zhen.Play();
DOTween.To(() => ui.com_wheels.rotation, (e) => ui.com_wheels.rotation = e, angle, model.animationTime)
@@ -237,10 +249,10 @@ namespace BingoBrain
private void OpenReceivePlane(Turntable vo)
{
ui.fx_zhen.Stop();
ui.img_zhen.rotation = 0;
// ui.img_zhen.rotation = 0;
ui.com_wheels.gp_Select.visible = true;
ui.com_wheels.gp_Select.rotation = (vo.Seq - 2) * 45 + 22.5f;
NAAVsa.PlayAnim(wheel_ani, "zhongjiang", true);
DOVirtual.DelayedCall(1.5f, () =>
{
ui.com_wheels.gp_Select.visible = false;
@@ -252,12 +264,13 @@ namespace BingoBrain
ui.btn_spin.grayed = false;
ui.closeButton.grayed = false;
ui.com_Spinn.cont_spin.selectedIndex = com_spin.Spin_none;
NAAVsa.PlayAnim(wheel_ani, "daiji", true);
if (PreferencesMgr.Instance.IsOnceWheel)
{
ui.closeButton.touchable = false;
ui.btn_spin.touchable = false;
// ui.closeButton.touchable = false;
// ui.btn_spin.touchable = false;
ui.com_Spinn.touchable = false;
ui.btn_spin.grayed = true;
// ui.btn_spin.grayed = true;
GameHelper.GetRewardExtra(vo.wheel_itemA, (decimal)PreferencesMgr.Instance.FerrWheelLst[vo.Seq - 1],
vo.cont_index, isCompleted =>
@@ -285,6 +298,7 @@ namespace BingoBrain
ui.btn_spin.grayed = false;
Audio.Instance.PlayDynamicEffect("wheel_show");
}));
});
}
else