Merge branch 'master_develop' of http://60.1.1.230/gaoxin/JL_Client into master_develop
commit
812450c032
Binary file not shown.
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 166 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 158 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 158 KiB |
|
|
@ -182,8 +182,7 @@ 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: 1396680106514277842}
|
|
||||||
m_Father: {fileID: 3408442198697653928}
|
m_Father: {fileID: 3408442198697653928}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
|
@ -220,7 +219,7 @@ MonoBehaviour:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
m_Sprite: {fileID: 21300000, guid: 578016bcc0473ff47a2694b7d2c27b1e, type: 3}
|
m_Sprite: {fileID: 21300000, guid: 25025916eee472c4eafe9a90826e2999, type: 3}
|
||||||
m_Type: 0
|
m_Type: 0
|
||||||
m_PreserveAspect: 0
|
m_PreserveAspect: 0
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
|
|
@ -1060,80 +1059,6 @@ MonoBehaviour:
|
||||||
m_FillClockwise: 1
|
m_FillClockwise: 1
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
--- !u!1 &3762132556571998898
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1396680106514277842}
|
|
||||||
- component: {fileID: 3977152365312893247}
|
|
||||||
- component: {fileID: 2593034710158877452}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: BgQuality
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &1396680106514277842
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 3762132556571998898}
|
|
||||||
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: 575870043181212594}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
|
||||||
m_SizeDelta: {x: 868, y: 188}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!222 &3977152365312893247
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 3762132556571998898}
|
|
||||||
m_CullTransparentMesh: 0
|
|
||||||
--- !u!114 &2593034710158877452
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 3762132556571998898}
|
|
||||||
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: 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: 25025916eee472c4eafe9a90826e2999, 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 &3822339229096693290
|
--- !u!1 &3822339229096693290
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -1224,6 +1149,7 @@ RectTransform:
|
||||||
- {fileID: 1421105423562867200}
|
- {fileID: 1421105423562867200}
|
||||||
- {fileID: 6403195048930280866}
|
- {fileID: 6403195048930280866}
|
||||||
- {fileID: 6530197106428225390}
|
- {fileID: 6530197106428225390}
|
||||||
|
- {fileID: 1221379356726746056}
|
||||||
- {fileID: 6706942462312295341}
|
- {fileID: 6706942462312295341}
|
||||||
m_Father: {fileID: 575870042541593200}
|
m_Father: {fileID: 575870042541593200}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
|
|
@ -1436,7 +1362,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: 255.57, y: -45}
|
m_AnchoredPosition: {x: 255.57, y: 34.5}
|
||||||
m_SizeDelta: {x: 220.99, y: 42.04}
|
m_SizeDelta: {x: 220.99, y: 42.04}
|
||||||
m_Pivot: {x: 0.36038244, y: 0.5}
|
m_Pivot: {x: 0.36038244, y: 0.5}
|
||||||
--- !u!222 &5939520279966165509
|
--- !u!222 &5939520279966165509
|
||||||
|
|
@ -1556,6 +1482,81 @@ MonoBehaviour:
|
||||||
m_FillClockwise: 1
|
m_FillClockwise: 1
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
|
--- !u!1 &5936955584551852515
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1221379356726746056}
|
||||||
|
- component: {fileID: 3839379867582039022}
|
||||||
|
- component: {fileID: 4920612628841753415}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: powerBtn
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1221379356726746056
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5936955584551852515}
|
||||||
|
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: 2800389897786691465}
|
||||||
|
m_Father: {fileID: 3408442198697653928}
|
||||||
|
m_RootOrder: 4
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 742.3, y: -79.2}
|
||||||
|
m_SizeDelta: {x: 218, y: 88}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &3839379867582039022
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5936955584551852515}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &4920612628841753415
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5936955584551852515}
|
||||||
|
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: 7f7cdabfab0b95c41828e1ddca64a2b6, 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 &6024333862272756716
|
--- !u!1 &6024333862272756716
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -1820,11 +1821,11 @@ RectTransform:
|
||||||
- {fileID: 8797316285502679983}
|
- {fileID: 8797316285502679983}
|
||||||
- {fileID: 6722162577798484104}
|
- {fileID: 6722162577798484104}
|
||||||
m_Father: {fileID: 3408442198697653928}
|
m_Father: {fileID: 3408442198697653928}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 5
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 741.43, y: -93}
|
m_AnchoredPosition: {x: 741.43, y: -146.9}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &5679312751743760484
|
--- !u!222 &5679312751743760484
|
||||||
|
|
@ -2585,3 +2586,96 @@ MonoBehaviour:
|
||||||
m_FillClockwise: 1
|
m_FillClockwise: 1
|
||||||
m_FillOrigin: 0
|
m_FillOrigin: 0
|
||||||
m_UseSpriteMesh: 0
|
m_UseSpriteMesh: 0
|
||||||
|
--- !u!1 &9216634848849289328
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2800389897786691465}
|
||||||
|
- component: {fileID: 6771443295095595619}
|
||||||
|
- component: {fileID: 2133704523853689736}
|
||||||
|
- component: {fileID: 4462502243278561089}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: value
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2800389897786691465
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9216634848849289328}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.6, y: 0.6, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 1221379356726746056}
|
||||||
|
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: 137, y: 1.9}
|
||||||
|
m_SizeDelta: {x: 602.86, y: 201.33}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &6771443295095595619
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9216634848849289328}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &2133704523853689736
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9216634848849289328}
|
||||||
|
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: 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_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: 634137158f07dff488d018d707aa403a, type: 2}
|
||||||
|
m_FontSize: 0
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 0
|
||||||
|
m_MaxSize: 188
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 2.7
|
||||||
|
m_Text: 3140210
|
||||||
|
--- !u!114 &4462502243278561089
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 9216634848849289328}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 72f543c75b355a741976183c1e74debc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
_textSpacing: -31.5
|
||||||
|
|
|
||||||
|
|
@ -187,10 +187,11 @@ end
|
||||||
--设置滚动条数据 root根节点 data本地表数据 ldata 上一条数据
|
--设置滚动条数据 root根节点 data本地表数据 ldata 上一条数据
|
||||||
function this.SetData(root, data, ldata)
|
function this.SetData(root, data, ldata)
|
||||||
local type=0 --0为未开启 1为挑战 2为扫荡
|
local type=0 --0为未开启 1为挑战 2为扫荡
|
||||||
local bgQuality=Util.GetGameObject(root,"BgQuality"):GetComponent("Image")
|
local bgQuality=Util.GetGameObject(root,"Bg"):GetComponent("Image")
|
||||||
local title=Util.GetGameObject(root,"Title"):GetComponent("Image")
|
local title=Util.GetGameObject(root,"Title"):GetComponent("Image")
|
||||||
local reward=Util.GetGameObject(root,"Reward")
|
local reward=Util.GetGameObject(root,"Reward")
|
||||||
local tip=Util.GetGameObject(root,"Tip"):GetComponent("Text")
|
local tip=Util.GetGameObject(root,"Tip"):GetComponent("Text")
|
||||||
|
local power=Util.GetGameObject(root,"powerBtn/value"):GetComponent("Text")
|
||||||
local goBtn=Util.GetGameObject(root,"GoBtn")
|
local goBtn=Util.GetGameObject(root,"GoBtn")
|
||||||
local goBtnImage=goBtn:GetComponent("Image")
|
local goBtnImage=goBtn:GetComponent("Image")
|
||||||
local goBtnText=Util.GetGameObject(goBtn,"Text"):GetComponent("Text")
|
local goBtnText=Util.GetGameObject(goBtn,"Text"):GetComponent("Text")
|
||||||
|
|
@ -246,18 +247,24 @@ function this.SetData(root, data, ldata)
|
||||||
type=1
|
type=1
|
||||||
goBtnText.text=Language[10334]
|
goBtnText.text=Language[10334]
|
||||||
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuangse")
|
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuangse")
|
||||||
tip.text=string.format(Language[10335],_power)
|
power.text = _power--string.format(Language[10335], _power)
|
||||||
|
power.transform.gameObject:SetActive(true)
|
||||||
if CarbonManager.IsDailyCarbonPass(data.Id) then
|
if CarbonManager.IsDailyCarbonPass(data.Id) then
|
||||||
type=2
|
type=2
|
||||||
goBtnText.text=Language[10336]
|
goBtnText.text=Language[10336]
|
||||||
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuise")
|
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuise")
|
||||||
tip.text=Language[10337]
|
tip.text=Language[10337]
|
||||||
|
tip.gameObject:SetActive(true)
|
||||||
|
power.transform.gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
type=0
|
type=0
|
||||||
tip.text=string.format(Language[10338],_power)
|
power.text = _power --string.format(Language[10338], _power)
|
||||||
goBtnText.text=Language[10339]
|
goBtnText.text=Language[10339]
|
||||||
|
tip.gameObject:SetActive(false)
|
||||||
|
power.transform.gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
|
power.color = PlayerManager.maxForce >= _power and UIColor.WRITE or UIColor.RED
|
||||||
|
|
||||||
--点击事件
|
--点击事件
|
||||||
Util.AddOnceClick(goBtn,function()
|
Util.AddOnceClick(goBtn,function()
|
||||||
|
|
@ -271,9 +278,9 @@ function this.SetData(root, data, ldata)
|
||||||
elseif _point ~= 0 and not FightPointPassManager.IsFightPointPass(_point) then
|
elseif _point ~= 0 and not FightPointPassManager.IsFightPointPass(_point) then
|
||||||
PopupTipPanel.ShowTip(string.format(Language[12220], mainLevelConfig[_point].Name))
|
PopupTipPanel.ShowTip(string.format(Language[12220], mainLevelConfig[_point].Name))
|
||||||
return
|
return
|
||||||
elseif PlayerManager.curMapId ~= 0 and FightPointPassManager.IsFightPointPass(PlayerManager.curMapId)==false then
|
-- elseif PlayerManager.curMapId ~= 0 and FightPointPassManager.IsFightPointPass(PlayerManager.curMapId)==false then
|
||||||
PopupTipPanel.ShowTip(string.format(Language[10341],mainLevelConfig[_point].Name))
|
-- PopupTipPanel.ShowTip(string.format(Language[10341],mainLevelConfig[_point].Name))
|
||||||
return
|
-- return
|
||||||
end
|
end
|
||||||
|
|
||||||
if not isOpen then
|
if not isOpen then
|
||||||
|
|
|
||||||
|
|
@ -64,10 +64,10 @@ function this:AddListener()
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:RemoveListener()
|
function this:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.BuyQinglongSerectLevelSuccess)
|
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.BuyQinglongSerectLevelSuccess, this.refresh)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess)
|
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClose)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClose,this.CloseFunction)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.MoneyPay.OnPayResultSuccess)
|
Game.GlobalEvent:RemoveEvent(GameEvent.MoneyPay.OnPayResultSuccess, this.refresh)
|
||||||
end
|
end
|
||||||
this.Closefunction = function()
|
this.Closefunction = function()
|
||||||
Timer.New(function()
|
Timer.New(function()
|
||||||
|
|
@ -316,6 +316,7 @@ function this:ShowTime(endtime)
|
||||||
if timeDown < 1 then
|
if timeDown < 1 then
|
||||||
self.timer:Stop()
|
self.timer:Stop()
|
||||||
self.timer = nil
|
self.timer = nil
|
||||||
|
this.Closefunction()
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
timeDown = timeDown - 1
|
timeDown = timeDown - 1
|
||||||
|
|
|
||||||
|
|
@ -65,16 +65,22 @@ end
|
||||||
|
|
||||||
function this:AddListener()
|
function this:AddListener()
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh,curType)
|
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh,curType)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.TaskRefresh, this.refresh,curType)
|
Game.GlobalEvent:AddEvent(GameEvent.TreasureOfHeaven.TaskRefresh, this.RefreshTime)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityOpenOrClose,this.CloseFunction)
|
Game.GlobalEvent:AddEvent(GameEvent.Activity.OnActivityOpenOrClose,this.CloseFunction)
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.MoneyPay.OnPayResultSuccess, this.refresh)
|
Game.GlobalEvent:AddEvent(GameEvent.MoneyPay.OnPayResultSuccess, this.refresh,curType)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this:RemoveListener()
|
function this:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess)
|
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.RechargeQinglongSerectSuccess, this.refresh,curType)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.TaskRefresh)
|
Game.GlobalEvent:RemoveEvent(GameEvent.TreasureOfHeaven.TaskRefresh, this.RefreshTime)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClosen)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Activity.OnActivityOpenOrClosen,this.CloseFunction)
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.MoneyPay.OnPayResultSuccess)
|
Game.GlobalEvent:RemoveEvent(GameEvent.MoneyPay.OnPayResultSuccess, this.refresh,curType)
|
||||||
|
end
|
||||||
|
|
||||||
|
function this.RefreshTime()
|
||||||
|
NetManager.RefreshTimeSLRequest(function (msg)
|
||||||
|
this.refresh(curType)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
this.Closefunction = function()
|
this.Closefunction = function()
|
||||||
|
|
@ -82,7 +88,6 @@ this.Closefunction = function()
|
||||||
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
|
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
PopupTipPanel.ShowTip(Language[12320])
|
PopupTipPanel.ShowTip(Language[12320])
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
|
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
this.refresh(curType)
|
this.refresh(curType)
|
||||||
|
|
@ -213,7 +218,7 @@ function this:ShowTime(curType)
|
||||||
end
|
end
|
||||||
local endtime = curType == 1
|
local endtime = curType == 1
|
||||||
and QinglongSerectTreasureManager.GetTrailWeekTime()
|
and QinglongSerectTreasureManager.GetTrailWeekTime()
|
||||||
or ActivityGiftManager.GetTaskEndTime(8)
|
or ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.TreasureOfSomeBody)
|
||||||
LogBlue("endtime:"..endtime)
|
LogBlue("endtime:"..endtime)
|
||||||
local timeDown = endtime - GetTimeStamp()
|
local timeDown = endtime - GetTimeStamp()
|
||||||
this.remainTime.text = Language[12321]..TimeToDHMS(timeDown)
|
this.remainTime.text = Language[12321]..TimeToDHMS(timeDown)
|
||||||
|
|
@ -221,6 +226,9 @@ function this:ShowTime(curType)
|
||||||
if timeDown < 1 then
|
if timeDown < 1 then
|
||||||
self.timer:Stop()
|
self.timer:Stop()
|
||||||
self.timer = nil
|
self.timer = nil
|
||||||
|
if ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.TreasureOfSomeBody) - GetTimeStamp() < 1 then
|
||||||
|
this.Closefunction()
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
timeDown = timeDown - 1
|
timeDown = timeDown - 1
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,13 @@ end
|
||||||
|
|
||||||
function this.GetAllRewardData()
|
function this.GetAllRewardData()
|
||||||
local temp ={}
|
local temp ={}
|
||||||
|
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
|
return temp
|
||||||
|
end
|
||||||
local activityId = ActivityGiftManager.GetActivityIdByType(ActivityTypeDef.TreasureOfSomeBody)
|
local activityId = ActivityGiftManager.GetActivityIdByType(ActivityTypeDef.TreasureOfSomeBody)
|
||||||
|
if not this.rewardData[activityId] then
|
||||||
|
return temp
|
||||||
|
end
|
||||||
for i, v in pairs(this.rewardData[activityId]) do
|
for i, v in pairs(this.rewardData[activityId]) do
|
||||||
if i ~= 0 then
|
if i ~= 0 then
|
||||||
table.insert(temp,v)
|
table.insert(temp,v)
|
||||||
|
|
@ -180,12 +186,16 @@ function this.GetQinglongTaskData(_curtype)
|
||||||
local curtype = _curtype + 1
|
local curtype = _curtype + 1
|
||||||
local temp = TaskManager.GetTypeTaskList(TaskTypeDef.TreasureOfSomeBody)
|
local temp = TaskManager.GetTypeTaskList(TaskTypeDef.TreasureOfSomeBody)
|
||||||
local task = {}
|
local task = {}
|
||||||
local activityId = ActivityGiftManager.GetActivityIdByType(ActivityTypeDef.TreasureOfSomeBody)
|
if ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
for k,v in ipairs(temp) do
|
local activityId = ActivityGiftManager.GetActivityIdByType(ActivityTypeDef.TreasureOfSomeBody)
|
||||||
if taskData[activityId][curtype][v.missionId] then
|
for k,v in ipairs(temp) do
|
||||||
taskData[activityId][curtype][v.missionId].progress = v.progress
|
if taskData[activityId] and taskData[activityId][curtype] and taskData[activityId][curtype][v.missionId] then
|
||||||
taskData[activityId][curtype][v.missionId].state = v.state
|
if taskData[activityId][curtype][v.missionId] then
|
||||||
table.insert(task, taskData[activityId][curtype][v.missionId])
|
taskData[activityId][curtype][v.missionId].progress = v.progress
|
||||||
|
taskData[activityId][curtype][v.missionId].state = v.state
|
||||||
|
table.insert(task, taskData[activityId][curtype][v.missionId])
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- LogBlue("每周任务个数:"..#task)
|
-- LogBlue("每周任务个数:"..#task)
|
||||||
|
|
|
||||||
|
|
@ -150,7 +150,7 @@ function RewardEquipSingleShowPopup:OnShow()
|
||||||
this.icon.sprite = Util.LoadSprite(GetResourcePath(itemConfigData.ResourceID))
|
this.icon.sprite = Util.LoadSprite(GetResourcePath(itemConfigData.ResourceID))
|
||||||
this.equipInfoText.text=itemConfigData.ItemDescribe
|
this.equipInfoText.text=itemConfigData.ItemDescribe
|
||||||
|
|
||||||
this.powerNum.text=EquipManager.CalculateWarForce(equipData)
|
this.powerNum.text=EquipManager.CalculateWarForce(equipData.id)
|
||||||
EquipManager.SetEquipStarShow(this.star,equipConfigData.Id)
|
EquipManager.SetEquipStarShow(this.star,equipConfigData.Id)
|
||||||
|
|
||||||
this.btnJump:SetActive(itemConfigData.UseJump and itemConfigData.UseJump > 0 and BagManager.isBagPanel)
|
this.btnJump:SetActive(itemConfigData.UseJump and itemConfigData.UseJump > 0 and BagManager.isBagPanel)
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function this.InitTypeTaskList(_userMissionList)
|
||||||
userMissionList.type = _userMissionList[i].type
|
userMissionList.type = _userMissionList[i].type
|
||||||
userMissionList.takeTimes = _userMissionList[i].takeTimes
|
userMissionList.takeTimes = _userMissionList[i].takeTimes
|
||||||
userMissionList.heroId = _userMissionList[i].heroId
|
userMissionList.heroId = _userMissionList[i].heroId
|
||||||
LogRed("任务 类型:"..userMissionList.type.." ID:"..userMissionList.missionId.." 状态:"..userMissionList.state)
|
-- LogRed("任务 类型:"..userMissionList.type.." ID:"..userMissionList.missionId.." 状态:"..userMissionList.state)
|
||||||
if not TypeTaskData[_userMissionList[i].type] then
|
if not TypeTaskData[_userMissionList[i].type] then
|
||||||
TypeTaskData[_userMissionList[i].type] = {}
|
TypeTaskData[_userMissionList[i].type] = {}
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue