MainForm Members

Punkman X1 API |

# MainForm Members

MainForm overview

#### Public Static Methods

Main | Editor entry point.

#### Private Static Methods

GetDataFilePath | Retrun path to data directory

#### Public Instance Constructors

MainForm Constructor | Common constructor.

#### Protected Instance Methods

Dispose | Clean up any resources being used.

#### Private Instance Fields

components |
editorMode | Mode of editor
entityGroupBox |
entityList |
fileName | Path of edited file. If the file path is not known this is empty ("") string.
gridHeight | Grid height constant
gridWidth | Grid width constant
mainMenu |
map | The edited map.
mapArea |
mapBitmap | The bitmap representation of edited map.
mapBox |
menuItem1 |
menuItem10 |
menuItem11 |
menuItem2 |
menuItem3 |
menuItem4 |
menuItem5 |
menuItem6 |
menuItem7 |
menuItem8 |
menuItem9 |
modified | Indicates whater is edited file modified.
newFileDialog |
openFileDialog |
saveFileDialog |
selectedEntity | Selected entity type
settingWalkable | Is selected walkable. Reflects tbbWalkable push state.
smallTextureList | Array of bitmap of possible map cell textures.
tbbEntityMode |
tbbSeparator1 |
tbbTextureMode |
tbbWalkable |
textureList |
textureNo | Index of selected texture.
textureView |
toolBar |
toolBarImageList |
toolPanel |
visEntities | This indicates whater map cell entity is shown.
visSpace | This indicates whater walkable map cell attribute is shown.

#### Private Instance Methods

entityList_SelectedIndexChanged | Entity list selected index changed event handler ;)
InitializeComponent | Required method for Designer support - do not modify the contents of this method with the code editor.
LoadMap | Asks for path of file to load and loads it.
LoadTextures | This method loades textures from game data directory.
MainForm_Closing | Application closing event handler
MainForm_Load | Main form load event handler.
mapBox_MouseDown | Map box mouse down event handler
menuItem10_Click | "Show walkable mark" view menu item click event handler
menuItem11_Click | "Show entities" view menu item click event handler
menuItem2_Click | "New" file menu item click event handler
menuItem4_Click | "Open" file menu item click event handler
menuItem5_Click | "Save" file menu item click event handler
menuItem6_Click | "Save as" file menu item click event handler
menuItem8_Click | "Exit" file menu item click event handler
NewMap | Asks for size of new map and creats it.
RedrawMapBitmap | Overloaded. Redraws whole bitmap of map layout. (Updates mapBitmap field.)
SaveAsMap | Asks for file path and saves the map.
SaveMap | If theres no specified file name, asks for file path and saves it.
textureView_SelectedIndexChanged | Texture view selected index changed event handler ;)
toolBar_ButtonClick | Toolbar click event handler
ValidateMap | Validate map integrity. Checks if cells where is placed a entity is walkable.

#### See Also

MainForm Class | PunkMan.Editor Namespace