C# Class fCraft.GUI.MapGeneratorGui

Class that provides a GUI (UserControl) for adjusting map parameters.
It would make sense for this class to be abstract, but VisualStudio's Designer does not support controls derived from abstract classes. See http://stackoverflow.com/questions/2764757/
Inheritance: System.Windows.Forms.UserControl
Datei anzeigen Open project: fragmer/fCraft Class Usage Examples

Public Methods

Method Description
OnMapDimensionChange ( int width, int length, int height ) : void

Called by parent dialog when map dimension NumericUpDown controls have changed. Used to adjust any settings that may rely on map dimensions for scaling.

SetParameters ( [ generatorParameters ) : void

Reads given generator params, and adjusts GUI to reflect them.

Protected Methods

Method Description
MapGeneratorGui ( ) : System
OnParentChanged ( EventArgs e ) : void

Private Methods

Method Description
GetParameters ( ) : MapGeneratorParameters
Parent_SizeChanged ( object sender, EventArgs e ) : void

Method Details

MapGeneratorGui() protected method

protected MapGeneratorGui ( ) : System
return System

OnMapDimensionChange() public method

Called by parent dialog when map dimension NumericUpDown controls have changed. Used to adjust any settings that may rely on map dimensions for scaling.
public OnMapDimensionChange ( int width, int length, int height ) : void
width int Map width (horizontal, x dimension), in blocks.
length int Map length (horizontal, y dimension), in blocks.
height int Map height (vertical, z dimension), in blocks.
return void

OnParentChanged() protected method

protected OnParentChanged ( EventArgs e ) : void
e System.EventArgs
return void

SetParameters() public method

Reads given generator params, and adjusts GUI to reflect them.
public SetParameters ( [ generatorParameters ) : void
generatorParameters [ Given generation parameters.
return void