bingo b面修改

This commit is contained in:
2026-05-08 11:03:00 +08:00
parent ad5920ac6a
commit 5d32fd56f4
1780 changed files with 36187 additions and 73978 deletions
@@ -71,13 +71,13 @@ namespace BingoBrain
protected override void AddListener()
{
//Hall.Instance.AddChangeGiftSwitch(InitView);
//GameDispatcher.Instance.AddListener(BingoInfo.MainTab, OnGameTab);
GameDispatcher.Instance.AddListener(BingoInfo.MainTab, OnGameTab);
}
protected override void RemoveListener()
{
//Hall.Instance.RemoveChangeGiftSwitch(InitView);
// GameDispatcher.Instance.RemoveListener(BingoInfo.MainTab, OnGameTab);
GameDispatcher.Instance.RemoveListener(BingoInfo.MainTab, OnGameTab);
}
#endregion
@@ -91,13 +91,13 @@ namespace BingoBrain
ui.com_di.btn_main.SetClickDownEffect(0.8f, 1);
ui.com_di.btn_tab_redem.SetClickDownEffect(0.8f, 1);
ui.com_di.btn_hall.SetClickDownEffect(0.8f, 1);
ui.com_di.btn_h5.SetClickDownEffect(0.8f, 1);
ui.com_di.btn_h5.SetClick(OnClickMallTab);
ui.com_di.btn_shop.SetClickDownEffect(0.8f, 1);
ui.com_di.btn_fight.SetClickDownEffect(0.8f, 1);
ui.com_di.btn_shop.SetClick(OnClickMallTab);
ui.com_di.btn_main.SetClick(OnClickMainTab);
ui.com_di.btn_tab_redem.SetClick(OnClickRedeemTab);
ui.com_di.btn_hall.SetClick(OnClickHall);
ui.com_di.btn_fight.SetClick(OnClickfight);
if (GameHelper.IsGiftSwitch() && Random.Range(0, 100) < ConfigSystem.GetConfig<CommonModel>().loginhallrate && (PlayerPrefs.GetInt("first_", 0) == 1))
{
OnClickHall();
@@ -130,6 +130,11 @@ namespace BingoBrain
{
OnGameTab(3);
}
public void OnClickfight()
{
OnGameTab(4);
}
public void OnGameTab(object obj)
{
@@ -144,9 +149,9 @@ namespace BingoBrain
private void OnChangeTab(int tabIndex)
{
ui.com_di.btn_main.cont_select.selectedIndex = tabIndex == 0 ? btn_main.Select_select : btn_main.Select_none;
ui.com_di.btn_h5.cont_select.selectedIndex = tabIndex == 1 ? btn_h5.Select_select : btn_h5.Select_none;
ui.com_di.btn_shop.cont_select.selectedIndex = tabIndex == 1 ? btn_h5.Select_select : btn_h5.Select_none;
ui.com_di.btn_tab_redem.cont_select.selectedIndex = tabIndex == 2 ? btn_todo.Select_select : btn_todo.Select_none;
ui.com_di.btn_hall.cont_select.selectedIndex = tabIndex == 3 ? btn_todo.Select_select : btn_todo.Select_none;
ui.com_di.btn_fight.cont_select.selectedIndex = tabIndex == 4 ? btn_todo.Select_select : btn_todo.Select_none;
}
private void OnClickTab(int tabIndex)
@@ -155,6 +160,7 @@ namespace BingoBrain
UICtrlDispatcher.Instance.Dispatch(tabIndex == 0 ? SkinInfo.BingoHallUI_Open : SkinInfo.BingoHallUI_Close);
UICtrlDispatcher.Instance.Dispatch(tabIndex == 2 ? SkinInfo.BasptUI_Open : SkinInfo.BasptUI_Close);
UICtrlDispatcher.Instance.Dispatch(tabIndex == 3 ? SkinInfo.H5UI_Open : SkinInfo.H5UI_Close);
ui.show_fight.selectedIndex = tabIndex == 4 ? 1 :0;
UICtrlDispatcher.Instance.Dispatch(SkinInfo.SmailUI_Open);
UICtrlDispatcher.Instance.Dispatch(SkinInfo.BottomUI_Open);
Battle.Instance.SetBg(true);