Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function OpenBook(website)
  2. local w = ScrW() / 2.2
  3. local h = ScrH() / 1.1
  4.  
  5. local frame = vgui.Create( "DFrame" )
  6. frame:SetSize( w, h )
  7. frame:SetTitle( " " )
  8. frame:SetVisible( true )
  9. frame:SetDraggable( true )
  10. frame:Center()
  11.  
  12. html = vgui.Create( "DHTML", frame )
  13. html:SetPos( 0, 23 )
  14. html:SetSize( w, h )
  15. html:OpenURL(website)
  16.  
  17. frame:MakePopup()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement