From ec305be7cb0b75ecea628504a3d06ebc92261f1f Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Mon, 23 Dec 2024 14:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=BE=E5=BA=A6=E4=BC=A0=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemPrefabs/personnelSceneitem.prefab | 102 +++++++++++++++--- xiaofang/Assets/Scenes/Schedule_03.unity | 30 +++++- xiaofang/Assets/Script/Scheduled_03/Panel.cs | 28 ++--- .../Script/UI/PanelUI/DistributionPanel.cs | 22 ++-- .../Assets/Script/UI/PanelUI/ManagerPanel.cs | 6 -- .../Script/UI/PanelUI/PersonnelPanel.cs | 1 + .../Script/UI/PanelUI/SelectScenePanel.cs | 2 +- 7 files changed, 141 insertions(+), 50 deletions(-) diff --git a/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab b/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab index 64463465..8f661c2d 100644 --- a/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab +++ b/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab @@ -25,18 +25,18 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4498060909466071809} - 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_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 5900002970331946163} - m_RootOrder: 1 + m_Father: {fileID: 7531194149634478661} + 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: 0, y: 0} - m_SizeDelta: {x: 513.89, y: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 779.9408, y: 21} + m_SizeDelta: {x: 467.2219, y: 42} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7577960020006578146 CanvasRenderer: @@ -76,10 +76,10 @@ MonoBehaviour: m_Alignment: 4 m_AlignByGeometry: 0 m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 + m_HorizontalOverflow: 1 + m_VerticalOverflow: 1 m_LineSpacing: 1 - m_Text: "\u8FD8\u7F3A\u81F3\u5C111\u540D\u4EC0\u4E48\u4EC0\u4E48\u804C\u4E1A" + m_Text: "\u8FD8\u7F3A\u81F3\u5C111\u540D\u533B\u7597\u6551\u62A4" --- !u!1 &5900002969924403205 GameObject: m_ObjectHideFlags: 0 @@ -268,7 +268,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 5900002970044280994} - - {fileID: 8838300892937481870} + - {fileID: 7531194149634478661} - {fileID: 5900002970821547561} m_Father: {fileID: 5900002971020626570} m_RootOrder: 1 @@ -604,6 +604,7 @@ MonoBehaviour: personelPanelText: {fileID: 5900002971283911308} personelNumText: {fileID: 5900002969924403207} lockText: {fileID: 5757504950814517587} + lockBg: {fileID: 8597188645527605400} personelContent: {fileID: 5900002971599260874} personelItem: {fileID: 6026028542083999128, guid: 93710d87e1c578748b4ef94ce0d38198, type: 3} firstLablePrefab: {fileID: 0} @@ -723,7 +724,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 560.5, y: -109} + m_AnchoredPosition: {x: 560.5, y: -44} m_SizeDelta: {x: 1121, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &5900002971599260725 @@ -784,3 +785,80 @@ MonoBehaviour: m_FlexibleWidth: -1 m_FlexibleHeight: -1 m_LayoutPriority: 1 +--- !u!1 &8597188645527605400 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7531194149634478661} + - component: {fileID: 6555106214558057608} + - component: {fileID: 7932220027260091179} + m_Layer: 5 + m_Name: lackBg + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7531194149634478661 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8597188645527605400} + 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_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 8838300892937481870} + m_Father: {fileID: 5900002970331946163} + 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: 520.5148, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &6555106214558057608 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8597188645527605400} + m_CullTransparentMesh: 1 +--- !u!114 &7932220027260091179 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8597188645527605400} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 4536eccb5b41d62469e251412db57216, 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 + m_PixelsPerUnitMultiplier: 1 diff --git a/xiaofang/Assets/Scenes/Schedule_03.unity b/xiaofang/Assets/Scenes/Schedule_03.unity index f59ee4e0..0eb4e240 100644 --- a/xiaofang/Assets/Scenes/Schedule_03.unity +++ b/xiaofang/Assets/Scenes/Schedule_03.unity @@ -4091,7 +4091,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1031840000928267012, guid: f7e3ba3643cbe834083789575336030d, type: 3} propertyPath: m_RootOrder - value: 3 + value: 4 objectReference: {fileID: 0} - target: {fileID: 1031840000928267012, guid: f7e3ba3643cbe834083789575336030d, type: 3} propertyPath: m_AnchorMax.x @@ -4891,7 +4891,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1031840001719723866, guid: f7e3ba3643cbe834083789575336030d, type: 3} propertyPath: m_AnchoredPosition.x - value: 968.31604 + value: 963.7986 objectReference: {fileID: 0} - target: {fileID: 1031840001719723866, guid: f7e3ba3643cbe834083789575336030d, type: 3} propertyPath: m_AnchoredPosition.y @@ -5519,7 +5519,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1031840002484896209, guid: f7e3ba3643cbe834083789575336030d, type: 3} propertyPath: m_AnchoredPosition.x - value: 407.8161 + value: 137.80115 objectReference: {fileID: 0} - target: {fileID: 1031840002484896209, guid: f7e3ba3643cbe834083789575336030d, type: 3} propertyPath: m_AnchoredPosition.y @@ -5729,6 +5729,26 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: -17.5 objectReference: {fileID: 0} + - target: {fileID: 3978082958181212982, guid: f7e3ba3643cbe834083789575336030d, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3978082958181212982, guid: f7e3ba3643cbe834083789575336030d, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3978082958181212982, guid: f7e3ba3643cbe834083789575336030d, type: 3} + propertyPath: m_SizeDelta.y + value: 42 + objectReference: {fileID: 0} + - target: {fileID: 3978082958181212982, guid: f7e3ba3643cbe834083789575336030d, type: 3} + propertyPath: m_AnchoredPosition.x + value: 546.3399 + objectReference: {fileID: 0} + - target: {fileID: 3978082958181212982, guid: f7e3ba3643cbe834083789575336030d, type: 3} + propertyPath: m_AnchoredPosition.y + value: -21 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: f7e3ba3643cbe834083789575336030d, type: 3} --- !u!224 &856136727 stripped @@ -9176,8 +9196,8 @@ RectTransform: - {fileID: 618256459} - {fileID: 7468736064579811971} - {fileID: 617308872} - - {fileID: 856136727} - {fileID: 7318934474885050404} + - {fileID: 856136727} - {fileID: 700683836} m_Father: {fileID: 0} m_RootOrder: 2 @@ -13613,7 +13633,7 @@ RectTransform: m_Children: - {fileID: 7318934475829044879} m_Father: {fileID: 1592869153} - m_RootOrder: 4 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index f55e3be2..3cb343cf 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -115,27 +115,27 @@ public class Panel : Base //动态加载人员 public async void DynamicLoadingPeople() { - //for (int i = 0; i < 10; i++) - //{ - // GameObject item = GameObject.Instantiate(peoplePrefab, peopleCountent); - // PeopleItem peopleItem = item.GetComponent(); - // peopleItem.nameText.text = "角色1"; - // peopleItem.peopleId = "0"; - // Button peoplebutton = item.transform.Find("TextBtn").GetComponent