sth&文档
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Ichni.RhythmGame
|
||||
public override void AfterInitialize()
|
||||
{
|
||||
base.AfterInitialize();
|
||||
|
||||
|
||||
if (trackPathSubmodule != null && trackPathSubmodule.pathNodeList.Count > 3)
|
||||
{
|
||||
trackPathSubmodule.ClosePath();
|
||||
@@ -173,7 +173,11 @@ namespace Ichni.RhythmGame
|
||||
Swirl.GenerateElement("New Swirl", Guid.NewGuid(), new List<string>(), true, this,
|
||||
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat());
|
||||
}); //旋转
|
||||
|
||||
var scaleButton = inspector.GenerateButton(this, animationSubcontainer, "Scale", () =>
|
||||
{
|
||||
Swirl.GenerateElement("New Scale", Guid.NewGuid(), new List<string>(), true, this,
|
||||
new FlexibleFloat(), new FlexibleFloat(), new FlexibleFloat());
|
||||
}); //缩放
|
||||
if (trackPathSubmodule != null)
|
||||
{
|
||||
trackPathButton.button.interactable = false;
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
private void SetUpSplineComputer(Track.TrackSpaceType trackSpaceType, Track.TrackSamplingType trackSamplingType)
|
||||
{
|
||||
path.type = (Spline.Type)(int)trackSpaceType;
|
||||
path.type = (Spline.Type)trackSpaceType;
|
||||
path.sampleMode = (SplineComputer.SampleMode)(int)trackSamplingType;
|
||||
path.space = SplineComputer.Space.Local;
|
||||
}
|
||||
@@ -69,8 +69,10 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public void SetTrackSpaceType(int spaceType)
|
||||
{
|
||||
trackSpaceType = (Track.TrackSpaceType)spaceType;
|
||||
path.type = (Spline.Type)spaceType;
|
||||
int SpaceType = spaceType;
|
||||
if (spaceType == 2) SpaceType++;
|
||||
trackSpaceType = (Track.TrackSpaceType)SpaceType;
|
||||
path.type = (Spline.Type)SpaceType;
|
||||
}
|
||||
|
||||
public void SetPathNode(PathNode point)
|
||||
@@ -86,17 +88,13 @@ namespace Ichni.RhythmGame
|
||||
|
||||
public override void Refresh()
|
||||
{
|
||||
if (trackSpaceType == Track.TrackSpaceType.Linear)
|
||||
{
|
||||
SetTrackSpaceType((int)Spline.Type.Linear);
|
||||
path.type = Spline.Type.Linear;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
SetTrackSpaceType((int)trackSpaceType);
|
||||
SetUpSplineComputer(trackSpaceType, trackSamplingType);
|
||||
}
|
||||
|
||||
|
||||
|
||||
SetTrackSpaceType((int)trackSpaceType);
|
||||
SetUpSplineComputer(trackSpaceType, trackSamplingType);
|
||||
|
||||
|
||||
foreach (var pathNode in pathNodeList)
|
||||
{
|
||||
@@ -117,7 +115,7 @@ namespace Ichni.RhythmGame
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
|
||||
|
||||
var container = inspector.GenerateContainer("Track Path");
|
||||
var trackPathSubmoduleSettings = container.GenerateSubcontainer(3);
|
||||
var trackSpaceDropdown =
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Editor;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.RhythmGame
|
||||
|
||||
Reference in New Issue
Block a user