C# Класс SphereStudio.Plugins.SoundPicker

Наследование: System.Windows.Forms.UserControl, IDockPane, IFileOpener, IStyleable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnLoad ( EventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Приватные методы

Метод Описание
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

Описание методов

ForcePause() публичный Метод

Forces pause on songs.
public ForcePause ( ) : void
Результат void

OnLoad() защищенный Метод

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

OnPaint() защищенный Метод

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

Open() публичный Метод

public Open ( string fileName ) : DocumentView
fileName string
Результат Sphere.Plugins.Views.DocumentView

PlayFile() публичный Метод

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.
Результат void

PlayOrPauseMusic() публичный Метод

Toggles between the playing and pausing of the current music file.
public PlayOrPauseMusic ( ) : void
Результат void

Refresh() публичный Метод

Overrides the refresh method to re-add the music and sounds found in your project.
public Refresh ( ) : void
Результат void

Reset() публичный Метод

Resets the sound engine and clears the playlist.
public Reset ( ) : void
Результат void

SoundPicker() публичный Метод

public SoundPicker ( IPluginMain plugin ) : System
plugin IPluginMain
Результат System

StopMusic() публичный Метод

Stops any currently playing music
public StopMusic ( ) : void
Результат void

UpdateStyle() публичный Метод

public UpdateStyle ( ) : void
Результат void

WatchProject() публичный Метод

Used by filesystem watcher to attempt to automatically add new additions to the sound list.
public WatchProject ( IProject game ) : void
game IProject
Результат void