This commit is contained in:
CortexCore
2024-03-25 16:08:26 +08:00
parent 65d90d1bfa
commit 967ad8eacf
67 changed files with 3097 additions and 39530 deletions

View File

@@ -13,7 +13,8 @@
"GUID:3bfa6f714e036734185ec6f5b157610a",
"GUID:6ef4ed8ff60a7aa4bb60a8030e6f4008",
"GUID:84d565da37ad40546a118cfb3c3509f3",
"GUID:677cd05ca06c46b4395470200b1acdad"
"GUID:677cd05ca06c46b4395470200b1acdad",
"GUID:3e9ced9430d8ee743b37f99f97066130"
],
"includePlatforms": [],
"excludePlatforms": [],

View File

@@ -21,23 +21,6 @@ namespace BITFALL.GameEditor
window.Show();
}
protected override VisualElement MakeItem()
{
var container = new VisualElement();
var icon = container.Create<VisualElement>(UXConstant.Icon);
var label = container.Create<Label>(UXConstant.ContextLabel);
container.style.flexDirection = FlexDirection.Row;
container.style.alignContent = Align.Center;
container.style.alignItems = Align.Center;
icon.style.width = 24;
icon.style.height = 24;
return container;
}
protected override void BindItem(VisualElement arg1, int arg2)
{
var item = List[arg2];

View File

@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using BITKit;
using BITKit.Animations;
using BITKit.GameEditor;
using BITKit.UX;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
namespace BITFALL.GameEditor
{
public class MotionMatchingEditor : ScriptableObjectGroupEditor<ScriptableMotionMatchingObject>
{
protected override string AssetsPath => "Assets/Artists/Configs/MotionMatching/";
[MenuItem("Tools/ScriptableObjectEditor/Motion Matching")]
public static void Open()
{
var window = GetWindow<MotionMatchingEditor>();
window.titleContent = new GUIContent("Motion Matching Editor");
window.Show();
}
protected override void BindItem(VisualElement arg1, int arg2)
{
var item = List[arg2];
var container = new UXContainer(arg1);
container.contextLabel.text = item.name;
//container.icon.style.backgroundImage = item.SquareIcon;
}
}
}