Added insect body parts
This commit is contained in:
parent
517e73881a
commit
b6a3bc1892
@ -84,8 +84,8 @@ namespace NanoBrain {
|
|||||||
void OnAddClusterOutput() {
|
void OnAddClusterOutput() {
|
||||||
Nucleus newOutput = new Neuron(this.prefab, "New Output");
|
Nucleus newOutput = new Neuron(this.prefab, "New Output");
|
||||||
this.prefab.RefreshOutputs();
|
this.prefab.RefreshOutputs();
|
||||||
outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList();
|
// outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList();
|
||||||
outputsPopup.value = newOutput.name;
|
// outputsPopup.value = newOutput.name;
|
||||||
|
|
||||||
this.currentNucleus = newOutput;
|
this.currentNucleus = newOutput;
|
||||||
}
|
}
|
||||||
@ -185,7 +185,7 @@ namespace NanoBrain {
|
|||||||
if (newName != this.currentNucleus.name) {
|
if (newName != this.currentNucleus.name) {
|
||||||
this.currentNucleus.name = newName;
|
this.currentNucleus.name = newName;
|
||||||
this.prefab.RefreshOutputs();
|
this.prefab.RefreshOutputs();
|
||||||
outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList();
|
// outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList();
|
||||||
anythingChanged = true;
|
anythingChanged = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -537,11 +537,11 @@ namespace NanoBrain {
|
|||||||
}
|
}
|
||||||
this.prefab.nuclei.Remove(nucleus);
|
this.prefab.nuclei.Remove(nucleus);
|
||||||
|
|
||||||
if (outputsPopup.value == nucleus.name) {
|
// if (outputsPopup.value == nucleus.name) {
|
||||||
this.prefab.RefreshOutputs();
|
// this.prefab.RefreshOutputs();
|
||||||
outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList();
|
// outputsPopup.choices = this.prefab.outputs.Select(output => output.name).ToList();
|
||||||
outputsPopup.index = 0;
|
// outputsPopup.index = 0;
|
||||||
}
|
// }
|
||||||
|
|
||||||
Neuron.Delete(nucleus);
|
Neuron.Delete(nucleus);
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@ namespace NanoBrain {
|
|||||||
protected VisualElement topMenuContainer;
|
protected VisualElement topMenuContainer;
|
||||||
protected ScrollView scrollView;
|
protected ScrollView scrollView;
|
||||||
protected IMGUIContainer graphContainer;
|
protected IMGUIContainer graphContainer;
|
||||||
protected readonly PopupField<string> outputsPopup;
|
//protected readonly PopupField<string> outputsPopup;
|
||||||
|
|
||||||
public enum Mode {
|
public enum Mode {
|
||||||
Focus,
|
Focus,
|
||||||
|
|||||||
@ -1,2 +1,11 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 4fe58945c76d153edacc220597474ad2
|
guid: 4fe58945c76d153edacc220597474ad2
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user