|
@@ -71,6 +71,7 @@ namespace GFGGame
|
|
|
var pos = _ui.m_StartIndex.position;
|
|
|
var endX = _ui.m_EndIndex.position.x;
|
|
|
_ui.m_barPerson.max = maxScore;
|
|
|
+ _ui.m_barPerson.value = LeagueDataManager.Instance.RoleTeapartyInfoProto.PerScore;
|
|
|
//Ñ»·ÉèÖÃUI
|
|
|
foreach (var cfg in teapartyRewardRoleCfg)
|
|
|
{
|
|
@@ -113,14 +114,14 @@ namespace GFGGame
|
|
|
private async void OnClickReward(EventContext context)
|
|
|
{
|
|
|
if (!(context.sender is GObject btnGet)) return;
|
|
|
- var activity7DaysCfg = (Activity7DaysCfg)btnGet.data;
|
|
|
- var id = activity7DaysCfg.id;
|
|
|
- if (!ActivityDay7DataManager.Instance.CheckActivityDay7RewardCanGet(id))
|
|
|
+ int[][] stageReward = (int[][])btnGet.data;
|
|
|
+ int id = stageReward[0][0];
|
|
|
+ if (!LeagueDataManager.Instance.CheckTeaPartyPersonRewardCanGet(id))
|
|
|
{
|
|
|
- GoodsItemTipsController.ShowItemTips(activity7DaysCfg.bonusArr[0][0]);
|
|
|
+ GoodsItemTipsController.ShowItemTips(id);
|
|
|
return;
|
|
|
}
|
|
|
- var result = await ActivityDay7SProxy.ReqGetActivityDay7Reward(activity7DaysCfg);
|
|
|
+ var result = await LeagueSproxy.GetPerRatingAward(id);
|
|
|
if (!result) return;
|
|
|
FreshGetStatus();
|
|
|
}
|
|
@@ -134,7 +135,8 @@ namespace GFGGame
|
|
|
var maxScore = maxCfg.targetScore;
|
|
|
var pos = _ui.m_StartLeagueIndex.position;
|
|
|
var endX = _ui.m_EndLeagueIndex.position.x;
|
|
|
- _ui.m_barPerson.max = maxScore;
|
|
|
+ _ui.m_barGroups.max = maxScore;
|
|
|
+ _ui.m_barGroups.value = LeagueDataManager.Instance.RoleTeapartyInfoProto.LeagueScore;
|
|
|
//Ñ»·ÉèÖÃUI
|
|
|
foreach (var cfg in teapartyRewardLeagueCfgs)
|
|
|
{
|
|
@@ -177,14 +179,14 @@ namespace GFGGame
|
|
|
private async void OnClickLeagueReward(EventContext context)
|
|
|
{
|
|
|
if (!(context.sender is GObject btnGet)) return;
|
|
|
- var activity7DaysCfg = (Activity7DaysCfg)btnGet.data;
|
|
|
- var id = activity7DaysCfg.id;
|
|
|
- if (!ActivityDay7DataManager.Instance.CheckActivityDay7RewardCanGet(id))
|
|
|
+ int[][] stageReward = (int[][])btnGet.data;
|
|
|
+ int id = stageReward[0][0];
|
|
|
+ if (!LeagueDataManager.Instance.CheckTeaPartyPersonRewardCanGet(id))
|
|
|
{
|
|
|
- GoodsItemTipsController.ShowItemTips(activity7DaysCfg.bonusArr[0][0]);
|
|
|
+ GoodsItemTipsController.ShowItemTips(id);
|
|
|
return;
|
|
|
}
|
|
|
- var result = await ActivityDay7SProxy.ReqGetActivityDay7Reward(activity7DaysCfg);
|
|
|
+ var result = await LeagueSproxy.GetPerRatingAward(id);
|
|
|
if (!result) return;
|
|
|
FreshGetStatus();
|
|
|
}
|