DMultiChoice.GetOptionText

From GMod Wiki

Jump to: navigation, search
Function
Syntax DMultiChoice:GetOptionText( Integer id )
Description:
Returns the text set to the option with given id.
Returns: String
In Object: DMultiChoice
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DMultiChoice.GetOptionText]DMultiChoice.GetOptionText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the text set to id option 1
Used onNewerClient.png
Code
print( myMultiChoicePanel:GetOptionText( 1 ) )
Outputprints the text set to the 1st option in myMultiChoicePanel


Additional notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox