DModelPanel/LayoutEntity

From Garry's Mod
Jump to: navigation, search
 DModelPanel:LayoutEntity( )

Contents

DescriptionPanelFunc

This is an internal function or feature.
This means you will be able to use it, but you really shouldn't.
By default, this function slowly rotates and animates the entity being rendered.

If you want to change this behavior, you should override it.

Arguments

Entity entity

The entity that is being rendered.

Examples

Example

Stops the rendered entity from rotating.

local modelPanel = vgui.Create( "DModelPanel" )
modelPanel:SetPos( 0, 0 )
modelPanel:SetSize( 200, 200 )
modelPanel:SetModel( "models/player/kleiner.mdl" )

function modelPanel:LayoutEntity( ent )
	-- do nothing
end


Personal tools
Navigation