Panel.AddText
From GMod Wiki
Function | |
Syntax | Panel:AddText( String HTML text ) |
Description: | |
Appends "text" to the end of the current page. "text" should be a HTML formatted string. | |
Returns: | nil |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.AddText]Panel.AddText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Adds text to an HTML panel. |
---|---|
Used on | |
Code | local html = vgui.Create("HTML"); html:SetSize(ScrW(), ScrH()); html:SetPos(0, 0); html:AddText("<p>Test paragraph.</p>"); |
Output | N/A |
Additional Notes
- Appears to crash the game when used.
- See P.HTML for more information on the HTML control.