|
|
@ -42,7 +42,7 @@ namespace Fungus |
|
|
|
var executeHandler = (ExecuteHandler)target; |
|
|
|
var executeHandler = (ExecuteHandler)target; |
|
|
|
EditorGUILayout.BeginHorizontal(); |
|
|
|
EditorGUILayout.BeginHorizontal(); |
|
|
|
EditorGUILayout.PrefixLabel(new GUIContent("On Event")); |
|
|
|
EditorGUILayout.PrefixLabel(new GUIContent("On Event")); |
|
|
|
executeHandler.executeMethods = (ExecuteHandler.ExecuteMethod)EditorGUILayout.EnumMaskField(executeHandler.executeMethods, |
|
|
|
executeHandler.ExecuteMethods = (ExecuteHandler.ExecuteMethod)EditorGUILayout.EnumMaskField(executeHandler.ExecuteMethods, |
|
|
|
EditorStyles.popup, |
|
|
|
EditorStyles.popup, |
|
|
|
GUILayout.ExpandWidth(false)); |
|
|
|
GUILayout.ExpandWidth(false)); |
|
|
|
EditorGUILayout.EndHorizontal(); |
|
|
|
EditorGUILayout.EndHorizontal(); |
|
|
@ -75,36 +75,36 @@ namespace Fungus |
|
|
|
private void DrawOptionsForAfterPeriodOfTime(ExecuteHandler executeHandler) |
|
|
|
private void DrawOptionsForAfterPeriodOfTime(ExecuteHandler executeHandler) |
|
|
|
{ |
|
|
|
{ |
|
|
|
EditorGUILayout.Space(); |
|
|
|
EditorGUILayout.Space(); |
|
|
|
executeHandler.executeAfterTime = EditorGUILayout.FloatField(m_GUIExecuteAfterTimeGuiContent, |
|
|
|
executeHandler.ExecuteAfterTime = EditorGUILayout.FloatField(m_GUIExecuteAfterTimeGuiContent, |
|
|
|
executeHandler.executeAfterTime); |
|
|
|
executeHandler.ExecuteAfterTime); |
|
|
|
if (executeHandler.executeAfterTime < 0) |
|
|
|
if (executeHandler.ExecuteAfterTime < 0) |
|
|
|
executeHandler.executeAfterTime = 0; |
|
|
|
executeHandler.ExecuteAfterTime = 0; |
|
|
|
executeHandler.repeatExecuteTime = EditorGUILayout.Toggle(m_GUIRepeatExecuteTimeGuiContent, |
|
|
|
executeHandler.RepeatExecuteTime = EditorGUILayout.Toggle(m_GUIRepeatExecuteTimeGuiContent, |
|
|
|
executeHandler.repeatExecuteTime); |
|
|
|
executeHandler.RepeatExecuteTime); |
|
|
|
if (executeHandler.repeatExecuteTime) |
|
|
|
if (executeHandler.RepeatExecuteTime) |
|
|
|
{ |
|
|
|
{ |
|
|
|
executeHandler.repeatEveryTime = EditorGUILayout.FloatField(m_GUIRepeatEveryTimeGuiContent, |
|
|
|
executeHandler.RepeatEveryTime = EditorGUILayout.FloatField(m_GUIRepeatEveryTimeGuiContent, |
|
|
|
executeHandler.repeatEveryTime); |
|
|
|
executeHandler.RepeatEveryTime); |
|
|
|
if (executeHandler.repeatEveryTime < 0) |
|
|
|
if (executeHandler.RepeatEveryTime < 0) |
|
|
|
executeHandler.repeatEveryTime = 0; |
|
|
|
executeHandler.RepeatEveryTime = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void DrawOptionsForOnUpdate(ExecuteHandler executeHandler) |
|
|
|
private void DrawOptionsForOnUpdate(ExecuteHandler executeHandler) |
|
|
|
{ |
|
|
|
{ |
|
|
|
EditorGUILayout.Space(); |
|
|
|
EditorGUILayout.Space(); |
|
|
|
executeHandler.executeAfterFrames = EditorGUILayout.IntField(m_GUIExecuteAfterFramesGuiContent, |
|
|
|
executeHandler.ExecuteAfterFrames = EditorGUILayout.IntField(m_GUIExecuteAfterFramesGuiContent, |
|
|
|
executeHandler.executeAfterFrames); |
|
|
|
executeHandler.ExecuteAfterFrames); |
|
|
|
if (executeHandler.executeAfterFrames < 1) |
|
|
|
if (executeHandler.ExecuteAfterFrames < 1) |
|
|
|
executeHandler.executeAfterFrames = 1; |
|
|
|
executeHandler.ExecuteAfterFrames = 1; |
|
|
|
executeHandler.repeatExecuteFrame = EditorGUILayout.Toggle(m_GUIRepeatExecuteFrameGuiContent, |
|
|
|
executeHandler.RepeatExecuteFrame = EditorGUILayout.Toggle(m_GUIRepeatExecuteFrameGuiContent, |
|
|
|
executeHandler.repeatExecuteFrame); |
|
|
|
executeHandler.RepeatExecuteFrame); |
|
|
|
if (executeHandler.repeatExecuteFrame) |
|
|
|
if (executeHandler.RepeatExecuteFrame) |
|
|
|
{ |
|
|
|
{ |
|
|
|
executeHandler.repeatEveryFrame = EditorGUILayout.IntField(m_GUIRepeatEveryTimeGuiContent, |
|
|
|
executeHandler.RepeatEveryFrame = EditorGUILayout.IntField(m_GUIRepeatEveryTimeGuiContent, |
|
|
|
executeHandler.repeatEveryFrame); |
|
|
|
executeHandler.RepeatEveryFrame); |
|
|
|
if (executeHandler.repeatEveryFrame < 1) |
|
|
|
if (executeHandler.RepeatEveryFrame < 1) |
|
|
|
executeHandler.repeatEveryFrame = 1; |
|
|
|
executeHandler.RepeatEveryFrame = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|