变量模块;Element启用控制
This commit is contained in:
@@ -63,6 +63,7 @@ public class BasePrefabsCollection : SerializedScriptableObject
|
||||
public GameObject animatedBoolUnit;
|
||||
public GameObject customCurveKeyframeUnit;
|
||||
public GameObject customCurveWrapModeUnit;
|
||||
public GameObject stringIntPairUnit;
|
||||
[Title("图形化动画编辑器")]
|
||||
public GameObject graphicalFlexibleFloatWindow;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user