Panel: Difference between revisions
Appearance
Created page with "== Special Properties == * fieldName: Determines the name of the control. * xpos: Determines the horizontal offset from the top left (by default) of t..." |
No edit summary |
||
| Line 1: | Line 1: | ||
A rectangular area. Can contain children. | |||
== Special Properties == | == Special Properties == | ||
| Line 28: | Line 30: | ||
} | } | ||
</pre> | </pre> | ||
== See Also == | |||
* https://developer.valvesoftware.com/wiki/Understanding_VGUI2_Resource_Files#Panel | |||
Revision as of 12:58, 7 August 2017
A rectangular area. Can contain children.
Special Properties
- fieldName: Determines the name of the control.
- xpos: Determines the horizontal offset from the top left (by default) of the parent panel.
- ypos: Determines the vertical offset from the top left (by default) of the parent panel.
- wide: Determines the width of the control.
- tall: Determines the height of the control.
- zpos: Determines the depth of the panel. Deeper panels are drawn first. Lower numbers = deeper.
- visible: Determines if the control will be drawn.
- enabled: Determines if the control is enabled. Used by controls higher up the chain (like Buttons).
- tabPosition: Determines the tab order of the control.
- tooltiptext: Determines the tooltip text to show when you hover over this control.
- paintbackground: Paint the background color of this control.
- paintBackgroundType:
- paintborder: Paint the border of this control.
Example
"HudStaminaBar"
{
"ControlName" "Panel"
"fieldName" "HudStaminaBar"
"xpos" "0"
"ypos" "24"
"wide" "128"
"tall" "8"
"PaintBackgroundType" "0"
}