| | |
| | | |
| | | bodyView = this; |
| | | scene = s; |
| | | sceneFunction = fc;//.localFunction.ConvertSceneFunction(); |
| | | sceneFunction = fc.localFunction.ConvertSceneFunction(); |
| | | foreach (var ll in sceneFunction.status) |
| | | { |
| | | try |
| | |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | new TopViewDiv(bodyView, sceneFunction.localFunction.name).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, sceneFunction.localFunction.name); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | contentView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(520), |
| | | Y = Application.GetRealHeight(64 + 10), |
| | | Height = Application.GetRealHeight(510), |
| | | ScrollEnabled = false, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | |
| | | { |
| | | scene.functions.Remove(temp); |
| | | } |
| | | //else |
| | | { |
| | | scene.functions.Insert(0, sceneFunction); |
| | | |
| | | |
| | | if (sceneFunction.localFunction.spk == SPK.MusicStandard) |
| | | { |
| | | for (var i = 0; i < sceneFunction.status.Count;) |
| | | { |
| | | var ddd = sceneFunction.status[i]; |
| | | if (string.IsNullOrEmpty(ddd.value)) |
| | | { |
| | | sceneFunction.status.Remove(ddd); |
| | | continue; |
| | | } |
| | | i++; |
| | | } |
| | | |
| | | if (sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.PlaylistName) == null) |
| | | { |
| | | if (isOnStatus) |
| | | { |
| | | var songNameStatus = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.SongName); |
| | | { |
| | | if (songNameStatus != null) |
| | | { |
| | | if (string.IsNullOrEmpty(songNameStatus.value)) |
| | | { |
| | | sceneFunction.status.Add(new SceneFunctionStatus() { key = FunctionAttributeKey.PlaylistName, value = "hdl_special" }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (!string.IsNullOrEmpty(scene.userSceneId)) |
| | | { |