diff --git a/Resources/Material/Graph/UI/Blueprint/BlueprintBackgound_GridLine.mat b/Resources/Material/Graph/UI/Blueprint/BlueprintBackgound_GridLine.mat index 9db45d2..528c3fe 100644 --- a/Resources/Material/Graph/UI/Blueprint/BlueprintBackgound_GridLine.mat +++ b/Resources/Material/Graph/UI/Blueprint/BlueprintBackgound_GridLine.mat @@ -44,6 +44,6 @@ Material: - _Color: {r: 1, g: 1, b: 1, a: 1} - _GridBackgroundColor: {r: 0.8666667, g: 0.8862745, b: 0.93333334, a: 1} - _GridColor: {r: 0.654902, g: 0.67058825, b: 0.7019608, a: 1} - - _Transform: {r: 8.90683, g: 7.61659, b: -4.453415, a: -3.808295} + - _Transform: {r: 3.9294846, g: 3.360261, b: -3.844681, a: -3.152498} - _Vector0: {r: 0.95, g: 1, b: 0, a: 0} m_BuildTextureStacks: [] diff --git a/Resources/ScriptableObject/QuickGraphRenderStyle.xsss b/Resources/ScriptableObject/QuickGraphRenderStyle.xsss index 91bd3c5..ae3ecfd 100644 --- a/Resources/ScriptableObject/QuickGraphRenderStyle.xsss +++ b/Resources/ScriptableObject/QuickGraphRenderStyle.xsss @@ -4,6 +4,12 @@ + + + + + + namespace: quickgraph quickgraph/node/ { @@ -12,7 +18,7 @@ quickgraph/node/ { border = 3:float chamfer = 0.2:float chamferSegments = 4:int - titleFontSize = 14:float + titleFontSize = 20:float } quickgraph/wire/ { diff --git a/Runtime/Helper/XericHelper.cs b/Runtime/Helper/XericHelper.cs index a73ce63..1640f39 100644 --- a/Runtime/Helper/XericHelper.cs +++ b/Runtime/Helper/XericHelper.cs @@ -1,15 +1,19 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using XericLibrary.Runtime.MacroLibrary; +using XericLibrary.Runtime.XericComponent; namespace Deconstruction.Runtime { /// - /// Xeric 库的运行时辅助类库 + /// 程序运行辅助 /// public static class XericHelper { - #region 程序运行 + private static object _pusher = new object(); + private static bool _isMinimized = false; + private static bool _isPrased = false; /// /// 离开出游戏模式(在编辑模式时仅退出) @@ -26,6 +30,71 @@ namespace Deconstruction.Runtime #endif } - #endregion + /// + /// 最小化窗口 + /// + public static void MinimizedWindow() + { + _isMinimized = true; + MacroForm.MinimizeWindow(); + } + + /// + /// 从最小化恢复窗口 + /// + /// + public static bool RestoreWindow() + { + if (!_isMinimized) return false; + _isMinimized = false; + MacroForm.RestoreWindow(); + return true; + } + + /// + /// 全屏 + /// + public static void FullScreen() + { + if (RestoreWindow()) + XericLifeCycleCore.SubmitTask(_pusher, + f => Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen, + phase: LifecyclePhase.Coroutine); + Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen; + } + + /// + /// 全屏无边框窗口 + /// + public static void FullScreenWindow() + { + if (RestoreWindow()) + XericLifeCycleCore.SubmitTask(_pusher, + f => Screen.fullScreenMode = FullScreenMode.FullScreenWindow, + phase: LifecyclePhase.Coroutine); + Screen.fullScreenMode = FullScreenMode.FullScreenWindow; + } + + /// + /// 最大化窗口 + /// + public static void MaximizedWindow() + { + if (RestoreWindow()) + XericLifeCycleCore.SubmitTask(_pusher, + f => Screen.fullScreenMode = FullScreenMode.MaximizedWindow, + phase: LifecyclePhase.Coroutine); + Screen.fullScreenMode = FullScreenMode.MaximizedWindow; + } + + /// + /// 当前是否最小化 + /// + /// + public static bool IsMinimized() + { + // return UnityEditor.EditorApplication.isPaused; + return _isMinimized; + } } -} +} \ No newline at end of file diff --git a/Runtime/XericLibrary.dll b/Runtime/XericLibrary.dll index 6f19c87..72cea4c 100644 Binary files a/Runtime/XericLibrary.dll and b/Runtime/XericLibrary.dll differ diff --git a/Runtime/XericLibrary.pdb b/Runtime/XericLibrary.pdb deleted file mode 100644 index eaa107a..0000000 Binary files a/Runtime/XericLibrary.pdb and /dev/null differ diff --git a/Runtime/XericLibrary.pdb.meta b/Runtime/XericLibrary.pdb.meta deleted file mode 100644 index c6ba7a2..0000000 --- a/Runtime/XericLibrary.pdb.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5f497a3b416599744ba515971811704f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: