Interface: ModelPanel
Renders a 3d model in the UI.
Properties
Name | Type | Description |
activationenabled | boolean | No description provided. |
actuallayoutheight | number | No description provided. |
actuallayoutwidth | number | No description provided. |
actualuiscale_x | number | No description provided. |
actualuiscale_y | number | No description provided. |
actualxoffset | number | No description provided. |
actualyoffset | number | No description provided. |
antialias | boolean | Whether this ModelView should use antialiasing. |
checked | boolean | No description provided. |
contentheight | number | No description provided. |
contentwidth | number | No description provided. |
cubemap | string | The cubemap that this ModelPanel should display, excluding the .vtf extension. This path is relative to materials/ . |
defaultfocus | string | No description provided. |
desiredlayoutheight | number | No description provided. |
desiredlayoutwidth | number | No description provided. |
enabled | boolean | No description provided. |
hittest | boolean | No description provided. |
hittestchildren | boolean | No description provided. |
id | string | No description provided. |
inputnamespace | string | No description provided. |
layoutfile | string | No description provided. |
mouse_rotate | boolean | Whether the mouse can be dragged over this ModelView to rotate the model. |
This property can only be set through XML. To modify it, use the SetMouseRotationAllowed method. | ||
paneltype | ModelPanel | No description provided. |
rememberchildfocus | boolean | No description provided. |
scrolloffset_x | number | No description provided. |
scrolloffset_y | number | No description provided. |
selectionpos_x | number | No description provided. |
selectionpos_y | number | No description provided. |
sequence | string | Animation sequence name for the model, may be changed later using SetSequence |
skin | number | Index of the skin to use |
src | string | The model that this ModelPanel should display, relative to / |
style | Style | No description provided. |
tabindex | number | No description provided. |
visible | boolean | No description provided. |
Functions
AcceptsFocus
No description provided.
AcceptsInput
No description provided.
AddClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
AddParticleSystem
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | string | No description provided. |
arg2 | boolean | No description provided. |
ApplyStyles
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
BAscendantHasClass
No description provided.
Parameter
Name | Type | Description |
arg0 | string | No description provided. |
CanSeeInParentScroll
No description provided.
Children
No description provided.
ClearPanelEvent
No description provided.
Parameter
Name | Type | Description |
event | string | No description provided. |
ClearPropertyFromCode
No description provided.
Parameter
Name | Type | Description |
arg0 | unknown | No description provided. |
CreateChildren
No description provided.
Parameter
Name | Type | Description |
elements | string | No description provided. |
CreateCopyOfCSSKeyframes
No description provided.
Parameter
Name | Type | Description |
animation | string | No description provided. |
Data
No description provided.
Parameter
Name | Type | Description |
...args | any[] | No description provided. |
DeleteAsync
No description provided.
Parameter
Name | Type | Description |
delay | number | No description provided. |
DeleteKeyframes
No description provided.
Parameter
Name | Type | Description |
animation | unknown | No description provided. |
FindChild
Searches this element's direct children and returns a child with the specified id.
Parameter
Name | Type | Description |
id | string | No description provided. |
FindChildInLayoutFile
No description provided.
Parameter
Name | Type | Description |
id | string | No description provided. |
FindChildrenWithClassTraverse
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
FindChildTraverse
No description provided.
Parameter
Name | Type | Description |
id | string | No description provided. |
GetAttributeInt
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
fallback | number | No description provided. |
GetAttributeString
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
fallback | string | No description provided. |
GetAttributeUInt32
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
fallback | number | No description provided. |
GetChild
No description provided.
Parameter
Name | Type | Description |
index | number | No description provided. |
GetChildCount
No description provided.
GetChildIndex
No description provided.
Parameter
Name | Type | Description |
child | GenericPanel | No description provided. |
GetClothSimulationEnabled
Returns whether cloth simulation is enabled on this model.
GetFirstChild
No description provided.
GetFlexControl
Returns the current value associated with a flex controller
Parameter
Name | Type | Description |
flexController | string | Flex controller name |
GetFlexControllers
Returns an array of objects describing all available flex controllers for this model The UI must take into account the min/max values specified in these structures
GetLastChild
No description provided.
GetLayoutFileDefine
No description provided.
Parameter
Name | Type | Description |
def | string | No description provided. |
GetLOD
Returns the current LOD for this model
GetParent
No description provided.
GetPoseParamCount
Returns the number of pose parameters available for this model
GetPoseParameter
Get a pose parameter's current value
Parameter
Name | Type | Description |
param | string | Pose parameter to get, by name |
GetPoseParameters
Returns an array of all pose parameters
GetPositionWithinWindow
No description provided.
GetSequence
Returns the current animation sequence for this model
GetSequences
Returns an array of all sequences for this model
GetSkin
Returns the current skin
GetSkinCount
Returns the total number of skins available to this model. Use with SetSkin
HasClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
HasDescendantKeyFocus
No description provided.
HasHoverStyle
No description provided.
HasKeyFocus
No description provided.
IsDraggable
No description provided.
IsReadyForDisplay
No description provided.
IsSelected
No description provided.
IsSizeValid
No description provided.
IsTransparent
No description provided.
IsValid
Check if this panel is still valid
LoadLayout
No description provided.
Parameters
Name | Type | Description |
url | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutAsync
No description provided.
Parameters
Name | Type | Description |
url | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutFromString
No description provided.
Parameters
Name | Type | Description |
layout | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutFromStringAsync
No description provided.
Parameters
Name | Type | Description |
layout | string | No description provided. |
override | boolean | No description provided. |
partial | boolean | No description provided. |
LoadLayoutSnippet
No description provided.
Parameter
Name | Type | Description |
snippet | string | No description provided. |
LookAt
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
LookAtModel
No description provided.
MoveChildAfter
No description provided.
Parameters
Name | Type | Description |
arg0 | unknown | No description provided. |
arg1 | unknown | No description provided. |
MoveChildBefore
No description provided.
Parameters
Name | Type | Description |
arg0 | unknown | No description provided. |
arg1 | unknown | No description provided. |
RegisterForReadyEvents
Registers this panel to receive ready/unready events.
Parameter
Name | Type | Description |
enable | boolean | Should this panel receive ready/unready events? |
RemoveAndDeleteChildren
No description provided.
RemoveClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
ResetPoseParam
Reset a single pose parameter to its default
Parameter
Name | Type | Description |
param | number | Pose parameter to reset, must be in range [0,GetPoseParamCount()) |
ResetPoseParams
Resets all pose parameters to their default values
ScrollParentToFitWhenFocused
No description provided.
ScrollParentToMakePanelFit
No description provided.
Parameters
Name | Type | Description |
arg0 | number | No description provided. |
arg1 | boolean | No description provided. |
ScrollToBottom
No description provided.
ScrollToFitRegion
No description provided.
Parameters
Name | Type | Description |
arg0 | number | No description provided. |
arg1 | number | No description provided. |
arg2 | number | No description provided. |
arg3 | number | No description provided. |
arg4 | unknown | No description provided. |
arg5 | boolean | No description provided. |
arg6 | boolean | No description provided. |
ScrollToLeftEdge
No description provided.
ScrollToRightEdge
No description provided.
ScrollToTop
No description provided.
SetAcceptsFocus
No description provided.
Parameter
Name | Type | Description |
istrue | boolean | No description provided. |
SetAttributeInt
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
value | number | No description provided. |
SetAttributeString
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
value | string | No description provided. |
SetAttributeUInt32
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
value | number | No description provided. |
SetCameraAngles
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetCameraFOV
No description provided.
Parameter
Name | Type | Description |
fov | number | No description provided. |
SetCameraOffset
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetCameraPosition
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetClothSimulationEnabled
Enable/disable cloth sim on a model, if it supports it
Parameter
Name | Type | Description |
enable | boolean | True to enable, false to disable |
SetDialogVariable
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | string | No description provided. |
SetDialogVariableFloat
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | number | No description provided. |
SetDialogVariableInt
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | number | No description provided. |
SetDialogVariableTime
No description provided.
Parameters
Name | Type | Description |
arg0 | string | No description provided. |
arg1 | string | number | No description provided. |
SetDirectionalLightColor
Sets the color of a directional light as floats.
Parameters
Name | Type | Description |
light | number | The ID of the light. (0-4) |
r | number | No description provided. |
g | number | No description provided. |
b | number | No description provided. |
SetDirectionalLightDirection
Sets the direction of a directional light.
Parameters
Name | Type | Description |
light | number | The ID of the light. (0-4) |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetDisableFocusOnMouseDown
No description provided.
Parameter
Name | Type | Description |
istrue | boolean | No description provided. |
SetDraggable
No description provided.
Parameter
Name | Type | Description |
istrue | boolean | No description provided. |
SetFlexControl
Set a flex controller value. Should be within the min/max returned by GetFlexControllers(), but out of range values will still be used to render.
Parameters
Name | Type | Description |
flexController | string | Flex controller name |
value | number | Value of the flex |
SetFocus
No description provided.
Parameter
Name | Type | Description |
focus | boolean | No description provided. |
SetHasClass
No description provided.
Parameters
Name | Type | Description |
classname | string | No description provided. |
hasclass | boolean | No description provided. |
SetInputNamespace
No description provided.
Parameter
Name | Type | Description |
arg0 | string | No description provided. |
SetLightAmbient
No description provided.
Parameters
Name | Type | Description |
r | number | No description provided. |
g | number | No description provided. |
b | number | No description provided. |
SetLOD
Set the LOD for this model
Parameter
Name | Type | Description |
lod | number | LOD level |
SetModelBodygroup
No description provided.
Parameters
Name | Type | Description |
arg0 | number | No description provided. |
arg1 | number | No description provided. |
SetModelColor
No description provided.
Parameter
Name | Type | Description |
arg0 | unknown | No description provided. |
SetModelRotation
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetModelRotationAcceleration
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetModelRotationBoundsEnabled
No description provided.
Parameters
Name | Type | Description |
x | boolean | No description provided. |
y | boolean | No description provided. |
z | boolean | No description provided. |
SetModelRotationBoundsX
No description provided.
Parameters
Name | Type | Description |
min | number | No description provided. |
max | number | No description provided. |
SetModelRotationBoundsY
No description provided.
Parameters
Name | Type | Description |
min | number | No description provided. |
max | number | No description provided. |
SetModelRotationBoundsZ
No description provided.
Parameters
Name | Type | Description |
min | number | No description provided. |
max | number | No description provided. |
SetModelRotationSpeed
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetModelRotationSpeedTarget
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetModelRotationTarget
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetMouseRotationAllowed
No description provided.
Parameter
Name | Type | Description |
allow | boolean | No description provided. |
SetMouseXRotationScale
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetMouseYRotationScale
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetPanelEvent
Sets an event trigger for this panel.
Example
Parameters
Name | Type | Description |
event | string | No description provided. |
callback | Func<any[], void> | No description provided. |
See also
SetParent
No description provided.
Parameter
Name | Type | Description |
parent | GenericPanel | No description provided. |
SetParticleSystemOffsetAngles
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetParticleSystemOffsetPosition
No description provided.
Parameters
Name | Type | Description |
x | number | No description provided. |
y | number | No description provided. |
z | number | No description provided. |
SetPoseParameter
Sets a single pose parameter
Parameters
Name | Type | Description |
param | string | Pose parameter to set, by name |
value | number | Value of the pose parameter |
SetReadyForDisplay
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
SetScrollParentToFitWhenFocused
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
SetSequence
Set the current animation sequence for this model
Parameter
Name | Type | Description |
sequence | string | Sequence name |
SetSkin
Sets the current skin
Parameter
Name | Type | Description |
skin | number | Skin index, must be in range [0, GetSkinCount()) |
SetTopOfInputContext
No description provided.
Parameter
Name | Type | Description |
arg0 | boolean | No description provided. |
SortChildrenOnAttribute
No description provided.
Parameters
Name | Type | Description |
attribute | string | No description provided. |
ascending | boolean | No description provided. |
SwitchClass
No description provided.
Parameters
Name | Type | Description |
oldclass | string | No description provided. |
newclass | string | No description provided. |
ToggleClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
TriggerClass
No description provided.
Parameter
Name | Type | Description |
classname | string | No description provided. |
UpdateCurrentAnimationKeyframes
No description provided.
Parameter
Name | Type | Description |
animation | unknown | No description provided. |
UpdateFocusInContext
No description provided.