C# Class DeveloperConsole.ObjectSelector

The object selector
Mostra file Open project: Dakota628/GTAVDeveloperConsole Class Usage Examples

Public Methods

Method Description
Draw ( ) : void

Calls the object selector

DrawEntBox ( Entity e, Color c ) : void

Draws a box around the specified entity

KeyPress ( object sender, KeyEventArgs e ) : void

Handles keypresses, should be called from the scripts KeyDown event

ObjectSelector ( ) : System.Collections.Generic

Creates an ObjectSelector

Tick ( ) : void

This method should be called each tick

Private Methods

Method Description
DrawEntity ( Entity e ) : void

Draw a specified entity

DrawEnts ( ) : void

Draw all the entities we can see

GetNextEntity ( ) : Entity

Gets the next entity in the object selector

HandleMouse ( ) : void

Handles mouse/rightjoystick input

SelectObject ( bool click = false, bool alt = false ) : void

Choose the currently select entity

Method Details

Draw() public method

Calls the object selector
public Draw ( ) : void
return void

DrawEntBox() public method

Draws a box around the specified entity
public DrawEntBox ( Entity e, Color c ) : void
e Entity The entity to draw around
c System.Drawing.Color The box color
return void

KeyPress() public method

Handles keypresses, should be called from the scripts KeyDown event
public KeyPress ( object sender, KeyEventArgs e ) : void
sender object The object sending the event
e System.Windows.Forms.KeyEventArgs The event arguments
return void

ObjectSelector() public method

Creates an ObjectSelector
public ObjectSelector ( ) : System.Collections.Generic
return System.Collections.Generic

Tick() public method

This method should be called each tick
public Tick ( ) : void
return void