VGUI Panel: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 101: | Line 101: | ||
"AutoResize" integer | "AutoResize" integer | ||
defaults no | defaults no | ||
enum AutoResize_e | |||
{ | |||
AUTORESIZE_NO = 0, | |||
AUTORESIZE_RIGHT, | |||
AUTORESIZE_DOWN, | |||
AUTORESIZE_DOWNANDRIGHT, | |||
}; | |||
-- | -- | ||
Line 107: | Line 114: | ||
defaults topleft | defaults topleft | ||
enum PinCorner_e | |||
{ | |||
PIN_TOPLEFT = 0, | |||
PIN_TOPRIGHT, | |||
PIN_BOTTOMLEFT, | |||
PIN_BOTTOMRIGHT, | |||
}; | |||
"PinnedCornerOffsetX" | "PinnedCornerOffsetX" |
Revision as of 11:25, 4 January 2007
"xpos" "300"
Will position on x = 300, where x = 0 is the first position to the left and grows to the right.
"xpos" "r300" Will position on x = 300, where x = 0 is the first position to the right and grows to the left.
"xpos" "c300" Will position on x = 300, where x = 0 is at the center of the screen and grows to the right.
The numeric value is parsed with atoi().
--
"ypos" "300" Will position on y = 300, where y = 0 is the first position from the top and grows to the right.
"ypos" "r300" Will position on y = 300, where y = 0 is the first position from the bottom and grows to the right.
"ypos" "c300" Will position on y = 300, where y = 0 is at the center of the screen and grows to the right.
The numeric value is parsed with atoi().
--
"zpos" "1"
Positions on z.
--
"wide" "32"
Control width.
--
"tall" "32"
Control height.
--
"IgnoreScheme" 0/1
default 0 // only get colors if we're ignoring the scheme
--
"visible" 0/1
default 1
--
"enabled" 0/1
default 1
--
"tabPosition" 0-n
default 0
--
"tooltiptext" "text"
default NULL (no tooltip) doesnt work on XBOX
--
"paintbackground" integer
default -1
--
"paintborder" value
default -1
--
"fieldName" text
sets the control's name, default NULL
AutoResizeSettings:
"AutoResize" integer defaults no
enum AutoResize_e { AUTORESIZE_NO = 0, AUTORESIZE_RIGHT, AUTORESIZE_DOWN, AUTORESIZE_DOWNANDRIGHT, };
--
"PinCorner" integer
defaults topleft
enum PinCorner_e { PIN_TOPLEFT = 0, PIN_TOPRIGHT, PIN_BOTTOMLEFT, PIN_BOTTOMRIGHT, };
"PinnedCornerOffsetX" "PinnedCornerOffsetY" "UnpinnedCornerOffsetX" "UnpinnedCornerOffsetY"