Panel.AddText

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.AddText]Panel.AddText [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAdds text to an HTML panel.
Used onNewerClient.png
Code
local html = vgui.Create("HTML");
html:SetSize(ScrW(), ScrH());
html:SetPos(0, 0);
html:AddText("<p>Test paragraph.</p>");
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox