C# Class DeveloperConsole.ObjectSelector

The object selector
Afficher le fichier Open project: Dakota628/GTAVDeveloperConsole Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Calls the object selector
public Draw ( ) : void
Résultat void

DrawEntBox() public méthode

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
Résultat void

KeyPress() public méthode

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
Résultat void

ObjectSelector() public méthode

Creates an ObjectSelector
public ObjectSelector ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Tick() public méthode

This method should be called each tick
public Tick ( ) : void
Résultat void