From 5a6c1821aae6b9b4bb14680cd603c22423aff192 Mon Sep 17 00:00:00 2001 From: "Bob.Song" Date: Wed, 29 Oct 2025 11:31:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/Fgui/Common/Common_fui.bytes | Bin 37273 -> 37334 bytes Assets/Scripts/UI/Common/Items/NoticeItem.cs | 1 + .../ModelViewer/ModelViewRenderImage.cs | 5 ++--- .../assets/Common/Com/Tags/NoticeItem.xml | 8 +++++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Assets/Resources/Fgui/Common/Common_fui.bytes b/Assets/Resources/Fgui/Common/Common_fui.bytes index 47c67028ade9fe75f40268ce94b5d412075b238e..f069aaff0d0aa0ab55fb1a4ee5cac122e59b3b8a 100644 GIT binary patch delta 203 zcmbQanCaSLrU^Ejz6@YcGJT_~jhWFeW=1haafagm{}>q<7`=c}K0wTLp97>w35fN9 zI2b5$1c*-o@!iRr&E_!Q`2Bx!khz`&kp2%;uz{VCL4d)H!Hc05$g5*mH+hD+buc4? zJ`0e`!obIRehEm~e+K@bBT^6+%iru=2#f94S`i2fsAM~X2vjjMkOy=Vl>Besz`$VN Ku=%C=hDZRFsxrU^Ej0t{eK61CCQ#>{9hGou)zI79LOe~b(aj9x$~A0TF0!~s&I1jPD4 z91Ij`2jX5JUNCvH*&Jrp^GhZNnd?aa>Hk0l#q5j>0t{{pUSQq6426?tm|L>}CAKq& OOkQuQxY^udek1@D^&GhX diff --git a/Assets/Scripts/UI/Common/Items/NoticeItem.cs b/Assets/Scripts/UI/Common/Items/NoticeItem.cs index 36c0b63d6..1088adff0 100644 --- a/Assets/Scripts/UI/Common/Items/NoticeItem.cs +++ b/Assets/Scripts/UI/Common/Items/NoticeItem.cs @@ -15,6 +15,7 @@ namespace NBF public void SetData(string message, Notices.NoticeType noticeType) { style.selectedIndex = (int)noticeType; + TextContent.text = message; } } } \ No newline at end of file diff --git a/Assets/Scripts/UI/Common/ModelViewer/ModelViewRenderImage.cs b/Assets/Scripts/UI/Common/ModelViewer/ModelViewRenderImage.cs index b54a3d604..582ed4d0a 100644 --- a/Assets/Scripts/UI/Common/ModelViewer/ModelViewRenderImage.cs +++ b/Assets/Scripts/UI/Common/ModelViewer/ModelViewRenderImage.cs @@ -207,9 +207,8 @@ namespace NBF { if (_rotating != Vector3.zero && this.modelRoot != null) { - Vector3 localRotation = modelRoot.localRotation.eulerAngles; - localRotation += _rotating; - modelRoot.localRotation = Quaternion.Euler(localRotation); + // 使用 Quaternion 来避免欧拉角带来的问题 + modelRoot.Rotate(_rotating, Space.World); } SetLayer(_root.gameObject, RENDER_LAYER); diff --git a/FGUIProject/assets/Common/Com/Tags/NoticeItem.xml b/FGUIProject/assets/Common/Com/Tags/NoticeItem.xml index 9a6e6f20e..b65b92bb2 100644 --- a/FGUIProject/assets/Common/Com/Tags/NoticeItem.xml +++ b/FGUIProject/assets/Common/Com/Tags/NoticeItem.xml @@ -7,12 +7,14 @@ - + - + - + + +