C# Class SoundtrackEditor.GuiManager

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: pizzaoverhead/SoundtrackEditor

Public Properties

Property Type Description
PreviewSpeaker UnityEngine.AudioSource

Protected Properties

Property Type Description
audioPreviewWindowPos UnityEngine.Rect
editorWindowPos UnityEngine.Rect
mainWindowPos UnityEngine.Rect
playbackWindowPos UnityEngine.Rect
playlistWindowPos UnityEngine.Rect

Public Methods

Method Description
AudioDBFileGui ( AudioLoader audioFile ) : void
AudioPreviewGui ( AudioClip clip ) : void
AudioPreviewGui ( int windowID ) : void

Draws a tool to preview available AudioClips.

EditorGui ( int windowId ) : void
OnAppLauncherDestroyed ( ) : void

Addon button (toolbar on the right) destroyed.

OnAppLauncherReady ( ) : void

Addon button (toolbar on the right) ready(?).

OnGUI ( ) : void

GUI draw event. Called (at least once) each frame.

OnHideUI ( ) : void

Toggled on F2.

OnShowUI ( ) : void

Toggled on F2.

PickerGuiCollapsed ( string name, bool sectionExpanded ) : bool
PlaylistGui ( int windowID ) : void

Draws a playlist viewer and editor GUI.

PreviewClipButton ( AudioClip clip ) : void
Start ( ) : void

First code called at the time specified by the class' attribute. Instant (during KSP's initial load) and only once per game session.

Private Methods

Method Description
CameraModePicker ( ) : void
CloseGuiAppLauncher ( ) : void
FadeEditor ( ) : void
InAtmospherePicker ( ) : void
MainGui ( int windowID ) : void
OpenGuiAppLauncher ( ) : void
PlayAfterPicker ( ) : void
PlayBeforePicker ( ) : void
PlayNextPicker ( ) : void
PlaybackGui ( int windowID ) : void

Draws a mini audio player with playback controls and track listing.

PlaylistPicker ( ) : bool
ScenePicker ( ) : void
SetUpDbPlayer ( ) : void

Creates an AudioSource for use in previewing sound effects.

SituationPicker ( ) : void
TimeOfDayPicker ( ) : void
TrackPicker ( ) : void
TrackPickerGui ( string trackName, AudioClip clip ) : void

Method Details

AudioDBFileGui() public method

public AudioDBFileGui ( AudioLoader audioFile ) : void
audioFile AudioLoader
return void

AudioPreviewGui() public method

public AudioPreviewGui ( AudioClip clip ) : void
clip UnityEngine.AudioClip
return void

AudioPreviewGui() public method

Draws a tool to preview available AudioClips.
public AudioPreviewGui ( int windowID ) : void
windowID int
return void

EditorGui() public method

public EditorGui ( int windowId ) : void
windowId int
return void

OnAppLauncherDestroyed() public method

Addon button (toolbar on the right) destroyed.
public OnAppLauncherDestroyed ( ) : void
return void

OnAppLauncherReady() public method

Addon button (toolbar on the right) ready(?).
public OnAppLauncherReady ( ) : void
return void

OnGUI() public method

GUI draw event. Called (at least once) each frame.
public OnGUI ( ) : void
return void

OnHideUI() public static method

Toggled on F2.
public static OnHideUI ( ) : void
return void

OnShowUI() public static method

Toggled on F2.
public static OnShowUI ( ) : void
return void

PickerGuiCollapsed() public method

public PickerGuiCollapsed ( string name, bool sectionExpanded ) : bool
name string
sectionExpanded bool
return bool

PlaylistGui() public method

Draws a playlist viewer and editor GUI.
public PlaylistGui ( int windowID ) : void
windowID int
return void

PreviewClipButton() public method

public PreviewClipButton ( AudioClip clip ) : void
clip UnityEngine.AudioClip
return void

Start() public method

First code called at the time specified by the class' attribute. Instant (during KSP's initial load) and only once per game session.
public Start ( ) : void
return void

Property Details

PreviewSpeaker public_oe property

public AudioSource,UnityEngine PreviewSpeaker
return UnityEngine.AudioSource

audioPreviewWindowPos protected_oe property

protected Rect,UnityEngine audioPreviewWindowPos
return UnityEngine.Rect

editorWindowPos protected_oe property

protected Rect,UnityEngine editorWindowPos
return UnityEngine.Rect

mainWindowPos protected_oe property

protected Rect,UnityEngine mainWindowPos
return UnityEngine.Rect

playbackWindowPos protected_oe property

protected Rect,UnityEngine playbackWindowPos
return UnityEngine.Rect

playlistWindowPos protected_oe property

protected Rect,UnityEngine playlistWindowPos
return UnityEngine.Rect