|
@@ -28,10 +28,10 @@ namespace GFGGame
|
|
|
private const int SORT_BY_LOW_SCORE = 1;
|
|
|
private int _scoreIndex = SORT_BY_HIGH_SCORE;
|
|
|
|
|
|
- private const int GUIDE_SY = 10476;
|
|
|
private bool _guideMenu;
|
|
|
|
|
|
- private UI_TypeItem listTypeItem_SingleFight;
|
|
|
+ private UI_TypeItem listTypeItem_SingleFight_Sy;
|
|
|
+ private UI_TypeItem listTypeItem_SingleFight_Xz;
|
|
|
private UI_TypeItem listTypeItem_BuyClothing;
|
|
|
|
|
|
|
|
@@ -82,6 +82,7 @@ namespace GFGGame
|
|
|
_ui.m_partsList2.m_list.onClickItem.Add(OnClickSuitPartsListItem);
|
|
|
_ui.m_touchPad.onClick.Add(OnTouchPad);
|
|
|
_ui.m_btnHint.onClick.Add(OnClickBtnHint);
|
|
|
+ _ui.m_btnGuide.onClick.Add(OnTouchPad);
|
|
|
_ui.m_btnClose.onClick.Add(OnClickBtnClose);
|
|
|
_ui.m_btnDelete.onClick.Add(OnClickBtnDelete);
|
|
|
_ui.m_btnNext.onClick.Add(OnClickBtnNext);
|
|
@@ -190,7 +191,7 @@ namespace GFGGame
|
|
|
EventAgent.RemoveEventListener(ConstMessage.DRESS_UP_SCORE_CHANGED, UpdateScore);
|
|
|
_fightCfg = null;
|
|
|
_levelCfg = null;
|
|
|
- listTypeItem_SingleFight = null;
|
|
|
+ listTypeItem_SingleFight_Sy = null;
|
|
|
listTypeItem_BuyClothing = null;
|
|
|
|
|
|
|
|
@@ -863,27 +864,41 @@ namespace GFGGame
|
|
|
{
|
|
|
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
- if (listTypeItem_SingleFight == null && GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 || listTypeItem_BuyClothing == null && GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0)
|
|
|
+
|
|
|
+
|
|
|
+ if (listTypeItem_SingleFight_Sy == null && GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 || listTypeItem_SingleFight_Xz == null && GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 || listTypeItem_BuyClothing == null && GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0)
|
|
|
{
|
|
|
- int len = _ui.m_comListType1.m_listType.numChildren;
|
|
|
- for (int i = 0; i < len; i++)
|
|
|
+ // int len = _ui.m_comListType1.m_listType.numChildren;
|
|
|
+ for (int i = 0; i < _ui.m_comListType1.m_listType.numChildren; i++)
|
|
|
{
|
|
|
UI_TypeItem item = UI_TypeItem.Proxy(_ui.m_comListType1.m_listType.GetChildAt(i));
|
|
|
if (item != null)
|
|
|
{
|
|
|
int menuID = (int)item.target.data;
|
|
|
DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
|
|
|
- if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0)
|
|
|
- {
|
|
|
|
|
|
- if (dressUpMenuItemCfg1.type == ConstDressUpItemType.LIAN_YI_QUN)
|
|
|
- {
|
|
|
- listTypeItem_SingleFight = item;
|
|
|
- // _ui.m_comListType1.m_listType.ScrollToView(i);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- else if (GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0)
|
|
|
+ // if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0)
|
|
|
+ // {
|
|
|
+
|
|
|
+ // if (dressUpMenuItemCfg1.type == ConstDressUpItemType.SHANG_YI)
|
|
|
+ // {
|
|
|
+ // listTypeItem_SingleFight_Sy = item;
|
|
|
+ // // _ui.m_comListType1.m_listType.ScrollToView(i);
|
|
|
+ // // break;
|
|
|
+ // syIndex = i;
|
|
|
+ // }
|
|
|
+ // if (dressUpMenuItemCfg1.type == ConstDressUpItemType.XIA_ZHUANG)
|
|
|
+ // {
|
|
|
+ // listTypeItem_SingleFight_Xz = item;
|
|
|
+ // // _ui.m_comListType1.m_listType.ScrollToView(i);
|
|
|
+ // // break;
|
|
|
+ // xzIndex = i;
|
|
|
+
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+
|
|
|
+ if (GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0)
|
|
|
{
|
|
|
int type = 0;
|
|
|
if (_fightCfg.needItemId > 0) type = ItemUtilCS.GetItemSubType(_fightCfg.needItemId);
|
|
@@ -891,7 +906,7 @@ namespace GFGGame
|
|
|
if (_fightCfg.needSuitId > 0) type = ConstDressUpItemType.TAO_ZHUANG;
|
|
|
|
|
|
|
|
|
- if (dressUpMenuItemCfg1.type == type)
|
|
|
+ if (listTypeItem_BuyClothing == null && dressUpMenuItemCfg1.type == type)
|
|
|
{
|
|
|
listTypeItem_BuyClothing = item;
|
|
|
// _ui.m_comListType1.m_listType.ScrollToView(i);
|
|
@@ -902,10 +917,42 @@ namespace GFGGame
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (listTypeItem_SingleFight != null) GuideController.TryGuide(listTypeItem_SingleFight.target, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰", -1, true, (int)listTypeItem_SingleFight.target.y);
|
|
|
-
|
|
|
- GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 4, "找到这条裙子了,换上看看吧", -1, true, (int)_ui.m_partsList.m_list.y);
|
|
|
- GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 5, "接下来验证一下,换上的服饰是否符合需求");
|
|
|
+ int syIndex = 0;
|
|
|
+ int xzIndex = 0;
|
|
|
+ int len = _ui.m_comListType1.m_listType.numChildren;
|
|
|
+ for (int i = 0; i < len; i++)
|
|
|
+ {
|
|
|
+ UI_TypeItem item = UI_TypeItem.Proxy(_ui.m_comListType1.m_listType.GetChildAt(i));
|
|
|
+ if (item != null)
|
|
|
+ {
|
|
|
+ int menuID = (int)item.target.data;
|
|
|
+ DressUpMenuItemCfg1 dressUpMenuItemCfg1 = DressUpMenuItemCfg1Array.Instance.GetCfg(menuID);
|
|
|
+ if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 && dressUpMenuItemCfg1.type == ConstDressUpItemType.LIAN_YI_QUN)
|
|
|
+ {
|
|
|
+ syIndex = i;
|
|
|
+ }
|
|
|
+ if (GuideDataManager.IsGuideFinish(ConstGuideId.SINGLE_FIGHT) <= 0 && dressUpMenuItemCfg1.type == ConstDressUpItemType.XIE_ZI)
|
|
|
+ {
|
|
|
+ xzIndex = i;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ int djcId = 10476;//点绛唇Id
|
|
|
+ int djcIndex = 0;
|
|
|
+ for (int i = 0; i < _currentList3.Count; i++)
|
|
|
+ {
|
|
|
+ if (_currentList3[i] == djcId)
|
|
|
+ {
|
|
|
+ djcIndex = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰", syIndex);
|
|
|
+ GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 4, "", 0, true, (int)_ui.m_partsList.m_list.y);
|
|
|
+ GuideController.TryGuide(_ui.m_btnGuide, ConstGuideId.SINGLE_FIGHT, 5, "", -1, true, 0, 0, 0, false);
|
|
|
+ // GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.SINGLE_FIGHT, 6, "接下来把裙子也换上", xzIndex);
|
|
|
+ // GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 7, "", 0, true, (int)_ui.m_partsList.m_list.y);
|
|
|
+ GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 6, "穿着完毕,来验证一下,换上的服饰是否符合需求");
|
|
|
|
|
|
GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 1, "当提示有“必需品”时,需要穿上对应物品才能通关", -1, true, 170);
|
|
|
if (listTypeItem_BuyClothing != null) GuideController.TryGuide(listTypeItem_BuyClothing.target, ConstGuideId.BUY_CLOTHING, 5, "在相应分类里就可以找到必需品啦", -1, true, (int)listTypeItem_BuyClothing.target.y);
|