VGUI Panel: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (first stone)
 
(Redirected page to Panel)
 
(16 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{stub}}
#redirect [[Panel]]
 
 
"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"

Latest revision as of 02:17, 3 August 2011

Redirect to: