Punkman X1 API

MainForm Methods

The methods of the MainForm class are listed below. For a complete list of MainForm class members, see the MainForm Members topic.

Public Static Methods

Main Editor entry point.

Private Static Methods

GetDataFilePath Retrun path to data directory

Protected Instance Methods

Dispose Clean up any resources being used.

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.
RedrawMapBitmapOverloaded. 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