GuiGame

More...

Classes:

class

Similar to GuiShapeNameHud, afxGuiTextHud displays ShapeBase object names but also allows Gui Text effects.

class

Basic HUD clock. Displays the current simulation time offset from some base.

class

Basic cross hair hud. Reacts to state of control object. Also displays health bar for named objects under the cross hair.

class

A base class for cross platform menu controls that are gamepad friendly.

class

A GuiControlProfile with additional fields specific to GuiGameListMenuCtrl.

class

A control for showing pages of options that are gamepad friendly.

class
class

A basic health bar. Shows the damage value of the current PlayerObjectType control object.

class

Shows the health or energy value of the current PlayerObjectType control object.

class

Displays name and damage of ShapeBase objects in its bounds. Must be a child of a GuiTSCtrl and a server connection must be present.

Functions

void

Prevents mouse movement from being processed.

Detailed Description

Functions

snapToggle()

Prevents mouse movement from being processed.

In the source, whenever a mouse move event occurs GameTSCtrl::onMouseMove() is called. Whenever snapToggle() is called, it will flag a variable that can prevent this from happening: gSnapLine. This variable is not exposed to script, so you need to call this function to trigger it.

// Snapping is off by default, so we will toggle
// it on first:
PlayGui.snapToggle();

// Mouse movement should be disabled
// Let's turn it back on
PlayGui.snapToggle();