newGUIContent("Replace","Character to swap with"),
newGUIContent("<Default>"),
Stage.activeStages);
newGUIContent("Replace","Character to swap with"),
newGUIContent("<Default>"),
Stage.activeStages);
replaceLabel="With";
}
if(Stage.activeStages.Count>1)
if(Stage.activeStages.Count>0)
{
CommandEditor.ObjectField<Stage>(stageProp,
newGUIContent(replaceLabel,"Stage to display the character portraits on"),
newGUIContent("<Default>"),
Stage.activeStages);
newGUIContent(replaceLabel,"Stage to display the character portraits on"),
newGUIContent("<Default>"),
Stage.activeStages);
}
boolshowOptionalFields=true;
@ -71,7 +71,7 @@ namespace Fungus
}
if(s==null)
{
EditorGUILayout.HelpBox("No portrait stage has been set. Please create a new portrait stage using [Game Object > Fungus > Portrait > Portrait Stage].",MessageType.Error);
EditorGUILayout.HelpBox("No portrait stage has been set. Please create a new portrait stage using [Game Object > Fungus > Portrait > Stage].",MessageType.Error);