P.HTML

From GMod Wiki

Revision as of 03:44, 13 May 2011 by Wizard (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Description

The HTML control can be used to display HTML code just like an internet browser. Uses WebKit version 532.1

Usage

It's quite easy to use, set up just like a frame of sort, then start feeding it HTML to display.

DescriptionCreates an HTML control in the center of screen, and make it display http://www.garrysmod.com
Used onNewerClient.png
Code
 
HTMLTest = vgui.Create("HTML")
HTMLTest:SetPos(50,50)
HTMLTest:SetSize(ScrW() - 100, ScrH() - 100)
HTMLTest:OpenURL("http://www.garrysmod.com")
 
OutputNone


Methods

NewerClient.png HTML:OpeningURL
NewerClient.png HTML:FinishedURL
NewerClient.png HTML:StatusChanged
NewerClient.png HTML:PageTitleChanged
NewerClient.png HTML.SetHTML
NewerClient.png HTML.HTMLBack
NewerClient.png HTML.HTMLForward
NewerClient.png HTML.Stop
NewerClient.png HTML.Refresh
NewerClient.png HTML.OpenURL
NewerClient.png HTML.Clear
NewerClient.png HTML.RunJavascript
NewerClient.png HTML.GetHTMLMaterial
NewerClient.png HTML.StartAnimate
NewerClient.png HTML.StopAnimate
NewerClient.png HTML.IsLoading

Members

PageTitle

Additional Notes

    .exe
    .bat
    .dll
    .zip
    .mp3
    .swf

even if the url is http://www.domain.tld/some.dlltext.html"Not opening URL <url>", because it has the string '.dll' in it. Note however, that the word 'dll' is allowed, just not '.dll'. This applies to the other blocked extensions as well. There are probably more blocked words, someone needs to do a comprehensive test.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox