Defines the texts toolgun of the Surface Texts plugin, which places a 3D text on the surface under the crosshair on left click and removes one on right click.

The text, style, scale, colors and fade distance offset come from the tool's console variables, which its control panel edits. Only admins can place or remove texts.

Backported from the Flux project.

Summary

Functions

Builds the tool's control panel: style presets, text and color boxes, and scale and fade sliders.

Methods

Places a surface text with the tool's text, style, scale, colors and fade settings; admins only.
Removes the surface text the owner is looking at with cwSurfaceTexts:Remove.

Functions

Builds the tool's control panel: style presets, text and color boxes, and scale and fade sliders.

Parameters

  • CPanel Panel The tool's control panel

Methods

Places a surface text with the tool's text, style, scale, colors and fade settings; admins only.

Parameters

  • trace

Removes the surface text the owner is looking at with cwSurfaceTexts:Remove.

Parameters

  • trace

Defined in