[飞升]=============飞升代码提交
parent
d7749de932
commit
380b0bdb78
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7d55aee54f395224aba90d24eb0f8734
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -35,7 +35,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: -0.000030517578, y: -12.8}
|
||||
m_AnchoredPosition: {x: -0.000030517578, y: -12.799999}
|
||||
m_SizeDelta: {x: 672, y: 2}
|
||||
m_Pivot: {x: 0.5, y: 0}
|
||||
--- !u!222 &1766069402006949971
|
||||
|
|
@ -95,6 +95,163 @@ MonoBehaviour:
|
|||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!1 &1097458608393909950
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3490886978948357902}
|
||||
- component: {fileID: 757349028289488434}
|
||||
- component: {fileID: 8383661275855795730}
|
||||
- component: {fileID: 1260775195958158708}
|
||||
- component: {fileID: 1864656385590128718}
|
||||
- component: {fileID: 5406230394228739058}
|
||||
- component: {fileID: 451901376184482249}
|
||||
m_Layer: 5
|
||||
m_Name: grid
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3490886978948357902
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
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: 5601896589029272011}
|
||||
m_Father: {fileID: 4266660070112694984}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 750, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &757349028289488434
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1367256648, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Content: {fileID: 5601896589029272011}
|
||||
m_Horizontal: 0
|
||||
m_Vertical: 1
|
||||
m_MovementType: 1
|
||||
m_Elasticity: 0.1
|
||||
m_Inertia: 1
|
||||
m_DecelerationRate: 0.135
|
||||
m_ScrollSensitivity: 1
|
||||
m_Viewport: {fileID: 0}
|
||||
m_HorizontalScrollbar: {fileID: 0}
|
||||
m_VerticalScrollbar: {fileID: 0}
|
||||
m_HorizontalScrollbarVisibility: 0
|
||||
m_VerticalScrollbarVisibility: 0
|
||||
m_HorizontalScrollbarSpacing: 0
|
||||
m_VerticalScrollbarSpacing: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.ScrollRect+ScrollRectEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!114 &8383661275855795730
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1679637790, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: 1200
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
m_FlexibleHeight: -1
|
||||
m_LayoutPriority: 1
|
||||
--- !u!114 &1260775195958158708
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -146154839, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!222 &1864656385590128718
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &5406230394228739058
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e459a084d8e15a240b58db751097122b, 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
|
||||
--- !u!114 &451901376184482249
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1097458608393909950}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1297475563, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 1
|
||||
m_ChildControlWidth: 0
|
||||
m_ChildControlHeight: 1
|
||||
--- !u!1 &2310014580460002046
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -127,11 +284,11 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 5268664344666227904}
|
||||
m_Father: {fileID: 5601896589029272011}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 22.5, y: 0}
|
||||
m_AnchoredPosition: {x: 365, y: 0}
|
||||
m_SizeDelta: {x: 25, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4320833339301387177
|
||||
|
|
@ -215,7 +372,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: -3762.0005, y: -491.5051}
|
||||
m_SizeDelta: {x: 637.89, y: 83}
|
||||
m_SizeDelta: {x: 750, y: 83}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &1489507525450056629
|
||||
CanvasRenderer:
|
||||
|
|
@ -373,6 +530,121 @@ MonoBehaviour:
|
|||
m_ChildForceExpandHeight: 0
|
||||
m_ChildControlWidth: 0
|
||||
m_ChildControlHeight: 1
|
||||
--- !u!1 &4569006402718275696
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4266660070112694984}
|
||||
- component: {fileID: 2090859276310410023}
|
||||
- component: {fileID: 2105127763762562224}
|
||||
- component: {fileID: 7074693331508586762}
|
||||
- component: {fileID: 7948719736216553720}
|
||||
m_Layer: 5
|
||||
m_Name: GameObject
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4266660070112694984
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4569006402718275696}
|
||||
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: 7580864400587078201}
|
||||
- {fileID: 3490886978948357902}
|
||||
m_Father: {fileID: 7723528773779627565}
|
||||
m_RootOrder: 3
|
||||
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: 767.4, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2090859276310410023
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4569006402718275696}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &2105127763762562224
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4569006402718275696}
|
||||
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: 58c503111f310224a9a04ab39a004308, type: 3}
|
||||
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 &7074693331508586762
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4569006402718275696}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1741964061, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 2
|
||||
--- !u!114 &7948719736216553720
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4569006402718275696}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1297475563, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 0
|
||||
m_Right: 0
|
||||
m_Top: 10
|
||||
m_Bottom: 20
|
||||
m_ChildAlignment: 1
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 1
|
||||
m_ChildControlWidth: 0
|
||||
m_ChildControlHeight: 1
|
||||
--- !u!1 &4778057793701767630
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -405,11 +677,11 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 8634929813565441977}
|
||||
m_Father: {fileID: 5601896589029272011}
|
||||
m_RootOrder: 2
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 22.5, y: 0}
|
||||
m_AnchoredPosition: {x: 365, y: 0}
|
||||
m_SizeDelta: {x: 25, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7422676475438108378
|
||||
|
|
@ -580,7 +852,6 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 5601896589029272011}
|
||||
- component: {fileID: 4185124015842772771}
|
||||
- component: {fileID: 4874798604379339662}
|
||||
- component: {fileID: 2554566143129290189}
|
||||
- component: {fileID: 3006565069632633970}
|
||||
m_Layer: 5
|
||||
|
|
@ -601,16 +872,15 @@ RectTransform:
|
|||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1.0000799, y: 1.0000799, z: 1.0000799}
|
||||
m_Children:
|
||||
- {fileID: 7580864400587078201}
|
||||
- {fileID: 5731873559918472345}
|
||||
- {fileID: 419178286986730388}
|
||||
m_Father: {fileID: 7723528773779627565}
|
||||
m_RootOrder: 3
|
||||
m_Father: {fileID: 3490886978948357902}
|
||||
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: 28, y: 124}
|
||||
m_SizeDelta: {x: 692.1, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 380, y: 0}
|
||||
m_SizeDelta: {x: 760, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4185124015842772771
|
||||
CanvasRenderer:
|
||||
|
|
@ -620,35 +890,6 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6182841616647960639}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &4874798604379339662
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6182841616647960639}
|
||||
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: 58c503111f310224a9a04ab39a004308, type: 3}
|
||||
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 &2554566143129290189
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -662,11 +903,11 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 10
|
||||
m_Left: -20
|
||||
m_Right: 10
|
||||
m_Top: 100
|
||||
m_Bottom: 30
|
||||
m_ChildAlignment: 0
|
||||
m_Top: 10
|
||||
m_Bottom: 0
|
||||
m_ChildAlignment: 1
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 0
|
||||
m_ChildForceExpandHeight: 0
|
||||
|
|
@ -797,7 +1038,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: -3762, y: -428}
|
||||
m_SizeDelta: {x: 637.89, y: 127}
|
||||
m_SizeDelta: {x: 750, y: 127}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &5840828537624518994
|
||||
CanvasRenderer:
|
||||
|
|
@ -949,17 +1190,17 @@ RectTransform:
|
|||
m_GameObject: {fileID: 7450073361584476940}
|
||||
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_LocalScale: {x: 1.0000799, y: 1.0000799, z: 1.0000799}
|
||||
m_Children:
|
||||
- {fileID: 9000966320659701915}
|
||||
- {fileID: 7277680917405136172}
|
||||
m_Father: {fileID: 5601896589029272011}
|
||||
m_Father: {fileID: 4266660070112694984}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -46}
|
||||
m_SizeDelta: {x: 458.7, y: 60}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 458.7, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3399350683329499701
|
||||
CanvasRenderer:
|
||||
|
|
@ -981,9 +1222,9 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 1679637790, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreLayout: 1
|
||||
m_IgnoreLayout: 0
|
||||
m_MinWidth: -1
|
||||
m_MinHeight: -1
|
||||
m_MinHeight: 60
|
||||
m_PreferredWidth: -1
|
||||
m_PreferredHeight: -1
|
||||
m_FlexibleWidth: -1
|
||||
|
|
@ -1022,7 +1263,7 @@ RectTransform:
|
|||
- {fileID: 7723611781473440887}
|
||||
- {fileID: 2422870302914067564}
|
||||
- {fileID: 7546850210960475497}
|
||||
- {fileID: 5601896589029272011}
|
||||
- {fileID: 4266660070112694984}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
@ -1303,7 +1544,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: -12.8}
|
||||
m_AnchoredPosition: {x: 0, y: -12.800003}
|
||||
m_SizeDelta: {x: 672, y: 2}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3664755432954548449
|
||||
|
|
|
|||
|
|
@ -3082,7 +3082,8 @@ RoleInfoPanelIndex = {
|
|||
jinjie = 3,
|
||||
juexing = 4,
|
||||
chuanshuo = 5,
|
||||
pifu = 6
|
||||
pifu = 6,
|
||||
feiSheng = 7,
|
||||
}
|
||||
|
||||
GodSoulProfession = {
|
||||
|
|
|
|||
|
|
@ -473,6 +473,7 @@ SubUIConfig = {
|
|||
RoleSkinLayout = { name = "RoleSkinLayout",assetName = "RoleSkinLayout",script = "Modules/RoleInfo/RoleSkinPanel" },
|
||||
RoleStoryLayout = { name = "RoleStoryLayout",assetName = "RoleStoryLayout",script = "Modules/RoleInfo/RoleStoryLayout" },
|
||||
RoleUpStarLayout = { name = "RoleUpStarLayout",assetName = "RoleUpStarLayout",script = "Modules/RoleInfo/RoleUpStarLayout" },
|
||||
RoleFlyUpLayout = { name = "RoleFlyUpLayout",assetName = "RoleFlyUpLayout",script = "Modules/RoleInfo/RoleFlyUpLayout" },
|
||||
SingleFightPlayerView = { name = "SingleFightPlayerView",assetName = "SingleFightPlayerView",script = "View/SingleFightPlayerView" }, -- 挂机界面一个人
|
||||
SingleStoryPlayerView = { name = "SingleStoryPlayerView",assetName = "SingleStoryPlayerView",script = "View/SingleStoryPlayerView" } , --剧情界面一个对象
|
||||
PlayerTitle = {name = "PlayerTitle",assetName = "PlayerTitle",script = "View/PlayerTitle"},
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ local itemList = {}
|
|||
function this:InitComponent(gameObject)
|
||||
this.spLoader = SpriteLoader.New()
|
||||
self.bg =Util.GetGameObject(gameObject, "bg")
|
||||
self.title=Util.GetGameObject(gameObject, "bg/name/text"):GetComponent("Text")
|
||||
self.pre =Util.GetGameObject(gameObject, "pre")
|
||||
self.upStarPre =Util.GetGameObject(gameObject, "upStarPre")
|
||||
self.close =Util.GetGameObject(gameObject, "close")
|
||||
|
|
@ -26,13 +27,21 @@ end
|
|||
|
||||
function this:RemoveListener()
|
||||
end
|
||||
|
||||
local type=0
|
||||
function this:OnShow(_parent,_Data)
|
||||
parent=_parent
|
||||
|
||||
sortingOrder = _parent.sortingOrder
|
||||
parent.BG:SetActive(false)
|
||||
local args = _Data
|
||||
local curHeroData = args[1]
|
||||
if args[2] then
|
||||
type=args[2]
|
||||
self.title.text="飞升预览"
|
||||
else
|
||||
type=0
|
||||
self.title.text="进阶预览"
|
||||
end
|
||||
if not curHeroData or not HeroConfig[curHeroData.heroConfig.Id] or #HeroConfig[curHeroData.heroConfig.Id].RankupConsumeMaterial < 1 then
|
||||
parent:ClosePanel()
|
||||
return
|
||||
|
|
@ -45,8 +54,8 @@ function this:OnShow(_parent,_Data)
|
|||
local oldIndex = 0
|
||||
local oldIndexType = 0
|
||||
local index = 0
|
||||
for k,v in ipairs(curHeroData.heroConfig.RankupConsumeMaterial) do
|
||||
if v[1] <= 10 then
|
||||
for k,v in ipairs(curHeroData.heroConfig.RankupConsumeMaterial) do
|
||||
if (type==0 and v[1] <= 10) or (type~=0 and v[1]>11) then
|
||||
if oldIndexType ~= v[1] then
|
||||
oldIndexType = v[1]
|
||||
oldIndex = oldIndex + 1
|
||||
|
|
@ -132,10 +141,21 @@ function this:OnShow(_parent,_Data)
|
|||
icon.gameObject:SetActive(true)
|
||||
proImage.gameObject:SetActive(true)
|
||||
proImage.sprite = this.spLoader:LoadSprite(GetProStrImageByProNum(v.property))
|
||||
icon.sprite=this.spLoader:LoadSprite(GetResourcePath(HeroConfig[v.id].Icon))
|
||||
frame.sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(HeroConfig[v.id].Quality, v.star))
|
||||
proImage.sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(HeroConfig[v.id].PropertyName))
|
||||
name.text = HeroConfig[v.id].ReadingName
|
||||
if HeroConfig[v.id] then
|
||||
icon.sprite=this.spLoader:LoadSprite(GetResourcePath(HeroConfig[v.id].Icon))
|
||||
frame.sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(HeroConfig[v.id].Quality, v.star))
|
||||
name.text = HeroConfig[v.id].ReadingName
|
||||
proImage.gameObject:SetActive(true)
|
||||
proImage.sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(HeroConfig[v.id].PropertyName))
|
||||
else
|
||||
local itemConfig=ConfigManager.TryGetConfigData(ConfigName.ItemConfig,v.id)
|
||||
if itemConfig then
|
||||
proImage.gameObject:SetActive(false)
|
||||
icon.sprite=this.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
||||
frame.sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(itemConfig.Quantity))
|
||||
name.text = itemConfig.Name
|
||||
end
|
||||
end
|
||||
else
|
||||
if v.property > 0 then
|
||||
proImage.gameObject:SetActive(true)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,532 @@
|
|||
require("Base/BasePanel")
|
||||
RoleFlyUpLayout = Inherit(BasePanel)
|
||||
local this = RoleFlyUpLayout
|
||||
|
||||
local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
local heroRankupConfig = ConfigManager.GetConfig(ConfigName.HeroRankupConfig)
|
||||
local propertyConfig = ConfigManager.GetConfig(ConfigName.PropertyConfig)
|
||||
local heroSkinConfig = ConfigManager.GetConfig(ConfigName.HeroSkin)
|
||||
|
||||
local isUpStarMaterials=true--升星 材料是否充足
|
||||
local curSelectUpStarData--当前选择升星坑位的数据
|
||||
local curSelectUpStarGo--当前选择升星坑位的预设
|
||||
local upStarConsumeMaterial={}--升星消耗的英雄组 {{1坑位英雄信息}{2坑位英雄信息}{}}
|
||||
local upStarMaterialIsAll={}--升星消耗的英雄组是否满足 {{1满足}{2不满足}{}}
|
||||
local isHeroUpStar=false--是否可升星
|
||||
|
||||
local upStarRankUpConfig={}--即将要升星的数据
|
||||
local curStarRankUpConfig={}--当前升星的数据
|
||||
local curHeroData--当前英雄信息
|
||||
local parent = {}
|
||||
local upStarPreList = {}
|
||||
local heroDatas = {}
|
||||
local isUpZhen = false
|
||||
local allAddProVal = {}
|
||||
local allHeroTeamAddProVal = {}
|
||||
|
||||
function RoleFlyUpLayout:New(gameObject)
|
||||
local b = {}
|
||||
b.gameObject = gameObject
|
||||
b.transform = gameObject.transform
|
||||
setmetatable(b, { __index = RoleFlyUpLayout })
|
||||
return b
|
||||
end
|
||||
|
||||
--初始化组件(用于子类重写)
|
||||
function RoleFlyUpLayout:InitComponent()
|
||||
this.spLoader = SpriteLoader.New()
|
||||
this.upStar=Util.GetGameObject(self.gameObject,"upStar")
|
||||
this.noUpStarText=Util.GetGameObject(self.gameObject,"noUpStarText")
|
||||
this.upStarPre=Util.GetGameObject(this.upStar,"upStarPre")
|
||||
this.upStarGrid=Util.GetGameObject(this.upStar,"grid")
|
||||
this.upStarBtn=Util.GetGameObject(this.upStar,"btns/upStarBtn")
|
||||
this.upStarBtnRedPoint=Util.GetGameObject(this.upStar,"btns/upStarBtn/redPoint")
|
||||
this.goldBtn=Util.GetGameObject(this.upStar,"goldGrid/gold")
|
||||
this.goldText=Util.GetGameObject(this.upStar,"goldGrid/gold/Text"):GetComponent("Text")
|
||||
this.goldImage=Util.GetGameObject(this.upStar,"goldGrid/gold")
|
||||
this.gold2Btn=Util.GetGameObject(this.upStar,"goldGrid/gold2")
|
||||
this.gold2Text=Util.GetGameObject(this.upStar,"goldGrid/gold2/Text"):GetComponent("Text")
|
||||
this.gold2Image=Util.GetGameObject(this.upStar,"goldGrid/gold2")
|
||||
this.roleUpStarRedPoint=Util.GetGameObject(self.gameObject,"rolePanel/btnList/btnUpStar/redPoint")
|
||||
--升星属性
|
||||
this.skillInfoGrid = Util.GetGameObject(this.upStar.transform, "upStarProInfo/skillInfo"):GetComponent("Text")
|
||||
|
||||
this.atkPro_UpStar=Util.GetGameObject(self.gameObject,"upStar/upStarProInfo/pro/atk")
|
||||
this.hpPro_UpStar=Util.GetGameObject(self.gameObject,"upStar/upStarProInfo/pro/hp")
|
||||
this.phyDef_UpStar=Util.GetGameObject(self.gameObject,"upStar/upStarProInfo/pro/phyDef")
|
||||
this.magDef_UpStar=Util.GetGameObject(self.gameObject,"upStar/upStarProInfo/pro/magDef")
|
||||
this.help=Util.GetGameObject(self.gameObject,"upStar/btns/help")
|
||||
|
||||
this.heroSource = Util.GetGameObject(self.gameObject,"upStar/btns/heroSource")
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)s
|
||||
function RoleFlyUpLayout:BindEvent()
|
||||
Util.AddOnceClick(this.heroSource, function()
|
||||
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true
|
||||
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id)
|
||||
end)
|
||||
--升星
|
||||
Util.AddOnceClick(this.upStarBtn, function()
|
||||
self:StarUpClick()
|
||||
end)
|
||||
|
||||
Util.AddClick(this.help, function()
|
||||
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.JinJieYuLan,curHeroData,1)
|
||||
end)
|
||||
end
|
||||
|
||||
--添加事件监听(用于子类重写)
|
||||
function RoleFlyUpLayout:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, this.UpdateHeroUpStarMaterialShow,self)
|
||||
end
|
||||
--移除事件监听(用于子类重写)
|
||||
function RoleFlyUpLayout:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold,this.UpdateHeroUpStarMaterialShow,self)
|
||||
end
|
||||
|
||||
function RoleFlyUpLayout:OnShow()
|
||||
self.gameObject:SetActive(true)
|
||||
if PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 then
|
||||
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout = true
|
||||
PlayerManager.RewardItemSingleShowPopupIsRoleUpStarLayout2 = true
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,curHeroData.heroConfig.Id)
|
||||
end
|
||||
end
|
||||
|
||||
function RoleFlyUpLayout:SetData(_sortinglayer,_parent,_curHerodata,_isUpZhen,_heroDatas)
|
||||
self.gameObject:SetActive(true)
|
||||
this.sortingOrder = _sortinglayer
|
||||
curHeroData = _curHerodata
|
||||
if curHeroData.heroConfig.MaxRank > 5 then
|
||||
this.help.gameObject:SetActive(true)
|
||||
this.heroSource.gameObject:SetActive(true)
|
||||
else
|
||||
this.help.gameObject:SetActive(false)
|
||||
this.heroSource.gameObject:SetActive(false)
|
||||
end
|
||||
parent = _parent
|
||||
heroDatas = _heroDatas
|
||||
isUpZhen = _isUpZhen
|
||||
this:GetCurHeroUpLvOrUpStarSData()
|
||||
this:UpdateHeroUpStarData()--进阶
|
||||
end
|
||||
|
||||
--更新英雄进阶数据
|
||||
function RoleFlyUpLayout:UpdateHeroUpStarData()
|
||||
--进阶材料
|
||||
this:UpdateHeroUpStarMaterialShow()
|
||||
local WarPower
|
||||
--计算面板属性
|
||||
if isUpZhen then
|
||||
allAddProVal = HeroPropManager.GetHeroProp(curHeroData.dynamicId, FormationTypeDef.FORMATION_NORMAL)
|
||||
WarPower = HeroPowerManager.GetHeroPower(curHeroData.dynamicId, FormationTypeDef.FORMATION_NORMAL)
|
||||
else
|
||||
allAddProVal = HeroPropManager.GetHeroProp(curHeroData.dynamicId)
|
||||
WarPower = HeroPowerManager.GetHeroPower(curHeroData.dynamicId)
|
||||
end
|
||||
--进阶属性提升
|
||||
if upStarRankUpConfig and upStarRankUpConfig.Id then
|
||||
this:UpdateHeroUpStarProUpShow()
|
||||
end
|
||||
local awaken=curHeroData.heroConfig.Awaken
|
||||
LogError("upstarid=="..curHeroData.upStarId)
|
||||
if awaken then
|
||||
for key, value in pairs(awaken) do
|
||||
if value[2]==curHeroData.upStarId+1 then
|
||||
LogError("11111111111")
|
||||
local aaa=ConfigManager.TryGetConfigData(ConfigName.PassiveSkillConfig,value[3])
|
||||
if aaa then
|
||||
LogError("22222222 ")
|
||||
this.skillInfoGrid.text=aaa.Desc
|
||||
break
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
LogError("3333333333333")
|
||||
--进阶吞英雄条件
|
||||
Util.ClearChild(this.upStarGrid.transform)
|
||||
local curUpStarData= HeroManager.GetHeroCurUpStarInfo(curHeroData.dynamicId)
|
||||
if curUpStarData and #curUpStarData>0 then
|
||||
this.upStar:SetActive(true)
|
||||
this.noUpStarText:SetActive(false)
|
||||
parent.talentTipStrGo:SetActive(true)
|
||||
upStarConsumeMaterial={}
|
||||
upStarMaterialIsAll = {}
|
||||
upStarPreList = {}
|
||||
for i = 1, #curUpStarData do
|
||||
local go=newObject(this.upStarPre)
|
||||
go.transform:SetParent(this.upStarGrid.transform)
|
||||
go.transform.localScale = Vector3.one
|
||||
go.transform.localPosition=Vector3.zero;
|
||||
go:SetActive(true)
|
||||
go.transform.name = "upStarPre"..i
|
||||
upStarPreList[i] = go
|
||||
upStarConsumeMaterial[i]={}
|
||||
upStarMaterialIsAll[i]=2
|
||||
local addBtn=Util.GetGameObject(go.transform,"add")
|
||||
local isItem=false
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):SetActive(false)
|
||||
local itemConfig=nil
|
||||
if curUpStarData[i].upStarMaterialsData.Issame==1 or curUpStarData[i].upStarMaterialsData.IsId>0 then
|
||||
Util.GetGameObject(go.transform,"iconDefault"):SetActive(false)
|
||||
Util.GetGameObject(go.transform,"icon"):SetActive(true)
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):SetActive(true)
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(curHeroData.heroConfig.PropertyName))
|
||||
if curUpStarData[i].upStarMaterialsData.Issame==1 then
|
||||
Util.GetGameObject(go.transform,"icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(curHeroData.heroConfig.Icon))
|
||||
Util.GetGameObject(go.transform,"frame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(curHeroData.heroConfig.Quality, curUpStarData[i].upStarMaterialsData.StarLimit))
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(curHeroData.heroConfig.PropertyName))
|
||||
elseif curUpStarData[i].upStarMaterialsData.IsId>0 then
|
||||
local heroConfig = ConfigManager.TryGetConfigData(ConfigName.HeroConfig, curUpStarData[i].upStarMaterialsData.IsId)
|
||||
if heroConfig then
|
||||
Util.GetGameObject(go.transform,"icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(heroConfig.Icon))
|
||||
Util.GetGameObject(go.transform,"frame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(heroConfig.Quality, curUpStarData[i].upStarMaterialsData.StarLimit))
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage").gameObject:SetActive(true)
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(heroConfig.PropertyName))
|
||||
else
|
||||
itemConfig=ConfigManager.TryGetConfigData(ConfigName.ItemConfig,curUpStarData[i].upStarMaterialsData.IsId)
|
||||
if itemConfig then
|
||||
isItem=true
|
||||
Util.GetGameObject(go.transform,"icon"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
||||
Util.GetGameObject(go.transform,"frame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(itemConfig.Quantity))
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage").gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
else
|
||||
if curUpStarData[i].upStarMaterialsData.IsSameClan ==1 then
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):SetActive(true)
|
||||
Util.GetGameObject(go.transform, "iconbg/proImage"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetProStrImageByProNum(curHeroData.heroConfig.PropertyName))
|
||||
end
|
||||
Util.GetGameObject(go.transform,"iconDefault"):SetActive(true)
|
||||
Util.GetGameObject(go.transform,"icon"):SetActive(false)
|
||||
Util.GetGameObject(go.transform,"frame"):GetComponent("Image").sprite=this.spLoader:LoadSprite(GetHeroQuantityImageByquality(nil,curUpStarData[i].upStarMaterialsData.StarLimit))
|
||||
--
|
||||
end
|
||||
local upStarHeroListData=HeroManager.GetUpStarHeroListData(curUpStarData[i].upStarMaterialsData.Id,curHeroData)
|
||||
if upStarHeroListData.state>0 then
|
||||
Util.GetGameObject(go.transform,"add/add"):SetActive(true)
|
||||
else
|
||||
Util.GetGameObject(go.transform,"add/add"):SetActive(false)
|
||||
end
|
||||
Util.GetGameObject(go.transform,"num"):GetComponent("Text").text=string.format("<color=#FF0000FF>%s/%s</color>",0,curUpStarData[i].upStarData[4])
|
||||
SetHeroStars(this.spLoader, Util.GetGameObject(go.transform, "iconbg/starGrid"), curUpStarData[i].upStarMaterialsData.StarLimit,1,nil,-15.3)
|
||||
Util.SetParticleSortLayer(Util.GetGameObject(go.transform, "iconbg/starGrid"),self.sortingOrder + 1)
|
||||
Util.AddOnceClick(addBtn, function()
|
||||
if isItem then
|
||||
LogError("点击的是物品")
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,itemConfig.Id)
|
||||
else
|
||||
curSelectUpStarData=curUpStarData[i]
|
||||
curSelectUpStarGo=go
|
||||
local curShowHeroListData=self:SetShowHeroListData(upStarConsumeMaterial,upStarHeroListData.heroList)
|
||||
--参数1 显示的herolist 2 3 升当前星的规则 4 打开RoleUpStarListPanel的界面
|
||||
UIManager.OpenPanel(UIName.RoleUpStarListPanel,curShowHeroListData,curUpStarData[i].upStarMaterialsData,curUpStarData[i].upStarData,this,upStarConsumeMaterial[i],curHeroData)
|
||||
end
|
||||
end)
|
||||
|
||||
end
|
||||
else
|
||||
this.upStar:SetActive(false)
|
||||
this.noUpStarText:SetActive(true)
|
||||
parent.talentTipStrGo:SetActive(false)
|
||||
end
|
||||
self:AutoSelectUpStarHeroList(curUpStarData)
|
||||
end
|
||||
--获取当前英雄的下一突破 和 升星 静态数据
|
||||
function RoleFlyUpLayout:GetCurHeroUpLvOrUpStarSData()
|
||||
isHeroUpStar = false
|
||||
upStarRankUpConfig = {}
|
||||
local heroRankUpConfig = ConfigManager.GetConfig(ConfigName.HeroRankupConfig)
|
||||
for i, v in ConfigPairs(heroRankUpConfig) do
|
||||
if v.Star==curHeroData.heroConfig.Star then--初始星级相等
|
||||
if v.Show==2 then -- 2 升星
|
||||
if v.Id ~= curHeroData.upStarId and curHeroData.star == v.LimitStar then
|
||||
--Log("升星 "..v.Id)
|
||||
upStarRankUpConfig=v
|
||||
isHeroUpStar = true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
--更新英雄进阶材料显示
|
||||
function RoleFlyUpLayout:UpdateHeroUpStarMaterialShow()
|
||||
--进阶金币 妖壶条件
|
||||
if upStarRankUpConfig then
|
||||
isUpStarMaterials=true
|
||||
local ConsumeMaterial=upStarRankUpConfig.ConsumeMaterial
|
||||
if ConsumeMaterial and #ConsumeMaterial>=2 then
|
||||
if ConsumeMaterial[1][2]>0 then
|
||||
this.goldImage:SetActive(true)
|
||||
this.goldImage:GetComponent("Image").sprite = this.spLoader:LoadSprite(GetResourcePath(itemConfig[ConsumeMaterial[1][1]].ResourceID))
|
||||
if BagManager.GetItemCountById(ConsumeMaterial[1][1])<ConsumeMaterial[1][2] then
|
||||
isUpStarMaterials=false
|
||||
this.goldText.text=string.format("<color=#FF0000FF>%s</color>",ConsumeMaterial[1][2])
|
||||
else
|
||||
this.goldText.text=string.format("<color=#FFFFFFFF>%s</color>",ConsumeMaterial[1][2])
|
||||
end
|
||||
Util.AddOnceClick(this.goldBtn,function()
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,ConsumeMaterial[1][1])
|
||||
end)
|
||||
else
|
||||
this.goldImage:SetActive(false)
|
||||
end
|
||||
if ConsumeMaterial[2][2]>0 then
|
||||
this.gold2Image:SetActive(true)
|
||||
this.gold2Image:GetComponent("Image").sprite = this.spLoader:LoadSprite(GetResourcePath(itemConfig[ConsumeMaterial[2][1]].ResourceID))
|
||||
if BagManager.GetItemCountById(ConsumeMaterial[2][1])<ConsumeMaterial[2][2] then
|
||||
isUpStarMaterials=false
|
||||
this.gold2Text.text=string.format("<color=#FF0000FF>%s</color>",ConsumeMaterial[2][2])
|
||||
else
|
||||
this.gold2Text.text=string.format("<color=#FFFFFFFF>%s</color>",ConsumeMaterial[2][2])
|
||||
end
|
||||
Util.AddOnceClick(this.gold2Btn,function()
|
||||
UIManager.OpenPanel(UIName.RewardItemSingleShowPopup,ConsumeMaterial[2][1])
|
||||
end)
|
||||
else
|
||||
this.gold2Image:SetActive(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--进阶属性提升
|
||||
function RoleFlyUpLayout:UpdateHeroUpStarProUpShow()
|
||||
if upStarRankUpConfig and upStarRankUpConfig.Id then
|
||||
|
||||
local nextUpStarConFig = ConfigManager.GetConfigData(ConfigName.HeroRankupConfig,upStarRankUpConfig.Id)
|
||||
local nextProUpVal = 0
|
||||
if nextUpStarConFig then nextProUpVal = nextUpStarConFig.PropertiesDisplay end
|
||||
|
||||
-- 生成一个临时英雄数据,使用完成后需主动清理
|
||||
local tempDId, tempData = HeroTempPropManager.CreateTempHero(curHeroData.dynamicId)
|
||||
tempData.upStarId = upStarRankUpConfig.Id
|
||||
tempData.breakId = curHeroData.breakId
|
||||
local nextallAddProVal = {}
|
||||
if isUpZhen then
|
||||
nextallAddProVal = HeroTempPropManager.GetTempHeroProp(tempDId, FormationTypeDef.FORMATION_NORMAL)
|
||||
else
|
||||
nextallAddProVal = HeroTempPropManager.GetTempHeroProp(tempDId)
|
||||
end
|
||||
HeroTempPropManager.ClearTempHero(tempDId)-- 清理
|
||||
|
||||
this:ProShow(this.atkPro_UpStar,allAddProVal,HeroProType.Attack,nextallAddProVal)
|
||||
this:ProShow(this.hpPro_UpStar,allAddProVal,HeroProType.Hp,nextallAddProVal)
|
||||
this:ProShow(this.phyDef_UpStar,allAddProVal,HeroProType.PhysicalDefence,nextallAddProVal)
|
||||
this:ProShow(this.magDef_UpStar,allAddProVal,HeroProType.MagicDefence,nextallAddProVal)
|
||||
end
|
||||
end
|
||||
function RoleFlyUpLayout:ProShow(go,allAddProVal,HeroProType,nextallAddProVal)
|
||||
local curProSConFig = ConfigManager.GetConfigData(ConfigName.PropertyConfig,HeroProType)
|
||||
Util.GetGameObject(go,"proName"):GetComponent("Text").text = GetLanguageStrById(curProSConFig.Info)..":"
|
||||
Util.GetGameObject(go,"proValue"):GetComponent("Text").text = allAddProVal[HeroProType]
|
||||
Util.GetGameObject(go,"Image"):GetComponent("Image").sprite = this.spLoader:LoadSprite(PropertyTypeIconDef[HeroProType])
|
||||
if nextallAddProVal then
|
||||
Util.GetGameObject(go,"nextproValue"):GetComponent("Text").text = nextallAddProVal[HeroProType]
|
||||
end
|
||||
end
|
||||
--升星选择祭品后刷新界面
|
||||
function RoleFlyUpLayout:AutoSelectUpStarHeroList(_curUpStarData)
|
||||
local curUpStarData= _curUpStarData
|
||||
if curUpStarData and #curUpStarData>0 then
|
||||
for i = 1, #curUpStarData do
|
||||
curSelectUpStarData=curUpStarData[i]
|
||||
curSelectUpStarGo=upStarPreList[i]
|
||||
local upStarHeroListData=HeroManager.GetUpStarHeroListData(curUpStarData[i].upStarMaterialsData.Id,curHeroData)
|
||||
local curSelectHeroList = {}
|
||||
if curUpStarData[i].upStarMaterialsData.Issame ==1
|
||||
or curUpStarData[i].upStarMaterialsData.IsId > 0
|
||||
or (curUpStarData[i].upStarMaterialsData.IsSameClan == 1
|
||||
and curUpStarData[i].upStarMaterialsData.StarLimit == 3
|
||||
and curHeroData.heroConfig.Qualiy ~= 3) then
|
||||
if LengthOfTable(upStarHeroListData.heroList) >= curUpStarData[i].upStarData[4] then
|
||||
for i = 1, curUpStarData[i].upStarData[4] do
|
||||
if upStarHeroListData.heroList[i].type == RoleUpStarMatType.item or upStarHeroListData.heroList[i].type == RoleUpStarMatType.hero and upStarHeroListData.heroList[i].lockState == 0 and upStarHeroListData.heroList[i].isFormation == ""
|
||||
and (not HarmonyManager.IsChangeColor(upStarHeroListData.heroList[i].dynamicId)) and (not HarmonyManager:IsEnvoy(upStarHeroListData.heroList[i].dynamicId)) then
|
||||
table.insert(curSelectHeroList,upStarHeroListData.heroList[i])
|
||||
end
|
||||
end
|
||||
self:UpdateUpStarPosHeroData(curSelectHeroList)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
--进阶红点
|
||||
local upStarRedPointState = HeroManager.IsShowUpStarRedPoint(curHeroData)
|
||||
this.upStarBtnRedPoint:SetActive(upStarRedPointState)
|
||||
parent:CheckRedPointType(RoleInfoPanelIndex.jinjie,upStarRedPointState)
|
||||
end
|
||||
|
||||
|
||||
--刷新当前升星坑位英雄的信息
|
||||
function RoleFlyUpLayout:UpdateUpStarPosHeroData(curSelectHeroList)
|
||||
if LengthOfTable(curSelectHeroList)<curSelectUpStarData.upStarData[4] then
|
||||
upStarMaterialIsAll[curSelectUpStarData.upStarData[2]]=2
|
||||
Util.GetGameObject(curSelectUpStarGo.transform,"add/add"):SetActive(true)
|
||||
local upStarHeroListData=HeroManager.GetUpStarHeroListData(curSelectUpStarData.upStarMaterialsData.Id,curHeroData)
|
||||
if upStarHeroListData.state<=0 then
|
||||
Util.GetGameObject(curSelectUpStarGo.transform,"add/add"):SetActive(false)
|
||||
end
|
||||
Util.GetGameObject(curSelectUpStarGo.transform,"num"):GetComponent("Text").text=string.format("<color=#FF0000FF>%s/%s</color>", LengthOfTable(curSelectHeroList),curSelectUpStarData.upStarData[4])
|
||||
else
|
||||
upStarMaterialIsAll[curSelectUpStarData.upStarData[2]]=1
|
||||
Util.GetGameObject(curSelectUpStarGo.transform,"add/add"):SetActive(false)
|
||||
Util.GetGameObject(curSelectUpStarGo.transform,"num"):GetComponent("Text").text=string.format("<color=#FFFFFFFF>%s/%s</color>", LengthOfTable(curSelectHeroList),curSelectUpStarData.upStarData[4])
|
||||
end
|
||||
local curUpStarConsumeMaterial={}
|
||||
for i, v in pairs(curSelectHeroList) do
|
||||
table.insert(curUpStarConsumeMaterial,v)
|
||||
end
|
||||
upStarConsumeMaterial[curSelectUpStarData.upStarData[2]]=curUpStarConsumeMaterial
|
||||
end
|
||||
--分析设置升星界面显示的英雄list数据 如果当前升星材料的坑位的英雄数据与 以其他坑位有重合并且选择上的英雄不显示 如果是当前坑位显示的英雄显示对勾
|
||||
function RoleFlyUpLayout:SetShowHeroListData(upStarConsumeMaterial,curHeroList)--1 消耗的总消耗组 2 当前坑位可选择的所有英雄
|
||||
--Log("#curHeroList "..#curHeroList)
|
||||
local curEndShowHeroListData2={}
|
||||
for i = 1, #curHeroList do
|
||||
table.insert(curEndShowHeroListData2,curHeroList[i])
|
||||
end
|
||||
local curEndShowHeroListData={}
|
||||
for i, v in pairs(curEndShowHeroListData2) do
|
||||
v.isSelect=2
|
||||
table.insert(curEndShowHeroListData,v)
|
||||
end
|
||||
for j = 1, #upStarConsumeMaterial do
|
||||
if upStarConsumeMaterial[j] and #upStarConsumeMaterial[j]>0 then
|
||||
for k = 1, #upStarConsumeMaterial[j] do
|
||||
if j==curSelectUpStarData.upStarData[2] then--curSelectUpStarData 当前坑位选择的英雄信息
|
||||
for _, v in pairs(curEndShowHeroListData) do
|
||||
if v.type == RoleUpStarMatType.hero and v.dynamicId==upStarConsumeMaterial[j][k].dynamicId then
|
||||
v.isSelect=1
|
||||
elseif v.type == RoleUpStarMatType.item and v.id==upStarConsumeMaterial[j][k].id and v.index==upStarConsumeMaterial[j][k].index then
|
||||
v.isSelect=1
|
||||
end
|
||||
end
|
||||
else
|
||||
for i, v in pairs(curEndShowHeroListData) do
|
||||
if v.type == RoleUpStarMatType.hero and v.dynamicId==upStarConsumeMaterial[j][k].dynamicId then
|
||||
curEndShowHeroListData[i] = nil
|
||||
elseif v.type == RoleUpStarMatType.item and v.id==upStarConsumeMaterial[j][k].id and v.index==upStarConsumeMaterial[j][k].index then
|
||||
curEndShowHeroListData[i] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
local curList={}
|
||||
for _, v in pairs(curEndShowHeroListData) do
|
||||
table.insert(curList,v)
|
||||
end
|
||||
return curList
|
||||
end
|
||||
--进阶按钮点击事件处理
|
||||
function RoleFlyUpLayout:StarUpClick()
|
||||
if (not HarmonyManager.IsInfo(curHeroData.dynamicId)) and (not HarmonyManager:IsEnvoy(curHeroData.dynamicId)) then
|
||||
-- body curHeroData
|
||||
|
||||
-- print("1111111111",1111111111,tostring(HarmonyManager.IsInfo(curHeroData.dynamicId)),tostring(HarmonyManager:IsEnvoy(curHeroData.dynamicId)))
|
||||
if curHeroData.oriLv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then
|
||||
PopupTipPanel.ShowTip(Language[11788])
|
||||
return
|
||||
end
|
||||
-- elseif then
|
||||
-- -- body
|
||||
-- print("2222222",1111111111)
|
||||
-- if curHeroData.lv>=HeroManager.heroLvEnd[curHeroData.heroConfig.Id] then
|
||||
-- PopupTipPanel.ShowTip("当前培养已满")
|
||||
-- return
|
||||
-- end
|
||||
end
|
||||
|
||||
if curHeroData.lv<upStarRankUpConfig.LimitLevel then
|
||||
PopupTipPanel.ShowTip(Language[11789]..upStarRankUpConfig.LimitLevel)
|
||||
return
|
||||
end
|
||||
local isUpStarMaterialsHero=true
|
||||
for i = 1, #upStarMaterialIsAll do
|
||||
if upStarMaterialIsAll[i]==2 then
|
||||
isUpStarMaterialsHero=false
|
||||
end
|
||||
end
|
||||
if isUpStarMaterials and isUpStarMaterialsHero then
|
||||
NetManager.HeroUpStarEvent(curHeroData.dynamicId,upStarConsumeMaterial ,function (msg)
|
||||
UIManager.OpenPanel(UIName.RoleUpStarSuccessPanel,curHeroData,upStarRankUpConfig.Id,upStarRankUpConfig.OpenLevel,function ()
|
||||
local dropItemTabs = BagManager.GetTableByBackDropData(msg)
|
||||
if #dropItemTabs > 0 then
|
||||
BagManager.SetDropIsSHowEquipPrint(false)
|
||||
UIManager.OpenPanel(UIName.RewardItemPopup, msg, 1, function ()
|
||||
self:DeleteUpStarMaterials()
|
||||
end)
|
||||
else
|
||||
self:DeleteUpStarMaterials()
|
||||
end
|
||||
CheckRedPointStatus(RedPointType.ShengXingYouLi)
|
||||
end)
|
||||
end)
|
||||
-- 进阶音效
|
||||
PlaySoundWithoutClick(SoundConfig.Sound_Recruit3)
|
||||
else
|
||||
PopupTipPanel.ShowTip(Language[10415])
|
||||
end
|
||||
end
|
||||
--扣除升星 消耗的材料 更新英雄数据
|
||||
function RoleFlyUpLayout:DeleteUpStarMaterials()
|
||||
HeroManager.UpdateSingleHeroDatas(curHeroData.dynamicId,nil,curHeroData.star+1,nil,upStarRankUpConfig.Id,true)
|
||||
HeroManager.UpdateSingleHeroSkillData(curHeroData.dynamicId)
|
||||
for i, v in pairs(heroDatas) do
|
||||
if curHeroData == v then
|
||||
curHeroData=HeroManager.GetSingleHeroData(curHeroData.dynamicId)
|
||||
v=curHeroData
|
||||
end
|
||||
end
|
||||
--本地数据删除材料英雄
|
||||
local curDelHeroDids = {}
|
||||
for i = 1, #upStarConsumeMaterial do
|
||||
for j = 1, #upStarConsumeMaterial[i] do
|
||||
if upStarConsumeMaterial[i][j].type == RoleUpStarMatType.hero then
|
||||
table.insert(curDelHeroDids,upStarConsumeMaterial[i][j].dynamicId)
|
||||
end
|
||||
end
|
||||
end
|
||||
if curDelHeroDids and #curDelHeroDids > 0 then
|
||||
HeroManager.DeleteHeroDatas(curDelHeroDids)
|
||||
end
|
||||
if HeroManager.heroListPanelProID ~= ProIdConst.All then
|
||||
heroDatas = HeroManager.GetHeroDataByProperty(HeroManager.heroListPanelProID)
|
||||
else
|
||||
heroDatas = HeroManager.GetAllHeroDatas()
|
||||
end
|
||||
if UIManager.IsOpen(UIName.RoleInfoPanel) then--当界面存在时需要刷新当前界面
|
||||
HeroManager.SortHeroDatas(heroDatas)
|
||||
parent:OnOpen(curHeroData, heroDatas,isUpZhen)
|
||||
parent:OnShow()
|
||||
end
|
||||
end
|
||||
function RoleFlyUpLayout:OnSortingOrderChange()
|
||||
|
||||
end
|
||||
|
||||
function RoleFlyUpLayout:OnHide()
|
||||
self.gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
function RoleFlyUpLayout:OnClose()
|
||||
upStarPreList = {}
|
||||
end
|
||||
|
||||
function RoleFlyUpLayout:OnDestroy()
|
||||
this.spLoader:Destroy()
|
||||
upStarPreList = {}
|
||||
end
|
||||
|
||||
return this
|
||||
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cf9556318592d68468c2924ed3021bbd
|
||||
timeCreated: 1545907222
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -17,6 +17,8 @@ local tabs = {
|
|||
},
|
||||
[RoleInfoPanelIndex.pifu] = {default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",title = Language[11816],rpType = -1,
|
||||
},
|
||||
[RoleInfoPanelIndex.feiSheng] = {default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002", select = "r_hero_xuanze_001",title = "飞升",rpType = -1,
|
||||
},
|
||||
}
|
||||
|
||||
local tabPage = {
|
||||
|
|
@ -26,6 +28,7 @@ local tabPage = {
|
|||
[RoleInfoPanelIndex.juexing] = SubUIConfig.RoleAwakelayout,
|
||||
[RoleInfoPanelIndex.chuanshuo] = SubUIConfig.RoleStoryLayout,
|
||||
[RoleInfoPanelIndex.pifu] = SubUIConfig.RoleSkinLayout,
|
||||
[RoleInfoPanelIndex.feiSheng] = SubUIConfig.RoleFlyUpLayout,
|
||||
}
|
||||
|
||||
local curHeroData--当前英雄信息
|
||||
|
|
@ -254,6 +257,7 @@ function RoleInfoPanel:BindEvent()
|
|||
this:HeroLockEvent()
|
||||
end)
|
||||
Util.AddClick(this.talentBtn,function()
|
||||
LogError("brea id=="..curHeroData.breakId.." upstarid =="..curHeroData.upStarId)
|
||||
UIManager.OpenPanel(UIName.RoleTalentPopup,curHeroData.heroConfig,curHeroData.breakId,curHeroData.upStarId)
|
||||
end)
|
||||
Util.AddClick(this.godSoulBtn,function()
|
||||
|
|
@ -553,6 +557,12 @@ function this:UpdateBtnList()
|
|||
else
|
||||
tabsList[k].gameObject:SetActive(false)
|
||||
end
|
||||
elseif k== RoleInfoPanelIndex.feiSheng then
|
||||
if curHeroData.star >=11 and curHeroData.heroConfig.MaxRank>11 then
|
||||
tabsList[k].gameObject:SetActive(true)
|
||||
else
|
||||
tabsList[k].gameObject:SetActive(false)
|
||||
end
|
||||
else
|
||||
tabsList[k].gameObject:SetActive(true)
|
||||
end
|
||||
|
|
@ -750,8 +760,21 @@ function this:UpdateHeroInfoData()
|
|||
Util.GetGameObject(this.soulPrintBtn, "lock/Text"):GetComponent("Text").text= NumToSimplenessFont[EquipSignUnlock[2][2]]..Language[10535]
|
||||
end
|
||||
--天赋
|
||||
local talentBtnImage=""
|
||||
this.talentBtn:SetActive(curHeroData.heroConfig.OpenPassiveSkillRules ~= nil)
|
||||
local talentBtnImage = curHeroData.star == HeroManager.awakeNextStarIndex and "r_hero_tianfu2_zh" or "r_hero_tianfu1_zh"
|
||||
|
||||
if curHeroData.star==HeroManager.awakeNextStarIndex then
|
||||
talentBtnImage="r_hero_tianfu2_zh"
|
||||
elseif curHeroData.star==12 then
|
||||
talentBtnImage="r_hero_tianfu2_zh"
|
||||
elseif curHeroData.star==13 then
|
||||
talentBtnImage="r_hero_tianfu2_zh"
|
||||
elseif curHeroData.star==14 then
|
||||
talentBtnImage="r_hero_tianfu2_zh"
|
||||
else
|
||||
talentBtnImage="r_hero_tianfu1_zh"
|
||||
end
|
||||
|
||||
this.talentBtnIcon.sprite = this.spLoader:LoadSprite(talentBtnImage)
|
||||
local OpenPassiveSkillRules = curHeroData.star == HeroManager.awakeNextStarIndex and curHeroData.heroConfig.Awaken or curHeroData.heroConfig.OpenPassiveSkillRules
|
||||
if OpenPassiveSkillRules then
|
||||
|
|
|
|||
|
|
@ -12,12 +12,16 @@ function RoleTalentPopup:InitComponent()
|
|||
self.breakSkillGoList = {}
|
||||
self.upStarSkillGoList = {}
|
||||
self.BackMask = Util.GetGameObject(self.transform, "BackMask")
|
||||
self.breakOpenSkill =Util.GetGameObject(self.transform, "bg/breakOpenSkill")
|
||||
self.upStarOpenSkill =Util.GetGameObject(self.transform, "bg/upStarOpenSkill")
|
||||
self.breakOpenSkill =Util.GetGameObject(self.transform, "GameObject/grid/bg/breakOpenSkill")
|
||||
self.upStarOpenSkill =Util.GetGameObject(self.transform, "GameObject/grid/bg/upStarOpenSkill")
|
||||
self.breakSkillTextPre =Util.GetGameObject(self.transform, "breakSkillTextPre")
|
||||
self.breakOpenSkillGrid =Util.GetGameObject(self.transform, "bg/breakOpenSkill/Mask")
|
||||
self.breakOpenSkillGrid =Util.GetGameObject(self.transform, "GameObject/grid/bg/breakOpenSkill/Mask")
|
||||
self.upStarSkillTextPre =Util.GetGameObject(self.transform, "upStarSkillTextPre")
|
||||
self.upStarOpenSkill =Util.GetGameObject(self.transform, "bg/upStarOpenSkill/Mask")
|
||||
self.upStarOpenSkill =Util.GetGameObject(self.transform, "GameObject/grid/bg/upStarOpenSkill/Mask")
|
||||
self.grid =Util.GetGameObject(self.transform, "GameObject/grid"):GetComponent("RectTransform")
|
||||
self.gridVerticalL =Util.GetGameObject(self.transform, "GameObject/grid"):GetComponent("VerticalLayoutGroup")
|
||||
self.gridLayoutE =Util.GetGameObject(self.transform, "GameObject/grid"):GetComponent("LayoutElement")
|
||||
self.gridBg =Util.GetGameObject(self.transform, "GameObject/grid/bg"):GetComponent("RectTransform")
|
||||
end
|
||||
|
||||
--绑定事件(用于子类重写)
|
||||
|
|
@ -51,6 +55,8 @@ function RoleTalentPopup:GetTalentDataShow()
|
|||
breakSkillDataList = {}
|
||||
upStarSkillDataList = {}
|
||||
local heroRankUpConfig = ConfigManager.GetConfig(ConfigName.HeroRankupConfig)
|
||||
LogError("upstarid =="..upStarId)
|
||||
local openNum=0
|
||||
local OpenPassiveSkillRules = (upStarId and upStarId ~=0 and heroRankUpConfig[upStarId].OpenStar == HeroManager.awakeNextStarIndex) and heroConfig.Awaken or heroConfig.OpenPassiveSkillRules
|
||||
if OpenPassiveSkillRules then
|
||||
for i = 1, #OpenPassiveSkillRules do
|
||||
|
|
@ -61,35 +67,63 @@ function RoleTalentPopup:GetTalentDataShow()
|
|||
if breakSkillDataList[curBreakId] then
|
||||
breakSkillDataList[curBreakId] = {index = curBreakId,str = breakSkillDataList[curBreakId].str .. " <color=#00F800>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
else
|
||||
openNum=openNum+1
|
||||
breakSkillDataList[curBreakId] = {index = curBreakId,str ="<color=#00F800>"..titleStr..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
end
|
||||
else
|
||||
if breakSkillDataList[curBreakId] then
|
||||
breakSkillDataList[curBreakId] = {index = curBreakId,str =breakSkillDataList[curBreakId].str .. " <color=#B9AC97>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
else
|
||||
openNum=openNum+1
|
||||
breakSkillDataList[curBreakId] = {index = curBreakId,str ="<color=#B9AC97>"..titleStr..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
end
|
||||
end
|
||||
else--升星
|
||||
|
||||
local curUpStarId = OpenPassiveSkillRules[i][2]
|
||||
local titleStr = NumToSimplenessFont[heroRankupConfig[curUpStarId].Phase[2]] .. Language[11792]
|
||||
local titleStr = ""
|
||||
if curUpStarId>11 then
|
||||
|
||||
--self.grid.sizeDelta=Vector2.New(969,1000)
|
||||
if curUpStarId==12 then
|
||||
titleStr="飞升一阶激活:\n"
|
||||
elseif curUpStarId==13 then
|
||||
titleStr="飞升二阶激活:\n"
|
||||
elseif curUpStarId==14 then
|
||||
titleStr="飞升三阶激活:\n"
|
||||
end
|
||||
else
|
||||
|
||||
titleStr = NumToSimplenessFont[heroRankupConfig[curUpStarId].Phase[2]] .. Language[11792]
|
||||
end
|
||||
local _passiveSkillId = passiveSkillConfig[OpenPassiveSkillRules[i][3]].Id
|
||||
LogError("upstarid=="..upStarId.." curupstarid=="..curUpStarId)
|
||||
if upStarId >= curUpStarId then
|
||||
if upStarSkillDataList[curUpStarId] then
|
||||
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str = GetLanguageStrById(upStarSkillDataList[curUpStarId].str) .. "<color=#00F800>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
else
|
||||
openNum=openNum+1
|
||||
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str ="<color=#00F800>"..GetLanguageStrById(titleStr)..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
end
|
||||
else
|
||||
if upStarSkillDataList[curUpStarId] then
|
||||
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str =GetLanguageStrById(upStarSkillDataList[curUpStarId].str) .. "<color=#B9AC97>"..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
else
|
||||
openNum=openNum+1
|
||||
upStarSkillDataList[curUpStarId] = {passiveSkillId = _passiveSkillId,index = curUpStarId,str ="<color=#B9AC97>"..GetLanguageStrById(titleStr)..GetLanguageStrById(passiveSkillConfig[OpenPassiveSkillRules[i][3]].Desc).."</color>"}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if openNum>10 then
|
||||
self.gridVerticalL.enabled=false
|
||||
self.gridLayoutE.enabled=true
|
||||
self.gridBg.anchoredPosition=Vector2.New(380,840)
|
||||
else
|
||||
self.gridVerticalL.enabled=true
|
||||
self.gridLayoutE.enabled=false
|
||||
end
|
||||
|
||||
end
|
||||
local breakSkillDataList2 = {}
|
||||
for i, v in pairs(breakSkillDataList) do
|
||||
|
|
@ -135,7 +169,11 @@ function RoleTalentPopup:GetTalentDataShow()
|
|||
if passiveSkillLogicConfig[upStarSkillDataList2[i].passiveSkillId].Judge == 1 then
|
||||
kongStr = Language[11835]
|
||||
else
|
||||
kongStr = ""
|
||||
if i>11 then
|
||||
kongStr = "飞升"
|
||||
else
|
||||
kongStr =""
|
||||
end
|
||||
end
|
||||
-- Util.GetGameObject(go.transform, "Image"):SetActive(passiveSkillLogicConfig[upStarSkillDataList2[i].passiveSkillId].Judge == 1)
|
||||
-- Util.GetGameObject(go.transform, "Image"):SetActive(false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue