Browse Source

Disabled character display in deprecated Choose commands #84

master
chrisgregan 10 years ago
parent
commit
ffa5c3ddea
  1. 5
      Assets/Fungus/Dialog/Deprecated/Editor/ChooseEditor.cs
  2. 5
      Assets/Fungus/Dialog/Deprecated/Editor/ChooseOptionEditor.cs

5
Assets/Fungus/Dialog/Deprecated/Editor/ChooseEditor.cs

@ -89,6 +89,7 @@ namespace Fungus
EditorGUILayout.PropertyField(timeoutDurationProp, new GUIContent("Timeout Duration", "Time limit for player to make a choice. Set to 0 for no limit."));
/*
if (showPortraits && t.portrait != null)
{
Texture2D characterTexture = t.portrait.texture;
@ -96,12 +97,12 @@ namespace Fungus
float aspect = (float)characterTexture.width / (float)characterTexture.height;
Rect previewRect = GUILayoutUtility.GetAspectRect(aspect, GUILayout.Width(100), GUILayout.ExpandWidth(true));
CharacterEditor characterEditor = Editor.CreateEditor(t.character) as CharacterEditor;
characterEditor.DrawPreview(previewRect, characterTexture);
DestroyImmediate(characterEditor);
}
*/
serializedObject.ApplyModifiedProperties();
}
}

5
Assets/Fungus/Dialog/Deprecated/Editor/ChooseOptionEditor.cs

@ -89,6 +89,7 @@ namespace Fungus
EditorGUILayout.PropertyField(timeoutDurationProp, new GUIContent("Timeout Duration", "Time limit for player to make a choice. Set to 0 for no limit."));
/*
if (showPortraits && t.portrait != null)
{
Texture2D characterTexture = t.portrait.texture;
@ -96,12 +97,12 @@ namespace Fungus
float aspect = (float)characterTexture.width / (float)characterTexture.height;
Rect previewRect = GUILayoutUtility.GetAspectRect(aspect, GUILayout.Width(100), GUILayout.ExpandWidth(true));
CharacterEditor characterEditor = Editor.CreateEditor(t.character) as CharacterEditor;
characterEditor.DrawPreview(previewRect, characterTexture);
DestroyImmediate(characterEditor);
}
*/
serializedObject.ApplyModifiedProperties();
}
}

Loading…
Cancel
Save