变量模块;Element启用控制

This commit is contained in:
SoulliesOfficial
2025-03-20 19:30:42 -04:00
parent ab86d6d985
commit 54de98b0fa
26 changed files with 1976 additions and 44 deletions

View File

@@ -63,6 +63,7 @@ public class BasePrefabsCollection : SerializedScriptableObject
public GameObject animatedBoolUnit;
public GameObject customCurveKeyframeUnit;
public GameObject customCurveWrapModeUnit;
public GameObject stringIntPairUnit;
[Title("图形化动画编辑器")]
public GameObject graphicalFlexibleFloatWindow;

View File

@@ -36,6 +36,10 @@ namespace Ichni
public NoteBase.NoteJudgeType currentJudgeType;
public BasePrefabsCollection basePrefabs;
[Title("Runtime Global Elements")]
public VariablesContainer variablesContainer;
public BackgroundSetter backgroundSetter;
private void Awake()
{
@@ -109,6 +113,11 @@ namespace Ichni
new List<string>(), true, null, false,
"basic", "Skybox", "Background"));
var generateVariablesContainerButton =
inspector.GenerateButton(this, container, "Generate Variables Container",
() => VariablesContainer.GenerateElement("Variables Container", Guid.NewGuid(),
new List<string>(), true, null, new Dictionary<string, int>()));
projectInformation.SetUpInspector();
songInformation.SetUpInspector();
cameraManager.SetUpInspector();

View File

@@ -19,11 +19,15 @@ namespace Ichni.Editor
public void SelectElement(GameElement gameElement)
{
if(currentSelectedElement != null)
if (currentSelectedElement != null)
{
currentSelectedElement.connectedTab.isSelected = false;
currentSelectedElement.connectedTab.BgImage.color = new Color(0.5f, 0.5f, 0.5f, 0);
if (currentSelectedElement.connectedTab.BgImage != null)
{
currentSelectedElement.connectedTab.BgImage.color = new Color(0.5f, 0.5f, 0.5f, 0);
}
}
currentSelectedElement = gameElement;
currentSelectedElement.connectedTab.isSelected = true;
currentSelectedElement.connectedTab.BgImage.color = new Color(0.5f,0.5f, 0.5f, 0.2f);