Crosshair
Represents the shape and color of a crosshair. All crosshair types use this class to store their crosshair properties.
Properties
Property | Type | Description |
---|---|---|
size | int | The length (in pixels) of each crosshair line. This is only relevant for line crosshairs. |
thickness | int | The width (in pixels) of the crosshair lines. |
gap | int | The distance (in pixels) from the center of the crosshair to the beginning of the crosshair line/s. |
spread | float | An additional gap to apply to the crosshair. This is useful if you want to apply a temporary additional gap and still want to return to the original gap value. |
rotation | float | The rotation of the crosshair reticle. |
color | Color | The color of the crosshair. |
reticleSidesToDraw | ReticleSide | Which sides of the crosshair reticle to draw. |
SizeNeeded | int | The minimum size (in pixels) that the crosshair texture needs to be. This is equal to whichever value is largest out of (gap + size + spread) * 2 or thickness . |
CircleSizeNeeded | int | The minimum size (in pixels) required to draw circle crosshairs. This is equal to (gap + spread + thickness) * 2 . |
GapPlusSpread | int | Equal to gap + spread . This is a useful way to get the full distance from the center of the crosshair to the beginning of the crosshair line/s. |