This commit is contained in:
2026-07-02 15:24:25 +08:00
parent cc3c5104d6
commit a4d6cd429b
583 changed files with 22092 additions and 5488 deletions
@@ -90,10 +90,16 @@ public class UIHome_BY_VIPPanel : SubUIBase
for (int i = 0; i < btn_LeaveItemParent.childCount; i++)
{
var tog = btn_LeaveItemParent.GetChild(i).GetComponent<Toggle>();
bool isCurrent = vipConfigs[i].level == vipLevel;
if (vipConfigs[i].level== vipLevel)
{
tog.SetIsOnWithoutNotify(true);
//tog.isOn = true;
// 不触发事件,仅同步显示
tog.SetIsOnWithoutNotify(isCurrent);
}
//bool isCurrent = vipConfigs[i].level == vipLevel;
//// 不触发事件,仅同步显示
//tog.SetIsOnWithoutNotify(isCurrent);
}
}
@@ -191,7 +197,11 @@ public class UIHome_BY_VIPPanel : SubUIBase
if (level <= 7) return 1;
return 2;
}
protected override void OnHide()
{
base.OnHide();
Destroy(this.gameObject);
}
private void ShowGiftItems(List<GiftConfig> gifts, Transform parent)
{
for (int i = parent.childCount - 1; i >= 0; i--)