From c92476c1748449337c7ee1214712491dd73bf81a Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 2 Jul 2021 09:52:43 +0800 Subject: *misc --- .../Animation/Tween/Editor/TweenAnimationInspector.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs b/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs index 741458e..236a700 100644 --- a/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs +++ b/Assets/UI_Extension/Scripts/Animation/Tween/Editor/TweenAnimationInspector.cs @@ -181,9 +181,9 @@ namespace TweenAnimation Rect labelRect = rect; labelRect.y += 1; - GUI.Label(labelRect, "Modules ", styles.textBold); + GUI.Label(labelRect, "Modules", styles.textBold); - rect.x = rect.x + rect.width - 15; + rect.x = rect.x + rect.width - 18; rect.width = 20; rect.height = 20; //if (GUI.Button(rect, "", styles.plus)) @@ -626,10 +626,10 @@ namespace TweenAnimation GUI.Label(labelRect, callbackName, styles.text); Rect unfoldRect = rect; - unfoldRect.x = rect.x + rect.width - 19; + unfoldRect.x = rect.x + 5/*+ rect.width - 19*/; unfoldRect.width = 13; unfoldRect.height = 13; - unfoldRect.y += 3; + unfoldRect.y += 2; bool unfold; if(!m_CallbackUnfold.TryGetValue(callbackName, out unfold)) { @@ -676,7 +676,7 @@ namespace TweenAnimation // delete button Rect deleteButton = rect; - deleteButton.x += 5; + deleteButton.x = rect.x + rect.width - 19; deleteButton.width = 10; deleteButton.y -= 2; if (GUI.Button(deleteButton, "-", styles.textBoldBig)) @@ -709,10 +709,10 @@ namespace TweenAnimation // 折叠 Rect unfoldRect = rect; - unfoldRect.x = rect.x + rect.width - 19; + unfoldRect.x += 5; unfoldRect.width = 13; unfoldRect.height = 13; - unfoldRect.y += 3; + unfoldRect.y += 2; e.unfold = GUI.Button(unfoldRect, (e.unfold ? "▲" : "▼"), styles.textSmall) ? !e.unfold : e.unfold; if(e.unfold) { -- cgit v1.1-26-g67d0