private static void showDebugPlayButton(dfTweenPlayableBase tween) { if (!Application.isPlaying) { return; } using (dfEditorUtil.BeginGroup("Debug")) EditorGUILayout.BeginHorizontal(); { GUILayout.Space(dfEditorUtil.LabelWidth + 5); if (GUILayout.Button("Play", "minibutton")) { tween.Play(); } if (GUILayout.Button("Stop", "minibutton")) { tween.Stop(); } if (GUILayout.Button("Reset", "minibutton")) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
private static void showDebugButtons(dfTweenPlayableBase tween) { if (!Application.isPlaying) { return; } using (dfEditorUtil.BeginGroup("Debug")) EditorGUILayout.BeginHorizontal(); { GUILayout.Space(dfEditorUtil.LabelWidth + 5); if (GUILayout.Button("Play", "minibutton")) { tween.Play(); } if (tween.IsPlaying && tween is dfTweenComponentBase) { var target = tween as dfTweenComponentBase; if (GUILayout.Button(target.IsPaused ? "Resume" : "Pause", "minibutton")) { target.IsPaused = !target.IsPaused; } } if (GUILayout.Button("Stop", "minibutton")) { tween.Stop(); } if (GUILayout.Button("Reset", "minibutton")) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
private static void showDebugPlayButton( dfTweenPlayableBase tween ) { if( !Application.isPlaying ) return; GUILayout.Label( "Debug", "HeaderLabel" ); EditorGUILayout.BeginHorizontal(); { GUILayout.Space( dfEditorUtil.LabelWidth + 5 ); if( GUILayout.Button( "Play", "minibutton" ) ) { tween.Play(); } if( GUILayout.Button( "Stop", "minibutton" ) ) { tween.Stop(); } if( GUILayout.Button( "Reset", "minibutton" ) ) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }
private static void showDebugButtons( dfTweenPlayableBase tween ) { if( !Application.isPlaying ) return; using( dfEditorUtil.BeginGroup( "Debug" ) ) EditorGUILayout.BeginHorizontal(); { GUILayout.Space( dfEditorUtil.LabelWidth + 5 ); if( GUILayout.Button( "Play", "minibutton" ) ) { tween.Play(); } if( tween.IsPlaying && tween is dfTweenComponentBase ) { var target = tween as dfTweenComponentBase; if( GUILayout.Button( target.IsPaused ? "Resume" : "Pause", "minibutton" ) ) { target.IsPaused = !target.IsPaused; } } if( GUILayout.Button( "Stop", "minibutton" ) ) { tween.Stop(); } if( GUILayout.Button( "Reset", "minibutton" ) ) { tween.Reset(); } } EditorGUILayout.EndHorizontal(); EditorGUILayout.Separator(); }