C# Class WWActorEdit.MainForm

Inheritance: System.Windows.Forms.Form
显示文件 Open project: pho/WindViewer

Public Properties

Property Type Description
Rooms List
Stage ZeldaArc

Public Methods

Method Description
Application_Idle ( object sender, EventArgs e ) : void
MainForm ( ) : System
glControl_KeyDown ( object sender, KeyEventArgs e ) : void
glControl_KeyUp ( object sender, KeyEventArgs e ) : void
glControl_Load ( object sender, EventArgs e ) : void
glControl_MouseDown ( object sender, MouseEventArgs e ) : void
glControl_MouseMove ( object sender, MouseEventArgs e ) : void
glControl_MouseUp ( object sender, MouseEventArgs e ) : void
glControl_Paint ( object sender, PaintEventArgs e ) : void
glControl_Resize ( object sender, EventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Verwendete Ressourcen bereinigen.

Private Methods

Method Description
GetGlobalRotation ( ZeldaArc A ) : void
GetGlobalTranslation ( ZeldaArc A ) : void

This is a terribly placed/named function, but I'm going to leave it for now until I fully understand it. My best guess is that the "Stage" file contains the translation/rotation of each individual room. These can be loaded in any order in WindViewer, so my guess is that they're just set every frame instead of when a Stage/Room is loaded. Weird.

GetRoomNumber ( ZeldaArc NewArc ) : void

In a 'Stage', there is data that is indexed by Room number. The actual rooms don't store this data internally, it is only by file name. So we're going to strip apart the filename to get the room number.

InitializeComponent ( ) : void

Erforderliche Methode für die Designerunterstützung. Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.

LoadRARC ( string Filename, bool IsRoom = true, bool IgnoreModels = false ) : void
RenderFrame ( ) : void

Instead of faking a Paint event inside the Application.Idle we'll just put the drawing into its own function and call it in both Application.Idle and in the Paint event of the GL control.

UnloadAllRARCs ( ) : void
aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
environmentLightingEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void
exitEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
floatConverterToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openRoomRARCToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openStageRARCToolStripMenuItem_Click ( object sender, EventArgs e ) : void
resetToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveChangesToolStripMenuItem_Click ( object sender, EventArgs e ) : void
showReadmeToolStripMenuItem_Click ( object sender, EventArgs e ) : void
spawnEditorToolStripMenuItem_Click ( object sender, EventArgs e ) : void
treeView1_AfterSelect ( object sender, TreeViewEventArgs e ) : void
wikiToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Method Details

Application_Idle() public method

public Application_Idle ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Dispose() protected method

Verwendete Ressourcen bereinigen.
protected Dispose ( bool disposing ) : void
disposing bool True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
return void

MainForm() public method

public MainForm ( ) : System
return System

glControl_KeyDown() public method

public glControl_KeyDown ( object sender, KeyEventArgs e ) : void
sender object
e System.Windows.Forms.KeyEventArgs
return void

glControl_KeyUp() public method

public glControl_KeyUp ( object sender, KeyEventArgs e ) : void
sender object
e System.Windows.Forms.KeyEventArgs
return void

glControl_Load() public method

public glControl_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

glControl_MouseDown() public method

public glControl_MouseDown ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

glControl_MouseMove() public method

public glControl_MouseMove ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

glControl_MouseUp() public method

public glControl_MouseUp ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void

glControl_Paint() public method

public glControl_Paint ( object sender, PaintEventArgs e ) : void
sender object
e PaintEventArgs
return void

glControl_Resize() public method

public glControl_Resize ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

Rooms public_oe property

public List Rooms
return List

Stage public_oe property

public ZeldaArc,WWActorEdit Stage
return ZeldaArc