Update - 1.9.0.107

EN: 1.9.0.107
CN: 1.9.0.108
JP: 1.9.0.112
KR: 1.9.0.112
This commit is contained in:
SL1900
2026-05-14 16:00:00 +09:00
parent 4b880806ef
commit eafd8f4088
1034 changed files with 809589 additions and 23067 deletions
+16 -8
View File
@@ -29,7 +29,8 @@ ScoreBossClearBDCtrl._mapNodeConfig = {
btnCancel = {
sComponentName = "NaviButton",
callback = "OnClickCancel",
sAction = "Giveup"
sAction = "Giveup",
sActionIconType = "Dark"
},
txtBtnCancel = {
nCount = 2,
@@ -39,7 +40,8 @@ ScoreBossClearBDCtrl._mapNodeConfig = {
btnConfirm1 = {
sComponentName = "NaviButton",
callback = "OnClickConfirm",
sAction = "Confirm"
sAction = "Confirm",
sActionIconType = "Dark"
},
txtConfirm1_ = {
nCount = 2,
@@ -118,12 +120,18 @@ function ScoreBossClearBDCtrl:RefreshLevelMsg()
local imgItemRare = char:Find("t_char_head/imgItemRare"):GetComponent("Image")
local mapChar = ConfigTable.GetData_Character(tmpCharId[j])
local mapCharData = PlayerData.Char:GetCharDataByTid(tmpCharId[j])
local nCharSkinId = mapCharData.nSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
self:SetPngSprite(imgItemIcon, mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
local nRarity = mapChar.Grade
local sFrame = AllEnum.FrameType_New.BoardFrame .. AllEnum.BoardFrameColor[mapChar.Grade]
self:SetAtlasSprite(imgItemRare, "12_rare", sFrame, true)
if mapCharData ~= nil then
local nCharSkinId = mapCharData.nSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
if mapCharSkin ~= nil then
self:SetPngSprite(imgItemIcon, mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
end
end
if mapChar ~= nil then
local nRarity = mapChar.Grade
local sFrame = AllEnum.FrameType_New.BoardFrame .. AllEnum.BoardFrameColor[mapChar.Grade]
self:SetAtlasSprite(imgItemRare, "12_rare", sFrame, true)
end
local charLeader = char:Find("charLeader")
local charSub = char:Find("charSub")
local txtLeader = charLeader:Find("imgLeader/txtLeader"):GetComponent("TMP_Text")
+6 -2
View File
@@ -35,12 +35,14 @@ ScoreBossPauseCtrl._mapNodeConfig = {
btnBack = {
sComponentName = "NaviButton",
callback = "OnBtnClick_Close",
sAction = "Back"
sAction = "Back",
sActionIconType = "Dark"
},
btnAgain = {
sComponentName = "NaviButton",
callback = "OnBtnClick_Restart",
sAction = "ScoreBossRetry"
sAction = "ScoreBossRetry",
sActionIconType = "Dark"
},
btnSettings = {
sComponentName = "NaviButton",
@@ -138,6 +140,8 @@ function ScoreBossPauseCtrl:Awake()
}
self._mapNode.ActionBar:InitActionBar(tbConfig)
end
function ScoreBossPauseCtrl:OnDisable()
end
function ScoreBossPauseCtrl:Pause(nLevelId, tbCharId)
self.tbChar = tbCharId
self.nLevelId = nLevelId
@@ -51,6 +51,7 @@ function ScoreBossRankingCtrl:Awake()
self._mapRankingGrid = {}
end
function ScoreBossRankingCtrl:OnDisable()
EventManager.Hit(EventId.BlockInput, false)
for go, mapCtrl in pairs(self._mapRankingGrid) do
self:UnbindCtrlByNode(mapCtrl)
end
@@ -76,6 +77,10 @@ function ScoreBossRankingCtrl:OnEnable()
NovaAPI.SetTMPText(self._mapNode.txtLoading, ConfigTable.GetUIText("STRanking_Empty"))
end
end)
if self.timerRefreshRanking ~= nil then
self.timerRefreshRanking:Cancel()
self.timerRefreshRanking = nil
end
self.timerRefreshRanking = self:AddTimer(0, 600, function()
PlayerData.ScoreBoss:SendScoreBossApplyReq(function()
local rankPlayerCount = PlayerData.ScoreBoss:GetRankPlayerCount()
@@ -147,14 +152,16 @@ function ScoreBossRankingCtrl:PlayGridItemAnim()
end
for k, v in ipairs(self.tbGridInUse) do
local goGrid = sv.transform:Find("Viewport/Content/" .. v)
local animRoot = goGrid:GetComponent("Animator")
if animRoot ~= nil then
animRoot.gameObject:SetActive(false)
end
if k == 1 and animRoot ~= nil then
animRoot.gameObject:SetActive(true)
nItemAnimLen = NovaAPI.GetAnimClipLength(animRoot, {sAnim})
animRoot:Play(sAnim, 0, 0)
if goGrid ~= nil then
local animRoot = goGrid:GetComponent("Animator")
if animRoot ~= nil then
animRoot.gameObject:SetActive(false)
end
if k == 1 and animRoot ~= nil then
animRoot.gameObject:SetActive(true)
nItemAnimLen = NovaAPI.GetAnimClipLength(animRoot, {sAnim})
animRoot:Play(sAnim, 0, 0)
end
end
end
local nCurIndex = 1
@@ -170,8 +177,10 @@ function ScoreBossRankingCtrl:PlayGridItemAnim()
local goGrid = sv.transform:Find("Viewport/Content/" .. self.tbGridInUse[nCurIndex])
if goGrid ~= nil then
local animRoot = goGrid:GetComponent("Animator")
animRoot.gameObject:SetActive(true)
animRoot:Play(sAnim, 0, 0)
if animRoot ~= nil then
animRoot.gameObject:SetActive(true)
animRoot:Play(sAnim, 0, 0)
end
end
end, true, true, true)
end
@@ -35,16 +35,16 @@ function ScoreBossRankingPlayerInfoCtrl:Refresh(mapSelfRanking)
self.gameObject:SetActive(true)
NovaAPI.SetTMPText(self._mapNode.TMPPlayerName, PlayerData.Base:GetPlayerNickName())
NovaAPI.SetTMPText(self._mapNode.TMPPlayerLevel, tostring(PlayerData.Base:GetWorldClass()))
local nPre, nSuf = PlayerData.Base:GetPlayerTitle()
if nPre == 0 or nSuf == 0 then
NovaAPI.SetTMPText(self._mapNode.TMPPlayerTitle, "")
return
end
local sTitle = orderedFormat(ConfigTable.GetUIText("FriendPanel_PlayerTitle") or "", ConfigTable.GetData("Title", nPre).Desc, ConfigTable.GetData("Title", nSuf).Desc)
NovaAPI.SetTMPText(self._mapNode.TMPPlayerTitle, sTitle)
local nHeadId = PlayerData.Base:GetPlayerHeadId()
local mapCfg = ConfigTable.GetData("PlayerHead", nHeadId)
self:SetPngSprite(self._mapNode.imgHead, mapCfg.Icon)
local nPre, nSuf = PlayerData.Base:GetPlayerTitle()
if nPre ~= 0 and nSuf ~= 0 then
local sTitle = orderedFormat(ConfigTable.GetUIText("FriendPanel_PlayerTitle") or "", ConfigTable.GetData("Title", nPre).Desc, ConfigTable.GetData("Title", nSuf).Desc)
NovaAPI.SetTMPText(self._mapNode.TMPPlayerTitle, sTitle)
else
NovaAPI.SetTMPText(self._mapNode.TMPPlayerTitle, "")
end
if mapSelfRanking == nil then
self._mapNode.rtEmpty:SetActive(true)
self._mapNode.rtRankingInfo:SetActive(false)
@@ -70,18 +70,23 @@ function ScoreBossRankingTeamDetailCtrl:Refresh(mapRanking)
self._mapNode.tcChar1_[k]:SetActive(false)
end
local tbCurLevelGroups = ConfigTable.GetData("ScoreBossControl", PlayerData.ScoreBoss.ControlId)
self.mapRankingSwitched = {
mapRanking.Teams[1],
mapRanking.Teams[2]
}
if tbCurLevelGroups ~= nil and next(tbCurLevelGroups) ~= nil then
local nFirstLevelId = tbCurLevelGroups.LevelGroup[1]
if mapRanking.Teams ~= nil and mapRanking.Teams[1] ~= nil and mapRanking.Teams[2] ~= nil and mapRanking.Teams[1].LevelId ~= nil and mapRanking.Teams[1].LevelId ~= nFirstLevelId then
local tbTempTeams = mapRanking.Teams[1]
mapRanking.Teams[1] = mapRanking.Teams[2]
mapRanking.Teams[2] = tbTempTeams
self.mapRankingSwitched = {
mapRanking.Teams[2],
mapRanking.Teams[1]
}
end
end
self.mapRanking = mapRanking
if mapRanking.Teams ~= nil and mapRanking.Teams[1] ~= nil then
if mapRanking.Teams[1].LevelId ~= nil and mapRanking.Teams[1].LevelId > 0 then
local bossLevelData = ConfigTable.GetData("ScoreBossLevel", mapRanking.Teams[1].LevelId)
if self.mapRankingSwitched[1] ~= nil then
if self.mapRankingSwitched[1].LevelId ~= nil and self.mapRankingSwitched[1].LevelId > 0 then
local bossLevelData = ConfigTable.GetData("ScoreBossLevel", self.mapRankingSwitched[1].LevelId)
local mData = ConfigTable.GetData("Monster", bossLevelData.MonsterId)
local mSkin = ConfigTable.GetData("MonsterSkin", mData.FAId)
local mManual = ConfigTable.GetData("MonsterManual", mSkin.MonsterManual)
@@ -90,21 +95,21 @@ function ScoreBossRankingTeamDetailCtrl:Refresh(mapRanking)
NovaAPI.SetTMPText(self._mapNode.txtTeam[1], ConfigTable.GetUIText("ScoreBossRankingTeamOne"))
end
self._mapNode.imgTeamBG[1]:SetActive(true)
local rank = PlayerData.Build:CalBuildRank(mapRanking.Teams[1].BuildScore)
local rank = PlayerData.Build:CalBuildRank(self.mapRankingSwitched[1].BuildScore)
local sScore = "Icon/BuildRank/BuildRank_" .. rank.Id
self:SetPngSprite(self._mapNode.imgScoreIcon_1, sScore)
local txtLevelScore = string.formatnumberthousands(mapRanking.Teams[1].LevelScore)
local txtLevelScore = string.formatnumberthousands(self.mapRankingSwitched[1].LevelScore)
local txtLevelScoreTitle = ConfigTable.GetUIText("Vampire_Score_Title")
NovaAPI.SetTMPText(self._mapNode.txtScore[1], txtLevelScoreTitle .. ":" .. txtLevelScore)
self._mapNode.txtScore[1].gameObject:SetActive(true)
self._mapNode.imgScoreIcon_1.gameObject:SetActive(true)
if mapRanking.Teams[1].Chars ~= nil then
if self.mapRankingSwitched[1].Chars ~= nil then
for k = 1, 3 do
if mapRanking.Teams[1].Chars[k] ~= nil then
if self.mapRankingSwitched[1].Chars[k] ~= nil then
self._mapNode.tcChar1_[k]:SetActive(true)
local nCharId = mapRanking.Teams[1].Chars[k].Id
local nCharId = self.mapRankingSwitched[1].Chars[k].Id
local mapChar = ConfigTable.GetData_Character(nCharId)
NovaAPI.SetTMPText(self._mapNode.txtRank1_[k], mapRanking.Teams[1].Chars[k].Level)
NovaAPI.SetTMPText(self._mapNode.txtRank1_[k], self.mapRankingSwitched[1].Chars[k].Level)
local nCharSkinId = mapChar.DefaultSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
self:SetPngSprite(self._mapNode.imgItemIcon1_[k], mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
@@ -119,9 +124,9 @@ function ScoreBossRankingTeamDetailCtrl:Refresh(mapRanking)
for k = 1, 3 do
self._mapNode.tcChar2_[k]:SetActive(false)
end
if mapRanking.Teams ~= nil and mapRanking.Teams[2] ~= nil then
if mapRanking.Teams[2].LevelId ~= nil and mapRanking.Teams[2].LevelId > 0 then
local bossLevelData = ConfigTable.GetData("ScoreBossLevel", mapRanking.Teams[2].LevelId)
if self.mapRankingSwitched[2] ~= nil then
if self.mapRankingSwitched[2].LevelId ~= nil and self.mapRankingSwitched[2].LevelId > 0 then
local bossLevelData = ConfigTable.GetData("ScoreBossLevel", self.mapRankingSwitched[2].LevelId)
local mData = ConfigTable.GetData("Monster", bossLevelData.MonsterId)
local mSkin = ConfigTable.GetData("MonsterSkin", mData.FAId)
local mManual = ConfigTable.GetData("MonsterManual", mSkin.MonsterManual)
@@ -130,21 +135,21 @@ function ScoreBossRankingTeamDetailCtrl:Refresh(mapRanking)
NovaAPI.SetTMPText(self._mapNode.txtTeam[2], ConfigTable.GetUIText("ScoreBossRankingTeamTwo"))
end
self._mapNode.imgTeamBG[2]:SetActive(true)
local rank = PlayerData.Build:CalBuildRank(mapRanking.Teams[2].BuildScore)
local rank = PlayerData.Build:CalBuildRank(self.mapRankingSwitched[2].BuildScore)
local sScore = "Icon/BuildRank/BuildRank_" .. rank.Id
self:SetPngSprite(self._mapNode.imgScoreIcon_2, sScore)
local txtLevelScore = string.formatnumberthousands(mapRanking.Teams[2].LevelScore)
local txtLevelScore = string.formatnumberthousands(self.mapRankingSwitched[2].LevelScore)
local txtLevelScoreTitle = ConfigTable.GetUIText("Vampire_Score_Title")
NovaAPI.SetTMPText(self._mapNode.txtScore[2], txtLevelScoreTitle .. ":" .. txtLevelScore)
self._mapNode.txtScore[2].gameObject:SetActive(true)
self._mapNode.imgScoreIcon_2.gameObject:SetActive(true)
if mapRanking.Teams[2].Chars ~= nil then
if self.mapRankingSwitched[2].Chars ~= nil then
for k = 1, 3 do
if mapRanking.Teams[2].Chars[k] ~= nil then
if self.mapRankingSwitched[2].Chars[k] ~= nil then
self._mapNode.tcChar2_[k]:SetActive(true)
local nCharId = mapRanking.Teams[2].Chars[k].Id
local nCharId = self.mapRankingSwitched[2].Chars[k].Id
local mapChar = ConfigTable.GetData_Character(nCharId)
NovaAPI.SetTMPText(self._mapNode.txtRank2_[k], mapRanking.Teams[2].Chars[k].Level)
NovaAPI.SetTMPText(self._mapNode.txtRank2_[k], self.mapRankingSwitched[2].Chars[k].Level)
local nCharSkinId = mapChar.DefaultSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
self:SetPngSprite(self._mapNode.imgItemIcon2_[k], mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
@@ -165,8 +170,8 @@ function ScoreBossRankingTeamDetailCtrl:OnBtnClick_Close()
self:AddTimer(1, 0.2, close, true, true, true)
end
function ScoreBossRankingTeamDetailCtrl:OnBtnClick_PotentialDetail(btn, nIndex)
if self.mapRanking ~= nil and self.mapRanking.Teams ~= nil and self.mapRanking.Teams[nIndex] ~= nil then
local mapRanking = self.mapRanking.Teams[nIndex]
if self.mapRankingSwitched ~= nil then
local mapRanking = self.mapRankingSwitched[nIndex]
if mapRanking.Discs == nil or #mapRanking.Discs == 0 then
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Rank_Build_Detail_Unavailable"))
return
@@ -26,21 +26,25 @@ end
function ScoreBossRewardGridCtrl:OnRelease()
end
function ScoreBossRewardGridCtrl:Refresh(nIdx, nSelfIdx)
local mapRewardCfgData = {}
if self.mapRewardCfgData == nil then
self.mapRewardCfgData = {}
end
local nControlId = PlayerData.ScoreBoss.ControlId or 1
local foreachItem = function(mapData)
if mapData.SeasonId == nControlId then
table.insert(mapRewardCfgData, mapData)
table.insert(self.mapRewardCfgData, mapData)
end
end
ForEachTableLine(ConfigTable.Get("ScoreBossRank"), foreachItem)
if mapRewardCfgData == nil or mapRewardCfgData[nIdx] == nil then
if #self.mapRewardCfgData == 0 then
ForEachTableLine(ConfigTable.Get("ScoreBossRank"), foreachItem)
end
if self.mapRewardCfgData[nIdx] == nil then
return
end
local nRankingHigher = mapRewardCfgData[nIdx].RankLower
local nRankingHigher = self.mapRewardCfgData[nIdx].RankLower
local nRankLower = 0
if nIdx ~= 1 and mapRewardCfgData[nIdx - 1] ~= nil then
nRankLower = mapRewardCfgData[nIdx - 1].RankLower
if nIdx ~= 1 and self.mapRewardCfgData[nIdx - 1] ~= nil then
nRankLower = self.mapRewardCfgData[nIdx - 1].RankLower
end
self._mapNode.imgBg1:SetActive(nSelfIdx <= nRankingHigher and nSelfIdx > nRankLower)
self._mapNode.imgBg2:SetActive(nSelfIdx > nRankingHigher or nSelfIdx <= nRankLower)
@@ -51,14 +55,12 @@ function ScoreBossRewardGridCtrl:Refresh(nIdx, nSelfIdx)
else
NovaAPI.SetTMPText(self._mapNode.TMPRanking, orderedFormat(ConfigTable.GetUIText("ScoreBoss_Rank_Lv"), math.floor(nRankLower / 100), math.floor(nRankingHigher / 100)))
end
local indexBorder = PlayerData.ScoreBoss:GetRankBorderCount(nIdx)
NovaAPI.SetTMPText(self._mapNode.TMPRankingCount, orderedFormat(ConfigTable.GetUIText("ScoreBoss_RankBorderScore"), indexBorder))
for i = 1, 3 do
if mapRewardCfgData[nIdx]["AwardItemTid" .. i] ~= nil and 0 < mapRewardCfgData[nIdx]["AwardItemNum" .. i] then
self._mapNode.tcItem[i]:SetItem(mapRewardCfgData[nIdx]["AwardItemTid" .. i], nil, mapRewardCfgData[nIdx]["AwardItemNum" .. i], nil, false, false, false, true, false, false)
if self.mapRewardCfgData[nIdx]["AwardItemTid" .. i] ~= nil and 0 < self.mapRewardCfgData[nIdx]["AwardItemNum" .. i] then
self._mapNode.tcItem[i]:SetItem(self.mapRewardCfgData[nIdx]["AwardItemTid" .. i], nil, self.mapRewardCfgData[nIdx]["AwardItemNum" .. i], nil, false, false, false, true, false, false)
self._mapNode.btnItem[i].onClick:RemoveAllListeners()
self._mapNode.btnItem[i].onClick:AddListener(function()
self:OnBtn_ClickItem(self._mapNode.btnItem[i], mapRewardCfgData[nIdx]["AwardItemTid" .. i])
self:OnBtn_ClickItem(self._mapNode.btnItem[i], self.mapRewardCfgData[nIdx]["AwardItemTid" .. i])
end)
else
self._mapNode.btnItem[i].gameObject:SetActive(false)
@@ -24,7 +24,8 @@ ScoreBossReplaceBDCtrl._mapNodeConfig = {
btnCancel = {
sComponentName = "NaviButton",
callback = "OnClickCancel",
sAction = "Giveup"
sAction = "Giveup",
sActionIconType = "Dark"
},
txtBtnCancel = {
nCount = 2,
@@ -34,7 +35,8 @@ ScoreBossReplaceBDCtrl._mapNodeConfig = {
btnConfirm1 = {
sComponentName = "NaviButton",
callback = "OnClickConfirm",
sAction = "Confirm"
sAction = "Confirm",
sActionIconType = "Dark"
},
txtConfirm1_ = {
nCount = 2,
@@ -116,12 +118,18 @@ function ScoreBossReplaceBDCtrl:SetOldTeamMsg()
local imgItemRare = char:Find("t_char_head/imgItemRare"):GetComponent("Image")
local mapChar = ConfigTable.GetData_Character(tmpCharId[j])
local mapCharData = PlayerData.Char:GetCharDataByTid(tmpCharId[j])
local nCharSkinId = mapCharData.nSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
self:SetPngSprite(imgItemIcon, mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
local nRarity = mapChar.Grade
local sFrame = AllEnum.FrameType_New.BoardFrame .. AllEnum.BoardFrameColor[mapChar.Grade]
self:SetAtlasSprite(imgItemRare, "12_rare", sFrame, true)
if mapCharData ~= nil then
local nCharSkinId = mapCharData.nSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
if mapCharSkin ~= nil then
self:SetPngSprite(imgItemIcon, mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
end
end
if mapChar ~= nil then
local nRarity = mapChar.Grade
local sFrame = AllEnum.FrameType_New.BoardFrame .. AllEnum.BoardFrameColor[mapChar.Grade]
self:SetAtlasSprite(imgItemRare, "12_rare", sFrame, true)
end
local charLeader = char:Find("charLeader")
local charSub = char:Find("charSub")
local txtLeader = charLeader:Find("imgLeader/txtLeader"):GetComponent("TMP_Text")
@@ -170,12 +178,16 @@ function ScoreBossReplaceBDCtrl:SetNewTeamMsg()
local imgItemRare = char:Find("t_char_head/imgItemRare"):GetComponent("Image")
local mapChar = ConfigTable.GetData_Character(tbCharId[j])
local mapCharData = PlayerData.Char:GetCharDataByTid(tbCharId[j])
local nCharSkinId = mapCharData.nSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
self:SetPngSprite(imgItemIcon, mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
local nRarity = mapChar.Grade
local sFrame = AllEnum.FrameType_New.BoardFrame .. AllEnum.BoardFrameColor[mapChar.Grade]
self:SetAtlasSprite(imgItemRare, "12_rare", sFrame, true)
if mapCharData ~= nil then
local nCharSkinId = mapCharData.nSkinId
local mapCharSkin = ConfigTable.GetData_CharacterSkin(nCharSkinId)
self:SetPngSprite(imgItemIcon, mapCharSkin.Icon, AllEnum.CharHeadIconSurfix.XXL)
end
if mapChar ~= nil then
local nRarity = mapChar.Grade
local sFrame = AllEnum.FrameType_New.BoardFrame .. AllEnum.BoardFrameColor[mapChar.Grade]
self:SetAtlasSprite(imgItemRare, "12_rare", sFrame, true)
end
local charLeader = char:Find("charLeader")
local charSub = char:Find("charSub")
local txtLeader = charLeader:Find("imgLeader/txtLeader"):GetComponent("TMP_Text")
@@ -67,7 +67,7 @@ function ScoreBossResultCtrl:SetMsg()
NovaAPI.SetTMPText(self._mapNode.texTotalScore, FormatWithCommas(self.totalScore))
NovaAPI.SetTMPText(self._mapNode.texDamageScore, PlayerData.ScoreBoss:GetDamageScore())
local bScore, bScoreCount = PlayerData.ScoreBoss:GetBehaviorScore()
local bossLevelData = ConfigTable.GetData("ScoreBossLevel", PlayerData.ScoreBoss.entryLevelId)
bossLevelData = ConfigTable.GetData("ScoreBossLevel", PlayerData.ScoreBoss.entryLevelId)
local getControl = ConfigTable.GetData("ScoreBossGetControl", bossLevelData.NonDamageScoreGet)
NovaAPI.SetTMPText(self._mapNode.texSkillScore, getControl.OnceScore .. "x" .. bScoreCount)
end
+12 -20
View File
@@ -114,6 +114,7 @@ ScoreBossSelectCtrl._mapNodeConfig = {
},
info_texDamageScoreCount = {sComponentName = "TMP_Text"},
info_texSkillScoreCount = {sComponentName = "TMP_Text"},
skillInfoRect = {sComponentName = "ScrollRect"},
skillInfoIcon2 = {sComponentName = "Image"},
skillInfoName2 = {sComponentName = "TMP_Text"},
skillInfoDes2 = {sComponentName = "TMP_Text"},
@@ -288,32 +289,20 @@ function ScoreBossSelectCtrl:RefreshTime()
self.nRemainTime = self.nRemainTime - 1
if self.nRemainTime > 0 then
local sTime = ""
if self.nRemainTime <= 60 then
if self.nRemainTime < 60 then
local sec = math.floor(self.nRemainTime)
sTime = orderedFormat(ConfigTable.GetUIText("Shop_NextRefresh_Sec"), sec)
elseif self.nRemainTime > 60 and self.nRemainTime <= 3600 then
elseif self.nRemainTime >= 60 and self.nRemainTime < 3600 then
local min = math.floor(self.nRemainTime / 60)
local sec = math.floor(self.nRemainTime - min * 60)
if sec == 0 then
min = min - 1
sec = 60
end
local sec = self.nRemainTime % 60
sTime = orderedFormat(ConfigTable.GetUIText("Shop_NextRefresh_Min"), min, sec)
elseif self.nRemainTime > 3600 and self.nRemainTime <= 86400 then
elseif self.nRemainTime >= 3600 and self.nRemainTime < 86400 then
local hour = math.floor(self.nRemainTime / 3600)
local min = math.floor((self.nRemainTime - hour * 3600) / 60)
if min == 0 then
hour = hour - 1
min = 60
end
local min = math.floor(self.nRemainTime % 3600 / 60)
sTime = orderedFormat(ConfigTable.GetUIText("Shop_NextRefresh_Hour"), hour, min)
elseif self.nRemainTime > 86400 then
elseif self.nRemainTime >= 86400 then
local day = math.floor(self.nRemainTime / 86400)
local hour = math.floor((self.nRemainTime - day * 86400) / 3600)
if hour == 0 then
day = day - 1
hour = 24
end
local hour = math.floor(self.nRemainTime % 86400 / 3600)
sTime = orderedFormat(ConfigTable.GetUIText("Shop_NextRefresh_Day"), day, hour)
end
NovaAPI.SetTMPText(self._mapNode.texRefreshTime, sTime)
@@ -382,6 +371,7 @@ function ScoreBossSelectCtrl:OnRefreshGrid(goGrid, levelId, index)
end)
end
function ScoreBossSelectCtrl:SetBossInfo(levelId, isPlayAin)
NovaAPI.SetVerticalNormalizedPosition(self._mapNode.skillInfoRect, 1)
local bossLevelData = ConfigTable.GetData("ScoreBossLevel", levelId)
local getControlData = ConfigTable.GetData("ScoreBossGetControl", bossLevelData.NonDamageScoreGet)
local mData = ConfigTable.GetData("Monster", bossLevelData.MonsterId)
@@ -437,7 +427,9 @@ function ScoreBossSelectCtrl:SetBossInfo(levelId, isPlayAin)
tmpPre = tmpPre + 0.125
else
local tmpScore = _Score - tmpLastScore
tmpPre = tmpPre + tmpScore / (v - tmpLastScore) * 0.125
if 0 < v - tmpLastScore then
tmpPre = tmpPre + tmpScore / (v - tmpLastScore) * 0.125
end
isThanMaxNeed = false
end
end