mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Basic actor timelines and keyframe tweaking
This commit is contained in:
parent
0364322d46
commit
dfa564759b
246 changed files with 1918 additions and 150 deletions
32
Assets/Editor/KeyframeSliderEditor.cs
Normal file
32
Assets/Editor/KeyframeSliderEditor.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
[CustomEditor(typeof(KeyframeSlider))]
|
||||
[CanEditMultipleObjects]
|
||||
public class MenuButtonEditor : UnityEditor.UI.SliderEditor
|
||||
{
|
||||
SerializedProperty ghostSlidersProp;
|
||||
SerializedProperty ghostSliderPrefabProp;
|
||||
SerializedProperty maxGhostsProp;
|
||||
|
||||
protected override void OnEnable()
|
||||
{
|
||||
base.OnEnable();
|
||||
ghostSlidersProp = serializedObject.FindProperty("ghostSliders");
|
||||
ghostSliderPrefabProp = serializedObject.FindProperty("ghostSliderPrefab");
|
||||
maxGhostsProp = serializedObject.FindProperty("maxGhosts");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
EditorGUILayout.PropertyField(ghostSlidersProp, new GUIContent("Ghost Sliders"));
|
||||
EditorGUILayout.PropertyField(ghostSliderPrefabProp, new GUIContent("Ghost Slider Prefab"));
|
||||
EditorGUILayout.PropertyField(maxGhostsProp, new GUIContent("Max Ghosts"));
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
base.OnInspectorGUI();
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Editor/KeyframeSliderEditor.cs.meta
Normal file
11
Assets/Editor/KeyframeSliderEditor.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8889fe610d7bdb743954a89d88ab5718
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue