【灵脉秘境】提交
parent
7d0a24a3cc
commit
c994c9e636
|
@ -139,6 +139,85 @@ Animator:
|
||||||
m_HasTransformHierarchy: 1
|
m_HasTransformHierarchy: 1
|
||||||
m_AllowConstantClipSamplingOptimization: 1
|
m_AllowConstantClipSamplingOptimization: 1
|
||||||
m_KeepAnimatorControllerStateOnDisable: 0
|
m_KeepAnimatorControllerStateOnDisable: 0
|
||||||
|
--- !u!1 &218684267906924537
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3607884297074981814}
|
||||||
|
- component: {fileID: 6480906088105148495}
|
||||||
|
- component: {fileID: 5241149358971867064}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3607884297074981814
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 218684267906924537}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 183363294941890755}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 198, y: 0}
|
||||||
|
m_SizeDelta: {x: 312.65002, y: 50}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &6480906088105148495
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 218684267906924537}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &5241149358971867064
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 218684267906924537}
|
||||||
|
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: 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_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||||
|
m_FontSize: 40
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 4
|
||||||
|
m_MaxSize: 50
|
||||||
|
m_Alignment: 5
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 1
|
||||||
|
m_VerticalOverflow: 1
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: "\u5269\u4F59\u8D2D\u4E70\u6B21\u6570\uFF1A2"
|
||||||
--- !u!1 &262171843384794290
|
--- !u!1 &262171843384794290
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -830,6 +909,7 @@ RectTransform:
|
||||||
- {fileID: 4437302812980058350}
|
- {fileID: 4437302812980058350}
|
||||||
- {fileID: 8818828409612090952}
|
- {fileID: 8818828409612090952}
|
||||||
- {fileID: 3941928346300992752}
|
- {fileID: 3941928346300992752}
|
||||||
|
- {fileID: 183363294941890755}
|
||||||
m_Father: {fileID: 8713029853791401389}
|
m_Father: {fileID: 8713029853791401389}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 3
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
@ -1241,6 +1321,80 @@ MonoBehaviour:
|
||||||
isPlayAudio: 1
|
isPlayAudio: 1
|
||||||
isHaveCloseBtn: 0
|
isHaveCloseBtn: 0
|
||||||
isPlayOnOpen: 1
|
isPlayOnOpen: 1
|
||||||
|
--- !u!1 &1842521276256829803
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7741170066000682909}
|
||||||
|
- component: {fileID: 1100801024866038825}
|
||||||
|
- component: {fileID: 4412391364597756380}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: red
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7741170066000682909
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1842521276256829803}
|
||||||
|
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: 6377394198622654848}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 1}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: -15, y: -15}
|
||||||
|
m_SizeDelta: {x: 30, y: 30}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &1100801024866038825
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1842521276256829803}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4412391364597756380
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1842521276256829803}
|
||||||
|
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: f9ea4c4aff328ff4abcc21aae0a4fa10, 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!1 &1873219512533023104
|
--- !u!1 &1873219512533023104
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -5587,6 +5741,81 @@ MonoBehaviour:
|
||||||
m_VerticalOverflow: 1
|
m_VerticalOverflow: 1
|
||||||
m_LineSpacing: 1
|
m_LineSpacing: 1
|
||||||
m_Text: "3370/\u5206"
|
m_Text: "3370/\u5206"
|
||||||
|
--- !u!1 &5992973229959733562
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 183363294941890755}
|
||||||
|
- component: {fileID: 8246819615250357498}
|
||||||
|
- component: {fileID: 4905981693265529162}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Time2
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &183363294941890755
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5992973229959733562}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 1, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3607884297074981814}
|
||||||
|
m_Father: {fileID: 8208061848372739616}
|
||||||
|
m_RootOrder: 3
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||||
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: -250, y: -150}
|
||||||
|
m_SizeDelta: {x: 500, y: 50}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8246819615250357498
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5992973229959733562}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4905981693265529162
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5992973229959733562}
|
||||||
|
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: 0
|
||||||
|
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: 0d3c780efce4ada4db6993deef309b76, 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!1 &6017153772183952367
|
--- !u!1 &6017153772183952367
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -5994,7 +6223,8 @@ RectTransform:
|
||||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children:
|
||||||
|
- {fileID: 7741170066000682909}
|
||||||
m_Father: {fileID: 6199128604822066698}
|
m_Father: {fileID: 6199128604822066698}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
@ -7363,7 +7593,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 0, y: 70}
|
m_AnchoredPosition: {x: 0, y: 98}
|
||||||
m_SizeDelta: {x: 150, y: 150}
|
m_SizeDelta: {x: 150, y: 150}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &5147704521608157102
|
--- !u!222 &5147704521608157102
|
||||||
|
@ -7675,7 +7905,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||||
m_AnchorMin: {x: 1, y: 0.5}
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 0.5}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -250, y: -53}
|
m_AnchoredPosition: {x: -250, y: -25}
|
||||||
m_SizeDelta: {x: 500, y: 60}
|
m_SizeDelta: {x: 500, y: 60}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &2690173194265976240
|
--- !u!222 &2690173194265976240
|
||||||
|
@ -8281,7 +8511,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180}
|
||||||
m_AnchorMin: {x: 1, y: 0.5}
|
m_AnchorMin: {x: 1, y: 0.5}
|
||||||
m_AnchorMax: {x: 1, y: 0.5}
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -250, y: -142}
|
m_AnchoredPosition: {x: -250, y: -90}
|
||||||
m_SizeDelta: {x: 500, y: 50}
|
m_SizeDelta: {x: 500, y: 50}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &6121055052744640816
|
--- !u!222 &6121055052744640816
|
||||||
|
|
|
@ -119,7 +119,7 @@ function this.CheckPrivilage(func)
|
||||||
PopupTipPanel.ShowTip(Language[10517])
|
PopupTipPanel.ShowTip(Language[10517])
|
||||||
PrivilegeManager.RefreshPrivilegeUsedTimes(2031, 1)--更新特权
|
PrivilegeManager.RefreshPrivilegeUsedTimes(2031, 1)--更新特权
|
||||||
func()
|
func()
|
||||||
end)
|
end,0)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip("<color=red>今日已无挑战次数!</color>")
|
PopupTipPanel.ShowTip("<color=red>今日已无挑战次数!</color>")
|
||||||
|
@ -130,25 +130,26 @@ function this.CheckPrivilage(func)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.CheckRedPoint()
|
function this.CheckRedPoint()
|
||||||
if PrivilegeManager.GetPrivilegeRemainValue(2030) > 0 or this.CheckRecord() then
|
if PrivilegeManager.GetPrivilegeRemainValue(2030) > 0 then
|
||||||
|
LogGreen("特权次数大于零 return true")
|
||||||
return true
|
return true
|
||||||
else
|
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
if #this.recordData > 0 then
|
||||||
|
if not PlayerPrefs.GetString(PlayerManager.uid.."LingMai") then
|
||||||
|
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "")
|
||||||
|
end
|
||||||
|
if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[1].time.."1") then
|
||||||
|
LogGreen("有新的数据 return true")
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
LogGreen(tostring(#this.recordData).." 啥也没有 return false")
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.CheckRecord()
|
function this.CheckRecord()
|
||||||
NetManager.LingMaiRecordRequest(function ()
|
LogGreen("有新的数据2: "..tostring(PlayerPrefs.GetString(PlayerManager.uid.."LingMai")).." "..tostring(this.recordData[1].time))
|
||||||
if #this.recordData > 0 then
|
return PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[1].time)
|
||||||
if not PlayerPrefs.GetString(PlayerManager.uid.."LingMai") then
|
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "")
|
|
||||||
end
|
|
||||||
if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[1].time) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return LingMaiMiJingManager
|
return LingMaiMiJingManager
|
|
@ -29,6 +29,7 @@ function LingMaiMiJingPanel:InitComponent()
|
||||||
self.jump = Util.GetGameObject(self.bottom,"Jump")
|
self.jump = Util.GetGameObject(self.bottom,"Jump")
|
||||||
self.jumpBtn = Util.GetGameObject(self.jump,"btnJump")
|
self.jumpBtn = Util.GetGameObject(self.jump,"btnJump")
|
||||||
self.battleTime = Util.GetGameObject(self.jump,"Time/Text"):GetComponent("Text")
|
self.battleTime = Util.GetGameObject(self.jump,"Time/Text"):GetComponent("Text")
|
||||||
|
self.buyTime = Util.GetGameObject(self.jump,"Time2/Text"):GetComponent("Text")
|
||||||
self.inputField = Util.GetGameObject(self.jump, "Input/InputField"):GetComponent("InputField")
|
self.inputField = Util.GetGameObject(self.jump, "Input/InputField"):GetComponent("InputField")
|
||||||
|
|
||||||
--rightBtns
|
--rightBtns
|
||||||
|
@ -36,6 +37,7 @@ function LingMaiMiJingPanel:InitComponent()
|
||||||
self.sortBtn = Util.GetGameObject(self.rightBtns,"sortBtn")
|
self.sortBtn = Util.GetGameObject(self.rightBtns,"sortBtn")
|
||||||
self.rewardBtn = Util.GetGameObject(self.rightBtns,"rewardBtn")
|
self.rewardBtn = Util.GetGameObject(self.rightBtns,"rewardBtn")
|
||||||
self.recordBtn = Util.GetGameObject(self.rightBtns,"recordBtn")
|
self.recordBtn = Util.GetGameObject(self.rightBtns,"recordBtn")
|
||||||
|
self.recordRed = Util.GetGameObject(self.recordBtn,"red")
|
||||||
--contentgrid
|
--contentgrid
|
||||||
self.contentGrid = Util.GetGameObject(self.gameObject,"ContentGrid")
|
self.contentGrid = Util.GetGameObject(self.gameObject,"ContentGrid")
|
||||||
self.veinList = {}
|
self.veinList = {}
|
||||||
|
@ -114,6 +116,9 @@ end
|
||||||
|
|
||||||
--界面打开时调用(用于子类重写)
|
--界面打开时调用(用于子类重写)
|
||||||
function LingMaiMiJingPanel:OnShow()
|
function LingMaiMiJingPanel:OnShow()
|
||||||
|
if LingMaiMiJingManager.state == 2 then
|
||||||
|
LingMaiMiJingManager.curPage = 1
|
||||||
|
end
|
||||||
NetManager.GetLingMaiInfoRequest(LingMaiMiJingManager.curPage,function ()
|
NetManager.GetLingMaiInfoRequest(LingMaiMiJingManager.curPage,function ()
|
||||||
self.data = LingMaiMiJingManager.GetData()
|
self.data = LingMaiMiJingManager.GetData()
|
||||||
self:SetTime()
|
self:SetTime()
|
||||||
|
@ -122,6 +127,8 @@ function LingMaiMiJingPanel:OnShow()
|
||||||
self.groupList = ConfigManager.TryGetAllConfigsDataByKey(ConfigName.LodeConfig,"Group",lodeConfig[self.data.lingmaiData[1].Id].Group)
|
self.groupList = ConfigManager.TryGetAllConfigsDataByKey(ConfigName.LodeConfig,"Group",lodeConfig[self.data.lingmaiData[1].Id].Group)
|
||||||
self.lastBtn:SetActive(LingMaiMiJingManager.curPage - 1 > 0)
|
self.lastBtn:SetActive(LingMaiMiJingManager.curPage - 1 > 0)
|
||||||
self.nextBtn:SetActive(LingMaiMiJingManager.curPage + 1 <= 50)
|
self.nextBtn:SetActive(LingMaiMiJingManager.curPage + 1 <= 50)
|
||||||
|
local bool = LingMaiMiJingManager.CheckRecord()
|
||||||
|
self.recordRed:SetActive(bool)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -149,6 +156,12 @@ function LingMaiMiJingPanel:SetMydata()
|
||||||
self.TextTip:SetActive(true)
|
self.TextTip:SetActive(true)
|
||||||
self.rewardGrid:SetActive(false)
|
self.rewardGrid:SetActive(false)
|
||||||
end
|
end
|
||||||
|
if self.data.state ~= 1 then
|
||||||
|
self.time:SetActive(false)
|
||||||
|
self.TextTip:SetActive(false)
|
||||||
|
self.rewardGrid:SetActive(false)
|
||||||
|
end
|
||||||
|
self.buyTime.text = string.format("剩余购买次数:%s",PrivilegeManager.GetPrivilegeRemainValue(2031))
|
||||||
self.battleTime.text = string.format("剩余挑战次数:%s",PrivilegeManager.GetPrivilegeRemainValue(2030))
|
self.battleTime.text = string.format("剩余挑战次数:%s",PrivilegeManager.GetPrivilegeRemainValue(2030))
|
||||||
ForceRebuildLayout(self.bottom.transform)
|
ForceRebuildLayout(self.bottom.transform)
|
||||||
end
|
end
|
||||||
|
|
|
@ -149,6 +149,8 @@ function this.RegisterMessage(network)
|
||||||
socket:RegistNetMessage(MessageTypeProto_pb.EQUIP_BOOK_INDICATION, this.EquipBookInfoIndication)
|
socket:RegistNetMessage(MessageTypeProto_pb.EQUIP_BOOK_INDICATION, this.EquipBookInfoIndication)
|
||||||
-- 周卡推送
|
-- 周卡推送
|
||||||
socket:RegistNetMessage(MessageTypeProto_pb.WeekCardIndicationInfoResponse, this.WeekCardIndication)
|
socket:RegistNetMessage(MessageTypeProto_pb.WeekCardIndicationInfoResponse, this.WeekCardIndication)
|
||||||
|
-- 灵脉被抢夺推送
|
||||||
|
socket:RegistNetMessage(MessageTypeProto_pb.CrossLingmaiIndicationResponse, this.LingMaiIndication)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.EquipBookInfoIndication(buff)
|
function this.EquipBookInfoIndication(buff)
|
||||||
|
@ -1058,10 +1060,18 @@ function this.LingMaiIndication(buffer)
|
||||||
local data = buffer:DataByte()
|
local data = buffer:DataByte()
|
||||||
local msg = ArenaInfoProto_pb.CrossLingmaiIndicationResponse()
|
local msg = ArenaInfoProto_pb.CrossLingmaiIndicationResponse()
|
||||||
msg:ParseFromString(data)
|
msg:ParseFromString(data)
|
||||||
LingMaiMiJingManager.recordData = msg.recordData
|
|
||||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", tostring(this.recordData[1].time))
|
NetManager.LingMaiRecordRequest(function ()
|
||||||
CheckRedPointStatus(RedPointType.LingMaiMiJing)
|
if #LingMaiMiJingManager.recordData > 0 then
|
||||||
LogError("收到了后端发来的Indication")
|
PlayerPrefs.SetString(PlayerManager.uid.."LingMai", tostring(LingMaiMiJingManager.recordData[1].time))
|
||||||
|
else
|
||||||
|
PlayerPrefs.SetString(PlayerManager.uid.."LingMai","")
|
||||||
|
end
|
||||||
|
CheckRedPointStatus(RedPointType.LingMaiMiJing)
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.LingMaiMiJing.RefreshPanel)
|
||||||
|
LogError("收到了后端发来的Indication")
|
||||||
|
end)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return this
|
return this
|
|
@ -6088,9 +6088,11 @@ function NetManager.GetLingMaiInfoRequest(_page, func)
|
||||||
local msg = ArenaInfoProto_pb.CrossLingmaiSecretAreaInfoResponse()
|
local msg = ArenaInfoProto_pb.CrossLingmaiSecretAreaInfoResponse()
|
||||||
msg:ParseFromString(data)
|
msg:ParseFromString(data)
|
||||||
LingMaiMiJingManager.GetLingMaiServerData(msg,function ()
|
LingMaiMiJingManager.GetLingMaiServerData(msg,function ()
|
||||||
if func then
|
NetManager.LingMaiRecordRequest(function ()
|
||||||
func(msg)
|
if func then
|
||||||
end
|
func(msg)
|
||||||
|
end
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue