C# Class SphereStudio.Plugins.SoundPicker

Inheritance: System.Windows.Forms.UserControl, IDockPane, IFileOpener, IStyleable
Afficher le fichier Open project: Radnen/spherestudio Class Usage Examples

Méthodes publiques

Méthode Description
ForcePause ( ) : void

Forces pause on songs.

Open ( string fileName ) : DocumentView
PlayFile ( string path ) : void

Plays the song or sound located at the path's location.

PlayOrPauseMusic ( ) : void

Toggles between the playing and pausing of the current music file.

Refresh ( ) : void

Overrides the refresh method to re-add the music and sounds found in your project.

Reset ( ) : void

Resets the sound engine and clears the playlist.

SoundPicker ( IPluginMain plugin ) : System
StopMusic ( ) : void

Stops any currently playing music

UpdateStyle ( ) : void
WatchProject ( IProject game ) : void

Used by filesystem watcher to attempt to automatically add new additions to the sound list.

Méthodes protégées

Méthode Description
OnLoad ( EventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Private Methods

Méthode Description
UpdateTrackList ( ) : void

Fills out the list with the music and sound files in your game path.

fileWatcher_Changed ( object sender, IEnumerable eAll ) : void
pauseTool_Click ( object sender, EventArgs e ) : void
playTimer_Tick ( object sender, EventArgs e ) : void
stopTool_Click ( object sender, EventArgs e ) : void
trackList_Click ( object sender, EventArgs e ) : void
trackList_DoubleClick ( object sender, EventArgs e ) : void
trackNameLabel_MouseClick ( object sender, MouseEventArgs e ) : void
trackNameLabel_Paint ( object sender, PaintEventArgs e ) : void

Method Details

ForcePause() public méthode

Forces pause on songs.
public ForcePause ( ) : void
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

Open() public méthode

public Open ( string fileName ) : DocumentView
fileName string
Résultat Sphere.Plugins.Views.DocumentView

PlayFile() public méthode

Plays the song or sound located at the path's location.
public PlayFile ( string path ) : void
path string The full path of the file to play.
Résultat void

PlayOrPauseMusic() public méthode

Toggles between the playing and pausing of the current music file.
public PlayOrPauseMusic ( ) : void
Résultat void

Refresh() public méthode

Overrides the refresh method to re-add the music and sounds found in your project.
public Refresh ( ) : void
Résultat void

Reset() public méthode

Resets the sound engine and clears the playlist.
public Reset ( ) : void
Résultat void

SoundPicker() public méthode

public SoundPicker ( IPluginMain plugin ) : System
plugin IPluginMain
Résultat System

StopMusic() public méthode

Stops any currently playing music
public StopMusic ( ) : void
Résultat void

UpdateStyle() public méthode

public UpdateStyle ( ) : void
Résultat void

WatchProject() public méthode

Used by filesystem watcher to attempt to automatically add new additions to the sound list.
public WatchProject ( IProject game ) : void
game IProject
Résultat void