DLabelEditable/OnLabelTextChanged

From Garry's Mod
Jump to: navigation, search
 DLabelEditable:OnLabelTextChanged( )

DescriptionPanelHook

A hook called when the player presses Enter (i.e. the finished editing the label) and the text has changed.

Allows you to override/modify the text that will be set to display.

Arguments

string txt

The original user input text

Returns

string

If provided, will override the text that will be applied to the label itself.
Personal tools
Navigation