Garry's Mod Wiki

Revision Difference

DComboBox:GetOptionTextByData#513420

<function name="GetOptionTextByData" parent="DComboBox" type="panelfunc">⤶ <ispanel>yes</ispanel>⤶ <description>Returns an option's text based on the given data.</description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="data" type="string">The data to look up the name of.&#xA;&#xA;If given a &lt;page&gt;number&lt;/page&gt; and no matching data was found, the function will test given data against each &lt;page&gt;Global.tonumber&lt;/page&gt;&#x27;d data entry.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="string">The option's text value.⤶ ⤶ If no matching data was found, the data itself will be returned. If multiple identical data entries exist, the first instance will be returned.</ret>⤶ </rets>⤶ </function>⤶ ⤶