The Picture Placer tool. Left click places the picture at the given URL (a png or jpg image) on the surface the owner is looking at, with the chosen width, height and fade offset; right click removes the picture the owner is looking at. The tool requires the pictures permission, which placing and removing check as well.

Summary

Functions

Builds the tool's settings panel: picture URL, width, height and fade offset.

Methods

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

Functions

TOOL.BuildCPanel(CPanel)

shared plugins/3dtexts/plugin/tools/sh_pictures.lua:71

Builds the tool's settings panel: picture URL, width, height and fade offset.

Parameters

  • CPanel Panel the tool's control panel

Methods

Places a 3D picture built from the tool's settings on the surface that was hit. The URL must end with png, jpg or jpeg.

Parameters

  • trace Map trace result of the tool owner's aim

Returns

  • Boolean true if the picture was placed (always true clientside), false if the URL is invalid, nil if the owner lacks the 'pictures' permission

TOOL:RightClick(_trace)

shared plugins/3dtexts/plugin/tools/sh_pictures.lua:61

Requests removal of the 3D picture the tool owner is looking at.

Parameters

  • _trace Map trace result of the tool owner's aim

Returns

  • Boolean always true

Defined in