diff --git a/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralRankRewardPanel.prefab b/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralRankRewardPanel.prefab index c9085fef0d..8fc8fd4b07 100644 --- a/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralRankRewardPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/GeneralPanel/GeneralRankRewardPanel.prefab @@ -1462,6 +1462,75 @@ MonoBehaviour: m_ChildForceExpandHeight: 0 m_ChildControlWidth: 0 m_ChildControlHeight: 1 +--- !u!1 &4124707459557310762 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3182057630735761413} + - component: {fileID: 1730735810005144887} + m_Layer: 0 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3182057630735761413 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4124707459557310762} + 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: 7177885720076686703} + - {fileID: 7178480185915513289} + - {fileID: 8240643250759139061} + - {fileID: 7177836957827611673} + m_Father: {fileID: 7178662485741666917} + m_RootOrder: 1 + 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.19999999, y: -14.6} + m_SizeDelta: {x: 917, y: 1336} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1730735810005144887 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4124707459557310762} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fcf53bbee510dca40b2f81e3c0d426c6, type: 3} + m_Name: + m_EditorClassIdentifier: + tweenSequeue: + - initV3: {x: 0, y: -355, z: 0} + initFloat: 0 + isInit: 0 + changeV3: {x: 0, y: -38.5, z: 0} + changeFloat: 0 + duration: 0.8 + delay: 0 + curveType: 10 + changeType: 0 + sequeueType: 1 + loop: 0 + loopType: 0 + targetObj: {fileID: 0} + isPlayAudio: 1 + isHaveCloseBtn: 0 + isPlayOnOpen: 1 --- !u!1 &4179005398171567754 GameObject: m_ObjectHideFlags: 0 @@ -2349,12 +2418,12 @@ RectTransform: - {fileID: 7178481826899214897} - {fileID: 7176975720436526117} - {fileID: 2478093206073120517} - m_Father: {fileID: 7178662485741666917} - m_RootOrder: 1 + m_Father: {fileID: 3182057630735761413} + 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.19999999, y: -14.6} + m_AnchoredPosition: {x: 0.000012218952, y: 0.000036239624} m_SizeDelta: {x: 917, y: 1336} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7176244144573760227 @@ -2419,16 +2488,16 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6954831980267469303} - 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_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] - m_Father: {fileID: 7178662485741666917} - m_RootOrder: 4 + m_Father: {fileID: 3182057630735761413} + 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: -4, y: 595} + m_AnchoredPosition: {x: -3.7999878, y: 609.6} m_SizeDelta: {x: 250, y: 93.4} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7176455162412935549 @@ -2501,16 +2570,16 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6954858825574484833} - 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_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] - m_Father: {fileID: 7178662485741666917} - m_RootOrder: 2 + m_Father: {fileID: 3182057630735761413} + m_RootOrder: 1 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: 417, y: 616} + m_AnchoredPosition: {x: 417.2, y: 630.6} m_SizeDelta: {x: 142, y: 131} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7176475785193062185 @@ -2827,10 +2896,7 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 7178363182922121421} - - {fileID: 7177885720076686703} - - {fileID: 7178480185915513289} - - {fileID: 8240643250759139061} - - {fileID: 7177836957827611673} + - {fileID: 3182057630735761413} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -2888,6 +2954,7 @@ GameObject: - component: {fileID: 7178363182922121421} - component: {fileID: 7175649815880933479} - component: {fileID: 6996286775685106019} + - component: {fileID: 1450475788292576362} m_Layer: 5 m_Name: maskImage m_TagString: Untagged @@ -2935,7 +3002,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0, g: 0, b: 0, a: 0.73333335} + m_Color: {r: 0, g: 0, b: 0, a: 0.78431374} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -2951,6 +3018,48 @@ MonoBehaviour: m_FillClockwise: 1 m_FillOrigin: 0 m_UseSpriteMesh: 0 +--- !u!114 &1450475788292576362 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6955800001662148475} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 0 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 6996286775685106019} + m_OnClick: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, + Culture=neutral, PublicKeyToken=null --- !u!1 &7186081927315367429 GameObject: m_ObjectHideFlags: 0 @@ -3439,12 +3548,12 @@ RectTransform: - {fileID: 1823207423424104927} - {fileID: 961051762370573078} - {fileID: 7178413290822876137} - m_Father: {fileID: 7178662485741666917} - m_RootOrder: 3 + m_Father: {fileID: 3182057630735761413} + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: -945.82996, y: -561.8419} + m_AnchoredPosition: {x: -1027.13, y: -255.24194} m_SizeDelta: {x: 916, y: 134.07} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &8345408370327979522 diff --git a/Assets/ManagedResources/Prefabs/UI/Ranking/RankingSingleListPanel.prefab b/Assets/ManagedResources/Prefabs/UI/Ranking/RankingSingleListPanel.prefab index 7df4b1421b..84185eeb54 100644 --- a/Assets/ManagedResources/Prefabs/UI/Ranking/RankingSingleListPanel.prefab +++ b/Assets/ManagedResources/Prefabs/UI/Ranking/RankingSingleListPanel.prefab @@ -811,12 +811,12 @@ RectTransform: - {fileID: 838499302217432034} - {fileID: 5479227663835281719} - {fileID: 6227566458745937410} - m_Father: {fileID: 947219677098298596} - m_RootOrder: 1 + m_Father: {fileID: 1347623474710280458} + 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: -3.9, y: -17.000002} + m_AnchoredPosition: {x: -0.00003671646, y: -0} m_SizeDelta: {x: 867.1, y: 1358.4} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5434161048869508924 @@ -1306,9 +1306,7 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 6375954451362498341} - - {fileID: 5838072232418814881} - - {fileID: 8830212790296371356} - - {fileID: 3058096646243646816} + - {fileID: 1347623474710280458} m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -1355,6 +1353,74 @@ MonoBehaviour: m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 +--- !u!1 &1220192305320053672 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1347623474710280458} + - component: {fileID: 7383645856763036181} + m_Layer: 0 + m_Name: Content + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1347623474710280458 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1220192305320053672} + 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: 5838072232418814881} + - {fileID: 8830212790296371356} + - {fileID: 3058096646243646816} + m_Father: {fileID: 947219677098298596} + m_RootOrder: 1 + 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: -3.9, y: -17.000002} + m_SizeDelta: {x: 867.1, y: 1358.4} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &7383645856763036181 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1220192305320053672} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fcf53bbee510dca40b2f81e3c0d426c6, type: 3} + m_Name: + m_EditorClassIdentifier: + tweenSequeue: + - initV3: {x: 0, y: -355, z: 0} + initFloat: 0 + isInit: 0 + changeV3: {x: 0, y: -38.5, z: 0} + changeFloat: 0 + duration: 0.8 + delay: 0 + curveType: 10 + changeType: 0 + sequeueType: 1 + loop: 0 + loopType: 0 + targetObj: {fileID: 0} + isPlayAudio: 1 + isHaveCloseBtn: 0 + isPlayOnOpen: 1 --- !u!1 &1250652883936268121 GameObject: m_ObjectHideFlags: 0 @@ -2720,12 +2786,12 @@ RectTransform: - {fileID: 6913215175904765234} - {fileID: 2333648513030445856} - {fileID: 1699824001} - m_Father: {fileID: 947219677098298596} - m_RootOrder: 3 + m_Father: {fileID: 1347623474710280458} + m_RootOrder: 2 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: -3.9, y: -348.75006} + m_AnchoredPosition: {x: -0.00003671646, y: -331.75006} m_SizeDelta: {x: 867.1, y: 664.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &3748597804020482031 @@ -5261,7 +5327,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0, g: 0, b: 0, a: 0.4} + m_Color: {r: 0, g: 0, b: 0, a: 0.78431374} m_RaycastTarget: 1 m_OnCullStateChanged: m_PersistentCalls: @@ -7031,7 +7097,7 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6475515671209916733} - 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_LocalScale: {x: 1, y: 1, z: 1} m_Children: @@ -7042,12 +7108,12 @@ RectTransform: - {fileID: 2141559868187526545} - {fileID: 1852059818709917585} - {fileID: 8720210789457416016} - m_Father: {fileID: 947219677098298596} - m_RootOrder: 2 + m_Father: {fileID: 1347623474710280458} + m_RootOrder: 1 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: -3.9, y: 263} + m_AnchoredPosition: {x: -0.00003671646, y: 280} m_SizeDelta: {x: 867.1, y: 559} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &6398454522670644513 diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralRankRewardPanel.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralRankRewardPanel.lua index 4ef83b1750..6e374aaeb5 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralRankRewardPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralRankRewardPanel.lua @@ -47,8 +47,9 @@ local _TabData2 = { --初始化组件(用于子类重写) function GeneralRankRewardPanel:InitComponent() this.spLoader = SpriteLoader.New() - this.btnBack = Util.GetGameObject(self.gameObject, "btnBack") - this.bottom = Util.GetGameObject(self.gameObject, "bgImage/Bottom") + this.btnBack = Util.GetGameObject(self.gameObject, "Content/btnBack") + this.maskImage = Util.GetGameObject(self.gameObject, "maskImage") + this.bottom = Util.GetGameObject(self.gameObject, "Content/bgImage/Bottom") this.tabbox = Util.GetGameObject(this.bottom, "tabbox") this.myRank = Util.GetGameObject(this.bottom, "MyRank") this.myRankNum = Util.GetGameObject(this.myRank, "num"):GetComponent("Text") @@ -59,8 +60,8 @@ function GeneralRankRewardPanel:InitComponent() this.text = Util.GetGameObject(this.bottom, "Tips/Text"):GetComponent("Text") this.text2 = Util.GetGameObject(this.bottom, "Tips/Text2"):GetComponent("Text") - this.scrollRect = Util.GetGameObject(self.gameObject, "bgImage/content1/scrollRect") - this.rankPre = Util.GetGameObject(self.gameObject, "itemPre") + this.scrollRect = Util.GetGameObject(self.gameObject, "Content/bgImage/content1/scrollRect") + this.rankPre = Util.GetGameObject(self.gameObject, "Content/itemPre") this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, this.scrollRect.transform, this.rankPre, nil, Vector2.New(this.scrollRect.transform.sizeDelta.x, this.scrollRect.transform.sizeDelta.y), 1, 1, Vector2.New(10,10)) @@ -80,6 +81,9 @@ function GeneralRankRewardPanel:BindEvent() Util.AddClick(self.btnBack, function() self:ClosePanel() end) + Util.AddClick(self.maskImage, function() + self:ClosePanel() + end) end -- tab按钮自定义显示设置 diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua index 56d3731cec..0688bdc37b 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua @@ -29,7 +29,11 @@ end function this:OnShow(_parent) self.parent = _parent self.data = LingMaiMiJingManager.recordData - PlayerPrefs.SetString(PlayerManager.uid.."LingMai",this.recordData[1].time..#this.recordData) + if #self.data > 0 then + PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time) + else + PlayerPrefs.SetString(PlayerManager.uid.."LingMai","") + end self:Refresh() end diff --git a/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua b/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua index 7f30424c3d..dc76141389 100644 --- a/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua @@ -85,7 +85,7 @@ function this.GetLingMaiServerData(msg,func) this.myPlaceId = msg.myOccupyId this.startTime = msg.myOccupyTime this.fightTime = msg.remainChangeTimes - -- this.endTime = msg.state.endTime + this.endTime = msg.timePoint this.lingmaiData = msg.lingmaiData for i = 1, #msg.lingmaiData do this.curPage = lodeConfig[msg.lingmaiData[i].lingmaiId].PageNo @@ -93,7 +93,8 @@ function this.GetLingMaiServerData(msg,func) .." practiceLevel:"..tostring(msg.lingmaiData[i].practiceLevel).." servername:"..tostring(msg.lingmaiData[i].servername)) msg.lingmaiData[i].name = PracticeManager.SetNameColor(msg.lingmaiData[i].name,msg.lingmaiData[i].practiceLevel) end - LogGreen("state:"..tostring(msg.state).." myPlaceId:"..tostring(msg.myOccupyId).." startTime:"..tostring(msg.myOccupyTime).." fightTime:"..tostring(msg.remainChangeTimes).." lingmaiData:"..tostring(#msg.lingmaiData).." curPage:"..tostring(this.curPage)) + LogGreen("state:"..tostring(msg.state).." myPlaceId:"..tostring(msg.myOccupyId).." startTime:"..tostring(msg.myOccupyTime) + .." fightTime:"..tostring(msg.remainChangeTimes).." lingmaiData:"..tostring(#msg.lingmaiData).." curPage:"..tostring(this.curPage).." timePoint:"..tostring(msg.timePoint)) -- Game.GlobalEvent:DispatchEvent(GameEvent.LingMaiMiJing.RefreshPanel) if func then func() @@ -139,10 +140,10 @@ end function this.CheckRecord() NetManager.LingMaiRecordRequest(function () if #this.recordData > 0 then - if not PlayerPrefs.GetString(PlayerManager.uid.."LingMai", this.recordData[1].time..#this.recordData) then + if not PlayerPrefs.GetString(PlayerManager.uid.."LingMai") then PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "") end - if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= this.recordData[1].time..#this.recordData then + if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[1].time) then return true end end diff --git a/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua b/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua index dd59e2d8ae..569b91c4cd 100644 --- a/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Ranking/RankingSingleListPanel.lua @@ -23,18 +23,18 @@ local TabDataIndex = 1 --初始化组件(用于子类重写) function RankingSingleListPanel:InitComponent() this.spLoader = SpriteLoader.New() - this.tabBox = Util.GetGameObject(self.gameObject, "RankList/TabBox") + this.tabBox = Util.GetGameObject(self.gameObject, "Content/RankList/TabBox") this.Mask = Util.GetGameObject(self.gameObject, "mask") this.TabCtrl = TabBox.New() - this.backBtn=Util.GetGameObject(self.gameObject,"bg/btnBack") - this.firsthead=Util.GetGameObject(self.gameObject,"firstHead") - this.firstheadClick=Util.GetGameObject(self.gameObject,"firstHead/click") - this.livePrefab=Util.GetGameObject(self.gameObject,"firstHead/livePrefab") - this.name=Util.GetGameObject(self.gameObject,"bg/name"):GetComponent("Text") - this.firstHeadName=Util.GetGameObject(self.gameObject,"firstHead/nameText"):GetComponent("Text") - this.firstHeadinfoGo=Util.GetGameObject(self.gameObject,"firstHead/infoGo") - this.scrollParentView=Util.GetGameObject(self.gameObject,"RankList/ScrollParentView") - this.itemPre=Util.GetGameObject(self.gameObject,"RankList/ScrollParentView/ItemPre") + this.backBtn=Util.GetGameObject(self.gameObject,"Content/bg/btnBack") + this.firsthead=Util.GetGameObject(self.gameObject,"Content/firstHead") + this.firstheadClick=Util.GetGameObject(self.gameObject,"Content/firstHead/click") + this.livePrefab=Util.GetGameObject(self.gameObject,"Content/firstHead/livePrefab") + this.name=Util.GetGameObject(self.gameObject,"Content/bg/name"):GetComponent("Text") + this.firstHeadName=Util.GetGameObject(self.gameObject,"Content/firstHead/nameText"):GetComponent("Text") + this.firstHeadinfoGo=Util.GetGameObject(self.gameObject,"Content/firstHead/infoGo") + this.scrollParentView=Util.GetGameObject(self.gameObject,"Content/RankList/ScrollParentView") + this.itemPre=Util.GetGameObject(self.gameObject,"Content/RankList/ScrollParentView/ItemPre") this.scrollView = nil this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.scrollParentView.transform,this.itemPre, nil,Vector2.New(903,571.1),1,1,Vector2.New(0,-10)) @@ -45,14 +45,14 @@ function RankingSingleListPanel:InitComponent() this.scrollView.moveTween.MomentumAmount = 1 this.scrollView.moveTween.Strength = 2 - --this.titleName=Util.GetGameObject(self.gameObject,"RankList/ScrollTitleRoot/Name"):GetComponent("Text") - --this.titleInfo=Util.GetGameObject(self.gameObject,"RankList/ScrollTitleRoot/Info"):GetComponent("Text") - this.record=Util.GetGameObject(self.gameObject,"RankList/Record") + --this.titleName=Util.GetGameObject(self.gameObject,"Content/RankList/ScrollTitleRoot/Name"):GetComponent("Text") + --this.titleInfo=Util.GetGameObject(self.gameObject,"Content/RankList/ScrollTitleRoot/Info"):GetComponent("Text") + this.record=Util.GetGameObject(self.gameObject,"Content/RankList/Record") this.info0=Util.GetGameObject(this.record,"grid/Info0"):GetComponent("Text") this.rank0=Util.GetGameObject(this.record,"grid/Rank0"):GetComponent("Text") this.infoGo=Util.GetGameObject(this.record,"infoGo") - this.noneImage=Util.GetGameObject(self.gameObject,"RankList/NoneImage")--无信息图片 + this.noneImage=Util.GetGameObject(self.gameObject,"Content/RankList/NoneImage")--无信息图片 end --绑定事件(用于子类重写)