DModelPanel.LayoutEntity

From GMod Wiki

Jump to: navigation, search
Warning 64 light.png Internal Function: DModelPanel.LayoutEntity
DModelPanel.LayoutEntity is an internal function. This means you will be able to call it, but you really shouldn't.


Function
Syntax DModelPanel.LayoutEntity( )
Description:
Lays out the entity on the panel
Returns: nil
In Object: DModelPanel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DModelPanel.LayoutEntity]DModelPanel.LayoutEntity [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



DescriptionCreates a DModelPanel type that doesn't rotate the entity.
Used onNewerClient.png
Code
local PANEL = {}
 
function PANEL:LayoutEntity( Entity )
 
	if ( self.bAnimated ) then -- Make it animate normally
		self:RunAnimation()
	end
 
end
 
vgui.Register("DModelPanelNoRotate",PANEL,"DModelPanel")--Register it on a new name
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox