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

Builds the tool's settings panel: style, text, colors, scale and fade offset.

Methods

Places a 3D text built from the tool's settings on the surface that was hit.
Requests removal of the 3D text the tool owner is looking at.

Functions

TOOL.BuildCPanel(CPanel)

shared plugins/3dtexts/plugin/tools/sh_texts.lua:104

Builds the tool's settings panel: style, text, colors, scale and fade offset.

Parameters

  • CPanel Panel the tool's control panel

Methods

TOOL:LeftClick(trace)

shared plugins/3dtexts/plugin/tools/sh_texts.lua:29

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

TOOL:RightClick(_trace)

shared plugins/3dtexts/plugin/tools/sh_texts.lua:81

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

Defined in