|
@@ -132,20 +132,23 @@ namespace GFGGame
|
|
GObject listItem = context.data as GObject;
|
|
GObject listItem = context.data as GObject;
|
|
string[] infos = listItem.data as string[];
|
|
string[] infos = listItem.data as string[];
|
|
string functionId = infos[0];
|
|
string functionId = infos[0];
|
|
|
|
+ object[] temp = viewData as object[];
|
|
|
|
+ int hasNum = ItemDataManager.GetItemNum(_itemId);
|
|
|
|
+ int needCount = 0;
|
|
bool isJump = true;
|
|
bool isJump = true;
|
|
switch (functionId)
|
|
switch (functionId)
|
|
{
|
|
{
|
|
case ConstFunctionId.FU_ZHUANG_DIAN:
|
|
case ConstFunctionId.FU_ZHUANG_DIAN:
|
|
this.Hide();
|
|
this.Hide();
|
|
- object[] temp = viewData as object[];
|
|
|
|
int count = temp.Length > 2 ? (int)temp[2] : 0;
|
|
int count = temp.Length > 2 ? (int)temp[2] : 0;
|
|
|
|
+ needCount = (count - hasNum) > 0 ? count - hasNum : 1;
|
|
int shopId = int.Parse(infos[1]);
|
|
int shopId = int.Parse(infos[1]);
|
|
if (shopId == ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID)
|
|
if (shopId == ConstStoreId.LUCKY_BOX_ACTIVITY_STORE_ID)
|
|
{
|
|
{
|
|
PromptController.Instance.ShowFloatTextPrompt("活动暂未开启");
|
|
PromptController.Instance.ShowFloatTextPrompt("活动暂未开启");
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- isJump = ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { shopId, null, _itemId, count }, _fromeViewDatas, true, true);
|
|
|
|
|
|
+ isJump = ViewManager.Show(ViewName.CLOTHING_SHOP_VIEW, new object[] { shopId, null, _itemId, needCount }, _fromeViewDatas, true, true);
|
|
break;
|
|
break;
|
|
case ConstFunctionId.FU_ZHUANG_DECOMPOSE:
|
|
case ConstFunctionId.FU_ZHUANG_DECOMPOSE:
|
|
this.Hide();
|
|
this.Hide();
|
|
@@ -162,6 +165,7 @@ namespace GFGGame
|
|
isJump = ViewManager.Show<RechargeStoreView>(exchangeValue, _fromeViewDatas);
|
|
isJump = ViewManager.Show<RechargeStoreView>(exchangeValue, _fromeViewDatas);
|
|
break;
|
|
break;
|
|
case ConstFunctionId.JU_QING_GUAN_QIA:
|
|
case ConstFunctionId.JU_QING_GUAN_QIA:
|
|
|
|
+ int needItemCount = temp.Length > 2 ? (int)temp[2] : 0;
|
|
string value = infos[1];
|
|
string value = infos[1];
|
|
var levelCfgId = int.Parse(value);
|
|
var levelCfgId = int.Parse(value);
|
|
var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
|
|
var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
|
|
@@ -184,7 +188,8 @@ namespace GFGGame
|
|
_fromeViewDatas = null;
|
|
_fromeViewDatas = null;
|
|
}
|
|
}
|
|
isJump = ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, levelCfg.chapterId, _fromeViewDatas, true);
|
|
isJump = ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, levelCfg.chapterId, _fromeViewDatas, true);
|
|
- InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel);
|
|
|
|
|
|
+ InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel, _itemId, needItemCount);
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
else if (levelCfg.type == ConstInstanceZonesType.Studio)
|
|
else if (levelCfg.type == ConstInstanceZonesType.Studio)
|
|
{
|
|
{
|
|
@@ -228,12 +233,12 @@ namespace GFGGame
|
|
|
|
|
|
ViewManager.Show(viewName, new object[] { type, 0 }, _fromeViewDatas);
|
|
ViewManager.Show(viewName, new object[] { type, 0 }, _fromeViewDatas);
|
|
StudioDataManager.Instance.VIEW_NAME = viewName;
|
|
StudioDataManager.Instance.VIEW_NAME = viewName;
|
|
- InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel);
|
|
|
|
|
|
+ InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel, _itemId, needItemCount);
|
|
isJump = true;
|
|
isJump = true;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- isJump = true;
|
|
|
|
- StoryController.ShowLevelView(levelCfgId);
|
|
|
|
|
|
+ // isJump = true;
|
|
|
|
+ // StoryController.ShowLevelView(levelCfgId);
|
|
// StoryController.ShowLevelView(levelCfgId);
|
|
// StoryController.ShowLevelView(levelCfgId);
|
|
break;
|
|
break;
|
|
case ConstFunctionId.FU_ZHUANG_HE_CHENG:
|
|
case ConstFunctionId.FU_ZHUANG_HE_CHENG:
|