Template:VT

来自Valve Developer Community
跳转到导航 跳转到搜索
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Icon-translate.png Available doc translations
Info.png
文档页面 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.

Broom icon.png
本文需要更新以包含有关该主题的当前信息,因为:
There have been some changes and additions since this table was made.
记得在本文的讨论页上查看标记者留下的任何注释。
Code Output Other Values Notes
{{VT|axis}} <轴>
{{VT|bool}} <布尔值(en)> boolean FGD KV type is (存在于自 Alien Swarm engine branch) (也存在于 Garry's Mod)
Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves.
{{VT|byte}} <byte(en)>
{{VT|byte choices}} <byte choices(en)>
{{VT|choices}} <choices>
{{VT|color255}} <color255(en)> 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
{{VT|filter}} <filter(en)> filterclass
{{VT|float}} <浮点型(en)>
{{VT|int}} <整数(en)> integer
{{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|integer 0-255}} <整数 0-255 (en)> For ambient_generic
{{VT|property}} <属性(en)> material property Is a link to Material surface properties.
{{VT|RGB matrix}} <RGB matrix(en)> Is two separate links.
{{VT|script}} <脚本(en)> vscript Is a link to Vscript.
{{VT|scriptlist}} <脚本列表(en)>
{{VT|string}} <字符串(en)> str
{{VT|studio}} <模型文件路径(en)> model, modelname, model name, modelpath, model path Is a link to Model.
{{VT|target}} <目标名(en)> target_name, target_destination, target_source
{{VT|vector}} <向量(en)> vecline
{{VT|vector2}} <向量2(en)>
{{VT|vector3}} <向量3(en)>
{{VT|vector4}} <向量4(en)>
{{VT|void}} <void> <blank>

Any other input will be a link to that input.

See also