Преглед на файлове

修改一些显示的bug

wartheking2024 преди 2 седмици
родител
ревизия
7c468eaa5e
променени са 4 файла, в които са добавени 111 реда и са изтрити 14 реда
  1. 8 8
      Assets/Prefabs/UI/Item/xunJianRenWuItem.prefab
  2. 3 3
      Assets/Prefabs/UI/XHYZT/GCYW.prefab
  3. 97 0
      Assets/Scene 1.unity
  4. 3 3
      Assets/Scripts/UI/UIView/XHDD/XHDDLayer.cs

+ 8 - 8
Assets/Prefabs/UI/Item/xunJianRenWuItem.prefab

@@ -35,8 +35,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 43.185913, y: -19.700012}
-  m_SizeDelta: {x: 50.3718, y: 20}
+  m_AnchoredPosition: {x: 35.650696, y: -19.700012}
+  m_SizeDelta: {x: 45.0768, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &599252985667402459
 CanvasRenderer:
@@ -115,8 +115,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 267.1, y: -19.700012}
-  m_SizeDelta: {x: 80, y: 20}
+  m_AnchoredPosition: {x: 268.3192, y: -19.700012}
+  m_SizeDelta: {x: 82.4384, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &6092926312370697893
 CanvasRenderer:
@@ -478,8 +478,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 129.92719, y: -19.700012}
-  m_SizeDelta: {x: 106.0402, y: 20}
+  m_AnchoredPosition: {x: 119.27696, y: -19.700012}
+  m_SizeDelta: {x: 116.4661, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &9118758874479972441
 CanvasRenderer:
@@ -803,8 +803,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 205.5, y: -19.700012}
-  m_SizeDelta: {x: 38.15, y: 20}
+  m_AnchoredPosition: {x: 201.94107, y: -19.700012}
+  m_SizeDelta: {x: 45.2678, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5138472236347755085
 CanvasRenderer:

+ 3 - 3
Assets/Prefabs/UI/XHYZT/GCYW.prefab

@@ -1318,8 +1318,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
-  m_AnchoredPosition: {x: 148.00488, y: -24}
-  m_SizeDelta: {x: 174.7, y: 30}
+  m_AnchoredPosition: {x: 140, y: -24}
+  m_SizeDelta: {x: 160, y: 30}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &8415369441815378017
 CanvasRenderer:
@@ -1362,7 +1362,7 @@ MonoBehaviour:
     m_HorizontalOverflow: 0
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: " \u7A81\u53D1\u4E8B\u4EF6\u603B\u8BA1"
+  m_Text: "\u7A81\u53D1\u4E8B\u4EF6\u603B\u8BA1"
 --- !u!1 &321553875698633134
 GameObject:
   m_ObjectHideFlags: 0

Файловите разлики са ограничени, защото са твърде много
+ 97 - 0
Assets/Scene 1.unity


+ 3 - 3
Assets/Scripts/UI/UIView/XHDD/XHDDLayer.cs

@@ -406,7 +406,7 @@ public class XHDDLayer : YZTRootLayer
         AllRestore();
     }
 
-    void ChangeDDYAContent(AlertInfo alertInfo)
+    async void ChangeDDYAContent(AlertInfo alertInfo)
     {
         fbsjText.text = alertInfo.publishCondition;
         hxmbText.text = alertInfo.coreGoal;
@@ -427,10 +427,10 @@ public class XHDDLayer : YZTRootLayer
             obj.transform.GetChild(0).GetComponent<Text>().text = alertInfo.originalSections[i].title;
             obj.transform.GetChild(1).GetComponent<Text>().text = alertInfo.originalSections[i].content.Replace("\\n", "\n");
         }
-
+        await new WaitForFixedUpdate();
         LayoutRebuilder.ForceRebuildLayoutImmediate(fbsjText.transform.parent.GetComponent<RectTransform>()); // 强制重新计算布局
-        LayoutRebuilder.ForceRebuildLayoutImmediate(hxmbText.transform.parent.GetComponent<RectTransform>()); // 强制重新计算布局
         LayoutRebuilder.ForceRebuildLayoutImmediate(zyrwContent.GetComponent<RectTransform>()); // 强制重新计算布局
+        LayoutRebuilder.ForceRebuildLayoutImmediate(hxmbText.transform.parent.GetComponent<RectTransform>()); // 强制重新计算布局   
         LayoutRebuilder.ForceRebuildLayoutImmediate(zxmxContent.GetComponent<RectTransform>()); // 强制重新计算布局
     }
 

Някои файлове не бяха показани, защото твърде много файлове са промени