DModelPanel

From GMod Wiki

Jump to: navigation, search
Derma Control: DModelPanel
Parent Class:Panel
Subclasses:None
Description:
A simple model viewer

Examples

DescriptionCreates a simple view of the players model.
Used onNewerClient.png
Code
 
local window = vgui.Create( "DFrame" )
window:SetSize( 200,200 )
window:Center()
window:SetTitle( "DModelPanel Test" )
window:MakePopup()
 
local icon = vgui.Create( "DModelPanel", window )
icon:SetModel( LocalPlayer():GetModel() )
 
icon:SetSize( 100, 100 )
icon:SetCamPos( Vector( 50, 50, 120 ) )
icon:SetLookAt( Vector( 0, 0, 0 ) )
 
 
OutputDModelPanel.PNG


Notes

DModelPanel

DModelPanel.GenerateExample
DModelPanel.GetAmbientLight
DModelPanel.GetAnimated
DModelPanel.GetAnimSpeed
DModelPanel.GetCamPos
DModelPanel.GetColor
DModelPanel.GetEntity
DModelPanel.GetFOV
DModelPanel.GetLookAt
DModelPanel.Init
DModelPanel.LayoutEntity
DModelPanel.Paint
DModelPanel.RunAnimation
DModelPanel.SetAmbientLight
DModelPanel.SetAnimated
DModelPanel.SetAnimSpeed
DModelPanel.SetCamPos
DModelPanel.SetColor
DModelPanel.SetDirectionalLight
DModelPanel.SetEntity
DModelPanel.SetFOV
DModelPanel.SetLookAt
DModelPanel.SetModel

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox