From 101e0590eff192aa4c0a9619228648c6fcf31486 Mon Sep 17 00:00:00 2001 From: chenxiangxue <910695411@qq.com> Date: Wed, 26 Jun 2024 18:52:06 +0800 Subject: [PATCH] saasda --- .../Assets/Resources/prefeb/customItem.prefab | 10 ++--- .../Assets/Resources/prefeb/modelItem.prefab | 16 ++++---- .../Assets/Resources/prefeb/tabItem.prefab | 17 +++++---- .../Assets/Scenes/MainScene.unity | 37 +++++++++++-------- .../Assets/Scripts/Item/TabItem.cs | 4 +- 5 files changed, 45 insertions(+), 39 deletions(-) diff --git a/FuZhou_FirstPage/Assets/Resources/prefeb/customItem.prefab b/FuZhou_FirstPage/Assets/Resources/prefeb/customItem.prefab index 886b7bcb..c748d7fc 100644 --- a/FuZhou_FirstPage/Assets/Resources/prefeb/customItem.prefab +++ b/FuZhou_FirstPage/Assets/Resources/prefeb/customItem.prefab @@ -159,16 +159,16 @@ RectTransform: m_GameObject: {fileID: 8856219313330948118} 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_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_Children: [] m_Father: {fileID: 8856219313163689186} 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: 101.72, y: 15.23} - m_SizeDelta: {x: 153.10529, y: 30.458923} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 25.167358, y: 17.264} + m_SizeDelta: {x: 300.96072, y: 69.0552} + m_Pivot: {x: 0, y: 0.5} --- !u!222 &8856219313330948113 CanvasRenderer: m_ObjectHideFlags: 0 @@ -198,7 +198,7 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 43ab4162a30d8984db914784438e67b4, type: 3} - m_FontSize: 16 + m_FontSize: 32 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 1 diff --git a/FuZhou_FirstPage/Assets/Resources/prefeb/modelItem.prefab b/FuZhou_FirstPage/Assets/Resources/prefeb/modelItem.prefab index b116b063..90fa12be 100644 --- a/FuZhou_FirstPage/Assets/Resources/prefeb/modelItem.prefab +++ b/FuZhou_FirstPage/Assets/Resources/prefeb/modelItem.prefab @@ -27,16 +27,16 @@ RectTransform: m_GameObject: {fileID: 2485691483878867189} 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_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_Children: [] m_Father: {fileID: 2485691484692582150} 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: 100.79995, y: 3.3999758} - m_SizeDelta: {x: 153.10529, y: 30.458923} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 24.247314, y: 3.41} + m_SizeDelta: {x: 284.37427, y: 68.905914} + m_Pivot: {x: 0, y: 0.5} --- !u!222 &2485691483878867192 CanvasRenderer: m_ObjectHideFlags: 0 @@ -66,7 +66,7 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 43ab4162a30d8984db914784438e67b4, type: 3} - m_FontSize: 16 + m_FontSize: 32 m_FontStyle: 0 m_BestFit: 0 m_MinSize: 1 @@ -77,7 +77,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: "xx\u6D77\u5173" + m_Text: "xx\u4F01\u4E1A" --- !u!1 &2485691484692582145 GameObject: m_ObjectHideFlags: 0 diff --git a/FuZhou_FirstPage/Assets/Resources/prefeb/tabItem.prefab b/FuZhou_FirstPage/Assets/Resources/prefeb/tabItem.prefab index 1b1bae2a..143a8f5e 100644 --- a/FuZhou_FirstPage/Assets/Resources/prefeb/tabItem.prefab +++ b/FuZhou_FirstPage/Assets/Resources/prefeb/tabItem.prefab @@ -28,16 +28,16 @@ RectTransform: m_GameObject: {fileID: 552651399343491256} 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_LocalScale: {x: 0.25, y: 0.25, z: 0.25} m_Children: [] m_Father: {fileID: 552651400290170775} 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: 96.1, y: 0} - m_SizeDelta: {x: 160, y: 48.455505} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 17.099976, y: 0.000022888} + m_SizeDelta: {x: 640, y: 193.82227} + m_Pivot: {x: 0, y: 0.5} --- !u!222 &552651399343491239 CanvasRenderer: m_ObjectHideFlags: 0 @@ -67,11 +67,11 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: dcc291d57ccc8074d92b2d97da31a875, type: 3} - m_FontSize: 15 + m_FontSize: 60 m_FontStyle: 2 m_BestFit: 0 m_MinSize: 1 - m_MaxSize: 40 + m_MaxSize: 60 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 @@ -307,3 +307,4 @@ MonoBehaviour: choseSprite: {fileID: 21300000, guid: 4ced2e7e9bfb6264c8d023a85800ac43, type: 3} nochoseFont: {fileID: 12800000, guid: dcc291d57ccc8074d92b2d97da31a875, type: 3} choseFont: {fileID: 12800000, guid: 43ab4162a30d8984db914784438e67b4, type: 3} + posPercent: {x: 0, y: 0} diff --git a/FuZhou_FirstPage/Assets/Scenes/MainScene.unity b/FuZhou_FirstPage/Assets/Scenes/MainScene.unity index e8ed0447..71631e43 100644 --- a/FuZhou_FirstPage/Assets/Scenes/MainScene.unity +++ b/FuZhou_FirstPage/Assets/Scenes/MainScene.unity @@ -148,16 +148,16 @@ RectTransform: m_GameObject: {fileID: 54858796} 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_LocalScale: {x: 0.5, y: 0.5, z: 0.5} m_Children: [] m_Father: {fileID: 1837879639} 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: -12.33, y: -4.3} - m_SizeDelta: {x: 93.457886, y: 30} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 74.94104, y: -4.8} + m_SizeDelta: {x: 216.9812, y: 69.00745} + m_Pivot: {x: 0, y: 0.5} --- !u!114 &54858798 MonoBehaviour: m_ObjectHideFlags: 0 @@ -179,7 +179,7 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} - m_FontSize: 17 + m_FontSize: 34 m_FontStyle: 2 m_BestFit: 0 m_MinSize: 1 @@ -4524,7 +4524,12 @@ PrefabInstance: - target: {fileID: 552651399343491238, guid: cafcce2d67c06934d8ffdce1ae1059fc, type: 3} propertyPath: m_FontData.m_FontSize - value: 15 + value: 60 + objectReference: {fileID: 0} + - target: {fileID: 552651399343491257, guid: cafcce2d67c06934d8ffdce1ae1059fc, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 objectReference: {fileID: 0} - target: {fileID: 552651400213636529, guid: cafcce2d67c06934d8ffdce1ae1059fc, type: 3} @@ -4812,16 +4817,16 @@ RectTransform: m_GameObject: {fileID: 2403617721991577347} 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_LocalScale: {x: 0.25, y: 0.25, z: 0.25} m_Children: [] m_Father: {fileID: 2403617721991577370} 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: 96.1, y: 0} - m_SizeDelta: {x: 160, y: 48.455505} - m_Pivot: {x: 0.5, y: 0.5} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 21.099976, y: 0} + m_SizeDelta: {x: 461.4917, y: 145.46835} + m_Pivot: {x: 0, y: 0.5} --- !u!224 &2403617721991577373 RectTransform: m_ObjectHideFlags: 0 @@ -4911,11 +4916,11 @@ MonoBehaviour: m_Calls: [] m_FontData: m_Font: {fileID: 12800000, guid: 43ab4162a30d8984db914784438e67b4, type: 3} - m_FontSize: 25 + m_FontSize: 100 m_FontStyle: 2 m_BestFit: 0 m_MinSize: 1 - m_MaxSize: 40 + m_MaxSize: 100 m_Alignment: 3 m_AlignByGeometry: 0 m_RichText: 1 diff --git a/FuZhou_FirstPage/Assets/Scripts/Item/TabItem.cs b/FuZhou_FirstPage/Assets/Scripts/Item/TabItem.cs index 5c5ec8c7..ccd81e42 100644 --- a/FuZhou_FirstPage/Assets/Scripts/Item/TabItem.cs +++ b/FuZhou_FirstPage/Assets/Scripts/Item/TabItem.cs @@ -41,7 +41,7 @@ public class TabItem : MonoBehaviour //联动 if (customItem != null) { - nameText.fontSize = 20; + nameText.fontSize = 80; nameText.font = choseFont; nameText.color= Color.white; customItem.PointIn(null); @@ -55,7 +55,7 @@ public class TabItem : MonoBehaviour //联动 if(customItem != null) { - nameText.fontSize = 15; + nameText.fontSize = 60; nameText.font = nochoseFont; nameText.color = new Color(148f / 255f, 184f / 255f, 1, 1); customItem.PointOut(null);