Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev
commit
7b486f1559
|
@ -36099,7 +36099,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: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4482967724487338822
|
||||
|
@ -36123,7 +36123,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.97654855, g: 0.990566, b: 0.97660744, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -36131,9 +36131,9 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
|
@ -36143,7 +36143,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &5196531749690728303
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -36954,7 +36954,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: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2004088883459887790
|
||||
|
@ -36978,7 +36978,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.96724814, g: 0.9811321, b: 0.9673065, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -36986,19 +36986,19 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 60
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 60
|
||||
--- !u!1 &6352690128292113717
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -67067,7 +67067,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: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6218138651294486052
|
||||
|
@ -67091,7 +67091,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.9858491, g: 1, b: 0.9859085, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -67099,9 +67099,9 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
|
@ -67111,7 +67111,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &8199617342560139037
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -67883,7 +67883,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: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1633887730655791215
|
||||
|
@ -67907,7 +67907,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.9487807, g: 0.9716981, b: 0.948877, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -67915,11 +67915,11 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
|
@ -67927,7 +67927,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &8988042177267225789
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -652,7 +652,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: -60.4}
|
||||
m_AnchoredPosition: {x: 0, y: -58}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5929159001005513366
|
||||
|
@ -676,7 +676,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.9765041, g: 0.9811321, b: 0.9765236, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -684,9 +684,9 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
|
@ -696,7 +696,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &4482154189229213345
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -20497,6 +20497,7 @@ GameObject:
|
|||
- component: {fileID: 4046556994563454095}
|
||||
- component: {fileID: 6438122773535378384}
|
||||
- component: {fileID: 3615987540770995332}
|
||||
- component: {fileID: 4794719050937661115}
|
||||
m_Layer: 5
|
||||
m_Name: BackMask
|
||||
m_TagString: Untagged
|
||||
|
@ -20560,6 +20561,48 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &4794719050937661115
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7823522297384688204}
|
||||
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: 1
|
||||
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: 3615987540770995332}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!1 &7958738485617101460
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -2651,7 +2651,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 224641604813797116}
|
||||
m_Father: {fileID: 224186096547724832}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
|
@ -2673,7 +2673,7 @@ MonoBehaviour:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1478784877413772}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
|
@ -6026,6 +6026,7 @@ RectTransform:
|
|||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 3991899024909538889}
|
||||
- {fileID: 224434740051487558}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
|
@ -7581,6 +7582,123 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2961029825949491722}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &3448795897872020067
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3991899024909538889}
|
||||
- component: {fileID: 1534945010657177594}
|
||||
- component: {fileID: 5369209181501476874}
|
||||
- component: {fileID: 6366439769228432051}
|
||||
m_Layer: 5
|
||||
m_Name: Mask
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3991899024909538889
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3448795897872020067}
|
||||
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: 224186096547724832}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1534945010657177594
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3448795897872020067}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &5369209181501476874
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3448795897872020067}
|
||||
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: 0, g: 0, b: 0, a: 0.78431374}
|
||||
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: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &6366439769228432051
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3448795897872020067}
|
||||
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: 0
|
||||
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: 5369209181501476874}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!1 &3535828274943961996
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -23,7 +23,7 @@ function this.Initialize()
|
|||
this.playerSkillList[value.Id]=0
|
||||
end
|
||||
end
|
||||
|
||||
--=========================主角技能
|
||||
function this.GetSkillInfo()
|
||||
return this.playerSkillList
|
||||
end
|
||||
|
@ -71,6 +71,10 @@ function this.CheckPlayerSkillRed(redType)
|
|||
local currData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",lv)
|
||||
local nextData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",lv+1)
|
||||
if nextData then
|
||||
local config=this.GetCurConfigData()
|
||||
if config and nextData.Level>config.PlayerSkillLvMax then
|
||||
return false
|
||||
end
|
||||
local isShow=true
|
||||
for i = 1, #currData.LvupCost do
|
||||
if BagManager.GetItemCountById(currData.LvupCost[i][1])<currData.LvupCost[i][2] then
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
local PracticeSkillInfoPanel = quick_class("PracticeSkillInfoPanel", BasePanel)
|
||||
local SkillBaseConfig=ConfigManager.GetConfig(ConfigName.PlayerSkillBasicTable)
|
||||
--按钮状态
|
||||
local btnState=0
|
||||
local costConfig
|
||||
|
@ -10,6 +11,7 @@ function PracticeSkillInfoPanel:InitComponent()
|
|||
self.titleTxt=Util.GetGameObject(self.gameObject, "bg/title"):GetComponent("Text")
|
||||
self.skillIcon=Util.GetGameObject(self.gameObject, "bg/skill/icon"):GetComponent("Image")
|
||||
self.skillLv=Util.GetGameObject(self.gameObject, "bg/skill/Text"):GetComponent("Text")
|
||||
self.skillLvBg=Util.GetGameObject(self.gameObject, "bg/skill/Image")
|
||||
self.lockObj=Util.GetGameObject(self.gameObject, "bg/skill/mask")
|
||||
self.hintInfo=Util.GetGameObject(self.gameObject, "bg/hintTxt"):GetComponent("Text")
|
||||
self.currInfo=Util.GetGameObject(self.gameObject, "bg/currInfo"):GetComponent("Text")
|
||||
|
@ -20,6 +22,7 @@ function PracticeSkillInfoPanel:InitComponent()
|
|||
self.btn_close=Util.GetGameObject(self.gameObject, "bg/btnBack")
|
||||
self.btn_info=Util.GetGameObject(self.gameObject, "bg/btn/Text"):GetComponent("Text")
|
||||
self.redPoint=Util.GetGameObject(self.gameObject, "bg/btn/Image")
|
||||
self.btn_close2=Util.GetGameObject(self.gameObject, "BackMask")
|
||||
end
|
||||
|
||||
function PracticeSkillInfoPanel:BindEvent()
|
||||
|
@ -46,6 +49,10 @@ function PracticeSkillInfoPanel:BindEvent()
|
|||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
Util.AddClick(self.btn_close2, function()
|
||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
|
||||
local currLv=0
|
||||
|
@ -71,14 +78,16 @@ function PracticeSkillInfoPanel:RefreshShow(id,lv)
|
|||
nextData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",currLv+1)
|
||||
self.currInfo.text="本级效果:"..currData.Desc
|
||||
self.skillIcon.sprite=self.spLoader:LoadSprite(GetResourcePath(currData.Icon))
|
||||
self.titleTxt.text=currData.Name
|
||||
self.titleTxt.text=SkillBaseConfig[id].Name
|
||||
self.skillLv.text=currLv
|
||||
self.skillLv.gameObject:SetActive(true)
|
||||
self.redPoint:SetActive(false)
|
||||
--没有下一等级
|
||||
if not nextData then
|
||||
self.nextInfo.gameObject:SetActive(false)
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
self.hintInfo.gameObject:SetActive(false)
|
||||
self.lockObj.gameObject:SetActive(false)
|
||||
self.btn_info.text="已达上限"
|
||||
Util.SetGray(self.btn_up,true)
|
||||
btnState=1 --已达上限
|
||||
|
@ -86,20 +95,26 @@ function PracticeSkillInfoPanel:RefreshShow(id,lv)
|
|||
self.nextInfo.gameObject:SetActive(true)
|
||||
self.nextInfo.text="下级效果:"..nextData.Desc
|
||||
--如果等级为0 表示未解锁
|
||||
if lv==0 then
|
||||
--PracticeManager.PracticeLevel
|
||||
if lv==0 then
|
||||
self.btn_info.text="未解锁"
|
||||
self.hintInfo.gameObject:SetActive(true)
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
self.skillLv.gameObject:SetActive(false)
|
||||
self.skillLvBg.gameObject:SetActive(false)
|
||||
self.lockObj.gameObject:SetActive(true)
|
||||
self.hintInfo.text="修行到达"..PracticeManager.GetRankNameByLv(nextData.XiuxianId).."后自动解锁"
|
||||
Util.SetGray(self.btn_up,true)
|
||||
btnState=2 --未解锁技能
|
||||
else
|
||||
if nextData.XiuxianId>PracticeManager.PracticeLevel then
|
||||
|
||||
local config=PracticeManager.GetCurConfigData()
|
||||
if nextData.Level>config.PlayerSkillLvMax then
|
||||
self.btn_info.text="升 级"
|
||||
self.hintInfo.gameObject:SetActive(true)
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
Util.SetGray(self.btn_up,true)
|
||||
self.hintInfo.text="修行到达"..PracticeManager.GetRankNameByLv(nextData.XiuxianId).."后方可升级"
|
||||
self.hintInfo.text="修行到达"..PracticeManager.GetRankNameByLv(config.RealmId+1).."后方可升级"
|
||||
btnState=2
|
||||
else
|
||||
self.btn_info.text="升 级"
|
||||
|
|
|
@ -21,9 +21,8 @@ local ColorDef = {
|
|||
|
||||
function QuickPurchasePanel:InitComponent()
|
||||
self.spLoader = SpriteLoader.New()
|
||||
self.transform:Find("frame/bg/closeBtn"):GetComponent("Button").onClick:AddListener(function()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
self.Mask = Util.GetGameObject(self.transform, "Mask")
|
||||
self.closeBtn = Util.GetGameObject(self.transform, "frame/bg/closeBtn")
|
||||
self.title = Util.GetGameObject(self.transform, "frame/bg/title"):GetComponent("Text")
|
||||
self.help = Util.GetGameObject(self.transform, "frame/bg/help")
|
||||
self.commonPurchase = QuickCommonPurchasePart.new(self, self.transform:Find("frame/bg/commonPart"))
|
||||
|
@ -33,12 +32,22 @@ function QuickPurchasePanel:InitComponent()
|
|||
self.coinPurchase=QuickCoinPurchasePart.new(self,self.transform:Find("frame/bg/coinPart"))
|
||||
self.coinPurchase:OnHide()
|
||||
|
||||
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
function QuickPurchasePanel:BindEvent()
|
||||
Util.AddOnceClick(self.help, function()
|
||||
local pos = self.help.transform.localPosition
|
||||
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.BuyCoin, pos.x, pos.y)
|
||||
end)
|
||||
Util.AddOnceClick(self.Mask, function()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
Util.AddOnceClick(self.closeBtn, function()
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
|
||||
--context = {type}
|
||||
function QuickPurchasePanel:OnOpen(context)
|
||||
self.title.text = Language[11668]
|
||||
|
|
Loading…
Reference in New Issue