Garry's Mod Wiki

DLabelEditable:OnLabelTextChanged

  string DLabelEditable:OnLabelTextChanged( string txt )

Description

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

1 string txt
The original user input text

Returns

1 string
If provided, will override the text that will be applied to the label itself.