From fd1fac3e638bbf04fce644408df82a74d42e8b88 Mon Sep 17 00:00:00 2001 From: lq <3298408835@qq.com> Date: Thu, 19 Dec 2024 14:11:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E7=BA=A7=E9=9D=A2=E6=9D=BF=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemPrefabs/personnelSceneitem.prefab | 4 +-- .../Prefabs/itemPrefabs/scenceItem.prefab | 7 +++- xiaofang/Assets/Resources/JsonAsset/Role.json | 24 ++++++------- xiaofang/Assets/Scenes/Schedule_03.unity | 11 +++--- xiaofang/Assets/Script/Scheduled_03/Panel.cs | 32 ++++++++--------- .../Script/UI/PanelUI/DistributionPanel.cs | 34 +++++++++++++++++++ .../UI/PanelUI/DistributionPanel.cs.meta | 11 ++++++ .../Assets/Script/UI/PanelUI/ManagerPanel.cs | 29 ++++++++-------- .../Script/UI/PanelUI/PersonnelPanel.cs | 5 +++ 9 files changed, 107 insertions(+), 50 deletions(-) create mode 100644 xiaofang/Assets/Script/UI/PanelUI/DistributionPanel.cs create mode 100644 xiaofang/Assets/Script/UI/PanelUI/DistributionPanel.cs.meta diff --git a/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab b/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab index a6a800e6..280cd915 100644 --- a/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab +++ b/xiaofang/Assets/Prefabs/itemPrefabs/personnelSceneitem.prefab @@ -523,8 +523,8 @@ MonoBehaviour: personelPanelText: {fileID: 5900002971283911308} personelNumText: {fileID: 5900002969924403207} personelContent: {fileID: 5900002971599260874} - panelInfo: {fileID: 0} personelItem: {fileID: 6026028542083999128, guid: 93710d87e1c578748b4ef94ce0d38198, type: 3} + firstLablePrefab: {fileID: 0} --- !u!1 &5900002971283911298 GameObject: m_ObjectHideFlags: 0 @@ -641,7 +641,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: -44} + m_AnchoredPosition: {x: 560.5, y: -109} m_SizeDelta: {x: 1121, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &5900002971599260725 diff --git a/xiaofang/Assets/Prefabs/itemPrefabs/scenceItem.prefab b/xiaofang/Assets/Prefabs/itemPrefabs/scenceItem.prefab index a1a2a2e4..9d3621b4 100644 --- a/xiaofang/Assets/Prefabs/itemPrefabs/scenceItem.prefab +++ b/xiaofang/Assets/Prefabs/itemPrefabs/scenceItem.prefab @@ -315,10 +315,15 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 888f2cd11d6d3ea4c9383ac4808687dc, type: 3} m_Name: m_EditorClassIdentifier: + sceneId: + sceneType: 0 sceneName: {fileID: 4948242154808829858} sceneImage: {fileID: 4948242153488973719} maskImage: {fileID: 7234877009697728443} - IsOpen: 0 + roleLimit: + limitNum: 0 + dutyId: + jsonReader: {fileID: 0} --- !u!1 &4948242154808829860 GameObject: m_ObjectHideFlags: 0 diff --git a/xiaofang/Assets/Resources/JsonAsset/Role.json b/xiaofang/Assets/Resources/JsonAsset/Role.json index 397e116f..e6ddbd88 100644 --- a/xiaofang/Assets/Resources/JsonAsset/Role.json +++ b/xiaofang/Assets/Resources/JsonAsset/Role.json @@ -7,7 +7,7 @@ "Group": "-1", "GroupLeader": "3", "IsLeadingNPC": "0", - "ICON": "ICON_312", + "ICON": "UIImage/Vocational/icn_commander", "WeightLimit": "-1", "Stats": "-1", "Skills": "4001,-1|4003,202|4005,-1", @@ -22,7 +22,7 @@ "Group": "-1", "GroupLeader": "2", "IsLeadingNPC": "0", - "ICON": "ICON_313", + "ICON": "UIImage/Vocational/icn_commander", "WeightLimit": "5", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -37,7 +37,7 @@ "Group": "8003", "GroupLeader": "0", "IsLeadingNPC": "0", - "ICON": "ICON_314", + "ICON": "UIImage/Vocational/icn_redcue", "WeightLimit": "5", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -52,7 +52,7 @@ "Group": "-1", "GroupLeader": "1", "IsLeadingNPC": "0", - "ICON": "ICON_315", + "ICON": "UIImage/Vocational/icn_redcue", "WeightLimit": "5", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -67,7 +67,7 @@ "Group": "8005", "GroupLeader": "0", "IsLeadingNPC": "0", - "ICON": "ICON_316", + "ICON": "UIImage/Vocational/icn_dedicalrescue", "WeightLimit": "5", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -82,7 +82,7 @@ "Group": "-1", "GroupLeader": "1", "IsLeadingNPC": "0", - "ICON": "ICON_317", + "ICON": "UIImage/Vocational/icn_dedicalrescue", "WeightLimit": "5", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -97,7 +97,7 @@ "Group": "8001", "GroupLeader": "0", "IsLeadingNPC": "1", - "ICON": "ICON_318", + "ICON": "UIImage/Vocational/icn_guidance01", "WeightLimit": "-1", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -112,7 +112,7 @@ "Group": "8001", "GroupLeader": "0", "IsLeadingNPC": "1", - "ICON": "ICON_319", + "ICON": "UIImage/Vocational/icn_guidance02", "WeightLimit": "-1", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -127,7 +127,7 @@ "Group": "8009", "GroupLeader": "0", "IsLeadingNPC": "0", - "ICON": "ICON_320", + "ICON": "UIImage/Vocational/icn_support", "WeightLimit": "10", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -142,7 +142,7 @@ "Group": "-1", "GroupLeader": "1", "IsLeadingNPC": "0", - "ICON": "ICON_321", + "ICON": "UIImage/Vocational/icn_support", "WeightLimit": "10", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -157,7 +157,7 @@ "Group": "8001", "GroupLeader": "0", "IsLeadingNPC": "0", - "ICON": "ICON_322", + "ICON": "UIImage/Vocational/icn_search", "WeightLimit": "5", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", @@ -172,7 +172,7 @@ "Group": "8001", "GroupLeader": "0", "IsLeadingNPC": "1", - "ICON": "ICON_323", + "ICON": "UIImage/Vocational/icn_doormhead", "WeightLimit": "-1", "Stats": "1,6.5|2,1.8|3,1|6,100", "Skills": "4001,-1|4003,202|4005,-1", diff --git a/xiaofang/Assets/Scenes/Schedule_03.unity b/xiaofang/Assets/Scenes/Schedule_03.unity index 1205ec47..ff30a014 100644 --- a/xiaofang/Assets/Scenes/Schedule_03.unity +++ b/xiaofang/Assets/Scenes/Schedule_03.unity @@ -2216,6 +2216,7 @@ MonoBehaviour: scrollRect: {fileID: 1435623615} panelInfo: {fileID: 618256462} personnelPanel2: {fileID: 0} + distributionPanel: {fileID: 0} --- !u!1 &618256458 GameObject: m_ObjectHideFlags: 0 @@ -14120,7 +14121,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: -1792, y: 479} + m_SizeDelta: {x: 0, y: 479} m_Pivot: {x: 0, y: 1} --- !u!1 &7468736063766177857 GameObject: @@ -15716,9 +15717,9 @@ RectTransform: m_Father: {fileID: 7468736064579811971} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 917, y: -588.335} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 1834, y: 473.3535} m_Pivot: {x: 0.5, y: 0.5} --- !u!1 &7468736064494885175 @@ -15739,7 +15740,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &7468736064548566944 RectTransform: m_ObjectHideFlags: 0 diff --git a/xiaofang/Assets/Script/Scheduled_03/Panel.cs b/xiaofang/Assets/Script/Scheduled_03/Panel.cs index 90740cae..8f2697b8 100644 --- a/xiaofang/Assets/Script/Scheduled_03/Panel.cs +++ b/xiaofang/Assets/Script/Scheduled_03/Panel.cs @@ -115,27 +115,27 @@ public class Panel : MonoBehaviour //动态加载人员 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