C# Class entity.MapForms.MapForm

The map form.
Inheritance: System.Windows.Forms.Form
Show file Open project: troymac1ure/Entity Class Usage Examples

Public Properties

Property Type Description
RTHInfo HaloMap.RealTimeHalo.RTHData
comboBox1 System.Windows.Forms.ComboBox
formFuncs FormFunctions
metaEditor1 MetaEditor.MetaEditor
metaView FormFunctions.MetaView
pictureBox1 System.Windows.Forms.PictureBox
sSwap entity.MetaFuncs.MEStringsSelector
splitContainer1 System.Windows.Forms.SplitContainer

Public Methods

Method Description
DisplayMapBitmap ( ) : void

The display map bitmap.

FindFocusedControl ( Control control ) : Control
GetMapBitmapMeta ( Map map ) : Meta

The get map bitmap meta.

LoadMeta ( int tag ) : void

The load meta.

LoadSkin ( ) : void

Load custom user skin

MapForm ( Map map ) : System

Initializes a new instance of the MapForm class.

RefreshTreeView ( ) : void

The refresh tree view.

SetProgressBar ( int value ) : void

The set progress bar.

UpdatePluginsMenu ( ) : void

Gets relevant plugins from plugin manager and loads them into the menu

floatForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Handles the close button on the Floating Forms

getEditorMode ( ) : EditorModes

Returns the currently viewed editor panel

references_ColumnClick ( object sender, System.Windows.Forms.ColumnClickEventArgs e ) : void

Occurs when the user clicks on a column header. Used for sorting.

scanandpassmetasfordraganddrop ( ) : ArrayList

The scanandpassmetasfordraganddrop.

selectTag ( int tagNum ) : void

Selects the current tag in the Treeview Listing (adds to quick list if not already ppresent) and loads the meta

setEditorMode ( EditorModes editMode ) : void

Sets the currently viewed editor panel

setMapName ( string newName ) : void

The set map name.

sortReferences ( int column, bool reverse ) : void

Sorts the references by column in ascending/descending order

wME_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Method Description
AddToHistory ( int tag ) : void

The add to history.

AskForTagName ( ) : void

The ask for tag name.

DisplaySplit ( MetaSplitter reflex, TreeNode tn ) : void

Recursively adds nodes to Chunk Tree Listing

FloodfillSwapItem_Click ( object sender, EventArgs e ) : void

is only available for Idents, so we don't need to check

GetChildNodeNames ( int indent, StringBuilder &sb, TreeNode tn ) : void

The get child node names.

InitializeComponent ( ) : void

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

JumpToTagItem_Click ( object sender, EventArgs e ) : void

Jumps to the hilighted tag

LoadStringsBackgroundWorker ( Map map ) : void

load strings in another thread with this method, as loading strings can be sloow

MapForm_KeyPress ( object sender, KeyPressEventArgs e ) : void
MapForm_TextChanged ( object sender, EventArgs e ) : void

The map form_ text changed.

ShowIdent_Click ( object sender, EventArgs e ) : void

Show Idents click

ShowReflex_Click ( object sender, EventArgs e ) : void

Show Reflexives click

ShowString_Click ( object sender, EventArgs e ) : void

The show string_ click.

StringEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void
SwapItem_Click ( object sender, EventArgs e ) : void

The swap item_ click.

addToQuickList ( string tagType, string tagName ) : void

The add to quick list.

analyzeMapButton_Click_1 ( object sender, EventArgs e ) : void

The analyze map button_ click_1.

bitmapEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The bitmap editor tool strip menu item_ click.

bspcollisionViewerToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The bspcollision viewer tool strip menu item_ click.

btnUndock_Click ( object sender, EventArgs e ) : void

Undocks the current editor mode from the window

buildButton_Click_1 ( object sender, EventArgs e ) : void

The build button_ click_1.

buttonInternalize_Click ( object sender, EventArgs e ) : void

The button internalize_ click.

checkIFPsButton_Click ( object sender, EventArgs e ) : void

The check if ps button_ click.

chunkclone_Click ( object sender, EventArgs e ) : void

The chunkclone_ click.

clearTagQuickListToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The clear tag quick list tool strip menu item_ click.

closeOpenCustomPluginOptionsbutton4_Click ( object sender, EventArgs e ) : void

The close open custom plugin optionsbutton 4_ click.

collisonViewerToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The collison viewer tool strip menu item_ click.

convertCEToH2ToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The convert ce to h 2 tool strip menu item_ click.

convertToBumpMapToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The convert to bump map tool strip menu item_ click.

customPLuginEdit_Click ( object sender, EventArgs e ) : void

The custom p lugin edit_ click.

customPLugin_New_Click ( object sender, EventArgs e ) : void

The custom p lugin_ new_ click.

customPLugins_comboBox1_SelectedIndexChanged ( object sender, EventArgs e ) : void

The custom p lugins_combo box 1_ selected index changed.

duplicateRecursivelyToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The duplicate recursively tool strip menu item_ click.

duplicateToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The duplicate tool strip menu item_ click.

editHeaderButton_Click ( object sender, EventArgs e ) : void

Opens a form displaying header information and allows it to be edited

expandMeshX3ToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The expand mesh x 3 tool strip menu item_ click.

exportCollisonToOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The export collison to obj tool strip menu item_ click.

exportMeshToOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The export mesh to obj tool strip menu item_ click.

exportMeshToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The export mesh tool strip menu item_ click.

exportOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The export obj tool strip menu item_ click.

exportScriptsToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The export scripts tool strip menu item_ click.

extractMeshToOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The extract mesh to obj tool strip menu item_ click.

extractPRTMOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The extract prtmobj tool strip menu item_ click.

fixSystemLinkToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The fix system link tool strip menu item_ click.

folderHierarchyToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The folder hierarchy tool strip menu item_ click.

hexEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The hex editor tool strip menu item_ click.

infoHierarchyToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The info hierarchy tool strip menu item_ click.

injectBSPVisualMeshToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The inject bsp visual mesh tool strip menu item_ click.

injectBitmapToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The inject bitmap tool strip menu item_ click.

injectCollisionMeshOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The inject collision mesh obj tool strip menu item_ click.

injectMeshFromOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The inject mesh from obj tool strip menu item_ click.

injectOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The inject obj tool strip menu item_ click.

lightmapViewerToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The lightmap viewer tool strip menu item_ click.

loadBSP ( int BSPId ) : void

The load bsp.

loadMetaButton_Click_1 ( object sender, EventArgs e ) : void

The load meta button_ click_1.

makeBSPStickyToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The make bsp sticky tool strip menu item_ click.

metaEditorNewToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The meta editor new tool strip menu item_ click.

metaEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The meta editor tool strip menu item_ click.

metaListToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The meta list tool strip menu item_ click.

newAddButton_Click ( object sender, EventArgs e ) : void

The new add button_ click.

newForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

The new form_ form closing.

outputListToFileToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The output list to file tool strip menu item_ click.

overwriteMetaToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The overwrite meta tool strip menu item_ click.

parsedCheckBox_CheckedChanged_1 ( object sender, EventArgs e ) : void

The parsed check box_ checked changed_1.

pictureBox1_Click ( object sender, EventArgs e ) : void
pluginToolStripMenuItemdescription_Click ( object sender, EventArgs e ) : void

The plugin tool strip menu itemdescription_ click.

portalViewerToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The portal viewer tool strip menu item_ click.

rebuilderToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The rebuilder tool strip menu item_ click.

referenceToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The reference tool strip menu item_ click.

references_MouseDown ( object sender, MouseEventArgs e ) : void

The references_ mouse down.

removeFromQuickListToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The remove from quick list tool strip menu item_ click.

renameMapButton_Click ( object sender, EventArgs e ) : void

The rename map button_ click.

renameToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Renames a TAG without rebuilding the map. Allows names to be expanded by however many characters are available in the padding.

saveBitmapToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The save bitmap tool strip menu item_ click.

saveMetaButton_Click ( object sender, EventArgs e ) : void

The save meta button_ click.

searchButton_Click ( object sender, EventArgs e ) : void

The search button_ click.

searchPanel ( Control dataControl, string searchValue, FindType &finds ) : void

The search panel.

searchTextBox_Click ( object sender, EventArgs e ) : void

The search text box_ click.

searchTextBox_Enter ( object sender, EventArgs e ) : void

The search text box_ enter.

searchTextBox_KeyPress ( object sender, KeyPressEventArgs e ) : void

The search text box_ key press.

setActiveMatgToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Sets the selected MATG tag to the active one

setActiveScnrToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Sets the selected SCNR tag to the active one

setNodePath ( TreeView tv, string fullPath ) : void

The set node path.

signMapButton_Click_1 ( object sender, EventArgs e ) : void

The sign map button_ click_1.

tagTypeToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The tag type tool strip menu item_ click.

timer1_Tick ( object sender, EventArgs e ) : void
toOBJToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The to obj tool strip menu item_ click.

toXToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The to x tool strip menu item_ click.

toolStripBSPEditor_Click ( object sender, EventArgs e ) : void

The tool strip bsp editor_ click.

toolsWindowToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The tools window tool strip menu item_ click.

treeView1_AfterSelect ( object sender, TreeViewEventArgs e ) : void

The tree view 1_ after select.

treeView1_BeforeExpand ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void

The tree view 1_ before expand.

treeView1_Click ( object sender, EventArgs e ) : void

Makes right clicks select node under cursofr as well

