Browse Source

Merge branch 'master' into UnityReorderable

master
desktop-maesty/steve 6 years ago
parent
commit
d861342414
  1. 4
      Assets/Fungus/Scripts/Editor/BlockEditor.cs
  2. 6
      Assets/Fungus/Scripts/Editor/VariableEditor.cs

4
Assets/Fungus/Scripts/Editor/BlockEditor.cs

@ -306,7 +306,7 @@ namespace Fungus.EditorUtils
} }
if (commandSelectedByTextInput != null && if (commandSelectedByTextInput != null &&
Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter) (Event.current.keyCode == KeyCode.Return || Event.current.keyCode == KeyCode.KeypadEnter))
{ {
AddCommandCallback(commandSelectedByTextInput); AddCommandCallback(commandSelectedByTextInput);
commandSelectedByTextInput = null; commandSelectedByTextInput = null;
@ -1299,4 +1299,4 @@ namespace Fungus.EditorUtils
Repaint(); Repaint();
} }
} }
} }

6
Assets/Fungus/Scripts/Editor/VariableEditor.cs

@ -211,13 +211,15 @@ namespace Fungus.EditorUtils
return; return;
} }
var origLabel = new GUIContent(label);
if (EditorGUI.GetPropertyHeight(valueProp, label) > EditorGUIUtility.singleLineHeight) if (EditorGUI.GetPropertyHeight(valueProp, label) > EditorGUIUtility.singleLineHeight)
{ {
DrawMultiLineProperty(position, label, referenceProp, valueProp, flowchart); DrawMultiLineProperty(position, origLabel, referenceProp, valueProp, flowchart);
} }
else else
{ {
DrawSingleLineProperty(position, label, referenceProp, valueProp, flowchart); DrawSingleLineProperty(position, origLabel, referenceProp, valueProp, flowchart);
} }
EditorGUI.EndProperty(); EditorGUI.EndProperty();

Loading…
Cancel
Save