The Text Tool. Left click places a 3D text on the surface the owner is looking at, with
the chosen text, style (one of ten), colors, scale and fade offset; right click removes
the text the owner is looking at. The tool requires the texts permission, which
placing and removing check as well.
Summary
Functions
BuildCPanel(CPanel)shared
Builds the tool's settings panel: style, text, colors, scale and fade offset.
Methods
LeftClick(trace)shared
Places a 3D text built from the tool's settings on the surface that was hit.
RightClick(_trace)shared
Requests removal of the 3D text the tool owner is looking at.
Functions
Builds the tool's settings panel: style, text, colors, scale and fade offset.
Parameters
- CPanel Panel the tool's control panel
Methods
Places a 3D text built from the tool's settings on the surface that was hit.
Parameters
- trace Map trace result of the tool owner's aim
Returns
- Boolean true if the text was placed (always true clientside), false if the text is empty, nil if the owner lacks the 'texts' permission
Requests removal of the 3D text the tool owner is looking at.
Parameters
- _trace Map trace result of the tool owner's aim
Returns
- Boolean always true