Template:KV Type:zh-cn/doc

Матеріал з 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)
Edit-copy.png
This is a documentation subpage for Template:KV Type:zh-cn.
Don't forget to purge the contents of the base page upon creating or editing this subpage.  

一个给 FGD 和着色器参数模板使用的列表参数模板,以便于链接到各种变量类型。

用法

此模板接受一个参数:变量类型的名称。它根据此参数输出特定的字符串。它不区分大小写。

下表列出了输入、其结果、产生相同结果的其他输入以及需要注意的任何事项。不包括大小写变化。

代码 输出 其他结果 备注
{{KV Type:zh-cn|axis}} <axis>
{{KV Type:zh-cn|bool}} <boolean(en)> boolean (in all games since Alien Swarm engine branch) (also in Garry's Mod)
在早期游戏中使用 choices 替代。
{{KV Type:zh-cn|choices}} <choices>
{{KV Type:zh-cn|color255}} <color255(en)> RGB
{{KV Type:zh-cn|color255 + int}} <color255(en) + int(en)> color255+int
{{KV Type:zh-cn|env_cubemap / texture}} <env_cubemap/texture(en)> cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture
{{KV Type:zh-cn|filter}} <filter(en)> filterclass
{{KV Type:zh-cn|float}} <float(en)>
{{KV Type:zh-cn|int}} <integer(en)> integer
{{KV Type:zh-cn|int 0-10}} <integer(en) 0–10> 用于 ambient_generic
{{KV Type:zh-cn|int 0-100}} <integer(en) 0–100> 用于 ambient_generic
{{KV Type:zh-cn|int 0-1000}} <integer(en) 0–1000> 用于 ambient_generic
{{KV Type:zh-cn|int 0-255}} <integer(en) 0–255> 用于 ambient_generic
{{KV Type:zh-cn|property}} <property(en)> material property 链接到 Material surface properties
{{KV Type:zh-cn|RGB matrix}} <RGB(en) matrix(en)> 是两个单独的链接。
{{KV Type:zh-cn|script}} <script(en)> vscript 链接到 Vscript
{{KV Type:zh-cn|scriptlist}} <scriptlist(en)>
{{KV Type:zh-cn|string}} <string(en)> str
{{KV Type:zh-cn|studio}} <model path(en)> model, modelname, model name, modelpath, model path 链接到 Model.
{{KV Type:zh-cn|target}} <targetname(en)> target_name, target_destination, target_source
{{KV Type:zh-cn|vector}} <vector(en)> vecline
{{KV Type:zh-cn|vector2}} <vector2(en)>
{{KV Type:zh-cn|vector3}} <vector3(en)>
{{KV Type:zh-cn|vector4}} <vector4(en)>
{{KV Type:zh-cn|void}} <void> <blank>

任何其他输入都将是指向该输入的链接。

另请参阅

  • {{IO:zh-cn}}
  • {{KV:zh-cn}}
  • {{MatParam:zh-cn}}