From 902c694bcab0b474f83f3eae5cf5dc1cf180f593 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期五, 12 十月 2018 19:49:26 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Compose/New/ComposeEquipWin.cs | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/System/Compose/New/ComposeEquipWin.cs b/System/Compose/New/ComposeEquipWin.cs
index 79bfc4f..a15ee99 100644
--- a/System/Compose/New/ComposeEquipWin.cs
+++ b/System/Compose/New/ComposeEquipWin.cs
@@ -24,6 +24,8 @@
[SerializeField]
Text successRateText;
+ [SerializeField] Text dismantleText;
+
[SerializeField]
Button helpBtn;
@@ -177,8 +179,8 @@
private void CreateCell()
{
+ dismantleText.gameObject.SetActive(false);
cellCtrl.Refresh();
-
if(curSecondType == 0)
{
ChangeUIState(true, false,false);
@@ -313,7 +315,7 @@
curComposeEquipIndex = -1;
selectModel.ClearSelectModel();
}
-
+
CreateCell();
}
@@ -366,6 +368,24 @@
ItemCompoundConfig tagItemCompound = thirdTypelist[curComposeEquipIndex];
ClickEquipTypeCell(tagItemCompound, curComposeEquipIndex);
}
+
+ if(thirdTypelist.Count > 1)
+ {
+ ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(thirdTypelist[0].makeID);
+ if (itemConfig != null && itemConfig.ItemColor == 6)
+ {
+ dismantleText.gameObject.SetActive(true);
+ }
+ else
+ {
+ dismantleText.gameObject.SetActive(false);
+ }
+ }
+ else
+ {
+ dismantleText.gameObject.SetActive(false);
+ }
+
}
private void RefreshEquipTypeLineCell(ScrollerDataType type, CellView cell)
--
Gitblit v1.8.0