소스 검색

补充提交

zhangyuqian 1 년 전
부모
커밋
a2bcc0096a

+ 12 - 0
GameClient/Assets/Game/HotUpdate/Utils/ItemUtil.cs

@@ -253,6 +253,18 @@ namespace GFGGame
             com.m_loaIcon.url = ResPathUtil.GetCommonGameResPath(cfg1.res);
 
         }
+        public static void UpdateItemAndNeed(GObject obj, int itemId, int needNum, bool ChangeColor = false)
+        {
+            UI_ComCostCurrencyWithHas com = UI_ComCostCurrencyWithHas.Proxy(obj);
+            long hasNum = ItemDataManager.GetItemNum(itemId);
+            string needStrColor = ChangeColor ? "#B99F7B" : "#FDEED4";
+            string strHasNum = StringUtil.GetColorText(hasNum.ToString(), hasNum < needNum ? "#C5645A" : needStrColor); hasNum.ToString();
+            // com.m_txtNeed.text = needNum.ToString();
+            com.m_txtCount.text = string.Format("{0}{1}{2}", strHasNum, StringUtil.GetColorText("/", needStrColor), StringUtil.GetColorText(needNum.ToString(), needStrColor));
+            ItemCfg cfg1 = ItemCfgArray.Instance.GetCfg(itemId);
+            com.m_loaIcon.url = ResPathUtil.GetIconPath(cfg1.res,"png");
+
+        }
         public static void UpdateItemNeedNum(GObject obj, int itemId, int needNum, bool checkNum = true, string color = "#716B59")
         {
             UI_ComCostCurrency com = UI_ComCostCurrency.Proxy(obj);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingSynthetic/ClothingSyntheticView.cs

@@ -203,7 +203,7 @@ namespace GFGGame
                 _selectedItemId = 0;
                 UpdateClothingList(true);
                 LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.FU_ZHUANG_HE_CHENG, 2);
-                //Timers.inst.AddUpdate(CheckGuide);
+                Timers.inst.AddUpdate(CheckGuide);
                 // 发送服装合成成功事件
                 EventAgent.DispatchEvent(ConstMessage.CLOTHING_SYNTHETIC_SUCCESS);
                 EventAgent.DispatchEvent(ConstMessage.STUDIO_FILING_UPDATE);

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/DailyWelfare/ReDailySignTipsView.cs

@@ -77,7 +77,7 @@ namespace GFGGame
             hasNum = ItemDataManager.GetItemNum(FirstCost[0][0]);
             if(hasNum >= FirstCost[0][1])
             {
-                _ui.m_txtTips.text = string.Format("是否确定花费{0}{1}补签?", FirstCost[0][1], ItemCfgArray.Instance.GetCfg(FirstCost[0][0]).name);
+                _ui.m_txtTips.text = string.Format("是否花费{0}进行一次补签?",ItemCfgArray.Instance.GetCfg(FirstCost[0][0]).name);
                 type = 1;
                 itemId = FirstCost[0][0];
                 needNum = FirstCost[0][1];
@@ -88,9 +88,9 @@ namespace GFGGame
                 itemId = SecondCost[0][0];
                 needNum = SecondCost[0][1];
                 hasNum = ItemDataManager.GetItemNum(SecondCost[0][0]);
-                _ui.m_txtTips.text = string.Format("{0}不足,是否确定花费{1}{2}补签?", ItemCfgArray.Instance.GetCfg(SecondCost[0][0]).name, SecondCost[0][1], ItemCfgArray.Instance.GetCfg(SecondCost[0][0]).name);
+                _ui.m_txtTips.text = string.Format("{0}不足,是否花费{1}{2}进行一次补签?", ItemCfgArray.Instance.GetCfg(FirstCost[0][0]).name, SecondCost[0][1], ItemCfgArray.Instance.GetCfg(SecondCost[0][0]).name);
             }
-            ItemUtil.UpdateItemNumAndNeedNum(_ui.m_comCostItem, itemId, needNum, true);
+            ItemUtil.UpdateItemAndNeed(_ui.m_comCostItem, itemId, needNum, true);
         }
         private void OnClickBtnCancel()
         {