treeView1_DragDrop ( object sender, DragEventArgs e ) : void

The tree view 1_ drag drop.

treeView1_DragEnter ( object sender, DragEventArgs e ) : void

The tree view 1_ drag enter.

treeView1_ItemDrag ( object sender, ItemDragEventArgs e ) : void

The tree view 1_ item drag.

treeView1_KeyPress ( object sender, KeyPressEventArgs e ) : void

The tree view 1_ key press.

treeView1_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

The tree view 1_ node mouse double click.

treeviewcontext_Opening ( object sender, CancelEventArgs e ) : void

The treeviewcontext_ opening.

tsItem_Click ( object sender, EventArgs e ) : void

The ts item_ click.

viewBSPToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The view bsp tool strip menu item_ click.

viewModelToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The view model tool strip menu item_ click.

viewPRTMToolStripMenuItem_Click ( object sender, EventArgs e ) : void

The view prtm tool strip menu item_ click.

Method Details

DisplayMapBitmap() public method

The display map bitmap.
public DisplayMapBitmap ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

FindFocusedControl() public static method

public static FindFocusedControl ( Control control ) : Control
control System.Windows.Forms.Control
return System.Windows.Forms.Control

GetMapBitmapMeta() public static method

The get map bitmap meta.
public static GetMapBitmapMeta ( Map map ) : Meta
map HaloMap.Map.Map The map.
return HaloMap.Meta.Meta

LoadMeta() public method

The load meta.
public LoadMeta ( int tag ) : void
tag int The tag.
return void

LoadSkin() public method

Load custom user skin
public LoadSkin ( ) : void
return void

MapForm() public method

Initializes a new instance of the MapForm class.
public MapForm ( Map map ) : System
map HaloMap.Map.Map The map.
return System

ProcessCmdKey() protected method

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

RefreshTreeView() public method

The refresh tree view.
public RefreshTreeView ( ) : void
return void

SetProgressBar() public method

The set progress bar.
public SetProgressBar ( int value ) : void
value int The value.
return void

UpdatePluginsMenu() public method

Gets relevant plugins from plugin manager and loads them into the menu
public UpdatePluginsMenu ( ) : void
return void

floatForm_FormClosing() public method

Handles the close button on the Floating Forms
public floatForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object The control to be docked
e System.Windows.Forms.FormClosingEventArgs unused
return void

getEditorMode() public method

Returns the currently viewed editor panel
public getEditorMode ( ) : EditorModes
return EditorModes

references_ColumnClick() public method

Occurs when the user clicks on a column header. Used for sorting.
public references_ColumnClick ( object sender, System.Windows.Forms.ColumnClickEventArgs e ) : void
sender object
e System.Windows.Forms.ColumnClickEventArgs
return void

scanandpassmetasfordraganddrop() public method

The scanandpassmetasfordraganddrop.
public scanandpassmetasfordraganddrop ( ) : ArrayList
return System.Collections.ArrayList

selectTag() public method

Selects the current tag in the Treeview Listing (adds to quick list if not already ppresent) and loads the meta
public selectTag ( int tagNum ) : void
tagNum int The tag number to be selected and loaded
return void

setEditorMode() public method

Sets the currently viewed editor panel
public setEditorMode ( EditorModes editMode ) : void
editMode EditorModes The edit panel to view
return void

setMapName() public method

The set map name.
public setMapName ( string newName ) : void
newName string The new name.
return void

sortReferences() public method

Sorts the references by column in ascending/descending order
public sortReferences ( int column, bool reverse ) : void
column int The column to sort by, -1 for previous sort method
reverse bool FALSE to sort ascending, TRUE to sort descending. This value is ignored if column is set to -1
return void

wME_FormClosed() public method

public wME_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void
sender object
e System.Windows.Forms.FormClosedEventArgs
return void

Property Details

RTHInfo public property

The rth info.
public RTHData,HaloMap.RealTimeHalo RTHInfo
return HaloMap.RealTimeHalo.RTHData

comboBox1 public property

public ComboBox,System.Windows.Forms comboBox1
return System.Windows.Forms.ComboBox

formFuncs public property

The form funcs.
public FormFunctions formFuncs
return FormFunctions

metaEditor1 public property

public MetaEditor.MetaEditor metaEditor1
return MetaEditor.MetaEditor

metaView public property

The meta view.
public FormFunctions.MetaView metaView
return FormFunctions.MetaView

pictureBox1 public property

public PictureBox,System.Windows.Forms pictureBox1
return System.Windows.Forms.PictureBox

sSwap public property

The s swap.
public MEStringsSelector,entity.MetaFuncs sSwap
return entity.MetaFuncs.MEStringsSelector

splitContainer1 public property

public SplitContainer,System.Windows.Forms splitContainer1
return System.Windows.Forms.SplitContainer