singlestringentry

A quick and dirty panel for getting a string input, with a label, then calling a function.

Functions

singlestringentry:GetValue()

View source »

Get the value of the string.

singlestringentry:SetAccept(func)

View source »

Set the function called on accept.

Parameters

  • func

singlestringentry:SetCancel(func)

View source »

Set the function called on cancel.

Parameters

  • func

singlestringentry:SetInput(text)

View source »

Set the input label.

Parameters

  • text string

    New label string.

singlestringentry:SetWarrant(ply, warrant)

View source »

Set the input label, as a warrant, based on a player.

Parameters

  • ply Player

    Player to set.

  • warrant string

    Warrant type to set.