添加重置
parent
f83dce69b4
commit
08cf1d1ea8
|
|
@ -3711,6 +3711,7 @@ RectTransform:
|
|||
- {fileID: 3056499779986398615}
|
||||
- {fileID: 8992075663439232312}
|
||||
- {fileID: 6258890343164933660}
|
||||
- {fileID: 6179348885634445807}
|
||||
m_Father: {fileID: 5964163772964052740}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
@ -5067,6 +5068,144 @@ MonoBehaviour:
|
|||
m_LineSpacing: 1
|
||||
m_Text: "\u9009\u62E9\u76EE\u6807"
|
||||
LanguageIndex: 11248
|
||||
--- !u!1 &6228643931108285268
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6179348885634445807}
|
||||
- component: {fileID: 3847505684432649035}
|
||||
- component: {fileID: 2977135818492680332}
|
||||
- component: {fileID: 4616612352574395923}
|
||||
- component: {fileID: 2473729802828027288}
|
||||
m_Layer: 5
|
||||
m_Name: resetBtn
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6179348885634445807
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6228643931108285268}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 8263603071893703854}
|
||||
m_Father: {fileID: 5409149396639897811}
|
||||
m_RootOrder: 7
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 200, y: -511.65002}
|
||||
m_SizeDelta: {x: 260, y: 74}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3847505684432649035
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6228643931108285268}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &2977135818492680332
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6228643931108285268}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: f615ecdbbffd77f4b89afe678ee4d8d5, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &4616612352574395923
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6228643931108285268}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 3
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 2977135818492680332}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!95 &2473729802828027288
|
||||
Animator:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6228643931108285268}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000, guid: 6ffe000b5a58aac48a9d130543849d76, type: 2}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 0
|
||||
m_LinearVelocityBlending: 0
|
||||
m_WarningMessage:
|
||||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
m_KeepAnimatorControllerStateOnDisable: 0
|
||||
--- !u!1 &6260308944306476095
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -5543,7 +5682,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -508.65002}
|
||||
m_AnchoredPosition: {x: -200, y: -508.65002}
|
||||
m_SizeDelta: {x: 260, y: 74}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6687205177664682507
|
||||
|
|
@ -6440,7 +6579,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: -511.65002}
|
||||
m_AnchoredPosition: {x: -200, y: -511.65002}
|
||||
m_SizeDelta: {x: 260, y: 74}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3783619632881211611
|
||||
|
|
@ -7385,6 +7524,85 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &8863868372586760239
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8263603071893703854}
|
||||
- component: {fileID: 5523692999501179854}
|
||||
- component: {fileID: 7494260318342873055}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8263603071893703854
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8863868372586760239}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 6179348885634445807}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 260, y: 74}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5523692999501179854
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8863868372586760239}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &7494260318342873055
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8863868372586760239}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 50
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 50
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u91CD \u7F6E"
|
||||
--- !u!1 &8900836512602352964
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
|||
|
|
@ -327,6 +327,10 @@ EQUIPINTENSIFYREQUSET_TYPE_FIELD = protobuf.FieldDescriptor();
|
|||
EQUIPINTENSIFYRESPONSE = protobuf.Descriptor();
|
||||
EQUIPINTENSIFYRESPONSE_INFOS_FIELD = protobuf.FieldDescriptor();
|
||||
EQUIPINTENSIFYRESPONSE_EQUIPRANKUP_FIELD = protobuf.FieldDescriptor();
|
||||
HOMEEQUIPSTRONGRESETREQUSET = protobuf.Descriptor();
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD = protobuf.FieldDescriptor();
|
||||
HOMEEQUIPSTRONGRESETRESPONSE = protobuf.Descriptor();
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
|
||||
|
||||
GETHEROLISTINFOREQUEST_INDEX_FIELD.name = "index"
|
||||
GETHEROLISTINFOREQUEST_INDEX_FIELD.full_name = ".rpc.protocols.GetHeroListInfoRequest.index"
|
||||
|
|
@ -3269,6 +3273,41 @@ EQUIPINTENSIFYRESPONSE.enum_types = {}
|
|||
EQUIPINTENSIFYRESPONSE.fields = {EQUIPINTENSIFYRESPONSE_INFOS_FIELD, EQUIPINTENSIFYRESPONSE_EQUIPRANKUP_FIELD}
|
||||
EQUIPINTENSIFYRESPONSE.is_extendable = false
|
||||
EQUIPINTENSIFYRESPONSE.extensions = {}
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.name = "heroId"
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.full_name = ".rpc.protocols.HomeEquipStrongResetRequset.heroId"
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.number = 1
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.index = 0
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.label = 1
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.has_default_value = false
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.default_value = ""
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.type = 9
|
||||
HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD.cpp_type = 9
|
||||
|
||||
HOMEEQUIPSTRONGRESETREQUSET.name = "HomeEquipStrongResetRequset"
|
||||
HOMEEQUIPSTRONGRESETREQUSET.full_name = ".rpc.protocols.HomeEquipStrongResetRequset"
|
||||
HOMEEQUIPSTRONGRESETREQUSET.nested_types = {}
|
||||
HOMEEQUIPSTRONGRESETREQUSET.enum_types = {}
|
||||
HOMEEQUIPSTRONGRESETREQUSET.fields = {HOMEEQUIPSTRONGRESETREQUSET_HEROID_FIELD}
|
||||
HOMEEQUIPSTRONGRESETREQUSET.is_extendable = false
|
||||
HOMEEQUIPSTRONGRESETREQUSET.extensions = {}
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.name = "drop"
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.full_name = ".rpc.protocols.HomeEquipStrongResetResponse.drop"
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.number = 1
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.index = 0
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.label = 1
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.has_default_value = false
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.default_value = nil
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.message_type = CommonProto_pb.DROP
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.type = 11
|
||||
HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD.cpp_type = 10
|
||||
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.name = "HomeEquipStrongResetResponse"
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.full_name = ".rpc.protocols.HomeEquipStrongResetResponse"
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.nested_types = {}
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.enum_types = {}
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.fields = {HOMEEQUIPSTRONGRESETRESPONSE_DROP_FIELD}
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.is_extendable = false
|
||||
HOMEEQUIPSTRONGRESETRESPONSE.extensions = {}
|
||||
|
||||
AllBookEnableRequest = protobuf.Message(ALLBOOKENABLEREQUEST)
|
||||
CancelHeroChangeRequest = protobuf.Message(CANCELHEROCHANGEREQUEST)
|
||||
|
|
@ -3321,6 +3360,8 @@ HeroRandResponse = protobuf.Message(HERORANDRESPONSE)
|
|||
HeroReturnRequest = protobuf.Message(HERORETURNREQUEST)
|
||||
HeroReturnResponse = protobuf.Message(HERORETURNRESPONSE)
|
||||
HeroUpLikableRequest = protobuf.Message(HEROUPLIKABLEREQUEST)
|
||||
HomeEquipStrongResetRequset = protobuf.Message(HOMEEQUIPSTRONGRESETREQUSET)
|
||||
HomeEquipStrongResetResponse = protobuf.Message(HOMEEQUIPSTRONGRESETRESPONSE)
|
||||
HongmengAddition = protobuf.Message(HONGMENGADDITION)
|
||||
HongmengHeroInfo = protobuf.Message(HONGMENGHEROINFO)
|
||||
HongmengInfoIndication = protobuf.Message(HONGMENGINFOINDICATION)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -170,7 +170,7 @@ end
|
|||
function this.GetAllCanUpgrade(_heroData)
|
||||
local num = 0
|
||||
for i = 1, 4 do
|
||||
local curLv=_heroData.equipStrong[i]
|
||||
local curLv=_heroData.equipStrong[i] and _heroData.equipStrong[i] or 0
|
||||
local equipStrengthenConfig=ConfigManager.GetConfigDataByKey(ConfigName.EquipStrengthen,"Level",curLv)
|
||||
if equipStrengthenConfig.Limit2 > _heroData.equipAdvanceLv then
|
||||
num = num + 1
|
||||
|
|
@ -191,7 +191,7 @@ function this.GetAllCanUpgradeWithPopup(_heroData)
|
|||
[4] = {"战靴","r_equip_Shoes_0005"},
|
||||
}
|
||||
for i = 1, 4 do
|
||||
local curLv=_heroData.equipStrong[i]
|
||||
local curLv=_heroData.equipStrong[i] and _heroData.equipStrong[i] or 0
|
||||
local equipStrengthenConfig=ConfigManager.GetConfigDataByKey(ConfigName.EquipStrengthen,"Level",curLv)
|
||||
if equipStrengthenConfig.Limit2 == _heroData.equipAdvanceLv then
|
||||
PopupTipPanel.ShowTip(string.format("%s未达到最大等级,不可突破!",TEXT[i][1]))
|
||||
|
|
|
|||
|
|
@ -6732,6 +6732,28 @@ function NetManager.EquipIntensifyRequset(_heroId,_type,func)
|
|||
end)
|
||||
end
|
||||
|
||||
--摘星阁重置
|
||||
function NetManager.ResetHeroEquipRequest(_heroDId,func)
|
||||
local request = HeroInfoProto_pb.HomeEquipStrongResetRequset()
|
||||
request.heroId = _heroDId
|
||||
local msgReq = request:SerializeToString()
|
||||
Network:SendMessageWithCallBack(MessageTypeProto_pb.HomeEquipStrongResetRequset, MessageTypeProto_pb.HomeEquipStrongResetResponse, msgReq, function(buffer)
|
||||
local heroData= HeroManager.GetSingleHeroData(_heroDId)
|
||||
for k, v in pairs(heroData.equipStrong) do
|
||||
print(k, v)
|
||||
heroData.equipStrong[k]=0
|
||||
end
|
||||
heroData.equipAdvanceLv=0
|
||||
local data = buffer:DataByte()
|
||||
local msg = HeroInfoProto_pb.HomeEquipStrongResetResponse()
|
||||
msg:ParseFromString(data)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1)
|
||||
if func then
|
||||
func()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
-- 限时升星活动选择升星英雄
|
||||
function NetManager.UpStarActivitySelectRequest(actId, heroId, func)
|
||||
local data = ActivityProto_pb.UpStarActivitySelectRequest()
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ function this:InitComponent()
|
|||
this.Btn1 = Util.GetGameObject(gameObject,"Btn1")
|
||||
this.Btn1Text = Util.GetGameObject(gameObject,"Btn1/Text"):GetComponent("Text")
|
||||
this.Btn2 = Util.GetGameObject(gameObject,"Btn2")
|
||||
this.resetBtn = Util.GetGameObject(gameObject,"resetBtn")
|
||||
this.costCondition = Util.GetGameObject(gameObject,"Cost/Condition"):GetComponent("Text")
|
||||
this.costIcon = Util.GetGameObject(gameObject,"Cost/Icon"):GetComponent("Image")
|
||||
this.costNum = Util.GetGameObject(gameObject,"Cost/Num"):GetComponent("Text")
|
||||
|
|
@ -95,6 +96,11 @@ function this:BindEvent()
|
|||
this:Refresh()
|
||||
end)
|
||||
end)
|
||||
Util.AddClick(this.resetBtn,function()
|
||||
NetManager.ResetHeroEquipRequest(curSelectHero.dynamicId,function ()
|
||||
this:Refresh()
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
function this:AddListener()
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ function RewardItemPopup:OnOpen(...)
|
|||
this.shenying.gameObject:SetActive(false)
|
||||
--如果没有compShowType和Drop--背包已满
|
||||
if not args[4] and (not drop or (#drop.itemlist < 1 and #drop.equipId < 1 and #drop.Hero < 1 and #drop.soulEquip < 1 and #drop.pokemon < 1)) then
|
||||
LogGreen("掉落为空")
|
||||
LogGreen("掉落为空"..#drop.itemlist)
|
||||
self:ClosePanel()
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue