Template:KV Type:zh-cn
一个给 FGD 和着色器参数模板使用的列表参数模板,以便于链接到各种变量类型。
用法
此模板接受一个参数:变量类型的名称。它根据此参数输出特定的字符串。它不区分大小写。
下表列出了输入、其结果、产生相同结果的其他输入以及需要注意的任何事项。不包括大小写变化。
代码 | 输出 | 其他结果 | 备注 |
---|---|---|---|
{{KV Type:zh-cn|axis}} |
<axis> | 轴 |
||
{{KV Type:zh-cn|bool}} |
<boolean> | 布尔值 |
boolean | (in all games since ) (also in ) 在早期游戏中使用 choices 替代。 |
{{KV Type:zh-cn|choices}} |
<choices> |
||
{{KV Type:zh-cn|color255}} |
<color255> |
RGB | |
{{KV Type:zh-cn|color255 + int}} |
<color255 > + <int> | 整数 |
color255+int | |
{{KV Type:zh-cn|env_cubemap / texture}} |
< / <texture> | 纹理 |
cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture | |
{{KV Type:zh-cn|filter}} |
<filter> |
filterclass | |
{{KV Type:zh-cn|float}} |
<float> | 浮点型 |
||
{{KV Type:zh-cn|int}} |
<integer> | 整数 |
integer | |
{{KV Type:zh-cn|int 0-10}} |
<integer> | 整数 0-10 |
用于 ambient_generic
| |
{{KV Type:zh-cn|int 0-100}} |
<integer | 整数 0-100 |
用于 ambient_generic
| |
{{KV Type:zh-cn|int 0-1000}} |
<integer> | 整数 0-1000 |
用于 ambient_generic
| |
{{KV Type:zh-cn|int 0-255}} |
<integer> | 整数 0-255 |
用于 ambient_generic
| |
{{KV Type:zh-cn|property}} |
<property> | 属性 |
material property | 链接到 Material surface properties。 |
{{KV Type:zh-cn|RGB matrix}} |
<RGB matrix> |
是两个单独的链接。 | |
{{KV Type:zh-cn|script}} |
<script> | 脚本 |
vscript | 链接到 Vscript。 |
{{KV Type:zh-cn|scriptlist}} |
<scriptlist> | 脚本列表 |
||
{{KV Type:zh-cn|string}} |
<string > | 字符串 |
str | |
{{KV Type:zh-cn|studio}} |
<model path> | 模型文件路径 |
model, modelname, model name, modelpath, model path | 链接到 Model. |
{{KV Type:zh-cn|target}} |
<targetname> | 目标名 |
target_name, target_destination, target_source | |
{{KV Type:zh-cn|vector}} |
<vector> | 向量 |
vecline | |
{{KV Type:zh-cn|vector2}} |
<vector2> | 向量2 |
||
{{KV Type:zh-cn|vector3}} |
<vector3> | 向量3 |
||
{{KV Type:zh-cn|vector4}} |
<vector4> | 向量4 |
||
{{KV Type:zh-cn|void}} |
<void> |
<blank> |
任何其他输入都将是指向该输入的链接。
另请参阅
{{IO:zh-cn}}
{{KV:zh-cn}}
{{MatParam:zh-cn}}
以上文档摘自 Template:KV Type:zh-cn/doc。(编辑 | 历史记录)
编辑者可以在此模板的沙盒 (创建 | 将本页内容写入至沙盒页面) 和 testcases(测试用例) (创建) 页面编辑。
请将分类(类别)添加到 /doc 子页面。 此模板的子页面
编辑者可以在此模板的沙盒 (创建 | 将本页内容写入至沙盒页面) 和 testcases(测试用例) (创建) 页面编辑。
请将分类(类别)添加到 /doc 子页面。 此模板的子页面