update 0.6.3.8
This commit is contained in:
@@ -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: []
|
||||
|
||||
@@ -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/ {
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using XericLibrary.Runtime.MacroLibrary;
|
||||
using XericLibrary.Runtime.XericComponent;
|
||||
|
||||
namespace Deconstruction.Runtime
|
||||
{
|
||||
/// <summary>
|
||||
/// Xeric 库的运行时辅助类库
|
||||
/// 程序运行辅助
|
||||
/// </summary>
|
||||
public static class XericHelper
|
||||
{
|
||||
#region 程序运行
|
||||
private static object _pusher = new object();
|
||||
private static bool _isMinimized = false;
|
||||
private static bool _isPrased = false;
|
||||
|
||||
/// <summary>
|
||||
/// 离开出游戏模式(在编辑模式时仅退出)
|
||||
@@ -26,6 +30,71 @@ namespace Deconstruction.Runtime
|
||||
#endif
|
||||
}
|
||||
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 最小化窗口
|
||||
/// </summary>
|
||||
public static void MinimizedWindow()
|
||||
{
|
||||
_isMinimized = true;
|
||||
MacroForm.MinimizeWindow();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从最小化恢复窗口
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool RestoreWindow()
|
||||
{
|
||||
if (!_isMinimized) return false;
|
||||
_isMinimized = false;
|
||||
MacroForm.RestoreWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 全屏
|
||||
/// </summary>
|
||||
public static void FullScreen()
|
||||
{
|
||||
if (RestoreWindow())
|
||||
XericLifeCycleCore.SubmitTask(_pusher,
|
||||
f => Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen,
|
||||
phase: LifecyclePhase.Coroutine);
|
||||
Screen.fullScreenMode = FullScreenMode.ExclusiveFullScreen;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 全屏无边框窗口
|
||||
/// </summary>
|
||||
public static void FullScreenWindow()
|
||||
{
|
||||
if (RestoreWindow())
|
||||
XericLifeCycleCore.SubmitTask(_pusher,
|
||||
f => Screen.fullScreenMode = FullScreenMode.FullScreenWindow,
|
||||
phase: LifecyclePhase.Coroutine);
|
||||
Screen.fullScreenMode = FullScreenMode.FullScreenWindow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 最大化窗口
|
||||
/// </summary>
|
||||
public static void MaximizedWindow()
|
||||
{
|
||||
if (RestoreWindow())
|
||||
XericLifeCycleCore.SubmitTask(_pusher,
|
||||
f => Screen.fullScreenMode = FullScreenMode.MaximizedWindow,
|
||||
phase: LifecyclePhase.Coroutine);
|
||||
Screen.fullScreenMode = FullScreenMode.MaximizedWindow;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 当前是否最小化
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool IsMinimized()
|
||||
{
|
||||
// return UnityEditor.EditorApplication.isPaused;
|
||||
return _isMinimized;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f497a3b416599744ba515971811704f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user