|
@@ -1,6 +1,9 @@
|
|
|
+using System;
|
|
|
using System.Collections;
|
|
|
using FairyGUI;
|
|
|
using UI.ClothingFoster;
|
|
|
+using UI.CommonGame;
|
|
|
+
|
|
|
namespace GFGGame
|
|
|
{
|
|
|
public class SuitFosterFinishView : BaseWindow
|
|
@@ -8,7 +11,7 @@ namespace GFGGame
|
|
|
private UI_SuitFosterFinishUI _ui;
|
|
|
private int _suitId;
|
|
|
private int _index;
|
|
|
- private SortedList _propertyList;
|
|
|
+ private SortedList _lastPropertyList;
|
|
|
private SortedList _curPropertyList;
|
|
|
public override void Dispose()
|
|
|
{
|
|
@@ -35,19 +38,42 @@ namespace GFGGame
|
|
|
base.OnShown();
|
|
|
_suitId = (int)(this.viewData as object[])[0];
|
|
|
_index = (int)(this.viewData as object[])[1];
|
|
|
-
|
|
|
- _propertyList = (this.viewData as object[])[1] as SortedList;
|
|
|
+ _ui.m_grpRenew.visible = false;
|
|
|
+ _ui.m_bg.touchable = false;
|
|
|
+ _lastPropertyList = (this.viewData as object[])[2] as SortedList;
|
|
|
SuitFosterDataManager.Instance.GetPropertyData(_suitId, _index, out _curPropertyList, out SortedList _addPropertyList);
|
|
|
|
|
|
SuitFosterData data = SuitFosterDataManager.Instance.GetSuitFosterData(_suitId);
|
|
|
SuitFosterListCfg cfg = SuitFosterListCfgArray.Instance.GetCfg(_suitId);
|
|
|
|
|
|
- _ui.m_grpRenew.visible = data.maintainStep >= cfg.renewOpenLv;
|
|
|
- for (int i = 0; i < ConstDressUpScoreType.scoreTypeList().Count; i++)
|
|
|
+ int count = ConstDressUpScoreType.scoreTypeList().Count;
|
|
|
+ for (int i = 0; i < count; i++)
|
|
|
{
|
|
|
+ UI_ListPropertyItem comPrpperty = UI_ListPropertyItem.Proxy(_ui.target.GetChild("comProperty" + i).asCom);
|
|
|
+ UI_ListPropertyItem comAddPrpperty = UI_ListPropertyItem.Proxy(_ui.target.GetChild("comAddProperty" + i).asCom);
|
|
|
+ int property = (int)_lastPropertyList[i + 1];
|
|
|
+ int addProperty = (int)_curPropertyList[i + 1];
|
|
|
|
|
|
+ comPrpperty.m_txtProperty.text = StringUtil.GetColorText(property.ToString(), "#5B4A3B");
|
|
|
+ comAddPrpperty.m_txtProperty.text = StringUtil.GetColorText(addProperty.ToString(), addProperty == property ? "#5B4A3B" : "#FFDE9E");
|
|
|
}
|
|
|
-
|
|
|
+ _ui.m_t0.Play(() =>
|
|
|
+ {
|
|
|
+ int num = 0;
|
|
|
+ Timers.inst.Add(0.1f, 10, (param) =>
|
|
|
+ {
|
|
|
+ num++;
|
|
|
+ _ui.m_img.fillAmount += 0.1f;
|
|
|
+ if (num == 10)
|
|
|
+ {
|
|
|
+ _ui.m_t1.Play(() =>
|
|
|
+ {
|
|
|
+ _ui.m_grpRenew.visible = data.maintainStep >= cfg.renewOpenLv;
|
|
|
+ _ui.m_bg.touchable = true;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
protected override void OnHide()
|