Garry's Mod Wiki

Revision Difference

RadioButton#516691

<panel> <parent>Panel</parent> <description> <internal></internal> <deprecated></deprecated> Currently there are no functions to retrieve checked state of a Radio Button, and their visuals are seemingly broken. </description> <hooks></hooks>⤶ ⤶ </panel>⤶ ⤶ ⤶ <example>⤶ <hooks>⤶ }}⤶ {{Example⤶ </hooks>⤶ <description>Example usage</description> <code> local window = vgui.Create( "DFrame" ) window:SetSize( 600, 400 ) window:Center() window:MakePopup() for k, v in pairs( { "test1", "test2", "test3" } ) do local rb = window:Add( "RadioButton" ) rb:Dock( TOP ) rb:SetText( v ) end </code> ⤶ </example>⤶ ⤶ </panel>⤶