Garry's Mod Wiki

Garry's Mod Wiki

Description

A panel capable of loading .tga images.

Parent

Derives methods, etc not listed on this page from Panel.

Example

Creates a TGAImage panel and loads the image defined by line 4.

local panel = vgui.Create( "DFrame" ) panel:SetSize( 500, 500 ) panel:MakePopup() panel:Center() local image = vgui.Create( "TGAImage", panel ) image:SetSize( 32, 32 ) image:SetPos( 50, 50 ) image:LoadTGAImage( "materials/addon.tga", "" )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...