diff --git a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua index ef69aab4d4..9b2f122878 100644 --- a/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Main/MainPanel.lua @@ -334,6 +334,7 @@ function this:BindEvent() --六星前往 Util.AddClick(this.btnSixStarGo,function() + PlayerManager.isSixStarJump=true JumpManager.GoJump(36011) end) diff --git a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua index f0be44a927..21d54853f4 100644 --- a/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Player/PlayerManager.lua @@ -33,6 +33,8 @@ this.now_index = 0 --头像框数据 this.headFrameList = {} this.MainPanelRoleMonveState = false +--是否为从六星玉帝入口跳转进入 +this.isSixStarJump=false --激活的称号 时装 坐骑 this.isRefreshMainPanelNpc = true diff --git a/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua b/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua index ec36512dd1..5fd36b9f7b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recharge/View/EveryDayGift.lua @@ -174,6 +174,9 @@ function EveryDayGift:RefreshGiftData(isTop,isAni) break end end + if PlayerManager.isSixStarJump and curindex==0 then + curindex=7 + end if curindex ~= 0 then --LogGreen("curindex:"..curindex) self.scrollView:SetIndex(curindex) diff --git a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua index e998e8127b..9420301fdd 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua @@ -178,50 +178,25 @@ function this:Refresh() end Util.GetGameObject(self.gameObject,activityType[curType].comp):SetActive(true) - -- local level = 0 - -- if (PlayerManager.level)%10 == 8 then - -- level = PlayerManager.level - -- else - -- level = (math.floor(PlayerManager.level/10)-1)*10+8 - -- end rechargeNum= VipManager.GetChargedNum() - - + curGiftId = rechargeData.goodsId + LogBlue("#curGiftId:"..tostring(curGiftId)) if curType == 1 then - -- this.tip.text = Language[11937]..level..Language[12174] or "" this.tip.text = string.format("恭喜您等级提升至%s级,我们为您准备了超值礼包,助您提升战力!!!",RechargeConfig[curGiftId].Desc) - -- elseif curType == 3 then - -- local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value - -- local num = tonumber(specialConfig) - -- local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId - -- local value2 = GetLanguageStrById(ConfigManager.GetConfigDataByKey(ConfigName.MainLevelConfig,"SortId",math.floor(value/num)*num).Name) - -- this.tip.text =Language[11939]..value2..Language[11940] - -- elseif curType == 4 then - -- local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value - -- local str = string.split(specialConfig,"|") - -- local nums = string.split(str[1],"#") - -- local canGet = false - -- local value = MonsterCampManager.monsterWave - -- local value2 = 0 - -- if value <= tonumber(nums[#nums]) then - -- local temp = tonumber(nums[#nums]) - tonumber(nums[#nums-1]) - -- value2 = math.floor(value/temp) * temp - -- else - -- value2 = math.floor((value - tonumber(nums[#nums]))/tonumber(str[2]))* tonumber(str[2]) + tonumber(nums[#nums]) - -- end + LogPink(string.format("恭喜您等级提升至%s级,我们为您准备了超值礼包,助您提升战力!!!",RechargeConfig[curGiftId].Desc)) elseif curType == 3 then this.tip.text = string.format("恭喜通关当前关卡,我们为您准备了超值礼包,助您战力飙升") + LogYellow(string.format("恭喜通关当前关卡,我们为您准备了超值礼包,助您战力飙升")) elseif curType == 4 then this.tip.text = string.format("恭喜您击败心魔挑战成功,我们为您准备了超值礼包,帮助您击杀心魔快速通关!") + LogYellow(string.format("恭喜您击败心魔挑战成功,我们为您准备了超值礼包,帮助您击杀心魔快速通关!")) else this.tip.text = "" + LogPurple("空的!!!!!!!!!!!") end - -- this.tip.text = curType == 1 and "恭喜您等级提升至"..level.."级,我们为您准备了超值礼包,助您提升战力!!!" or "" - this.arrowsLeft:SetActive(num > 1) this.arrowsRight:SetActive(num > 1) - curGiftId = rechargeData.goodsId curEndTime = rechargeData.endTime this.endTime.text = Language[10573]..TimeToHMS(curEndTime-GetTimeStamp()) this.endTime.gameObject:GetComponent("RectTransform").localPosition = activityType[curType].timePos