Template:VT
来自Valve Developer Community
跳转到导航
跳转到搜索
文档页面 Template:VT/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
Just a list template for FGD and shader parameter templates to easily link to a wide variety of variable types.
Usage
This template accepts one parameter: the name of the variable type. It outputs a specific string depending on this parameter. It is not case-sensitive.
The following table lists inputs, their results, other inputs yielding the same results, and any things to note. Case variations are not included.
| Code | Output | Aliases | Notes |
|---|---|---|---|
{{VT|???}} |
<???(en)> | Unknown type, verify from FGD docs. (with hover info) | |
{{VT|angle}} |
<angle(en)> | Parsed as QAngle. | |
{{VT|angles}} |
<angles(en)> | Parsed as QAngle. | |
{{VT|axis}} |
<轴> | ||
{{VT|bool}} |
<布尔值(en)> | boolean | FGD KV type is (存在于自 Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves. |
{{VT|byte}} |
<byte(en)> | unsigned char | Range 0-255. If the variable uses a regular integer with clamped range, use <整数 0-255 (en)> instead. |
{{VT|byte choices}} |
<byte choices(en)> | ||
{{VT|char}} |
<char(en)> | Use for signed chars (-128 to 127). | |
{{VT|char choices}} |
<char choices(en)> | ||
{{VT|choices}} |
<choices> | Preferably use version which indicates the actual data type parsed by the code, such as <byte choices(en)>, <integer choices(en)>, or <string choices(en)>. | |
{{VT|color1}} |
<color1(en)> | ||
{{VT|color255}} |
<color255(en)> | RGB, rgb | |
{{VT|color255 + int}} |
<color255(en) + 整数(en)> | color255+int | |
{{VT|env_cubemap / texture}} |
<env_cubemap / 纹理(en)> | cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture | |
{{VT|ehandle}} |
<ehandle(en)> | IO type ehandle. | |
{{VT|file}} |
<file(en)> | filename, filepath | File path, treated as string. |
{{VT|filter}} |
<filter(en)> | filterclass | |
{{VT|float}} |
<浮点型(en)> | ||
{{VT|int}} |
<整数(en)> | integer | Enums without explicit type use this. |
{{VT|int 0-10}} |
<整数 0-10 (en)> | For ambient_generic. | |
{{VT|int 0-100}} |
<整数 0-100 (en)> | For ambient_generic. | |
{{VT|int 0-1000}} |
<整数 0-1000 (en)> | For ambient_generic. | |
{{VT|int 0-255}} |
<整数 0-255 (en)> | integer 0-255 | For ambient_generic. Not to be confused with <byte(en)>. |
{{VT|integer}} |
<整数(en)> | int | |
{{VT|integer choices}} |
<integer choices(en)> | Parsed as int with selectable options. | |
{{VT|material property}} |
<属性(en)> | material property | Link to Material surface properties. |
{{VT|RGB matrix}} |
<RGB matrix(en)> | Two separate links. | |
{{VT|script}} |
<脚本(en)> | vscript | Link to Vscript. |
{{VT|scriptlist}} |
<脚本列表(en)> | ||
{{VT|sky}} |
<sky(en)> | skybox, skyname | Link to Skybox. |
{{VT|string}} |
<字符串(en)> | str | |
{{VT|string choices}} |
<string choices(en)> | String with selectable options. | |
{{VT|studio}} |
<模型文件路径(en)> | model, modelname, model name, modelpath, model path | Link to Model. |
{{VT|target}} |
<目标名(en)> | targetname, target_destination, target_source | |
{{VT|variant}} |
<variant(en)> | IO type variant. | |
{{VT|vector}} |
<向量(en)> | vecline, vec | |
{{VT|vector2}} |
<向量2(en)> | vec2 | Link to Material vector#vector2. |
{{VT|vector3}} |
<向量3(en)> | vec3 | Link to Material vector#vector3. |
{{VT|vector4}} |
<向量4(en)> | vec4 | Link to Material vector#vector4. |
{{VT|void}} |
<void> | <blank> | Signifies IO truly has no parameter instead of missing type. |
Any other input will be a link to that input.
See also
{{I}}{{O}}{{KV}}{{MatParamDef}}