|
|
@@ -29,10 +29,20 @@ namespace GFGGame
|
|
|
|
|
|
private const float DURATION = 0.6f;
|
|
|
|
|
|
- private readonly int[] HEAD_Y_ARR = new int[] { ConstDressUpItemType.TOU_SHI, ConstDressUpItemType.ER_SHI, ConstDressUpItemType.JING_SHI, ConstDressUpItemType.ZHUANG_RONG };
|
|
|
+ private readonly int[] HEAD_Y_ARR = new int[]
|
|
|
+ {
|
|
|
+ ConstDressUpItemType.TOU_SHI, ConstDressUpItemType.ER_SHI, ConstDressUpItemType.JING_SHI,
|
|
|
+ ConstDressUpItemType.ZHUANG_RONG
|
|
|
+ };
|
|
|
+
|
|
|
private readonly int[] FA_XING_Y_ARR = new int[] { ConstDressUpItemType.FA_XING };
|
|
|
- private readonly int[] UPPER_BODY_Y_ARR = new int[] { ConstDressUpItemType.NEI_DA, ConstDressUpItemType.SHANG_YI };
|
|
|
- private readonly int[] LOWER_BODY_Y_ARR = new int[] { ConstDressUpItemType.XIA_ZHUANG, ConstDressUpItemType.SHOU_SHI };
|
|
|
+
|
|
|
+ private readonly int[] UPPER_BODY_Y_ARR = new int[]
|
|
|
+ { ConstDressUpItemType.NEI_DA, ConstDressUpItemType.SHANG_YI };
|
|
|
+
|
|
|
+ private readonly int[] LOWER_BODY_Y_ARR = new int[]
|
|
|
+ { ConstDressUpItemType.XIA_ZHUANG, ConstDressUpItemType.SHOU_SHI };
|
|
|
+
|
|
|
private readonly int[] SHOES_Y_ARR = new int[] { ConstDressUpItemType.WA_ZI, ConstDressUpItemType.XIE_ZI };
|
|
|
|
|
|
private UI_ClothingSyntheticUI _ui;
|
|
|
@@ -65,6 +75,7 @@ namespace GFGGame
|
|
|
_imgSelected.RemoveFromParent();
|
|
|
_imgSelected.Dispose();
|
|
|
}
|
|
|
+
|
|
|
if (_dressUpObjUI != null)
|
|
|
{
|
|
|
_dressUpObjUI.Dispose();
|
|
|
@@ -76,6 +87,7 @@ namespace GFGGame
|
|
|
_ui.Dispose();
|
|
|
_ui = null;
|
|
|
}
|
|
|
+
|
|
|
base.Dispose();
|
|
|
}
|
|
|
|
|
|
@@ -112,13 +124,14 @@ namespace GFGGame
|
|
|
_ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hc_bj_1");
|
|
|
|
|
|
UpdateMaskHeight();
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
protected override void AddEventListener()
|
|
|
{
|
|
|
base.AddEventListener();
|
|
|
EventAgent.AddEventListener(ConstMessage.ITEM_CHANGED, OnItemNumChanged);
|
|
|
}
|
|
|
+
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
@@ -129,9 +142,10 @@ namespace GFGGame
|
|
|
{
|
|
|
_suitId = (int)(this.viewData as object[])[0];
|
|
|
_selectedItemId = (this.viewData as object[]).Length > 1 ? (int)(this.viewData as object[])[1] : 0;
|
|
|
- if((this.viewData as object[]).Length > 2)
|
|
|
+ if ((this.viewData as object[]).Length > 2)
|
|
|
_chapterID = (int)(this.viewData as object[])[2];
|
|
|
}
|
|
|
+
|
|
|
UpdateCardSyntheticBtn();
|
|
|
|
|
|
if (DressUpMenuSuitDataManager.chooseClothing > 0)
|
|
|
@@ -140,7 +154,7 @@ namespace GFGGame
|
|
|
_valueBarController.OnShown();
|
|
|
_ui.m_loaBg2.url = ResPathUtil.GetBgImgPath("hc_bj_1");
|
|
|
UpdateClothingList(false);
|
|
|
-
|
|
|
+
|
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
|
}
|
|
|
|
|
|
@@ -151,14 +165,16 @@ namespace GFGGame
|
|
|
_ui.m_listMaterias.selectedIndex = 0;
|
|
|
Timers.inst.Remove(CheckGuide);
|
|
|
_dressUpObjUI.dressUpObj.TakeOffAll();
|
|
|
- if(_chapterID > 0)
|
|
|
+ if (_chapterID > 0)
|
|
|
MainStoryDataManager.currentChapterCfgId = _chapterID;
|
|
|
}
|
|
|
+
|
|
|
protected override void RemoveEventListener()
|
|
|
{
|
|
|
base.RemoveEventListener();
|
|
|
EventAgent.RemoveEventListener(ConstMessage.ITEM_CHANGED, OnItemNumChanged);
|
|
|
}
|
|
|
+
|
|
|
private void OnClickBtnBack()
|
|
|
{
|
|
|
DressUpMenuSuitDataManager.chooseClothing = 0;
|
|
|
@@ -192,12 +208,14 @@ namespace GFGGame
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- List<ItemData> materiarsOfSelectedItem = ItemUtil.CreateItemDataList(itemCfg.SyntheticMateriars.ToGfgGameItemParam());
|
|
|
+ List<ItemData> materiarsOfSelectedItem =
|
|
|
+ ItemUtil.CreateItemDataList(itemCfg.SyntheticMateriars.ToGfgGameItemParam());
|
|
|
for (int i = 0; i < materiarsOfSelectedItem.Count; i++)
|
|
|
{
|
|
|
ItemData itemData = materiarsOfSelectedItem[i];
|
|
|
if (itemData == null || !ItemUtil.CheckItemEnough(itemData.id, itemData.num, true)) return;
|
|
|
}
|
|
|
+
|
|
|
bool result = await ClothingSyntheticSProxy.ClothtingSynthetic(_selectedItemId);
|
|
|
if (result)
|
|
|
{
|
|
|
@@ -209,7 +227,6 @@ namespace GFGGame
|
|
|
EventAgent.DispatchEvent(ConstMessage.CLOTHING_SYNTHETIC_SUCCESS);
|
|
|
EventAgent.DispatchEvent(ConstMessage.STUDIO_FILING_UPDATE);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private void ListClothingItemRender(int index, GObject item)
|
|
|
@@ -223,11 +240,13 @@ namespace GFGGame
|
|
|
listItem.m_txtName.text = itemName;
|
|
|
listItem.m_imgOwned.visible = ItemDataManager.GetItemNum(itemId) > 0;
|
|
|
|
|
|
- RedDotController.Instance.SetComRedDot(listItem.target, RedDotDataManager.Instance.CheckCanSynthetic(itemId), "", -18, 20);
|
|
|
+ RedDotController.Instance.SetComRedDot(listItem.target,
|
|
|
+ RedDotDataManager.Instance.CheckCanSynthetic(itemId), "", -18, 20);
|
|
|
UI_ClothingListItem.ProxyEnd();
|
|
|
}
|
|
|
|
|
|
private EaseType ease = EaseType.CubicOut;
|
|
|
+
|
|
|
private void UpdateRole(bool tween)
|
|
|
{
|
|
|
// 隐藏遮罩
|
|
|
@@ -250,6 +269,7 @@ namespace GFGGame
|
|
|
duration = 0;
|
|
|
_ui.m_hide.Play();
|
|
|
}
|
|
|
+
|
|
|
var dy = _ui.m_compHolder.target.height - 642;
|
|
|
if (Array.IndexOf(HEAD_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
@@ -259,24 +279,28 @@ namespace GFGGame
|
|
|
else if (Array.IndexOf(FA_XING_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
_compMover.target.TweenMoveY(FA_XING_Y + dy, duration).SetEase(ease);
|
|
|
- _compMover.target.TweenScale(new Vector2(FA_XING_SCALE * rate, FA_XING_SCALE * rate), duration).SetEase(ease);
|
|
|
+ _compMover.target.TweenScale(new Vector2(FA_XING_SCALE * rate, FA_XING_SCALE * rate), duration)
|
|
|
+ .SetEase(ease);
|
|
|
}
|
|
|
else if (Array.IndexOf(UPPER_BODY_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
_ui.m_compHolder.m_compHolder.m_compMover.target.TweenMoveY(UPPER_BODY_Y + dy, duration).SetEase(ease);
|
|
|
- _compMover.target.TweenScale(new Vector2(UPPER_BODY_SCALE * rate, UPPER_BODY_SCALE * rate), duration).SetEase(ease);
|
|
|
+ _compMover.target.TweenScale(new Vector2(UPPER_BODY_SCALE * rate, UPPER_BODY_SCALE * rate), duration)
|
|
|
+ .SetEase(ease);
|
|
|
}
|
|
|
else if (Array.IndexOf(LOWER_BODY_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
_ui.m_loaBg2.visible = true;
|
|
|
_compMover.target.TweenMoveY(LOWER_BODY_Y + dy, duration).SetEase(ease);
|
|
|
- _compMover.target.TweenScale(new Vector2(LOWER_BODY_SCALE * rate, LOWER_BODY_SCALE * rate), duration).SetEase(ease);
|
|
|
+ _compMover.target.TweenScale(new Vector2(LOWER_BODY_SCALE * rate, LOWER_BODY_SCALE * rate), duration)
|
|
|
+ .SetEase(ease);
|
|
|
}
|
|
|
else if (Array.IndexOf(SHOES_Y_ARR, type) >= 0)
|
|
|
{
|
|
|
_ui.m_loaBg2.visible = true;
|
|
|
_compMover.target.TweenMoveY(SHOES_Y + dy, duration).SetEase(ease);
|
|
|
- _compMover.target.TweenScale(new Vector2(SHOES_SCALE * rate, SHOES_SCALE * rate), duration).SetEase(ease);
|
|
|
+ _compMover.target.TweenScale(new Vector2(SHOES_SCALE * rate, SHOES_SCALE * rate), duration)
|
|
|
+ .SetEase(ease);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -288,7 +312,6 @@ namespace GFGGame
|
|
|
{
|
|
|
Timers.inst.StartCoroutine(DelayShow());
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
@@ -328,9 +351,11 @@ namespace GFGGame
|
|
|
{
|
|
|
index = i;
|
|
|
}
|
|
|
+
|
|
|
UI_ClothingListItem.ProxyEnd();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
_ui.m_listClothing.ScrollToView(index);
|
|
|
_ui.m_listClothing.selectedIndex = index;
|
|
|
UpdateSelectedItemInfo(_ui.m_listClothing.GetChildAt(index) as GComponent, tween);
|
|
|
@@ -370,14 +395,18 @@ namespace GFGGame
|
|
|
Log.Error($"请为物品 {clothingSyntheticCfg.Id} 增加合成相关配置!");
|
|
|
return;
|
|
|
}
|
|
|
- ItemUtil.UpdateItemNeedNum(_ui.m_comCostCurrency, clothingSyntheticCfg.SyntheticCostID, clothingSyntheticCfg.SyntheticCostNum);
|
|
|
- _materiarsOfSelectedItem = ItemUtil.CreateItemDataList(clothingSyntheticCfg.SyntheticMateriars.ToGfgGameItemParam());
|
|
|
+
|
|
|
+ ItemUtil.UpdateItemNeedNum(_ui.m_comCostCurrency, clothingSyntheticCfg.SyntheticCostID,
|
|
|
+ clothingSyntheticCfg.SyntheticCostNum);
|
|
|
+ _materiarsOfSelectedItem =
|
|
|
+ ItemUtil.CreateItemDataList(clothingSyntheticCfg.SyntheticMateriars.ToGfgGameItemParam());
|
|
|
_ui.m_listMaterias.numItems = _materiarsOfSelectedItem.Count;
|
|
|
|
|
|
|
|
|
_ui.m_listMaterias.selectedIndex = 0;
|
|
|
_ui.m_btnProduction.grayed = ItemDataManager.GetItemNum(_selectedItemId) > 0;
|
|
|
}
|
|
|
+
|
|
|
private void RenderListMateriasItem(int index, GObject obj)
|
|
|
{
|
|
|
UI_MateriasListItem listItem = UI_MateriasListItem.Proxy(obj);
|
|
|
@@ -401,6 +430,7 @@ namespace GFGGame
|
|
|
listItem.target.data = index;
|
|
|
UI_MateriasListItem.ProxyEnd();
|
|
|
}
|
|
|
+
|
|
|
private void OnClickMateriasItemPlus(EventContext context)
|
|
|
{
|
|
|
GuideCfg cfg = CommonDataManager.Tables.TblGuideCfg.GetOrDefault(ConstGuideId.CLOTHING_SYNTHETIC);
|
|
|
@@ -408,11 +438,13 @@ namespace GFGGame
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
if (ItemDataManager.GetItemNum(_selectedItemId) > 0)
|
|
|
{
|
|
|
PromptController.Instance.ShowFloatTextPrompt("该部件已制作完成");
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
int index = (int)(context.data as GObject).data;
|
|
|
_ui.m_listMaterias.selectedIndex = index;
|
|
|
ItemData itemData = _materiarsOfSelectedItem[index];
|
|
|
@@ -421,7 +453,13 @@ namespace GFGGame
|
|
|
ET.Log.Error("OnClickMateriasItemPlus itemData is null");
|
|
|
return;
|
|
|
}
|
|
|
- object[] sourceDatas = new object[] { itemData.id, new object[] { typeof(ClothingSyntheticView).FullName, new object[] { _suitId, _selectedItemId } }, (int)itemData.num };
|
|
|
+
|
|
|
+ object[] sourceDatas = new object[]
|
|
|
+ {
|
|
|
+ itemData.id,
|
|
|
+ new object[] { typeof(ClothingSyntheticView).FullName, new object[] { _suitId, _selectedItemId } },
|
|
|
+ (int)itemData.num
|
|
|
+ };
|
|
|
GoodsItemTipsController.ShowItemTips(itemData.id, sourceDatas);
|
|
|
}
|
|
|
|
|
|
@@ -450,9 +488,10 @@ namespace GFGGame
|
|
|
{
|
|
|
GameController.GoBackToMainView();
|
|
|
}
|
|
|
+
|
|
|
private void CheckGuide(object param)
|
|
|
{
|
|
|
- if (GuideDataManager.IsGuideFinish(ConstGuideId.CLOTHING_SYNTHETIC) <= 0
|
|
|
+ if (GuideDataManager.IsGuideFinish(ConstGuideId.CLOTHING_SYNTHETIC) <= 0
|
|
|
|| (GuideDataManager.IsGuideFinish(ConstGuideId.CARD_HECHENG) <= 0 && IsGetSuit()))
|
|
|
{
|
|
|
UpdateToCheckGuide(null);
|
|
|
@@ -462,12 +501,15 @@ namespace GFGGame
|
|
|
Timers.inst.Remove(CheckGuide);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
protected override void UpdateToCheckGuide(object param)
|
|
|
{
|
|
|
if (ViewManager.isViewOpen(typeof(GuideView).Name))
|
|
|
{
|
|
|
- (ViewManager.GetUIView(typeof(GuideView).Name) as GuideView).viewCom.visible = !ViewManager.isViewOpen(typeof(GetSuitItemVIew).Name);
|
|
|
+ (ViewManager.GetUIView(typeof(GuideView).Name) as GuideView).viewCom.visible =
|
|
|
+ !ViewManager.isViewOpen(typeof(GetSuitItemVIew).Name);
|
|
|
}
|
|
|
+
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
|
|
|
int itemId = 10566;
|
|
|
@@ -484,29 +526,34 @@ namespace GFGGame
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- bool guide = GuideController.TryGuide(_ui.m_listClothing, ConstGuideId.CLOTHING_SYNTHETIC, 3, "找到需要合成的物品。", itemIndex);
|
|
|
+ bool guide = GuideController.TryGuide(_ui.m_listClothing, ConstGuideId.CLOTHING_SYNTHETIC, 3, "找到需要合成的物品。",
|
|
|
+ itemIndex);
|
|
|
if (guide) _ui.m_listClothing.ScrollToView(itemIndex);
|
|
|
|
|
|
- GuideController.TryGuide(_ui.m_listMaterias, ConstGuideId.CLOTHING_SYNTHETIC, 4, "这里可以查看合成需要的材料,和材料的获取途径。", 0);
|
|
|
+ GuideController.TryGuide(_ui.m_listMaterias, ConstGuideId.CLOTHING_SYNTHETIC, 4, "这里可以查看合成需要的材料,和材料的获取途径。",
|
|
|
+ 0);
|
|
|
UI_MateriasListItem.ProxyEnd();
|
|
|
|
|
|
GuideController.TryGuide(_ui.m_btnProduction, ConstGuideId.CLOTHING_SYNTHETIC, 5, "点击获得新的服饰。");
|
|
|
GuideController.TryGuide(_ui.m_btnBack, ConstGuideId.CLOTHING_SYNTHETIC, 6, "获得新衣服啦,继续通关主线剧情吧。");
|
|
|
|
|
|
GuideController.TryGuide(_ui.m_cardSyntheticBtn, ConstGuideId.CARD_HECHENG, 1, "领取卡牌。");
|
|
|
- GuideController.TryGuide(null, ConstGuideId.CARD_HECHENG, 2, "获得套装卡牌后可进行技能书合成!", -1, true, _ui.target.height - 600);
|
|
|
+ GuideController.TryGuide(null, ConstGuideId.CARD_HECHENG, 2, "获得套装卡牌后可进行技能书合成!", -1, true,
|
|
|
+ _ui.target.height - 600);
|
|
|
GuideController.TryGuide(_ui.m_cardSyntheticBtn, ConstGuideId.CARD_HECHENG, 3, "进入卡牌合成");
|
|
|
}
|
|
|
+
|
|
|
protected override void TryCompleteGuide()
|
|
|
{
|
|
|
base.TryCompleteGuide();
|
|
|
GuideController.TryCompleteGuideIndex(ConstGuideId.CARD_HECHENG, 3);
|
|
|
GuideController.TryCompleteGuide(ConstGuideId.CARD_HECHENG, 3);
|
|
|
}
|
|
|
- /// <summary>
|
|
|
- /// 按照屏幕尺寸 更新遮罩的高度
|
|
|
- /// </summary>
|
|
|
- /// <returns></returns>
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 按照屏幕尺寸 更新遮罩的高度
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
private async Task UpdateMaskHeight()
|
|
|
{
|
|
|
await Task.Delay(5);
|
|
|
@@ -519,38 +566,58 @@ namespace GFGGame
|
|
|
/// </summary>
|
|
|
private void SetSoftMask()
|
|
|
{
|
|
|
- var handle = YooAssets.LoadAssetSync<Material>(ResPathUtil.GetMaterialPath("ImageGradient"));
|
|
|
- Material m = handle.AssetObject as Material;
|
|
|
- Material copyM = new Material(m.shader);
|
|
|
- handle.Release();
|
|
|
- copyM.CopyPropertiesFromMaterial(m);
|
|
|
-
|
|
|
- _ui.m_loaBg2.material = copyM;
|
|
|
- _ui.m_loaBg2.position = _ui.m_loaBg.position;
|
|
|
- float startY = _ui.m_loaBg2Pos.position.y;
|
|
|
- float endY = _ui.m_posHelper.position.y + ViewGlobal.GetRealTopOffset();
|
|
|
- float rate = 1 - ((Mathf.Abs(startY - endY)) / _ui.m_loaBg2.height);
|
|
|
- _ui.m_loaBg2.material.SetFloat("_MinHeight", rate - 0.01f);
|
|
|
- _ui.m_loaBg2.material.SetFloat("_MaxHeight", rate - 0.03f);
|
|
|
+ string materialPath = ResPathUtil.GetMaterialPath("ImageGradient");
|
|
|
+ var operation = YooAssets.LoadAssetAsync<Material>(materialPath);
|
|
|
+ operation.Completed += (op) =>
|
|
|
+ {
|
|
|
+ if (op.Status == EOperationStatus.Succeed && _ui != null && _ui.m_loaBg2 != null)
|
|
|
+ {
|
|
|
+ Material m = op.AssetObject as Material;
|
|
|
+ if (m != null)
|
|
|
+ {
|
|
|
+ Material copyM = new Material(m.shader);
|
|
|
+ copyM.CopyPropertiesFromMaterial(m);
|
|
|
+
|
|
|
+ _ui.m_loaBg2.material = copyM;
|
|
|
+ _ui.m_loaBg2.position = _ui.m_loaBg.position;
|
|
|
+
|
|
|
+ float startY = _ui.m_loaBg2Pos.position.y;
|
|
|
+ float endY = _ui.m_posHelper.position.y + ViewGlobal.GetRealTopOffset();
|
|
|
+ float rate = 1 - Mathf.Abs(startY - endY) / _ui.m_loaBg2.height;
|
|
|
+
|
|
|
+ _ui.m_loaBg2.material.SetFloat("_MinHeight", rate - 0.01f);
|
|
|
+ _ui.m_loaBg2.material.SetFloat("_MaxHeight", rate - 0.03f);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Debug.LogError($"Failed to load material: {materialPath}");
|
|
|
+ }
|
|
|
+
|
|
|
+ // 记得释放资源
|
|
|
+ op.Release();
|
|
|
+ };
|
|
|
}
|
|
|
|
|
|
private void RemoveSoftMask()
|
|
|
{
|
|
|
_ui.m_loaBg2.material = null;
|
|
|
}
|
|
|
+
|
|
|
private void UpdateCardSyntheticBtn()
|
|
|
{
|
|
|
- int count = CommonDataManager.Tables.TblItemCfg.GetGroup1BySuitId(_suitId).Count - 1;
|
|
|
+ int count = CommonDataManager.Tables.TblItemCfg.GetGroup1BySuitId(_suitId).Count - 1;
|
|
|
ItemCfg item = CommonDataManager.Tables.TblItemCfg.GetGroup1BySuitId(_suitId)[count];
|
|
|
_cardID = item.Id;
|
|
|
int rewardStatus = DressUpMenuSuitDataManager.GetSuitSyntheticRewardStatus(_suitId);
|
|
|
|
|
|
- if(item.SyntheticTimes > 0)
|
|
|
+ if (item.SyntheticTimes > 0)
|
|
|
{
|
|
|
_ui.m_cardSyntheticBtn.visible = true;
|
|
|
- if(rewardStatus == 1)
|
|
|
+ if (rewardStatus == 1)
|
|
|
{
|
|
|
- _ui.m_cardSyntheticBtn.icon = ResPathUtil.GetIconPath(CommonDataManager.Tables.TblItemCfg.GetOrDefault(_cardID).Res,"png");
|
|
|
+ _ui.m_cardSyntheticBtn.icon =
|
|
|
+ ResPathUtil.GetIconPath(CommonDataManager.Tables.TblItemCfg.GetOrDefault(_cardID).Res, "png");
|
|
|
RedDotController.Instance.SetComRedDot(_ui.m_cardSyntheticBtn, true, "", -18, 20);
|
|
|
}
|
|
|
else
|
|
|
@@ -563,7 +630,6 @@ namespace GFGGame
|
|
|
{
|
|
|
_ui.m_cardSyntheticBtn.visible = false;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
private async void OnClickBtnCardSyntheticView()
|
|
|
@@ -571,7 +637,7 @@ namespace GFGGame
|
|
|
int rewardStatus = DressUpMenuSuitDataManager.GetSuitSyntheticRewardStatus(_suitId);
|
|
|
if (DressUpMenuSuitDataManager.CheckHaveSuit(_suitId))
|
|
|
{
|
|
|
- if(rewardStatus == 1)
|
|
|
+ if (rewardStatus == 1)
|
|
|
{
|
|
|
bool result = await ClothingSyntheticSProxy.GetSuitGetReward(_suitId);
|
|
|
UpdateCardSyntheticBtn();
|
|
|
@@ -579,22 +645,24 @@ namespace GFGGame
|
|
|
else
|
|
|
{
|
|
|
ViewManager.Show<CardSyntheticView>(new object[] { _cardID, _selectedItemId });
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
PromptController.Instance.ShowFloatTextPrompt("集齐套装后可领取卡牌奖励");
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
private bool IsGetSuit()
|
|
|
{
|
|
|
- int count = 0;//套装当前拥有的部件数量
|
|
|
+ int count = 0; //套装当前拥有的部件数量
|
|
|
int totalCount = 1;
|
|
|
DressUpMenuSuitDataManager.GetSuitProgressBySuitId(_suitId, out count, out totalCount);
|
|
|
if (count >= totalCount)
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
}
|