采音器初步
This commit is contained in:
@@ -118,7 +118,7 @@ namespace Ichni.RhythmGame
|
||||
noteVisual.effectSubmodule.effectCollection["Miss"].ForEach(e => e.UpdateEffect(exactJudgeTime));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
noteVisual.effectSubmodule.effectCollection["AfterJudge"].ForEach(e => e.UpdateEffect(exactJudgeTime));
|
||||
|
||||
if (EditorManager.instance.cameraManager.haveGameCamera)
|
||||
@@ -150,9 +150,9 @@ namespace Ichni.RhythmGame
|
||||
public override void SetUpInspector()
|
||||
{
|
||||
base.SetUpInspector();
|
||||
|
||||
|
||||
IHaveInspection inspector = EditorManager.instance.uiManager.inspector;
|
||||
|
||||
|
||||
var infoContainer = inspector.GenerateContainer("Note Info");
|
||||
var noteBaseSettings = infoContainer.GenerateSubcontainer(3);
|
||||
var exactJudgeTimeInputField =
|
||||
@@ -163,9 +163,9 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
EditorManager.instance.projectManager.notePrefabManager.SaveNotePrefab(this, GetNoteTypeName(this) + "_Prefab");
|
||||
});
|
||||
var noteScreenPositionText = inspector.GenerateHintText(this, noteBaseSettings,
|
||||
var noteScreenPositionText = inspector.GenerateHintText(this, noteBaseSettings,
|
||||
() => "Note Screen Position: " + noteScreenPosition);
|
||||
|
||||
|
||||
var noteVisualContainer = inspector.GenerateContainer("Note Visual");
|
||||
var noteVisualGeneration = noteVisualContainer.GenerateSubcontainer(3);
|
||||
var generateNoteVisualButton = inspector.GenerateButton(this, noteVisualGeneration, "Generate Note Visual", () =>
|
||||
@@ -178,6 +178,18 @@ namespace Ichni.RhythmGame
|
||||
generateNoteVisualButton.button.interactable = false;
|
||||
}
|
||||
}
|
||||
public override void OnDelete()
|
||||
{
|
||||
base.OnDelete();
|
||||
if (parentElement != null)
|
||||
{
|
||||
if (EditorManager.instance.uiManager.inspector.connectedGameElement == parentElement)
|
||||
{
|
||||
EditorManager.instance.uiManager.timeline.SetTimeLine(parentElement);
|
||||
foreach (SampleWindow i in SampleWindow.instances.Where(i => i.gameElement)) i.OnceSpawnNote();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public abstract partial class NoteBase
|
||||
|
||||
@@ -291,9 +291,17 @@ namespace Ichni.RhythmGame
|
||||
var setOnlyStartEndPathNodeSphereEnabledButton =
|
||||
inspector.GenerateButton(this, pathNodeToolsSubcontainer, "Only Enable Start & End Path Node's sphere",
|
||||
SetOnlyStartEndPathNodeSphereEnabled);
|
||||
var Sampler = inspector.GenerateContainer("Sampler"); //cyq
|
||||
var SamplerSubcontainer = Sampler.GenerateSubcontainer(1);
|
||||
var SamplerButton = inspector.GenerateButton(this, SamplerSubcontainer, "Sampler", () =>
|
||||
{
|
||||
SampleWindow sampleWindow = inspector.GenerateSampler(this, this.elementName);
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public partial class Track
|
||||
{
|
||||
[Button("Test GetAllNotes")]
|
||||
@@ -312,7 +320,7 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
Debug.Log(note.GetType() + " " + note.elementName + " " + note.exactJudgeTime);
|
||||
}
|
||||
|
||||
|
||||
return notes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user