| | |
| | | {
|
| | | 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;
|
| | |
| | | {
|
| | | 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");
|
| | |
| | | {
|
| | | 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));
|
| | | }
|
| | |
| | | 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)
|
| | | {
|