From 7a50ac63a72b478e971e6bc89b2ba3ae2c4334a5 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期三, 31 十月 2018 17:55:41 +0800
Subject: [PATCH] 4512 子 【开发】【1.2.0】神兽功能优化 / 【前端】【1.2.0】神兽功能优化2
---
System/Strengthening/GodBeastEntry.cs | 6 ++++++
System/Strengthening/GodBeastReinforcementWin.cs | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/System/Strengthening/GodBeastEntry.cs b/System/Strengthening/GodBeastEntry.cs
index 78902df..b0d32df 100644
--- a/System/Strengthening/GodBeastEntry.cs
+++ b/System/Strengthening/GodBeastEntry.cs
@@ -18,6 +18,7 @@
[SerializeField] Text m_Item_Text;
[SerializeField] Button m_GodBeastButton;
[SerializeField] RedpointBehaviour m_RedPoint;
+ [SerializeField] Image m_GodBeastIcon;
public Button GodBeastButton
{
get { return m_GodBeastButton; }
@@ -31,6 +32,11 @@
{
int godBeastNumber = locationMarker % 100;//绁炲吔缂栧彿
int godBeastPart = locationMarker / 100;//绁炲吔瑁呭浣岻D
+ var DogZConfig = Config.Instance.Get<DogzConfig>(godBeastNumber);
+ if (DogZConfig != null)
+ {
+ m_GodBeastIcon.SetSprite(DogZConfig.HeadIcon);
+ }
List<ItemModel> itemModel = dogz_model.GetDogzEquips(godBeastNumber);
if (itemModel != null)
{
diff --git a/System/Strengthening/GodBeastReinforcementWin.cs b/System/Strengthening/GodBeastReinforcementWin.cs
index c415375..9f4b081 100644
--- a/System/Strengthening/GodBeastReinforcementWin.cs
+++ b/System/Strengthening/GodBeastReinforcementWin.cs
@@ -23,6 +23,7 @@
public int LocationMarker;//浣嶇疆鏍囪
public int EquipScore;//瑁呭璇勫垎
public int ItemPlace;//鑳屽寘瑁呭浣嶇疆
+ public int GodBeastId;//绁炲吔ID
}
public class GodBeastReinforcementWin : Window
{
@@ -173,6 +174,7 @@
godBeastClass.GodBeastStar = itemModel[i].chinItemModel.StarLevel;
godBeastClass.EquipScore = itemModel[i].equipScore;
godBeastClass.ItemPlace = itemModel[i].itemInfo.ItemPlace;
+ godBeastClass.GodBeastId = key;
var IudetDogzEquipPlus = itemModel[i].GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus);// 绁炲吔瑁呭寮哄寲淇℃伅鍒楄〃 [寮哄寲绛夌骇, 寮哄寲鐔熺粌搴
if (IudetDogzEquipPlus == null)
{
--
Gitblit v1.8.0