VGUI Panel: Difference between revisions
m (first stone) |
mNo edit summary |
||
Line 112: | Line 112: | ||
"UnpinnedCornerOffsetX" | "UnpinnedCornerOffsetX" | ||
"UnpinnedCornerOffsetY" | "UnpinnedCornerOffsetY" | ||
[[Category:VGUI_Controls]] |
Revision as of 11:16, 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
--
"PinCorner" integer
defaults topleft
"PinnedCornerOffsetX" "PinnedCornerOffsetY" "UnpinnedCornerOffsetX" "UnpinnedCornerOffsetY"