Update - 1.12.0.120
EN: 1.12.0.120 CN: 1.12.0.120 JP: 1.12.0.124 KR: 1.12.0.124
This commit is contained in:
@@ -159,14 +159,18 @@ EquipmentInstanceLevelSelectCtrl._mapNodeConfig = {
|
||||
sComponentName = "TMP_Text",
|
||||
sLanguageId = "RegusBoss_SatisfyConditions_UnLock"
|
||||
},
|
||||
Conditions_ = {nCount = 2}
|
||||
Conditions_ = {nCount = 2},
|
||||
imgDoubleDrop = {},
|
||||
txtDoubleDrop = {sComponentName = "TMP_Text"},
|
||||
txtDoubleDropCount = {sComponentName = "TMP_Text"}
|
||||
}
|
||||
EquipmentInstanceLevelSelectCtrl._mapEventConfig = {
|
||||
[EventId.UIHomeConfirm] = "OnEvent_Home",
|
||||
[EventId.UIBackConfirm] = "OnEvent_Back",
|
||||
EquipmentInstanceRaidOpen = "OnEvent_RaidOpen",
|
||||
[EventId.UpdateWorldClass] = "OnEvent_UpdateWorldClass",
|
||||
[EventId.UpdateEnergy] = "OnEvent_UpdateEnergy"
|
||||
[EventId.UpdateEnergy] = "OnEvent_UpdateEnergy",
|
||||
RaidSuccess = "OnEvent_RaidSuccess"
|
||||
}
|
||||
function EquipmentInstanceLevelSelectCtrl:Awake()
|
||||
self.nEnergyRequire = 0
|
||||
@@ -456,6 +460,12 @@ function EquipmentInstanceLevelSelectCtrl:RefreshEquipmentInstanceInfo(nGroupId,
|
||||
self._mapNode.btnGo.gameObject:SetActive(isUnLock)
|
||||
self._mapNode.btnLock.gameObject:SetActive(not isUnLock)
|
||||
self._mapNode.ListConditions:SetActive(not isUnLock)
|
||||
self._mapNode.imgDoubleDrop:SetActive(false)
|
||||
self.actData = PlayerData.Activity:GetActivityDataByType(GameEnum.activityType.Double)
|
||||
if self.actData ~= nil and self.actData:CheckActShow() and self.actData:CheckInstanceType(GameEnum.instanceType.CharGemInstance) then
|
||||
self._mapNode.imgDoubleDrop:SetActive(isUnLock)
|
||||
self:RefreshDoubleDropCount()
|
||||
end
|
||||
if not isUnLock then
|
||||
local imgConditions_Lock_WC = self._mapNode.Conditions_[1].gameObject.transform:Find("imgConditions_Lock").gameObject
|
||||
local imgConditions_UnLock_WC = self._mapNode.Conditions_[1].gameObject.transform:Find("imgConditions_UnLock").gameObject
|
||||
@@ -594,7 +604,7 @@ function EquipmentInstanceLevelSelectCtrl:OnBtnClick_Raid()
|
||||
end
|
||||
local mapEquipmentInstanceData = self.mapAllEquipmentInstance[self.nCurGroupId][self.curSelectHard]
|
||||
local nNeedEnergy = mapEquipmentInstanceData.EnergyConsume
|
||||
EventManager.Hit(EventId.OpenPanel, PanelId.Raid, mapEquipmentInstanceData.Id, nNeedEnergy, 3)
|
||||
EventManager.Hit(EventId.OpenPanel, PanelId.Raid, mapEquipmentInstanceData.Id, nNeedEnergy, GameEnum.instanceType.CharGemInstance)
|
||||
end
|
||||
function EquipmentInstanceLevelSelectCtrl:OnBtnClick_Lock()
|
||||
self:OnBtnClick_TogTips(nil, self.curSelectHard)
|
||||
@@ -606,6 +616,17 @@ function EquipmentInstanceLevelSelectCtrl:OnEvent_RaidOpen()
|
||||
self._mapNode.animInfo:Play("EquipmentInstanceInfo_in", 0, 1)
|
||||
self._mapNode.animBack:Play("tc_top_back_01_t_in", 0, 1)
|
||||
end
|
||||
function EquipmentInstanceLevelSelectCtrl:RefreshDoubleDropCount()
|
||||
if self.actData ~= nil and self.actData:CheckActShow() and self.actData:CheckInstanceType(GameEnum.instanceType.CharGemInstance) then
|
||||
local _, str = self.actData:GetDropString()
|
||||
local nCount, nMaxCount = self.actData:GetDoubleDropsTimes()
|
||||
NovaAPI.SetTMPText(self._mapNode.txtDoubleDrop, str)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtDoubleDropCount, string.format("%s/%s", nMaxCount - nCount, nMaxCount))
|
||||
end
|
||||
end
|
||||
function EquipmentInstanceLevelSelectCtrl:OnEvent_RaidSuccess()
|
||||
self:RefreshDoubleDropCount()
|
||||
end
|
||||
function EquipmentInstanceLevelSelectCtrl:OnEvent_UpdateWorldClass()
|
||||
self:RefreshLevelUnlock()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user