From 768f8261da6a1da594c79fc4d8d35c0791ee026d Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Tue, 22 Feb 2022 18:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87=E7=89=88=E6=9C=AC=EF=BC=8Cpc?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD=EF=BC=8C=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AFfb=E5=88=86=E4=BA=AB=EF=BC=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/RecommendController.cs | 4 +- .../UI/Prefab/Panel/ActivityAdPanel.prefab | 6 +- .../UI/Prefab/Panel/ActivityPanel.prefab | 174 +++++++------ .../UI/Prefab/Panel/AddressPanel.prefab | 237 +++++++++--------- Assets/Scenes/Test2.unity | 2 +- Assets/Scripts/Apis/Models/ActivityModel.cs | 1 + Assets/Scripts/Apis/Models/Recommand.cs | 1 + Assets/Scripts/Scenes/MainController.cs | 2 +- .../UI/Prefab/Activity/ActivityController.cs | 103 ++++++-- Assets/test.cs | 1 + ProjectSettings/EditorBuildSettings.asset | 4 +- ProjectSettings/GraphicsSettings.asset | 1 - ProjectSettings/ProjectSettings.asset | 2 +- 13 files changed, 322 insertions(+), 216 deletions(-) diff --git a/Assets/RecommendController.cs b/Assets/RecommendController.cs index ddedbb06..d32990ef 100644 --- a/Assets/RecommendController.cs +++ b/Assets/RecommendController.cs @@ -25,7 +25,9 @@ public class RecommendController : MonoBehaviour public void Initial(Recommand area, Dictionary caches = null) { - transform.Find("Panel/Text").GetComponent().text = area.Title; + + transform.Find("Panel/Text").GetComponent().text = App.GetLocalLanguage() == "zh" ? area.Title : area.GlobeTitle; ; + Utils.DisplayImageTempDict(GetComponent(), area.CoverImage, caches); this.Area = area; GetComponent