C# Class ParticleEditorPlugin.Form1

Datei anzeigen Open project: vchelaru/FlatRedBall

Public Methods

Method Description
EmitterStateChanged ( object sender, EventArgs e ) : void

Handle a property change: auto-save and display

Form1 ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ConfirmLosingChanges ( ) : bool

Make sure the user is okay with potentially losing changes. Usually called when loading or creating a new particle list before old list is unloaded.

DisplaySelectedEmitter ( ) : void

Sends the current save object to the previewer for live preview.

GetSavePath ( ) : string

Opens a dialog to get a new filename path

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SaveFile ( ) : void

Saves the current emitter list to the current filename

StartPreviewer ( ) : void

Starts a flatredball game instance to preview emitters.

duplicateToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Duplicates the selected emitter

loadToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Opens a file dialog to load an emix.

newToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Creates a new particle list.

previewSelectedToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Forces a reload of the currently previewing emitter.

saveAsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Saves the emitter list as a new file and updates the filename reference to point to the new file

saveToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Saves the emitter list over the existing file.

startToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Starts the previwer

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

EmitterStateChanged() public method

Handle a property change: auto-save and display
public EmitterStateChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Form1() public method

public Form1 ( ) : System
return System