Category:DAdjustableModelPanel

From Garry's Mod
Jump to: navigation, search

Contents

DescriptionPanelPage

A derivative of the DModelPanel in which the user may modify the perspective of the model with their mouse and keyboard by clicking and dragging.

The keyboard keys W S A D Space and Ctrl can be used when the right mouse is held down, with ⇧ Shift acting as a speed multiplier. When the left mouse is used, the Shift key holds the current y angle steady.

This is used by IconEditor for modifying spawn icons.

Inherited Functions

Inherits the following functions from DModelPanel and its parents up to 3 levels deep:


Examples

Example

Creates an Adjustable Model Panel

local AdjustableModelPanel = vgui.Create( "DAdjustableModelPanel" )
AdjustableModelPanel:SetPos( 10, 10 )
AdjustableModelPanel:SetSize( 280, 280 )
AdjustableModelPanel:SetLookAt( Vector( 0, 0, 0 ) )
AdjustableModelPanel:SetModel( "models/props_borealis/bluebarrel001.mdl" )


Pages in category "DAdjustableModelPanel"

The following 4 pages are in this category, out of 4 total.

Personal tools
Navigation