From 58f477ed0d35f3bea34def4eae5d1301d10b1069 Mon Sep 17 00:00:00 2001 From: originalnicodr Date: Tue, 18 Jun 2024 21:35:06 -0300 Subject: [PATCH] Adjusted space between Animator cells. --- src/Cinematic/Cells/AnimatorCell.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Cinematic/Cells/AnimatorCell.cs b/src/Cinematic/Cells/AnimatorCell.cs index 72c06eb..444a156 100644 --- a/src/Cinematic/Cells/AnimatorCell.cs +++ b/src/Cinematic/Cells/AnimatorCell.cs @@ -29,7 +29,7 @@ namespace UnityExplorer.UI.Panels ButtonRef openBonesPanelButton; // ICell - public float DefaultHeight => 25f; + public float DefaultHeight => 30f; public GameObject UIRoot { get; set; } public RectTransform Rect { get; set; } @@ -75,7 +75,7 @@ namespace UnityExplorer.UI.Panels public virtual GameObject CreateContent(GameObject parent) { GameObject AnimatorToggleObj = UIFactory.CreateToggle(parent, $"AnimatorToggle", out AnimatorToggle, out Text animatorToggleText); - UIFactory.SetLayoutElement(AnimatorToggleObj, minHeight: 25); + UIFactory.SetLayoutElement(AnimatorToggleObj, minHeight: 30); AnimatorToggle.isOn = animatorPlayer != null && animatorPlayer.animator.speed == 1; AnimatorToggle.onValueChanged.AddListener(EnableAnimation); @@ -86,9 +86,9 @@ namespace UnityExplorer.UI.Panels Rect.anchorMin = new Vector2(0, 1); Rect.anchorMax = new Vector2(0, 1); Rect.pivot = new Vector2(0.5f, 1); - Rect.sizeDelta = new Vector2(25, 25); + Rect.sizeDelta = new Vector2(30, 30); - UIFactory.SetLayoutElement(UIRoot, minWidth: 100, flexibleWidth: 9999, minHeight: 25, flexibleHeight: 0); + UIFactory.SetLayoutElement(UIRoot, minWidth: 100, flexibleWidth: 9999, minHeight: 30, flexibleHeight: 0); inspectButton = UIFactory.CreateButton(UIRoot, "InspectButton", ""); UIFactory.SetLayoutElement(inspectButton.GameObject, minWidth: 200, minHeight: 25);