C# Класс 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/
Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
MapGeneratorGui ( ) : System
OnParentChanged ( EventArgs e ) : void

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

Метод Описание
GetParameters ( ) : MapGeneratorParameters
Parent_SizeChanged ( object sender, EventArgs e ) : void

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

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

protected MapGeneratorGui ( ) : System
Результат System

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

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

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

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

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

Reads given generator params, and adjusts GUI to reflect them.
public SetParameters ( [ generatorParameters ) : void
generatorParameters [ Given generation parameters.
Результат void