|
|
@ -454,6 +454,8 @@ namespace Fungus.EditorUtils |
|
|
|
int selectedIndex = 0; |
|
|
|
int selectedIndex = 0; |
|
|
|
blockNames.Add(nullLabel); |
|
|
|
blockNames.Add(nullLabel); |
|
|
|
var blocks = flowchart.GetComponents<Block>(); |
|
|
|
var blocks = flowchart.GetComponents<Block>(); |
|
|
|
|
|
|
|
blocks = blocks.OrderBy(x => x.BlockName).ToArray(); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < blocks.Length; ++i) |
|
|
|
for (int i = 0; i < blocks.Length; ++i) |
|
|
|
{ |
|
|
|
{ |
|
|
|
blockNames.Add(new GUIContent(blocks[i].BlockName)); |
|
|
|
blockNames.Add(new GUIContent(blocks[i].BlockName)); |
|
|
@ -492,6 +494,8 @@ namespace Fungus.EditorUtils |
|
|
|
int selectedIndex = 0; |
|
|
|
int selectedIndex = 0; |
|
|
|
blockNames.Add(nullLabel); |
|
|
|
blockNames.Add(nullLabel); |
|
|
|
Block[] blocks = flowchart.GetComponents<Block>(); |
|
|
|
Block[] blocks = flowchart.GetComponents<Block>(); |
|
|
|
|
|
|
|
blocks = blocks.OrderBy(x => x.BlockName).ToArray(); |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < blocks.Length; ++i) |
|
|
|
for (int i = 0; i < blocks.Length; ++i) |
|
|
|
{ |
|
|
|
{ |
|
|
|
blockNames.Add(new GUIContent(blocks[i].BlockName)); |
|
|
|
blockNames.Add(new GUIContent(blocks[i].BlockName)); |
|
|
|