From be2f8fb881f04cbd66ea2357dccfd885c6dc93cc Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 04 十二月 2024 14:21:57 +0800
Subject: [PATCH] 10060 所有战令修改展示规则,蒙版图片放到公共图集,统一锁的图片。骑宠养成战令,古宝养成战令文字显示全
---
LogicProject/System/Recharge/CelestialStarTowerCell.cs | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/LogicProject/System/Recharge/CelestialStarTowerCell.cs b/LogicProject/System/Recharge/CelestialStarTowerCell.cs
index 83dcb10..dba5032 100644
--- a/LogicProject/System/Recharge/CelestialStarTowerCell.cs
+++ b/LogicProject/System/Recharge/CelestialStarTowerCell.cs
@@ -7,12 +7,13 @@
{
ImageEx imgUnlockLV;
ImageEx imgFreeHave;
- ImageEx imgFreeLock;
+ ImageEx imgFreeGrey;
TextEx txtUnlockLV;
ItemCell freeItemCell;
List<ItemCell> paidItemCellList = new List<ItemCell>();
List<ImageEx> imgPaidHaveList = new List<ImageEx>();
List<ImageEx> imgPaidLockList = new List<ImageEx>();
+ List<ImageEx> imgPaidGreyList = new List<ImageEx>();
ImageEx imgBrownProgressBar;
ImageEx imgGreenProgressBar;
ImageEx imgBG;
@@ -23,7 +24,7 @@
{
imgUnlockLV = proxy.GetWidgtEx<ImageEx>("imgUnlockLV");
imgFreeHave = proxy.GetWidgtEx<ImageEx>("imgFreeHave0");
- imgFreeLock = proxy.GetWidgtEx<ImageEx>("imgFreeLock0");
+ imgFreeGrey = proxy.GetWidgtEx<ImageEx>("imgFreeGrey0");
txtUnlockLV = proxy.GetWidgtEx<TextEx>("txtUnlockLV");
freeItemCell = proxy.GetWidgtEx<ItemCell>("freeItemCell0");
imgBrownProgressBar = proxy.GetWidgtEx<ImageEx>("imgBrownProgressBar");
@@ -33,6 +34,7 @@
{
imgPaidHaveList.Add(proxy.GetWidgtEx<ImageEx>("imgPaidHave" + i));
imgPaidLockList.Add(proxy.GetWidgtEx<ImageEx>("imgPaidLock" + i));
+ imgPaidGreyList.Add(proxy.GetWidgtEx<ImageEx>("imgPaidGrey" + i));
paidItemCellList.Add(proxy.GetWidgtEx<ItemCell>("paidItemCell" + i));
paidItemCellTweenList.Add(proxy.GetWidgtEx<RotationTween>("paidItemCell" + i));
}
@@ -75,12 +77,14 @@
int freeState = CelestialStarTowerModel.Instance.GetGiftState(3, needValue, true);
int paidState = CelestialStarTowerModel.Instance.GetGiftState(3, needValue, false);
imgFreeHave.SetActiveIL(freeState == 2);
- imgFreeLock.SetActiveIL(freeState == 0);
+ imgFreeGrey.SetActiveIL(freeState == 2);
imgGreenProgressBar.SetActiveIL(freeState != 0);
for (int i = 0; i < paidItemCellList.Count; i++)
{
+ bool isBuy = CelestialStarTowerModel.Instance.zhanLingInfoDict[3].isActivite > 0;
+ imgPaidGreyList[i].SetActiveIL(paidState == 2 || !isBuy);
imgPaidHaveList[i].SetActiveIL(paidState == 2);
- imgPaidLockList[i].SetActiveIL(paidState == 0);
+ imgPaidLockList[i].SetActiveIL(!isBuy);
}
if (ModelCenter.Instance.GetModel<SkyTowerModel>().highestPassFloor < needValue)
{
--
Gitblit v1.8.0