From fb4b1ed3c3366f993136e1f9a442bb2dc6d758ab Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 26 九月 2018 22:35:18 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Strengthening/GodBeastAttributes.cs |   28 ++++++++++++++++++++++++----
 1 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/System/Strengthening/GodBeastAttributes.cs b/System/Strengthening/GodBeastAttributes.cs
index 03cf1f7..75414a2 100644
--- a/System/Strengthening/GodBeastAttributes.cs
+++ b/System/Strengthening/GodBeastAttributes.cs
@@ -207,10 +207,7 @@
                     m_BottomBox.SetActive(false);
                     m_Text_two.SetActive(false);
                     m_FrameNull.SetActive(false);
-                    m_TextAttributes1.gameObject.SetActive(false);
-                    m_TextAttributes2.gameObject.SetActive(false);
-                    m_TextAttributesAdd1.gameObject.SetActive(false);
-                    m_TextAttributesAdd2.gameObject.SetActive(false);
+                    FullLevelAttributes();//璁剧疆婊$骇灞炴��
                     m_FullLevel.SetActive(true);
                     GodBeast_Number = GodBeastNumber;
                     GodBeast_Part = GodBeastPart;
@@ -496,6 +493,29 @@
             }
 
         }
+        private void FullLevelAttributes()//璁剧疆婊$骇灞炴��
+        {
+            var DogzEquipConfig = DogzEquipPlusConfig.GetEquipplaceAndLevel(GodBeastPart, DogZLv);
+            int[] AttType = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attType);
+            int[] AttValue = ConfigParse.GetMultipleStr<int>(DogzEquipConfig.attValue);
+            m_TextAttributesAdd1.gameObject.SetActive(false);
+            m_TextAttributesAdd2.gameObject.SetActive(false);
+            if (AttType.Length > 1)
+            {
+                m_TextAttributes1.gameObject.SetActive(true);
+                m_TextAttributes2.gameObject.SetActive(true);
+                string StrName1 = Config.Instance.Get<PlayerPropertyConfig>(AttType[0]).Name;
+                string StrName2 = Config.Instance.Get<PlayerPropertyConfig>(AttType[1]).Name;
+                m_TextAttributes1.text = StrName1 + ":" + AttValue[0];
+                m_TextAttributes2.text = StrName2 + ":" + AttValue[1];
+            }
+            else
+            {
+                m_TextAttributes2.gameObject.SetActive(false);
+                string StrName1 = Config.Instance.Get<PlayerPropertyConfig>(AttType[0]).Name;
+                m_TextAttributes1.text = StrName1 + ":" + AttValue[0];
+            }
+        }
     }
 
 }

--
Gitblit v1.8.0