Unity-jump-proj
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
struct GUIColorOverride : IDisposable
|
||||
{
|
||||
readonly Color m_OldColor;
|
||||
|
||||
public GUIColorOverride(Color newColor)
|
||||
{
|
||||
m_OldColor = GUI.color;
|
||||
GUI.color = newColor;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
GUI.color = m_OldColor;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44507a833d0ca8a42aaec1c3d752eb5f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor
|
||||
{
|
||||
struct GUIGroupScope : IDisposable
|
||||
{
|
||||
public GUIGroupScope(Rect position)
|
||||
{
|
||||
GUI.BeginGroup(position);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
GUI.EndGroup();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0bee8aba5e8a40446b7098666c5314d9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor
|
||||
{
|
||||
struct GUIMixedValueScope : IDisposable
|
||||
{
|
||||
readonly bool m_PrevValue;
|
||||
public GUIMixedValueScope(bool newValue)
|
||||
{
|
||||
m_PrevValue = EditorGUI.showMixedValue;
|
||||
EditorGUI.showMixedValue = newValue;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EditorGUI.showMixedValue = m_PrevValue;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d59cefc45e3c31d4a90563364e7258fa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor
|
||||
{
|
||||
// Special Clip Scope that only effects painting, and keeps the coordinate system identical
|
||||
struct GUIViewportScope : IDisposable
|
||||
{
|
||||
bool m_open;
|
||||
public GUIViewportScope(Rect position)
|
||||
{
|
||||
m_open = false;
|
||||
if (Event.current.type == EventType.Repaint || Event.current.type == EventType.Layout)
|
||||
{
|
||||
GUI.BeginClip(position, -position.min, Vector2.zero, false);
|
||||
m_open = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
CloseScope();
|
||||
}
|
||||
|
||||
void CloseScope()
|
||||
{
|
||||
if (m_open)
|
||||
{
|
||||
GUI.EndClip();
|
||||
m_open = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af84cf39b8fa0654badd9278cbd00d77
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
readonly struct HorizontalScope : IDisposable
|
||||
{
|
||||
public readonly Rect rect;
|
||||
|
||||
public HorizontalScope(GUIContent content, GUIStyle style)
|
||||
{
|
||||
rect = EditorGUILayout.BeginHorizontal(content, style);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 75e3737506434a75b1f7901d8883ad47
|
||||
timeCreated: 1605888588
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
readonly struct IndentLevelScope : IDisposable
|
||||
{
|
||||
readonly int m_PrevValue;
|
||||
|
||||
public IndentLevelScope(int newValue)
|
||||
{
|
||||
m_PrevValue = EditorGUI.indentLevel;
|
||||
EditorGUI.indentLevel = newValue;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EditorGUI.indentLevel = m_PrevValue;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e42e3f559ace4a5dbae7d6d3d2e5e7b0
|
||||
timeCreated: 1605888248
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
readonly struct LabelWidthScope : IDisposable
|
||||
{
|
||||
readonly float m_PrevValue;
|
||||
|
||||
public LabelWidthScope(float newValue)
|
||||
{
|
||||
m_PrevValue = EditorGUIUtility.labelWidth;
|
||||
EditorGUIUtility.labelWidth = newValue;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EditorGUIUtility.labelWidth = m_PrevValue;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9d095bb54df44c01a27e76a2b060a072
|
||||
timeCreated: 1605888410
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.Timeline
|
||||
{
|
||||
readonly struct PropertyScope : IDisposable
|
||||
{
|
||||
public readonly GUIContent content;
|
||||
|
||||
public PropertyScope(Rect totalPosition, GUIContent label, SerializedProperty property)
|
||||
{
|
||||
content = EditorGUI.BeginProperty(totalPosition, label, property);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EditorGUI.EndProperty();
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ccfd55dae664bbcb54c8457acffdbf8
|
||||
timeCreated: 1605887959
|
Reference in New Issue
Block a user