TGAImage:LoadTGAImage

From GMod Wiki

Jump to: navigation, search
Function
Syntax TGAImage:LoadTGAImage( String MaterialsPath, String )
Description:
Loads a TGA Image to the TGAImage Panel
Returns: nil
In Object: P.TGAImage
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=TGAImage:LoadTGAImage]TGAImage:LoadTGAImage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a TGAImage panel.
Used onNewerClient.png
Code
 
local image = vgui.Create("TGAImage");
image:SetSize(width, height);
image:SetPos(x position, y position);
image:LoadTGAImage("materials/file.tga", "MOD"); -- Always keep "MOD".
 
OutputNone


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox