Revision Difference
gui.OpenURL#511666
<function name="OpenURL" parent="gui" type="libraryfunc">⤶
<description>⤶
Opens specified URL in the steam overlay browser. The URL has to start with either http:// or https://⤶
⤶
<note>User will be asked for confirmation before the website will open.</note>⤶
<bug issue="3383">You can't click the confirmation if a modal panel has focus.</bug>⤶
</description>⤶
<realm>Client and Menu</realm>⤶
<args>⤶
<arg name="url" type="string">URL to open</arg>⤶
</args>⤶
</function>⤶
⤶
<example>⤶
<description>Opens a page when a button is clicked.</description>⤶
<code>⤶
local button = vgui.Create( "DButton" )⤶
button:SetSize( 125, 90 )⤶
button:Center() ⤶
button:SetText( "Join our Steam Group!" )⤶
button.DoClick = function()⤶
gui.OpenURL( "http://steamcommunity.com/groups/glua" )⤶
end⤶
</code>⤶
⤶
</example>