Definition at line 23 of file MyHudCrosshair.cs.
Sandbox.Game.Gui.MyHudCrosshair.MyHudCrosshair |
( |
| ) |
|
|
inline |
void Sandbox.Game.Gui.MyHudCrosshair.AddTemporarySprite |
( |
MyHudTexturesEnum |
spriteEnum, |
|
|
MyStringId |
spriteId, |
|
|
int |
timeout = 2000 , |
|
|
int |
fadeTime = 1000 , |
|
|
Color? |
color = null , |
|
|
float |
size = 0.02f |
|
) |
| |
|
inline |
Adds a temporary sprite to the list of sprites that make up the crosshair
- Parameters
-
spriteEnum | Texture of the sprite to use |
spriteId | An id that will be checked to prevent adding the same sprite twice |
timeout | Time the sprite will be visible (includes fadeout time) |
fadeTime | For how long should the sprite fade out when it disappears |
Definition at line 127 of file MyHudCrosshair.cs.
void Sandbox.Game.Gui.MyHudCrosshair.ChangeDefaultSprite |
( |
MyHudTexturesEnum |
newSprite, |
|
|
float |
size = 0.0f |
|
) |
| |
|
inline |
void Sandbox.Game.Gui.MyHudCrosshair.ChangePosition |
( |
Vector2 |
newPosition | ) |
|
|
inline |
static bool Sandbox.Game.Gui.MyHudCrosshair.GetProjectedVector |
( |
Vector3D |
worldPosition, |
|
|
ref Vector2 |
target |
|
) |
| |
|
inlinestatic |
void Sandbox.Game.Gui.MyHudCrosshair.HideDefaultSprite |
( |
| ) |
|
|
inline |
void Sandbox.Game.Gui.MyHudCrosshair.Recenter |
( |
| ) |
|
|
inline |
void Sandbox.Game.Gui.MyHudCrosshair.ResetToDefault |
( |
bool |
clear = true | ) |
|
|
inline |
void Sandbox.Game.Gui.MyHudCrosshair.Update |
( |
| ) |
|
|
inline |
Vector2 Sandbox.Game.Gui.MyHudCrosshair.Position |
|
get |
Vector2 Sandbox.Game.Gui.MyHudCrosshair.ScreenCenter |
|
staticget |
bool Sandbox.Game.Gui.MyHudCrosshair.Visible |
|
get |
The documentation for this class was generated from the following file: