From 1a13c963a5fb8cad92bf03667e411f46d6a6a843 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 17 十二月 2020 15:10:33 +0800 Subject: [PATCH] Revert "Merge branch 'tzy' into NewFilePath" --- HDL_ON/UI/UI2/2-Classification/RoomPage.cs | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs index 2af49b6..3589474 100644 --- a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs @@ -176,9 +176,15 @@ UnSelectedImagePath = "Collection/CollectionGrayIcon.png", IsSelected = scene.collect }; - bodyDiv.AddChidren(btnCollectionIcon); + //bodyDiv.AddChidren(btnCollectionIcon); + //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳� + if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + { + bodyDiv.AddChidren(btnCollectionIcon); + } + btnIcon.UnSelectedImagePath = "FunctionIcon/Scene/SceneIcon.png"; - if ((scene as Scene).sceneType == SceneType.MovieScene) + if (scene.sceneType == SceneType.MovieScene) { var movieIcon = new Button() { @@ -205,7 +211,7 @@ btnCollectionIcon.MouseUpEventHandler += (sender, e) => { btnCollectionIcon.IsSelected = scene.collect = !btnCollectionIcon.IsSelected; - scene.SaveSceneData(); + scene.SaveSceneData(true); }; } /// <summary> -- Gitblit v1.8.0