# Chinese (Simplified) translation of the Godot Engine class reference. # Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. # Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). # This file is distributed under the same license as the Godot source code. # # Haoyu Qiu , 2020, 2021, 2022. # fangxvan <2661712415@qq.com>, 2020. # yzt <834950797@qq.com>, 2020. # 懵逼Kitty , 2020, 2021. # MintSoda , 2020. # Gardner Belgrade , 2020. # WangYi13 , 2020, 2021. # UnluckyNinja , 2020. # idleman <1524328475@qq.com>, 2020, 2021. # Oberon Zheng <360119124@qq.com>, 2020, 2021. # li yong , 2020. # Pierre Stempin , 2020. # BinotaLIU , 2020. # Zhirong Qin (fengjiongmax) , 2020, 2021. # zzjbook , 2020. # Gary Wang , 2020. # cyj , 2020. # twoBornottwoB <305766341@qq.com>, 2021. # zzh , 2021. # longhjues , 2021. # 800Coins , 2021. # qjyqjyqjyqjy , 2021. # mzzhao <13030224963@163.com>, 2021. # Baiyuan Qiu <1061688677@qq.com>, 2021. # CZM <605557370@qq.com>, 2021. # Zephyr , 2021. # 扬 , 2021. # luoji <564144019@qq.com>, 2021. # Merlin Bao , 2021. # Felix Xing , 2021. # Wang Chenhao , 2021. # Juer Genie Whang <2695996944@qq.com>, 2021. # SimonChang , 2021. # zeng haochen , 2021. # suplife <2634557184@qq.com>, 2021. # Magian , 2021. # ji233 <27987772@qq.com>, 2021. # 沈士超 , 2021. # MisakaRua <1150235785@qq.com>, 2021. # KodLenss , 2021. # Wang Tseryui <2251439097@qq.com>, 2021. # knight100 , 2021. # jixun , 2021. # Hapenia Lans , 2021. # 枫叶 <928584916@qq.com>, 2021. # B TO THE R <1470997723@qq.com>, 2021. # 有趣极了 <2944595791@qq.com>, 2021. # 刘亚西 , 2021. # 诗鸷Temsys , 2021. # Sam Sun , 2021. # sudo-behappy <3216539984@qq.com>, 2021. # Cc <2590090025@qq.com>, 2021. # 苏轼 , 2021. # ErrorDreemurr , 2021. # 烧风 , 2022. msgid "" msgstr "" "Project-Id-Version: Godot Engine class reference\n" "Report-Msgid-Bugs-To: https://github.com/godotengine/godot\n" "PO-Revision-Date: 2022-06-08 06:47+0000\n" "Last-Translator: Haoyu Qiu \n" "Language-Team: Chinese (Simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8-bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Weblate 4.13-dev\n" #: doc/tools/make_rst.py msgid "Description" msgstr "描述" #: doc/tools/make_rst.py msgid "Tutorials" msgstr "教程" #: doc/tools/make_rst.py msgid "Properties" msgstr "属性" #: doc/tools/make_rst.py msgid "Methods" msgstr "方法" #: doc/tools/make_rst.py msgid "Theme Properties" msgstr "主题属性" #: doc/tools/make_rst.py msgid "Signals" msgstr "信号" #: doc/tools/make_rst.py msgid "Enumerations" msgstr "枚举" #: doc/tools/make_rst.py msgid "Constants" msgstr "常量" #: doc/tools/make_rst.py msgid "Property Descriptions" msgstr "属性说明" #: doc/tools/make_rst.py msgid "Method Descriptions" msgstr "方法说明" #: doc/tools/make_rst.py msgid "Theme Property Descriptions" msgstr "主题属性说明" #: doc/tools/make_rst.py msgid "Inherits:" msgstr "继承:" #: doc/tools/make_rst.py msgid "Inherited By:" msgstr "派生:" #: doc/tools/make_rst.py msgid "(overrides %s)" msgstr "(覆盖 %s)" #: doc/tools/make_rst.py msgid "Default" msgstr "默认" #: doc/tools/make_rst.py msgid "Setter" msgstr "Setter" #: doc/tools/make_rst.py msgid "value" msgstr "值" #: doc/tools/make_rst.py msgid "Getter" msgstr "Getter" #: doc/tools/make_rst.py msgid "" "This method should typically be overridden by the user to have any effect." msgstr "本方法通常需要用户覆盖才能生效。" #: doc/tools/make_rst.py msgid "" "This method has no side effects. It doesn't modify any of the instance's " "member variables." msgstr "本方法没有副作用。不会修改该实例的任何成员变量。" #: doc/tools/make_rst.py msgid "" "This method accepts any number of arguments after the ones described here." msgstr "本方法除了在此处描述的参数外,还能够继续接受任意数量的参数。" #: doc/tools/make_rst.py msgid "This method is used to construct a type." msgstr "本方法用于构造某个类型。" #: doc/tools/make_rst.py msgid "" "This method doesn't need an instance to be called, so it can be called " "directly using the class name." msgstr "调用本方法无需实例,所以可以直接使用类名调用。" #: doc/tools/make_rst.py msgid "" "This method describes a valid operator to use with this type as left-hand " "operand." msgstr "本方法描述的是使用本类型作为左操作数的有效操作符。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "Built-in GDScript functions." msgstr "内置 GDScript 函数。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "List of core built-in GDScript functions. Math functions and other " "utilities. Everything else is provided by objects. (Keywords: builtin, built " "in, global functions.)" msgstr "" "GDScript 核心内置函数列表。包含数学函数及其他实用工具,其他都由继承自对象的类" "提供。(关键词:内置、内建、全局函数。)" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a color constructed from integer red, green, blue, and alpha " "channels. Each channel should have 8 bits of information ranging from 0 to " "255.\n" "[code]r8[/code] red channel\n" "[code]g8[/code] green channel\n" "[code]b8[/code] blue channel\n" "[code]a8[/code] alpha channel\n" "[codeblock]\n" "red = Color8(255, 0, 0)\n" "[/codeblock]" msgstr "" "返回由整数红色、绿色、蓝色、Alpha 通道构成的颜色。每个通道应该都有 8 位,包含" "范围从 0 到 255 的信息。\n" "[code]r8[/code] 红色通道\n" "[code]g8[/code] 绿色通道\n" "[code]b8[/code] 蓝色通道\n" "[code]a8[/code] Alpha 通道\n" "[codeblock]\n" "red = Color8(255, 0, 0)\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a color according to the standardized [code]name[/code] with " "[code]alpha[/code] ranging from 0 to 1.\n" "[codeblock]\n" "red = ColorN(\"red\", 1)\n" "[/codeblock]\n" "Supported color names are the same as the constants defined in [Color]." msgstr "" "根据标准名称 [code]name[/code] 和值在 0 到 1 区间的 [code]alpha[/code] 返回颜" "色。\n" "[codeblock]\n" "red = ColorN(\"red\", 1)\n" "[/codeblock]\n" "支持的颜色名称与 [Color] 中定义的常量相同。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the absolute value of parameter [code]s[/code] (i.e. positive " "value).\n" "[codeblock]\n" "a = abs(-1) # a is 1\n" "[/codeblock]" msgstr "" "返回参数 [code]s[/code] 的绝对值(即正值)。\n" "[codeblock]\n" "a = abs(-1) # a 是 1\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the arc cosine of [code]s[/code] in radians. Use to get the angle of " "cosine [code]s[/code]. [code]s[/code] must be between [code]-1.0[/code] and " "[code]1.0[/code] (inclusive), otherwise, [method acos] will return [constant " "NAN].\n" "[codeblock]\n" "# c is 0.523599 or 30 degrees if converted with rad2deg(s)\n" "c = acos(0.866025)\n" "[/codeblock]" msgstr "" "以弧度单位,返回 [code]s[/code] 的反余弦值。用于求余弦值为 [code]s[/code] 的" "角度。[code]s[/code] 必须在 [code]-1.0[/code] 到 [code]1.0[/code] 之间(闭区" "间),否则 [method acos] 将返回 [constant NAN]。\n" "[codeblock]\n" "# 运算后 c 是 0.523599(弧度),对应角度30度(可用 rad2deg(s) 转换求得)。\n" "c = acos(0.866025)\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the arc sine of [code]s[/code] in radians. Use to get the angle of " "sine [code]s[/code]. [code]s[/code] must be between [code]-1.0[/code] and " "[code]1.0[/code] (inclusive), otherwise, [method asin] will return [constant " "NAN].\n" "[codeblock]\n" "# s is 0.523599 or 30 degrees if converted with rad2deg(s)\n" "s = asin(0.5)\n" "[/codeblock]" msgstr "" "以弧度单位,返回 [code]s[/code] 的反正弦值。用于求正弦值为 [code]s[/code] 的" "角度。[code]s[/code] 必须在 [code]-1.0[/code] 到 [code]1.0[/code] 之间(闭区" "间),否则 [method asin] 将返回 [constant NAN]。\n" "[codeblock]\n" "# s 运算后是 0.523599(弧度),对应角度30度(可用 rad2deg(s) 转换)。\n" "s = asin(0.5)\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Asserts that the [code]condition[/code] is [code]true[/code]. If the " "[code]condition[/code] is [code]false[/code], an error is generated. When " "running from the editor, the running project will also be paused until you " "resume it. This can be used as a stronger form of [method push_error] for " "reporting errors to project developers or add-on users.\n" "[b]Note:[/b] For performance reasons, the code inside [method assert] is " "only executed in debug builds or when running the project from the editor. " "Don't include code that has side effects in an [method assert] call. " "Otherwise, the project will behave differently when exported in release " "mode.\n" "The optional [code]message[/code] argument, if given, is shown in addition " "to the generic \"Assertion failed\" message. You can use this to provide " "additional details about why the assertion failed.\n" "[codeblock]\n" "# Imagine we always want speed to be between 0 and 20.\n" "var speed = -10\n" "assert(speed < 20) # True, the program will continue\n" "assert(speed >= 0) # False, the program will stop\n" "assert(speed >= 0 and speed < 20) # You can also combine the two conditional " "statements in one check\n" "assert(speed < 20, \"speed = %f, but the speed limit is 20\" % speed) # Show " "a message with clarifying details\n" "[/codeblock]" msgstr "" "断言条件 [code]condition[/code] 为 [code]true[/code]。如果条件 " "[code]condition[/code] 为 [code]false[/code] ,则会生成一个错误。如果是从编辑" "器运行的,正在运行的项目还会被暂停,直到手动恢复。该函数可以作为 [method " "push_error] 的加强版,用于向项目开发者或插件用户报错。\n" "[b]注意:[/b]出于对性能的考虑,[method assert] 中的代码只会在调试版本或者从编" "辑器运行项目时执行。所以不要在 [method assert] 调用中加入具有副作用的代码。否" "则,项目在以发行模式导出后将有不一致的行为。\n" "如果给出了可选的 [code]message[/code] 参数,在通用的“Assertion failed”消息之" "外,还会显示该信息。你可以使用它来提供关于断言失败原因的其他详细信息。\n" "[codeblock]\n" "# 比如说我们希望 speed 始终在 0 和 20 之间\n" "speed = -10\n" "assert(speed < 20) # True,程序会继续执行\n" "assert(speed >= 0) # False,程序会停止\n" "assert(speed >= 0 && speed < 20) # 你还可以在单次断言中合并两个条件语句\n" "assert(speed < 20, \"speed = %f, but the speed limit is 20\" % speed) # 在消" "息中显示详情\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the arc tangent of [code]s[/code] in radians. Use it to get the " "angle from an angle's tangent in trigonometry: [code]atan(tan(angle)) == " "angle[/code].\n" "The method cannot know in which quadrant the angle should fall. See [method " "atan2] if you have both [code]y[/code] and [code]x[/code].\n" "[codeblock]\n" "a = atan(0.5) # a is 0.463648\n" "[/codeblock]" msgstr "" "以弧度返回 [code]s[/code] 的反正切值。在三角函数中,使用它可以由一个角的正切" "值得到这个角:[code]atan(tan(angle)) == angle[/code]。\n" "该方法无法确定这个角应该落在哪个象限。如果同时已知 [code]y[/code] 和 " "[code]x[/code] 值,可参考 [method atan2]。\n" "[codeblock]\n" "a = atan(0.5) # a 为 0.463648\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the arc tangent of [code]y/x[/code] in radians. Use to get the angle " "of tangent [code]y/x[/code]. To compute the value, the method takes into " "account the sign of both arguments in order to determine the quadrant.\n" "Important note: The Y coordinate comes first, by convention.\n" "[codeblock]\n" "a = atan2(0, -1) # a is 3.141593\n" "[/codeblock]" msgstr "" "以弧度返回 [code]y/x[/code] 的反正切。用于获取正切值为 [code]y/x[/code] 的角" "度。为了求解该值,该方法考虑两个参数的符号以确定象限。\n" "重要说明:按照惯例,Y 坐标为第一个参数。\n" "[codeblock]\n" "a = atan2(0, -1) # a 为 3.141593\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Decodes a byte array back to a value. When [code]allow_objects[/code] is " "[code]true[/code] decoding objects is allowed.\n" "[b]WARNING:[/b] Deserialized object can contain code which gets executed. Do " "not use this option if the serialized object comes from untrusted sources to " "avoid potential security threats (remote code execution)." msgstr "" "将字节数组解码返回一个值。当 [code]allow_objects[/code] 为 [code]true[/code] " "时,允许解码对象。\n" "[b]警告:[/b]反序列化得到的对象可能包含可执行的代码。如果序列化的对象的来源不" "可信,请不要激活此选项,以避免潜在的安全威胁(远程执行代码)。" #: modules/gdscript/doc_classes/@GDScript.xml #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Converts a 2D point expressed in the cartesian coordinate system (X and Y " "axis) to the polar coordinate system (a distance from the origin and an " "angle)." msgstr "" "将 2D 点的坐标表示,从笛卡尔坐标系(X 和 Y 轴)转换为极坐标系(到原点的距离和" "角度)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Rounds [code]s[/code] upward (towards positive infinity), returning the " "smallest whole number that is not less than [code]s[/code].\n" "[codeblock]\n" "a = ceil(1.45) # a is 2.0\n" "a = ceil(1.001) # a is 2.0\n" "[/codeblock]\n" "See also [method floor], [method round], [method stepify], and [int]." msgstr "" "将 [code]s[/code] 向上舍入(朝正无穷大),返回不小于 [code]s[/code] 的最小整" "数。\n" "[codeblock]\n" "a = ceil(1.45) # a 是 2.0\n" "a = ceil(1.001) # a 是 2.0\n" "[/codeblock]\n" "参阅 [method floor]、[method round]、[method stepify]、以及 [int]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a character as a String of the given Unicode code point (which is " "compatible with ASCII code).\n" "[codeblock]\n" "a = char(65) # a is \"A\"\n" "a = char(65 + 32) # a is \"a\"\n" "a = char(8364) # a is \"€\"\n" "[/codeblock]\n" "This is the inverse of [method ord]." msgstr "" "返回一个单字符字符串,该字符为给定 Unicode 码位(与 ASCII 码兼容)。\n" "[codeblock]\n" "a = char(65) # a 是 \"A\"\n" "a = char(65 + 32) # a 是 \"a\"\n" "a = char(8364) # a 是 \"€\"\n" "[/codeblock]\n" "这是 [method ord] 的逆操作。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Clamps [code]value[/code] and returns a value not less than [code]min[/code] " "and not more than [code]max[/code].\n" "[codeblock]\n" "a = clamp(1000, 1, 20) # a is 20\n" "a = clamp(-10, 1, 20) # a is 1\n" "a = clamp(15, 1, 20) # a is 15\n" "[/codeblock]" msgstr "" "钳制 [code]value[/code] ,返回一个不小于 [code]min[/code] 且不大于 " "[code]max[/code] 的值。\n" "[codeblock]\n" "a = clamp(1000, 1, 20) # a 为 20\n" "a = clamp(-10, 1, 20) # a 为 1\n" "a = clamp(15, 1, 20) # a 为 15\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts from a type to another in the best way possible. The [code]type[/" "code] parameter uses the [enum Variant.Type] values.\n" "[codeblock]\n" "a = Vector2(1, 0)\n" "# Prints 1\n" "print(a.length())\n" "a = convert(a, TYPE_STRING)\n" "# Prints 6 as \"(1, 0)\" is 6 characters\n" "print(a.length())\n" "[/codeblock]" msgstr "" "尽可能以最佳方式将一种类型转换为另一种类型。[code]type[/code] 参数应使用 " "[enum Variant.Type] 作为值。\n" "[codeblock]\n" "a = Vector2(1, 0)\n" "# 输出 1\n" "print(a.length())\n" "a = convert(a, TYPE_STRING)\n" "# 输出 6,因为 \"(1, 0)\" 一共 6 个字符\n" "print(a.length())\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the cosine of angle [code]s[/code] in radians.\n" "[codeblock]\n" "a = cos(TAU) # a is 1.0\n" "a = cos(PI) # a is -1.0\n" "[/codeblock]" msgstr "" "返回弧度角 [code]s[/code] 的正弦值。\n" "[codeblock]\n" "a = cos(TAU) # a = 1.0\n" "a = cos(PI) # a = -1.0\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the hyperbolic cosine of [code]s[/code] in radians.\n" "[codeblock]\n" "print(cosh(1)) # Prints 1.543081\n" "[/codeblock]" msgstr "" "返回弧度角 [code]s[/code] 的双曲余弦值。\n" "[codeblock]\n" "print(cosh(1)) # 打印 1.543081\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "Converts from decibels to linear energy (audio)." msgstr "从分贝转换为线性能量(音频)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "Deprecated alias for [method step_decimals]." msgstr "[method step_decimals] 的弃用的别名。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "[b]Note:[/b] [code]dectime[/code] has been deprecated and will be removed in " "Godot 4.0, please use [method move_toward] instead.\n" "Returns the result of [code]value[/code] decreased by [code]step[/code] * " "[code]amount[/code].\n" "[codeblock]\n" "a = dectime(60, 10, 0.1)) # a is 59.0\n" "[/codeblock]" msgstr "" "[b]注意:[/b][code]dectime[/code] 已被废弃,将在 Godot 4.0 中删除,请使用 " "[method move_toward] 代替。\n" "返回 [code]value[/code] 减去 [code]step[/code] * [code]amount[/code] 的结" "果。\n" "[codeblock]\n" "a = dectime(60, 10, 0.1)) # a 是 59.0\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Compares two values by checking their actual contents, recursing into any " "`Array` or `Dictionary` up to its deepest level.\n" "This compares to [code]==[/code] in a number of ways:\n" "- For [code]null[/code], [code]int[/code], [code]float[/code], [code]String[/" "code], [code]Object[/code] and [code]RID[/code] both [code]deep_equal[/code] " "and [code]==[/code] work the same.\n" "- For [code]Dictionary[/code], [code]==[/code] considers equality if, and " "only if, both variables point to the very same [code]Dictionary[/code], with " "no recursion or awareness of the contents at all.\n" "- For [code]Array[/code], [code]==[/code] considers equality if, and only " "if, each item in the first [code]Array[/code] is equal to its counterpart in " "the second [code]Array[/code], as told by [code]==[/code] itself. That " "implies that [code]==[/code] recurses into [code]Array[/code], but not into " "[code]Dictionary[/code].\n" "In short, whenever a [code]Dictionary[/code] is potentially involved, if you " "want a true content-aware comparison, you have to use [code]deep_equal[/" "code]." msgstr "" "根据实际的内容对两个值进行比较,对于 `Array` 或 `Dictionary` 会递归至最深一" "层。\n" "与 [code]==[/code] 的异同有:\n" "- 对于 [code]null[/code]、[code]int[/code]、[code]float[/code]、" "[code]String[/code]、[code]Object[/code]、[code]RID[/code]," "[code]deep_equal[/code] 与 [code]==[/code] 相同。\n" "- 对于 [code]Dictionary[/code],当且仅当双方指向同一个 [code]Dictionary[/" "code] 时,[code]==[/code] 才会认为相等,不进行递归、完全不会考虑其内容。\n" "- 对于 [code]Array[/code],当且仅当第一个 [code]Array[/code] 中的每一个元素都" "与第二个 [code]Array[/code] 中的对应元素使用 [code]==[/code] 比较相等时," "[code]==[/code] 才会认为相等。即 [code]==[/code] 会递归进 [code]Array[/" "code],但不会递归进 [code]Dictionary[/code]。\n" "简而言之,可能涉及 [code]Dictionary[/code] 时,如果你想要对内容敏感的比较,就" "必须使用 [code]deep_equal[/code]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts an angle expressed in degrees to radians.\n" "[codeblock]\n" "r = deg2rad(180) # r is 3.141593\n" "[/codeblock]" msgstr "" "将角度值转换为弧度值。\n" "[codeblock]\n" "r = deg2rad(180) # r = 3.141593\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts a dictionary (previously created with [method inst2dict]) back to " "an instance. Useful for deserializing." msgstr "" "将(之前使用 [method inst2dict] 创建的)字典转换回实例。适用于反序列化。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns an \"eased\" value of [code]x[/code] based on an easing function " "defined with [code]curve[/code]. This easing function is based on an " "exponent. The [code]curve[/code] can be any floating-point number, with " "specific values leading to the following behaviors:\n" "[codeblock]\n" "- Lower than -1.0 (exclusive): Ease in-out\n" "- 1.0: Linear\n" "- Between -1.0 and 0.0 (exclusive): Ease out-in\n" "- 0.0: Constant\n" "- Between 0.0 to 1.0 (exclusive): Ease out\n" "- 1.0: Linear\n" "- Greater than 1.0 (exclusive): Ease in\n" "[/codeblock]\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/3.4/img/" "ease_cheatsheet.png]ease() curve values cheatsheet[/url]\n" "See also [method smoothstep]. If you need to perform more advanced " "transitions, use [Tween] or [AnimationPlayer]." msgstr "" "返回 [code]x[/code] “缓动后”的值,结果基于使用 [code]curve[/code] 值定义的缓" "动函数。该缓动函数是基于指数的。[code]curve[/code] 值可以是任意浮点数,具体数" "值会导致以下行为:\n" "[codeblock]\n" "- 低于 -1.0(开区间):缓入缓出\n" "- -1.0:线性\n" "- 在 -1.0 和 0.0 之间(开区间):缓出缓入\n" "- 0.0:恒定\n" "- 在 0.0 到 1.0 之间(开区间):缓出\n" "- 1.0:线性\n" "- 大于 1.0(开区间):缓入\n" "[/codeblock]\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/3.4/img/" "ease_cheatsheet.png]ease() 曲线值速查表[/url]\n" "请参阅 [method smoothstep]。如果你需要执行更高级的过渡,请使用 [Tween] 或 " "[AnimationPlayer]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "The natural exponential function. It raises the mathematical constant [b]e[/" "b] to the power of [code]s[/code] and returns it.\n" "[b]e[/b] has an approximate value of 2.71828, and can be obtained with " "[code]exp(1)[/code].\n" "For exponents to other bases use the method [method pow].\n" "[codeblock]\n" "a = exp(2) # Approximately 7.39\n" "[/codeblock]" msgstr "" "自然指数函数。返回 [b]e[/b] 的 [b]s[/b] 次幂。\n" "[b]e[/b] 的近似值为 2.71828,可以使用 [code]exp(1)[/code] 获得。\n" "求其他底数的指数应使用 [method pow] 方法。\n" "[codeblock]\n" "a = exp(2) # 大约是 7.39\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Rounds [code]s[/code] downward (towards negative infinity), returning the " "largest whole number that is not more than [code]s[/code].\n" "[codeblock]\n" "a = floor(2.45) # a is 2.0\n" "a = floor(2.99) # a is 2.0\n" "a = floor(-2.99) # a is -3.0\n" "[/codeblock]\n" "See also [method ceil], [method round], [method stepify], and [int].\n" "[b]Note:[/b] This method returns a float. If you need an integer and " "[code]s[/code] is a non-negative number, you can use [code]int(s)[/code] " "directly." msgstr "" "向下舍入 [code]s[/code] (朝负无穷大),返回不大于 [code]s[/code] 的最大整" "数。\n" "[codeblock]\n" "a = floor(2.45) # a = 2.0\n" "a = floor(2.99) # a = 2.0\n" "a = floor(-2.99) # a = -3.0\n" "[/codeblock]\n" "请参阅 [method ceil]、[method round]、[method stepify] 和 [int]。\n" "[b]注意:[/b]该方法返回一个浮点数。如果你需要整数,而 [code]s[/code] 是非负" "数,你可以直接使用 [code]int(s)[/code]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the floating-point remainder of [code]a/b[/code], keeping the sign " "of [code]a[/code].\n" "[codeblock]\n" "r = fmod(7, 5.5) # r is 1.5\n" "[/codeblock]\n" "For the integer remainder operation, use the % operator." msgstr "" "返回 [code]a/b[/code] 的浮点型余数, 符号与 [code]a[/code]一致。\n" "[codeblock]\n" "r = fmod(7, 5.5) # r = 1.5\n" "[/codeblock]\n" "对整数取余请使用操作符 %。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the floating-point modulus of [code]a/b[/code] that wraps equally in " "positive and negative.\n" "[codeblock]\n" "for i in 7:\n" " var x = 0.5 * i - 1.5\n" " print(\"%4.1f %4.1f %4.1f\" % [x, fmod(x, 1.5), fposmod(x, 1.5)])\n" "[/codeblock]\n" "Produces:\n" "[codeblock]\n" "-1.5 -0.0 0.0\n" "-1.0 -1.0 0.5\n" "-0.5 -0.5 1.0\n" " 0.0 0.0 0.0\n" " 0.5 0.5 0.5\n" " 1.0 1.0 1.0\n" " 1.5 0.0 0.0\n" "[/codeblock]" msgstr "" "返回 [code]a/b[/code] 的浮点模数,对正负数进行一致的循环。\n" "[codeblock]\n" "for i in 7:\n" " var x = 0.5 * i - 1.5\n" " print(\"%4.1f %4.1f %4.1f\" % [x, fmod(x, 1.5), fposmod(x, 1.5)] )\n" "[/codeblock]\n" "产生的结果:\n" "[codeblock]\n" "-1.5 -0.0 0.0\n" "-1.0 -1.0 0.5\n" "-0.5 -0.5 1.0\n" " 0.0 0.0 0.0\n" " 0.5 0.5 0.5\n" " 1.0 1.0 1.0\n" " 1.5 0.0 0.0\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a reference to the specified function [code]funcname[/code] in the " "[code]instance[/code] node. As functions aren't first-class objects in " "GDscript, use [code]funcref[/code] to store a [FuncRef] in a variable and " "call it later.\n" "[codeblock]\n" "func foo():\n" " return(\"bar\")\n" "\n" "a = funcref(self, \"foo\")\n" "print(a.call_func()) # Prints bar\n" "[/codeblock]" msgstr "" "返回对 [code]instance[/code] 节点中指定函数 [code]funcname[/code] 的引用。由" "于函数在GDScript中不是一级对象,因此请使用 [code]funcref[/code] 将 [FuncRef] " "存储在变量中,然后再调用它。\n" "[codeblock]\n" "func foo():\n" " return(\"bar\")\n" "\n" "a = funcref(self, \"foo\")\n" "print(a.call_func()) # 输出 bar\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns an array of dictionaries representing the current call stack.\n" "[codeblock]\n" "func _ready():\n" " foo()\n" "\n" "func foo():\n" " bar()\n" "\n" "func bar():\n" " print(get_stack())\n" "[/codeblock]\n" "would print\n" "[codeblock]\n" "[{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, " "source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}]\n" "[/codeblock]" msgstr "" "返回一个表示当前调用堆栈的字典数组。\n" "[codeblock]\n" "func _ready():\n" " foo()\n" "\n" "func foo():\n" " bar()\n" "\n" "func bar():\n" " print(get_stack())\n" "[/codeblock]\n" "会输出\n" "[codeblock]\n" "[{function:bar, line:12, source:res://script.gd}, {function:foo, line:9, " "source:res://script.gd}, {function:_ready, line:6, source:res://script.gd}]\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the integer hash of the variable passed.\n" "[codeblock]\n" "print(hash(\"a\")) # Prints 177670\n" "[/codeblock]" msgstr "" "返回传入的变量的整数哈希值。\n" "[codeblock]\n" "print(hash(\"a\")) # 输出 177670\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the passed instance converted to a dictionary (useful for " "serializing).\n" "[codeblock]\n" "var foo = \"bar\"\n" "func _ready():\n" " var d = inst2dict(self)\n" " print(d.keys())\n" " print(d.values())\n" "[/codeblock]\n" "Prints out:\n" "[codeblock]\n" "[@subpath, @path, foo]\n" "[, res://test.gd, bar]\n" "[/codeblock]" msgstr "" "返回传入的实例转换为的字典(可用于序列化)。\n" "[codeblock]\n" "var foo = \"bar\"\n" "func _ready():\n" " var d = inst2dict(self)\n" " print(d.keys())\n" " print(d.values())\n" "[/codeblock]\n" "输出:\n" "[codeblock]\n" "[@subpath, @path, foo]\n" "[, res://test.gd, bar]\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the Object that corresponds to [code]instance_id[/code]. All Objects " "have a unique instance ID.\n" "[codeblock]\n" "var foo = \"bar\"\n" "func _ready():\n" " var id = get_instance_id()\n" " var inst = instance_from_id(id)\n" " print(inst.foo) # Prints bar\n" "[/codeblock]" msgstr "" "返回 [code]instance_id[/code] 所对应的对象。所有对象都有独有的实例 ID。\n" "[codeblock]\n" "var foo = \"bar\"\n" "func _ready():\n" " var id = get_instance_id()\n" " var inst = instance_from_id(id)\n" " print(inst.foo) # 输出 bar\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns an interpolation or extrapolation factor considering the range " "specified in [code]from[/code] and [code]to[/code], and the interpolated " "value specified in [code]weight[/code]. The returned value will be between " "[code]0.0[/code] and [code]1.0[/code] if [code]weight[/code] is between " "[code]from[/code] and [code]to[/code] (inclusive). If [code]weight[/code] is " "located outside this range, then an extrapolation factor will be returned " "(return value lower than [code]0.0[/code] or greater than [code]1.0[/" "code]).\n" "[codeblock]\n" "# The interpolation ratio in the `lerp()` call below is 0.75.\n" "var middle = lerp(20, 30, 0.75)\n" "# `middle` is now 27.5.\n" "# Now, we pretend to have forgotten the original ratio and want to get it " "back.\n" "var ratio = inverse_lerp(20, 30, 27.5)\n" "# `ratio` is now 0.75.\n" "[/codeblock]\n" "See also [method lerp] which performs the reverse of this operation." msgstr "" "返回插值或外推的因子。范围用 [code]from[/code] 和 [code]to[/code] 指定,插值" "后的值用 [code]weight[/code] 指定。如果 [code]weight[/code] 在 [code]from[/" "code] 和 [code]to[/code] 之间(包含),那么返回的值在 [code]0.0[/code] 和 " "[code]1.0[/code] 之间。如果 [code]weight[/code] 在该范围之外,则返回的是外推" "因子(返回值小于 [code]0.0[/code] 或大于 [code]1.0[/code])。\n" "[codeblock]\n" "# 下面的 `lerp()` 调用时的插值比例是 0.75。\n" "var middle = lerp(20, 30, 0.75)\n" "# `middle` 现在是 27.5。\n" "# 现在,我们假装忘记了原来的比例,想要找到是多少。\n" "var ratio = inverse_lerp(20, 30, 27.5)\n" "# `ratio`现在是 0.75。\n" "[/codeblock]\n" "本操作的逆操作请参阅 [method lerp]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns [code]true[/code] if [code]a[/code] and [code]b[/code] are " "approximately equal to each other.\n" "Here, approximately equal means that [code]a[/code] and [code]b[/code] are " "within a small internal epsilon of each other, which scales with the " "magnitude of the numbers.\n" "Infinity values of the same sign are considered equal." msgstr "" "如果 [code]a[/code] 和 [code]b[/code] 彼此近似相等,则返回 [code]true[/" "code]。\n" "这里,近似相等意味着 [code]a[/code] 和 [code]b[/code] 相互之间在一个小的内部 " "ε 里,这个内部 ε 随着数字的大小而变化。 \n" "相同符号的无穷大值被认为是相等的。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns whether [code]s[/code] is an infinity value (either positive " "infinity or negative infinity)." msgstr "返回 [code]s[/code] 是否为无穷大值(正无穷大或负无穷大)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns whether [code]instance[/code] is a valid object (e.g. has not been " "deleted from memory)." msgstr "返回 [code]instance[/code] 是否为有效对象(例如尚未从内存中删除)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns whether [code]s[/code] is a NaN (\"Not a Number\" or invalid) value." msgstr "返回 [code]s[/code] 是否为 NaN(“不是数字”或无效)值。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns [code]true[/code] if [code]s[/code] is zero or almost zero.\n" "This method is faster than using [method is_equal_approx] with one value as " "zero." msgstr "" "如果 [code]s[/code] 为零或几乎为零,则返回 [code]true[/code]。\n" "此方法比使用 [method is_equal_approx](其中一个值为零)要快。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns length of Variant [code]var[/code]. Length is the character count of " "String, element count of Array, size of Dictionary, etc.\n" "[b]Note:[/b] Generates a fatal error if Variant can not provide a length.\n" "[codeblock]\n" "a = [1, 2, 3, 4]\n" "len(a) # Returns 4\n" "[/codeblock]" msgstr "" "返回 Variant [code]var[/code] 的长度。长度是字符串的字符数、数组的元素数、字" "典的大小等。\n" "[b]注意:[/b]如果 Variant 无法提供长度,则会产生致命错误。\n" "[codeblock]\n" "a = [1, 2, 3, 4]\n" "len(a) # 返回 4\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Linearly interpolates between two values by the factor defined in " "[code]weight[/code]. To perform interpolation, [code]weight[/code] should be " "between [code]0.0[/code] and [code]1.0[/code] (inclusive). However, values " "outside this range are allowed and can be used to perform [i]extrapolation[/" "i].\n" "If the [code]from[/code] and [code]to[/code] arguments are of type [int] or " "[float], the return value is a [float].\n" "If both are of the same vector type ([Vector2], [Vector3] or [Color]), the " "return value will be of the same type ([code]lerp[/code] then calls the " "vector type's [code]linear_interpolate[/code] method).\n" "[codeblock]\n" "lerp(0, 4, 0.75) # Returns 3.0\n" "lerp(Vector2(1, 5), Vector2(3, 2), 0.5) # Returns Vector2(2, 3.5)\n" "[/codeblock]\n" "See also [method inverse_lerp] which performs the reverse of this operation. " "To perform eased interpolation with [method lerp], combine it with [method " "ease] or [method smoothstep]." msgstr "" "在两个值之间按照 [code]weight[/code] 定义的因数进行线性插值。进行插值时," "[code]weight[/code] 应该在 [code]0.0[/code] 和 [code]1.0[/code] 之间(包" "含)。然而,在此区间外的值也是允许的,可用于执行[i]外推[/i]。\n" "如果 [code]from[/code] 和 [code]to[/code] 参数类型是 [int] 或 [float],返回值" "都是 [float]。\n" "如果两者都是相同的向量类型([Vector2]、[Vector3]或[Color]),返回值将是相同的" "类型([code]lerp[/code] 然后调用该向量类型的 [code]linear_interpolate[/code] " "方法)。\n" "[codeblock]\n" "lerp(0, 4, 0.75) # 返回 3.0\n" "lerp(Vector2(1, 5), Vector2(3, 2), 0.5) # 返回 Vector2(2, 3.5)\n" "[/codeblock]\n" "另请参阅本操作的逆运算 [method inverse_lerp]。要执行缓动的 [method lerp] 插" "值,请将其与 [method ease] 或 [method smoothstep] 组合。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Linearly interpolates between two angles (in radians) by a normalized " "value.\n" "Similar to [method lerp], but interpolates correctly when the angles wrap " "around [constant @GDScript.TAU]. To perform eased interpolation with [method " "lerp_angle], combine it with [method ease] or [method smoothstep].\n" "[codeblock]\n" "extends Sprite\n" "var elapsed = 0.0\n" "func _process(delta):\n" " var min_angle = deg2rad(0.0)\n" " var max_angle = deg2rad(90.0)\n" " rotation = lerp_angle(min_angle, max_angle, elapsed)\n" " elapsed += delta\n" "[/codeblock]\n" "[b]Note:[/b] This method lerps through the shortest path between [code]from[/" "code] and [code]to[/code]. However, when these two angles are approximately " "[code]PI + k * TAU[/code] apart for any integer [code]k[/code], it's not " "obvious which way they lerp due to floating-point precision errors. For " "example, [code]lerp_angle(0, PI, weight)[/code] lerps counter-clockwise, " "while [code]lerp_angle(0, PI + 5 * TAU, weight)[/code] lerps clockwise." msgstr "" "通过归一化值在两个角度之间(以弧度为单位)进行线性插值。\n" "与 [method lerp] 相似,但是当角度环绕 [constant @GDScript.TAU] 时会准确插值。" "要使用 [method lerp_angle] 执行缓动插值,请将其与 [method ease] 或 [method " "smoothstep] 组合。\n" "[codeblock]\n" "extends Sprite\n" "var elapsed = 0.0\n" "func _process(delta):\n" " var min_angle = deg2rad(0.0)\n" " var max_angle = deg2rad(90.0)\n" " rotation = lerp_angle(min_angle, max_angle, elapsed)\n" " elapsed += delta\n" "[/codeblock]\n" "[b]注意:[/b]这个方法会通过 [code]from[/code] 和 [code]to[/code] 之间的最短路" "径进行线性插值。然而,当这两个角度相距大致 [code]PI + k * TAU[/code] 其中 " "[code]k[/code] 为任意整数时,由于浮点数精度误差的缘故,要对插值的方向进行判断" "是很难的。例如,[code]lerp_angle(0, PI, weight)[/code] 会逆时针插值,而 " "[code]lerp_angle(0, PI + 5 * TAU, weight)[/code] 则会顺时针插值。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts from linear energy to decibels (audio). This can be used to " "implement volume sliders that behave as expected (since volume isn't " "linear). Example:\n" "[codeblock]\n" "# \"Slider\" refers to a node that inherits Range such as HSlider or " "VSlider.\n" "# Its range must be configured to go from 0 to 1.\n" "# Change the bus name if you'd like to change the volume of a specific bus " "only.\n" "AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"Master\"), " "linear2db($Slider.value))\n" "[/codeblock]" msgstr "" "从线性能量转换为分贝(音频)。这可用于实现按预期运行的音量滑块(因为音量不是" "线性的)。例如:\n" "[codeblock]\n" "# “Slider”引用的是 HSlider、VSlider 等继承自 Range 的节点。\n" "# 必须将其范围配置为 0 到 1。\n" "# 如果只想修改特定总线的音量,请修改总线名称。\n" "AudioServer.set_bus_volume_db(AudioServer.get_bus_index(\"Master\"), " "linear2db($Slider.value))\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Loads a resource from the filesystem located at [code]path[/code]. The " "resource is loaded on the method call (unless it's referenced already " "elsewhere, e.g. in another script or in the scene), which might cause slight " "delay, especially when loading scenes. To avoid unnecessary delays when " "loading something multiple times, either store the resource in a variable or " "use [method preload].\n" "[b]Note:[/b] Resource paths can be obtained by right-clicking on a resource " "in the FileSystem dock and choosing \"Copy Path\" or by dragging the file " "from the FileSystem dock into the script.\n" "[codeblock]\n" "# Load a scene called main located in the root of the project directory and " "cache it in a variable.\n" "var main = load(\"res://main.tscn\") # main will contain a PackedScene " "resource.\n" "[/codeblock]\n" "[b]Important:[/b] The path must be absolute, a local path will just return " "[code]null[/code].\n" "This method is a simplified version of [method ResourceLoader.load], which " "can be used for more advanced scenarios." msgstr "" "从位于 [code]path[/code] 的文件系统中加载一个资源。该资源在方法调用时被加载" "(除非它已经在其他地方被引用了,例如在另一个脚本或场景中),这可能会导致轻微" "的延迟,特别是在加载场景时。为了避免在多次加载东西时出现不必要的延迟,可以将" "资源存储在一个变量中,或者使用预加载 [method preload]。\n" "[b]注意:[/b]资源路径可以通过右键单击文件系统停靠区中的资源并选择“复制路径”或" "将文件从文件系统停靠区拖到脚本中获得。\n" "[codeblock]\n" "# 加载位于项目目录根部的一个名为 main 的场景,并将其缓存在一个变量中。\n" "var main = load(\"res://main.tscn\") # main 将包含一个 PackedScene 资源。\n" "[/codeblock]\n" "[b]重要提示:[/b]路径必须是绝对的,本地路径将直接返回 [code]null[/code]。\n" "这个方法是 [method ResourceLoader.load] 的简化版,它可以用于更高级的场景。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Natural logarithm. The amount of time needed to reach a certain level of " "continuous growth.\n" "[b]Note:[/b] This is not the same as the \"log\" function on most " "calculators, which uses a base 10 logarithm.\n" "[codeblock]\n" "log(10) # Returns 2.302585\n" "[/codeblock]\n" "[b]Note:[/b] The logarithm of [code]0[/code] returns [code]-inf[/code], " "while negative values return [code]-nan[/code]." msgstr "" "自然对数。持续增长到一定程度所需的时间。\n" "[b]注意:[/b]这个函数与大多数计算器上的对数“log”函数不同,他们适用的底数是 " "10。\n" "[codeblock]\n" "log(10) # 返回 2.302585\n" "[/codeblock]\n" "[b]注意:[/b][code]0[/code] 的对数返回 [code]-inf[/code] ,负值返回 [code]-" "nan[/code] 。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the maximum of two values.\n" "[codeblock]\n" "max(1, 2) # Returns 2\n" "max(-3.99, -4) # Returns -3.99\n" "[/codeblock]" msgstr "" "返回两个值的最大值。\n" "[codeblock]\n" "max(1, 2) # 返回 2\n" "max(-3.99, -4) # 返回 -3.99\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the minimum of two values.\n" "[codeblock]\n" "min(1, 2) # Returns 1\n" "min(-3.99, -4) # Returns -4\n" "[/codeblock]" msgstr "" "返回两个值的最小值。\n" "[codeblock]\n" "min(1, 2) # 返回 1\n" "min(-3.99, -4) # 返回 -4\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Moves [code]from[/code] toward [code]to[/code] by the [code]delta[/code] " "value.\n" "Use a negative [code]delta[/code] value to move away.\n" "[codeblock]\n" "move_toward(5, 10, 4) # Returns 9\n" "move_toward(10, 5, 4) # Returns 6\n" "move_toward(10, 5, -1.5) # Returns 11.5\n" "[/codeblock]" msgstr "" "将 [code]from[/code] 向 [code]to[/code] 移动,移动的长度是 [code]delta[/" "code]。\n" "使用负的 [code]delta[/code] 值则向远离的方向移动。\n" "[codeblock]\n" "move_toward(5, 10, 4) # 返回 9\n" "move_toward(10, 5, 4) # 返回 6\n" "move_toward(10, 5, -1.5) # 返回 11.5\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the nearest equal or larger power of 2 for integer [code]value[/" "code].\n" "In other words, returns the smallest value [code]a[/code] where [code]a = " "pow(2, n)[/code] such that [code]value <= a[/code] for some non-negative " "integer [code]n[/code].\n" "[codeblock]\n" "nearest_po2(3) # Returns 4\n" "nearest_po2(4) # Returns 4\n" "nearest_po2(5) # Returns 8\n" "\n" "nearest_po2(0) # Returns 0 (this may not be what you expect)\n" "nearest_po2(-1) # Returns 0 (this may not be what you expect)\n" "[/codeblock]\n" "[b]WARNING:[/b] Due to the way it is implemented, this function returns " "[code]0[/code] rather than [code]1[/code] for non-positive values of " "[code]value[/code] (in reality, 1 is the smallest integer power of 2)." msgstr "" "返回最接近且不小于整数 [code]value[/code] 的 2 的幂。\n" "换句话说,返回最小值 [code]a[/code],其中 [code]a = pow(2, n)[/code],某些非" "负整数 [code]n[/code] 使得值 [code]value <= a[/code]。\n" "[codeblock]\n" "nearest_po2(3) # 返回 4\n" "nearest_po2(4) # 返回 4\n" "nearest_po2(5) # 返回 8\n" "\n" "nearest_po2(0) # 返回 0(可能出乎意料)\n" "nearest_po2(-1) # 返回 0(可能出乎意料)\n" "[/codeblock]\n" "[b]警告:[/b]由于其实现方式,此函数会对非正数的 [code]value[/code] 返回 " "[code]0[/code] 而不是 [code]1[/code] (实际上 1 是 2 的最小整数幂)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns an integer representing the Unicode code point of the given Unicode " "character [code]char[/code].\n" "[codeblock]\n" "a = ord(\"A\") # a is 65\n" "a = ord(\"a\") # a is 97\n" "a = ord(\"€\") # a is 8364\n" "[/codeblock]\n" "This is the inverse of [method char]." msgstr "" "返回一个整数,该整数表示给定 Unicode 字符 [code]char[/code] 的 Unicode 码" "位。\n" "[codeblock]\n" "a = ord(\"A\") # a 是 65\n" "a = ord(\"a\") # a 是 97\n" "a = ord(\"€\") # a 是 8364\n" "[/codeblock]\n" "这是 [method char] 的逆运算。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Parse JSON text to a Variant. (Use [method typeof] to check if the Variant's " "type is what you expect.)\n" "[b]Note:[/b] The JSON specification does not define integer or float types, " "but only a [i]number[/i] type. Therefore, parsing a JSON text will convert " "all numerical values to [float] types.\n" "[b]Note:[/b] JSON objects do not preserve key order like Godot dictionaries, " "thus, you should not rely on keys being in a certain order if a dictionary " "is constructed from JSON. In contrast, JSON arrays retain the order of their " "elements:\n" "[codeblock]\n" "var p = JSON.parse('[\"hello\", \"world\", \"!\"]')\n" "if typeof(p.result) == TYPE_ARRAY:\n" " print(p.result[0]) # Prints \"hello\"\n" "else:\n" " push_error(\"Unexpected results.\")\n" "[/codeblock]\n" "See also [JSON] for an alternative way to parse JSON text." msgstr "" "将 JSON 文本解析为 Variant。(使用 [method typeof] 检查 Variant 的类型是否符" "合您的期望。)\n" "[b]注意:[/b]JSON 规范未定义整数或浮点类型,仅定义了 [i]number[/i] 类型。 因" "此,解析 JSON 文本会将所有数值转换为 [float] 类型。\n" "[b]注意:[/b]JSON 对象不会像 Godot 字典那样保留键顺序,因此,如果字典是由 " "JSON 构造的,则不应依赖于特定顺序的键。相反,JSON 数组保留其元素的顺序:\n" "[codeblock]\n" "var p = JSON.parse('[\"hello\", \"world\", \"!\"]')\n" "if typeof(p.result) == TYPE_ARRAY:\n" " print(p.result[0]) # 输出 \"hello\"\n" "else:\n" " push_error(\"出乎意料的结果。\")\n" "[/codeblock]\n" "另请参阅 [JSON] 以获取解析 JSON 文本的另一种方法。" #: modules/gdscript/doc_classes/@GDScript.xml #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Converts a 2D point expressed in the polar coordinate system (a distance " "from the origin [code]r[/code] and an angle [code]th[/code]) to the " "cartesian coordinate system (X and Y axis)." msgstr "" "将 2D 点从极坐标系(与原点 [code]r[/code] 的距离和角度 [code]th[/code])转换" "为笛卡尔坐标系(X 和 Y 轴)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the integer modulus of [code]a/b[/code] that wraps equally in " "positive and negative.\n" "[codeblock]\n" "for i in range(-3, 4):\n" " print(\"%2d %2d %2d\" % [i, i % 3, posmod(i, 3)])\n" "[/codeblock]\n" "Produces:\n" "[codeblock]\n" "-3 0 0\n" "-2 -2 1\n" "-1 -1 2\n" " 0 0 0\n" " 1 1 1\n" " 2 2 2\n" " 3 0 0\n" "[/codeblock]" msgstr "" "返回 [code]a/b[/code] 的整数模,对正负数进行一致的循环。\n" "[codeblock]\n" "for i in range(-3, 4):\n" " print(\"%2d %2d %2d\" % [i, i % 3, posmod(i, 3)] )\n" "[/codeblock]\n" "结果:\n" "[codeblock]\n" "-3 0 0\n" "-2 -2 1\n" "-1 -1 2\n" " 0 0 0\n" " 1 1 1\n" " 2 2 2\n" " 3 0 0\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the result of [code]base[/code] raised to the power of [code]exp[/" "code].\n" "[codeblock]\n" "pow(2, 5) # Returns 32.0\n" "[/codeblock]" msgstr "" "返回 [code]base[/code] 的 [code]exp[/code] 次幂的结果。\n" "[codeblock]\n" "pow(2, 5) # 返回 32.0\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a [Resource] from the filesystem located at [code]path[/code]. The " "resource is loaded during script parsing, i.e. is loaded with the script and " "[method preload] effectively acts as a reference to that resource. Note that " "the method requires a constant path. If you want to load a resource from a " "dynamic/variable path, use [method load].\n" "[b]Note:[/b] Resource paths can be obtained by right clicking on a resource " "in the Assets Panel and choosing \"Copy Path\" or by dragging the file from " "the FileSystem dock into the script.\n" "[codeblock]\n" "# Instance a scene.\n" "var diamond = preload(\"res://diamond.tscn\").instance()\n" "[/codeblock]" msgstr "" "返回位于文件系统中 [code]path[/code] 位置的 [Resource]。资源是在脚本解析期间" "加载的,即随脚本一同加载,[method preload] 实际上充当了对该资源的引用。请注" "意,该方法需要常量路径。如果要从动态/变量路径加载资源,请使用 [method " "load]。\n" "[b]注意:[/b]可以通过右键单击素材面板中的资源并选择“复制路径”,或者将文件从文" "件系统面板拖到脚本中来获得资源路径。\n" "[codeblock]\n" "# 实例化场景。\n" "var diamond = preload(\"res://diamond.tscn\").instance()\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts one or more arguments of any type to string in the best way " "possible and prints them to the console.\n" "[codeblock]\n" "a = [1, 2, 3]\n" "print(\"a\", \"=\", a) # Prints a=[1, 2, 3]\n" "[/codeblock]\n" "[b]Note:[/b] Consider using [method push_error] and [method push_warning] to " "print error and warning messages instead of [method print]. This " "distinguishes them from print messages used for debugging purposes, while " "also displaying a stack trace when an error or warning is printed." msgstr "" "以最佳方式将一个或多个任意类型的参数转换为字符串,并将其打印到控制台。\n" "[codeblock]\n" "a = [1, 2, 3]\n" "print(\"a\", \"=\", a) # 输出 a=[1, 2, 3]\n" "[/codeblock]\n" "[b]注意:[/b]请考虑使用 [method push_error] 和 [method push_warning] 来打印错" "误和警告信息而不是 [method print]。这将它们与用于调试的打印信息区分开来,同时" "在打印错误或警告时还会显示堆栈跟踪。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "Like [method print], but prints only when used in debug mode." msgstr "与 [method print] 类似,但仅在调试模式下使用时才打印。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Prints a stack track at code location, only works when running with debugger " "turned on.\n" "Output in the console would look something like this:\n" "[codeblock]\n" "Frame 0 - res://test.gd:16 in function '_process'\n" "[/codeblock]" msgstr "" "在代码位置打印堆栈轨迹,仅在打开调试器的情况下运行。\n" "控制台中的输出如下所示:\n" "[codeblock]\n" "Frame 0 - res://test.gd:16 in function '_process'\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Prints one or more arguments to strings in the best way possible to standard " "error line.\n" "[codeblock]\n" "printerr(\"prints to stderr\")\n" "[/codeblock]" msgstr "" "以可能的最佳方式将一个或多个参数作为字符串输出到标准错误行。\n" "[codeblock]\n" "printerr(\"prints to stderr\")\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Prints one or more arguments to strings in the best way possible to console. " "No newline is added at the end.\n" "[codeblock]\n" "printraw(\"A\")\n" "printraw(\"B\")\n" "# Prints AB\n" "[/codeblock]\n" "[b]Note:[/b] Due to limitations with Godot's built-in console, this only " "prints to the terminal. If you need to print in the editor, use another " "method, such as [method print]." msgstr "" "以最佳的方式将一个或多个参数作为字符串输出到控制台。末尾没有添加换行符。\n" "[codeblock]\n" "printraw(\"A\")\n" "printraw(\"B\")\n" "# 输出 AB\n" "[/codeblock]\n" "[b]注意:[/b]由于 Godot 内置控制台的限制,此内容仅会打印到终端上。如果需要在" "编辑器中打印,请使用其他方法,例如 [method print]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Prints one or more arguments to the console with a space between each " "argument.\n" "[codeblock]\n" "prints(\"A\", \"B\", \"C\") # Prints A B C\n" "[/codeblock]" msgstr "" "将一个或多个参数打印到控制台,每个参数之间有一个空格。\n" "[codeblock]\n" "prints(\"A\", \"B\", \"C\") # 输出 A B C\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Prints one or more arguments to the console with a tab between each " "argument.\n" "[codeblock]\n" "printt(\"A\", \"B\", \"C\") # Prints A B C\n" "[/codeblock]" msgstr "" "将一个或多个参数打印到控制台,每个参数之间有一个制表符。\n" "[codeblock]\n" "printt(\"A\", \"B\", \"C\") # 输出 A B C\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Pushes an error message to Godot's built-in debugger and to the OS " "terminal.\n" "[codeblock]\n" "push_error(\"test error\") # Prints \"test error\" to debugger and terminal " "as error call\n" "[/codeblock]\n" "[b]Note:[/b] Errors printed this way will not pause project execution. To " "print an error message and pause project execution in debug builds, use " "[code]assert(false, \"test error\")[/code] instead." msgstr "" "将错误消息推送到 Godot 的内置调试器和 OS 终端。\n" "[codeblock]\n" "push_error(\"test error\") # 向调试器和终端打印 \"test error\" 作为错误调用\n" "[/codeblock]\n" "[b]注意:[/b]以该方式打印的错误不会暂停项目的运行。要在调试版本中打印错误消息" "并暂停项目运行,请使用 [code]assert(false, \"test error\")[/code]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Pushes a warning message to Godot's built-in debugger and to the OS " "terminal.\n" "[codeblock]\n" "push_warning(\"test warning\") # Prints \"test warning\" to debugger and " "terminal as warning call\n" "[/codeblock]" msgstr "" "将警告消息推送到 Godot 的内置调试器和 OS 终端。\n" "[codeblock]\n" "push_warning(\"test warning\") # 以警告的形式向调试器和终端输出 \"test " "warning\"\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts an angle expressed in radians to degrees.\n" "[codeblock]\n" "rad2deg(0.523599) # Returns 30.0\n" "[/codeblock]" msgstr "" "将以弧度表示的角度转换为度。\n" "[codeblock]\n" "rad2deg(0.523599) # 返回 30.0\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a random floating point value between [code]from[/code] and " "[code]to[/code] (both endpoints inclusive).\n" "[codeblock]\n" "prints(rand_range(0, 1), rand_range(0, 1)) # Prints e.g. 0.135591 0.405263\n" "[/codeblock]\n" "[b]Note:[/b] This is equivalent to [code]randf() * (to - from) + from[/code]." msgstr "" "返回随机浮点值,范围为 [code]from[/code] 和 [code]to[/code] 之间(两端均包含" "在内)。\n" "[codeblock]\n" "prints(rand_range(0, 1), rand_range(0, 1)) # 输出举例 0.135591 0.405263\n" "[/codeblock]\n" "[b]注意:[/b]与 [code]randf() * (to - from) + from[/code] 等价。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Random from seed: pass a [code]seed[/code], and an array with both number " "and new seed is returned. \"Seed\" here refers to the internal state of the " "pseudo random number generator. The internal state of the current " "implementation is 64 bits." msgstr "" "来自种子的随机数:传入种子 [code]seed[/code],返回同时包含数字和新种子的数" "组。这里的“种子”是指伪随机数生成器的内部状态。当前实现的内部状态为 64 位。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a random floating point value on the interval [code][0, 1][/code].\n" "[codeblock]\n" "randf() # Returns e.g. 0.375671\n" "[/codeblock]" msgstr "" "返回区间 [code][0, 1][/code] 上的随机浮点值。\n" "[codeblock]\n" "randf() # 返回举例 0.375671\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a random unsigned 32-bit integer. Use remainder to obtain a random " "value in the interval [code][0, N - 1][/code] (where N is smaller than " "2^32).\n" "[codeblock]\n" "randi() # Returns random integer between 0 and 2^32 - 1\n" "randi() % 20 # Returns random integer between 0 and 19\n" "randi() % 100 # Returns random integer between 0 and 99\n" "randi() % 100 + 1 # Returns random integer between 1 and 100\n" "[/codeblock]" msgstr "" "返回一个随机的无符号 32 位整数。使用余数获得区间 [code][0, N - 1][/code] (其" "中 N 小于 2^32)的随机值。\n" "[codeblock]\n" "randi() # 返回介于 0 到 2^32 - 1 之间的随机整数\n" "randi() % 20 # 返回介于 0 到 19之间的随机整数\n" "randi() % 100 # 返回介于 0 到 99 之间的随机整数\n" "randi() % 100 + 1 # 返回介于 1 到 100 之间的随机整数\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Randomizes the seed (or the internal state) of the random number generator. " "Current implementation reseeds using a number based on time.\n" "[codeblock]\n" "func _ready():\n" " randomize()\n" "[/codeblock]" msgstr "" "随机化随机数生成器的种子(或内部状态)。当前的实现使用基于时间的数字来重新设" "定种子。\n" "[codeblock]\n" "func _ready():\n" " randomize()\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns an array with the given range. [method range] can be called in three " "ways:\n" "[code]range(n: int)[/code]: Starts from 0, increases by steps of 1, and " "stops [i]before[/i] [code]n[/code]. The argument [code]n[/code] is " "[b]exclusive[/b].\n" "[code]range(b: int, n: int)[/code]: Starts from [code]b[/code], increases by " "steps of 1, and stops [i]before[/i] [code]n[/code]. The arguments [code]b[/" "code] and [code]n[/code] are [b]inclusive[/b] and [b]exclusive[/b], " "respectively.\n" "[code]range(b: int, n: int, s: int)[/code]: Starts from [code]b[/code], " "increases/decreases by steps of [code]s[/code], and stops [i]before[/i] " "[code]n[/code]. The arguments [code]b[/code] and [code]n[/code] are " "[b]inclusive[/b] and [b]exclusive[/b], respectively. The argument [code]s[/" "code] [b]can[/b] be negative, but not [code]0[/code]. If [code]s[/code] is " "[code]0[/code], an error message is printed.\n" "[method range] converts all arguments to [int] before processing.\n" "[b]Note:[/b] Returns an empty array if no value meets the value constraint " "(e.g. [code]range(2, 5, -1)[/code] or [code]range(5, 5, 1)[/code]).\n" "Examples:\n" "[codeblock]\n" "print(range(4)) # Prints [0, 1, 2, 3]\n" "print(range(2, 5)) # Prints [2, 3, 4]\n" "print(range(0, 6, 2)) # Prints [0, 2, 4]\n" "print(range(4, 1, -1)) # Prints [4, 3, 2]\n" "[/codeblock]\n" "To iterate over an [Array] backwards, use:\n" "[codeblock]\n" "var array = [3, 6, 9]\n" "for i in range(array.size(), 0, -1):\n" " print(array[i - 1])\n" "[/codeblock]\n" "Output:\n" "[codeblock]\n" "9\n" "6\n" "3\n" "[/codeblock]" msgstr "" "返回给定范围的数组。[method range] 的调用方法有三种:\n" "[code]range(n: int)[/code]:从 0 开始,每次加 1,在到达 [code]n[/code] [i]之" "前[/i]停止。[b]不包含[/b]参数 [code]n[/code]。\n" "[code]range(b: int, n: int)[/code]:从 [code]b[/code] 开始,每次加 1,在到达 " "[code]n[/code] [i]之前[/i]停止。[b]包含[/b]参数 [code]b[/code],[b]不包含[/b]" "参数 [code]n[/code]。\n" "[code]range(b: int, n: int, s: int)[/code]:从 [code]b[/code] 开始,每次加 " "[code]s[/code],在到达 [code]n[/code] [i]之前[/i]停止。[b]包含[/b]参数 " "[code]b[/code],[b]不包含[/b]参数 [code]n[/code]。参数 [code]s[/code] [b]可" "以[/b]为负数,但不能为 [code]0[/code]。如果 [code]s[/code] 为 [code]0[/" "code],会输出一条错误。\n" "[method range] 会先将所有参数转换为 [int] 再进行处理。\n" "[b]注意:[/b]如果不存在满足条件的值,则返回空数组(例如 [code]range(2, 5, -1)" "[/code] 和 [code]range(5, 5, 1)[/code])。\n" "示例:\n" "[codeblock]\n" "print(range(4)) # 输出 [0, 1, 2, 3]\n" "print(range(2, 5)) # 输出 [2, 3, 4]\n" "print(range(0, 6, 2)) # 输出 [0, 2, 4]\n" "print(range(4, 1, -1)) # 输出 [4, 3, 2]\n" "[/codeblock]\n" "反向遍历 [Array] 请使用:\n" "[codeblock]\n" "var array = [3, 6, 9]\n" "for i in range(array.size(), 0, -1):\n" " print(array[i - 1])\n" "[/codeblock]\n" "输出:\n" "[codeblock]\n" "9\n" "6\n" "3\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Maps a [code]value[/code] from range [code][istart, istop][/code] to [code]" "[ostart, ostop][/code].\n" "[codeblock]\n" "range_lerp(75, 0, 100, -1, 1) # Returns 0.5\n" "[/codeblock]" msgstr "" "将 [code]value[/code] 从范围 [code][istart, istop][/code] 映射到 [code]" "[ostart, ostop][/code]。\n" "[codeblock]\n" "range_lerp(75, 0, 100, -1, 1) # 返回 0.5\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Rounds [code]s[/code] to the nearest whole number, with halfway cases " "rounded away from zero.\n" "[codeblock]\n" "a = round(2.49) # a is 2.0\n" "a = round(2.5) # a is 3.0\n" "a = round(2.51) # a is 3.0\n" "[/codeblock]\n" "See also [method floor], [method ceil], [method stepify], and [int]." msgstr "" "将 [code]s[/code] 舍入到最接近的整数,中间情况向远离零的方向舍入。\n" "[codeblock]\n" "a = round(2.49) # a 是 2.0\n" "a = round(2.5) # a 是 3.0\n" "a = round(2.51) # a 是 3.0\n" "[/codeblock]\n" "请参阅 [method floor]、[method ceil]、[method stepify]、以及 [int]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Sets seed for the random number generator.\n" "[codeblock]\n" "my_seed = \"Godot Rocks\"\n" "seed(my_seed.hash())\n" "[/codeblock]" msgstr "" "为随机数生成器设置种子。\n" "[codeblock]\n" "my_seed = \"Godot Rocks\"\n" "seed(my_seed.hash())\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the sign of [code]s[/code]: -1 or 1. Returns 0 if [code]s[/code] is " "0.\n" "[codeblock]\n" "sign(-6) # Returns -1\n" "sign(0) # Returns 0\n" "sign(6) # Returns 1\n" "[/codeblock]" msgstr "" "返回 [code]s[/code] 的符号:-1 或 1。[code]s[/code] 为 0 时返回 0。\n" "[codeblock]\n" "sign(-6) # 返回 -1\n" "sign(0) # 返回 0\n" "sign(6) # 返回 1\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the sine of angle [code]s[/code] in radians.\n" "[codeblock]\n" "sin(0.523599) # Returns 0.5\n" "[/codeblock]" msgstr "" "返回弧度角 [code]s[/code] 的正弦值。\n" "[codeblock]\n" "sin(0.523599) # 返回 0.5\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the hyperbolic sine of [code]s[/code].\n" "[codeblock]\n" "a = log(2.0) # Returns 0.693147\n" "sinh(a) # Returns 0.75\n" "[/codeblock]" msgstr "" "返回 [code]s[/code] 的双曲正弦值。\n" "[codeblock]\n" "a = log(2.0) # 返回 0.693147\n" "sinh(a) # 返回 0.75\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the result of smoothly interpolating the value of [code]s[/code] " "between [code]0[/code] and [code]1[/code], based on the where [code]s[/code] " "lies with respect to the edges [code]from[/code] and [code]to[/code].\n" "The return value is [code]0[/code] if [code]s <= from[/code], and [code]1[/" "code] if [code]s >= to[/code]. If [code]s[/code] lies between [code]from[/" "code] and [code]to[/code], the returned value follows an S-shaped curve that " "maps [code]s[/code] between [code]0[/code] and [code]1[/code].\n" "This S-shaped curve is the cubic Hermite interpolator, given by [code]f(y) = " "3*y^2 - 2*y^3[/code] where [code]y = (x-from) / (to-from)[/code].\n" "[codeblock]\n" "smoothstep(0, 2, -5.0) # Returns 0.0\n" "smoothstep(0, 2, 0.5) # Returns 0.15625\n" "smoothstep(0, 2, 1.0) # Returns 0.5\n" "smoothstep(0, 2, 2.0) # Returns 1.0\n" "[/codeblock]\n" "Compared to [method ease] with a curve value of [code]-1.6521[/code], " "[method smoothstep] returns the smoothest possible curve with no sudden " "changes in the derivative. If you need to perform more advanced transitions, " "use [Tween] or [AnimationPlayer].\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/3.4/img/" "smoothstep_ease_comparison.png]Comparison between smoothstep() and ease(x, " "-1.6521) return values[/url]" msgstr "" "返回 [code]s[/code] 在 [code]0[/code] 和 [code]1[/code] 之间平滑插值的结果," "基于 [code]s[/code] 相对于边从 [code]from[/code] 和到 [code]to[/code] 的位" "置。\n" "如果 [code]s <= from[/code],返回值为 [code]0[/code];如果 [code]s >= to[/" "code],返回值为 [code]1[/code]。如果 [code]s[/code] 位于 [code]from[/code] " "和 [code]to[/code] 之间,返回值遵循一个 S 型曲线,将 [code]s[/code] 映射到 " "[code]0[/code] 和 [code]1[/code] 之间。\n" "这条 S 形曲线是立方 Hermite 插值器,由 [code]f(y)=3*y^2-2*y^3[/code] 给出,其" "中 [code]y = (x-from) / (to-from)[/code]。\n" "[codeblock]\n" "smoothstep(0, 2, -5.0) # 返回 0.0\n" "smoothstep(0, 2, 0.5) # 返回 0.15625\n" "smoothstep(0, 2, 1.0) # 返回 0.5\n" "smoothstep(0, 2, 2.0) # 返回1.0\n" "[/codeblock]\n" "与曲线值为 [code]-1.6521[/code] 的 [method ease] 相比,[method smoothstep] 返" "回最平滑的曲线,导数没有突然变化。如果你需要执行更高级的过渡,请使用 [Tween] " "或 [AnimationPlayer]。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/3.4/img/" "smoothstep_ease_comparison.png]smoothstep() 与 ease(x, -1.6521) 返回值的比较" "[/url]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the square root of [code]s[/code], where [code]s[/code] is a non-" "negative number.\n" "[codeblock]\n" "sqrt(9) # Returns 3\n" "[/codeblock]\n" "[b]Note:[/b] Negative values of [code]s[/code] return NaN. If you need " "negative inputs, use [code]System.Numerics.Complex[/code] in C#." msgstr "" "返回 [code]s[/code] 的平方根,其中 [code]s[/code] 是非负数。\n" "[codeblock]\n" "sqrt(9) # 返回 3\n" "[/codeblock]\n" "[b]注意:[/b]负数的 [code]s[/code] 会返回 NaN。如果你需要负数输入,请在 C# 中" "使用 [code]System.Numerics.Complex[/code]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the position of the first non-zero digit, after the decimal point. " "Note that the maximum return value is 10, which is a design decision in the " "implementation.\n" "[codeblock]\n" "n = step_decimals(5) # n is 0\n" "n = step_decimals(1.0005) # n is 4\n" "n = step_decimals(0.000000005) # n is 9\n" "[/codeblock]" msgstr "" "返回小数点后第一个非零数字的位置。注意最大返回值是 10,这是实现中的设计决" "定。\n" "[codeblock]\n" "n = step_decimals(5) # n = 0\n" "n = step_decimals(1.0005) # n = 4\n" "n = step_decimals(0.000000005) # n = 9\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Snaps float value [code]s[/code] to a given [code]step[/code]. This can also " "be used to round a floating point number to an arbitrary number of " "decimals.\n" "[codeblock]\n" "stepify(100, 32) # Returns 96.0\n" "stepify(3.14159, 0.01) # Returns 3.14\n" "[/codeblock]\n" "See also [method ceil], [method floor], [method round], and [int]." msgstr "" "将浮点值 [code]s[/code] 按照给定的 [code]step[/code] 对齐。也可以用于将浮点数" "四舍五入为任意的小数位数。\n" "[codeblock]\n" "stepify(100, 32) # 返回 96\n" "stepify(3.14159, 0.01) # 返回 3.14\n" "[/codeblock]\n" "参阅 [method ceil]、[method floor]、[method round]、以及 [int]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts one or more arguments of any type to string in the best way " "possible.\n" "[codeblock]\n" "var a = [10, 20, 30]\n" "var b = str(a);\n" "len(a) # Returns 3\n" "len(b) # Returns 12\n" "[/codeblock]" msgstr "" "以最佳方式将一个或多个任意类型的参数转换为字符串。\n" "[codeblock]\n" "var a = [10, 20, 30]\n" "var b = str(a);\n" "len(a) # 返回 3\n" "len(b) # 返回 12\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts a formatted string that was returned by [method var2str] to the " "original value.\n" "[codeblock]\n" "a = '{ \"a\": 1, \"b\": 2 }'\n" "b = str2var(a)\n" "print(b[\"a\"]) # Prints 1\n" "[/codeblock]" msgstr "" "将 [method var2str] 返回的格式化字符串转换为原始值。\n" "[codeblock]\n" "a = '{ \"a\": 1, \"b\": 2 }'\n" "b = str2var(a)\n" "print(b[\"a\"]) # 输出 1\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the tangent of angle [code]s[/code] in radians.\n" "[codeblock]\n" "tan(deg2rad(45)) # Returns 1\n" "[/codeblock]" msgstr "" "返回弧度角 [code]s[/code] 的正切。\n" "[codeblock]\n" "tan(deg2rad(45)) # 返回 1\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the hyperbolic tangent of [code]s[/code].\n" "[codeblock]\n" "a = log(2.0) # a is 0.693147\n" "b = tanh(a) # b is 0.6\n" "[/codeblock]" msgstr "" "返回 [code]s[/code] 的双曲正切。\n" "[codeblock]\n" "a = log(2.0) # a = 0.693147\n" "b = tanh(a) # b = 0.6\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts a [Variant] [code]var[/code] to JSON text and return the result. " "Useful for serializing data to store or send over the network.\n" "[codeblock]\n" "# Both numbers below are integers.\n" "a = { \"a\": 1, \"b\": 2 }\n" "b = to_json(a)\n" "print(b) # {\"a\":1, \"b\":2}\n" "# Both numbers above are floats, even if they display without any decimal " "places.\n" "[/codeblock]\n" "[b]Note:[/b] The JSON specification does not define integer or float types, " "but only a [i]number[/i] type. Therefore, converting a [Variant] to JSON " "text will convert all numerical values to [float] types.\n" "See also [JSON] for an alternative way to convert a [Variant] to JSON text." msgstr "" "将 [Variant] [code]var[/code] 转换为JSON文本并返回结果。对于序列化数据以通过" "网络存储或发送很有用。\n" "[codeblock]\n" "# 下面的两个数组都是整数。\n" "a = { \"a\": 1, \"b\": 2 }\n" "b = to_json(a)\n" "print(b) # {\"a\":1, \"b\":2}\n" "# 上面的两个数都是浮点数,尽管没有显示小数部分。\n" "[/codeblock]\n" "[b]注意:[/b]JSON 规范未定义整数或浮点类型,而仅定义了[i]数字[/i]类型。因此," "将 [Variant] 转换为 JSON 文本会将所有数值转换为 [float] 类型。\n" "另请参阅 [JSON],以将 [Variant] 转换为 JSON 文本的另一种方法。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns whether the given class exists in [ClassDB].\n" "[codeblock]\n" "type_exists(\"Sprite\") # Returns true\n" "type_exists(\"Variant\") # Returns false\n" "[/codeblock]" msgstr "" "返回给定的类在 [ClassDB] 中是否存在。\n" "[codeblock]\n" "type_exists(\"Sprite\") # 返回 true\n" "type_exists(\"Variant\") # 返回 false\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns the internal type of the given Variant object, using the [enum " "Variant.Type] values.\n" "[codeblock]\n" "p = parse_json('[\"a\", \"b\", \"c\"]')\n" "if typeof(p) == TYPE_ARRAY:\n" " print(p[0]) # Prints a\n" "else:\n" " print(\"unexpected results\")\n" "[/codeblock]" msgstr "" "使用 [enum Variant.Type] 值返回给定 Variant 对象的内部类型。\n" "[codeblock]\n" "p = parse_json('[\"a\", \"b\", \"c\"]')\n" "if typeof(p) == TYPE_ARRAY:\n" " print(p[0]) # 输出 a\n" "else:\n" " print(\"出乎意料的结果\")\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Checks that [code]json[/code] is valid JSON data. Returns an empty string if " "valid, or an error message otherwise.\n" "[codeblock]\n" "j = to_json([1, 2, 3])\n" "v = validate_json(j)\n" "if not v:\n" " print(\"Valid JSON.\")\n" "else:\n" " push_error(\"Invalid JSON: \" + v)\n" "[/codeblock]" msgstr "" "检查 [code]json[/code] 是有效的 JSON 数据。如果有效,则返回空字符串,否则返回" "错误消息。\n" "[codeblock]\n" "j = to_json([1, 2, 3])\n" "v = validate_json(j)\n" "if not v:\n" " print(\"有效 JSON。\")\n" "else:\n" " push_error(\"无效 JSON:\" + v)\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Encodes a variable value to a byte array. When [code]full_objects[/code] is " "[code]true[/code] encoding objects is allowed (and can potentially include " "code)." msgstr "" "将变量值编码为一个字节数组。当 [code]full_objects[/code] 为 [code]true[/" "code] 时,允许对对象进行编码(并且可能包含代码)。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Converts a Variant [code]var[/code] to a formatted string that can later be " "parsed using [method str2var].\n" "[codeblock]\n" "a = { \"a\": 1, \"b\": 2 }\n" "print(var2str(a))\n" "[/codeblock]\n" "prints\n" "[codeblock]\n" "{\n" "\"a\": 1,\n" "\"b\": 2\n" "}\n" "[/codeblock]" msgstr "" "将 Variant [code]var[/code] 转换为格式化的字符串,以后可以使用 [method " "str2var] 对其进行解析。\n" "[codeblock]\n" "a = { \"a\": 1, \"b\": 2 }\n" "print(var2str(a))\n" "[/codeblock]\n" "会输出\n" "[codeblock]\n" "{\n" "\"a\": 1,\n" "\"b\": 2\n" "}\n" "[/codeblock]" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Returns a weak reference to an object.\n" "A weak reference to an object is not enough to keep the object alive: when " "the only remaining references to a referent are weak references, garbage " "collection is free to destroy the referent and reuse its memory for " "something else. However, until the object is actually destroyed the weak " "reference may return the object even if there are no strong references to it." msgstr "" "返回对某个对象的弱引用。\n" "对某个对象的弱引用不足以让该对象保持存活:当剩余的对引用对象的引用都是弱引用" "时,垃圾回收可以随意销毁该对象并将其内存重用于其他用途。但是,直到没有实际破" "坏对象为止,弱引用仍可能会返回该对象,即使没有强引用也是如此。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Wraps float [code]value[/code] between [code]min[/code] and [code]max[/" "code].\n" "Usable for creating loop-alike behavior or infinite surfaces.\n" "[codeblock]\n" "# Infinite loop between 5.0 and 9.9\n" "value = wrapf(value + 0.1, 5.0, 10.0)\n" "[/codeblock]\n" "[codeblock]\n" "# Infinite rotation (in radians)\n" "angle = wrapf(angle + 0.1, 0.0, TAU)\n" "[/codeblock]\n" "[codeblock]\n" "# Infinite rotation (in radians)\n" "angle = wrapf(angle + 0.1, -PI, PI)\n" "[/codeblock]\n" "[b]Note:[/b] If [code]min[/code] is [code]0[/code], this is equivalent to " "[method fposmod], so prefer using that instead.\n" "[code]wrapf[/code] is more flexible than using the [method fposmod] approach " "by giving the user control over the minimum value." msgstr "" "在 [code]min[/code] 和 [code]max[/code] 之间将 [code]value[/code] 循环。\n" "可用于创建类似循环的行为或无限曲面。\n" "[codeblock]\n" "# 在 5.0 和 9.9 之间无限循环\n" "value = wrapf(value + 0.1, 5.0, 10.0)\n" "[/codeblock]\n" "[codeblock]\n" "# 无限旋转(弧度)\n" "angle = wrapf(angle + 0.1, 0.0, TAU)\n" "[/codeblock]\n" "[codeblock]\n" "# 无限旋转(弧度)\n" "angle = wrapf(angle + 0.1, -PI, PI)\n" "[/codeblock]\n" "[b]注意:[/b]如果 [code]min[/code] 为 [code]0[/code],则等价于 [method " "fposmod],因此请改用它。\n" "通过让用户控制最小值,[code]wrapf[/code] 比使用 [method fposmod] 方法更灵活。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Wraps integer [code]value[/code] between [code]min[/code] and [code]max[/" "code].\n" "Usable for creating loop-alike behavior or infinite surfaces.\n" "[codeblock]\n" "# Infinite loop between 5 and 9\n" "frame = wrapi(frame + 1, 5, 10)\n" "[/codeblock]\n" "[codeblock]\n" "# result is -2\n" "var result = wrapi(-6, -5, -1)\n" "[/codeblock]\n" "[b]Note:[/b] If [code]min[/code] is [code]0[/code], this is equivalent to " "[method posmod], so prefer using that instead.\n" "[code]wrapi[/code] is more flexible than using the [method posmod] approach " "by giving the user control over the minimum value." msgstr "" "在 [code]min[/code] 和 [code]max[/code] 之间环绕整数 [code]value[/code]。\n" "可用于创建类似循环的行为或无限曲面。\n" "[codeblock]\n" "# 在 5 和 9 之间无限循环\n" "frame = wrapi(frame + 1, 5, 10)\n" "[/codeblock]\n" "[codeblock]\n" "# result 是 -2\n" "var result = wrapi(-6, -5, -1)\n" "[/codeblock]\n" "[b]注意:[/b]如果 [code]min[/code] 为 [code]0[/code],则等价于 [method " "posmod],因此建议改用它。\n" "通过让用户控制最小值,[code]wrapi[/code] 比使用 [method posmod] 方法更灵活。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Stops the function execution and returns the current suspended state to the " "calling function.\n" "From the caller, call [method GDScriptFunctionState.resume] on the state to " "resume execution. This invalidates the state. Within the resumed function, " "[code]yield()[/code] returns whatever was passed to the [code]resume()[/" "code] function call.\n" "If passed an object and a signal, the execution is resumed when the object " "emits the given signal. In this case, [code]yield()[/code] returns the " "argument passed to [code]emit_signal()[/code] if the signal takes only one " "argument, or an array containing all the arguments passed to " "[code]emit_signal()[/code] if the signal takes multiple arguments.\n" "You can also use [code]yield[/code] to wait for a function to finish:\n" "[codeblock]\n" "func _ready():\n" " yield(countdown(), \"completed\") # waiting for the countdown() function " "to complete\n" " print('Ready')\n" "\n" "func countdown():\n" " yield(get_tree(), \"idle_frame\") # returns a GDScriptFunctionState " "object to _ready()\n" " print(3)\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(2)\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(1)\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" "\n" "# prints:\n" "# 3\n" "# 2\n" "# 1\n" "# Ready\n" "[/codeblock]\n" "When yielding on a function, the [code]completed[/code] signal will be " "emitted automatically when the function returns. It can, therefore, be used " "as the [code]signal[/code] parameter of the [code]yield[/code] method to " "resume.\n" "In order to yield on a function, the resulting function should also return a " "[code]GDScriptFunctionState[/code]. Notice [code]yield(get_tree(), " "\"idle_frame\")[/code] from the above example." msgstr "" "停止函数的执行并将当前的暂停状态返回给调用函数。\n" "从调用者那里,对该状态调用 [method GDScriptFunctionState.resume] 来恢复执行。" "这将使该状态无效。在恢复的函数中,[code]yield()[/code] 返回传递给 " "[code]resume()[/code] 函数调用的东西。\n" "如果传递了对象和信号,当该对象发出给定的信号时,就会恢复执行。此时,如果该信" "号只有一个参数,[code]yield()[/code] 会返回传递给 [code]emit_signal()[/code] " "的参数,如果该信号有多个参数,则返回一个包含传递给 [code]emit_signal()[/" "code] 的所有参数的数组。\n" "你还可以使用 [code]yield[/code] 来等待函数的完成:\n" "[codeblock]\n" "func _ready():\n" " yield(countdown(), \"completed\") # 等待 countdown() 函数的完成\n" " print('Ready')\n" "\n" "func countdown():\n" " yield(get_tree(), \"idle_frame\") # 返回一个 GDScriptFunctionState 对象" "给 _ready()\n" " print(3)\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(2)\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(1)\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" "\n" "# 输出:\n" "# 3\n" "# 2\n" "# 1\n" "# Ready\n" "[/codeblock]\n" "当对一个函数处于让步等待时,[code]completed[/code] 信号将在函数返回时自动发" "出。因此,它可以作为 [code]signal[/code] 的参数用于 [code]yield[/code] 方法的" "恢复。\n" "为了在一个函数上让步等待,产生的函数也应该返回一个 " "[code]GDScriptFunctionState[/code]。注意上面的例子中 [code]yield(get_tree(), " "\"idle_frame\")[/code]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Constant that represents how many times the diameter of a circle fits around " "its perimeter. This is equivalent to [code]TAU / 2[/code]." msgstr "常量,表示圆的周长是直径的多少倍。等价于 [code]TAU / 2[/code]。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "The circle constant, the circumference of the unit circle in radians. This " "is equivalent to [code]PI * 2[/code], or 360 degrees in rotations." msgstr "" "圆常量,单位圆的周长,单位为弧度。等价于 [code]PI * 2[/code],即 360 度的旋转" "值。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "Positive floating-point infinity. This is the result of floating-point " "division when the divisor is [code]0.0[/code]. For negative infinity, use " "[code]-INF[/code]. Dividing by [code]-0.0[/code] will result in negative " "infinity if the numerator is positive, so dividing by [code]0.0[/code] is " "not the same as dividing by [code]-0.0[/code] (despite [code]0.0 == -0.0[/" "code] returning [code]true[/code]).\n" "[b]Note:[/b] Numeric infinity is only a concept with floating-point numbers, " "and has no equivalent for integers. Dividing an integer number by [code]0[/" "code] will not result in [constant INF] and will result in a run-time error " "instead." msgstr "" "浮点数正无穷。浮点数除法中使用 [code]0.0[/code] 作为除数时的计算结果。使用 " "[code]-INF[/code] 可以得到负无穷。如果分子是正数,除以 [code]-0.0[/code] 将得" "到负无穷,所以除以 [code]0.0[/code] 与除以 [code]-0.0[/code] 不同(尽管 " "[code]0.0 == -0.0[/code] 返回 [code]true[/code])。\n" "[b]注意:[/b]数字无穷大只是浮点数的概念,整数中没有对应的概念。整数除以 " "[code]0[/code] 不会产生 [constant INF],而是会产生一个运行时错误。" #: modules/gdscript/doc_classes/@GDScript.xml msgid "" "\"Not a Number\", an invalid floating-point value. [constant NAN] has " "special properties, including that it is not equal to itself ([code]NAN == " "NAN[/code] returns [code]false[/code]). It is output by some invalid " "operations, such as dividing floating-point [code]0.0[/code] by [code]0.0[/" "code].\n" "[b]Note:[/b] \"Not a Number\" is only a concept with floating-point numbers, " "and has no equivalent for integers. Dividing an integer [code]0[/code] by " "[code]0[/code] will not result in [constant NAN] and will result in a run-" "time error instead." msgstr "" "“Not a Number”(不是一个数),一个无效的浮点数值。[constant NAN] 有许多特殊的" "性质,比如它不等于自己([code]NAN == NAN[/code] 返回 [code]false[/code])。一" "些无效的操作会输出这个值,比如用浮点数 [code]0.0[/code] 除以 [code]0.0[/" "code]。\n" "[b]注意:[/b]“不是一个数”只是浮点数的概念,整数中没有对应的概念。整数 " "[code]0[/code] 除以 [code]0[/code] 不会产生 [constant NAN],而是会产生一个运" "行时错误。" #: doc/classes/@GlobalScope.xml msgid "Global scope constants and variables." msgstr "全局范围常量和变量。" #: doc/classes/@GlobalScope.xml msgid "" "Global scope constants and variables. This is all that resides in the " "globals, constants regarding error codes, scancodes, property hints, etc.\n" "Singletons are also documented here, since they can be accessed from " "anywhere." msgstr "" "全局作用域的常量和变量。这些会都驻留在全局,如错误码、键盘扫描码、属性提示等" "常量。\n" "单例也被记录在这里,因为可以从任何地方访问它们。" #: doc/classes/@GlobalScope.xml msgid "The [ARVRServer] singleton." msgstr "[ARVRServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [AudioServer] singleton." msgstr "[AudioServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [CameraServer] singleton." msgstr "[CameraServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [ClassDB] singleton." msgstr "[ClassDB] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Engine] singleton." msgstr "[Engine] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Geometry] singleton." msgstr "[Geometry] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [IP] singleton." msgstr "[IP] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Input] singleton." msgstr "[Input] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [InputMap] singleton." msgstr "[InputMap] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [JSON] singleton." msgstr "[JSON] 单例。" #: doc/classes/@GlobalScope.xml msgid "" "The [JavaClassWrapper] singleton.\n" "[b]Note:[/b] Only implemented on Android." msgstr "" "[JavaClassWrapper] 单例。\n" "[b]注意:[/b]仅在 Android 上实现。" #: doc/classes/@GlobalScope.xml msgid "" "The [JavaScript] singleton.\n" "[b]Note:[/b] Only implemented on HTML5." msgstr "" "[JavaScript] 单例。\n" "[b]注意:[/b]仅在 HTML5 上实现。" #: doc/classes/@GlobalScope.xml msgid "The [Marshalls] singleton." msgstr "[Marshalls] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Navigation2DServer] singleton." msgstr "[Navigation2DServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [NavigationMeshGenerator] singleton." msgstr "[NavigationMeshGenerator] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [NavigationServer] singleton." msgstr "[NavigationServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [OS] singleton." msgstr "[OS] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Performance] singleton." msgstr "[Performance] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Physics2DServer] singleton." msgstr "[Physics2DServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [PhysicsServer] singleton." msgstr "[PhysicsServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [ProjectSettings] singleton." msgstr "[ProjectSettings] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [ResourceLoader] singleton." msgstr "[ResourceLoader] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [ResourceSaver] singleton." msgstr "[ResourceSaver] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [Time] singleton." msgstr "[Time] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [TranslationServer] singleton." msgstr "[TranslationServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [VisualScriptEditor] singleton." msgstr "[VisualScriptEditor] 单例。" #: doc/classes/@GlobalScope.xml msgid "The [VisualServer] singleton." msgstr "[VisualServer] 单例。" #: doc/classes/@GlobalScope.xml msgid "Left margin, usually used for [Control] or [StyleBox]-derived classes." msgstr "左边距,常用于 [Control] 或 [StyleBox] 的派生类。" #: doc/classes/@GlobalScope.xml msgid "Top margin, usually used for [Control] or [StyleBox]-derived classes." msgstr "上边距,常用于 [Control] 或 [StyleBox] 的派生类。" #: doc/classes/@GlobalScope.xml msgid "Right margin, usually used for [Control] or [StyleBox]-derived classes." msgstr "右边距,常用于 [Control] 或 [StyleBox] 的派生类。" #: doc/classes/@GlobalScope.xml msgid "" "Bottom margin, usually used for [Control] or [StyleBox]-derived classes." msgstr "下边距,常用于 [Control] 或 [StyleBox] 的派生类。" #: doc/classes/@GlobalScope.xml msgid "Top-left corner." msgstr "左上角。" #: doc/classes/@GlobalScope.xml msgid "Top-right corner." msgstr "右上角。" #: doc/classes/@GlobalScope.xml msgid "Bottom-right corner." msgstr "右下角。" #: doc/classes/@GlobalScope.xml msgid "Bottom-left corner." msgstr "左下角。" #: doc/classes/@GlobalScope.xml msgid "" "General vertical alignment, usually used for [Separator], [ScrollBar], " "[Slider], etc." msgstr "通用垂直对齐,常用于 [Separator]、[ScrollBar]、[Slider] 等。" #: doc/classes/@GlobalScope.xml msgid "" "General horizontal alignment, usually used for [Separator], [ScrollBar], " "[Slider], etc." msgstr "通用水平对齐,常用于 [Separator]、[ScrollBar]、[Slider] 等。" #: doc/classes/@GlobalScope.xml msgid "Horizontal left alignment, usually for text-derived classes." msgstr "水平左对齐,常用于文本派生类。" #: doc/classes/@GlobalScope.xml msgid "Horizontal center alignment, usually for text-derived classes." msgstr "水平居中对齐,常用于文本派生类。" #: doc/classes/@GlobalScope.xml msgid "Horizontal right alignment, usually for text-derived classes." msgstr "水平右对齐,常用于文本派生类。" #: doc/classes/@GlobalScope.xml msgid "Vertical top alignment, usually for text-derived classes." msgstr "垂直上对齐,常用于文本派生类。" #: doc/classes/@GlobalScope.xml msgid "Vertical center alignment, usually for text-derived classes." msgstr "垂直居中对齐,常用于文本派生类。" #: doc/classes/@GlobalScope.xml msgid "Vertical bottom alignment, usually for text-derived classes." msgstr "垂直下对齐,常用于文本派生类。" #: doc/classes/@GlobalScope.xml msgid "Scancodes with this bit applied are non-printable." msgstr "该比特位应用的扫描码不可打印。" #: doc/classes/@GlobalScope.xml msgid "Escape key." msgstr "ESC 键。" #: doc/classes/@GlobalScope.xml msgid "Tab key." msgstr "Tab 键。" #: doc/classes/@GlobalScope.xml msgid "Shift+Tab key." msgstr "Shift + Tab 键。" #: doc/classes/@GlobalScope.xml msgid "Backspace key." msgstr "退格键。" #: doc/classes/@GlobalScope.xml msgid "Return key (on the main keyboard)." msgstr "回车键(位于主键盘)。" #: doc/classes/@GlobalScope.xml msgid "Enter key on the numeric keypad." msgstr "小键盘区的回车键。" #: doc/classes/@GlobalScope.xml msgid "Insert key." msgstr "Insert 键。" #: doc/classes/@GlobalScope.xml msgid "Delete key." msgstr "Delete 键。" #: doc/classes/@GlobalScope.xml msgid "Pause key." msgstr "Pause 键。" #: doc/classes/@GlobalScope.xml msgid "Print Screen key." msgstr "Print Screen 键。" #: doc/classes/@GlobalScope.xml msgid "System Request key." msgstr "System Request 键。" #: doc/classes/@GlobalScope.xml msgid "Clear key." msgstr "Clear 键。" #: doc/classes/@GlobalScope.xml msgid "Home key." msgstr "Home 键。" #: doc/classes/@GlobalScope.xml msgid "End key." msgstr "End 键。" #: doc/classes/@GlobalScope.xml msgid "Left arrow key." msgstr "左方向键。" #: doc/classes/@GlobalScope.xml msgid "Up arrow key." msgstr "上方向键。" #: doc/classes/@GlobalScope.xml msgid "Right arrow key." msgstr "右方向键。" #: doc/classes/@GlobalScope.xml msgid "Down arrow key." msgstr "下方向键。" #: doc/classes/@GlobalScope.xml msgid "Page Up key." msgstr "Page Up 键。" #: doc/classes/@GlobalScope.xml msgid "Page Down key." msgstr "Page Down 键。" #: doc/classes/@GlobalScope.xml msgid "Shift key." msgstr "Shift 键。" #: doc/classes/@GlobalScope.xml msgid "Control key." msgstr "Control 键。" #: doc/classes/@GlobalScope.xml msgid "Meta key." msgstr "Meta 键。" #: doc/classes/@GlobalScope.xml msgid "Alt key." msgstr "Alt 键。" #: doc/classes/@GlobalScope.xml msgid "Caps Lock key." msgstr "Caps Lock 键。" #: doc/classes/@GlobalScope.xml msgid "Num Lock key." msgstr "Num Lock 键。" #: doc/classes/@GlobalScope.xml msgid "Scroll Lock key." msgstr "Scroll Lock 键。" #: doc/classes/@GlobalScope.xml msgid "F1 key." msgstr "F1 键。" #: doc/classes/@GlobalScope.xml msgid "F2 key." msgstr "F2 键。" #: doc/classes/@GlobalScope.xml msgid "F3 key." msgstr "F3 键。" #: doc/classes/@GlobalScope.xml msgid "F4 key." msgstr "F4 键。" #: doc/classes/@GlobalScope.xml msgid "F5 key." msgstr "F5 键。" #: doc/classes/@GlobalScope.xml msgid "F6 key." msgstr "F6 键。" #: doc/classes/@GlobalScope.xml msgid "F7 key." msgstr "F7 键。" #: doc/classes/@GlobalScope.xml msgid "F8 key." msgstr "F8 键。" #: doc/classes/@GlobalScope.xml msgid "F9 key." msgstr "F9 键。" #: doc/classes/@GlobalScope.xml msgid "F10 key." msgstr "F10 键。" #: doc/classes/@GlobalScope.xml msgid "F11 key." msgstr "F11 键。" #: doc/classes/@GlobalScope.xml msgid "F12 key." msgstr "F12 键。" #: doc/classes/@GlobalScope.xml msgid "F13 key." msgstr "F13 键。" #: doc/classes/@GlobalScope.xml msgid "F14 key." msgstr "F14 键。" #: doc/classes/@GlobalScope.xml msgid "F15 key." msgstr "F15 键。" #: doc/classes/@GlobalScope.xml msgid "F16 key." msgstr "F16 键。" #: doc/classes/@GlobalScope.xml msgid "Multiply (*) key on the numeric keypad." msgstr "小键盘的星键/乘以键(*)。" #: doc/classes/@GlobalScope.xml msgid "Divide (/) key on the numeric keypad." msgstr "小键盘的除以键(/)。" #: doc/classes/@GlobalScope.xml msgid "Subtract (-) key on the numeric keypad." msgstr "小键盘的减号键(-)。" #: doc/classes/@GlobalScope.xml msgid "Period (.) key on the numeric keypad." msgstr "小件盘的点键(.)。" #: doc/classes/@GlobalScope.xml msgid "Add (+) key on the numeric keypad." msgstr "小键盘的加号键(+)。" #: doc/classes/@GlobalScope.xml msgid "Number 0 on the numeric keypad." msgstr "小键盘的数字 0。" #: doc/classes/@GlobalScope.xml msgid "Number 1 on the numeric keypad." msgstr "小键盘的数字 1。" #: doc/classes/@GlobalScope.xml msgid "Number 2 on the numeric keypad." msgstr "小键盘的数字 2。" #: doc/classes/@GlobalScope.xml msgid "Number 3 on the numeric keypad." msgstr "小键盘的数字 3。" #: doc/classes/@GlobalScope.xml msgid "Number 4 on the numeric keypad." msgstr "小键盘的数字 4。" #: doc/classes/@GlobalScope.xml msgid "Number 5 on the numeric keypad." msgstr "小键盘的数字 5。" #: doc/classes/@GlobalScope.xml msgid "Number 6 on the numeric keypad." msgstr "小键盘的数字 6。" #: doc/classes/@GlobalScope.xml msgid "Number 7 on the numeric keypad." msgstr "小键盘的数字 7。" #: doc/classes/@GlobalScope.xml msgid "Number 8 on the numeric keypad." msgstr "小键盘的数字 8。" #: doc/classes/@GlobalScope.xml msgid "Number 9 on the numeric keypad." msgstr "小键盘的数字 9。" #: doc/classes/@GlobalScope.xml msgid "Left Super key (Windows key)." msgstr "左 Super 键( Windows 键 )。" #: doc/classes/@GlobalScope.xml msgid "Right Super key (Windows key)." msgstr "右 Super 键( Windows 键 )。" #: doc/classes/@GlobalScope.xml msgid "Context menu key." msgstr "菜单键。" #: doc/classes/@GlobalScope.xml msgid "Left Hyper key." msgstr "左 Hyper 键。" #: doc/classes/@GlobalScope.xml msgid "Right Hyper key." msgstr "右 Hyper 键。" #: doc/classes/@GlobalScope.xml msgid "Help key." msgstr "Help 键。" #: doc/classes/@GlobalScope.xml msgid "Left Direction key." msgstr "左方向键。" #: doc/classes/@GlobalScope.xml msgid "Right Direction key." msgstr "右方向键。" #: doc/classes/@GlobalScope.xml msgid "" "Media back key. Not to be confused with the Back button on an Android device." msgstr "媒体返回键。不要与 Android 设备上的返回键相混淆。" #: doc/classes/@GlobalScope.xml msgid "Media forward key." msgstr "媒体前进键。" #: doc/classes/@GlobalScope.xml msgid "Media stop key." msgstr "媒体停止播放键。" #: doc/classes/@GlobalScope.xml msgid "Media refresh key." msgstr "媒体刷新键。" #: doc/classes/@GlobalScope.xml msgid "Volume down key." msgstr "音量降低键。" #: doc/classes/@GlobalScope.xml msgid "Mute volume key." msgstr "静音键。" #: doc/classes/@GlobalScope.xml msgid "Volume up key." msgstr "音量升高键。" #: doc/classes/@GlobalScope.xml msgid "Bass Boost key." msgstr "Bass Boost 键。" #: doc/classes/@GlobalScope.xml msgid "Bass up key." msgstr "Bass up 键。" #: doc/classes/@GlobalScope.xml msgid "Bass down key." msgstr "Bass down 键。" #: doc/classes/@GlobalScope.xml msgid "Treble up key." msgstr "Treble up 键。" #: doc/classes/@GlobalScope.xml msgid "Treble down key." msgstr "Treble down 键。" #: doc/classes/@GlobalScope.xml msgid "Media play key." msgstr "媒体播放键。" #: doc/classes/@GlobalScope.xml msgid "Previous song key." msgstr "上一首歌键。" #: doc/classes/@GlobalScope.xml msgid "Next song key." msgstr "下一首歌键。" #: doc/classes/@GlobalScope.xml msgid "Media record key." msgstr "媒体录制键。" #: doc/classes/@GlobalScope.xml msgid "Home page key." msgstr "主页键。" #: doc/classes/@GlobalScope.xml msgid "Favorites key." msgstr "收藏键。" #: doc/classes/@GlobalScope.xml msgid "Search key." msgstr "搜索键。" #: doc/classes/@GlobalScope.xml msgid "Standby key." msgstr "Standby 键。" #: doc/classes/@GlobalScope.xml msgid "Open URL / Launch Browser key." msgstr "打开 URL / 启动浏览器键。" #: doc/classes/@GlobalScope.xml msgid "Launch Mail key." msgstr "启动邮箱键。" #: doc/classes/@GlobalScope.xml msgid "Launch Media key." msgstr "启动多媒体键。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 0 key." msgstr "快捷启动键0。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 1 key." msgstr "快捷启动键1。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 2 key." msgstr "快捷启动键2。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 3 key." msgstr "快捷启动键3。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 4 key." msgstr "快捷启动键4。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 5 key." msgstr "快捷启动键5。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 6 key." msgstr "快捷启动键6。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 7 key." msgstr "快捷启动键 7。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 8 key." msgstr "快捷启动键 8。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut 9 key." msgstr "快捷启动键9。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut A key." msgstr "快捷启动键 A 。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut B key." msgstr "快捷启动键 B 。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut C key." msgstr "快捷启动键 C 。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut D key." msgstr "快捷启动键 D 。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut E key." msgstr "快捷启动键 E 。" #: doc/classes/@GlobalScope.xml msgid "Launch Shortcut F key." msgstr "快捷启动键 F 。" #: doc/classes/@GlobalScope.xml msgid "Unknown key." msgstr "未知 键。" #: doc/classes/@GlobalScope.xml msgid "Space key." msgstr "空格键。" #: doc/classes/@GlobalScope.xml msgid "! key." msgstr "! 键。" #: doc/classes/@GlobalScope.xml msgid "\" key." msgstr "\" 键。" #: doc/classes/@GlobalScope.xml msgid "# key." msgstr "# 键。" #: doc/classes/@GlobalScope.xml msgid "$ key." msgstr "$ 键。" #: doc/classes/@GlobalScope.xml msgid "% key." msgstr "% 键。" #: doc/classes/@GlobalScope.xml msgid "& key." msgstr "& 键。" #: doc/classes/@GlobalScope.xml msgid "' key." msgstr "' 键。" #: doc/classes/@GlobalScope.xml msgid "( key." msgstr "( 键。" #: doc/classes/@GlobalScope.xml msgid ") key." msgstr ") 键。" #: doc/classes/@GlobalScope.xml msgid "* key." msgstr "* 键。" #: doc/classes/@GlobalScope.xml msgid "+ key." msgstr "+ 键。" #: doc/classes/@GlobalScope.xml msgid ", key." msgstr ", 键。" #: doc/classes/@GlobalScope.xml msgid "- key." msgstr "- 键。" #: doc/classes/@GlobalScope.xml msgid ". key." msgstr ". 键。" #: doc/classes/@GlobalScope.xml msgid "/ key." msgstr "/ 键。" #: doc/classes/@GlobalScope.xml msgid "Number 0." msgstr "数字 0。" #: doc/classes/@GlobalScope.xml msgid "Number 1." msgstr "数字 1。" #: doc/classes/@GlobalScope.xml msgid "Number 2." msgstr "数字 2。" #: doc/classes/@GlobalScope.xml msgid "Number 3." msgstr "数字 3。" #: doc/classes/@GlobalScope.xml msgid "Number 4." msgstr "数字 4。" #: doc/classes/@GlobalScope.xml msgid "Number 5." msgstr "数字 5。" #: doc/classes/@GlobalScope.xml msgid "Number 6." msgstr "数字 6。" #: doc/classes/@GlobalScope.xml msgid "Number 7." msgstr "数字 7。" #: doc/classes/@GlobalScope.xml msgid "Number 8." msgstr "数字 8。" #: doc/classes/@GlobalScope.xml msgid "Number 9." msgstr "数字 9。" #: doc/classes/@GlobalScope.xml msgid ": key." msgstr ": 键。" #: doc/classes/@GlobalScope.xml msgid "; key." msgstr "; 键。" #: doc/classes/@GlobalScope.xml msgid "< key." msgstr "< 键。" #: doc/classes/@GlobalScope.xml msgid "= key." msgstr "= 键。" #: doc/classes/@GlobalScope.xml msgid "> key." msgstr "> 键。" #: doc/classes/@GlobalScope.xml msgid "? key." msgstr "? 键。" #: doc/classes/@GlobalScope.xml msgid "@ key." msgstr "@ 键。" #: doc/classes/@GlobalScope.xml msgid "A key." msgstr "A 键。" #: doc/classes/@GlobalScope.xml msgid "B key." msgstr "B 键。" #: doc/classes/@GlobalScope.xml msgid "C key." msgstr "C 键。" #: doc/classes/@GlobalScope.xml msgid "D key." msgstr "D 键。" #: doc/classes/@GlobalScope.xml msgid "E key." msgstr "E 键。" #: doc/classes/@GlobalScope.xml msgid "F key." msgstr "F 键。" #: doc/classes/@GlobalScope.xml msgid "G key." msgstr "G 键。" #: doc/classes/@GlobalScope.xml msgid "H key." msgstr "H 键。" #: doc/classes/@GlobalScope.xml msgid "I key." msgstr "I 键。" #: doc/classes/@GlobalScope.xml msgid "J key." msgstr "J 键。" #: doc/classes/@GlobalScope.xml msgid "K key." msgstr "K 键。" #: doc/classes/@GlobalScope.xml msgid "L key." msgstr "L 键。" #: doc/classes/@GlobalScope.xml msgid "M key." msgstr "M 键。" #: doc/classes/@GlobalScope.xml msgid "N key." msgstr "N 键。" #: doc/classes/@GlobalScope.xml msgid "O key." msgstr "O 键。" #: doc/classes/@GlobalScope.xml msgid "P key." msgstr "P 键。" #: doc/classes/@GlobalScope.xml msgid "Q key." msgstr "Q 键。" #: doc/classes/@GlobalScope.xml msgid "R key." msgstr "R 键。" #: doc/classes/@GlobalScope.xml msgid "S key." msgstr "S 键。" #: doc/classes/@GlobalScope.xml msgid "T key." msgstr "T 键。" #: doc/classes/@GlobalScope.xml msgid "U key." msgstr "U 键。" #: doc/classes/@GlobalScope.xml msgid "V key." msgstr "V 键。" #: doc/classes/@GlobalScope.xml msgid "W key." msgstr "W 键。" #: doc/classes/@GlobalScope.xml msgid "X key." msgstr "X 键。" #: doc/classes/@GlobalScope.xml msgid "Y key." msgstr "Y 键。" #: doc/classes/@GlobalScope.xml msgid "Z key." msgstr "Z 键。" #: doc/classes/@GlobalScope.xml msgid "[ key." msgstr "[ 键。" #: doc/classes/@GlobalScope.xml msgid "\\ key." msgstr "\\ 键。" #: doc/classes/@GlobalScope.xml msgid "] key." msgstr "] 键。" #: doc/classes/@GlobalScope.xml msgid "^ key." msgstr "^ 键。" #: doc/classes/@GlobalScope.xml msgid "_ key." msgstr "_ 键。" #: doc/classes/@GlobalScope.xml msgid "` key." msgstr "` 键。" #: doc/classes/@GlobalScope.xml msgid "{ key." msgstr "{ 键。" #: doc/classes/@GlobalScope.xml msgid "| key." msgstr "| 键。" #: doc/classes/@GlobalScope.xml msgid "} key." msgstr "} 键。" #: doc/classes/@GlobalScope.xml msgid "~ key." msgstr "~ 键。" #: doc/classes/@GlobalScope.xml msgid "Non-breakable space key." msgstr "不可分离空格键。" #: doc/classes/@GlobalScope.xml msgid "¡ key." msgstr "¡ 键。" #: doc/classes/@GlobalScope.xml msgid "¢ key." msgstr "¢ 键。" #: doc/classes/@GlobalScope.xml msgid "£ key." msgstr "£ 键。" #: doc/classes/@GlobalScope.xml msgid "¤ key." msgstr "¤ 键。" #: doc/classes/@GlobalScope.xml msgid "¥ key." msgstr "¥ 键。" #: doc/classes/@GlobalScope.xml msgid "¦ key." msgstr "¦ 键。" #: doc/classes/@GlobalScope.xml msgid "§ key." msgstr "§ 键。" #: doc/classes/@GlobalScope.xml msgid "¨ key." msgstr "¨ 键。" #: doc/classes/@GlobalScope.xml msgid "© key." msgstr "© 键。" #: doc/classes/@GlobalScope.xml msgid "ª key." msgstr "ª 键。" #: doc/classes/@GlobalScope.xml msgid "« key." msgstr "左书名号键。" #: doc/classes/@GlobalScope.xml msgid "¬ key." msgstr "¬ 键。" #: doc/classes/@GlobalScope.xml msgid "Soft hyphen key." msgstr "软破折号键。" #: doc/classes/@GlobalScope.xml msgid "® key." msgstr "® 键。" #: doc/classes/@GlobalScope.xml msgid "¯ key." msgstr "¯ 键。" #: doc/classes/@GlobalScope.xml msgid "° key." msgstr "° 键。" #: doc/classes/@GlobalScope.xml msgid "± key." msgstr "± 键。" #: doc/classes/@GlobalScope.xml msgid "² key." msgstr "² 键。" #: doc/classes/@GlobalScope.xml msgid "³ key." msgstr "³ 键。" #: doc/classes/@GlobalScope.xml msgid "´ key." msgstr "´ 键。" #: doc/classes/@GlobalScope.xml msgid "µ key." msgstr "µ 键。" #: doc/classes/@GlobalScope.xml msgid "¶ key." msgstr "¶ 键。" #: doc/classes/@GlobalScope.xml msgid "· key." msgstr "· 键。" #: doc/classes/@GlobalScope.xml msgid "¸ key." msgstr "¸ 键。" #: doc/classes/@GlobalScope.xml msgid "¹ key." msgstr "¹ 键。" #: doc/classes/@GlobalScope.xml msgid "º key." msgstr "º 键。" #: doc/classes/@GlobalScope.xml msgid "» key." msgstr "» 键。" #: doc/classes/@GlobalScope.xml msgid "¼ key." msgstr "¼ 键。" #: doc/classes/@GlobalScope.xml msgid "½ key." msgstr "½ 键。" #: doc/classes/@GlobalScope.xml msgid "¾ key." msgstr "¾ 键。" #: doc/classes/@GlobalScope.xml msgid "¿ key." msgstr "¿ 键。" #: doc/classes/@GlobalScope.xml msgid "À key." msgstr "À 键。" #: doc/classes/@GlobalScope.xml msgid "Á key." msgstr "Á 键。" #: doc/classes/@GlobalScope.xml msgid "Â key." msgstr "Â 键。" #: doc/classes/@GlobalScope.xml msgid "Ã key." msgstr "Ã 键。" #: doc/classes/@GlobalScope.xml msgid "Ä key." msgstr "Ä 键。" #: doc/classes/@GlobalScope.xml msgid "Å key." msgstr "Å 键。" #: doc/classes/@GlobalScope.xml msgid "Æ key." msgstr "Æ 键。" #: doc/classes/@GlobalScope.xml msgid "Ç key." msgstr "Ç 键。" #: doc/classes/@GlobalScope.xml msgid "È key." msgstr "È 键。" #: doc/classes/@GlobalScope.xml msgid "É key." msgstr "É 键。" #: doc/classes/@GlobalScope.xml msgid "Ê key." msgstr "Ê 键。" #: doc/classes/@GlobalScope.xml msgid "Ë key." msgstr "Ë 键。" #: doc/classes/@GlobalScope.xml msgid "Ì key." msgstr "Ì 键。" #: doc/classes/@GlobalScope.xml msgid "Í key." msgstr "Í 键。" #: doc/classes/@GlobalScope.xml msgid "Î key." msgstr "Î 键。" #: doc/classes/@GlobalScope.xml msgid "Ï key." msgstr "Ï 键。" #: doc/classes/@GlobalScope.xml msgid "Ð key." msgstr "Ð 键。" #: doc/classes/@GlobalScope.xml msgid "Ñ key." msgstr "Ñ 键。" #: doc/classes/@GlobalScope.xml msgid "Ò key." msgstr "Ò 键。" #: doc/classes/@GlobalScope.xml msgid "Ó key." msgstr "Ó 键。" #: doc/classes/@GlobalScope.xml msgid "Ô key." msgstr "Ô 键。" #: doc/classes/@GlobalScope.xml msgid "Õ key." msgstr "Õ 键。" #: doc/classes/@GlobalScope.xml msgid "Ö key." msgstr "Ö 键。" #: doc/classes/@GlobalScope.xml msgid "× key." msgstr "× 键。" #: doc/classes/@GlobalScope.xml msgid "Ø key." msgstr "Ø 键。" #: doc/classes/@GlobalScope.xml msgid "Ù key." msgstr "Ù 键。" #: doc/classes/@GlobalScope.xml msgid "Ú key." msgstr "Ú 键。" #: doc/classes/@GlobalScope.xml msgid "Û key." msgstr "Û 键。" #: doc/classes/@GlobalScope.xml msgid "Ü key." msgstr "Ü 键。" #: doc/classes/@GlobalScope.xml msgid "Ý key." msgstr "Ý 键。" #: doc/classes/@GlobalScope.xml msgid "Þ key." msgstr "Þ 键。" #: doc/classes/@GlobalScope.xml msgid "ß key." msgstr "ß 键。" #: doc/classes/@GlobalScope.xml msgid "÷ key." msgstr "÷ 键。" #: doc/classes/@GlobalScope.xml msgid "ÿ key." msgstr "ÿ 键。" #: doc/classes/@GlobalScope.xml msgid "Key Code mask." msgstr "键码掩码。" #: doc/classes/@GlobalScope.xml msgid "Modifier key mask." msgstr "Modifier 键掩码。" #: doc/classes/@GlobalScope.xml msgid "Shift key mask." msgstr "Shift 键掩码。" #: doc/classes/@GlobalScope.xml msgid "Alt key mask." msgstr "Alt 键掩码。" #: doc/classes/@GlobalScope.xml msgid "Meta key mask." msgstr "Meta 键掩码。" #: doc/classes/@GlobalScope.xml msgid "Ctrl key mask." msgstr "Ctrl 键掩码。" #: doc/classes/@GlobalScope.xml msgid "" "Command key mask. On macOS, this is equivalent to [constant KEY_MASK_META]. " "On other platforms, this is equivalent to [constant KEY_MASK_CTRL]. This " "mask should be preferred to [constant KEY_MASK_META] or [constant " "KEY_MASK_CTRL] for system shortcuts as it handles all platforms correctly." msgstr "" "Command 键掩码。在 macOS,这等同于 [constant KEY_MASK_META]。而在其他平台,这" "等同于 [constant KEY_MASK_CTRL]。相对使用 [constant KEY_MASK_META] 或 " "[constant KEY_MASK_CTRL] 来作为系统快捷键,应优先使用此掩码,以便能让所有平台" "正确处理。" #: doc/classes/@GlobalScope.xml msgid "Keypad key mask." msgstr "Keypad 键掩码。" #: doc/classes/@GlobalScope.xml msgid "Group Switch key mask." msgstr "Group Switch 键掩码。" #: doc/classes/@GlobalScope.xml msgid "Left mouse button." msgstr "鼠标左键。" #: doc/classes/@GlobalScope.xml msgid "Right mouse button." msgstr "鼠标右键。" #: doc/classes/@GlobalScope.xml msgid "Middle mouse button." msgstr "鼠标中键。" #: doc/classes/@GlobalScope.xml msgid "Extra mouse button 1 (only present on some mice)." msgstr "鼠标额外键1(仅在某些鼠标上有实现)。" #: doc/classes/@GlobalScope.xml msgid "Extra mouse button 2 (only present on some mice)." msgstr "鼠标额外键2(仅在某些鼠标上有实现)。" #: doc/classes/@GlobalScope.xml msgid "Mouse wheel up." msgstr "鼠标滚轮向上。" #: doc/classes/@GlobalScope.xml msgid "Mouse wheel down." msgstr "鼠标滚轮向下。" #: doc/classes/@GlobalScope.xml msgid "Mouse wheel left button (only present on some mice)." msgstr "鼠标滚轮左键(仅在某些鼠标上有实现)。" #: doc/classes/@GlobalScope.xml msgid "Mouse wheel right button (only present on some mice)." msgstr "鼠标滚轮右键(仅在某些鼠标上有实现)。" #: doc/classes/@GlobalScope.xml msgid "Left mouse button mask." msgstr "鼠标左键掩码。" #: doc/classes/@GlobalScope.xml msgid "Right mouse button mask." msgstr "鼠标右键掩码。" #: doc/classes/@GlobalScope.xml msgid "Middle mouse button mask." msgstr "鼠标中键掩码。" #: doc/classes/@GlobalScope.xml msgid "Extra mouse button 1 mask." msgstr "鼠标额外键1掩码。" #: doc/classes/@GlobalScope.xml msgid "Extra mouse button 2 mask." msgstr "鼠标额外键2掩码。" #: doc/classes/@GlobalScope.xml msgid "Invalid button or axis." msgstr "无效按钮或轴。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 0." msgstr "游戏手柄按钮0。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 1." msgstr "游戏手柄按钮1。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 2." msgstr "游戏手柄按钮2。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 3." msgstr "游戏手柄按钮3。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 4." msgstr "游戏手柄按钮4。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 5." msgstr "游戏手柄按钮5。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 6." msgstr "游戏手柄按钮 6。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 7." msgstr "游戏手柄按钮 7。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 8." msgstr "游戏手柄按钮 8。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 9." msgstr "游戏手柄按钮 9。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 10." msgstr "游戏手柄按钮10。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 11." msgstr "游戏手柄按钮11。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 12." msgstr "游戏手柄按钮12。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 13." msgstr "游戏手柄按钮13。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 14." msgstr "游戏手柄按钮14。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 15." msgstr "游戏手柄按钮15。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 16." msgstr "游戏手柄按钮16。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 17." msgstr "游戏手柄按钮17。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 18." msgstr "游戏手柄按钮18。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 19." msgstr "游戏手柄按钮19。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 20." msgstr "游戏手柄按钮20。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 21." msgstr "游戏手柄按钮21。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button 22." msgstr "游戏手柄按钮22。" #: doc/classes/@GlobalScope.xml msgid "" "The maximum number of game controller buttons supported by the engine. The " "actual limit may be lower on specific platforms:\n" "- Android: Up to 36 buttons.\n" "- Linux: Up to 80 buttons.\n" "- Windows and macOS: Up to 128 buttons." msgstr "" "引擎所支持的最大游戏控制器按钮数。特定平台上的实际界限可能更低:\n" "- Android:最多 36 个按钮。\n" "- Linux:最多 80 个按钮。\n" "- Windows 和 macOS:最多 128 个按钮。" #: doc/classes/@GlobalScope.xml msgid "DualShock circle button." msgstr "DualShock 圆形按钮。" #: doc/classes/@GlobalScope.xml msgid "DualShock X button." msgstr "DualShock X按钮。" #: doc/classes/@GlobalScope.xml msgid "DualShock square button." msgstr "DualShock 方形按钮。" #: doc/classes/@GlobalScope.xml msgid "DualShock triangle button." msgstr "DualShock 三角形按钮。" #: doc/classes/@GlobalScope.xml msgid "Xbox controller B button." msgstr "Xbox 控制器 B 键。" #: doc/classes/@GlobalScope.xml msgid "Xbox controller A button." msgstr "Xbox 控制器 A 键。" #: doc/classes/@GlobalScope.xml msgid "Xbox controller X button." msgstr "Xbox 控制器 X 键。" #: doc/classes/@GlobalScope.xml msgid "Xbox controller Y button." msgstr "Xbox 控制器 Y 键。" #: doc/classes/@GlobalScope.xml msgid "Nintendo controller A button." msgstr "任天堂控制器 A 键。" #: doc/classes/@GlobalScope.xml msgid "Nintendo controller B button." msgstr "任天堂控制器 B 键。" #: doc/classes/@GlobalScope.xml msgid "Nintendo controller X button." msgstr "任天堂控制器 X 键。" #: doc/classes/@GlobalScope.xml msgid "Nintendo controller Y button." msgstr "任天堂控制器 Y 键。" #: doc/classes/@GlobalScope.xml msgid "Grip (side) buttons on a VR controller." msgstr "VR控制器上的握把(侧面)按钮。" #: doc/classes/@GlobalScope.xml msgid "Push down on the touchpad or main joystick on a VR controller." msgstr "VR控制器上的触摸板/主摇杆的向下键。" #: doc/classes/@GlobalScope.xml msgid "Trigger on a VR controller." msgstr "VR控制器上的扳机键。" #: doc/classes/@GlobalScope.xml msgid "" "A button on the right Oculus Touch controller, X button on the left " "controller (also when used in OpenVR)." msgstr "右侧Oculus Touch控制器的A按钮,左控制器的X按钮(需当使用OpenVR时)。" #: doc/classes/@GlobalScope.xml msgid "" "B button on the right Oculus Touch controller, Y button on the left " "controller (also when used in OpenVR)." msgstr "右侧Oculus Touch控制器的B按钮,左控制器的Y按钮(需当使用OpenVR时)。" #: doc/classes/@GlobalScope.xml msgid "Menu button on either Oculus Touch controller." msgstr "任意Oculus Touch控制器上的菜单按钮。" #: doc/classes/@GlobalScope.xml msgid "Menu button in OpenVR (Except when Oculus Touch controllers are used)." msgstr "OpenVR中的菜单按钮(使用 Oculus Touch 控制器时除外)。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button Select." msgstr "游戏手柄按钮选择。" #: doc/classes/@GlobalScope.xml msgid "Gamepad button Start." msgstr "游戏手柄按钮开始。" #: doc/classes/@GlobalScope.xml msgid "Gamepad DPad up." msgstr "游戏手柄上方向键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad DPad down." msgstr "游戏手柄下方向键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad DPad left." msgstr "游戏手柄左方向键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad DPad right." msgstr "游戏手柄右方向键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL guide button." msgstr "游戏手柄 SDL 指南按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL miscellaneous button." msgstr "游戏手柄 SDL 杂项按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL paddle 1 button." msgstr "游戏手柄 SDL 拨片1按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL paddle 2 button." msgstr "游戏手柄 SDL 拨片2按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL paddle 3 button." msgstr "游戏手柄 SDL 拨片3按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL paddle 4 button." msgstr "游戏手柄 SDL 拨片4按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad SDL touchpad button." msgstr "游戏手柄 SDL 触摸板按钮。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left Shoulder button." msgstr "游戏手柄左肩键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left trigger." msgstr "游戏手柄左扳机键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left stick click." msgstr "游戏手柄左键点击。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right Shoulder button." msgstr "游戏手柄右肩键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right trigger." msgstr "游戏手柄的右扳机键。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right stick click." msgstr "游戏手柄右键单击。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left stick horizontal axis." msgstr "游戏手柄左摇杆水平轴。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left stick vertical axis." msgstr "游戏手柄左摇杆垂直轴。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right stick horizontal axis." msgstr "游戏手柄右摇杆水平轴。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right stick vertical axis." msgstr "游戏手柄右摇杆垂直轴。" #: doc/classes/@GlobalScope.xml msgid "Generic gamepad axis 4." msgstr "通用的游戏手柄轴4。" #: doc/classes/@GlobalScope.xml msgid "Generic gamepad axis 5." msgstr "通用的游戏手柄轴5。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left trigger analog axis." msgstr "游戏手柄左触发模拟轴。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right trigger analog axis." msgstr "游戏手柄右触发模拟轴。" #: doc/classes/@GlobalScope.xml msgid "Generic gamepad axis 8." msgstr "通用的游戏手柄轴8。" #: doc/classes/@GlobalScope.xml msgid "Generic gamepad axis 9." msgstr "通用的游戏手柄轴9。" #: doc/classes/@GlobalScope.xml msgid "Represents the maximum number of joystick axes supported." msgstr "代表支持的操纵杆轴的最大数量。" #: doc/classes/@GlobalScope.xml msgid "Gamepad left analog trigger." msgstr "游戏手柄的左侧模拟触发器。" #: doc/classes/@GlobalScope.xml msgid "Gamepad right analog trigger." msgstr "游戏手柄右侧模拟触发器。" #: doc/classes/@GlobalScope.xml msgid "VR Controller analog trigger." msgstr "VR控制器模拟触发器。" #: doc/classes/@GlobalScope.xml msgid "VR Controller analog grip (side buttons)." msgstr "VR控制器的模拟握把(侧面按钮)。" #: doc/classes/@GlobalScope.xml msgid "" "OpenVR touchpad X axis (Joystick axis on Oculus Touch and Windows MR " "controllers)." msgstr "OpenVR触摸板X轴(Oculus Touch和Windows MR控制器的操纵杆轴)。" #: doc/classes/@GlobalScope.xml msgid "" "OpenVR touchpad Y axis (Joystick axis on Oculus Touch and Windows MR " "controllers)." msgstr "OpenVR触摸板Y轴(Oculus Touch和Windows MR控制器的操纵杆轴)。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI note OFF message. See the documentation of [InputEventMIDI] for " "information of how to use MIDI inputs." msgstr "" "MIDI 音符 OFF 消息。如何使用 MIDI 输入的信息请参阅 [InputEventMIDI] 的文档。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI note ON message. See the documentation of [InputEventMIDI] for " "information of how to use MIDI inputs." msgstr "" "MIDI 音符 ON 消息。如何使用 MIDI 输入的信息请参阅 [InputEventMIDI] 的文档。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI aftertouch message. This message is most often sent by pressing down on " "the key after it \"bottoms out\"." msgstr "MIDI 触后消息。这个消息经常都是在按键“结束”后继续施压时发送。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI control change message. This message is sent when a controller value " "changes. Controllers include devices such as pedals and levers." msgstr "" "MIDI 控制变化消息。这个消息会在控制器值发生变化时发送。控制器包括踏板、推杆等" "设备。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI program change message. This message sent when the program patch number " "changes." msgstr "MIDI 音色变化消息。这个消息会在音色 Patch 号变化时发送。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI channel pressure message. This message is most often sent by pressing " "down on the key after it \"bottoms out\". This message is different from " "polyphonic after-touch as it indicates the highest pressure across all keys." msgstr "" "MIDI 通道压力消息。这个消息经常都是在按键“结束”后继续施压时发送。这个消息与复" "音触后不同,因为它表示的是所有键中的最大压力。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI pitch bend message. This message is sent to indicate a change in the " "pitch bender (wheel or lever, typically)." msgstr "" "MIDI 弯音消息。发送这个消息表示弯音器(一般是弯音轮或推杆)产生了变化。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI system exclusive message. This has behavior exclusive to the device " "you're receiving input from. Getting this data is not implemented in Godot." msgstr "" "MIDI 系统专有消息。行为由你所用来获取输入的设备专有。Godot 未实现该数据的获" "取。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI quarter frame message. Contains timing information that is used to " "synchronize MIDI devices. Getting this data is not implemented in Godot." msgstr "" "MIDI 四分帧消息。包含用于同步 MIDI 设备的时间信息。Godot 未实现该数据的获取。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI song position pointer message. Gives the number of 16th notes since the " "start of the song. Getting this data is not implemented in Godot." msgstr "" "MIDI 歌曲位置指针消息。提供自歌曲开始以来所经过的十六分音符数。Godot 未实现该" "数据的获取。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI song select message. Specifies which sequence or song is to be played. " "Getting this data is not implemented in Godot." msgstr "MIDI 歌曲选择消息。指定要播放的序列或歌曲。Godot 未实现该数据的获取。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI tune request message. Upon receiving a tune request, all analog " "synthesizers should tune their oscillators." msgstr "MIDI 调整请求消息。收到调整请求后,所有模拟合成器都应该调整其晶振。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI timing clock message. Sent 24 times per quarter note when " "synchronization is required." msgstr "MIDI 时钟消息。需要同步时,每四分音符会发送 24 次。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI start message. Start the current sequence playing. This message will be " "followed with Timing Clocks." msgstr "MIDI 开始消息。开始当前序列的播放。这个消息后会跟随时钟消息。" #: doc/classes/@GlobalScope.xml msgid "MIDI continue message. Continue at the point the sequence was stopped." msgstr "MIDI 继续消息。从序列停止的位置继续。" #: doc/classes/@GlobalScope.xml msgid "MIDI stop message. Stop the current sequence." msgstr "MIDI 停止消息。停止当前序列。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI active sensing message. This message is intended to be sent repeatedly " "to tell the receiver that a connection is alive." msgstr "MIDI 活跃感知消息。这个消息的目的是要重复发送,告知接收方连接仍存在。" #: doc/classes/@GlobalScope.xml msgid "" "MIDI system reset message. Reset all receivers in the system to power-up " "status. It should not be sent on power-up itself." msgstr "" "MIDI 系统重置消息。将系统中的所有接收方重置为上电状态。本身不应在上电时发送。" #: doc/classes/@GlobalScope.xml msgid "" "Methods that return [enum Error] return [constant OK] when no error " "occurred. Note that many functions don't return an error code but will print " "error messages to standard output.\n" "Since [constant OK] has value 0, and all other failure codes are positive " "integers, it can also be used in boolean checks, e.g.:\n" "[codeblock]\n" "var err = method_that_returns_error()\n" "if err != OK:\n" " print(\"Failure!\")\n" "# Or, equivalent:\n" "if err:\n" " print(\"Still failing!\")\n" "[/codeblock]" msgstr "" "会在发生错误时返回 [enum Error] 的函数,会在没有发生错误的时候返回 [constant " "OK]。然而也右很多函数在发生错误时不会返回错误代码而是会输出错误信息到标准输" "出。\n" "因为 [constant OK] 的值是0,而且其他的错误代码皆为正整数,返回值也能用于布尔" "检查,例如:\n" "[codeblock]\n" "var err = method_that_returns_error()\n" "if err != OK:\n" " print(\"Failure!\")\n" "# 或者,等价于:\n" "if err:\n" " print(\"Still failing!\")\n" "[/codeblock]" #: doc/classes/@GlobalScope.xml msgid "Generic error." msgstr "一般性错误。" #: doc/classes/@GlobalScope.xml msgid "Unavailable error." msgstr "不可用的错误。" #: doc/classes/@GlobalScope.xml msgid "Unconfigured error." msgstr "未配置的错误。" #: doc/classes/@GlobalScope.xml msgid "Unauthorized error." msgstr "未经授权的错误。" #: doc/classes/@GlobalScope.xml msgid "Parameter range error." msgstr "参数范围错误。" #: doc/classes/@GlobalScope.xml msgid "Out of memory (OOM) error." msgstr "内存不足(OOM)错误。" #: doc/classes/@GlobalScope.xml msgid "File: Not found error." msgstr "文件:未找到错误。" #: doc/classes/@GlobalScope.xml msgid "File: Bad drive error." msgstr "文件:坏驱动器错误。" #: doc/classes/@GlobalScope.xml msgid "File: Bad path error." msgstr "文件:错误的路径错误。" #: doc/classes/@GlobalScope.xml msgid "File: No permission error." msgstr "文件:无权限错误。" #: doc/classes/@GlobalScope.xml msgid "File: Already in use error." msgstr "文件:已在使用错误。" #: doc/classes/@GlobalScope.xml msgid "File: Can't open error." msgstr "文件:无法打开错误。" #: doc/classes/@GlobalScope.xml msgid "File: Can't write error." msgstr "文件:无法写入错误。" #: doc/classes/@GlobalScope.xml msgid "File: Can't read error." msgstr "文件:无法读取错误。" #: doc/classes/@GlobalScope.xml msgid "File: Unrecognized error." msgstr "文件:未识别的错误。" #: doc/classes/@GlobalScope.xml msgid "File: Corrupt error." msgstr "文件:损坏错误。" #: doc/classes/@GlobalScope.xml msgid "File: Missing dependencies error." msgstr "文件:缺少依赖项错误。" #: doc/classes/@GlobalScope.xml msgid "File: End of file (EOF) error." msgstr "文件:文件结束(EOF)错误。" #: doc/classes/@GlobalScope.xml msgid "Can't open error." msgstr "无法打开错误。" #: doc/classes/@GlobalScope.xml msgid "Can't create error." msgstr "无法创建错误。" #: doc/classes/@GlobalScope.xml msgid "Query failed error." msgstr "查询失败错误。" #: doc/classes/@GlobalScope.xml msgid "Already in use error." msgstr "已在使用中错误。" #: doc/classes/@GlobalScope.xml msgid "Locked error." msgstr "锁定错误。" #: doc/classes/@GlobalScope.xml msgid "Timeout error." msgstr "超时错误。" #: doc/classes/@GlobalScope.xml msgid "Can't connect error." msgstr "无法连接错误。" #: doc/classes/@GlobalScope.xml msgid "Can't resolve error." msgstr "无法解决错误。" #: doc/classes/@GlobalScope.xml msgid "Connection error." msgstr "连接错误。" #: doc/classes/@GlobalScope.xml msgid "Can't acquire resource error." msgstr "无法获取资源错误。" #: doc/classes/@GlobalScope.xml msgid "Can't fork process error." msgstr "无法分叉进程错误。" #: doc/classes/@GlobalScope.xml msgid "Invalid data error." msgstr "无效数据错误。" #: doc/classes/@GlobalScope.xml msgid "Invalid parameter error." msgstr "无效参数错误。" #: doc/classes/@GlobalScope.xml msgid "Already exists error." msgstr "已存在的错误。" #: doc/classes/@GlobalScope.xml msgid "Does not exist error." msgstr "不存在的错误。" #: doc/classes/@GlobalScope.xml msgid "Database: Read error." msgstr "数据库:读取错误。" #: doc/classes/@GlobalScope.xml msgid "Database: Write error." msgstr "数据库:写入错误。" #: doc/classes/@GlobalScope.xml msgid "Compilation failed error." msgstr "编译失败错误。" #: doc/classes/@GlobalScope.xml msgid "Method not found error." msgstr "方法未找到错误。" #: doc/classes/@GlobalScope.xml msgid "Linking failed error." msgstr "链接失败错误。" #: doc/classes/@GlobalScope.xml msgid "Script failed error." msgstr "脚本失败错误。" #: doc/classes/@GlobalScope.xml msgid "Cycling link (import cycle) error." msgstr "循环链接(导入循环)错误。" #: doc/classes/@GlobalScope.xml msgid "Invalid declaration error." msgstr "无效声明错误。" #: doc/classes/@GlobalScope.xml msgid "Duplicate symbol error." msgstr "符号重复错误。" #: doc/classes/@GlobalScope.xml msgid "Parse error." msgstr "解析错误。" #: doc/classes/@GlobalScope.xml msgid "Busy error." msgstr "忙碌错误。" #: doc/classes/@GlobalScope.xml msgid "Skip error." msgstr "跳过错误。" #: doc/classes/@GlobalScope.xml msgid "Help error." msgstr "帮助错误。" #: doc/classes/@GlobalScope.xml msgid "Bug error." msgstr "缺陷错误。" #: doc/classes/@GlobalScope.xml msgid "" "Printer on fire error. (This is an easter egg, no engine methods return this " "error code.)" msgstr "打印机失火错误。(这是个彩蛋,引擎中没有方法会返回此错误码)" #: doc/classes/@GlobalScope.xml msgid "No hint for the edited property." msgstr "没有关于已编辑属性的提示。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer or float property should be within a range specified " "via the hint string [code]\"min,max\"[/code] or [code]\"min,max,step\"[/" "code]. The hint string can optionally include [code]\"or_greater\"[/code] " "and/or [code]\"or_lesser\"[/code] to allow manual input going respectively " "above the max or below the min values. Example: [code]\"-360,360,1," "or_greater,or_lesser\"[/code]." msgstr "" "通过提示串[code]\"min,max\"[/code] 或[code]\"min,max,step\"[/code]来提示一个" "整数或浮点数属性应当落在指定范围内。提示串可以选择性地包含 " "[code]\"or_greater\"[/code] 与/或 [code]\"or_lesser\"[/code] 来允许手动输入的" "值超过或低于最大最小值。例如: [code]\"-360,360,1,or_greater,or_lesser\"[/" "code]。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a float property should be within an exponential range specified " "via the hint string [code]\"min,max\"[/code] or [code]\"min,max,step\"[/" "code]. The hint string can optionally include [code]\"or_greater\"[/code] " "and/or [code]\"or_lesser\"[/code] to allow manual input going respectively " "above the max or below the min values. Example: [code]\"0.01,100,0.01," "or_greater\"[/code]." msgstr "" "提示一个整数或浮点数属性应当落在通过提示字符串[code]\"min,max\"[/code] 或" "[code]\"min,max,step\"[/code]来指定的范围内。提示字符串可以选择性地包含 " "[code]\"or_greater\"[/code] 与/或 [code]\"or_lesser\"[/code] 来允许手动输入的" "值超过最大值或低于最小值。例如: [code]\"0.01,100,0.01,or_greater\"[/code]。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer, float or string property is an enumerated value to " "pick in a list specified via a hint string.\n" "The hint string is a comma separated list of names such as [code]\"Hello," "Something,Else\"[/code]. For integer and float properties, the first name in " "the list has value 0, the next 1, and so on. Explicit values can also be " "specified by appending [code]:integer[/code] to the name, e.g. [code]\"Zero," "One,Three:3,Four,Six:6\"[/code]." msgstr "" "提示整型、浮点型或字符串类型的属性为枚举值,由提示字符串指定的可选值列表。\n" "提示字符串为使用逗号分隔的名称列表,例如 [code]\"Hello,Something,Else\"[/" "code]。对于整型和浮点型属性,列表中第一个名称的值为 0、接下来是 1、以此类推。" "也可以通过在名称后接上 [code]:整数[/code] 显式指定取值,例如 [code]\"Zero," "One,Three:3,Four,Six:6\"[/code]。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property can be an enumerated value to pick in a list " "specified via a hint string such as [code]\"Hello,Something,Else\"[/code].\n" "Unlike [constant PROPERTY_HINT_ENUM] a property with this hint still accepts " "arbitrary values and can be empty. The list of values serves to suggest " "possible values." msgstr "" "提示字符串属性为枚举值,可选值列表通过提示字符串指定,例如 [code]\"Hello," "Something,Else\"[/code]。\n" "与 [constant PROPERTY_HINT_ENUM] 不同,具有这个提示的属性仍能够接受任意值,而" "且可以为空。可选值列表用于提示可能的值。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a float property should be edited via an exponential easing " "function. The hint string can include [code]\"attenuation\"[/code] to flip " "the curve horizontally and/or [code]\"inout\"[/code] to also include in/out " "easing." msgstr "" "提示一个浮点数属性应当通过指数缓动函数来编辑。此处的提示串可以包含 " "[code]\"attenuation\"[/code] 来翻转曲线的水平方向,并且/或者也可以通过" "[code]\"inout\"[/code]来控制是否缓入缓出。" #: doc/classes/@GlobalScope.xml msgid "Deprecated hint, unused." msgstr "已废弃的提示标识,未被使用。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer property is a bitmask with named bit flags. For " "example, to allow toggling bits 0, 1, 2 and 4, the hint could be something " "like [code]\"Bit0,Bit1,Bit2,,Bit4\"[/code]." msgstr "" "提示一个整数属性是一个带有若干命名的位标记的掩码。例如,想允许修改 0、1、2、" "4 位,提示串应当是类似于 [code]\"Bit0,Bit1,Bit2,,Bit4\"[/code] 的东西。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer property is a bitmask using the optionally named 2D " "render layers." msgstr "提示一个整数属性是一个掩码,使用着具备或不具备命名的2D渲染层。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer property is a bitmask using the optionally named 2D " "physics layers." msgstr "提示一个整数属性是一个掩码,使用着具备或不具备命名的2D物理层。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer property is a bitmask using the optionally named 3D " "render layers." msgstr "提示一个整数属性是一个掩码,使用着具备或不具备命名的3D渲染层。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that an integer property is a bitmask using the optionally named 3D " "physics layers." msgstr "提示一个整数属性是一个掩码,使用着具备或不具备命名的3D物理层。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property is a path to a file. Editing it will show a " "file dialog for picking the path. The hint string can be a set of filters " "with wildcards like [code]\"*.png,*.jpg\"[/code]." msgstr "" "提示一个字符串属性是关于一个文件的路径。编辑该属性时会弹出取得文件路径的文件" "对话框。此处的提示文本可以是一组带有通配符的过滤器,例如 [code]\"*.png,*." "jpg\"[/code]。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property is a path to a directory. Editing it will show " "a file dialog for picking the path." msgstr "" "提示一个字符串属性是一个关于目录的路径。编辑该属性时会弹出取得文件路径的文件" "对话框。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property is an absolute path to a file outside the " "project folder. Editing it will show a file dialog for picking the path. The " "hint string can be a set of filters with wildcards like [code]\"*.png,*." "jpg\"[/code]." msgstr "" "提示一个字符串属性是关于一个在项目文件夹之外的文件的绝对路径。编辑该属性时会" "弹出取得文件路径的文件对话框。此处的提示文本可以是一组带有通配符的过滤器,例" "如 [code]\"*.png,*.jpg\"[/code]。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property is an absolute path to a directory outside the " "project folder. Editing it will show a file dialog for picking the path." msgstr "" "提示一个字符串属性是一个关于项目文件夹之外的目录的绝对路径。编辑该属性时会弹" "出取得文件路径的文件对话框。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a property is an instance of a [Resource]-derived type, " "optionally specified via the hint string (e.g. [code]\"Texture\"[/code]). " "Editing it will show a popup menu of valid resource types to instantiate." msgstr "" "提示一个属性是一个 [Resource] 派生类的实例,可以通过提示字符串指定(例如 " "[code]\"Texture\"[/code])。编辑该属性时会显示一个列举了可用的待实例化的资源" "类型的弹出菜单。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property is text with line breaks. Editing it will show " "a text input field where line breaks can be typed." msgstr "" "提示一个字符串属性是一个带有换行的文本。编辑该属性时会显示一个允许键入换行符" "的文本输入域。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a string property should have a placeholder text visible on its " "input field, whenever the property is empty. The hint string is the " "placeholder text to use." msgstr "" "提示一个字符串属性在其输入域上应当具有当属性为空时可见的占位文本。此处的提示" "串是占位文本使用的字符串。" #: doc/classes/@GlobalScope.xml msgid "" "Hints that a color property should be edited without changing its alpha " "component, i.e. only R, G and B channels are edited." msgstr "" "提示一个颜色属性在编辑时不能修改 Alpha 分量,换言之,只有 R、G、B 三通道可以" "被编辑。" #: doc/classes/@GlobalScope.xml msgid "Hints that an image is compressed using lossy compression." msgstr "提示一个图片使用了有损压缩进行压缩。" #: doc/classes/@GlobalScope.xml msgid "Hints that an image is compressed using lossless compression." msgstr "提示一个图片使用了无损压缩进行压缩。" #: doc/classes/@GlobalScope.xml msgid "The property is serialized and saved in the scene file (default)." msgstr "将属性序列化并保存到场景文件中(默认)。" #: doc/classes/@GlobalScope.xml msgid "The property is shown in the editor inspector (default)." msgstr "将属性展示在编辑器的检查器面板中(默认)。" #: doc/classes/@GlobalScope.xml msgid "Deprecated usage flag, unused." msgstr "废弃使用的标志,未使用。" #: doc/classes/@GlobalScope.xml msgid "The property can be checked in the editor inspector." msgstr "该属性可以在编辑器的检查器中被勾选。" #: doc/classes/@GlobalScope.xml msgid "The property is checked in the editor inspector." msgstr "该属性在编辑器的检查器中已经勾选。" #: doc/classes/@GlobalScope.xml msgid "The property is a translatable string." msgstr "该属性是一个可翻译的字符串。" #: doc/classes/@GlobalScope.xml msgid "Used to group properties together in the editor. See [EditorInspector]." msgstr "在编辑器中用于为属性分组。见 [EditorInspector]。" #: doc/classes/@GlobalScope.xml msgid "Used to categorize properties together in the editor." msgstr "在编辑器中用于为属性分类。" #: doc/classes/@GlobalScope.xml msgid "The property does not save its state in [PackedScene]." msgstr "该属性不在 [PackedScene] 中保存其状态。" #: doc/classes/@GlobalScope.xml msgid "Editing the property prompts the user for restarting the editor." msgstr "编辑属性会提示用户重新启动编辑器。" #: doc/classes/@GlobalScope.xml msgid "" "The property is a script variable which should be serialized and saved in " "the scene file." msgstr "该属性是一个脚本变量,应该被序列化并保存在场景文件中。" #: doc/classes/@GlobalScope.xml msgid "Default usage (storage, editor and network)." msgstr "默认用法(存储、编辑器和网络)。" #: doc/classes/@GlobalScope.xml msgid "" "Default usage for translatable strings (storage, editor, network and " "internationalized)." msgstr "可翻译字符串的默认用法(存储、编辑器、网络和国际化)。" #: doc/classes/@GlobalScope.xml msgid "" "Default usage but without showing the property in the editor (storage, " "network)." msgstr "默认用法,但不在编辑器中显示属性(存储、网络)。" #: doc/classes/@GlobalScope.xml msgid "Flag for a normal method." msgstr "普通方法的标志。" #: doc/classes/@GlobalScope.xml msgid "Flag for an editor method." msgstr "编辑器方法的标志。" #: doc/classes/@GlobalScope.xml msgid "Deprecated method flag, unused." msgstr "已废弃的方法标志,未使用。" #: doc/classes/@GlobalScope.xml msgid "Flag for a constant method." msgstr "常量方法的标志。" #: doc/classes/@GlobalScope.xml msgid "Flag for a virtual method." msgstr "虚方法的标志。" #: doc/classes/@GlobalScope.xml msgid "Default method flags." msgstr "默认方法的标志。" #: doc/classes/@GlobalScope.xml msgid "Variable is [code]null[/code]." msgstr "变量为 [code]null[/code]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [bool]." msgstr "变量类型为 [bool]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [int]." msgstr "变量类型为 [int]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [float] (real)." msgstr "变量类型为 [float](实数)。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [String]." msgstr "变量类型为 [String]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Vector2]." msgstr "变量类型为 [Vector2]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Rect2]." msgstr "变量类型为 [Rect2]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Vector3]." msgstr "变量类型为 [Vector3]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Transform2D]." msgstr "变量类型为 [Transform2D]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Plane]." msgstr "变量类型为 [Plane]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Quat]." msgstr "变量的类型为 [Quat]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [AABB]." msgstr "变量的类型为 [AABB]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Basis]." msgstr "变量的类型为 [Basis]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Transform]." msgstr "变量的类型为 [Transform]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Color]." msgstr "变量的类型为 [Color]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [NodePath]." msgstr "变量的类型为 [NodePath]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [RID]." msgstr "变量的类型为 [RID]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Object]." msgstr "变量的类型为 [Object]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Dictionary]." msgstr "变量的类型为 [Dictionary]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [Array]." msgstr "变量的类型为 [Array]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolByteArray]." msgstr "变量的类型是 [PoolByteArray]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolIntArray]." msgstr "变量的类型是 [PoolIntArray]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolRealArray]." msgstr "变量的类型是 [PoolRealArray]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolStringArray]." msgstr "变量的类型是 [PoolStringArray]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolVector2Array]." msgstr "变量的类型是 [PoolVector2Array]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolVector3Array]." msgstr "变量的类型是 [PoolVector3Array]。" #: doc/classes/@GlobalScope.xml msgid "Variable is of type [PoolColorArray]." msgstr "变量的类型是 [PoolColorArray]。" #: doc/classes/@GlobalScope.xml msgid "Represents the size of the [enum Variant.Type] enum." msgstr "表示 [enum Variant.Type] 枚举的大小。" #: doc/classes/@GlobalScope.xml msgid "Equality operator ([code]==[/code])." msgstr "等于运算符([code]==[/code])。" #: doc/classes/@GlobalScope.xml msgid "Inequality operator ([code]!=[/code])." msgstr "不等式运算符([code]!=[/code])。" #: doc/classes/@GlobalScope.xml msgid "Less than operator ([code]<[/code])." msgstr "小于运算符([code]<[/code])。" #: doc/classes/@GlobalScope.xml msgid "Less than or equal operator ([code]<=[/code])." msgstr "小于等于运算符([code]<=[/code])。" #: doc/classes/@GlobalScope.xml msgid "Greater than operator ([code]>[/code])." msgstr "大于运算符([code]>[/code])。" #: doc/classes/@GlobalScope.xml msgid "Greater than or equal operator ([code]>=[/code])." msgstr "大于等于运算符([code]> =[/code])。" #: doc/classes/@GlobalScope.xml msgid "Addition operator ([code]+[/code])." msgstr "加法运算符([code]+[/code])。" #: doc/classes/@GlobalScope.xml msgid "Subtraction operator ([code]-[/code])." msgstr "减法运算符([code]-[/code])。" #: doc/classes/@GlobalScope.xml msgid "Multiplication operator ([code]*[/code])." msgstr "乘法运算符([code]*[/code])。" #: doc/classes/@GlobalScope.xml msgid "Division operator ([code]/[/code])." msgstr "除法运算符([code]/[/code])。" #: doc/classes/@GlobalScope.xml msgid "Unary negation operator ([code]-[/code])." msgstr "一元减号运算符([code]-[/code])。" #: doc/classes/@GlobalScope.xml msgid "Unary plus operator ([code]+[/code])." msgstr "一元加号运算符([code]+[/code])。" #: doc/classes/@GlobalScope.xml msgid "Remainder/modulo operator ([code]%[/code])." msgstr "余数/取模运算符([code]%[/code])。" #: doc/classes/@GlobalScope.xml msgid "String concatenation operator ([code]+[/code])." msgstr "字符串连接运算符([code]+[/code])。" #: doc/classes/@GlobalScope.xml msgid "Left shift operator ([code]<<[/code])." msgstr "左移运算符([code]<<[/code])。" #: doc/classes/@GlobalScope.xml msgid "Right shift operator ([code]>>[/code])." msgstr "右移运算符([code]>>[/code])。" #: doc/classes/@GlobalScope.xml msgid "Bitwise AND operator ([code]&[/code])." msgstr "按位与运算符([code]&[/code])。" #: doc/classes/@GlobalScope.xml msgid "Bitwise OR operator ([code]|[/code])." msgstr "按位或运算符([code]|[/code])。" #: doc/classes/@GlobalScope.xml msgid "Bitwise XOR operator ([code]^[/code])." msgstr "按位异或运算符([code]^[/code])。" #: doc/classes/@GlobalScope.xml msgid "Bitwise NOT operator ([code]~[/code])." msgstr "按位非运算符([code]~[/code])。" #: doc/classes/@GlobalScope.xml msgid "Logical AND operator ([code]and[/code] or [code]&&[/code])." msgstr "逻辑与运算符([code]and[/code] 或 [code]&&[/code])。" #: doc/classes/@GlobalScope.xml msgid "Logical OR operator ([code]or[/code] or [code]||[/code])." msgstr "逻辑或运算符([code]or[/code] 或 [code]||[/code])。" #: doc/classes/@GlobalScope.xml msgid "Logical XOR operator (not implemented in GDScript)." msgstr "逻辑异或运算符(未在 GDScript 中实现)。" #: doc/classes/@GlobalScope.xml msgid "Logical NOT operator ([code]not[/code] or [code]![/code])." msgstr "逻辑非运算符([code]not[/code] 或 [code]![/code])。" #: doc/classes/@GlobalScope.xml msgid "Logical IN operator ([code]in[/code])." msgstr "逻辑 IN 运算符([code]in[/code])。" #: doc/classes/@GlobalScope.xml msgid "Represents the size of the [enum Variant.Operator] enum." msgstr "表示 [enum Variant.Operator] 枚举的大小。" #: doc/classes/AABB.xml msgid "Axis-Aligned Bounding Box." msgstr "轴对齐包围盒。" #: doc/classes/AABB.xml msgid "" "[AABB] consists of a position, a size, and several utility functions. It is " "typically used for fast overlap tests.\n" "It uses floating-point coordinates. The 2D counterpart to [AABB] is " "[Rect2].\n" "[b]Note:[/b] Unlike [Rect2], [AABB] does not have a variant that uses " "integer coordinates." msgstr "" "[AABB] 由一个位置、一个大小和若干实用函数组成,通常用于快速重叠测试。\n" "它使用浮点坐标。[AABB] 的 2D 对应物为 [Rect2]。\n" "[b]注意:[/b]与 [Rect2] 不同,[AABB] 没有使用整数坐标的变体。" #: doc/classes/AABB.xml doc/classes/Basis.xml doc/classes/Rect2.xml #: doc/classes/Transform.xml doc/classes/Transform2D.xml #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "Math tutorial index" msgstr "数学教程索引" #: doc/classes/AABB.xml doc/classes/Rect2.xml doc/classes/Vector2.xml #: doc/classes/Vector3.xml msgid "Vector math" msgstr "向量数学" #: doc/classes/AABB.xml doc/classes/Rect2.xml doc/classes/Vector2.xml #: doc/classes/Vector3.xml msgid "Advanced vector math" msgstr "高等向量数学" #: doc/classes/AABB.xml msgid "Constructs an [AABB] from a position and size." msgstr "从一个位置和大小构造 [AABB] 。" #: doc/classes/AABB.xml msgid "" "Returns an AABB with equivalent position and size, modified so that the most-" "negative corner is the origin and the size is positive." msgstr "返回等价的 AABB,其原点被修正至最负数的角落,大小被修正为正数。" #: doc/classes/AABB.xml msgid "" "Returns [code]true[/code] if this [AABB] completely encloses another one." msgstr "该 [AABB] 完全包含另一个时,返回 [code]true[/code]。" #: doc/classes/AABB.xml msgid "" "Returns a copy of this [AABB] expanded to include a given point.\n" "[b]Example:[/b]\n" "[codeblock]\n" "# position (-3, 2, 0), size (1, 1, 1)\n" "var box = AABB(Vector3(-3, 2, 0), Vector3(1, 1, 1))\n" "# position (-3, -1, 0), size (3, 4, 2), so we fit both the original AABB and " "Vector3(0, -1, 2)\n" "var box2 = box.expand(Vector3(0, -1, 2))\n" "[/codeblock]" msgstr "" "返回该 [AABB] 的副本,该副本扩展至包含给出的点。\n" "[b]例子:[/b]\n" "[codeblock]\n" "# position (-3, 2, 0), size (1, 1, 1)\n" "var box = AABB(Vector3(-3, 2, 0), Vector3(1, 1, 1))\n" "# position (-3, -1, 0), size (3, 4, 2), 包含原来的 AABB 和 Vector3(0, -1, " "2)\n" "var box2 = box.expand(Vector3(0, -1, 2))\n" "[/codeblock]" #: doc/classes/AABB.xml msgid "Returns the volume of the [AABB]." msgstr "返回该 [AABB] 的体积。" #: doc/classes/AABB.xml msgid "" "Returns the center of the [AABB], which is equal to [member position] + " "([member size] / 2)." msgstr "返回该 [AABB] 的中心点,等于 [member position] + ([member size] / 2)。" #: doc/classes/AABB.xml msgid "Gets the position of the 8 endpoints of the [AABB] in space." msgstr "获取该 [AABB] 的 8 个端点的位置。" #: doc/classes/AABB.xml msgid "Returns the normalized longest axis of the [AABB]." msgstr "返回该 [AABB] 归一化后的最长轴。" #: doc/classes/AABB.xml msgid "" "Returns the index of the longest axis of the [AABB] (according to " "[Vector3]'s [code]AXIS_*[/code] constants)." msgstr "" "返回该 [AABB] 最长轴的索引(根据 [Vector3] 的 [code]AXIS_*[/code] 常量)。" #: doc/classes/AABB.xml msgid "Returns the scalar length of the longest axis of the [AABB]." msgstr "返回该 [AABB] 最长轴的标量长度。" #: doc/classes/AABB.xml msgid "Returns the normalized shortest axis of the [AABB]." msgstr "返回该 [AABB] 归一化后的最短轴。" #: doc/classes/AABB.xml msgid "" "Returns the index of the shortest axis of the [AABB] (according to " "[Vector3]::AXIS* enum)." msgstr "" "返回该 [AABB] 最短轴的索引(根据 [Vector3] 的 [code]AXIS_*[/code] 常量)。" #: doc/classes/AABB.xml msgid "Returns the scalar length of the shortest axis of the [AABB]." msgstr "返回该 [AABB] 最短轴的标量长度。" #: doc/classes/AABB.xml msgid "" "Returns the support point in a given direction. This is useful for collision " "detection algorithms." msgstr "返回指定方向上的支持点。常用于碰撞检测算法。" #: doc/classes/AABB.xml msgid "" "Returns a copy of the [AABB] grown a given amount of units towards all the " "sides." msgstr "返回该 [AABB] 的副本,沿着所有面的方向都增加了指定的大小。" #: doc/classes/AABB.xml msgid "Returns [code]true[/code] if the [AABB] is flat or empty." msgstr "该 [AABB] 为平面或者为空时,返回 [code]true[/code]。" #: doc/classes/AABB.xml msgid "Returns [code]true[/code] if the [AABB] is empty." msgstr "该 [AABB] 为空时,返回 [code]true[/code]。" #: doc/classes/AABB.xml msgid "Returns [code]true[/code] if the [AABB] contains a point." msgstr "该 [AABB] 包含指定点时,返回 [code]true[/code]。" #: doc/classes/AABB.xml msgid "" "Returns the intersection between two [AABB]. An empty AABB (size 0,0,0) is " "returned on failure." msgstr "返回两个 [AABB] 的交叠区域。失败时返回空的 AABB(大小为 0,0,0)。" #: doc/classes/AABB.xml msgid "Returns [code]true[/code] if the [AABB] overlaps with another." msgstr "该 [AABB] 与另一个交叠时,返回 [code]true[/code]。" #: doc/classes/AABB.xml msgid "Returns [code]true[/code] if the [AABB] is on both sides of a plane." msgstr "该 [AABB] 同时位于指定平面的两边时,返回 [code]true[/code]。" #: doc/classes/AABB.xml msgid "" "Returns [code]true[/code] if the [AABB] intersects the line segment between " "[code]from[/code] and [code]to[/code]." msgstr "" "该 [AABB] 与 [code]from[/code] 和 [code]to[/code] 所构成的线段有交叠时,返回 " "[code]true[/code]。" #: doc/classes/AABB.xml msgid "" "Returns [code]true[/code] if this [AABB] and [code]aabb[/code] are " "approximately equal, by calling [method @GDScript.is_equal_approx] on each " "component." msgstr "" "该 [AABB] 与 [code]aabb[/code] 近似相等时,返回 [code]true[/code]。通过将各个" "分量调用 [method @GDScript.is_equal_approx] 确定。" #: doc/classes/AABB.xml msgid "" "Returns a larger [AABB] that contains both this [AABB] and [code]with[/code]." msgstr "返回同时包含该 [AABB] 和 [code]with[/code] 的更大的 [AABB]。" #: doc/classes/AABB.xml doc/classes/Rect2.xml msgid "" "Ending corner. This is calculated as [code]position + size[/code]. Setting " "this value will change the size." msgstr "" "终点角。通过 [code]position + size[/code] 计算而来。设置该值会修改大小。" #: doc/classes/AABB.xml doc/classes/Rect2.xml msgid "Beginning corner. Typically has values lower than [member end]." msgstr "起点角。通常比 [member end] 小。" #: doc/classes/AABB.xml doc/classes/Rect2.xml msgid "" "Size from [member position] to [member end]. Typically, all components are " "positive.\n" "If the size is negative, you can use [method abs] to fix it." msgstr "" "从[member position] 到 [member end] 的大小。通常所有分量都是正数。\n" "如果大小为负,可以用 [method abs] 修正。" #: doc/classes/AcceptDialog.xml msgid "Base dialog for user notification." msgstr "用户通知的基本对话框。" #: doc/classes/AcceptDialog.xml msgid "" "This dialog is useful for small notifications to the user about an event. It " "can only be accepted or closed, with the same result." msgstr "" "该对话框对于向用户发送有关事件的小通知很有用。它只能被接受或关闭,并且结果相" "同。" #: doc/classes/AcceptDialog.xml msgid "" "Adds a button with label [code]text[/code] and a custom [code]action[/code] " "to the dialog and returns the created button. [code]action[/code] will be " "passed to the [signal custom_action] signal when pressed.\n" "If [code]true[/code], [code]right[/code] will place the button to the right " "of any sibling buttons.\n" "You can use [method remove_button] method to remove a button created with " "this method from the dialog." msgstr "" "向对话框中添加一个带有标签[code]text[/code]和自定义[code]action[/code]的按" "钮,并返回该创建的按钮。按下时,[code]action[/code]会被传递给[signal " "custom_action]信号。\n" "如果[code]right[/code]为 [code]true[/code],按钮会被放置在所有同级按钮的右" "边。\n" "您可以使用 [method remove_button] 方法从对话框中删除使用此方法创建的按钮。" #: doc/classes/AcceptDialog.xml msgid "" "Adds a button with label [code]name[/code] and a cancel action to the dialog " "and returns the created button.\n" "You can use [method remove_button] method to remove a button created with " "this method from the dialog." msgstr "" "向对话框中添加一个标签为[code]name[/code]和一个取消动作的按钮,然后返回这个新" "创建的按钮。\n" "您可以使用 [method remove_button] 方法从对话框中删除使用此方法创建的按钮。" #: doc/classes/AcceptDialog.xml msgid "" "Returns the label used for built-in text.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回内置文本所使用的标签。\n" "[b]警告:[/b]这是个必要的内部节点,删除和释放它有可能造成崩溃。如果你希望隐藏" "它或它的任意一个子节点,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/AcceptDialog.xml msgid "" "Returns the OK [Button] instance.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回确定按钮 [Button] 实例。\n" "[b]警告:[/b]这是个必要的内部节点,删除和释放它有可能造成崩溃。如果你希望隐藏" "它或它的任意一个子节点,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/AcceptDialog.xml msgid "" "Registers a [LineEdit] in the dialog. When the enter key is pressed, the " "dialog will be accepted." msgstr "在对话框中注册 [LineEdit]。 当按下回车键时,对话框将被接受。" #: doc/classes/AcceptDialog.xml msgid "" "Removes the [code]button[/code] from the dialog. Does NOT free the " "[code]button[/code]. The [code]button[/code] must be a [Button] added with " "[method add_button] or [method add_cancel] method. After removal, pressing " "the [code]button[/code] will no longer emit this dialog's [signal " "custom_action] signal or cancel this dialog." msgstr "" "从对话框中移除 [code]button[/code]。但不释放 该[code]button[/code]对象。" "[code]button[/code] 必须是添加有 [method add_button] 或 [method add_cancel] " "方法的 [Button]。移除后,按下该[code]button[/code]将不再发出此对话框的" "[signal custom_action]信号或取消此对话框。" #: doc/classes/AcceptDialog.xml msgid "Sets autowrapping for the text in the dialog." msgstr "为对话框中的文本设置自动换行。" #: doc/classes/AcceptDialog.xml msgid "" "If [code]true[/code], the dialog is hidden when the OK button is pressed. " "You can set it to [code]false[/code] if you want to do e.g. input validation " "when receiving the [signal confirmed] signal, and handle hiding the dialog " "in your own logic.\n" "[b]Note:[/b] Some nodes derived from this class can have a different default " "value, and potentially their own built-in logic overriding this setting. For " "example [FileDialog] defaults to [code]false[/code], and has its own input " "validation code that is called when you press OK, which eventually hides the " "dialog if the input is valid. As such, this property can't be used in " "[FileDialog] to disable hiding the dialog when pressing OK." msgstr "" "如果为 [code]true[/code],按下OK按钮时对话框将隐藏。如果要在收到 [signal " "confirmed] 信号时执行类似输入验证的操作,则可以将其设置为 [code]false[/" "code],然后在自己的逻辑中处理对话框的隐藏。\n" "[b]注意:[/b]从此类派生的某些节点可以具有不同的默认值,并且可能有自己的内置逻" "辑会覆盖此设置。 例如,[FileDialog] 默认其为 [code]false[/code],并在按下OK时" "实现了自己的输入验证代码,如果输入有效,最终将隐藏对话框。因此,不能在 " "[FileDialog] 中使用此属性来禁止在按OK时隐藏对话框。" #: doc/classes/AcceptDialog.xml msgid "The text displayed by the dialog." msgstr "对话框显示的文本。" #: doc/classes/AcceptDialog.xml msgid "Emitted when the dialog is accepted, i.e. the OK button is pressed." msgstr "接受对话框时,即按下OK按钮时发出。" #: doc/classes/AcceptDialog.xml msgid "Emitted when a custom button is pressed. See [method add_button]." msgstr "按下自定义按钮时发出。 参阅[method add_button]。" #: doc/classes/AESContext.xml msgid "Interface to low level AES encryption features." msgstr "低级AES加密功能接口。" #: doc/classes/AESContext.xml msgid "" "This class provides access to AES encryption/decryption of raw data. Both " "AES-ECB and AES-CBC mode are supported.\n" "[codeblock]\n" "extends Node\n" "\n" "var aes = AESContext.new()\n" "\n" "func _ready():\n" " var key = \"My secret key!!!\" # Key must be either 16 or 32 bytes.\n" " var data = \"My secret text!!\" # Data size must be multiple of 16 " "bytes, apply padding if needed.\n" " # Encrypt ECB\n" " aes.start(AESContext.MODE_ECB_ENCRYPT, key.to_utf8())\n" " var encrypted = aes.update(data.to_utf8())\n" " aes.finish()\n" " # Decrypt ECB\n" " aes.start(AESContext.MODE_ECB_DECRYPT, key.to_utf8())\n" " var decrypted = aes.update(encrypted)\n" " aes.finish()\n" " # Check ECB\n" " assert(decrypted == data.to_utf8())\n" "\n" " var iv = \"My secret iv!!!!\" # IV must be of exactly 16 bytes.\n" " # Encrypt CBC\n" " aes.start(AESContext.MODE_CBC_ENCRYPT, key.to_utf8(), iv.to_utf8())\n" " encrypted = aes.update(data.to_utf8())\n" " aes.finish()\n" " # Decrypt CBC\n" " aes.start(AESContext.MODE_CBC_DECRYPT, key.to_utf8(), iv.to_utf8())\n" " decrypted = aes.update(encrypted)\n" " aes.finish()\n" " # Check CBC\n" " assert(decrypted == data.to_utf8())\n" "[/codeblock]" msgstr "" "此类提供了对原始数据的 AES 加密/解密的访问。同时支持 AES-ECB 和 AES-CBC 模" "式。\n" "[codeblock]\n" "extends Node\n" "\n" "var aes = AESContext.new()\n" "\n" "func _ready():\n" " var key = \"My secret key!!!\" # Key must be either 16 or 32 bytes.\n" " var data = \"My secret text!!\" # Data size must be multiple of 16 " "bytes, apply padding if needed.\n" " # ECB 加密\n" " aes.start(AESContext.MODE_ECB_ENCRYPT, key.to_utf8())\n" " var encrypted = aes.update(data.to_utf8())\n" " aes.finish()\n" " # ECB 解密\n" " aes.start(AESContext.MODE_ECB_DECRYPT, key.to_utf8())\n" " var decrypted = aes.update(encrypted)\n" " aes.finish()\n" " # ECB 校验\n" " assert(decrypted == data.to_utf8())\n" "\n" " var iv = \"My secret iv!!!!\" # IV must be of exactly 16 bytes.\n" " # CBC 加密\n" " aes.start(AESContext.MODE_CBC_ENCRYPT, key.to_utf8(), iv.to_utf8())\n" " encrypted = aes.update(data.to_utf8())\n" " aes.finish()\n" " # CBC 解密\n" " aes.start(AESContext.MODE_CBC_DECRYPT, key.to_utf8(), iv.to_utf8())\n" " decrypted = aes.update(encrypted)\n" " aes.finish()\n" " # CBC 校验\n" " assert(decrypted == data.to_utf8())\n" "[/codeblock]" #: doc/classes/AESContext.xml msgid "Close this AES context so it can be started again. See [method start]." msgstr "关闭此AES上下文,以便可以再次启动它。 参阅[method start]。" #: doc/classes/AESContext.xml msgid "" "Get the current IV state for this context (IV gets updated when calling " "[method update]). You normally don't need this function.\n" "[b]Note:[/b] This function only makes sense when the context is started with " "[constant MODE_CBC_ENCRYPT] or [constant MODE_CBC_DECRYPT]." msgstr "" "获取此上下文的当前 IV 状态(调用 [method update] 时会更新 IV)。通常不需要此" "函数。\n" "[b]注意:[/b]仅当上下文以 [constant MODE_CBC_ENCRYPT] 或 [constant " "MODE_CBC_DECRYPT] 开头时,此函数才有意义。" #: doc/classes/AESContext.xml msgid "" "Start the AES context in the given [code]mode[/code]. A [code]key[/code] of " "either 16 or 32 bytes must always be provided, while an [code]iv[/code] " "(initialization vector) of exactly 16 bytes, is only needed when [code]mode[/" "code] is either [constant MODE_CBC_ENCRYPT] or [constant MODE_CBC_DECRYPT]." msgstr "" "以给定的[code]模式[/code]启动AES上下文。必须始终提供16或32字节的[code]key[/" "code],而仅当[code]mode[/code]为以下两种情况时才需要正好为16字节的[code]iv[/" "code](初始化向量) [constant MODE_CBC_ENCRYPT]或[constant " "MODE_CBC_DECRYPT]。" #: doc/classes/AESContext.xml msgid "" "Run the desired operation for this AES context. Will return a " "[PoolByteArray] containing the result of encrypting (or decrypting) the " "given [code]src[/code]. See [method start] for mode of operation.\n" "[b]Note:[/b] The size of [code]src[/code] must be a multiple of 16. Apply " "some padding if needed." msgstr "" "运行此 AES 上下文所需的操作。将返回包含加密(或解密)给定 [code]src[/code] 结" "果的[PoolByteArray] 。有关操作模式,请参阅[method start]。\n" "[b]注意:[/b][code]src[/code]的大小必须是16倍的倍数。如果需要,应用一些填充。" #: doc/classes/AESContext.xml msgid "AES electronic codebook encryption mode." msgstr "AES电子密码簿加密模式。" #: doc/classes/AESContext.xml msgid "AES electronic codebook decryption mode." msgstr "AES电子密码簿解密模式。" #: doc/classes/AESContext.xml msgid "AES cipher blocker chaining encryption mode." msgstr "AES密码封锁器链式加密模式。" #: doc/classes/AESContext.xml msgid "AES cipher blocker chaining decryption mode." msgstr "AES密码封锁器链式解密模式。" #: doc/classes/AESContext.xml msgid "Maximum value for the mode enum." msgstr "模式列举的最大值。" #: doc/classes/AnimatedSprite.xml msgid "" "Sprite node that contains multiple textures as frames to play for animation." msgstr "可以使用多个纹理进行动画处理的精灵节点。" #: doc/classes/AnimatedSprite.xml msgid "" "[AnimatedSprite] is similar to the [Sprite] node, except it carries multiple " "textures as animation frames. Animations are created using a [SpriteFrames] " "resource, which allows you to import image files (or a folder containing " "said files) to provide the animation frames for the sprite. The " "[SpriteFrames] resource can be configured in the editor via the SpriteFrames " "bottom panel.\n" "[b]Note:[/b] You can associate a set of normal or specular maps by creating " "additional [SpriteFrames] resources with a [code]_normal[/code] or " "[code]_specular[/code] suffix. For example, having 3 [SpriteFrames] " "resources [code]run[/code], [code]run_normal[/code], and [code]run_specular[/" "code] will make it so the [code]run[/code] animation uses normal and " "specular maps." msgstr "" "[AnimatedSprite] 与 [Sprite] 节点类似,但是包含多张纹理,可用作动画帧。动画使" "用 [SpriteFrames] 资源创建,可以导入图像文件(或包含此类文件的文件夹)为该精" "灵提供动画帧。可以在编辑器的“动画帧”底部面板中配置 [SpriteFrames] 资源。\n" "[b]注意:[/b]你可以通过创建附加的带有 [code]_normal[/code] 或 " "[code]_specular[/code] 后缀的 [SpriteFrames] 资源来关联一组法线或镜面反射贴" "图。例如,如有 3 个 [SpriteFrames] 资源 [code]run[/code]、[code]run_normal[/" "code]、 [code]run_specular[/code],将使 [code]run[/code] 动画使用该法线贴图和" "镜面反射贴图。" #: doc/classes/AnimatedSprite.xml doc/classes/AnimationPlayer.xml msgid "2D Sprite animation" msgstr "2D 精灵动画" #: doc/classes/AnimatedSprite.xml doc/classes/Area2D.xml #: doc/classes/AudioStreamPlayer.xml doc/classes/Button.xml #: doc/classes/CanvasLayer.xml doc/classes/CollisionShape2D.xml #: doc/classes/ColorRect.xml doc/classes/Input.xml doc/classes/InputEvent.xml #: doc/classes/InputEventAction.xml doc/classes/Label.xml #: doc/classes/Particles2D.xml doc/classes/Timer.xml #: doc/classes/VisibilityNotifier2D.xml msgid "2D Dodge The Creeps Demo" msgstr "2D Dodge The Creeps 演示" #: doc/classes/AnimatedSprite.xml msgid "" "Plays the animation named [code]anim[/code]. If no [code]anim[/code] is " "provided, the current animation is played. If [code]backwards[/code] is " "[code]true[/code], the animation will be played in reverse." msgstr "" "播放由 [code]anim[/code] 指定的播放。如果没有指定 [code]anim[/code] 参数,则" "播放当前动画。 如果 [code]backwards[/code] 为 [code]true[/code] ,则倒序播放" "动画。" #: doc/classes/AnimatedSprite.xml doc/classes/AnimatedSprite3D.xml msgid "Stops the current animation (does not reset the frame counter)." msgstr "停止播放当前动画(不会重置帧计数器)。" #: doc/classes/AnimatedSprite.xml msgid "" "The current animation from the [member frames] resource. If this value " "changes, the [code]frame[/code] counter is reset." msgstr "" "来自 [member frames] 资源的当前动画。如果这个值发生变化,[code]frame[/code] " "计数器会被重置。" #: doc/classes/AnimatedSprite.xml doc/classes/SpriteBase3D.xml msgid "If [code]true[/code], texture will be centered." msgstr "为 [code]true[/code] 时纹理将被居中。" #: doc/classes/AnimatedSprite.xml doc/classes/Sprite.xml #: doc/classes/SpriteBase3D.xml doc/classes/TextureButton.xml #: doc/classes/TextureRect.xml msgid "If [code]true[/code], texture is flipped horizontally." msgstr "为 [code]true[/code] 时纹理将被水平翻转。" #: doc/classes/AnimatedSprite.xml doc/classes/Sprite.xml #: doc/classes/SpriteBase3D.xml doc/classes/TextureButton.xml #: doc/classes/TextureRect.xml msgid "If [code]true[/code], texture is flipped vertically." msgstr "为 [code]true[/code] 时纹理将被垂直翻转。" #: doc/classes/AnimatedSprite.xml doc/classes/AnimatedSprite3D.xml msgid "The displayed animation frame's index." msgstr "显示的动画帧的索引。" #: doc/classes/AnimatedSprite.xml msgid "" "The [SpriteFrames] resource containing the animation(s). Allows you the " "option to load, edit, clear, make unique and save the states of the " "[SpriteFrames] resource." msgstr "" "包含动画的 [SpriteFrames] 资源。可以对 [SpriteFrames] 资源进行加载、编辑、清" "空、唯一化、保存状态等操作。" #: doc/classes/AnimatedSprite.xml doc/classes/Sprite.xml #: doc/classes/SpriteBase3D.xml msgid "The texture's drawing offset." msgstr "纹理的绘图偏移量。" #: doc/classes/AnimatedSprite.xml doc/classes/AnimatedSprite3D.xml msgid "If [code]true[/code], the [member animation] is currently playing." msgstr "如果 [code]true[/code],则表示当前正在播放 [member animation]。" #: doc/classes/AnimatedSprite.xml msgid "The animation speed is multiplied by this value." msgstr "动画速度乘以此值。" #: doc/classes/AnimatedSprite.xml doc/classes/AnimatedSprite3D.xml msgid "" "Emitted when the animation is finished (when it plays the last frame). If " "the animation is looping, this signal is emitted every time the last frame " "is drawn." msgstr "" "动画结束时(播放最后一帧时)发出。如果动画正在循环播放,则每次绘制最后一帧时" "都会发出此信号。" #: doc/classes/AnimatedSprite.xml doc/classes/AnimatedSprite3D.xml msgid "Emitted when [member frame] changed." msgstr "当[member frame]更改时发出。" #: doc/classes/AnimatedSprite3D.xml msgid "" "2D sprite node in 3D world, that can use multiple 2D textures for animation." msgstr "3D 世界中的 2D 精灵节点,可以使用多个 2D 纹理进行动画处理。" #: doc/classes/AnimatedSprite3D.xml msgid "" "Animations are created using a [SpriteFrames] resource, which can be " "configured in the editor via the SpriteFrames panel." msgstr "" "动画能够使用一个 [SpriteFrames] 资源创建,可以在编辑器的动画帧面板配置。" #: doc/classes/AnimatedSprite3D.xml msgid "2D Sprite animation (also applies to 3D)" msgstr "2D 精灵动画(也适用于 3D)" #: doc/classes/AnimatedSprite3D.xml msgid "Returns [code]true[/code] if an animation is currently being played." msgstr "当前正在播放动画时返回 [code]true[/code] 。" #: doc/classes/AnimatedSprite3D.xml msgid "" "Plays the animation named [code]anim[/code]. If no [code]anim[/code] is " "provided, the current animation is played." msgstr "" "播放名为 [code]anim[/code] 的动画。如果没有提供 [code]anim[/code],则播放当前" "动画。" #: doc/classes/AnimatedSprite3D.xml msgid "" "The current animation from the [code]frames[/code] resource. If this value " "changes, the [code]frame[/code] counter is reset." msgstr "" "来自 [code]frames[/code] 资源的当前动画。如果这个值发生变化,[code]frame[/" "code] 计数器会被重置。" #: doc/classes/AnimatedSprite3D.xml msgid "The [SpriteFrames] resource containing the animation(s)." msgstr "包含动画的 [SpriteFrames] 资源。" #: doc/classes/AnimatedTexture.xml msgid "Proxy texture for simple frame-based animations." msgstr "基于简单帧动画的代理纹理。" #: doc/classes/AnimatedTexture.xml msgid "" "[AnimatedTexture] is a resource format for frame-based animations, where " "multiple textures can be chained automatically with a predefined delay for " "each frame. Unlike [AnimationPlayer] or [AnimatedSprite], it isn't a [Node], " "but has the advantage of being usable anywhere a [Texture] resource can be " "used, e.g. in a [TileSet].\n" "The playback of the animation is controlled by the [member fps] property as " "well as each frame's optional delay (see [method set_frame_delay]). The " "animation loops, i.e. it will restart at frame 0 automatically after playing " "the last frame.\n" "[AnimatedTexture] currently requires all frame textures to have the same " "size, otherwise the bigger ones will be cropped to match the smallest one.\n" "[b]Note:[/b] AnimatedTexture doesn't support using [AtlasTexture]s. Each " "frame needs to be a separate [Texture]." msgstr "" "[AnimatedTexture]是一种资源格式,用于基于帧的动画,其中多个纹理自动链接起来," "每帧有预定义延迟。与[AnimationPlayer]或[AnimatedSprite]不同,它不是一个" "[Node],其优点是可在任何可以使用[Texture]资源的地方使用,例如在[TileSet]" "中。\n" "动画的播放由[member fps]属性以及每一帧的可选延迟控制,参阅[method " "set_frame_delay]。动画是循环播放的,也就是说,在播放完最后一帧后,它将自动从" "第0帧重新开始。\n" "[AnimatedTexture]目前要求所有帧的纹理具有相同的尺寸,否则较大的纹理会被裁剪," "与最小的纹理相匹配。\n" "[b]注意:[/b]AnimatedTexture不支持使用[AtlasTexture]。每一帧都需要是一个单独" "的[Texture]。" #: doc/classes/AnimatedTexture.xml msgid "Returns the given frame's delay value." msgstr "返回给定帧的延迟值。" #: doc/classes/AnimatedTexture.xml msgid "Returns the given frame's [Texture]." msgstr "返回给定帧的[Texture]。" #: doc/classes/AnimatedTexture.xml msgid "" "Sets an additional delay (in seconds) between this frame and the next one, " "that will be added to the time interval defined by [member fps]. By default, " "frames have no delay defined. If a delay value is defined, the final time " "interval between this frame and the next will be [code]1.0 / fps + delay[/" "code].\n" "For example, for an animation with 3 frames, 2 FPS and a frame delay on the " "second frame of 1.2, the resulting playback will be:\n" "[codeblock]\n" "Frame 0: 0.5 s (1 / fps)\n" "Frame 1: 1.7 s (1 / fps + 1.2)\n" "Frame 2: 0.5 s (1 / fps)\n" "Total duration: 2.7 s\n" "[/codeblock]" msgstr "" "在此帧和下一帧之间设置额外的延迟(以秒为内),该延迟将添加到 [member fps] 定" "义的时间间隔中。默认情况下,框架没有延迟定义。如果定义了延迟值,则此帧和下一" "帧之间的最终时间间隔将是 [code]1.0 / fps + delay[/code] 。\n" "例如,对于具有 3 帧、2 个 FPS 和 1.2 第二帧上的帧延迟的动画,由此产生的回放将" "是:\n" "[codeblock]\n" "Frame 0: 0.5 s (1 / fps)\n" "Frame 1: 1.7 s (1 / fps + 1.2)\n" "Frame 2: 0.5 s (1 / fps)\n" "Total duration: 2.7 s\n" "[/codeblock]" #: doc/classes/AnimatedTexture.xml msgid "" "Assigns a [Texture] to the given frame. Frame IDs start at 0, so the first " "frame has ID 0, and the last frame of the animation has ID [member frames] - " "1.\n" "You can define any number of textures up to [constant MAX_FRAMES], but keep " "in mind that only frames from 0 to [member frames] - 1 will be part of the " "animation." msgstr "" "将 [Texture] 分配给给定的帧。帧 ID 从 0 开始,因此第一帧的 ID 为 0,动画的最" "后一帧的 ID 为 [member frames] -1。\n" "您可以定义最多 [constant MAX_FRAMES] 个纹理,但要记住,只有 0 到 [member " "frames] - 1 的帧会成为动画的一部分。" #: doc/classes/AnimatedTexture.xml msgid "Sets the currently visible frame of the texture." msgstr "设置纹理当前可见的帧。" #: doc/classes/AnimatedTexture.xml msgid "" "Animation speed in frames per second. This value defines the default time " "interval between two frames of the animation, and thus the overall duration " "of the animation loop based on the [member frames] property. A value of 0 " "means no predefined number of frames per second, the animation will play " "according to each frame's frame delay (see [method set_frame_delay]).\n" "For example, an animation with 8 frames, no frame delay and a [code]fps[/" "code] value of 2 will run for 4 seconds, with each frame lasting 0.5 seconds." msgstr "" "动画速度,以每秒帧数为单位。此值定义动画两个帧之间的默认时间间隔,并因此基于 " "[member frames] 属性定义动画循环的总体持续时间。值为 0 表示每秒没有预定义的帧" "数,动画将根据每个帧的帧延迟播放(请参阅 [method set_frame_delay])。\n" "例如,具有 8 帧,无帧延迟且 [code]fps[/code] 值为 2 的动画将运行 4 秒,每帧持" "续 0.5 秒。" #: doc/classes/AnimatedTexture.xml msgid "" "Number of frames to use in the animation. While you can create the frames " "independently with [method set_frame_texture], you need to set this value " "for the animation to take new frames into account. The maximum number of " "frames is [constant MAX_FRAMES]." msgstr "" "动画中要使用的帧数。虽然您可以使用[method set_frame_texture]独立创建帧,但是" "您需要为动画设置此值以考虑新帧。最大帧数为[constant MAX_FRAMES]。" #: doc/classes/AnimatedTexture.xml msgid "" "If [code]true[/code], the animation will only play once and will not loop " "back to the first frame after reaching the end. Note that reaching the end " "will not set [member pause] to [code]true[/code]." msgstr "" "如果 [code]true[/code],则动画将只播放一次,并且在到达结尾后将不会循环回到第" "一帧。请注意,到达终点不会将 [member pause] 设置为 [code]true[/code]。" #: doc/classes/AnimatedTexture.xml msgid "" "If [code]true[/code], the animation will pause where it currently is (i.e. " "at [member current_frame]). The animation will continue from where it was " "paused when changing this property to [code]false[/code]." msgstr "" "如果[code]true[/code],则动画将暂停在当前位置(即[member current_frame])。将" "此属性更改为 [code]false[/code] 时,动画将从暂停处继续播放。" #: doc/classes/AnimatedTexture.xml msgid "" "The maximum number of frames supported by [AnimatedTexture]. If you need " "more frames in your animation, use [AnimationPlayer] or [AnimatedSprite]." msgstr "" "[AnimatedTexture]支持的最大帧数。如果动画中需要更多帧,请使用" "[AnimationPlayer]或[AnimatedSprite]。" #: doc/classes/Animation.xml msgid "Contains data used to animate everything in the engine." msgstr "包含用于对引擎中所有内容进行动画处理的数据。" #: doc/classes/Animation.xml msgid "" "An Animation resource contains data used to animate everything in the " "engine. Animations are divided into tracks, and each track must be linked to " "a node. The state of that node can be changed through time, by adding timed " "keys (events) to the track.\n" "[codeblock]\n" "# This creates an animation that makes the node \"Enemy\" move to the right " "by\n" "# 100 pixels in 0.5 seconds.\n" "var animation = Animation.new()\n" "var track_index = animation.add_track(Animation.TYPE_VALUE)\n" "animation.track_set_path(track_index, \"Enemy:position:x\")\n" "animation.track_insert_key(track_index, 0.0, 0)\n" "animation.track_insert_key(track_index, 0.5, 100)\n" "[/codeblock]\n" "Animations are just data containers, and must be added to nodes such as an " "[AnimationPlayer] or [AnimationTreePlayer] to be played back. Animation " "tracks have different types, each with its own set of dedicated methods. " "Check [enum TrackType] to see available types." msgstr "" "Animation 资源包含对引擎中的内容进行动画所需的数据。动画被划分为轨道,每个轨" "道必须与一个节点相连。通过向轨道添加时间键(事件),节点的状态可以随时间改" "变。\n" "[codeblock]\n" "# 这将创建一个动画,使节点“Enemy”向右移动\n" "# 在 0.5 秒内移动 100 像素。\n" "var animation = Animation.new()\n" "var track_index = animation.add_track(Animation.TYPE_VALUE)\n" "animation.track_set_path(track_index, \"Enemy:position:x\")\n" "animation.track_insert_key(track_index, 0.0, 0)\n" "animation.track_insert_key(track_index, 0.5, 100)\n" "[/codeblock]\n" "动画只是数据容器,必须添加到 [AnimationPlayer] 或 [AnimationTreePlayer] 等节" "点上才能播放。动画轨道有不同的类型,每个都有自己的一套专用方法。参阅 [enum " "TrackType] 查看可用类型。" #: doc/classes/Animation.xml msgid "Adds a track to the Animation." msgstr "向动画添加轨道。" #: doc/classes/Animation.xml msgid "" "Returns the animation name at the key identified by [code]key_idx[/code]. " "The [code]track_idx[/code] must be the index of an Animation Track." msgstr "" "返回由 [code]key_idx[/code] 标识的键处的动画名称。[code]track_idx[/code] 必须" "是动画轨道的索引。" #: doc/classes/Animation.xml msgid "" "Inserts a key with value [code]animation[/code] at the given [code]time[/" "code] (in seconds). The [code]track_idx[/code] must be the index of an " "Animation Track." msgstr "" "在给定的 [code]time[/code](以秒为单位)中插入值 [code]animation[/code] 的" "键。[code]track_idx[/code] 必须是动画轨道的索引。" #: doc/classes/Animation.xml msgid "" "Sets the key identified by [code]key_idx[/code] to value [code]animation[/" "code]. The [code]track_idx[/code] must be the index of an Animation Track." msgstr "" "将 [code]key_idx[/code] 所标识的键设置为 [code]animation[/code] 的值。" "[code]track_idx[/code] 必须是动画轨道的索引。" #: doc/classes/Animation.xml msgid "" "Returns the end offset of the key identified by [code]key_idx[/code]. The " "[code]track_idx[/code] must be the index of an Audio Track.\n" "End offset is the number of seconds cut off at the ending of the audio " "stream." msgstr "" "返回由 [code]key_idx[/code] 标识的键的结束偏移量。[code]track_idx[/code] 必须" "是音频轨道的索引。\n" "结束偏移是音频流末尾截断的秒数。" #: doc/classes/Animation.xml msgid "" "Returns the start offset of the key identified by [code]key_idx[/code]. The " "[code]track_idx[/code] must be the index of an Audio Track.\n" "Start offset is the number of seconds cut off at the beginning of the audio " "stream." msgstr "" "返回由 [code]key_idx[/code] 标识的键的起始偏移量。[code]track_idx[/code] 必须" "是音频轨道的索引。\n" "起始偏移量是音频流开头截断的秒数。" #: doc/classes/Animation.xml msgid "" "Returns the audio stream of the key identified by [code]key_idx[/code]. The " "[code]track_idx[/code] must be the index of an Audio Track." msgstr "" "返回由 [code]key_idx[/code] 标识的键的音频流。[code]track_idx[/code] 必须是音" "频轨道的索引。" #: doc/classes/Animation.xml msgid "" "Inserts an Audio Track key at the given [code]time[/code] in seconds. The " "[code]track_idx[/code] must be the index of an Audio Track.\n" "[code]stream[/code] is the [AudioStream] resource to play. " "[code]start_offset[/code] is the number of seconds cut off at the beginning " "of the audio stream, while [code]end_offset[/code] is at the ending." msgstr "" "在 [code]time[/code] 秒处插入音频轨道关键帧。[code]track_idx[/code] 必须是音" "频轨道的索引。\n" "[code]stream[/code] 是要播放的 [AudioStream] 资源。[code]start_offset[/code] " "是在音频流的开头截断的秒数,而 [code]end_offset[/code] 则是在结尾的截断。" #: doc/classes/Animation.xml msgid "" "Sets the end offset of the key identified by [code]key_idx[/code] to value " "[code]offset[/code]. The [code]track_idx[/code] must be the index of an " "Audio Track." msgstr "" "将由 [code]key_idx[/code] 标识的关键帧的结束偏移设置为值 [code]offset[/" "code]。参数 [code]track_idx[/code] 必须是音频轨道的索引。" #: doc/classes/Animation.xml msgid "" "Sets the start offset of the key identified by [code]key_idx[/code] to value " "[code]offset[/code]. The [code]track_idx[/code] must be the index of an " "Audio Track." msgstr "" "将由 [code]key_idx[/code] 确定的关键帧的起始偏移量设置为 [code]offset[/" "code]。参数 [code]track_idx[/code] 必须是音频轨道的索引。" #: doc/classes/Animation.xml msgid "" "Sets the stream of the key identified by [code]key_idx[/code] to value " "[code]stream[/code]. The [code]track_idx[/code] must be the index of an " "Audio Track." msgstr "" "将 [code]key_idx[/code] 所标识的键流设置为[code]stream[/code]值。" "[code]track_idx[/code]必须是一个音频轨道的索引。" #: doc/classes/Animation.xml msgid "" "Returns the in handle of the key identified by [code]key_idx[/code]. The " "[code]track_idx[/code] must be the index of a Bezier Track." msgstr "" "返回由 [code]key_idx[/code] 识别的键的输入句柄, [code]track_idx[/code] 必须" "是贝塞尔轨道的索引。" #: doc/classes/Animation.xml msgid "" "Returns the out handle of the key identified by [code]key_idx[/code]. The " "[code]track_idx[/code] must be the index of a Bezier Track." msgstr "" "返回由 [code]key_idx[/code] 识别的键的输出句柄, [code]track_idx[/code] 必须" "是贝塞尔轨道的索引。" #: doc/classes/Animation.xml msgid "" "Returns the value of the key identified by [code]key_idx[/code]. The " "[code]track_idx[/code] must be the index of a Bezier Track." msgstr "" "返回由 [code]key_idx[/code] 识别的键的值, [code]track_idx[/code] 必须是贝塞" "尔轨道的索引。" #: doc/classes/Animation.xml msgid "" "Inserts a Bezier Track key at the given [code]time[/code] in seconds. The " "[code]track_idx[/code] must be the index of a Bezier Track.\n" "[code]in_handle[/code] is the left-side weight of the added Bezier curve " "point, [code]out_handle[/code] is the right-side one, while [code]value[/" "code] is the actual value at this point." msgstr "" "在给定的时间 [code]time[/code] 处插入贝塞尔轨道键,单位为秒。" "[code]track_idx[/code] 必须是贝塞尔轨道的索引。\n" "[code]in_handle[/code] 是添加的贝塞尔曲线点的左侧权重,[code]out_handle[/" "code] 是右侧权重,而 [code]value[/code] 是这个点的实际值。" #: doc/classes/Animation.xml msgid "" "Returns the interpolated value at the given [code]time[/code] (in seconds). " "The [code]track_idx[/code] must be the index of a Bezier Track." msgstr "" "返回给定 [code]time[/code] 处的插值(以秒为单位)。 [code]track_idx[/code] 必" "须是贝塞尔轨道的索引。" #: doc/classes/Animation.xml msgid "" "Sets the in handle of the key identified by [code]key_idx[/code] to value " "[code]in_handle[/code]. The [code]track_idx[/code] must be the index of a " "Bezier Track." msgstr "" "将 [code]key_idx[/code] 所标识的键的 in handle 设置为 [code]in_handle[/code] " "值。[code]track_idx[/code] 必须是贝塞尔轨道的索引。" #: doc/classes/Animation.xml msgid "" "Sets the out handle of the key identified by [code]key_idx[/code] to value " "[code]out_handle[/code]. The [code]track_idx[/code] must be the index of a " "Bezier Track." msgstr "" "将由 [code]key_idx[/code] 确定的关键帧的输出柄设置为 [code]out_handle[/" "code] 。参数 [code]track_idx[/code] 必须是贝塞尔轨道的索引。" #: doc/classes/Animation.xml msgid "" "Sets the value of the key identified by [code]key_idx[/code] to the given " "value. The [code]track_idx[/code] must be the index of a Bezier Track." msgstr "" "将 [code]key_idx[/code] 所标识的键值设置为给定值。[code]track_idx[/code] 必须" "是贝塞尔轨道的索引。" #: doc/classes/Animation.xml msgid "Clear the animation (clear all tracks and reset all)." msgstr "清除动画(清除所有轨道并重置所有)。" #: doc/classes/Animation.xml msgid "" "Adds a new track that is a copy of the given track from [code]to_animation[/" "code]." msgstr "从[code]to_animation[/code]中添加一个新的轨道,它是给定轨道的副本。" #: doc/classes/Animation.xml msgid "" "Returns the index of the specified track. If the track is not found, return " "-1." msgstr "返回指定轨迹的索引。如果没有找到,返回-1。" #: doc/classes/Animation.xml msgid "Returns the amount of tracks in the animation." msgstr "返回动画中的曲目量。" #: doc/classes/Animation.xml msgid "" "Returns all the key indices of a method track, given a position and delta " "time." msgstr "返回给定位置和delta时间的方法轨迹的所有关键指数。" #: doc/classes/Animation.xml msgid "Returns the method name of a method track." msgstr "返回一个方法轨迹的方法名。" #: doc/classes/Animation.xml msgid "" "Returns the arguments values to be called on a method track for a given key " "in a given track." msgstr "返回给定轨道中给定键的方法轨道上要调用的参数值。" #: doc/classes/Animation.xml msgid "Removes a track by specifying the track index." msgstr "通过指定轨道索引来删除一个轨道。" #: doc/classes/Animation.xml msgid "" "Finds the key index by time in a given track. Optionally, only find it if " "the exact time is given." msgstr "" "按时间查找给定轨道中的关键帧索引。也可选择只在给定准确时间的情况下查找。" #: doc/classes/Animation.xml msgid "" "Returns [code]true[/code] if the track at [code]idx[/code] wraps the " "interpolation loop. New tracks wrap the interpolation loop by default." msgstr "" "如果 [code]idx[/code] 处的轨道环绕了插值循环,则返回 [code]true[/code]。新建" "的轨道默认都会环绕插值循环。" #: doc/classes/Animation.xml msgid "Returns the interpolation type of a given track." msgstr "返回给定轨道的插值类型。" #: doc/classes/Animation.xml msgid "Returns the amount of keys in a given track." msgstr "返回给定轨道中的关键帧数量。" #: doc/classes/Animation.xml msgid "Returns the time at which the key is located." msgstr "返回关键帧所在的时间。" #: doc/classes/Animation.xml msgid "" "Returns the transition curve (easing) for a specific key (see the built-in " "math function [method @GDScript.ease])." msgstr "" "返回指定关键帧的过渡曲线(缓动)(参阅内置数学函数 [method @GDScript." "ease])。" #: doc/classes/Animation.xml msgid "Returns the value of a given key in a given track." msgstr "返回给定轨道中给定关键帧的值。" #: doc/classes/Animation.xml msgid "" "Gets the path of a track. For more information on the path format, see " "[method track_set_path]." msgstr "" "获取轨道的路径。有关路径格式的详细信息,请参阅 [method track_set_path]。" #: doc/classes/Animation.xml msgid "Gets the type of a track." msgstr "获取轨道的类型。" #: doc/classes/Animation.xml msgid "Insert a generic key in a given track." msgstr "在指定的轨道中插入一个通用键。" #: doc/classes/Animation.xml msgid "" "Returns [code]true[/code] if the track at index [code]idx[/code] is enabled." msgstr "如果启用了索引 [code]idx[/code] 处的轨道,则返回 [code]true[/code]。" #: doc/classes/Animation.xml msgid "" "Returns [code]true[/code] if the given track is imported. Else, return " "[code]false[/code]." msgstr "" "如果给定的轨道是被导入的,返回 [code]true[/code]。否则返回 [code]false[/" "code]。" #: doc/classes/Animation.xml msgid "Moves a track down." msgstr "将轨道下移。" #: doc/classes/Animation.xml msgid "" "Changes the index position of track [code]idx[/code] to the one defined in " "[code]to_idx[/code]." msgstr "" "将轨道 [code]idx[/code] 的索引位置改为 [code]to_idx[/code] 中定义的位置。" #: doc/classes/Animation.xml msgid "Moves a track up." msgstr "将轨道上移。" #: doc/classes/Animation.xml msgid "Removes a key by index in a given track." msgstr "在指定的轨道上按索引删除一个键。" #: doc/classes/Animation.xml msgid "Removes a key by position (seconds) in a given track." msgstr "按位置(秒)删除指定轨道中的键。" #: doc/classes/Animation.xml msgid "Enables/disables the given track. Tracks are enabled by default." msgstr "启用/禁用指定的轨道。轨道默认为启用。" #: doc/classes/Animation.xml msgid "Sets the given track as imported or not." msgstr "将指定的轨道设置为导入或不导入。" #: doc/classes/Animation.xml msgid "" "If [code]true[/code], the track at [code]idx[/code] wraps the interpolation " "loop." msgstr "如果为 [code]true[/code],则 [code]idx[/code] 处的轨道环绕插值循环。" #: doc/classes/Animation.xml msgid "Sets the interpolation type of a given track." msgstr "设置指定轨道的内插类型。" #: doc/classes/Animation.xml msgid "Sets the time of an existing key." msgstr "设置现有关键帧的时间。" #: doc/classes/Animation.xml msgid "" "Sets the transition curve (easing) for a specific key (see the built-in math " "function [method @GDScript.ease])." msgstr "" "设置指定关键帧的过渡曲线(缓动)(参阅内置数学函数 [method @GDScript." "ease])。" #: doc/classes/Animation.xml msgid "Sets the value of an existing key." msgstr "设置现有关键帧的值。" #: doc/classes/Animation.xml msgid "" "Sets the path of a track. Paths must be valid scene-tree paths to a node and " "must be specified starting from the parent node of the node that will " "reproduce the animation. Tracks that control properties or bones must append " "their name after the path, separated by [code]\":\"[/code].\n" "For example, [code]\"character/skeleton:ankle\"[/code] or [code]\"character/" "mesh:transform/local\"[/code]." msgstr "" "设置轨道的路径。路径必须是指向节点场景树的有效路径,必须从将要实现动画的节点" "的父节点开始指定。控件属性或骨骼的轨道必须在路径后面加上它们的名字,用" "[code]\":\"[/code]分隔。\n" "例如,[code]\"character/skeleton:ankle\"[/code] 或[code]\"character/mesh:" "transform/local\"[/code] 。" #: doc/classes/Animation.xml msgid "" "Swaps the track [code]idx[/code]'s index position with the track " "[code]with_idx[/code]." msgstr "" "将轨道 [code]idx[/code] 的索引位置与轨道 [code]with_idx[/code] 的索引位置互" "换。" #: doc/classes/Animation.xml msgid "Insert a transform key for a transform track." msgstr "为变换轨道插入变换键。" #: doc/classes/Animation.xml msgid "" "Returns the interpolated value of a transform track at a given time (in " "seconds). An array consisting of 3 elements: position ([Vector3]), rotation " "([Quat]) and scale ([Vector3])." msgstr "" "返回变换轨道在给定时间(以秒为单位)插值后的值。是由 3 个元素组成的数组:位置" "([Vector3])、旋转([Quat])、缩放([Vector3])。" #: doc/classes/Animation.xml msgid "" "Returns all the key indices of a value track, given a position and delta " "time." msgstr "返回在给定的位置和时间增量范围内,值轨道中所有关键帧的索引号。" #: doc/classes/Animation.xml msgid "Returns the update mode of a value track." msgstr "返回值轨道的更新模式。" #: doc/classes/Animation.xml msgid "" "Returns the interpolated value at the given time (in seconds). The " "[code]track_idx[/code] must be the index of a value track." msgstr "" "返回位于给定时间(以秒为单位)的插值后的值。[code]track_idx[/code] 必须是值轨" "道的索引。" #: doc/classes/Animation.xml msgid "Sets the update mode (see [enum UpdateMode]) of a value track." msgstr "设置值轨道的更新模式(请参阅 [enum UpdateMode])。" #: doc/classes/Animation.xml msgid "" "The total length of the animation (in seconds).\n" "[b]Note:[/b] Length is not delimited by the last key, as this one may be " "before or after the end to ensure correct interpolation and looping." msgstr "" "动画的总长度(单位为秒)。\n" "[b]注意:[/b]长度不以最后一个关键帧为界,因为这个关键帧可能位于结束前或结束" "后,以确保正确的插值和循环。" #: doc/classes/Animation.xml msgid "" "A flag indicating that the animation must loop. This is used for correct " "interpolation of animation cycles, and for hinting the player that it must " "restart the animation." msgstr "" "表示该动画必须循环的标志。这用于动画循环正确插值,以及提示播放器须重启动画。" #: doc/classes/Animation.xml msgid "The animation step value." msgstr "动画步长值。" #: doc/classes/Animation.xml msgid "" "Emitted when there's a change in the list of tracks, e.g. tracks are added, " "moved or have changed paths." msgstr "当轨道列表发生变化时发出,例如轨道被添加、移动或改变路径。" #: doc/classes/Animation.xml msgid "" "Value tracks set values in node properties, but only those which can be " "Interpolated." msgstr "值轨道会为节点的属性设值,只适用于能够进行插值的属性。" #: doc/classes/Animation.xml msgid "" "Transform tracks are used to change node local transforms or skeleton pose " "bones. Transitions are interpolated." msgstr "变换轨道用于改变节点局部变换或骨架的骨骼姿势。会进行插值过渡。" #: doc/classes/Animation.xml msgid "Method tracks call functions with given arguments per key." msgstr "方法轨道会在各个关键帧上使用给定参数的调用函数。" #: doc/classes/Animation.xml msgid "" "Bezier tracks are used to interpolate a value using custom curves. They can " "also be used to animate sub-properties of vectors and colors (e.g. alpha " "value of a [Color])." msgstr "" "贝塞尔轨道可以用来根据自定义曲线对数值进行插值。它们也可以用来对向量和颜色的" "子属性进行动画处理(例如 [Color] 的 Alpha 值)。" #: doc/classes/Animation.xml msgid "" "Audio tracks are used to play an audio stream with either type of " "[AudioStreamPlayer]. The stream can be trimmed and previewed in the " "animation." msgstr "" "音频轨道可以用来通过任意类型的 [AudioStreamPlayer] 播放音频流。该流可以在动画" "中进行修剪和预览。" #: doc/classes/Animation.xml msgid "Animation tracks play animations in other [AnimationPlayer] nodes." msgstr "动画轨道会在其他 [AnimationPlayer] 节点中播放动画。" #: doc/classes/Animation.xml msgid "No interpolation (nearest value)." msgstr "无插值(最邻近的值)。" #: doc/classes/Animation.xml doc/classes/Gradient.xml msgid "Linear interpolation." msgstr "线性插值。" #: doc/classes/Animation.xml doc/classes/Gradient.xml msgid "Cubic interpolation." msgstr "三次插值。" #: doc/classes/Animation.xml msgid "Update between keyframes." msgstr "在关键帧之间更新。" #: doc/classes/Animation.xml msgid "Update at the keyframes and hold the value." msgstr "在关键帧更新并保持数值。" #: doc/classes/Animation.xml msgid "Update at the keyframes." msgstr "在关键帧更新。" #: doc/classes/Animation.xml msgid "" "Same as linear interpolation, but also interpolates from the current value " "(i.e. dynamically at runtime) if the first key isn't at 0 seconds." msgstr "" "与线性插值相同,但如果第一个关键帧不在第 0 秒,则会从当前值进行插值(即在运行" "时动态插值)。" #: doc/classes/AnimationNode.xml msgid "Base resource for [AnimationTree] nodes." msgstr "[AnimationTree] 节点的基础资源。" #: doc/classes/AnimationNode.xml msgid "" "Base resource for [AnimationTree] nodes. In general, it's not used directly, " "but you can create custom ones with custom blending formulas.\n" "Inherit this when creating nodes mainly for use in [AnimationNodeBlendTree], " "otherwise [AnimationRootNode] should be used instead." msgstr "" "[AnimationTree] 节点的基础资源。通常,它不是直接使用的,但是您可以使用自定义" "混合公式创建自定义的。\n" "在创建主要用于 [AnimationNodeBlendTree] 的节点时,继承该属性,否则应改用 " "[AnimationRootNode]。" #: doc/classes/AnimationNode.xml msgid "" "Adds an input to the node. This is only useful for nodes created for use in " "an [AnimationNodeBlendTree]." msgstr "" "为节点添加一个输入。这只对创建用于 [AnimationNodeBlendTree] 的节点有用。" #: doc/classes/AnimationNode.xml msgid "" "Blend an animation by [code]blend[/code] amount (name must be valid in the " "linked [AnimationPlayer]). A [code]time[/code] and [code]delta[/code] may be " "passed, as well as whether [code]seek[/code] happened." msgstr "" "按 [code]blend[/code] 量混合一个动画(名称必须在链接的 [AnimationPlayer] 中有" "效)。可以传入时间 [code]time[/code] 和增量 [code]delta[/code],以及表示是否" "发生寻道的 [code]seek[/code]。" #: doc/classes/AnimationNode.xml msgid "" "Blend an input. This is only useful for nodes created for an " "[AnimationNodeBlendTree]. The [code]time[/code] parameter is a relative " "delta, unless [code]seek[/code] is [code]true[/code], in which case it is " "absolute. A filter mode may be optionally passed (see [enum FilterAction] " "for options)." msgstr "" "混合一个输入。这只对为 [AnimationNodeBlendTree] 创建的节点有用。时间参数 " "[code]time[/code] 是一个相对的增量,除非 [code]seek[/code] 是 [code]true[/" "code],此时它是绝对的时间。可以选择传递过滤模式(选项请参阅 [enum " "FilterAction])。" #: doc/classes/AnimationNode.xml msgid "" "Blend another animation node (in case this node contains children animation " "nodes). This function is only useful if you inherit from [AnimationRootNode] " "instead, else editors will not display your node for addition." msgstr "" "混合另一个动画节点(在这个节点包含子动画节点的情况下)。这个函数只有在你继承 " "[AnimationRootNode] 时才有用,否则编辑器将不会显示你的节点进行添加。" #: doc/classes/AnimationNode.xml msgid "Gets the text caption for this node (used by some editors)." msgstr "获取此节点的文本标题(由某些编辑器使用)。" #: doc/classes/AnimationNode.xml msgid "" "Gets a child node by index (used by editors inheriting from " "[AnimationRootNode])." msgstr "按索引获取一个子节点(由继承 [AnimationRootNode] 的编辑器使用)。" #: doc/classes/AnimationNode.xml msgid "" "Gets all children nodes in order as a [code]name: node[/code] dictionary. " "Only useful when inheriting [AnimationRootNode]." msgstr "" "按照 [code]name: node[/code] 字典的顺序获取所有子节点。仅在继承 " "[AnimationRootNode] 时有用。" #: doc/classes/AnimationNode.xml msgid "" "Amount of inputs in this node, only useful for nodes that go into " "[AnimationNodeBlendTree]." msgstr "这个节点的输入数量,只对进入 [AnimationNodeBlendTree] 的节点有用。" #: doc/classes/AnimationNode.xml msgid "Gets the name of an input by index." msgstr "通过索引获取输入的名称。" #: doc/classes/AnimationNode.xml msgid "" "Gets the value of a parameter. Parameters are custom local memory used for " "your nodes, given a resource can be reused in multiple trees." msgstr "" "获取一个参数的值。参数是你的节点使用的自定义本地内存,给定的资源可以在多个树" "中重复使用。" #: doc/classes/AnimationNode.xml msgid "" "Gets the default value of a parameter. Parameters are custom local memory " "used for your nodes, given a resource can be reused in multiple trees." msgstr "" "获取一个参数的默认值。参数是用于节点的自定义本地内存,给定资源可以在多个树中" "重用。" #: doc/classes/AnimationNode.xml msgid "" "Gets the property information for parameter. Parameters are custom local " "memory used for your nodes, given a resource can be reused in multiple " "trees. Format is similar to [method Object.get_property_list]." msgstr "" "获取参数的属性信息。参数是你的节点使用的自定义本地内存,给定的资源可以在多个" "树中重复使用。格式类似于[method Object.get_property_list]。" #: doc/classes/AnimationNode.xml msgid "" "Returns [code]true[/code] whether you want the blend tree editor to display " "filter editing on this node." msgstr "返回 [code]true[/code],是否希望混合树编辑器在此节点上显示过滤器编辑。" #: doc/classes/AnimationNode.xml msgid "Returns whether the given path is filtered." msgstr "返回是否对给定的路径进行过滤。" #: doc/classes/AnimationNode.xml msgid "" "User-defined callback called when a custom node is processed. The " "[code]time[/code] parameter is a relative delta, unless [code]seek[/code] is " "[code]true[/code], in which case it is absolute.\n" "Here, call the [method blend_input], [method blend_node] or [method " "blend_animation] functions. You can also use [method get_parameter] and " "[method set_parameter] to modify local memory.\n" "This function should return the time left for the current animation to " "finish (if unsure, pass the value from the main blend being called)." msgstr "" "用户定义的回调,会在处理自定义节点时调用。时间参数 [code]time[/code] 是一个相" "对的增量,除非 [code]seek[/code] 是 [code]true[/code],此时它是绝对的时间。\n" "请在这里调用 [method blend_input]、[method blend_node] 或 [method " "blend_animation] 函数。你也可以使用 [method get_parameter] 和 [method " "set_parameter] 来修改本地内存。\n" "这个函数应该返回当前动画完成的剩余时间(如果不确定,请传递被调用的主混合" "值)。" #: doc/classes/AnimationNode.xml msgid "Removes an input, call this only when inactive." msgstr "删除输入,仅在处于非活动状态时调用此输入。" #: doc/classes/AnimationNode.xml msgid "Adds or removes a path for the filter." msgstr "添加或删除筛选器的路径。" #: doc/classes/AnimationNode.xml msgid "" "Sets a custom parameter. These are used as local memory, because resources " "can be reused across the tree or scenes." msgstr "" "设置一个自定义参数。这些参数被用作本地内存,因为资源可以在树或场景中重复使" "用。" #: doc/classes/AnimationNode.xml msgid "If [code]true[/code], filtering is enabled." msgstr "如果为 [code]true[/code],则启用筛选功能。" #: doc/classes/AnimationNode.xml msgid "Emitted when the node was removed from the graph." msgstr "当该节点从图中删除时触发。" #: doc/classes/AnimationNode.xml msgid "" "Emitted by nodes that inherit from this class and that have an internal tree " "when one of their nodes changes. The nodes that emit this signal are " "[AnimationNodeBlendSpace1D], [AnimationNodeBlendSpace2D], " "[AnimationNodeStateMachine], and [AnimationNodeBlendTree]." msgstr "" "由继承自该类且内部有树的节点发出,当其一个节点发生变化时。发出此信号的节点有" "[AnimationNodeBlendSpace1D]、[AnimationNodeBlendSpace2D]、" "[AnimationNodeStateMachine]和[AnimationNodeBlendTree]。" #: doc/classes/AnimationNode.xml msgid "Do not use filtering." msgstr "不要使用筛选功能。" #: doc/classes/AnimationNode.xml msgid "Paths matching the filter will be allowed to pass." msgstr "与筛选器匹配的路径将被允许通过。" #: doc/classes/AnimationNode.xml msgid "Paths matching the filter will be discarded." msgstr "与筛选器匹配的路径将被丢弃。" #: doc/classes/AnimationNode.xml msgid "Paths matching the filter will be blended (by the blend value)." msgstr "与筛选器匹配的路径将被混合(根据混合值)。" #: doc/classes/AnimationNodeAdd2.xml msgid "Blends two animations additively inside of an [AnimationNodeBlendTree]." msgstr "在 [AnimationNodeBlendTree] 中加法地混合两个动画。" #: doc/classes/AnimationNodeAdd2.xml msgid "" "A resource to add to an [AnimationNodeBlendTree]. Blends two animations " "additively based on an amount value in the [code][0.0, 1.0][/code] range." msgstr "" "添加到 [AnimationNodeBlendTree] 的资源。根据[code][0.0,1.0][/code]范围内的量" "值加法混合两个动画。" #: doc/classes/AnimationNodeAdd2.xml doc/classes/AnimationNodeAdd3.xml #: doc/classes/AnimationNodeBlend2.xml doc/classes/AnimationNodeBlend3.xml msgid "" "If [code]true[/code], sets the [code]optimization[/code] to [code]false[/" "code] when calling [method AnimationNode.blend_input], forcing the blended " "animations to update every frame." msgstr "" "如果[code]true[/code],在调用[method AnimationNode.blend_input]时,将" "[code]optimization[/code] to[code]false[/code],强制混合后的动画每一帧更新。" #: doc/classes/AnimationNodeAdd3.xml msgid "" "Blends two of three animations additively inside of an " "[AnimationNodeBlendTree]." msgstr "在 [AnimationNodeBlendTree] 中将三个动画中的两个动画相加。" #: doc/classes/AnimationNodeAdd3.xml msgid "" "A resource to add to an [AnimationNodeBlendTree]. Blends two animations " "together additively out of three based on a value in the [code][-1.0, 1.0][/" "code] range.\n" "This node has three inputs:\n" "- The base animation to add to\n" "- A -add animation to blend with when the blend amount is in the [code]" "[-1.0, 0.0][/code] range.\n" "- A +add animation to blend with when the blend amount is in the [code][0.0, " "1.0][/code] range" msgstr "" "可添加到 [AnimationNodeBlendTree] 的资源。根据 [code][-1.0, 1.0][/code] 范围" "内的值,将三个动画中的两个动画加法混合在一起。\n" "这个节点有三个输入。\n" "- 要添加到基础动画中的动画\n" "- 当混合量在 [code][-1.0,0.0][/code] 范围内时,添加动画进行混合。\n" "- 当混合量在 [code][0.0,1.0][/code] 范围内时,添加动画进行混合" #: doc/classes/AnimationNodeAdd3.xml doc/classes/AnimationNodeAnimation.xml #: doc/classes/AnimationNodeBlend2.xml #: doc/classes/AnimationNodeBlendSpace2D.xml #: doc/classes/AnimationNodeOneShot.xml doc/classes/AnimationNodeOutput.xml #: doc/classes/AnimationNodeTimeScale.xml #: doc/classes/AnimationNodeTransition.xml msgid "AnimationTree" msgstr "AnimationTree" #: doc/classes/AnimationNodeAdd3.xml doc/classes/AnimationNodeAnimation.xml #: doc/classes/AnimationNodeBlend2.xml #: doc/classes/AnimationNodeBlendSpace2D.xml #: doc/classes/AnimationNodeOneShot.xml doc/classes/AnimationNodeOutput.xml #: doc/classes/AnimationNodeTransition.xml doc/classes/AnimationPlayer.xml #: doc/classes/AnimationTree.xml doc/classes/AudioEffectReverb.xml #: doc/classes/Camera.xml doc/classes/CollisionShape.xml #: doc/classes/CylinderShape.xml doc/classes/Environment.xml #: doc/classes/GIProbe.xml doc/classes/GIProbeData.xml #: doc/classes/KinematicBody.xml doc/classes/Light.xml doc/classes/Material.xml #: doc/classes/Mesh.xml doc/classes/MeshInstance.xml doc/classes/Particles.xml #: doc/classes/Quat.xml doc/classes/Skeleton.xml doc/classes/SpotLight.xml #: doc/classes/StaticBody.xml doc/classes/WorldEnvironment.xml msgid "Third Person Shooter Demo" msgstr "第三人称射击演示" #: doc/classes/AnimationNodeAnimation.xml msgid "Input animation to use in an [AnimationNodeBlendTree]." msgstr "输入要在 [AnimationNodeBlendTree] 中使用的动画。" #: doc/classes/AnimationNodeAnimation.xml msgid "" "A resource to add to an [AnimationNodeBlendTree]. Only features one output " "set using the [member animation] property. Use it as an input for " "[AnimationNode] that blend animations together." msgstr "" "添加到 [AnimationNodeBlendTree] 的资源。只具有一个使用 [member animation] 属" "性的输出集。将其作为 [AnimationNode] 的输入,将动画融合在一起。" #: doc/classes/AnimationNodeAnimation.xml doc/classes/AnimationNodeBlend2.xml #: doc/classes/AnimationNodeOutput.xml doc/classes/AnimationNodeTimeScale.xml #: doc/classes/AnimationNodeTransition.xml doc/classes/Area.xml #: doc/classes/Basis.xml doc/classes/BoxShape.xml #: doc/classes/CollisionShape.xml modules/gridmap/doc_classes/GridMap.xml #: doc/classes/KinematicBody.xml doc/classes/Mesh.xml #: doc/classes/MeshInstance.xml doc/classes/MeshLibrary.xml #: doc/classes/ProjectSettings.xml doc/classes/Transform.xml msgid "3D Platformer Demo" msgstr "3D 平台跳跃演示" #: doc/classes/AnimationNodeAnimation.xml msgid "" "Animation to use as an output. It is one of the animations provided by " "[member AnimationTree.anim_player]." msgstr "" "作为输出使用的动画。它是[member AnimationTree.anim_player]提供的动画之一。" #: doc/classes/AnimationNodeBlend2.xml msgid "Blends two animations linearly inside of an [AnimationNodeBlendTree]." msgstr "在 [AnimationNodeBlendTree] 中将两个动画进行线性混合。" #: doc/classes/AnimationNodeBlend2.xml msgid "" "A resource to add to an [AnimationNodeBlendTree]. Blends two animations " "linearly based on an amount value in the [code][0.0, 1.0][/code] range." msgstr "" "添加到 [AnimationNodeBlendTree] 的资源。根据 [code][0.0,1.0][/code] 范围内的" "量值线性地混合两个动画。" #: doc/classes/AnimationNodeBlend3.xml msgid "" "Blends two of three animations linearly inside of an " "[AnimationNodeBlendTree]." msgstr "在 [AnimationNodeBlendTree] 中将三个动画中的两个进行线性混合。" #: doc/classes/AnimationNodeBlend3.xml msgid "" "A resource to add to an [AnimationNodeBlendTree]. Blends two animations " "together linearly out of three based on a value in the [code][-1.0, 1.0][/" "code] range.\n" "This node has three inputs:\n" "- The base animation\n" "- A -blend animation to blend with when the blend amount is in the [code]" "[-1.0, 0.0][/code] range.\n" "- A +blend animation to blend with when the blend amount is in the [code]" "[0.0, 1.0][/code] range" msgstr "" "添加到 [AnimationNodeBlendTree] 的资源。根据[code][-1.0,1.0][/code]范围内的" "值,将三个动画中的两个动画线性地混合在一起。\n" "这个节点有三个输入。\n" "- 基础动画\n" "- 当混合量在[code][-1.0,0.0][/code]范围内时,使用-混合动画进行混合。\n" "- 当混合量在[code][0.0,1.0][/code]范围内时,要使用+混合动画进行混合" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "" "Blends linearly between two of any number of [AnimationNode] of any type " "placed on a virtual axis." msgstr "" "在虚拟轴上放置的任意数量的[AnimationNode]的任意类型的两个[AnimationNode]之间" "线性混合。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "" "A resource to add to an [AnimationNodeBlendTree].\n" "This is a virtual axis on which you can add any type of [AnimationNode] " "using [method add_blend_point].\n" "Outputs the linear blend of the two [AnimationNode]s closest to the node's " "current value.\n" "You can set the extents of the axis using the [member min_space] and [member " "max_space]." msgstr "" "可添加到 [AnimationNodeBlendTree] 的资源。\n" "这是一个虚拟轴,您可以使用 [method add_blend_point] 在上面添加任何类型的 " "[AnimationNode]。\n" "输出最接近节点当前值的两个 [AnimationNode] 的线性混合。\n" "您可以使用 [member min_space] 和 [member max_space] 来设置轴的外延。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "" "Adds a new point that represents a [code]node[/code] on the virtual axis at " "a given position set by [code]pos[/code]. You can insert it at a specific " "index using the [code]at_index[/code] argument. If you use the default value " "for [code]at_index[/code], the point is inserted at the end of the blend " "points array." msgstr "" "在[code]pos[/code]设定的给定位置添加一个新点,代表虚拟轴上的[code]node[/" "code]。您可以使用 [code]at_index[/code] 参数在特定的索引处插入新点。如果您使" "用 [code]at_index[/code] 的默认值,该点会被插入到混合点数组的最后。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "Returns the number of points on the blend axis." msgstr "返回混合轴上的点的数量。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "" "Returns the [AnimationNode] referenced by the point at index [code]point[/" "code]." msgstr "返回索引[code]point[/code]处的点所引用的[AnimationNode]。" #: doc/classes/AnimationNodeBlendSpace1D.xml #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Returns the position of the point at index [code]point[/code]." msgstr "返回索引[code]point[/code]处的点的位置。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "Removes the point at index [code]point[/code] from the blend axis." msgstr "将索引[code]point[/code]处的点从混合轴上删除。" #: doc/classes/AnimationNodeBlendSpace1D.xml #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Changes the [AnimationNode] referenced by the point at index [code]point[/" "code]." msgstr "改变索引[code]point[/code]处的点所引用的[AnimationNode]。" #: doc/classes/AnimationNodeBlendSpace1D.xml #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Updates the position of the point at index [code]point[/code] on the blend " "axis." msgstr "更新混合轴上索引[code]point[/code]处的点的位置。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "" "The blend space's axis's upper limit for the points' position. See [method " "add_blend_point]." msgstr "混合空间的轴的点的位置上限。请参阅 [method add_blend_point]。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "" "The blend space's axis's lower limit for the points' position. See [method " "add_blend_point]." msgstr "混合空间的轴的点的位置下限。请参阅 [method add_blend_point]。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "Position increment to snap to when moving a point on the axis." msgstr "当在轴上移动一个点时,要捕捉到的位置增量。" #: doc/classes/AnimationNodeBlendSpace1D.xml msgid "Label of the virtual axis of the blend space." msgstr "混合空间虚拟轴的标签。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Blends linearly between three [AnimationNode] of any type placed in a 2D " "space." msgstr "在二维空间中放置的三个任意类型的[AnimationNode]之间线性融合。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "A resource to add to an [AnimationNodeBlendTree].\n" "This node allows you to blend linearly between three animations using a " "[Vector2] weight.\n" "You can add vertices to the blend space with [method add_blend_point] and " "automatically triangulate it by setting [member auto_triangles] to " "[code]true[/code]. Otherwise, use [method add_triangle] and [method " "remove_triangle] to create up the blend space by hand." msgstr "" "添加到 [AnimationNodeBlendTree] 的资源。\n" "该节点允许您使用 [Vector2] 权重在三个动画之间进行线性混合。\n" "您可以使用 [method add_blend_point] 向混合空间添加顶点,并通过将 [member " "auto_triangles] 设置为 [code]true[/code] 来自动进行三角测量。否则,请使用 " "[method add_triangle] 和 [method remove_triangle] 手工创建混合空间。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Adds a new point that represents a [code]node[/code] at the position set by " "[code]pos[/code]. You can insert it at a specific index using the " "[code]at_index[/code] argument. If you use the default value for " "[code]at_index[/code], the point is inserted at the end of the blend points " "array." msgstr "" "在 [code]pos[/code] 设定的位置添加一个代表 [code]node[/code] 的新点。您可以使" "用 [code]at_index[/code] 参数将它插入到特定的索引中。如果您使用 " "[code]at_index[/code] 的默认值,这个点会被插入到混合点数组的最后。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Creates a new triangle using three points [code]x[/code], [code]y[/code], " "and [code]z[/code]. Triangles can overlap. You can insert the triangle at a " "specific index using the [code]at_index[/code] argument. If you use the " "default value for [code]at_index[/code], the point is inserted at the end of " "the blend points array." msgstr "" "使用 [code]x[/code]、[code]y[/code]and [code]z[/code] 三个点创建一个新的三角" "形。三角形可以重叠。您可以使用 [code]at_index[/code] 参数在特定的索引处插入三" "角形。如果您使用 [code]at_index[/code] 的默认值,该点会被插入到混合点数组的最" "后。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Returns the number of points in the blend space." msgstr "返回混合空间中的点的数量。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Returns the [AnimationRootNode] referenced by the point at index " "[code]point[/code]." msgstr "返回索引[code]point[/code]处的点所引用的[AnimationRootNode]。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Returns the number of triangles in the blend space." msgstr "返回混合空间中三角形的数量。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Returns the position of the point at index [code]point[/code] in the " "triangle of index [code]triangle[/code]." msgstr "" "返回索引[code]point[/code]处的点在索引[code]triangle[/code]的三角形中的位置。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Removes the point at index [code]point[/code] from the blend space." msgstr "从混合空间中删除索引[code]point[/code]处的点。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Removes the triangle at index [code]triangle[/code] from the blend space." msgstr "从混合空间中删除索引[code]triangle[/code]处的三角形。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "If [code]true[/code], the blend space is triangulated automatically. The " "mesh updates every time you add or remove points with [method " "add_blend_point] and [method remove_blend_point]." msgstr "" "如果 [code]true[/code],混合空间会自动进行三角测量。每次使用 [method " "add_blend_point] 和 [method remove_blend_point] 添加或移除点时,网格都会更" "新。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Controls the interpolation between animations. See [enum BlendMode] " "constants." msgstr "控制动画之间的插值。参阅 [enum BlendMode] 常量。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "The blend space's X and Y axes' upper limit for the points' position. See " "[method add_blend_point]." msgstr "" "混合空间的 X 轴和 Y 轴的点的位置上限。请参阅 [method add_blend_point]。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "The blend space's X and Y axes' lower limit for the points' position. See " "[method add_blend_point]." msgstr "" "混合空间的 X 轴和 Y 轴的点的位置下限。请参阅 [method add_blend_point]。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Position increment to snap to when moving a point." msgstr "移动点时要对齐的位置增量。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Name of the blend space's X axis." msgstr "混合空间X轴的名称。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "Name of the blend space's Y axis." msgstr "混合空间Y轴的名称。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Emitted every time the blend space's triangles are created, removed, or when " "one of their vertices changes position." msgstr "每当创建、删除混合空间的三角形,或当其中一个顶点改变位置时发出。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "The interpolation between animations is linear." msgstr "动画之间的插点是线性的。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "The blend space plays the animation of the node the blending position is " "closest to. Useful for frame-by-frame 2D animations." msgstr "混合空间播放混合位置最接近的节点的动画。对逐帧的2D动画很有用。" #: doc/classes/AnimationNodeBlendSpace2D.xml msgid "" "Similar to [constant BLEND_MODE_DISCRETE], but starts the new animation at " "the last animation's playback position." msgstr "" "类似于[constant BLEND_MODE_DISCRETE],但在最后一个动画的播放位置开始新的动" "画。" #: doc/classes/AnimationNodeBlendTree.xml msgid "[AnimationTree] node resource that contains many blend type nodes." msgstr "[AnimationTree] 节点资源,其中包含许多混合类型节点。" #: doc/classes/AnimationNodeBlendTree.xml msgid "" "This node may contain a sub-tree of any other blend type nodes, such as " "[AnimationNodeTransition], [AnimationNodeBlend2], [AnimationNodeBlend3], " "[AnimationNodeOneShot], etc. This is one of the most commonly used roots.\n" "An [AnimationNodeOutput] node named [code]output[/code] is created by " "default." msgstr "" "该节点可以包含任何其他混合类型节点的子树,例如 [AnimationNodeTransition]、" "[AnimationNodeBlend2]、[AnimationNodeBlend3]、[AnimationNodeOneShot] 等。这是" "最常用的根之一。\n" "默认会创建一个名为 [code]output[/code] 的 [AnimationNodeOutput] 节点。" #: doc/classes/AnimationNodeBlendTree.xml msgid "" "Adds an [AnimationNode] at the given [code]position[/code]. The [code]name[/" "code] is used to identify the created sub-node later." msgstr "" "在给定的 [code]position[/code] 添加一个 [AnimationNode]。[code]name[/code] 用" "于以后识别创建的子节点。" #: doc/classes/AnimationNodeBlendTree.xml msgid "" "Connects the output of an [AnimationNode] as input for another " "[AnimationNode], at the input port specified by [code]input_index[/code]." msgstr "" "将一个 [AnimationNode] 的输出作为另一个 [AnimationNode] 的输入,连接在由 " "[code]input_index[/code] 指定的输入端口。" #: doc/classes/AnimationNodeBlendTree.xml msgid "Disconnects the node connected to the specified input." msgstr "断开连接到指定输入端的节点。" #: doc/classes/AnimationNodeBlendTree.xml msgid "Returns the sub-node with the specified [code]name[/code]." msgstr "返回名称为 [code]name[/code] 的子节点。" #: doc/classes/AnimationNodeBlendTree.xml msgid "" "Returns the position of the sub-node with the specified [code]name[/code]." msgstr "返回名称为 [code]name[/code] 的子节点的位置。" #: doc/classes/AnimationNodeBlendTree.xml msgid "" "Returns [code]true[/code] if a sub-node with specified [code]name[/code] " "exists." msgstr "如果存在名称为 [code]name[/code] 的子节点,则返回 [code]true[/code]。" #: doc/classes/AnimationNodeBlendTree.xml msgid "Removes a sub-node." msgstr "删除一个子节点。" #: doc/classes/AnimationNodeBlendTree.xml msgid "Changes the name of a sub-node." msgstr "更改子节点的名称。" #: doc/classes/AnimationNodeBlendTree.xml msgid "Modifies the position of a sub-node." msgstr "修改子节点的位置。" #: doc/classes/AnimationNodeBlendTree.xml msgid "The global offset of all sub-nodes." msgstr "所有子节点的全局偏移量。" #: doc/classes/AnimationNodeBlendTree.xml msgid "The connection was successful." msgstr "连接成功。" #: doc/classes/AnimationNodeBlendTree.xml msgid "The input node is [code]null[/code]." msgstr "输入节点为 [code]null[/code]。" #: doc/classes/AnimationNodeBlendTree.xml msgid "The specified input port is out of range." msgstr "指定的输入端口超出范围。" #: doc/classes/AnimationNodeBlendTree.xml msgid "The output node is [code]null[/code]." msgstr "输出节点为 [code]null[/code]。" #: doc/classes/AnimationNodeBlendTree.xml msgid "Input and output nodes are the same." msgstr "输入和输出节点相同。" #: doc/classes/AnimationNodeBlendTree.xml msgid "The specified connection already exists." msgstr "指定的连接已经存在。" #: doc/classes/AnimationNodeOneShot.xml msgid "Plays an animation once in [AnimationNodeBlendTree]." msgstr "在 [AnimationNodeBlendTree] 中播放一次动画。" #: doc/classes/AnimationNodeOneShot.xml msgid "" "A resource to add to an [AnimationNodeBlendTree]. This node will execute a " "sub-animation and return once it finishes. Blend times for fading in and out " "can be customized, as well as filters." msgstr "" "可添加到 [AnimationNodeBlendTree] 的资源。这个节点将执行一个子动画,并在完成" "后返回。可以自定义淡入和淡出的混合时间,以及过滤器。" #: doc/classes/AnimationNodeOneShot.xml msgid "" "If [code]true[/code], the sub-animation will restart automatically after " "finishing." msgstr "如果为 [code]true[/code],则子动画完成后会自动重新开始。" #: doc/classes/AnimationNodeOneShot.xml msgid "The delay after which the automatic restart is triggered, in seconds." msgstr "触发自动重启的延迟时间,以秒为单位。" #: doc/classes/AnimationNodeOneShot.xml msgid "" "If [member autorestart] is [code]true[/code], a random additional delay (in " "seconds) between 0 and this value will be added to [member " "autorestart_delay]." msgstr "" "如果[member autorestart]为 [code]true[/code],则介于0和此值之间的随机附加延迟" "(以秒为单位)将添加到[member autorestart_delay]。" #: doc/classes/AnimationNodeOutput.xml msgid "Generic output node to be added to [AnimationNodeBlendTree]." msgstr "可添加到 [AnimationNodeBlendTree] 的通用输出节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "State machine for control of animations." msgstr "用于控制动画的状态机。" #: doc/classes/AnimationNodeStateMachine.xml msgid "" "Contains multiple nodes representing animation states, connected in a graph. " "Node transitions can be configured to happen automatically or via code, " "using a shortest-path algorithm. Retrieve the " "[AnimationNodeStateMachinePlayback] object from the [AnimationTree] node to " "control it programmatically.\n" "[b]Example:[/b]\n" "[codeblock]\n" "var state_machine = $AnimationTree.get(\"parameters/playback\")\n" "state_machine.travel(\"some_state\")\n" "[/codeblock]" msgstr "" "包含代表动画状态的多个节点,以图的形式连接。节点转换可以配置为自动发生或通过" "代码,使用最短路径算法。从[AnimationTree]节点中检索" "[AnimationNodeStateMachinePlayback]对象,对其进行编程控制。\n" "[b]示例:[/b]\n" "[codeblock]\n" "var state_machine = $AnimationTree.get(\"parameters/playback\")\n" "state_machine.travel(\"some_state\")\n" "[/codeblock]" #: doc/classes/AnimationNodeStateMachine.xml msgid "" "Adds a new node to the graph. The [code]position[/code] is used for display " "in the editor." msgstr "向图中添加一个新节点。 [code]position[/code]用于在编辑器中显示。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Adds a transition between the given nodes." msgstr "在给定节点之间添加一个过渡。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the graph's end node." msgstr "返回图的末端节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the draw offset of the graph. Used for display in the editor." msgstr "返回图形的绘制偏移。用于编辑器中的显示。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the animation node with the given name." msgstr "返回指定名称的动画节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the given animation node's name." msgstr "返回指定动画节点的名称。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the given node's coordinates. Used for display in the editor." msgstr "返回给定的节点的坐标。用于编辑器中的显示。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the given transition." msgstr "返回给定的过渡。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the number of connections in the graph." msgstr "返回图中的连接数。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the given transition's start node." msgstr "返回给定过渡的开始节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns the given transition's end node." msgstr "返回给定过渡的端节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Returns [code]true[/code] if the graph contains the given node." msgstr "如果图中包含给定的节点,返回 [code]true[/code]。" #: doc/classes/AnimationNodeStateMachine.xml msgid "" "Returns [code]true[/code] if there is a transition between the given nodes." msgstr "如果在给定节点之间存在过渡,返回 [code]true[/code]。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Deletes the given node from the graph." msgstr "从图中删除指定的节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Deletes the transition between the two specified nodes." msgstr "删除两个指定节点之间的过渡。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Deletes the given transition by index." msgstr "按索引删除给定的过渡。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Renames the given node." msgstr "重命名给定的节点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Replaces the node and keeps its transitions unchanged." msgstr "替换节点并保持其过渡不变。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Sets the given node as the graph end point." msgstr "将给定的节点设置为图形的端点。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Sets the draw offset of the graph. Used for display in the editor." msgstr "设置图形的绘制偏移。用于编辑器中的显示。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Sets the node's coordinates. Used for display in the editor." msgstr "设置节点的坐标。用于编辑器中的显示。" #: doc/classes/AnimationNodeStateMachine.xml msgid "Sets the given node as the graph start point." msgstr "将给定的节点设置为图形的起始点。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "Playback control for [AnimationNodeStateMachine]." msgstr "[AnimationNodeStateMachine]的播放控件。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "" "Allows control of [AnimationTree] state machines created with " "[AnimationNodeStateMachine]. Retrieve with [code]$AnimationTree." "get(\"parameters/playback\")[/code].\n" "[b]Example:[/b]\n" "[codeblock]\n" "var state_machine = $AnimationTree.get(\"parameters/playback\")\n" "state_machine.travel(\"some_state\")\n" "[/codeblock]" msgstr "" "允许控制用[AnimationNodeStateMachine]创建的[AnimationTree]状态机。用" "[code]$AnimationTree.get(\"parameters/playback\")[/code]检索。\n" "[b]示例:[/b]\n" "[codeblock]\n" "var state_machine = $AnimationTree.get(\"parameters/playback\")\n" "state_machine.travel(\"some_state\")\n" "[/codeblock]" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "Returns the currently playing animation state." msgstr "返回当前播放的动画状态。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "Returns the playback position within the current animation state." msgstr "返回当前动画状态内的播放位置。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "" "Returns the current travel path as computed internally by the A* algorithm." msgstr "返回A*算法内部计算的当前行进路径。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "Returns [code]true[/code] if an animation is playing." msgstr "如果正在播放动画,返回 [code]true[/code]。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "Starts playing the given animation." msgstr "开始播放指定的动画。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "Stops the currently playing animation." msgstr "停止当前播放的动画。" #: doc/classes/AnimationNodeStateMachinePlayback.xml msgid "" "Transitions from the current state to another one, following the shortest " "path." msgstr "按照最短路径从当前状态过渡到另一个状态。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Turn on auto advance when this condition is set. The provided name will " "become a boolean parameter on the [AnimationTree] that can be controlled " "from code (see [url=$DOCS_URL/tutorials/animation/animation_tree." "html#controlling-from-code][/url]). For example, if [member AnimationTree." "tree_root] is an [AnimationNodeStateMachine] and [member advance_condition] " "is set to [code]\"idle\"[/code]:\n" "[codeblock]\n" "$animation_tree[\"parameters/conditions/idle\"] = is_on_floor and " "(linear_velocity.x == 0)\n" "[/codeblock]" msgstr "" "设置此条件,开启自动前进。提供的名称将成为 [AnimationTree] 上的一个布尔参数," "可以通过代码控制,请参阅 [url=$DOCS_URL/tutorials/animation/animation_tree." "html#controlling-from-code][/url]。例如,如果 [member AnimationTree." "tree_root] 是一个 [AnimationNodeStateMachine],[member advance_condition] 被" "设置为 [code]\"idle\"[/code]。\n" "[codeblock]\n" "$animation_tree[\"parameters/conditions/idle\"] = is_on_floor and " "(linear_velocity.x == 0)\n" "[/codeblock]" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Turn on the transition automatically when this state is reached. This works " "best with [constant SWITCH_MODE_AT_END]." msgstr "" "当达到该状态时,自动开启过渡。这与[constant SWITCH_MODE_AT_END]配合使用效果最" "好。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Don't use this transition during [method AnimationNodeStateMachinePlayback." "travel] or [member auto_advance]." msgstr "" "不要在[method AnimationNodeStateMachinePlayback.travel]或[member " "auto_advance]期间使用这个过渡。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Lower priority transitions are preferred when travelling through the tree " "via [method AnimationNodeStateMachinePlayback.travel] or [member " "auto_advance]." msgstr "" "当通过[method AnimationNodeStateMachinePlayback.travel]或[member " "auto_advance]在树中旅行时,优先级较低的转场。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "The transition type." msgstr "过渡类型." #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "The time to cross-fade between this state and the next." msgstr "这个状态和下一个状态之间的交叉渐变时间。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "Emitted when [member advance_condition] is changed." msgstr "变更[member advance_condition]时发出。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Switch to the next state immediately. The current state will end and blend " "into the beginning of the new one." msgstr "立即切换到下一个状态。当前状态将结束,并融合到新状态的开始。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Switch to the next state immediately, but will seek the new state to the " "playback position of the old state." msgstr "立即切换到下一个状态,但会寻找新的状态到旧状态的播放位置。" #: doc/classes/AnimationNodeStateMachineTransition.xml msgid "" "Wait for the current state playback to end, then switch to the beginning of " "the next state animation." msgstr "等待当前状态播放结束,然后切换到下一个状态动画的开头。" #: doc/classes/AnimationNodeTimeScale.xml msgid "A time-scaling animation node to be used with [AnimationTree]." msgstr "与[AnimationTree]一起使用的时间缩放动画节点。" #: doc/classes/AnimationNodeTimeScale.xml msgid "" "Allows scaling the speed of the animation (or reversing it) in any children " "nodes. Setting it to 0 will pause the animation." msgstr "允许缩放任何子节点中动画的速度(或反转)。将其设置为0将暂停动画。" #: doc/classes/AnimationNodeTimeSeek.xml msgid "A time-seeking animation node to be used with [AnimationTree]." msgstr "与[AnimationTree]配合使用的寻时动画节点。" #: doc/classes/AnimationNodeTimeSeek.xml msgid "" "This node can be used to cause a seek command to happen to any sub-children " "of the animation graph. Use this node type to play an [Animation] from the " "start or a certain playback position inside the [AnimationNodeBlendTree]. " "After setting the time and changing the animation playback, the seek node " "automatically goes into sleep mode on the next process frame by setting its " "[code]seek_position[/code] value to [code]-1.0[/code].\n" "[codeblock]\n" "# Play child animation from the start.\n" "animation_tree.set(\"parameters/Seek/seek_position\", 0.0)\n" "# Alternative syntax (same result as above).\n" "animation_tree[\"parameters/Seek/seek_position\"] = 0.0\n" "\n" "# Play child animation from 12 second timestamp.\n" "animation_tree.set(\"parameters/Seek/seek_position\", 12.0)\n" "# Alternative syntax (same result as above).\n" "animation_tree[\"parameters/Seek/seek_position\"] = 12.0\n" "[/codeblock]" msgstr "" "这个节点可以使 Seek 命令发生在该动画图的所有子级上。使用这个节点类型可以从 " "[AnimationNodeBlendTree] 内部的开头或某个播放位置开始播放 [Animation]。该 " "Seek 节点在设置时间并改变动画播放后,会将其 [code]seek_position[/code] 值设" "为 [code]-1.0[/code],在下一处理帧自动进入休眠模式。\n" "[codeblock]\n" "# 从头开始播放子动画。\n" "animation_tree.set(\"parameters/Seek/seek_position\", 0.0)\n" "# 另一种语法(结果与上述相同)。\n" "animation_tree[\"parameters/Seek/seek_position\"] = 0.0\n" "\n" "# 从12秒的时间戳开始播放子动画。\n" "animation_tree.set(\"parameters/Seek/seek_position\", 12.0)\n" "# 另一种语法(结果与上述相同)。\n" "animation_tree[\"parameters/Seek/seek_position\"] = 12.0\n" "[/codeblock]" #: doc/classes/AnimationNodeTransition.xml msgid "A generic animation transition node for [AnimationTree]." msgstr "[AnimationTree]的通用动画过渡节点。" #: doc/classes/AnimationNodeTransition.xml msgid "" "Simple state machine for cases which don't require a more advanced " "[AnimationNodeStateMachine]. Animations can be connected to the inputs and " "transition times can be specified." msgstr "" "简单的状态机,适用于不需要更高级的[AnimationNodeStateMachine]的情况。可以将动" "画连接到输入,并指定过渡时间。" #: doc/classes/AnimationNodeTransition.xml msgid "The number of available input ports for this node." msgstr "此节点的可用输入端口数。" #: doc/classes/AnimationNodeTransition.xml msgid "" "Cross-fading time (in seconds) between each animation connected to the " "inputs." msgstr "连接到输入的每个动画之间的交叉渐变时间(秒)。" #: doc/classes/AnimationPlayer.xml msgid "Container and player of [Animation] resources." msgstr "[Animation] 资源的容器和播放器。" #: doc/classes/AnimationPlayer.xml msgid "" "An animation player is used for general-purpose playback of [Animation] " "resources. It contains a dictionary of animations (referenced by name) and " "custom blend times between their transitions. Additionally, animations can " "be played and blended in different channels.\n" "[AnimationPlayer] is more suited than [Tween] for animations where you know " "the final values in advance. For example, fading a screen in and out is more " "easily done with an [AnimationPlayer] node thanks to the animation tools " "provided by the editor. That particular example can also be implemented with " "a [Tween] node, but it requires doing everything by code.\n" "Updating the target properties of animations occurs at process time." msgstr "" "动画播放器用于 [Animation] 资源的通用播放。它包含一个动画字典(使用名称进行索" "引)和自定义动画转换之间的混合时间。此外,动画可以在不同的通道中播放和混" "合。\n" "[AnimationPlayer] 比 [Tween] 更适合用于事先知道最终值的动画。例如,由于编辑器" "提供的动画工具,用 [AnimationPlayer] 节点更容易完成屏幕的淡入淡出。这个特殊的" "例子也可以用 [Tween] 节点来实现,但就需要通过代码来完成一切。\n" "更新动画的目标属性是在处理时进行的。" #: doc/classes/AnimationPlayer.xml msgid "Animation tutorial index" msgstr "动画教程索引" #: doc/classes/AnimationPlayer.xml msgid "" "Adds [code]animation[/code] to the player accessible with the key " "[code]name[/code]." msgstr "" "向播放器中添加动画 [code]animation[/code],后续通过键 [code]name[/code] 访" "问。" #: doc/classes/AnimationPlayer.xml msgid "" "Shifts position in the animation timeline and immediately updates the " "animation. [code]delta[/code] is the time in seconds to shift. Events " "between the current frame and [code]delta[/code] are handled." msgstr "" "移动动画时间轴上的位置并立即更新动画。[code]delta[/code] 是要移动的时间,单位" "为秒。会处理位于当前帧和 [code]delta[/code] 之间的事件。" #: doc/classes/AnimationPlayer.xml msgid "Returns the name of the next animation in the queue." msgstr "返回队列中下一个动画的名称。" #: doc/classes/AnimationPlayer.xml msgid "" "Triggers the [code]anim_to[/code] animation when the [code]anim_from[/code] " "animation completes." msgstr "当 [code]anim_from[/code] 动画完成后,触发 [code]anim_to[/code] 动画。" #: doc/classes/AnimationPlayer.xml msgid "" "[AnimationPlayer] caches animated nodes. It may not notice if a node " "disappears; [method clear_caches] forces it to update the cache again." msgstr "" "[AnimationPlayer] 缓存动画节点。如果一个节点消失,它可能不会注意到;[method " "clear_caches] 强制它再次更新缓存。" #: doc/classes/AnimationPlayer.xml msgid "Clears all queued, unplayed animations." msgstr "清除所有已排队、未播放的动画。" #: doc/classes/AnimationPlayer.xml msgid "" "Returns the name of [code]animation[/code] or an empty string if not found." msgstr "返回 [code]animation[/code] 的名称,如果没有找到,则返回一个空字符串。" #: doc/classes/AnimationPlayer.xml msgid "" "Returns the [Animation] with key [code]name[/code] or [code]null[/code] if " "not found." msgstr "" "返回键为 [code]name[/code] 的 [Animation] 动画,未找到时为 [code]null[/" "code]。" #: doc/classes/AnimationPlayer.xml msgid "Returns the list of stored animation names." msgstr "返回存储的动画名称列表。" #: doc/classes/AnimationPlayer.xml msgid "" "Gets the blend time (in seconds) between two animations, referenced by their " "names." msgstr "获取两个动画之间的混合时间(以秒为单位),由它们的名称引用。" #: doc/classes/AnimationPlayer.xml msgid "" "Gets the actual playing speed of current animation or 0 if not playing. This " "speed is the [member playback_speed] property multiplied by " "[code]custom_speed[/code] argument specified when calling the [method play] " "method." msgstr "" "获取当前动画的实际播放速度,如果没有播放则为0。这个速度是调用[method play]方" "法时指定的[member playback_speed]属性乘以[code]custom_speed[/code]参数。" #: doc/classes/AnimationPlayer.xml msgid "" "Returns a list of the animation names that are currently queued to play." msgstr "返回当前排队播放的动画名称列表。" #: doc/classes/AnimationPlayer.xml msgid "" "Returns [code]true[/code] if the [AnimationPlayer] stores an [Animation] " "with key [code]name[/code]." msgstr "" "如果该 [AnimationPlayer] 存储了键名为 [code]name[/code] 的 [Animation],则返" "回 [code]true[/code]。" #: doc/classes/AnimationPlayer.xml msgid "Returns [code]true[/code] if playing an animation." msgstr "如果正在播放动画,则返回 [code]true[/code]。" #: doc/classes/AnimationPlayer.xml msgid "" "Plays the animation with key [code]name[/code]. Custom blend times and speed " "can be set. If [code]custom_speed[/code] is negative and [code]from_end[/" "code] is [code]true[/code], the animation will play backwards (which is " "equivalent to calling [method play_backwards]).\n" "The [AnimationPlayer] keeps track of its current or last played animation " "with [member assigned_animation]. If this method is called with that same " "animation [code]name[/code], or with no [code]name[/code] parameter, the " "assigned animation will resume playing if it was paused, or restart if it " "was stopped (see [method stop] for both pause and stop). If the animation " "was already playing, it will keep playing.\n" "[b]Note:[/b] The animation will be updated the next time the " "[AnimationPlayer] is processed. If other variables are updated at the same " "time this is called, they may be updated too early. To perform the update " "immediately, call [code]advance(0)[/code]." msgstr "" "播放键名为 [code]name[/code] 的动画。可以设置自定义混合时间和速度。如果 " "[code]custom_speed[/code] 为负,[code]from_end[/code] =[code]true[/code],则" "动画将向后播放(相当于调用 [method play_backwards])。\n" "[AnimationPlayer] 使用 [member assigned_animation] 跟踪其当前或最后播放的动" "画。如果使用相同的动画名 [code]name[/code] 或没有 [code]name[/code] 参数调用" "此方法,则分配的动画将在暂停时继续播放,或者在停止时重新启动(请参阅 [method " "stop],同时暂停和停止。如果动画已经在播放,它将继续播放。\n" "[b]注意:[/b]下次处理 [AnimationPlayer] 时,动画将被更新。如果在调用的同时更" "新了其他变量,则它们可能更新得太早。要立即执行更新,请调用 [code]advance(0)[/" "code]。" #: doc/classes/AnimationPlayer.xml msgid "" "Plays the animation with key [code]name[/code] in reverse.\n" "This method is a shorthand for [method play] with [code]custom_speed = -1.0[/" "code] and [code]from_end = true[/code], so see its description for more " "information." msgstr "" "反向播放键名称为 [code]name[/code] 的动画。\n" "这个方法是 [method play] 的简写,只是其中参数设为 [code]custom_speed = -1.0[/" "code] 和 [code]from_end = true[/code],所以更多信息请参阅其描述。" #: doc/classes/AnimationPlayer.xml msgid "" "Queues an animation for playback once the current one is done.\n" "[b]Note:[/b] If a looped animation is currently playing, the queued " "animation will never play unless the looped animation is stopped somehow." msgstr "" "将动画加入队列,在当前动画播放完毕后播放。\n" "[b]注意:[/b]如果当前正在播放循环动画,除非以某种方式停止循环动画,否则排队的" "动画将永远不会播放。" #: doc/classes/AnimationPlayer.xml msgid "Removes the animation with key [code]name[/code]." msgstr "移除键名为 [code]name[/code] 的动画。" #: doc/classes/AnimationPlayer.xml msgid "" "Renames an existing animation with key [code]name[/code] to [code]newname[/" "code]." msgstr "将键值为[code]name[/code]的现有动画重命名为[code]newname[/code]。" #: doc/classes/AnimationPlayer.xml msgid "" "Seeks the animation to the [code]seconds[/code] point in time (in seconds). " "If [code]update[/code] is [code]true[/code], the animation updates too, " "otherwise it updates at process time. Events between the current frame and " "[code]seconds[/code] are skipped.\n" "[b]Note:[/b] Seeking to the end of the animation doesn't emit [signal " "animation_finished]. If you want to skip animation and emit the signal, use " "[method advance]." msgstr "" "将动画寻道到时间点 [code]seconds[/code](单位为秒)。[code]update[/code] 为 " "[code]true[/code] 时会同时更新动画,否则会在处理时更新。当前帧和 " "[code]seconds[/code] 之间的事件会被跳过。\n" "[b]注意:[/b]寻道至动画的末尾不会触发 [signal animation_finished]。如果你想要" "跳过动画并触发该信号,请使用 [method advance]。" #: doc/classes/AnimationPlayer.xml msgid "" "Specifies a blend time (in seconds) between two animations, referenced by " "their names." msgstr "指定两个动画之间的混合时间(以秒为单位),以它们的名称为参照。" #: doc/classes/AnimationPlayer.xml msgid "" "Stops or pauses the currently playing animation. If [code]reset[/code] is " "[code]true[/code], the animation position is reset to [code]0[/code] and the " "playback speed is reset to [code]1.0[/code].\n" "If [code]reset[/code] is [code]false[/code], the [member " "current_animation_position] will be kept and calling [method play] or " "[method play_backwards] without arguments or with the same animation name as " "[member assigned_animation] will resume the animation." msgstr "" "停止或暂停当前播放的动画。如果 [code]reset[/code] 为 [code]true[/code],会将" "动画位置重置为 [code]0[/code]、播放速度重置为 [code]1.0[/code]。\n" "如果 [code]reset[/code] 为 [code]false[/code],则会保留 [member " "current_animation_position]。不带参数调用 [method play] 或 [method " "play_backwards] 或者使用与 [member assigned_animation] 相同的动画名称将恢复动" "画。" #: doc/classes/AnimationPlayer.xml msgid "" "If playing, the current animation; otherwise, the animation last played. " "When set, would change the animation, but would not play it unless currently " "playing. See also [member current_animation]." msgstr "" "如果正在播放,则为当前的动画;否则为上次播放的动画。当设置时,将改变动画,但" "不会播放它,除非当前正在播放。参阅 [member current_animation]。" #: doc/classes/AnimationPlayer.xml msgid "The name of the animation to play when the scene loads." msgstr "场景加载时要播放的动画名称。" #: doc/classes/AnimationPlayer.xml msgid "" "The name of the currently playing animation. If no animation is playing, the " "property's value is an empty string. Changing this value does not restart " "the animation. See [method play] for more information on playing " "animations.\n" "[b]Note:[/b] While this property appears in the inspector, it's not meant to " "be edited, and it's not saved in the scene. This property is mainly used to " "get the currently playing animation, and internally for animation playback " "tracks. For more information, see [Animation]." msgstr "" "当前播放的动画的名称。如果没有动画正在播放,该属性的值是一个空字符串。改变这" "个值不会重新启动动画。关于播放动画的更多信息请参阅 [method play]。\n" "[b]注意:[/b]虽然这个属性会出现在检查器中,但它不是用来编辑的,也不会保存在场" "景中。该属性主要用于获取当前播放的动画,内部用于动画播放轨道。有关详细信息," "请参阅动画 [Animation]。" #: doc/classes/AnimationPlayer.xml msgid "The length (in seconds) of the currently being played animation." msgstr "当前正在播放的动画的长度(以秒为单位)。" #: doc/classes/AnimationPlayer.xml msgid "The position (in seconds) of the currently playing animation." msgstr "当前播放的动画的位置(以秒为单位)。" #: doc/classes/AnimationPlayer.xml msgid "The call mode to use for Call Method tracks." msgstr "方法调用轨道所使用的调用模式。" #: doc/classes/AnimationPlayer.xml msgid "" "If [code]true[/code], updates animations in response to process-related " "notifications." msgstr "如果[code]true[/code],根据流程相关通知更新动画。" #: doc/classes/AnimationPlayer.xml msgid "" "The default time in which to blend animations. Ranges from 0 to 4096 with " "0.01 precision." msgstr "混合动画的默认时间。范围从 0 到 4096,精度为 0.01。" #: doc/classes/AnimationPlayer.xml msgid "The process notification in which to update animations." msgstr "更新动画的过程通知。" #: doc/classes/AnimationPlayer.xml msgid "" "The speed scaling ratio. For instance, if this value is 1, then the " "animation plays at normal speed. If it's 0.5, then it plays at half speed. " "If it's 2, then it plays at double speed." msgstr "" "速度缩放比。例如,如果这个值是 1,那么动画以正常速度播放。如果是 0.5,则以半" "速播放。如果是 2,则以双倍速度播放。" #: doc/classes/AnimationPlayer.xml msgid "" "This is used by the editor. If set to [code]true[/code], the scene will be " "saved with the effects of the reset animation applied (as if it had been " "seeked to time 0), then reverted after saving.\n" "In other words, the saved scene file will contain the \"default pose\", as " "defined by the reset animation, if any, with the editor keeping the values " "that the nodes had before saving." msgstr "" "由编辑器使用。如果设置为 [code]true[/code],场景在保存时将应用重置动画的效果" "(就像它回到 0 时间点),然后在保存后恢复原状。\n" "换句话说,如果存在重置动画,那么保存的场景文件中包含的就是由其定义的“默认姿" "势”,编辑器会保持节点在保存前的值。" #: doc/classes/AnimationPlayer.xml msgid "The node from which node path references will travel." msgstr "节点路径引用将从其运行的节点。" #: doc/classes/AnimationPlayer.xml msgid "" "Emitted when a queued animation plays after the previous animation was " "finished. See [method queue].\n" "[b]Note:[/b] The signal is not emitted when the animation is changed via " "[method play] or from [AnimationTree]." msgstr "" "当队列中前一个动画播放完毕,要播放下一个动画时触发信号,参见 [method " "queue]。\n" "[b]注意:[/b]如果是通过 [method play] 方法或 [AnimationTree] 改变的动画,该信" "号不会触发。" #: doc/classes/AnimationPlayer.xml msgid "Notifies when an animation finished playing." msgstr "当动画播放结束时通知。" #: doc/classes/AnimationPlayer.xml msgid "Notifies when an animation starts playing." msgstr "当动画开始播放时通知。" #: doc/classes/AnimationPlayer.xml msgid "" "Notifies when the caches have been cleared, either automatically, or " "manually via [method clear_caches]." msgstr "" "当缓存被清除时通知,可以是自动清除,也可以是通过 [method clear_caches] 手动清" "除。" #: doc/classes/AnimationPlayer.xml doc/classes/AnimationTreePlayer.xml msgid "" "Process animation during the physics process. This is especially useful when " "animating physics bodies." msgstr "在物理过程中处理动画。在为物理物体设置动画时,这特别有用。" #: doc/classes/AnimationPlayer.xml doc/classes/AnimationTreePlayer.xml msgid "Process animation during the idle process." msgstr "在空闲过程中处理动画。" #: doc/classes/AnimationPlayer.xml msgid "" "Do not process animation. Use [method advance] to process the animation " "manually." msgstr "不处理动画。使用[method advance]手动处理动画。" #: doc/classes/AnimationPlayer.xml msgid "" "Batch method calls during the animation process, then do the calls after " "events are processed. This avoids bugs involving deleting nodes or modifying " "the AnimationPlayer while playing." msgstr "" "在动画过程中批量调用方法,然后在处理完事件后再进行调用。这样就避免了在播放过" "程中涉及删除节点或修改AnimationPlayer的错误。" #: doc/classes/AnimationPlayer.xml msgid "Make method calls immediately when reached in the animation." msgstr "在动画中达到时立即进行方法调用。" #: doc/classes/AnimationTree.xml msgid "" "A node to be used for advanced animation transitions in an [AnimationPlayer]." msgstr "用于 [AnimationPlayer] 中高级动画过渡的节点。" #: doc/classes/AnimationTree.xml msgid "" "A node to be used for advanced animation transitions in an " "[AnimationPlayer].\n" "[b]Note:[/b] When linked with an [AnimationPlayer], several properties and " "methods of the corresponding [AnimationPlayer] will not function as " "expected. Playback and transitions should be handled using only the " "[AnimationTree] and its constituent [AnimationNode](s). The " "[AnimationPlayer] node should be used solely for adding, deleting, and " "editing animations." msgstr "" "用于 [AnimationPlayer] 中高级动画过渡的节点。\n" "[b]注意:[/b]与 [AnimationPlayer] 连接时,该 [AnimationPlayer] 的一些属性和方" "法将不会像预期的那样发挥作用。播放和过渡应该只使用 [AnimationTree] 和组成它" "的 [AnimationNode] 来处理。[AnimationPlayer] 节点应仅用于添加、删除和编辑动" "画。" #: doc/classes/AnimationTree.xml msgid "Using AnimationTree" msgstr "使用 AnimationTree" #: doc/classes/AnimationTree.xml msgid "Manually advance the animations by the specified time (in seconds)." msgstr "手动将动画前进指定的时间(单位为秒)。" #: doc/classes/AnimationTree.xml msgid "" "Retrieve the motion of the [member root_motion_track] as a [Transform] that " "can be used elsewhere. If [member root_motion_track] is not a path to a " "track of type [constant Animation.TYPE_TRANSFORM], returns an identity " "transformation. See also [member root_motion_track] and [RootMotionView]." msgstr "" "检索 [member root_motion_track] 的运动,作为一个可以在其他地方使用的 " "[Transform]。如果 [member root_motion_track] 不是 [constant Animation." "TYPE_TRANSFORM] 类型轨道的路径,则返回恒等变换。请参阅 [member " "root_motion_track] 和 [RootMotionView]。" #: doc/classes/AnimationTree.xml msgid "If [code]true[/code], the [AnimationTree] will be processing." msgstr "如果 [code]true[/code] 时,[AnimationTree] 将执行逻辑处理。" #: doc/classes/AnimationTree.xml msgid "The path to the [AnimationPlayer] used for animating." msgstr "用于动画的 [AnimationPlayer] 的路径。" #: doc/classes/AnimationTree.xml msgid "" "The process mode of this [AnimationTree]. See [enum AnimationProcessMode] " "for available modes." msgstr "" "该 [AnimationTree] 的处理模式。可用的模式见 [enum AnimationProcessMode]。" #: doc/classes/AnimationTree.xml msgid "" "The path to the Animation track used for root motion. Paths must be valid " "scene-tree paths to a node, and must be specified starting from the parent " "node of the node that will reproduce the animation. To specify a track that " "controls properties or bones, append its name after the path, separated by " "[code]\":\"[/code]. For example, [code]\"character/skeleton:ankle\"[/code] " "or [code]\"character/mesh:transform/local\"[/code].\n" "If the track has type [constant Animation.TYPE_TRANSFORM], the " "transformation will be cancelled visually, and the animation will appear to " "stay in place. See also [method get_root_motion_transform] and " "[RootMotionView]." msgstr "" "用于根部运动的动画轨道的路径。路径必须是指向节点的场景树有效路径,必须从将实" "现动画的节点的父节点开始指定。要指定控件属性或骨骼的轨道,请在路径后附加其名" "称,用 [code]\":\"[/code] 隔开。例如,[code]\"character/skeleton:ankle\"[/" "code] 或 [code]\"character/mesh:transform/local\"[/code]。\n" "如果轨道的类型是 [constant Animation.TYPE_TRANSFORM],那么将取消视觉上的变" "换,其动画将看起来留在原地。参阅 [method get_root_motion_transform] 和 " "[RootMotionView]。" #: doc/classes/AnimationTree.xml msgid "The root animation node of this [AnimationTree]. See [AnimationNode]." msgstr "该 [AnimationTree] 的根动画节点。见 [AnimationNode]。" #: doc/classes/AnimationTree.xml msgid "" "The animations will progress during the physics frame (i.e. [method Node." "_physics_process])." msgstr "在物理帧期间进行动画(即 [method Node._physics_process])。" #: doc/classes/AnimationTree.xml msgid "" "The animations will progress during the idle frame (i.e. [method Node." "_process])." msgstr "在空闲帧期间进行动画(即 [method Node._process])。" #: doc/classes/AnimationTree.xml msgid "The animations will only progress manually (see [method advance])." msgstr "只能手动进行动画(见 [method advance])。" #: doc/classes/AnimationTreePlayer.xml msgid "" "[i]Deprecated.[/i] Animation player that uses a node graph for blending " "animations. Superseded by [AnimationTree]." msgstr "" "[i]已弃用。[/i]使用节点图来混合动画的动画播放器。由 [AnimationTree] 取代。" #: doc/classes/AnimationTreePlayer.xml msgid "" "[i]Deprecated.[/i] A node graph tool for blending multiple animations bound " "to an [AnimationPlayer]. Especially useful for animating characters or other " "skeleton-based rigs. It can combine several animations to form a desired " "pose.\n" "It takes [Animation]s from an [AnimationPlayer] node and mixes them " "depending on the graph.\n" "See [AnimationTree] for a more full-featured replacement of this node." msgstr "" "[i]已弃用。[/i]节点图示工具,用于混合绑定在 [AnimationPlayer] 上的多个动画。" "对于给角色或其他基于骨架的配件制作动画特别有用。它可以结合几个动画来形成一个" "所需的姿势。\n" "它从 [AnimationPlayer] 节点获取 [Animation],并根据图示将它们混合起来。\n" "请参阅 [AnimationTree] 以获得该节点的更全面的功能替代。" #: doc/classes/AnimationTreePlayer.xml msgid "Adds a [code]type[/code] node to the graph with name [code]id[/code]." msgstr "添加[code]type[/code]节点到图示中,名称为[code]id[/code]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Shifts position in the animation timeline. [code]delta[/code] is the time in " "seconds to shift. Events between the current frame and [code]delta[/code] " "are handled." msgstr "" "移动动画时间轴上的位置。[code]delta[/code]是移动的时间,单位是秒。当前帧和" "[code]delta[/code]之间的事件被处理。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the [AnimationPlayer]'s [Animation] bound to the " "[AnimationTreePlayer]'s animation node with name [code]id[/code]." msgstr "" "返回与[AnimationTreePlayer]的动画节点绑定的[Animation],名称为[code]id[/" "code]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the name of the [member master_player]'s [Animation] bound to this " "animation node." msgstr "返回与此动画节点绑定的[member master_player]的[Animation]名称。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the absolute playback timestamp of the animation node with name " "[code]id[/code]." msgstr "返回名称为[code]id[/code]的动画节点的绝对播放时间戳。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Binds a new [Animation] from the [member master_player] to the " "[AnimationTreePlayer]'s animation node with name [code]id[/code]." msgstr "" "将名称为[code]id[/code]的新[Animation]从[member master_player]绑定到" "[AnimationTreePlayer]的动画节点。" #: doc/classes/AnimationTreePlayer.xml msgid "" "If [code]enable[/code] is [code]true[/code], the animation node with ID " "[code]id[/code] turns off the track modifying the property at [code]path[/" "code]. The modified node's children continue to animate." msgstr "" "如果[code]enable[/code]为 [code]true[/code],则ID为[code]id[/code]的动画节点" "将关闭修改[code]path[/code]属性的轨道。修改后的节点的子代继续进行动画处理。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Binds the [Animation] named [code]source[/code] from [member master_player] " "to the animation node [code]id[/code]. Recalculates caches." msgstr "" "将[member master_player]中名为[code]source[/code]的[Animation]绑定到动画节点" "[code]id[/code]。重新计算缓存。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns whether node [code]id[/code] and [code]dst_id[/code] are connected " "at the specified slot." msgstr "返回节点[code]id[/code]和[code]dst_id[/code]是否在指定的插槽上连接。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the blend amount of a Blend2 node given its name." msgstr "返回给定名称的 Blend2 节点的混合量。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the blend amount of a Blend2 node given its name and value.\n" "A Blend2 node blends two animations (A and B) with the amount between 0 and " "1.\n" "At 0, output is input A. Towards 1, the influence of A gets lessened, the " "influence of B gets raised. At 1, output is input B." msgstr "" "设置Blend2节点的混合量,给定其名称和值。\n" "一个Blend2节点混合两个动画(A和B),混合量在0到1之间。\n" "在0的时候,输出是输入A。接近1的时候,A的影响变小,B的影响变大。在1时,输出是" "输入B。" #: doc/classes/AnimationTreePlayer.xml msgid "" "If [code]enable[/code] is [code]true[/code], the Blend2 node with name " "[code]id[/code] turns off the track modifying the property at [code]path[/" "code]. The modified node's children continue to animate." msgstr "" "如果[code]enable[/code]是[code]true[/code],名称为[code]id[/code]的Blend2节点" "会关闭修改[code]path[/code]处属性的轨道。被修改的节点的子节点继续处理动画。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the blend amount of a Blend3 node given its name." msgstr "返回给定名称的 Blend3 节点的混合量。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the blend amount of a Blend3 node given its name and value.\n" "A Blend3 Node blends three animations (A, B-, B+) with the amount between -1 " "and 1.\n" "At -1, output is input B-. From -1 to 0, the influence of B- gets lessened, " "the influence of A gets raised and the influence of B+ is 0. At 0, output is " "input A. From 0 to 1, the influence of A gets lessened, the influence of B+ " "gets raised and the influence of B+ is 0. At 1, output is input B+." msgstr "" "设置一个Blend3节点的混合值,传入节点名和混合值。\n" "Blend3节点使用-1~1之间的一个值来混合3个动画 (A, B-, B+).\n" "值为-1时,输出动画为B-;值从-1到0时,B-的影响减弱,A的影响变强,B+的影响为0;" "值为0时,输出为动画A;值从0到1时,A的影响减弱,B+的影响变强,B-的影响为0;值" "为1时,输出为动画B+。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the blend amount of a Blend4 node given its name." msgstr "返回给定名称的Blend4节点的混合量。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the blend amount of a Blend4 node given its name and value.\n" "A Blend4 Node blends two pairs of animations.\n" "The two pairs are blended like Blend2 and then added together." msgstr "" "设置Blend4节点的混合量,给定其名称和值。\n" "Blend4节点可以混合两对动画。\n" "这两对动画像Blend2一样被混合,然后相加在一起。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Connects node [code]id[/code] to [code]dst_id[/code] at the specified input " "slot." msgstr "将节点[code]id[/code]连接到指定输入插槽的[code]dst_id[/code]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Disconnects nodes connected to [code]id[/code] at the specified input slot." msgstr "断开在指定输入插槽连接到[code]id[/code]的节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns a [PoolStringArray] containing the name of all nodes." msgstr "返回包含所有节点名称的[PoolStringArray]。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the mix amount of a Mix node given its name." msgstr "返回给定名称的Mix节点的混合量。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the mix amount of a Mix node given its name and value.\n" "A Mix node adds input b to input a by the amount given by ratio." msgstr "" "设置混合节点的混合量,给定它的名称和值。\n" "混合节点将输入b添加到输入a中,其量由比率给出。" #: doc/classes/AnimationTreePlayer.xml msgid "Check if a node exists (by name)." msgstr "按名称检查节点是否存在。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the input count for a given node. Different types of nodes have " "different amount of inputs." msgstr "返回给定节点的输入计数。不同类型的节点有不同的输入数量。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the input source for a given node input." msgstr "返回给定节点输入的输入源。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns position of a node in the graph given its name." msgstr "返回给定其名称节点在图示中的位置。" #: doc/classes/AnimationTreePlayer.xml msgid "Gets the node type, will return from [enum NodeType] enum." msgstr "获取节点类型,将从[enum NodeType]枚举中返回。" #: doc/classes/AnimationTreePlayer.xml msgid "Renames a node in the graph." msgstr "重命名图示中的一个节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Sets the position of a node in the graph given its name and position." msgstr "设置节点在图示中的位置,给定其名称和位置。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the autostart delay of a OneShot node given its name." msgstr "返回给定名称的OneShot节点的自动启动延迟。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the autostart random delay of a OneShot node given its name." msgstr "返回给定名称的OneShot节点的自动启动随机延迟。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the fade in time of a OneShot node given its name." msgstr "返回给定名称的OneShot节点的淡入时间。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns the fade out time of a OneShot node given its name." msgstr "返回给定其名称的OneShot节点的淡出时间。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns whether a OneShot node will auto restart given its name." msgstr "返回OneShot节点是否会根据其名称自动重新启动。" #: doc/classes/AnimationTreePlayer.xml msgid "Returns whether a OneShot node is active given its name." msgstr "返回指定名称的OneShot节点是否处于活动状态。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the autorestart property of a OneShot node given its name and value." msgstr "设置OneShot节点的自动启动属性,给定其名称和值。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the autorestart delay of a OneShot node given its name and value in " "seconds." msgstr "设置OneShot节点的自动启动延迟,给定其名称和值,单位秒。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the autorestart random delay of a OneShot node given its name and value " "in seconds." msgstr "设置OneShot节点的自动重启随机延迟,给定其名称和数值,单位秒。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the fade in time of a OneShot node given its name and value in seconds." msgstr "设置OneShot节点的淡入时间,给定其名称和数值,单位秒。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the fade out time of a OneShot node given its name and value in seconds." msgstr "设置OneShot节点的淡出时间,给定其名称和数值,单位秒。" #: doc/classes/AnimationTreePlayer.xml msgid "" "If [code]enable[/code] is [code]true[/code], the OneShot node with ID " "[code]id[/code] turns off the track modifying the property at [code]path[/" "code]. The modified node's children continue to animate." msgstr "" "如果[code]enable[/code]是[code]true[/code],ID为[code]id[/code]的OneShot节点" "会关闭修改[code]path[/code]处属性的轨道。被修改的节点的子节点继续进行动画。" #: doc/classes/AnimationTreePlayer.xml msgid "Starts a OneShot node given its name." msgstr "启动指定名称的OneShot节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Stops the OneShot node with name [code]id[/code]." msgstr "停止名称为[code]id[/code]的OneShot节点。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Manually recalculates the cache of track information generated from " "animation nodes. Needed when external sources modify the animation nodes' " "state." msgstr "" "手动重新计算由动画节点生成的轨道信息缓存。当外部资源修改动画节点的状态时需要" "用到。" #: doc/classes/AnimationTreePlayer.xml msgid "Removes the animation node with name [code]id[/code]." msgstr "移除名称为[code]id[/code]的动画节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Resets this [AnimationTreePlayer]." msgstr "重置此 [AnimationTreePlayer]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the time scale value of the TimeScale node with name [code]id[/code]." msgstr "返回名称为[code]id[/code]的TimeScale节点的时间缩放值。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the time scale of the TimeScale node with name [code]id[/code] to " "[code]scale[/code].\n" "The TimeScale node is used to speed [Animation]s up if the scale is above 1 " "or slow them down if it is below 1.\n" "If applied after a blend or mix, affects all input animations to that blend " "or mix." msgstr "" "设置名称为[code]id[/code]的TimeScale节点的时间缩放为[code]scale[/code]。\n" "时间缩放节点用来加快[Animation]的速度,如果缩放高于1,就会减慢它们。\n" "如果在混合后应用,会影响到该混合的所有输入动画。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Sets the time seek value of the TimeSeek node with name [code]id[/code] to " "[code]seconds[/code].\n" "This functions as a seek in the [Animation] or the blend or mix of " "[Animation]s input in it." msgstr "" "设置名称为[code]id[/code]的TimeSeek节点的时间查寻值为[code]seconds[/code]。\n" "这在[Animation]或输入的[Animation]的混合中起到查寻的作用。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Deletes the input at [code]input_idx[/code] for the transition node with " "name [code]id[/code]." msgstr "删除名称为[code]id[/code]的过渡节点的[code]input_idx[/code]的输入。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the index of the currently evaluated input for the transition node " "with name [code]id[/code]." msgstr "返回名称为[code]id[/code]的过渡节点的当前评估输入的索引。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the number of inputs for the transition node with name [code]id[/" "code]. You can add inputs by right-clicking on the transition node." msgstr "" "返回名称为[code]id[/code]的过渡节点的输入数。你可以通过右键点击过渡节点来增加" "输入。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns the cross fade time for the transition node with name [code]id[/" "code]." msgstr "返回名称为[code]id[/code]的过渡节点的交叉淡化时间。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Returns [code]true[/code] if the input at [code]input_idx[/code] on the " "transition node with name [code]id[/code] is set to automatically advance to " "the next input upon completion." msgstr "" "如果过渡节点上名称为[code]id[/code]的[code]input_idx[/code]的输入被设置为在完" "成后自动前进到下一个输入,则返回 [code]true[/code]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "The transition node with name [code]id[/code] sets its current input at " "[code]input_idx[/code]." msgstr "" "名称为 [code]id[/code] 的过渡节点将其当前输入设置为 [code]input_idx[/code]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "The transition node with name [code]id[/code] advances to its next input " "automatically when the input at [code]input_idx[/code] completes." msgstr "" "当[code]input_idx[/code]处的输入完成后,名称为[code]id[/code]的过渡节点自动进" "行到下一个输入。" #: doc/classes/AnimationTreePlayer.xml msgid "" "Resizes the number of inputs available for the transition node with name " "[code]id[/code]." msgstr "调整名称为[code]id[/code]的过渡节点的可用输入数。" #: doc/classes/AnimationTreePlayer.xml msgid "" "The transition node with name [code]id[/code] sets its cross fade time to " "[code]time_sec[/code]." msgstr "" "名称为[code]id[/code]的过渡节点将其交叉淡化时间设置为[code]time_sec[/code]。" #: doc/classes/AnimationTreePlayer.xml msgid "" "If [code]true[/code], the [AnimationTreePlayer] is able to play animations." msgstr "如果[code]true[/code],[AnimationTreePlayer]就能够播放动画。" #: doc/classes/AnimationTreePlayer.xml msgid "" "The node from which to relatively access other nodes.\n" "It accesses the bones, so it should point to the same node the " "[AnimationPlayer] would point its Root Node at." msgstr "" "相对访问其他节点的节点。\n" "它访问骨骼,应该指向[AnimationPlayer]将指向其根节点的同一个节点。" #: doc/classes/AnimationTreePlayer.xml msgid "" "The path to the [AnimationPlayer] from which this [AnimationTreePlayer] " "binds animations to animation nodes.\n" "Once set, [Animation] nodes can be added to the [AnimationTreePlayer]." msgstr "" "通过 [AnimationPlayer] 的路径,此 [AnimationTreePlayer] 将动画绑定到动画节" "点。\n" "设置后,[Animation]节点可以添加到[AnimationPlayer]。" #: doc/classes/AnimationTreePlayer.xml msgid "The thread in which to update animations." msgstr "更新动画的线程。" #: doc/classes/AnimationTreePlayer.xml msgid "Output node." msgstr "输出节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Animation node." msgstr "Animation节点。" #: doc/classes/AnimationTreePlayer.xml msgid "OneShot node." msgstr "OneShot节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Mix node." msgstr "Mix 节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Blend2 node." msgstr "Blend2节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Blend3 node." msgstr "Blend3节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Blend4 node." msgstr "Blend4节点。" #: doc/classes/AnimationTreePlayer.xml msgid "TimeScale node." msgstr "TimeScale节点。" #: doc/classes/AnimationTreePlayer.xml msgid "TimeSeek node." msgstr "TimeSeek节点。" #: doc/classes/AnimationTreePlayer.xml msgid "Transition node." msgstr "Transition节点。" #: doc/classes/Area.xml msgid "3D area for detection and physics and audio influence." msgstr "用于检测和物理及音频影响的3D区域。" #: doc/classes/Area.xml msgid "" "3D area that detects [CollisionObject] nodes overlapping, entering, or " "exiting. Can also alter or override local physics parameters (gravity, " "damping) and route audio to custom audio buses." msgstr "" "检测[CollisionObject]节点重叠、进入或退出的3D区域。还可以改变或覆盖局部物理参" "数(重力、阻尼),并将音频路由到自定义音频总线。" #: doc/classes/Area.xml doc/classes/QuadMesh.xml doc/classes/Viewport.xml #: doc/classes/ViewportTexture.xml msgid "GUI in 3D Demo" msgstr "3D GUI 演示" #: doc/classes/Area.xml msgid "" "Returns a list of intersecting [Area]s. The overlapping area's [member " "CollisionObject.collision_layer] must be part of this area's [member " "CollisionObject.collision_mask] in order to be detected.\n" "For performance reasons (collisions are all processed at the same time) this " "list is modified once during the physics step, not immediately after objects " "are moved. Consider using signals instead." msgstr "" "返回相交的[Area]的列表。重叠区域的[member CollisionObject.collision_layer]必" "须是这个区域[member CollisionObject.collision_mask]的一部分,这样才能被检测" "到。\n" "出于性能的考虑,因碰撞都是同时处理的,这个列表在物理步骤中只修改一次,而不是" "在物体被移动后立即修改。考虑使用信号来代替。" #: doc/classes/Area.xml msgid "" "Returns a list of intersecting [PhysicsBody]s. The overlapping body's " "[member CollisionObject.collision_layer] must be part of this area's [member " "CollisionObject.collision_mask] in order to be detected.\n" "For performance reasons (collisions are all processed at the same time) this " "list is modified once during the physics step, not immediately after objects " "are moved. Consider using signals instead." msgstr "" "返回相交的[PhysicsBody]的列表。重叠物体的[member CollisionObject." "collision_layer]必须是这个区域[member CollisionObject.collision_mask]的一部" "分,这样才能被检测到。\n" "出于性能的考虑,因碰撞都是同时处理的,这个列表在物理步骤中只修改一次,而不是" "在物体被移动后立即修改。考虑使用信号来代替。" #: doc/classes/Area.xml msgid "" "If [code]true[/code], the given area overlaps the Area.\n" "[b]Note:[/b] The result of this test is not immediate after moving objects. " "For performance, list of overlaps is updated once per frame and before the " "physics step. Consider using signals instead." msgstr "" "如果 [code]true[/code],则给定区域与该区域重叠.\n" "[b]注意:[/b]在移动物体后,这个测试的结果不是即时的。为了性能,重叠列表在每一" "帧和物理步骤之前更新一次。可以考虑用信号代替。" #: doc/classes/Area.xml msgid "" "If [code]true[/code], the given physics body overlaps the Area.\n" "[b]Note:[/b] The result of this test is not immediate after moving objects. " "For performance, list of overlaps is updated once per frame and before the " "physics step. Consider using signals instead.\n" "The [code]body[/code] argument can either be a [PhysicsBody] or a [GridMap] " "instance (while GridMaps are not physics body themselves, they register " "their tiles with collision shapes as a virtual physics body)." msgstr "" "如果为 [code]true[/code],则给定的物理体与该区域重叠.\n" "[b]注意:[/b]在移动物体后,这个测试的结果不是即时的。为了提高性能,重叠列表在" "每一帧和物理步骤之前更新一次。可以考虑使用信号来代替。\n" "[code]body[/code]参数可以是一个[PhysicsBody]或一个[GridMap]实例(虽然GridMaps" "本身不是物理体,但它们用碰撞形状注册它们的瓦片(tiles)作为一个虚拟物理体)。" #: doc/classes/Area.xml msgid "" "The rate at which objects stop spinning in this area. Represents the angular " "velocity lost per second.\n" "See [member ProjectSettings.physics/3d/default_angular_damp] for more " "details about damping." msgstr "" "物体在此区域停止旋转的速度。代表每秒损失的角速度.\n" "关于阻尼的更多细节,见[member ProjectSettings.physics/3d/" "default_angular_damp]。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "The name of the area's audio bus." msgstr "该区域音频总线的名称。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "If [code]true[/code], the area's audio bus overrides the default audio bus." msgstr "为 [code]true[/code] 时该区域的音频总线将覆盖默认的音频总线。" #: doc/classes/Area.xml msgid "" "The area's gravity intensity (in meters per second squared). This value " "multiplies the gravity vector. This is useful to alter the force of gravity " "without altering its direction." msgstr "" "该区域内的重力强度(单位:m/s^2)。这个值是重力向量的倍数。这个量在改变引力大" "小而不改变其方向很有用。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "The falloff factor for point gravity. The greater the value, the faster " "gravity decreases with distance." msgstr "点重力的衰减系数。该值越大,重力值随距离下降的速度就越快。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "If [code]true[/code], gravity is calculated from a point (set via [member " "gravity_vec]). See also [member space_override]." msgstr "" "如果 [code]true[/code],则从一个点计算重力(通过 [member gravity_vec] 设" "置)。参阅 [member space_override]。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "The area's gravity vector (not normalized). If gravity is a point (see " "[member gravity_point]), this will be the point of attraction." msgstr "" "区域的未归一化的重力向量。如果重力作用在一个点上,则它将是引力点。请参阅 " "[member gravity_point]。" #: doc/classes/Area.xml msgid "" "The rate at which objects stop moving in this area. Represents the linear " "velocity lost per second.\n" "See [member ProjectSettings.physics/3d/default_linear_damp] for more details " "about damping." msgstr "" "物体在此区域减速的速率。代表每秒损失的线速度。\n" "关于阻尼的更多细节,见[member ProjectSettings.physics/3d/" "default_linear_damp]。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "If [code]true[/code], other monitoring areas can detect this area." msgstr "为 [code]true[/code] 时其他监测区域可以检测到这个区域。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "If [code]true[/code], the area detects bodies or areas entering and exiting " "it." msgstr "为 [code]true[/code] 时该区域能够检测到进入和退出该区域的实体或区域。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "The area's priority. Higher priority areas are processed first." msgstr "该区域的优先级。将优先处理优先级较高的区域。" #: doc/classes/Area.xml msgid "" "The degree to which this area applies reverb to its associated audio. Ranges " "from [code]0[/code] to [code]1[/code] with [code]0.1[/code] precision." msgstr "" "该区域对其相关音频应用混响的程度。范围从 [code]0[/code] 到 [code]1[/code],精" "度为 [code]0.1[/code]。" #: doc/classes/Area.xml msgid "If [code]true[/code], the area applies reverb to its associated audio." msgstr "为 [code]true[/code] 时该区域会将混响应用于其相关音频。" #: doc/classes/Area.xml msgid "The reverb bus name to use for this area's associated audio." msgstr "该区域的相关音频要使用的混响总线名称。" #: doc/classes/Area.xml msgid "" "The degree to which this area's reverb is a uniform effect. Ranges from " "[code]0[/code] to [code]1[/code] with [code]0.1[/code] precision." msgstr "" "该区域的混响效果均匀的程度。范围从 [code]0[/code] 到 [code]1[/code],精度为 " "[code]0.1[/code]。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "Override mode for gravity and damping calculations within this area. See " "[enum SpaceOverride] for possible values." msgstr "该区域内重力和阻尼计算的覆盖模式。可能的值见[enum SpaceOverride]。" #: doc/classes/Area.xml msgid "" "Emitted when another Area enters this Area. Requires [member monitoring] to " "be set to [code]true[/code].\n" "[code]area[/code] the other Area." msgstr "" "当另一个 Area 进入这个 Area 时触发。需要将监控 [member monitoring] 设置为 " "[code]true[/code]。\n" "[code]area[/code] 参数是另外一个 Area。" #: doc/classes/Area.xml msgid "" "Emitted when another Area exits this Area. Requires [member monitoring] to " "be set to [code]true[/code].\n" "[code]area[/code] the other Area." msgstr "" "当另一个区域退出这个区域时发出的。要求监控[member monitoring]被设置为 " "[code]true[/code]。\n" "[code]area[/code]参数是另外一个Area。" #: doc/classes/Area.xml msgid "" "Emitted when one of another Area's [Shape]s enters one of this Area's " "[Shape]s. Requires [member monitoring] to be set to [code]true[/code].\n" "[code]area_rid[/code] the [RID] of the other Area's [CollisionObject] used " "by the [PhysicsServer].\n" "[code]area[/code] the other Area.\n" "[code]area_shape_index[/code] the index of the [Shape] of the other Area " "used by the [PhysicsServer]. Get the [CollisionShape] node with [code]area." "shape_owner_get_owner(area_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape] of this Area used by " "the [PhysicsServer]. Get the [CollisionShape] node with [code]self." "shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当另一个区域的一个[Shape]进入这个区域的一个[Shape]时发出的。要求[member " "monitoring] 被设置为 [code]true[/code]。\n" "[code]area_rid[/code] [PhysicsServer]使用的其他区域的[CollisionObject]的" "[RID]。\n" "[code]area[/code] 其他区域。\n" "[code]area_shape_index[/code] [PhysicsServer]使用的其他区域的[Shape]的索引。" "用[code]area.shape_owner_get_owner(area_shape_index)[/code]获得" "[CollisionShape]节点。\n" "[code]local_shape_index[/code]是[PhysicsServer]使用的该区域的[Shape]的索引。" "用[code]self.shape_owner_get_owner(local_shape_index)[/code]获得" "[CollisionShape]节点。" #: doc/classes/Area.xml msgid "" "Emitted when a [PhysicsBody] or [GridMap] enters this Area. Requires [member " "monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the " "[MeshLibrary] has Collision [Shape]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody] or [GridMap]." msgstr "" "当[PhysicsBody]或[GridMap]进入这个区域时发出的。需要将监控[member monitoring]" "设置为 [code]true[/code]。如果[MeshLibrary]有碰撞形状[Shape],就会检测到" "[GridMap]。\n" "[code]body[/code], 如果它存在于场景树中, 是另一个[PhysicsBody]或[GridMap]节点" "[Node]。" #: doc/classes/Area.xml msgid "" "Emitted when a [PhysicsBody] or [GridMap] exits this Area. Requires [member " "monitoring] to be set to [code]true[/code]. [GridMap]s are detected if the " "[MeshLibrary] has Collision [Shape]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody] or [GridMap]." msgstr "" "当[PhysicsBody]或[GridMap]离开这个Area时发出的。需要将监控[member monitoring]" "设置为 [code]true[/code]。如果[MeshLibrary]有碰撞形状[Shape],就会检测到" "[GridMap]。\n" "[code]body[/code], 如果它存在于场景树中, 是其他[PhysicsBody]或[GridMap]的" "[Node]。" #: doc/classes/Area.xml msgid "" "Emitted when one of a [PhysicsBody] or [GridMap]'s [Shape]s enters one of " "this Area's [Shape]s. Requires [member monitoring] to be set to [code]true[/" "code]. [GridMap]s are detected if the [MeshLibrary] has Collision [Shape]s.\n" "[code]body_rid[/code] the [RID] of the [PhysicsBody] or [MeshLibrary]'s " "[CollisionObject] used by the [PhysicsServer].\n" "[code]body[/code] the [Node], if it exists in the tree, of the [PhysicsBody] " "or [GridMap].\n" "[code]body_shape_index[/code] the index of the [Shape] of the [PhysicsBody] " "or [GridMap] used by the [PhysicsServer]. Get the [CollisionShape] node with " "[code]body.shape_owner_get_owner(body_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape] of this Area used by " "the [PhysicsServer]. Get the [CollisionShape] node with [code]self." "shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当[PhysicsBody]或[GridMap]的一个[Shape]进入这个区域的一个[Shape]时触发。需要" "将[member monitoring]设置为 [code]true[/code]。如果[MeshLibrary]有碰撞" "[Shape],就会检测到[GridMap]。\n" "[code]body_rid[/code] [PhysicsServer]使用的[PhysicsBody]或[MeshLibrary]的" "[CollisionObject]的[RID]。\n" "[code]body[/code] [PhysicsBody]或[GridMap]的[Node],如果它存在于树中的话。\n" "[code]body_shape_index[/code] [PhysicsServer]使用的[PhysicsBody]或[GridMap]的" "[Shape]的索引。用[code]body.shape_owner_get_owner(body_shape_index)[/code]获" "取[CollisionShape]节点。\n" "[code]local_shape_index[/code]这个区域的[Shape]的索引,由[PhysicsServer]使" "用。用[code]self.shape_owner_get_owner(local_shape_index)[/code]获得" "[CollisionShape]节点。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "This area does not affect gravity/damping." msgstr "这个区域不影响重力/阻尼。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "This area adds its gravity/damping values to whatever has been calculated so " "far (in [member priority] order)." msgstr "" "该区域将其重力/阻尼值加到迄今为止计算出的任何值上(按 [member priority] 排" "序)。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "This area adds its gravity/damping values to whatever has been calculated so " "far (in [member priority] order), ignoring any lower priority areas." msgstr "" "该区域将其重力/阻尼值添加到到目前为止已计算的任何内容(按 [member priority] " "顺序),而忽略任何较低优先级的区域。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "This area replaces any gravity/damping, even the defaults, ignoring any " "lower priority areas." msgstr "该区域将替换所有重力/阻尼,甚至是默认值,而忽略任何较低优先级的区域。" #: doc/classes/Area.xml doc/classes/Area2D.xml msgid "" "This area replaces any gravity/damping calculated so far (in [member " "priority] order), but keeps calculating the rest of the areas." msgstr "" "这个区域取代了到目前为止计算出的任何重力/阻尼(按 [member priority] 顺序)," "但继续计算其余的区域。" #: doc/classes/Area2D.xml msgid "2D area for detection and physics and audio influence." msgstr "用于检测、物理和音频影响的 2D 区域。" #: doc/classes/Area2D.xml msgid "" "2D area that detects [CollisionObject2D] nodes overlapping, entering, or " "exiting. Can also alter or override local physics parameters (gravity, " "damping) and route audio to a custom audio bus." msgstr "" "检测[CollisionObject2D]节点重叠、进入或退出的2D区域。还可以改变或覆盖局部物理" "参数(重力、阻尼),并将音频路由到一个自定义的音频总线。" #: doc/classes/Area2D.xml msgid "Using Area2D" msgstr "使用 Area2D" #: doc/classes/Area2D.xml doc/classes/CollisionShape2D.xml #: doc/classes/RectangleShape2D.xml msgid "2D Pong Demo" msgstr "2D Pong 演示" #: doc/classes/Area2D.xml doc/classes/Camera2D.xml #: doc/classes/KinematicBody2D.xml doc/classes/TileMap.xml #: doc/classes/TileSet.xml msgid "2D Platformer Demo" msgstr "2D 平台跳跃演示" #: doc/classes/Area2D.xml msgid "" "Returns a list of intersecting [Area2D]s. The overlapping area's [member " "CollisionObject2D.collision_layer] must be part of this area's [member " "CollisionObject2D.collision_mask] in order to be detected.\n" "For performance reasons (collisions are all processed at the same time) this " "list is modified once during the physics step, not immediately after objects " "are moved. Consider using signals instead." msgstr "" "返回相交的 [Area2D] 的列表。重叠区域的 [member CollisionObject2D." "collision_layer] 必须是这个区域 [member CollisionObject2D.collision_mask] 的" "一部分,这样才能被检测到。\n" "出于性能的考虑(所有碰撞都是一起处理的),这个列表会在物理步骤中进行一次修" "改,而不是在物体被移动后立即修改。请考虑使用信号来代替。" #: doc/classes/Area2D.xml msgid "" "Returns a list of intersecting [PhysicsBody2D]s. The overlapping body's " "[member CollisionObject2D.collision_layer] must be part of this area's " "[member CollisionObject2D.collision_mask] in order to be detected.\n" "For performance reasons (collisions are all processed at the same time) this " "list is modified once during the physics step, not immediately after objects " "are moved. Consider using signals instead." msgstr "" "返回相交的 [PhysicsBody2D] 的列表。重叠物体的 [member CollisionObject2D." "collision_layer] 必须是这个区域 [member CollisionObject2D.collision_mask] 的" "一部分,这样才能被检测到。\n" "出于性能的考虑(所有碰撞都是一起处理的),这个列表会在物理步骤中进行一次修" "改,而不是在物体被移动后立即修改。请考虑使用信号来代替。" #: doc/classes/Area2D.xml msgid "" "If [code]true[/code], the given area overlaps the Area2D.\n" "[b]Note:[/b] The result of this test is not immediate after moving objects. " "For performance, the list of overlaps is updated once per frame and before " "the physics step. Consider using signals instead." msgstr "" "如果 [code]true[/code],则给定区域与该区域重叠。\n" "[b]注意:[/b]在移动物体后,这个测试的结果不是即时的。为了性能,重叠列表在每一" "帧和物理步骤之前更新一次。可以考虑用信号代替。" #: doc/classes/Area2D.xml msgid "" "If [code]true[/code], the given physics body overlaps the Area2D.\n" "[b]Note:[/b] The result of this test is not immediate after moving objects. " "For performance, list of overlaps is updated once per frame and before the " "physics step. Consider using signals instead.\n" "The [code]body[/code] argument can either be a [PhysicsBody2D] or a " "[TileMap] instance (while TileMaps are not physics bodies themselves, they " "register their tiles with collision shapes as a virtual physics body)." msgstr "" "如果[code]true[/code],给定的物理体就与Area2D发生重叠。\n" "[b]注意:[/b]在移动物体后,这个测试的结果不是即时的。为了性能,重叠列表在每一" "帧和物理步骤之前更新一次。可以考虑使用信号来代替。\n" "[code]body[/code]参数可以是一个[PhysicsBody2D]或一个[TileMap]实例(虽然" "TileMaps本身不是物理体,但它们用碰撞形状注册它们的瓦片作为一个虚拟物理体)。" #: doc/classes/Area2D.xml msgid "" "The rate at which objects stop spinning in this area. Represents the angular " "velocity lost per second.\n" "See [member ProjectSettings.physics/2d/default_angular_damp] for more " "details about damping." msgstr "" "物体在此区域停止旋转的速度。代表每秒损失的角速度。\n" "关于阻尼的更多细节见 [member ProjectSettings.physics/2d/" "default_angular_damp]。" #: doc/classes/Area2D.xml msgid "" "The area's gravity intensity (in pixels per second squared). This value " "multiplies the gravity vector. This is useful to alter the force of gravity " "without altering its direction." msgstr "" "该区域的重力强度(以像素/秒的平方为单位)。这个值是重力向量的倍数。这对改变引" "力大小而不改变其方向很有用。" #: doc/classes/Area2D.xml msgid "" "The rate at which objects stop moving in this area. Represents the linear " "velocity lost per second.\n" "See [member ProjectSettings.physics/2d/default_linear_damp] for more details " "about damping." msgstr "" "物体在此区域停止运动的速度。代表每秒损失的线速度。\n" "关于阻尼的更多细节见 [member ProjectSettings.physics/2d/" "default_linear_damp]。" #: doc/classes/Area2D.xml msgid "" "Emitted when another Area2D enters this Area2D. Requires [member monitoring] " "to be set to [code]true[/code].\n" "[code]area[/code] the other Area2D." msgstr "" "当另一个Area2D进入这个Area2D时发出的。需要将监控[member monitoring]设置为 " "[code]true[/code]。\n" "[code]area[/code]参数是其他Area2D。" #: doc/classes/Area2D.xml msgid "" "Emitted when another Area2D exits this Area2D. Requires [member monitoring] " "to be set to [code]true[/code].\n" "[code]area[/code] the other Area2D." msgstr "" "当另一个Area2D离开这个Area2D时发出的。要求监控[member monitoring]被设置为 " "[code]true[/code]。\n" "[code]area[/code]参数是其他Area2D。" #: doc/classes/Area2D.xml msgid "" "Emitted when one of another Area2D's [Shape2D]s enters one of this Area2D's " "[Shape2D]s. Requires [member monitoring] to be set to [code]true[/code].\n" "[code]area_rid[/code] the [RID] of the other Area2D's [CollisionObject2D] " "used by the [Physics2DServer].\n" "[code]area[/code] the other Area2D.\n" "[code]area_shape_index[/code] the index of the [Shape2D] of the other Area2D " "used by the [Physics2DServer]. Get the [CollisionShape2D] node with " "[code]area.shape_owner_get_owner(area_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape2D] of this Area2D " "used by the [Physics2DServer]. Get the [CollisionShape2D] node with " "[code]self.shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当另一个Area2D的[Shape2D]进入此Area2D的[Shape2D]时触发。需要将 [member " "monitoring] 设置为 [code]true[/code]。\n" "[code]area_rid[/code] 由[Physics2DServer]使用的其他Area2D的" "[CollisionObject2D]的[RID]。\n" "[code]area[/code] 其他Area2D。\n" "[code]area_shape_index[/code][Physics2DServer]使用的其他Area2D的[Shape2D]的索" "引。用[code]area.shape_owner_get_owner(area_shape_index)[/code]获得" "[CollisionShape2D]节点。\n" "[code]local_shape_index[/code]此Area2D的[Shape2D]的索引,由[Physics2DServer]" "使用。用[code]self.shape_owner_get_owner(local_shape_index)[/code]获取" "[CollisionShape2D]节点。" #: doc/classes/Area2D.xml msgid "" "Emitted when one of another Area2D's [Shape2D]s exits one of this Area2D's " "[Shape2D]s. Requires [member monitoring] to be set to [code]true[/code].\n" "[code]area_rid[/code] the [RID] of the other Area2D's [CollisionObject2D] " "used by the [Physics2DServer].\n" "[code]area[/code] the other Area2D.\n" "[code]area_shape_index[/code] the index of the [Shape2D] of the other Area2D " "used by the [Physics2DServer]. Get the [CollisionShape2D] node with " "[code]area.shape_owner_get_owner(area_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape2D] of this Area2D " "used by the [Physics2DServer]. Get the [CollisionShape2D] node with " "[code]self.shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当另一个Area2D的[Shape2D]退出这个Area2D的[Shape2D]之一时触发。要求[member " "monitoring] 被设置为 [code]true[/code]。\n" "[code]area_rid[/code] 由[Physics2DServer]使用的其他Area2D的" "[CollisionObject2D]的[RID]。\n" "[code]area[/code] 其他Area2D。\n" "[code]area_shape_index[/code][Physics2DServer]使用的其他Area2D的[Shape2D]的索" "引。用[code]area.shape_owner_get_owner(area_shape_index)[/code]获取" "[CollisionShape2D]节点。\n" "[code]local_shape_index[/code]这个Area2D的[Shape2D]的索引,由" "[Physics2DServer]使用。用[code]self.shape_owner_get_owner(local_shape_index)" "[/code]获得[CollisionShape2D]节点。" #: doc/classes/Area2D.xml msgid "" "Emitted when a [PhysicsBody2D] or [TileMap] enters this Area2D. Requires " "[member monitoring] to be set to [code]true[/code]. [TileMap]s are detected " "if the [TileSet] has Collision [Shape2D]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody2D] or [TileMap]." msgstr "" "当一个[PhysicsBody2D]或[TileMap]进入这个Area2D时发出的。需要将监控[member " "monitoring]设置为 [code]true[/code]。如果[TileSet]有碰撞形状[Shape2D],则检测" "到[TileMap]。\n" "[code]body[/code]参数是其他[PhysicsBody2D]或[TileMap]的[Node],如果它存在于树" "中。" #: doc/classes/Area2D.xml msgid "" "Emitted when a [PhysicsBody2D] or [TileMap] exits this Area2D. Requires " "[member monitoring] to be set to [code]true[/code]. [TileMap]s are detected " "if the [TileSet] has Collision [Shape2D]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody2D] or [TileMap]." msgstr "" "当 [PhysicsBody2D] 或 [TileMap] 离开此 Area2D 时发出。需要将监控[member " "monitoring]设置为 [code]true[/code]。如果 [TileSet] 具有碰撞形状 [Shape2D]," "则会检测到 [TileMap]。\n" "[code]body[/code] 参数是其他 [PhysicsBody2D] 或 [TileMap] 的 [Node],如果它存" "在于树中。" #: doc/classes/Area2D.xml msgid "" "Emitted when one of a [PhysicsBody2D] or [TileMap]'s [Shape2D]s enters one " "of this Area2D's [Shape2D]s. Requires [member monitoring] to be set to " "[code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision " "[Shape2D]s.\n" "[code]body_rid[/code] the [RID] of the [PhysicsBody2D] or [TileSet]'s " "[CollisionObject2D] used by the [Physics2DServer].\n" "[code]body[/code] the [Node], if it exists in the tree, of the " "[PhysicsBody2D] or [TileMap].\n" "[code]body_shape_index[/code] the index of the [Shape2D] of the " "[PhysicsBody2D] or [TileMap] used by the [Physics2DServer]. Get the " "[CollisionShape2D] node with [code]body." "shape_owner_get_owner(body_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape2D] of this Area2D " "used by the [Physics2DServer]. Get the [CollisionShape2D] node with " "[code]self.shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当[PhysicsBody2D]或[TileMap]的[Shape2D]之一进入此Area2D的[Shape2D]之一时触" "发。需要将[member monitoring]设置为 [code]true[/code]。如果[TileSet]有" "Collision[Shape2D],就会检测到[TileMap]。\n" "[code]body_rid[/code] [Physics2DServer]使用的[PhysicsBody2D]或[TileSet]的" "[CollisionObject2D]的[RID]。\n" "[code]body[/code] [PhysicsBody2D]或[TileMap]的[Node],如果它在树上存在的" "话。\n" "[code]body_shape_index[/code] [Physics2DServer]使用的[PhysicsBody2D]或" "[TileMap]的[Shape2D]的索引。用[code]body." "shape_owner_get_owner(body_shape_index)[/code]获得[CollisionShape2D]节点。\n" "[code]local_shape_index[/code]此Area2D的[Shape2D]的索引,由[Physics2DServer]" "使用。用[code]self.shape_owner_get_owner(local_shape_index)[/code]获得" "[CollisionShape2D]节点。" #: doc/classes/Area2D.xml msgid "" "Emitted when one of a [PhysicsBody2D] or [TileMap]'s [Shape2D]s exits one of " "this Area2D's [Shape2D]s. Requires [member monitoring] to be set to " "[code]true[/code]. [TileMap]s are detected if the [TileSet] has Collision " "[Shape2D]s.\n" "[code]body_rid[/code] the [RID] of the [PhysicsBody2D] or [TileSet]'s " "[CollisionObject2D] used by the [Physics2DServer].\n" "[code]body[/code] the [Node], if it exists in the tree, of the " "[PhysicsBody2D] or [TileMap].\n" "[code]body_shape_index[/code] the index of the [Shape2D] of the " "[PhysicsBody2D] or [TileMap] used by the [Physics2DServer]. Get the " "[CollisionShape2D] node with [code]body." "shape_owner_get_owner(body_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape2D] of this Area2D " "used by the [Physics2DServer]. Get the [CollisionShape2D] node with " "[code]self.shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当[PhysicsBody2D]或[TileMap]的一个[Shape2D]退出这个Area2D的一个[Shape2D]时发" "出的。需要将[member monitoring]设置为 [code]true[/code]。如果[TileSet]有碰撞" "[Shape2D],就会检测到[TileMap]。\n" "[code]body_rid[/code] 是[Physics2DServer]使用的[PhysicsBody2D]或[TileSet]的" "[CollisionObject2D]的[RID]。\n" "[code]body[/code] [PhysicsBody2D]或[TileMap]的[Node],如果它在树上存在的" "话。\n" "[code]body_shape_index[/code] [Physics2DServer]使用的[PhysicsBody2D]或" "[TileMap]的[Shape2D]的索引。用[code]body." "shape_owner_get_owner(body_shape_index)[/code]获取[CollisionShape2D]节点。\n" "[code]local_shape_index[/code]此Area2D的[Shape2D]的索引,由[Physics2DServer]" "使用。用[code]self.shape_owner_get_owner(local_shape_index)[/code]获取" "[CollisionShape2D]节点。" #: doc/classes/Array.xml msgid "A generic array datatype." msgstr "通用数组数据类型。" #: doc/classes/Array.xml msgid "" "A generic array that can contain several elements of any type, accessible by " "a numerical index starting at 0. Negative indices can be used to count from " "the back, like in Python (-1 is the last element, -2 is the second to last, " "etc.).\n" "[b]Example:[/b]\n" "[codeblock]\n" "var array = [\"One\", 2, 3, \"Four\"]\n" "print(array[0]) # One.\n" "print(array[2]) # 3.\n" "print(array[-1]) # Four.\n" "array[2] = \"Three\"\n" "print(array[-2]) # Three.\n" "[/codeblock]\n" "Arrays can be concatenated using the [code]+[/code] operator:\n" "[codeblock]\n" "var array1 = [\"One\", 2]\n" "var array2 = [3, \"Four\"]\n" "print(array1 + array2) # [\"One\", 2, 3, \"Four\"]\n" "[/codeblock]\n" "[b]Note:[/b] Concatenating with the [code]+=[/code] operator will create a " "new array, which has a cost. If you want to append another array to an " "existing array, [method append_array] is more efficient.\n" "[b]Note:[/b] Arrays are always passed by reference. To get a copy of an " "array that can be modified independently of the original array, use [method " "duplicate].\n" "[b]Note:[/b] When declaring an array with [code]const[/code], the array " "itself can still be mutated by defining the values at individual indices or " "pushing/removing elements. Using [code]const[/code] will only prevent " "assigning the constant with another value after it was initialized." msgstr "" "通用数组,可以包含多个任何类型的元素,可以通过从 0 开始的数字索引进行访问。负" "数索引可以用来从后面数起,就像在 Python 中一样(-1 是最后一个元素、-2 是倒数" "第二,以此类推)。\n" "[b]Example:[/b]\n" "[codeblock]\n" "var array = [\"One\", 2, 3, \"Four\"]\n" "print(array[0]) # One。\n" "print(array[2]) # 3。\n" "print(array[-1]) # Four。\n" "array[2] = \"Three\"\n" "print(array[-2]) # Three。\n" "[/codeblock]\n" "数组可以使用 [code]+[/code] 操作符进行连接。\n" "[codeblock]\n" "var array1 = [\"One\", 2]\n" "var array2 = [3, \"4\"]\n" "print(array1 + array2) # [\"One\", 2, 3, \"Four\"]\n" "[/codeblock]\n" "[b]注意:[/b]用 [code]+=[/code] 操作符串联将创建一个新的数组,这是有代价的。" "如果你想把另一个数组追加到现有的数组中,[method append_array] 会更有效。\n" "[b]注意:[/b]数组总是通过引用来传递。要获得一个可以独立于原始数组而被修改的数" "组的副本,请使用 [method duplicate]。\n" "[b]注意:[/b]当用 [code]const[/code] 声明数组时,数组本身仍然可以通过定义各个" "索引上的值或追加/移除元素而被修改。使用 [code]const[/code] 只能防止常量在初始" "化后被赋值为另一个值。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolColorArray]." msgstr "从 [PoolColorArray] 构建一个数组。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolVector3Array]." msgstr "从 [PoolVector3Array] 构建一个数组。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolVector2Array]." msgstr "从 [PoolVector2Array] 构造一个数组。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolStringArray]." msgstr "从 [PoolStringArray] 构建一个数组。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolRealArray]." msgstr "从 [PoolRealArray] 构造一个数组。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolIntArray]." msgstr "从 [PoolIntArray] 构建一个数组。" #: doc/classes/Array.xml msgid "Constructs an array from a [PoolByteArray]." msgstr "从 [PoolByteArray] 构建一个数组。" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "" "Appends an element at the end of the array (alias of [method push_back])." msgstr "向数组末尾追加一个元素([method push_back] 的别名)。" #: doc/classes/Array.xml msgid "" "Appends another array at the end of this array.\n" "[codeblock]\n" "var array1 = [1, 2, 3]\n" "var array2 = [4, 5, 6]\n" "array1.append_array(array2)\n" "print(array1) # Prints [1, 2, 3, 4, 5, 6].\n" "[/codeblock]" msgstr "" "在此数组的末尾追加另一个数组。\n" "[codeblock]\n" "var array1 = [1, 2, 3]\n" "var array2 = [4, 5, 6]\n" "array1.append_array(array2)\n" "print(array1) # 打印 [1, 2, 3, 4, 5, 6].\n" "[/codeblock]" #: doc/classes/Array.xml msgid "" "Returns the last element of the array. Prints an error and returns " "[code]null[/code] if the array is empty.\n" "[b]Note:[/b] Calling this function is not the same as writing [code]array[-1]" "[/code]. If the array is empty, accessing by index will pause project " "execution when running from the editor." msgstr "" "返回数组的最后一个元素。如果数组为空,则打印一个错误并返回 [code]null[/" "code]。\n" "[b]注意:[/b]调用这个函数与写入 [code]array[-1][/code] 不一样,如果数组是空" "的,当从编辑器运行时,按索引访问将暂停项目的执行。" #: doc/classes/Array.xml msgid "" "Finds the index of an existing value (or the insertion index that maintains " "sorting order, if the value is not yet present in the array) using binary " "search. Optionally, a [code]before[/code] specifier can be passed. If " "[code]false[/code], the returned index comes after all existing entries of " "the value in the array.\n" "[b]Note:[/b] Calling [method bsearch] on an unsorted array results in " "unexpected behavior." msgstr "" "使用二分法查找已有值的索引(该值不存在时,为现有顺序下的插入索引)。" "[code]before[/code] 参数是可选的,为 [code]false[/code] 时返回的索引位于数组" "中所有同值元素之后。\n" "[b]注意:[/b]在未排序的数组上调用 [method bsearch] 会产生预料之外的行为。" #: doc/classes/Array.xml msgid "" "Finds the index of an existing value (or the insertion index that maintains " "sorting order, if the value is not yet present in the array) using binary " "search and a custom comparison method declared in the [code]obj[/code]. " "Optionally, a [code]before[/code] specifier can be passed. If [code]false[/" "code], the returned index comes after all existing entries of the value in " "the array. The custom method receives two arguments (an element from the " "array and the value searched for) and must return [code]true[/code] if the " "first argument is less than the second, and return [code]false[/code] " "otherwise.\n" "[codeblock]\n" "func cardinal_to_algebraic(a):\n" " match a:\n" " \"one\":\n" " return 1\n" " \"two\":\n" " return 2\n" " \"three\":\n" " return 3\n" " \"four\":\n" " return 4\n" " _:\n" " return 0\n" "\n" "func compare(a, b):\n" " return cardinal_to_algebraic(a) < cardinal_to_algebraic(b)\n" "\n" "func _ready():\n" " var a = [\"one\", \"two\", \"three\", \"four\"]\n" " # `compare` is defined in this object, so we use `self` as the `obj` " "parameter.\n" " print(a.bsearch_custom(\"three\", self, \"compare\", true)) # Expected " "value is 2.\n" "[/codeblock]\n" "[b]Note:[/b] Calling [method bsearch_custom] on an unsorted array results in " "unexpected behavior." msgstr "" "使用二分法查找以及在[code]obj[/code]中声明的自定义比较方法,已有值的索引(该" "值不存在时,为现有顺序下的插入索引)。[code]before[/code] 参数是可选的,为 " "[code]false[/code] 时返回的索引位于数组中所有同值元素之后。自定义方法接收两个" "参数(数组中的值和要搜索的值),如果第一个参数小于第二个参数,必须返回 " "[code]true[/code],否则返回 [code]false[/code]。\n" "[codeblock]\n" "func cardinal_to_algebraic(a):\n" " match a:\n" " \"one\":\n" " return 1\n" " \"two\":\n" " return 2\n" " \"three\":\n" " return 3\n" " \"four\":\n" " return 4\n" " _:\n" " return 0\n" "\n" "func compare(a, b):\n" " return cardinal_to_algebraic(a) < cardinal_to_algebraic(b)\n" "\n" "func _ready():\n" " var a = [\"one\", \"two\", \"three\", \"four\"]\n" " # `compare`是在这个对象中定义的,所以我们用`self`作为`obj`参数。\n" " print(a.bsearch_custom(\"three\", self, \"compare\", true)) # 预期的值是 " "2。\n" "[/codeblock]\n" "[b]注意:[/b]在未排序的数组上调用 [method bsearch_custom] 会导致预料之外的行" "为。" #: doc/classes/Array.xml msgid "" "Clears the array. This is equivalent to using [method resize] with a size of " "[code]0[/code]." msgstr "清空数组。与调用 [method resize] 时指定大小为 [code]0[/code] 等价。" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "Returns the number of times an element is in the array." msgstr "返回元素在数组中出现的次数。" #: doc/classes/Array.xml msgid "" "Returns a copy of the array.\n" "If [code]deep[/code] is [code]true[/code], a deep copy is performed: all " "nested arrays and dictionaries are duplicated and will not be shared with " "the original array. If [code]false[/code], a shallow copy is made and " "references to the original nested arrays and dictionaries are kept, so that " "modifying a sub-array or dictionary in the copy will also impact those " "referenced in the source array." msgstr "" "返回该数组的副本。\n" "[code]deep[/code] 为 [code]true[/code] 时会执行深拷贝:复制所有嵌套数组和字" "典,不与原数组共享。为 [code]false[/code] 时为浅拷贝,会维持对原有嵌套数组和" "字典的引用,所以修改副本中的子数组或者字典也会影响原数组所引用的内容。" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "Returns [code]true[/code] if the array is empty." msgstr "该数组为空时,返回 [code]true[/code]。" #: doc/classes/Array.xml msgid "" "Removes the first occurrence of a value from the array. If the value does " "not exist in the array, nothing happens. To remove an element by index, use " "[method remove] instead.\n" "[b]Note:[/b] This method acts in-place and doesn't return a value.\n" "[b]Note:[/b] On large arrays, this method will be slower if the removed " "element is close to the beginning of the array (index 0). This is because " "all elements placed after the removed element have to be reindexed." msgstr "" "从数组中删除第一次出现的某个值。如果不存在该值,则什么都不会发生。要按索引删" "除元素,请改用 [method remove]。\n" "[b]注意:[/b]这个方法是就地操作的,不返回值。\n" "[b]注意:[/b]在大型数组上,如果移除的元素靠近数组的开头(索引 0),则此方法会" "较慢。这是因为所有放置在删除元素之后的元素都必须重新索引。" #: doc/classes/Array.xml msgid "" "Assigns the given value to all elements in the array. This can typically be " "used together with [method resize] to create an array with a given size and " "initialized elements:\n" "[codeblock]\n" "var array = []\n" "array.resize(10)\n" "array.fill(0) # Initialize the 10 elements to 0.\n" "[/codeblock]" msgstr "" "将该数组中的所有元素都设置为给定的值。通常与 [method resize] 一起使用,用于创" "建给定大小数组并对其元素进行初始化:\n" "[codeblock]\n" "var array = []\n" "array.resize(10)\n" "array.fill(0) # 将 10 个元素都初始化为 0。\n" "[/codeblock]" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "" "Searches the array for a value and returns its index or [code]-1[/code] if " "not found. Optionally, the initial search index can be passed. Returns " "[code]-1[/code] if [code]from[/code] is out of bounds." msgstr "" "在数组中查找指定的值,返回对应的索引,未找到时返回 [code]-1[/code]。还可以传" "入搜索起始位置的索引。如果 [code]from[/code] 在有效范围以外则返回 [code]-1[/" "code]。" #: doc/classes/Array.xml msgid "" "Searches the array in reverse order for a value and returns its index or " "[code]-1[/code] if not found." msgstr "" "在数组中逆序查找指定的值,返回对应的索引,未找到时返回 [code]-1[/code]。" #: doc/classes/Array.xml msgid "" "Returns the first element of the array. Prints an error and returns " "[code]null[/code] if the array is empty.\n" "[b]Note:[/b] Calling this function is not the same as writing [code]array[0]" "[/code]. If the array is empty, accessing by index will pause project " "execution when running from the editor." msgstr "" "返回数组的第一个元素。如果数组为空,则打印错误并返回 [code]null[/code]。\n" "[b]注意:[/b]调用这个函数和写 [code]array[0][/code] 是不一样的,如果数组为" "空,从编辑器运行时按索引访问将暂停项目执行。" #: doc/classes/Array.xml msgid "" "Returns [code]true[/code] if the array contains the given value.\n" "[codeblock]\n" "[\"inside\", 7].has(\"inside\") # True\n" "[\"inside\", 7].has(\"outside\") # False\n" "[\"inside\", 7].has(7) # True\n" "[\"inside\", 7].has(\"7\") # False\n" "[/codeblock]\n" "[b]Note:[/b] This is equivalent to using the [code]in[/code] operator as " "follows:\n" "[codeblock]\n" "# Will evaluate to `true`.\n" "if 2 in [2, 4, 6, 8]:\n" " pass\n" "[/codeblock]" msgstr "" "如果数组包含指定值时,返回 [code]true[/code]。\n" "[codeblock]\n" "[\"inside\", 7].has(\"inside\") # True\n" "[\"inside\", 7].has(\"outside\") # False\n" "[\"inside\", 7].has(7) # True\n" "[\"inside\", 7].has(\"7\") # False\n" "[/codeblock]\n" "[b]注意:[/b]这等同于使用 [code]in[/code] 操作符,如下所示。\n" "[codeblock]\n" "# 将评估为 `true`。\n" "if 2 in [2, 4, 6, 8]:\n" " pass\n" "[/codeblock]" #: doc/classes/Array.xml msgid "" "Returns a hashed 32-bit integer value representing the array and its " "contents.\n" "[b]Note:[/b] [Array]s with equal content will always produce identical hash " "values. However, the reverse is not true. Returning identical hash values " "does [i]not[/i] imply the arrays are equal, because different arrays can " "have identical hash values due to hash collisions." msgstr "" "返回代表该数组及其内容的 32 位整数哈希值。\n" "[b]注意:[/b]内容相同的 [Array] 会得到一致的哈希值。然而,反之不然。返回一致" "的哈希值[i]并不[/i]意味着数组相等,因为不同的数组可能因为哈希碰撞而得到一致的" "哈希值。" #: doc/classes/Array.xml msgid "" "Inserts a new element at a given position in the array. The position must be " "valid, or at the end of the array ([code]pos == size()[/code]).\n" "[b]Note:[/b] This method acts in-place and doesn't return a value.\n" "[b]Note:[/b] On large arrays, this method will be slower if the inserted " "element is close to the beginning of the array (index 0). This is because " "all elements placed after the newly inserted element have to be reindexed." msgstr "" "在给定的数组位置插入一个新值。位置必须合法,或者是在数组末尾([code]pos == " "size()[/code])。\n" "[b]注意:[/b]该方法在原地执行,没有返回值。\n" "[b]注意:[/b]在较大的数组中,如果插入值的位置在数组偏前的位置,这个方法的运行" "速度会比较慢,因为在插入值后面所有的元素都要被重新索引。" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "Reverses the order of the elements in the array." msgstr "将数组中的元素逆序排列。" #: doc/classes/Array.xml msgid "" "Returns the maximum value contained in the array if all elements are of " "comparable types. If the elements can't be compared, [code]null[/code] is " "returned." msgstr "" "如果数组中的所有元素都是可比较的类型,返回其中的最大值。如果无法比较,返回 " "[code]null[/code]。" #: doc/classes/Array.xml msgid "" "Returns the minimum value contained in the array if all elements are of " "comparable types. If the elements can't be compared, [code]null[/code] is " "returned." msgstr "" "如果数组中的所有元素都是可比较的类型,返回其中的最小值。如果无法比较,返回 " "[code]null[/code]。" #: doc/classes/Array.xml msgid "" "Removes and returns the element of the array at index [code]position[/code]. " "If negative, [code]position[/code] is considered relative to the end of the " "array. Leaves the array untouched and returns [code]null[/code] if the array " "is empty or if it's accessed out of bounds. An error message is printed when " "the array is accessed out of bounds, but not when the array is empty.\n" "[b]Note:[/b] On large arrays, this method can be slower than [method " "pop_back] as it will reindex the array's elements that are located after the " "removed element. The larger the array and the lower the index of the removed " "element, the slower [method pop_at] will be." msgstr "" "移除并返回索引[code]position[/code]处的数组元素。如果是负数,[code]position[/" "code]被认为是相对于数组的末端。如果数组是空的或者被越界访问,则保留数组不动," "并返回 [code]null[/code]。当数组被越界访问时,会打印出一条错误信息,但当数组" "为空时,则不会。\n" "[b]注意:[/b]在大的数组上,这个方法可能比[method pop_back]慢,因为它将重新索" "引位于被移除元素之后的数组元素。数组越大,被移除元素的索引越低,[method " "pop_at]的速度就越慢。" #: doc/classes/Array.xml msgid "" "Removes and returns the last element of the array. Returns [code]null[/code] " "if the array is empty, without printing an error message. See also [method " "pop_front]." msgstr "" "删除并返回数组中的末尾元素。数组为空时,返回 [code]null[/code]。另请参阅 " "[method pop_front]。" #: doc/classes/Array.xml msgid "" "Removes and returns the first element of the array. Returns [code]null[/" "code] if the array is empty, without printing an error message. See also " "[method pop_back].\n" "[b]Note:[/b] On large arrays, this method is much slower than [method " "pop_back] as it will reindex all the array's elements every time it's " "called. The larger the array, the slower [method pop_front] will be." msgstr "" "移除并返回数组的第一个元素。如果数组是空的,将不会输出任何错误信息并返回 " "[code]null[/code]。另请参阅 [method pop_back]。\n" "[b]注意:[/b]当数组元素很多时,由于 [method pop_front] 每次调用时都要重新寻找" "数组所有元素的索引,所以会比 [method pop_back] 慢很多。数组越大,[method " "pop_front] 越慢。" #: doc/classes/Array.xml msgid "" "Appends an element at the end of the array. See also [method push_front]." msgstr "在数组的末端追加一个元素。另请参阅 [method push_front]。" #: doc/classes/Array.xml msgid "" "Adds an element at the beginning of the array. See also [method push_back].\n" "[b]Note:[/b] On large arrays, this method is much slower than [method " "push_back] as it will reindex all the array's elements every time it's " "called. The larger the array, the slower [method push_front] will be." msgstr "" "在数组的开头添加一个元素。另请参阅 [method push_back]。\n" "[b]注意:[/b]在大数组中,这个方法比 [method push_back] 慢得多,因为每次调用它" "都会重新索引所有数组的元素。数组越大,[method push_front] 的速度就越慢。" #: doc/classes/Array.xml msgid "" "Removes an element from the array by index. If the index does not exist in " "the array, nothing happens. To remove an element by searching for its value, " "use [method erase] instead.\n" "[b]Note:[/b] This method acts in-place and doesn't return a value.\n" "[b]Note:[/b] On large arrays, this method will be slower if the removed " "element is close to the beginning of the array (index 0). This is because " "all elements placed after the removed element have to be reindexed." msgstr "" "按索引从数组中移除一个元素。如果索引在数组中不存在,则什么也不会发生。要通过" "搜索一个元素的值来移除它,请使用 [method erase] 来代替。\n" "[b]注意:[/b]这个方法是就地操作,不返回值。\n" "[b]注意:[/b]在大数组中,如果被删除的元素靠近数组的开头(索引 0),这个方法会" "比较慢。这是因为所有放置在被移除元素之后的元素都要被重新索引。" #: doc/classes/Array.xml msgid "" "Resizes the array to contain a different number of elements. If the array " "size is smaller, elements are cleared, if bigger, new elements are " "[code]null[/code]." msgstr "" "调整数组至包含不同数量的元素。如果数组变小则清除多余元素,变大则新元素为 " "[code]null[/code]。" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "" "Searches the array in reverse order. Optionally, a start search index can be " "passed. If negative, the start index is considered relative to the end of " "the array. If the adjusted start index is out of bounds, this method " "searches from the end of the array." msgstr "" "逆序搜索数组。还可以传入搜索起始位置的索引,如果为负数,则起始位置从数组的末" "尾开始计算。如果调整后的起始索引号在有效范围之外,这个方法会从数组的末尾开始" "搜索。" #: doc/classes/Array.xml msgid "" "Shuffles the array such that the items will have a random order. This method " "uses the global random number generator common to methods such as [method " "@GDScript.randi]. Call [method @GDScript.randomize] to ensure that a new " "seed will be used each time if you want non-reproducible shuffling." msgstr "" "将数组打乱,元素随机排列。该方法使用全局随机数生成器,与 [method @GDScript." "randi] 等方法一致。如果你想每次都使用新的种子,让打乱无法重现,则可以调用 " "[method @GDScript.randomize]。" #: doc/classes/Array.xml doc/classes/PoolByteArray.xml #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "Returns the number of elements in the array." msgstr "返回数组中元素的个数。" #: doc/classes/Array.xml msgid "" "Duplicates the subset described in the function and returns it in an array, " "deeply copying the array if [code]deep[/code] is [code]true[/code]. Lower " "and upper index are inclusive, with the [code]step[/code] describing the " "change between indices while slicing." msgstr "" "复制函数中描述的子集并以数组形式返回,如果[code]deep[/code]为 [code]true[/" "code],则深度复制数组。下索引和上索引是包含的,[code]step[/code]描述了分片时" "索引之间的变化。" #: doc/classes/Array.xml msgid "" "Sorts the array.\n" "[b]Note:[/b] Strings are sorted in alphabetical order (as opposed to natural " "order). This may lead to unexpected behavior when sorting an array of " "strings ending with a sequence of numbers. Consider the following example:\n" "[codeblock]\n" "var strings = [\"string1\", \"string2\", \"string10\", \"string11\"]\n" "strings.sort()\n" "print(strings) # Prints [string1, string10, string11, string2]\n" "[/codeblock]" msgstr "" "对数组进行排序。\n" "[b]注意:[/b]字符串按字母顺序排序(与自然顺序相反)。当对一个以数字序列结尾的" "字符串数组进行排序时,这可能会导致意外的行为。请看下面的例子。\n" "[codeblock]\n" "var strings = [\"string1\", \"string2\", \"string10\", \"string11\"]\n" "strings.sort()\n" "print(strings) # 输出 [string1, string10, string11, string2]\n" "[/codeblock]" #: doc/classes/Array.xml msgid "" "Sorts the array using a custom method. The arguments are an object that " "holds the method and the name of such method. The custom method receives two " "arguments (a pair of elements from the array) and must return either " "[code]true[/code] or [code]false[/code].\n" "For two elements [code]a[/code] and [code]b[/code], if the given method " "returns [code]true[/code], element [code]b[/code] will be after element " "[code]a[/code] in the array.\n" "[b]Note:[/b] You cannot randomize the return value as the heapsort algorithm " "expects a deterministic result. Doing so will result in unexpected " "behavior.\n" "[codeblock]\n" "class MyCustomSorter:\n" " static func sort_ascending(a, b):\n" " if a[0] < b[0]:\n" " return true\n" " return false\n" "\n" "var my_items = [[5, \"Potato\"], [9, \"Rice\"], [4, \"Tomato\"]]\n" "my_items.sort_custom(MyCustomSorter, \"sort_ascending\")\n" "print(my_items) # Prints [[4, Tomato], [5, Potato], [9, Rice]].\n" "[/codeblock]" msgstr "" "使用自定义的方法对数组进行排序。参数是持有该方法的对象和该方法的名称。自定义" "方法接受两个参数(数组中的一对元素),并且必须返回 [code]true[/code] 或者 " "[code]false[/code]。\n" "对于两个元素 [code]a[/code] 和 [code]b[/code],如果给定的方法返回 " "[code]true[/code],数组中的元素 [code]b[/code] 将排在元素 [code]a[/code] 之" "后。\n" "[b]注意:[/b]你不能随机化返回值,因为堆排序算法期望一个确定的结果。而这样做会" "导致意外的行为。\n" "[codeblock]\n" "class MyCustomSorter:\n" " static func sort_ascending(a, b):\n" " if a[0] < b[0]:\n" " return true\n" " return false\n" "\n" "var my_items = [[5, \"土豆\"], [9, \"大米\"], [4, \"番茄\"]]\n" "my_items.sort_custom(MyCustomSorter, \"sort_ascending\")\n" "print(my_items) # 输出 [[4, 番茄], [5, 土豆], [9, 大米]]。\n" "[/codeblock]" #: doc/classes/ArrayMesh.xml msgid "" "[Mesh] type that provides utility for constructing a surface from arrays." msgstr "[Mesh] 网格类型,提供了用于从数组构造表面的工具。" #: doc/classes/ArrayMesh.xml msgid "" "The [ArrayMesh] is used to construct a [Mesh] by specifying the attributes " "as arrays.\n" "The most basic example is the creation of a single triangle:\n" "[codeblock]\n" "var vertices = PoolVector3Array()\n" "vertices.push_back(Vector3(0, 1, 0))\n" "vertices.push_back(Vector3(1, 0, 0))\n" "vertices.push_back(Vector3(0, 0, 1))\n" "# Initialize the ArrayMesh.\n" "var arr_mesh = ArrayMesh.new()\n" "var arrays = []\n" "arrays.resize(ArrayMesh.ARRAY_MAX)\n" "arrays[ArrayMesh.ARRAY_VERTEX] = vertices\n" "# Create the Mesh.\n" "arr_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, arrays)\n" "var m = MeshInstance.new()\n" "m.mesh = arr_mesh\n" "[/codeblock]\n" "The [MeshInstance] is ready to be added to the [SceneTree] to be shown.\n" "See also [ImmediateGeometry], [MeshDataTool] and [SurfaceTool] for " "procedural geometry generation.\n" "[b]Note:[/b] Godot uses clockwise [url=https://learnopengl.com/Advanced-" "OpenGL/Face-culling]winding order[/url] for front faces of triangle " "primitive modes." msgstr "" "[ArrayMesh] 是用来构造 [Mesh] 的,其属性指定为数组。\n" "最基本的例子是创建单个三角形:\n" "[codeblock]\n" "var vertices = PoolVector3Array()\n" "vertices.push_back(Vector3(0, 1, 0))\n" "vertices.push_back(Vector3(1, 0, 0))\n" "vertices.push_back(Vector3(0, 0, 1))\n" "# 初始化 ArrayMesh。\n" "var arr_mesh = ArrayMesh.new()\n" "var arrays = []\n" "arrays.resize(ArrayMesh.ARRAY_MAX)\n" "arrays[ArrayMesh.ARRAY_VERTEX] = vertices\n" "# 创建 Mesh。\n" "arr_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, arrays)\n" "var m = MeshInstance.new()\n" "m.mesh = arr_mesh\n" "[/codeblock]\n" "这个 [MeshInstance] 已经准备就绪,以添加到要显示的 [SceneTree] 中。\n" "程序式几何体生成,请参阅 [ImmediateGeometry]、[MeshDataTool]、" "[SurfaceTool]。\n" "[b]注意:[/b]Godot 对三角形图元模式的正面使用顺时针[url=https://learnopengl-" "cn.github.io/04%20Advanced%20OpenGL/04%20Face%20culling/]环绕顺序[/url]。" #: doc/classes/ArrayMesh.xml msgid "" "Adds name for a blend shape that will be added with [method " "add_surface_from_arrays]. Must be called before surface is added." msgstr "" "为混合形状添加名称,该名称将用[method add_surface_from_arrays]添加。必须在添" "加曲面之前调用。" #: doc/classes/ArrayMesh.xml msgid "" "Creates a new surface.\n" "Surfaces are created to be rendered using a [code]primitive[/code], which " "may be any of the types defined in [enum Mesh.PrimitiveType]. (As a note, " "when using indices, it is recommended to only use points, lines, or " "triangles.) [method Mesh.get_surface_count] will become the [code]surf_idx[/" "code] for this new surface.\n" "The [code]arrays[/code] argument is an array of arrays. See [enum ArrayType] " "for the values used in this array. For example, [code]arrays[0][/code] is " "the array of vertices. That first vertex sub-array is always required; the " "others are optional. Adding an index array puts this function into \"index " "mode\" where the vertex and other arrays become the sources of data and the " "index array defines the vertex order. All sub-arrays must have the same " "length as the vertex array or be empty, except for [constant ARRAY_INDEX] if " "it is used." msgstr "" "创建一个新的面。\n" "创建面是为了使用 [code]primitive[/code] 进行渲染,可以是 [enum Mesh." "PrimitiveType] 中定义的任何类型。(注意,当使用索引时,建议只使用点、线或三角" "形)。[method Mesh.get_surface_count] 的值将成为这个新面的 " "[code]surface_idx[/code] 索引。\n" "[code]arrays[/code] 参数是数组的数组。关于这个数组中使用的值,请参阅 [enum " "ArrayType]。例如,[code]arrays[0][/code] 是顶点的数组。总是需要第一个顶点子数" "组,其他的可选。添加一个索引数组使这个函数进入“索引模式”,顶点和其他数组作为" "数据来源,索引数组定义其顶点顺序。所有的子数组必须与顶点数组具有相同的长度," "或者为空,如果使用了 [constant ARRAY_INDEX] 时除外。" #: doc/classes/ArrayMesh.xml msgid "Removes all blend shapes from this [ArrayMesh]." msgstr "删除此[ArrayMesh]的所有混合形状。" #: doc/classes/ArrayMesh.xml msgid "Removes all surfaces from this [ArrayMesh]." msgstr "删除此[ArrayMesh]的所有表面。" #: doc/classes/ArrayMesh.xml msgid "Returns the number of blend shapes that the [ArrayMesh] holds." msgstr "返回[ArrayMesh]持有的混合形状的数量。" #: doc/classes/ArrayMesh.xml msgid "Returns the name of the blend shape at this index." msgstr "返回此索引处的混合形状的名称。" #: doc/classes/ArrayMesh.xml msgid "" "Will perform a UV unwrap on the [ArrayMesh] to prepare the mesh for " "lightmapping." msgstr "将在[ArrayMesh]上执行UV展开,以准备用于光照贴图的网格。" #: doc/classes/ArrayMesh.xml msgid "Will regenerate normal maps for the [ArrayMesh]." msgstr "将为[ArrayMesh]重新生成法线图。" #: doc/classes/ArrayMesh.xml msgid "" "Returns the index of the first surface with this name held within this " "[ArrayMesh]. If none are found, -1 is returned." msgstr "" "返回此[ArrayMesh]中带有此名称的第一个曲面的索引。如果没有找到,则返回-1。" #: doc/classes/ArrayMesh.xml msgid "" "Returns the length in indices of the index array in the requested surface " "(see [method add_surface_from_arrays])." msgstr "" "返回请求的曲面的索引数组的长度,以指数为单位(请参阅 [method " "add_surface_from_arrays])。" #: doc/classes/ArrayMesh.xml msgid "" "Returns the length in vertices of the vertex array in the requested surface " "(see [method add_surface_from_arrays])." msgstr "" "返回所请求曲面中顶点数组的顶点长度(请参阅[method " "add_surface_from_arrays])。" #: doc/classes/ArrayMesh.xml msgid "" "Returns the format mask of the requested surface (see [method " "add_surface_from_arrays])." msgstr "返回所请求表面的格式掩码(请参阅[method add_surface_from_arrays])。" #: doc/classes/ArrayMesh.xml msgid "Gets the name assigned to this surface." msgstr "获取分配给此表面的名称。" #: doc/classes/ArrayMesh.xml msgid "" "Returns the primitive type of the requested surface (see [method " "add_surface_from_arrays])." msgstr "返回所请求曲面的图元类型(请参阅 [method add_surface_from_arrays])。" #: doc/classes/ArrayMesh.xml msgid "" "Removes a surface at position [code]surf_idx[/code], shifting greater " "surfaces one [code]surf_idx[/code] slot down." msgstr "" "移除位置[code]surf_idx[/code]的一个面,将较大的面向下移动一个[code]surf_idx[/" "code]槽。" #: doc/classes/ArrayMesh.xml msgid "Sets a name for a given surface." msgstr "设置给定曲面的名称。" #: doc/classes/ArrayMesh.xml msgid "" "Updates a specified region of mesh arrays on the GPU.\n" "[b]Warning:[/b] Only use if you know what you are doing. You can easily " "cause crashes by calling this function with improper arguments." msgstr "" "更新 GPU 上的网格数组的指定区域。\n" "[b]警告:[/b]仅在知道您在做什么时使用。通过用不恰当的参数调用此功能,您可以轻" "松地导致崩溃。" #: doc/classes/ArrayMesh.xml msgid "Sets the blend shape mode to one of [enum Mesh.BlendShapeMode]." msgstr "将混合形状模式设置为 [enum Mesh.BlendShapeMode] 之一。" #: doc/classes/ArrayMesh.xml doc/classes/PrimitiveMesh.xml msgid "" "Overrides the [AABB] with one defined by user for use with frustum culling. " "Especially useful to avoid unexpected culling when using a shader to offset " "vertices." msgstr "" "用用户定义的用于使用视锥剔除的一种替代[AABB]。在使用着色器偏移顶点时,避免非" "预期的剔除特别有用。" #: doc/classes/ArrayMesh.xml msgid "Value used internally when no indices are present." msgstr "没有索引时,内部所使用的值。" #: doc/classes/ArrayMesh.xml msgid "Amount of weights/bone indices per vertex (always 4)." msgstr "每个顶点的权重/骨指数量(始终为 4)。" #: doc/classes/ArrayMesh.xml msgid "[PoolVector3Array], [PoolVector2Array], or [Array] of vertex positions." msgstr "[PoolVector3Array], [PoolVector2Array], 或[Array]的顶点位置。" #: doc/classes/ArrayMesh.xml msgid "[PoolVector3Array] of vertex normals." msgstr "[PoolVector3Array] 顶点法线。" #: doc/classes/ArrayMesh.xml msgid "" "[PoolRealArray] of vertex tangents. Each element in groups of 4 floats, " "first 3 floats determine the tangent, and the last the binormal direction as " "-1 or 1." msgstr "" "顶点切线的[PoolRealArray]。每个元素以4个浮点数为一组,前3个浮点数决定切线,最" "后一个是-1或1的双法线方向。" #: doc/classes/ArrayMesh.xml msgid "[PoolColorArray] of vertex colors." msgstr "[PoolColorArray] 顶点颜色。" #: doc/classes/ArrayMesh.xml msgid "[PoolVector2Array] for UV coordinates." msgstr "[PoolVector2Array] 用于UV坐标。" #: doc/classes/ArrayMesh.xml msgid "[PoolVector2Array] for second UV coordinates." msgstr "[PoolVector2Array]用于第二UV坐标。" #: doc/classes/ArrayMesh.xml msgid "" "[PoolRealArray] or [PoolIntArray] of bone indices. Each element in groups of " "4 floats." msgstr "[PoolRealArray]或[PoolIntArray]的骨骼索引。每个元素以4个浮点数为一组。" #: doc/classes/ArrayMesh.xml msgid "[PoolRealArray] of bone weights. Each element in groups of 4 floats." msgstr "骨骼权重的[PoolRealArray]。每个元素以4个浮点数为一组。" #: doc/classes/ArrayMesh.xml msgid "" "[PoolIntArray] of integers used as indices referencing vertices, colors, " "normals, tangents, and textures. All of those arrays must have the same " "number of elements as the vertex array. No index can be beyond the vertex " "array size. When this index array is present, it puts the function into " "\"index mode,\" where the index selects the *i*'th vertex, normal, tangent, " "color, UV, etc. This means if you want to have different normals or colors " "along an edge, you have to duplicate the vertices.\n" "For triangles, the index array is interpreted as triples, referring to the " "vertices of each triangle. For lines, the index array is in pairs indicating " "the start and end of each line." msgstr "" "[PoolIntArray] 整数数组,用作引用顶点、颜色、法线、切线和纹理的索引。所有这些" "数组必须具有与顶点数组相同的元素数量。任何索引都不能超过顶点数组的大小。当这" "个索引数组出现时,它使函数进入“索引模式”,索引选择第 *i* 个顶点、法线、切线、" "颜色、UV 等。这意味着如果你想沿着一条边有不同的法线或颜色,需拷贝顶点。\n" "对于三角形,索引数组被解释为三元组,指的是每个三角形的顶点。对于线,索引数组" "是成对的,表示每条线的起点和终点。" #: doc/classes/ArrayMesh.xml doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Represents the size of the [enum ArrayType] enum." msgstr "表示[enum ArrayType]枚举的大小。" #: doc/classes/ArrayMesh.xml msgid "Array format will include vertices (mandatory)." msgstr "数组格式将包括顶点(必填)。" #: doc/classes/ArrayMesh.xml msgid "Array format will include normals." msgstr "数组格式将包括法线。" #: doc/classes/ArrayMesh.xml msgid "Array format will include tangents." msgstr "数组格式将包括切线。" #: doc/classes/ArrayMesh.xml msgid "Array format will include a color array." msgstr "数组格式将包括一个颜色数组。" #: doc/classes/ArrayMesh.xml msgid "Array format will include UVs." msgstr "数组格式将包括UV。" #: doc/classes/ArrayMesh.xml msgid "Array format will include another set of UVs." msgstr "数组格式将包括另一组 UV。" #: doc/classes/ArrayMesh.xml msgid "Array format will include bone indices." msgstr "数组格式将包括骨骼索引。" #: doc/classes/ArrayMesh.xml msgid "Array format will include bone weights." msgstr "数组格式将包括骨骼权重。" #: doc/classes/ArrayMesh.xml msgid "Index array will be used." msgstr "将使用索引数组。" #: doc/classes/ARVRAnchor.xml msgid "An anchor point in AR space." msgstr "AR空间中的锚点。" #: doc/classes/ARVRAnchor.xml msgid "" "The [ARVRAnchor] point is a spatial node that maps a real world location " "identified by the AR platform to a position within the game world. For " "example, as long as plane detection in ARKit is on, ARKit will identify and " "update the position of planes (tables, floors, etc) and create anchors for " "them.\n" "This node is mapped to one of the anchors through its unique ID. When you " "receive a signal that a new anchor is available, you should add this node to " "your scene for that anchor. You can predefine nodes and set the ID; the " "nodes will simply remain on 0,0,0 until a plane is recognized.\n" "Keep in mind that, as long as plane detection is enabled, the size, placing " "and orientation of an anchor will be updated as the detection logic learns " "more about the real world out there especially if only part of the surface " "is in view." msgstr "" "[ARVRAnchor]点是空间节点,它将AR平台识别的现实世界的位置映射到游戏世界中相应" "位置。例如,只要ARKit中的平面检测开启,ARKit就会识别并更新平面(桌子、地板" "等)的位置,并为其创建锚点。\n" "此节点通过其特有ID映射到其中一个锚点。当你收到一个新锚点可用的信号时,在你的" "场景中,应该为该锚点添加这个节点。你可以预先定义节点并设置ID;节点将简单地保" "持在0,0,0,直到一个平面被识别。\n" "请记住,只要启用了平面检测,锚的大小、位置和方向就会随着检测逻辑对外面真实世" "界的信息而更新,特别是在只有部分表面在视野中的情况下。" #: doc/classes/ARVRAnchor.xml msgid "Returns the name given to this anchor." msgstr "返回赋予此锚点的名称。" #: doc/classes/ARVRAnchor.xml msgid "" "Returns [code]true[/code] if the anchor is being tracked and [code]false[/" "code] if no anchor with this ID is currently known." msgstr "" "如果正在跟踪锚点,则返回 [code]true[/code];如果当前没有已知具有此 ID 的锚" "点,则返回 [code]false[/code]。" #: doc/classes/ARVRAnchor.xml msgid "" "If provided by the [ARVRInterface], this returns a mesh object for the " "anchor. For an anchor, this can be a shape related to the object being " "tracked or it can be a mesh that provides topology related to the anchor and " "can be used to create shadows/reflections on surfaces or for generating " "collision shapes." msgstr "" "如果由 [ARVRInterface] 提供,这将返回一个锚的网格对象。对于一个锚,这可以是一" "个与被追踪物体相关的形状,也可以是一个提供与锚相关的拓扑的网格,可以用于在表" "面上创建阴影/反射,或者用于生成碰撞形状。" #: doc/classes/ARVRAnchor.xml msgid "" "Returns a plane aligned with our anchor; handy for intersection testing." msgstr "返回一个与我们的锚点对齐的平面;方便进行交集测试。" #: doc/classes/ARVRAnchor.xml msgid "" "Returns the estimated size of the plane that was detected. Say when the " "anchor relates to a table in the real world, this is the estimated size of " "the surface of that table." msgstr "" "返回检测到的平面的估计尺寸。比如当锚点与现实世界中的一张桌子有关时,这就是该" "桌子表面的估计尺寸。" #: doc/classes/ARVRAnchor.xml msgid "" "The anchor's ID. You can set this before the anchor itself exists. The first " "anchor gets an ID of [code]1[/code], the second an ID of [code]2[/code], " "etc. When anchors get removed, the engine can then assign the corresponding " "ID to new anchors. The most common situation where anchors \"disappear\" is " "when the AR server identifies that two anchors represent different parts of " "the same plane and merges them." msgstr "" "锚点的 ID。你可以在锚点本身存在之前设置它。第一个锚点的 ID 是 [code]1[/" "code],第二个锚点的 ID 是 [code]2[/code],以此类推。当锚点被移除时,引擎就可" "以将相应的 ID 分配给新的锚点。锚点“消失”的最常见情况是,AR 服务器识别出两个锚" "点代表同一平面的不同部分,并将它们合并。" #: doc/classes/ARVRAnchor.xml msgid "" "Emitted when the mesh associated with the anchor changes or when one becomes " "available. This is especially important for topology that is constantly " "being [code]mesh_updated[/code]." msgstr "" "当与锚点相关的网格发生变化或有可用的网格时触发。这对于不断" "[code]Mesh_updated[/code]更新的拓扑结构尤为重要。" #: doc/classes/ARVRCamera.xml msgid "" "A camera node with a few overrules for AR/VR applied, such as location " "tracking." msgstr "应用了一些 AR/VR 规则的相机节点,例如位置跟踪。" #: doc/classes/ARVRCamera.xml msgid "" "This is a helper spatial node for our camera; note that, if stereoscopic " "rendering is applicable (VR-HMD), most of the camera properties are ignored, " "as the HMD information overrides them. The only properties that can be " "trusted are the near and far planes.\n" "The position and orientation of this node is automatically updated by the " "ARVR Server to represent the location of the HMD if such tracking is " "available and can thus be used by game logic. Note that, in contrast to the " "ARVR Controller, the render thread has access to the most up-to-date " "tracking data of the HMD and the location of the ARVRCamera can lag a few " "milliseconds behind what is used for rendering as a result." msgstr "" "这是用于我们相机辅助的空间节点;请注意,如果适用立体渲染(VR-HMD),大多数相" "机属性将被忽略,因为 HMD 信息会覆盖它们。唯一可以信任的属性是近平面和远平" "面。\n" "该节点的位置和方向由 ARVR 服务自动更新,以反映 HMD 的位置(如果这类跟踪可用," "并可被游戏逻辑使用)。请注意,与 ARVR 控制器相比,渲染线程可以获取 HMD 的最新" "跟踪数据,从而 ARVRCamera 的位置可能会滞后于对于渲染的位置几毫秒。" #: doc/classes/ARVRController.xml msgid "A spatial node representing a spatially-tracked controller." msgstr "表示空间跟踪控制器的空间节点。" #: doc/classes/ARVRController.xml msgid "" "This is a helper spatial node that is linked to the tracking of controllers. " "It also offers several handy passthroughs to the state of buttons and such " "on the controllers.\n" "Controllers are linked by their ID. You can create controller nodes before " "the controllers are available. If your game always uses two controllers (one " "for each hand), you can predefine the controllers with ID 1 and 2; they will " "become active as soon as the controllers are identified. If you expect " "additional controllers to be used, you should react to the signals and add " "ARVRController nodes to your scene.\n" "The position of the controller node is automatically updated by the " "[ARVRServer]. This makes this node ideal to add child nodes to visualize the " "controller." msgstr "" "这是链接到控制器跟踪的辅助空间节点。它还为控制器上的按钮等状态提供了几个便捷" "的通道。\n" "控制器通过它们的 ID 链接。你可以在控制器可用之前创建控制器节点。如果你的游戏" "总是使用两个控制器,即每只手一个,你可以预先定义 ID 为 1 和 2 的控制器;一旦" "确定了控制器,它们就会被激活。如果你希望使用额外的控制器,应该对信号加以处" "理,并将 ARVRController 节点添加到您场景中。\n" "控制器节点的位置由 [ARVRServer] 自动更新。这使得该节点非常适合添加子节点以实" "现可视化控制器。" #: doc/classes/ARVRController.xml msgid "" "If active, returns the name of the associated controller if provided by the " "AR/VR SDK used." msgstr "如果激活,如果由使用的AR/VR SDK提供,则返回相关控制器的名称。" #: doc/classes/ARVRController.xml msgid "" "Returns the hand holding this controller, if known. See [enum " "ARVRPositionalTracker.TrackerHand]." msgstr "" "返回持有此控制器的手,如果知道的话。参阅[enum ARVRPositionalTracker." "TrackerHand]。" #: doc/classes/ARVRController.xml msgid "" "Returns [code]true[/code] if the bound controller is active. ARVR systems " "attempt to track active controllers." msgstr "" "如果绑定的控制器处于活动状态,返回 [code]true[/code]。ARVR系统尝试跟踪活动的" "控制器。" #: doc/classes/ARVRController.xml msgid "" "Returns the value of the given axis for things like triggers, touchpads, " "etc. that are embedded into the controller." msgstr "为嵌入到控制器中的触发器、触摸板等返回给定轴的值。" #: doc/classes/ARVRController.xml msgid "" "Returns the ID of the joystick object bound to this. Every controller " "tracked by the [ARVRServer] that has buttons and axis will also be " "registered as a joystick within Godot. This means that all the normal " "joystick tracking and input mapping will work for buttons and axis found on " "the AR/VR controllers. This ID is purely offered as information so you can " "link up the controller with its joystick entry." msgstr "" "返回与此绑定的摇杆对象的ID。由[ARVRServer]跟踪的每个控制器,如果有按钮和轴," "也将被注册为Godot中的摇杆。这意味着所有正常的摇杆跟踪和输入映射将对AR/VR控制" "器上的按钮和轴起作用。这个ID纯粹是作为信息提供的,这样你就可以把控制器和它的" "摇杆条目关联起来。" #: doc/classes/ARVRController.xml msgid "" "If provided by the [ARVRInterface], this returns a mesh associated with the " "controller. This can be used to visualize the controller." msgstr "" "如果由 [ARVRInterface]提供,则返回与控制器相关的网格。这可用于可视化控制器。" #: doc/classes/ARVRController.xml msgid "" "Returns [code]true[/code] if the button at index [code]button[/code] is " "pressed. See [enum JoystickList], in particular the [code]JOY_VR_*[/code] " "constants." msgstr "" "如果索引 [code]button[/code] 处的按钮被按下,则返回 [code]true[/code]。请参" "阅 [enum JoystickList] 中的 [code]JOY_VR_*[/code] 常量。" #: doc/classes/ARVRController.xml msgid "" "The controller's ID.\n" "A controller ID of 0 is unbound and will always result in an inactive node. " "Controller ID 1 is reserved for the first controller that identifies itself " "as the left-hand controller and ID 2 is reserved for the first controller " "that identifies itself as the right-hand controller.\n" "For any other controller that the [ARVRServer] detects, we continue with " "controller ID 3.\n" "When a controller is turned off, its slot is freed. This ensures controllers " "will keep the same ID even when controllers with lower IDs are turned off." msgstr "" "控制器的 ID。\n" "控制器 ID 为 0 是未绑定的,并且始终会导致节点处于非活动状态。控制器 ID 1 保留" "给第一个将自己标识为左侧控制器的控制器,ID 2 保留给第一个将其标识为右侧控制器" "的控制器。\n" "对于 [ARVRServer] 检测到的任何其他控制器,继而使用控制器 ID 3。\n" "当控制器关闭时,它的插槽被释放。这可确保即使在关闭 ID 较低的控制器时,其他控" "制器也将保持相同的 ID。" #: doc/classes/ARVRController.xml msgid "" "The degree to which the controller vibrates. Ranges from [code]0.0[/code] to " "[code]1.0[/code] with precision [code].01[/code]. If changed, updates " "[member ARVRPositionalTracker.rumble] accordingly.\n" "This is a useful property to animate if you want the controller to vibrate " "for a limited duration." msgstr "" "控制器振动的程度。范围从[code]0.0[/code]到[code]1.0[/code],精度[code].01[/" "code]。如果更改,会相应地更新[member ARVRPositionalTracker.rumble]。\n" "如果你想让控制器在限定时间内振动,这是一个有用的属性,可以将其动画化。" #: doc/classes/ARVRController.xml msgid "Emitted when a button on this controller is pressed." msgstr "当该控制器上的一个按钮被按下时触发。" #: doc/classes/ARVRController.xml msgid "Emitted when a button on this controller is released." msgstr "当该控制器上的一个按钮被释放时触发。" #: doc/classes/ARVRController.xml msgid "" "Emitted when the mesh associated with the controller changes or when one " "becomes available. Generally speaking this will be a static mesh after " "becoming available." msgstr "" "当与控制器相关的Mesh发生变化或变得可用时触发。一般来说,这将是一个变得可用后" "的静态网格。" #: doc/classes/ARVRInterface.xml msgid "Base class for an AR/VR interface implementation." msgstr "AR/VR接口实现的基类。" #: doc/classes/ARVRInterface.xml msgid "" "This class needs to be implemented to make an AR or VR platform available to " "Godot and these should be implemented as C++ modules or GDNative modules " "(note that for GDNative the subclass ARVRScriptInterface should be used). " "Part of the interface is exposed to GDScript so you can detect, enable and " "configure an AR or VR platform.\n" "Interfaces should be written in such a way that simply enabling them will " "give us a working setup. You can query the available interfaces through " "[ARVRServer]." msgstr "" "需要实现这个类才能使 AR 或 VR 平台可供 Godot 使用,并且应实现为 C++ 模块或 " "GDNative 模块,注意,对于 GDNative,应使用子类 ARVRScriptInterface。部分接口" "向 GDScript 公开,因而,您可以检测、启用和配置 AR 或 VR 平台。\n" "接口应以这样的方式编写,只需启用它们就可以为我们提供工作配置。您可以通过 " "[ARVRServer] 查询可用接口。" #: doc/classes/ARVRInterface.xml msgid "" "If this is an AR interface that requires displaying a camera feed as the " "background, this method returns the feed ID in the [CameraServer] for this " "interface." msgstr "" "如果这是一个需要显示相机画面作为背景的AR界面,此方法返回该界面的" "[CameraServer]中的画面ID。" #: doc/classes/ARVRInterface.xml msgid "" "Returns a combination of [enum Capabilities] flags providing information " "about the capabilities of this interface." msgstr "返回[enum Capabilities]标签的组合,提供关于这个接口功能的信息。" #: doc/classes/ARVRInterface.xml msgid "Returns the name of this interface (OpenVR, OpenHMD, ARKit, etc)." msgstr "返回该接口的名称,如OpenVR、OpenHMD、ARKit等。" #: doc/classes/ARVRInterface.xml msgid "" "Returns the resolution at which we should render our intermediate results " "before things like lens distortion are applied by the VR platform." msgstr "返回在VR平台应用镜头失真等内容之前渲染的中间结果的分辨率。" #: doc/classes/ARVRInterface.xml msgid "" "If supported, returns the status of our tracking. This will allow you to " "provide feedback to the user whether there are issues with positional " "tracking." msgstr "" "如果支持,返回我们的跟踪状态。这将使你能够向用户反馈,是否存在位置跟踪的问" "题。" #: doc/classes/ARVRInterface.xml msgid "" "Call this to initialize this interface. The first interface that is " "initialized is identified as the primary interface and it will be used for " "rendering output.\n" "After initializing the interface you want to use you then need to enable the " "AR/VR mode of a viewport and rendering should commence.\n" "[b]Note:[/b] You must enable the AR/VR mode on the main viewport for any " "device that uses the main output of Godot, such as for mobile VR.\n" "If you do this for a platform that handles its own output (such as OpenVR) " "Godot will show just one eye without distortion on screen. Alternatively, " "you can add a separate viewport node to your scene and enable AR/VR on that " "viewport. It will be used to output to the HMD, leaving you free to do " "anything you like in the main window, such as using a separate camera as a " "spectator camera or rendering something completely different.\n" "While currently not used, you can activate additional interfaces. You may " "wish to do this if you want to track controllers from other platforms. " "However, at this point in time only one interface can render to an HMD." msgstr "" "调用这个来初始化这个接口。第一个被初始化的接口确定为主接口,用于渲染输出。\n" "在初始化了接口之后,需要启用视窗的 AR/VR 模式,将开始渲染。\n" "[b]注意:[/b]对于任何使用Godot主输出的设备,如移动VR,你必须在主视窗上启用 " "AR/VR 模式。\n" "如果你为一个处理自己输出的平台这样做(如 OpenVR),Godot 就会在屏幕上只显示一" "只眼睛而不失真。另外,你可以在场景中添加一个单独的视窗节点,在该视窗上启用 " "AR/VR。它将被用来输出到 HMD,让你在主窗口中做你喜欢的事情,比如用一个单独的相" "机作为旁观者相机,或者渲染一些完全不同的东西。\n" "虽然目前没有使用,但你可以激活其他接口。如果你想跟踪其他平台的控制器,可能希" "望这样做。然而,此时,只有一个界面可以渲染到 HMD。" #: doc/classes/ARVRInterface.xml msgid "" "Returns [code]true[/code] if the current output of this interface is in " "stereo." msgstr "如果这个接口的当前是立体声输出,返回 [code]true[/code]。" #: doc/classes/ARVRInterface.xml msgid "Turns the interface off." msgstr "关闭接口。" #: doc/classes/ARVRInterface.xml msgid "On an AR interface, [code]true[/code] if anchor detection is enabled." msgstr "在 AR 接口上,如果启用锚点检测,则为 [code]true[/code]。" #: doc/classes/ARVRInterface.xml msgid "[code]true[/code] if this interface been initialized." msgstr "[code]true[/code] 如果这个接口已经初始化。" #: doc/classes/ARVRInterface.xml msgid "[code]true[/code] if this is the primary interface." msgstr "[code]true[/code] 如果这是个主接口。" #: doc/classes/ARVRInterface.xml msgid "No ARVR capabilities." msgstr "没有ARVR功能。" #: doc/classes/ARVRInterface.xml msgid "" "This interface can work with normal rendering output (non-HMD based AR)." msgstr "此接口可以与正常的渲染输出一起工作,非基于HMD的AR。" #: doc/classes/ARVRInterface.xml msgid "This interface supports stereoscopic rendering." msgstr "该接口支持立体渲染。" #: doc/classes/ARVRInterface.xml msgid "This interface supports AR (video background and real world tracking)." msgstr "该接口支持 AR,视频背景和真实世界跟踪。" #: doc/classes/ARVRInterface.xml msgid "" "This interface outputs to an external device. If the main viewport is used, " "the on screen output is an unmodified buffer of either the left or right eye " "(stretched if the viewport size is not changed to the same aspect ratio of " "[method get_render_targetsize]). Using a separate viewport node frees up the " "main viewport for other purposes." msgstr "" "这个接口输出到一个外部设备。如果使用主视区,屏幕上的输出是一个未经修改的左眼" "或右眼的缓冲区,如果没有将视窗尺寸更改为 [method get_render_targetsize] 的相" "同长宽比,则被拉伸。使用一个单独的视窗节点可以释放出主视区,用于其他用途。" #: doc/classes/ARVRInterface.xml msgid "" "Mono output, this is mostly used internally when retrieving positioning " "information for our camera node or when stereo scopic rendering is not " "supported." msgstr "" "Mono输出,这主要是在相机节点检索定位信息时,或者在不支持立体视景渲染时,内部" "使用。" #: doc/classes/ARVRInterface.xml msgid "" "Left eye output, this is mostly used internally when rendering the image for " "the left eye and obtaining positioning and projection information." msgstr "左眼输出,这主要是在为左眼渲染图像和获得定位和投影信息时内部使用。" #: doc/classes/ARVRInterface.xml msgid "" "Right eye output, this is mostly used internally when rendering the image " "for the right eye and obtaining positioning and projection information." msgstr "右眼输出,这主要是在为右眼渲染图像和获得定位和投影信息时内部使用。" #: doc/classes/ARVRInterface.xml msgid "Tracking is behaving as expected." msgstr "追踪行为符合预期。" #: doc/classes/ARVRInterface.xml msgid "" "Tracking is hindered by excessive motion (the player is moving faster than " "tracking can keep up)." msgstr "过度运动会阻碍追踪,即玩家的移动速度超过追踪的速度。" #: doc/classes/ARVRInterface.xml msgid "" "Tracking is hindered by insufficient features, it's too dark (for camera-" "based tracking), player is blocked, etc." msgstr "跟踪受到功能不足的阻碍,太暗(对于基于相机的跟踪),玩家被阻碍等。" #: doc/classes/ARVRInterface.xml msgid "" "We don't know the status of the tracking or this interface does not provide " "feedback." msgstr "我们不知道跟踪的状态,或者这个接口未提供反馈。" #: doc/classes/ARVRInterface.xml msgid "" "Tracking is not functional (camera not plugged in or obscured, lighthouses " "turned off, etc.)." msgstr "追踪功能失效,即相机未插电或被遮挡,灯塔关闭,等等。" #: modules/gdnative/doc_classes/ARVRInterfaceGDNative.xml msgid "GDNative wrapper for an ARVR interface." msgstr "ARVR接口的GDNative包装器。" #: modules/gdnative/doc_classes/ARVRInterfaceGDNative.xml msgid "" "This is a wrapper class for GDNative implementations of the ARVR interface. " "To use a GDNative ARVR interface, simply instantiate this object and set " "your GDNative library containing the ARVR interface implementation." msgstr "" "这是 ARVR 接口的 GDNative 实现的包装类。要使用 GDNative ARVR 接口,只需实例化" "此对象并设置包含 ARVR 接口实现的 GDNative 库。" #: doc/classes/ARVROrigin.xml msgid "The origin point in AR/VR." msgstr "AR/VR的原点。" #: doc/classes/ARVROrigin.xml msgid "" "This is a special node within the AR/VR system that maps the physical " "location of the center of our tracking space to the virtual location within " "our game world.\n" "There should be only one of these nodes in your scene and you must have one. " "All the ARVRCamera, ARVRController and ARVRAnchor nodes should be direct " "children of this node for spatial tracking to work correctly.\n" "It is the position of this node that you update when your character needs to " "move through your game world while we're not moving in the real world. " "Movement in the real world is always in relation to this origin point.\n" "For example, if your character is driving a car, the ARVROrigin node should " "be a child node of this car. Or, if you're implementing a teleport system to " "move your character, you should change the position of this node." msgstr "" "这是 AR/VR 系统中的一个特殊节点,它将我们跟踪空间中心的物理位置映射到游戏世界" "中的虚拟位置。\n" "你的场景中应该有且必须有这样节点。所有 ARVRCamera、ARVRController 和 " "ARVRAnchor 节点都应该是该节点的直接子节点,以便空间跟踪正常运行。\n" "当你的角色需要在游戏世界中移动而我们不在现实世界中移动时,会更新此节点的位" "置。现实世界中的运动总是与这个原点有关。\n" "例如,如果你的角色正在驾驶汽车,则 ARVROrigin 节点应该是这辆车的子节点。或" "者,如果通过传送系统来移动角色,应该更改此节点的位置。" #: doc/classes/ARVROrigin.xml msgid "" "Allows you to adjust the scale to your game's units. Most AR/VR platforms " "assume a scale of 1 game world unit = 1 real world meter.\n" "[b]Note:[/b] This method is a passthrough to the [ARVRServer] itself." msgstr "" "允许你根据你的游戏的单位来调整比例。大多数AR/VR平台假定1个游戏世界的单位=1个" "现实世界的米的比例。\n" "[b]注意:[/b]这种方法是通过[ARVRServer]本身的。" #: doc/classes/ARVRPositionalTracker.xml msgid "A tracked object." msgstr "跟踪对象。" #: doc/classes/ARVRPositionalTracker.xml msgid "" "An instance of this object represents a device that is tracked, such as a " "controller or anchor point. HMDs aren't represented here as they are handled " "internally.\n" "As controllers are turned on and the AR/VR interface detects them, instances " "of this object are automatically added to this list of active tracking " "objects accessible through the [ARVRServer].\n" "The [ARVRController] and [ARVRAnchor] both consume objects of this type and " "should be used in your project. The positional trackers are just under-the-" "hood objects that make this all work. These are mostly exposed so that " "GDNative-based interfaces can interact with them." msgstr "" "此对象的实例表示被跟踪的设备,例如控制器或锚点。由于 HMD 是在内部处理的,因此" "不表示 HMD。\n" "当控制器打开并且 AR/VR 界面检测到它们时,此对象的实例会自动添加到可通过 " "[ARVRServer] 访问的活动的跟踪对象列表中。\n" "[ARVRController] 和 [ARVRAnchor] 都使用这种类型的对象,你应该在的项目中使用。" "位置跟踪器只是使这一切正常工作的底层对象。这些大部分都是公开的,以便基于 " "GDNative 的接口可以与它们交互。" #: doc/classes/ARVRPositionalTracker.xml msgid "" "Returns the hand holding this tracker, if known. See [enum TrackerHand] " "constants." msgstr "返回持有此追踪器的手,如果知道。参阅[enum TrackerHand]常量。" #: doc/classes/ARVRPositionalTracker.xml msgid "" "If this is a controller that is being tracked, the controller will also be " "represented by a joystick entry with this ID." msgstr "" "如果这是一个正在被追踪的控制器,该控制器将由一个具有此ID的操纵杆条目表示。" #: doc/classes/ARVRPositionalTracker.xml msgid "" "Returns the mesh related to a controller or anchor point if one is available." msgstr "如果可用,则返回与控制器或锚点相关的网格。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns the controller or anchor point's name if available." msgstr "如果可用,返回控制器或锚点的名称。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns the controller's orientation matrix." msgstr "返回控制器的方向矩阵。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns the world-space controller position." msgstr "返回世界空间控制器的位置。" #: doc/classes/ARVRPositionalTracker.xml msgid "" "Returns the internal tracker ID. This uniquely identifies the tracker per " "tracker type and matches the ID you need to specify for nodes such as the " "[ARVRController] and [ARVRAnchor] nodes." msgstr "" "返回内部跟踪器的 ID。这是对每个跟踪器类型的唯一标识,与你需要为 " "[ARVRController] 和 [ARVRAnchor] 节点指定的 ID 相匹配。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns [code]true[/code] if this device tracks orientation." msgstr "如果该设备跟踪方向,则返回 [code]true[/code]。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns [code]true[/code] if this device tracks position." msgstr "如果该设备跟踪位置,则返回 [code]true[/code]。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns the transform combining this device's orientation and position." msgstr "返回组合此设备的方向和坐标的变换。" #: doc/classes/ARVRPositionalTracker.xml msgid "Returns the tracker's type." msgstr "返回跟踪器的类型。" #: doc/classes/ARVRPositionalTracker.xml msgid "" "The degree to which the tracker rumbles. Ranges from [code]0.0[/code] to " "[code]1.0[/code] with precision [code].01[/code]." msgstr "" "追踪器噪声的程度。范围从[code]0.0[/code]到[code]1.0[/code],精度[code].01[/" "code]。" #: doc/classes/ARVRPositionalTracker.xml msgid "The hand this tracker is held in is unknown or not applicable." msgstr "这个追踪器所持的手是未知的或不适用的。" #: doc/classes/ARVRPositionalTracker.xml msgid "This tracker is the left hand controller." msgstr "此跟踪器是左手控制器。" #: doc/classes/ARVRPositionalTracker.xml msgid "This tracker is the right hand controller." msgstr "此跟踪器是右手控制器。" #: doc/classes/ARVRServer.xml msgid "Server for AR and VR features." msgstr "AR 和 VR 功能的服务。" #: doc/classes/ARVRServer.xml msgid "" "The AR/VR server is the heart of our Advanced and Virtual Reality solution " "and handles all the processing." msgstr "AR/VR 服务器是我们“高级虚拟现实”解决方案的核心,负责进行所有处理。" #: doc/classes/ARVRServer.xml msgid "Registers an [ARVRInterface] object." msgstr "注册一个 [ARVRInterface] 对象。" #: doc/classes/ARVRServer.xml msgid "" "Registers a new [ARVRPositionalTracker] that tracks a spatial location in " "real space." msgstr "注册一个新的 [ARVRPositionalTracker],跟踪现实空间中的空间位置。" #: doc/classes/ARVRServer.xml msgid "" "This is an important function to understand correctly. AR and VR platforms " "all handle positioning slightly differently.\n" "For platforms that do not offer spatial tracking, our origin point (0,0,0) " "is the location of our HMD, but you have little control over the direction " "the player is facing in the real world.\n" "For platforms that do offer spatial tracking, our origin point depends very " "much on the system. For OpenVR, our origin point is usually the center of " "the tracking space, on the ground. For other platforms, it's often the " "location of the tracking camera.\n" "This method allows you to center your tracker on the location of the HMD. It " "will take the current location of the HMD and use that to adjust all your " "tracking data; in essence, realigning the real world to your player's " "current position in the game world.\n" "For this method to produce usable results, tracking information must be " "available. This often takes a few frames after starting your game.\n" "You should call this method after a few seconds have passed. For instance, " "when the user requests a realignment of the display holding a designated " "button on a controller for a short period of time, or when implementing a " "teleport mechanism." msgstr "" "这是正确理解的重要功能。 AR 和 VR 平台处理定位的方式略有不同。\n" "对于不提供空间跟踪的平台,我们的原点 (0,0,0) 是 HMD 的位置,但您几乎无法控制" "玩家在现实世界中面对的方向。\n" "对于提供空间跟踪的平台,我们的原点在很大程度上取决于系统。对于 OpenVR,原点通" "常是地面上跟踪空间的中心。对于其他平台,它通常是跟踪相机的位置。\n" "此方法允许您将跟踪器置于 HMD 的位置。它将获取 HMD 的当前位置并使用它来调整您" "的所有跟踪数据;从本质上讲,将现实世界重新调整到玩家在游戏世界中的当前位" "置。\n" "为了使这种方法产生可用的结果,跟踪信息必须可用。这通常在开始游戏后需要几" "帧。\n" "您应该在几秒钟后调用此方法。例如,当用户请求重新调整显示时,按住控制器上的指" "定按钮一小段时间,或者当实现传送机制时。" #: doc/classes/ARVRServer.xml msgid "" "Clears our current primary interface if it is set to the provided interface." msgstr "如果设置为提供的接口,则清除我们当前的主接口。" #: doc/classes/ARVRServer.xml msgid "" "Finds an interface by its name. For instance, if your project uses " "capabilities of an AR/VR platform, you can find the interface for that " "platform by name and initialize it." msgstr "" "通过名字找到一个接口。例如,如果你的项目使用 AR/VR 平台的功能,你可以通过名称" "找到该平台的接口并初始化它。" #: doc/classes/ARVRServer.xml msgid "Returns the primary interface's transformation." msgstr "返回主界面的变换。" #: doc/classes/ARVRServer.xml msgid "" "Returns the interface registered at a given index in our list of interfaces." msgstr "返回在我们的接口列表中以指定索引注册的接口。" #: doc/classes/ARVRServer.xml msgid "" "Returns the number of interfaces currently registered with the AR/VR server. " "If your project supports multiple AR/VR platforms, you can look through the " "available interface, and either present the user with a selection or simply " "try to initialize each interface and use the first one that returns " "[code]true[/code]." msgstr "" "返回当前在AR/VR服务器上注册的接口数量。如果你的项目支持多个AR/VR平台,你可以" "查看可用的接口,并向用户展示一个选择,或者简单地尝试初始化每个接口,并使用第" "一个返回 [code]true[/code]的接口。" #: doc/classes/ARVRServer.xml msgid "" "Returns a list of available interfaces the ID and name of each interface." msgstr "返回可用接口的列表,每个接口的ID和名称。" #: doc/classes/ARVRServer.xml msgid "" "Returns the absolute timestamp (in μs) of the last [ARVRServer] commit of " "the AR/VR eyes to [VisualServer]. The value comes from an internal call to " "[method OS.get_ticks_usec]." msgstr "" "返回 AR/VR 眼睛最后一次 [ARVRServer] 提交到 [VisualServer] 的绝对时间戳(单位" "为 μs)。该值来自对 [method OS.get_ticks_usec] 的内部调用。" #: doc/classes/ARVRServer.xml msgid "" "Returns the duration (in μs) of the last frame. This is computed as the " "difference between [method get_last_commit_usec] and [method " "get_last_process_usec] when committing." msgstr "" "返回最后一帧的持续时间(单位:μs)。这被计算为提交时[method " "get_last_commit_usec]和[method get_last_process_usec]之间的差异。" #: doc/classes/ARVRServer.xml msgid "" "Returns the absolute timestamp (in μs) of the last [ARVRServer] process " "callback. The value comes from an internal call to [method OS." "get_ticks_usec]." msgstr "" "返回最后一次 [ARVRServer] 进程回调的绝对时间戳(单位为 μs)。该值来自对 " "[method OS.get_ticks_usec] 的内部调用。" #: doc/classes/ARVRServer.xml msgid "" "Returns the reference frame transform. Mostly used internally and exposed " "for GDNative build interfaces." msgstr "返回引用帧的变换。主要在内部使用,并公开在 GDNative 构建接口中。" #: doc/classes/ARVRServer.xml msgid "Returns the positional tracker at the given ID." msgstr "返回给定ID处的位置追踪器。" #: doc/classes/ARVRServer.xml msgid "Returns the number of trackers currently registered." msgstr "返回当前注册的跟踪器的数量。" #: doc/classes/ARVRServer.xml msgid "Removes this interface." msgstr "移除此接口。" #: doc/classes/ARVRServer.xml msgid "Removes this positional tracker." msgstr "移除此位置跟踪器。" #: doc/classes/ARVRServer.xml msgid "The primary [ARVRInterface] currently bound to the [ARVRServer]." msgstr "当前绑定到 [ARVRServer] 的主要 [ARVRInterface]。" #: doc/classes/ARVRServer.xml msgid "" "Allows you to adjust the scale to your game's units. Most AR/VR platforms " "assume a scale of 1 game world unit = 1 real world meter." msgstr "" "允许你根据你的游戏的单位来调整缩放。大多数AR/VR平台假定1个游戏世界单位=1个现" "实世界的米。" #: doc/classes/ARVRServer.xml msgid "Emitted when a new interface has been added." msgstr "添加新接口时触发。" #: doc/classes/ARVRServer.xml msgid "Emitted when an interface is removed." msgstr "当接口被删除时触发。" #: doc/classes/ARVRServer.xml msgid "" "Emitted when a new tracker has been added. If you don't use a fixed number " "of controllers or if you're using [ARVRAnchor]s for an AR solution, it is " "important to react to this signal to add the appropriate [ARVRController] or " "[ARVRAnchor] nodes related to this new tracker." msgstr "" "当新的追踪器被添加时触发。如果你不使用固定数量的控制器,或者你在AR解决方案中" "使用[ARVRAnchor],那么对这个信号做出反应,以添加与这个新追踪器相关的适当的" "[ARVRController]或[ARVRAnchor]节点,将会很重要。" #: doc/classes/ARVRServer.xml msgid "" "Emitted when a tracker is removed. You should remove any [ARVRController] or " "[ARVRAnchor] points if applicable. This is not mandatory, the nodes simply " "become inactive and will be made active again when a new tracker becomes " "available (i.e. a new controller is switched on that takes the place of the " "previous one)." msgstr "" "删除跟踪器时触发。如果适当,您应该删除所有 [ARVRController] 或 [ARVRAnchor] " "点。这不是强制性的,节点只是变为不活动状态,当新的跟踪器可用时将再次激活,即" "打开一个新的控制器来代替前一个控制器。" #: doc/classes/ARVRServer.xml msgid "The tracker tracks the location of a controller." msgstr "追踪器追踪控制器的位置。" #: doc/classes/ARVRServer.xml msgid "The tracker tracks the location of a base station." msgstr "追踪器追踪基站的位置。" #: doc/classes/ARVRServer.xml msgid "The tracker tracks the location and size of an AR anchor." msgstr "追踪器追踪 AR 锚的位置和大小。" #: doc/classes/ARVRServer.xml msgid "Used internally to filter trackers of any known type." msgstr "内部用于过滤任何已知类型的跟踪器。" #: doc/classes/ARVRServer.xml msgid "Used internally if we haven't set the tracker type yet." msgstr "如果我们尚未设置跟踪器类型,则在内部使用。" #: doc/classes/ARVRServer.xml msgid "Used internally to select all trackers." msgstr "在内部用于选择所有跟踪器。" #: doc/classes/ARVRServer.xml msgid "" "Fully reset the orientation of the HMD. Regardless of what direction the " "user is looking to in the real world. The user will look dead ahead in the " "virtual world." msgstr "" "完全重置HMD的方向。无论用户在现实世界中看向哪个方向。将在虚拟世界中锁定视角。" #: doc/classes/ARVRServer.xml msgid "" "Resets the orientation but keeps the tilt of the device. So if we're looking " "down, we keep looking down but heading will be reset." msgstr "" "重置方向,但保持设备的倾斜度。因此,如果我们正在往下看,会继续往下看,但方向" "会被重置。" #: doc/classes/ARVRServer.xml msgid "" "Does not reset the orientation of the HMD, only the position of the player " "gets centered." msgstr "不重置HMD的方向,只让玩家的位置居中。" #: doc/classes/AspectRatioContainer.xml msgid "Container that preserves its child controls' aspect ratio." msgstr "保留其子控件长宽比的容器。" #: doc/classes/AspectRatioContainer.xml msgid "" "Arranges child controls in a way to preserve their aspect ratio " "automatically whenever the container is resized. Solves the problem where " "the container size is dynamic and the contents' size needs to adjust " "accordingly without losing proportions." msgstr "" "以一种方式安排子控件,以便在容器调整大小时自动保留其长宽比。解决了容器大小是" "动态的,而内容的大小需要相应调整而不失去比例的问题。" #: doc/classes/AspectRatioContainer.xml doc/classes/BoxContainer.xml #: doc/classes/CenterContainer.xml doc/classes/Container.xml #: doc/classes/GridContainer.xml doc/classes/HBoxContainer.xml #: doc/classes/HSplitContainer.xml doc/classes/MarginContainer.xml #: doc/classes/PanelContainer.xml doc/classes/ScrollContainer.xml #: doc/classes/SplitContainer.xml doc/classes/TabContainer.xml #: doc/classes/VBoxContainer.xml doc/classes/VSplitContainer.xml msgid "GUI containers" msgstr "GUI 容器" #: doc/classes/AspectRatioContainer.xml msgid "Specifies the horizontal relative position of child controls." msgstr "指定子控件的水平相对位置。" #: doc/classes/AspectRatioContainer.xml msgid "Specifies the vertical relative position of child controls." msgstr "指定子控件的垂直相对位置。" #: doc/classes/AspectRatioContainer.xml msgid "" "The aspect ratio to enforce on child controls. This is the width divided by " "the height. The ratio depends on the [member stretch_mode]." msgstr "" "对子控件强制实施的长宽比。这是宽度除以高度。这个比例取决于[member " "stretch_mode]。" #: doc/classes/AspectRatioContainer.xml msgid "The stretch mode used to align child controls." msgstr "用来对齐子控件的拉伸模式。" #: doc/classes/AspectRatioContainer.xml msgid "" "The height of child controls is automatically adjusted based on the width of " "the container." msgstr "子控件的高度会根据容器的宽度自动调整。" #: doc/classes/AspectRatioContainer.xml msgid "" "The width of child controls is automatically adjusted based on the height of " "the container." msgstr "子控件的宽度会根据容器的高度自动调整。" #: doc/classes/AspectRatioContainer.xml msgid "" "The bounding rectangle of child controls is automatically adjusted to fit " "inside the container while keeping the aspect ratio." msgstr "子控件的边界矩形会自动调整以适应容器,同时保持长宽比。" #: doc/classes/AspectRatioContainer.xml msgid "" "The width and height of child controls is automatically adjusted to make " "their bounding rectangle cover the entire area of the container while " "keeping the aspect ratio.\n" "When the bounding rectangle of child controls exceed the container's size " "and [member Control.rect_clip_content] is enabled, this allows to show only " "the container's area restricted by its own bounding rectangle." msgstr "" "子控件的宽度和高度被自动调整,以使其边界矩形覆盖容器的整个区域,同时保持长宽" "比。\n" "当子控件的边界矩形超过容器的大小,并且 [member Control.rect_clip_content] 被" "启用时,这仅允许显示受其自身边界矩形限制的容器区域。" #: doc/classes/AspectRatioContainer.xml msgid "" "Aligns child controls with the beginning (left or top) of the container." msgstr "将子控件与容器的开头对齐,左侧或顶部。" #: doc/classes/AspectRatioContainer.xml msgid "Aligns child controls with the center of the container." msgstr "使子控件与容器的中心对齐。" #: doc/classes/AspectRatioContainer.xml msgid "Aligns child controls with the end (right or bottom) of the container." msgstr "将子控件与容器的末端对齐,右侧或底部。" #: doc/classes/AStar.xml msgid "" "An implementation of A* to find the shortest paths among connected points in " "space." msgstr "A* 的一种实现,用于寻找空间中连接点之间的最短路径。" #: doc/classes/AStar.xml msgid "" "A* (A star) is a computer algorithm that is widely used in pathfinding and " "graph traversal, the process of plotting short paths among vertices " "(points), passing through a given set of edges (segments). It enjoys " "widespread use due to its performance and accuracy. Godot's A* " "implementation uses points in three-dimensional space and Euclidean " "distances by default.\n" "You must add points manually with [method add_point] and create segments " "manually with [method connect_points]. Then you can test if there is a path " "between two points with the [method are_points_connected] function, get a " "path containing indices by [method get_id_path], or one containing actual " "coordinates with [method get_point_path].\n" "It is also possible to use non-Euclidean distances. To do so, create a class " "that extends [code]AStar[/code] and override methods [method _compute_cost] " "and [method _estimate_cost]. Both take two indices and return a length, as " "is shown in the following example.\n" "[codeblock]\n" "class MyAStar:\n" " extends AStar\n" "\n" " func _compute_cost(u, v):\n" " return abs(u - v)\n" "\n" " func _estimate_cost(u, v):\n" " return min(0, abs(u - v) - 1)\n" "[/codeblock]\n" "[method _estimate_cost] should return a lower bound of the distance, i.e. " "[code]_estimate_cost(u, v) <= _compute_cost(u, v)[/code]. This serves as a " "hint to the algorithm because the custom [code]_compute_cost[/code] might be " "computation-heavy. If this is not the case, make [method _estimate_cost] " "return the same value as [method _compute_cost] to provide the algorithm " "with the most accurate information.\n" "If the default [method _estimate_cost] and [method _compute_cost] methods " "are used, or if the supplied [method _estimate_cost] method returns a lower " "bound of the cost, then the paths returned by A* will be the lowest-cost " "paths. Here, the cost of a path equals the sum of the [method _compute_cost] " "results of all segments in the path multiplied by the [code]weight_scale[/" "code]s of the endpoints of the respective segments. If the default methods " "are used and the [code]weight_scale[/code]s of all points are set to " "[code]1.0[/code], then this equals the sum of Euclidean distances of all " "segments in the path." msgstr "" "A*(A 星)是一种计算机算法,广泛用于寻路和图遍历,是通过一组给定的边(线" "段),在顶点(点)之间绘制短路径的过程。A* 因其性能和准确性而被广泛使用。" "Godot 的 A* 实现默认使用三维空间中的点和欧式距离。\n" "您需要使用 [method add_point] 手动添加点,并使用 [method connect_points] 手动" "创建线段。然后,可以使用 [method are_points_connected] 函数测试两点之间是否存" "在路径,通过 [method get_id_path] 获取包含索引的路径,或使用 [method " "get_point_path] 获取包含实际坐标的路径。\n" "也可以使用非欧式距离。为此,创建一个扩展 [code]AStar[/code] 的类并重写方法 " "[method _compute_cost] 和 [method _estimate_cost]。这两个方法都接受两个索引并" "返回一个长度,如以下示例所示:\n" "[codeblock]\n" "class MyAStar:\n" " extends AStar\n" "\n" " func _compute_cost(u, v):\n" " return abs(u - v)\n" "\n" " func _estimate_cost(u, v):\n" " return min(0, abs(u - v) - 1)\n" "[/codeblock]\n" "[method _estimate_cost] 应返回距离的下限,即 [code]_estimate_cost(u, v) <= " "_compute_cost(u, v)[/code]。这可以作为算法的提示,因为自定义 " "[code]_compute_cost[/code] 可能计算量很大。如果不是这种情况,请使 [method " "_estimate_cost] 返回与 [method _compute_cost] 相同的值,以便为算法提供最准确" "的信息。\n" "如果使用默认的 [method _estimate_cost] 和 [method _compute_cost] 方法,或者如" "果提供的 [method _estimate_cost] 方法返回成本的下限,则 A* 返回的路径将是成本" "最低的路径。这里,路径的代价等于路径中所有段的[method _compute_cost]结果之和" "乘以各个段端点的[code]weight_scale[/code]权重。如果使用默认方法并且所有点的 " "[code]weight_scale[/code] 设置为 [code]1.0[/code],则这等于路径中所有段的欧式" "距离之和。" #: doc/classes/AStar.xml msgid "" "Called when computing the cost between two connected points.\n" "Note that this function is hidden in the default [code]AStar[/code] class." msgstr "" "计算两个连接点之间的成本时调用。\n" "注意这个函数隐藏在默认的 [code]AStar[/code] 类中。" #: doc/classes/AStar.xml msgid "" "Called when estimating the cost between a point and the path's ending " "point.\n" "Note that this function is hidden in the default [code]AStar[/code] class." msgstr "" "当估计一个点和路径终点之间的成本时调用。\n" "注意这个函数隐藏在默认的 [code]AStar[/code] 类中。" #: doc/classes/AStar.xml msgid "" "Adds a new point at the given position with the given identifier. The " "[code]id[/code] must be 0 or larger, and the [code]weight_scale[/code] must " "be 0.0 or greater.\n" "The [code]weight_scale[/code] is multiplied by the result of [method " "_compute_cost] when determining the overall cost of traveling across a " "segment from a neighboring point to this point. Thus, all else being equal, " "the algorithm prefers points with lower [code]weight_scale[/code]s to form a " "path.\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(1, 0, 0), 4) # Adds the point (1, 0, 0) with " "weight_scale 4 and id 1\n" "[/codeblock]\n" "If there already exists a point for the given [code]id[/code], its position " "and weight scale are updated to the given values." msgstr "" "在给定的位置添加一个新的点,并使用给定的标识符。[code]id[/code] 必须大于等于 " "0,[code]weight_scale[/code] 必须大于等于 0.0。\n" "在确定从邻点到此点的一段路程的总成本时,[code]weight_scale[/code] 要乘以 " "[method _compute_cost] 的结果。因此,在其他条件相同的情况下,算法优先选择 " "[code]weight_scale[/code] 较低的点来形成路径。\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(1, 0, 0), 4) # 添加点 (1, 0, 0)、权重缩放为 4、ID " "1\n" "[/codeblock]\n" "如果对于给定的 [code]id[/code] 已经存在一个点,它的位置和权重将被更新为给定的" "值。" #: doc/classes/AStar.xml msgid "" "Returns whether the two given points are directly connected by a segment. If " "[code]bidirectional[/code] is [code]false[/code], returns whether movement " "from [code]id[/code] to [code]to_id[/code] is possible through this segment." msgstr "" "返回两个给定点是否通过线段直接连接。如果 [code]bidirectional[/code] 为 " "[code]false[/code],则返回是否可以通过此段从 [code]id[/code] 到 [code]to_id[/" "code] 进行移动。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "Clears all the points and segments." msgstr "清除所有点和线段。" #: doc/classes/AStar.xml msgid "" "Creates a segment between the given points. If [code]bidirectional[/code] is " "[code]false[/code], only movement from [code]id[/code] to [code]to_id[/code] " "is allowed, not the reverse direction.\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(1, 1, 0))\n" "astar.add_point(2, Vector3(0, 5, 0))\n" "astar.connect_points(1, 2, false)\n" "[/codeblock]" msgstr "" "在给定点之间创建线段。如果 [code]bidirectiona[/code] 为 [code]false[/code]," "则仅允许从 [code]id[/code] 到 [code]to_id[/code] 的移动,而不允许反向移动。\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(1, 1, 0))\n" "astar.add_point(2, Vector3(0, 5, 0))\n" "astar.connect_points(1, 2, false)\n" "[/codeblock]" #: doc/classes/AStar.xml msgid "" "Deletes the segment between the given points. If [code]bidirectional[/code] " "is [code]false[/code], only movement from [code]id[/code] to [code]to_id[/" "code] is prevented, and a unidirectional segment possibly remains." msgstr "" "删除给定点之间的段。如果 [code]bidirectional[/code] 为 [code]false[/code],则" "只阻止从 [code]id[/code] 到 [code]to_id[/code] 的移动,可能会保留一个单向的线" "段。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "Returns the next available point ID with no point associated to it." msgstr "返回没有关联的下一个可用点的ID。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Returns the ID of the closest point to [code]to_position[/code], optionally " "taking disabled points into account. Returns [code]-1[/code] if there are no " "points in the points pool.\n" "[b]Note:[/b] If several points are the closest to [code]to_position[/code], " "the one with the smallest ID will be returned, ensuring a deterministic " "result." msgstr "" "返回离 [code]to_position[/code] 最近的点的 ID,可以选择将禁用的点考虑在内。如" "果点池中没有点,返回 [code]-1[/code]。\n" "[b]注意:[/b]如果几个点都是离 [code]to_position[/code] 最近的点,将返回 ID 最" "小的那个点,以保证结果的确定性。" #: doc/classes/AStar.xml msgid "" "Returns the closest position to [code]to_position[/code] that resides inside " "a segment between two connected points.\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(0, 0, 0))\n" "astar.add_point(2, Vector3(0, 5, 0))\n" "astar.connect_points(1, 2)\n" "var res = astar.get_closest_position_in_segment(Vector3(3, 3, 0)) # Returns " "(0, 3, 0)\n" "[/codeblock]\n" "The result is in the segment that goes from [code]y = 0[/code] to [code]y = " "5[/code]. It's the closest position in the segment to the given point." msgstr "" "返回位于两个连接点之间的线段中离 [code]to_position[/code] 最近的位置。\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(0, 0, 0))\n" "astar.add_point(2, Vector3(0, 5, 0))\n" "astar.connect_points(1, 2)\n" "var res = astar.get_closest_position_in_segment(Vector3(3, 3, 0)) # 返回 (0, " "3, 0)\n" "[/codeblock]\n" "结果是在从 [code]y=0[/code] 到 [code]y=5[/code] 的线段中。它是该段中离给定点" "最近的位置。" #: doc/classes/AStar.xml msgid "" "Returns an array with the IDs of the points that form the path found by " "AStar between the given points. The array is ordered from the starting point " "to the ending point of the path.\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(0, 0, 0))\n" "astar.add_point(2, Vector3(0, 1, 0), 1) # Default weight is 1\n" "astar.add_point(3, Vector3(1, 1, 0))\n" "astar.add_point(4, Vector3(2, 0, 0))\n" "\n" "astar.connect_points(1, 2, false)\n" "astar.connect_points(2, 3, false)\n" "astar.connect_points(4, 3, false)\n" "astar.connect_points(1, 4, false)\n" "\n" "var res = astar.get_id_path(1, 3) # Returns [1, 2, 3]\n" "[/codeblock]\n" "If you change the 2nd point's weight to 3, then the result will be [code][1, " "4, 3][/code] instead, because now even though the distance is longer, it's " "\"easier\" to get through point 4 than through point 2." msgstr "" "返回一个数组,该数组中包含了 AStar 在给定点之间找到的路径的点的 ID。数组从路" "径的起始点到结束点排序。\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(0, 0, 0))\n" "astar.add_point(2, Vector3(0, 1, 0), 1) # 默认权重为 1\n" "astar.add_point(3, Vector3(1, 1, 0))\n" "astar.add_point(4, Vector3(2, 0, 0))\n" "\n" "astar.connect_points(1, 2, false)\n" "astar.connect_points(2, 3, false)\n" "astar.connect_points(4, 3, false)\n" "astar.connect_points(1, 4, false)\n" "\n" "var res = astar.get_id_path(1, 3) # 返回 [1, 2, 3]\n" "[/codeblock]\n" "如果你把第 2 点的权重改为 3,那么结果就会变成 [code][1, 4, 3][/code],因为现" "在虽然距离长了,但通过第 4 点比通过第 2 点 “容易”。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Returns the capacity of the structure backing the points, useful in " "conjunction with [code]reserve_space[/code]." msgstr "返回支持点的结构的容量,与 [code]reserve_space[/code] 配合使用。" #: doc/classes/AStar.xml msgid "" "Returns an array with the IDs of the points that form the connection with " "the given point.\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(0, 0, 0))\n" "astar.add_point(2, Vector3(0, 1, 0))\n" "astar.add_point(3, Vector3(1, 1, 0))\n" "astar.add_point(4, Vector3(2, 0, 0))\n" "\n" "astar.connect_points(1, 2, true)\n" "astar.connect_points(1, 3, true)\n" "\n" "var neighbors = astar.get_point_connections(1) # Returns [2, 3]\n" "[/codeblock]" msgstr "" "返回一个数组,其中包含与给定点形成连接的点的 ID。\n" "[codeblock]\n" "var astar = AStar.new()\n" "astar.add_point(1, Vector3(0, 0, 0))\n" "astar.add_point(2, Vector3(0, 1, 0))\n" "astar.add_point(3, Vector3(1, 1, 0))\n" "astar.add_point(4, Vector3(2, 0, 0))\n" "\n" "astar.connect_points(1, 2, true)\n" "astar.connect_points(1, 3, true)\n" "\n" "var neighbors = astar.get_point_connections(1) # 返回 [2, 3]\n" "[/codeblock]" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "Returns the number of points currently in the points pool." msgstr "返回当前积分池中的积分数量。" #: doc/classes/AStar.xml msgid "" "Returns an array with the points that are in the path found by AStar between " "the given points. The array is ordered from the starting point to the ending " "point of the path.\n" "[b]Note:[/b] This method is not thread-safe. If called from a [Thread], it " "will return an empty [PoolVector3Array] and will print an error message." msgstr "" "返回一个数组,其中包含 AStar 在给定点之间找到的路径中的点。数组从路径的起点到" "终点进行排序。\n" "[b]注意:[/b]这个方法不是线程安全的。如果从 [Thread] 调用,它将返回一个空的 " "[PoolVector3Array] 并打印一条错误消息。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Returns the position of the point associated with the given [code]id[/code]." msgstr "返回与给定[code]id[/code]相关联的点的位置。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Returns the weight scale of the point associated with the given [code]id[/" "code]." msgstr "返回与给定[code]id[/code]关联的点的权重比例。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "Returns an array of all points." msgstr "返回所有点的数组。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Returns whether a point associated with the given [code]id[/code] exists." msgstr "返回与给定[code]id[/code]相关联的点是否存在。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Returns whether a point is disabled or not for pathfinding. By default, all " "points are enabled." msgstr "返回是否禁用点以进行寻路。默认情况下,所有点均处于启用状态。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Removes the point associated with the given [code]id[/code] from the points " "pool." msgstr "从积分池中删除与给定[code]id[/code]关联的积分。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Reserves space internally for [code]num_nodes[/code] points, useful if " "you're adding a known large number of points at once, for a grid for " "instance. New capacity must be greater or equals to old capacity." msgstr "" "在内部为[code]num_nodes[/code]个点保留空间,如果您一次要添加一个已知的大量点" "(例如对于一个网格),则很有用。新容量必须大于或等于旧容量。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Disables or enables the specified point for pathfinding. Useful for making a " "temporary obstacle." msgstr "禁用或启用指定点的寻路功能。用于制作临时障碍物。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Sets the [code]position[/code] for the point with the given [code]id[/code]." msgstr "为具有给定[code]id[/code]的点设置[code]position[/code]。" #: doc/classes/AStar.xml doc/classes/AStar2D.xml msgid "" "Sets the [code]weight_scale[/code] for the point with the given [code]id[/" "code]. The [code]weight_scale[/code] is multiplied by the result of [method " "_compute_cost] when determining the overall cost of traveling across a " "segment from a neighboring point to this point." msgstr "" "为给定的[code]id[/code]的点设置[code]weight_scale[/code]。在确定从邻接点到这" "个点的一段路程的总成本时,[code]weight_scale[/code]要乘以[method " "_compute_cost]的结果。" #: doc/classes/AStar2D.xml msgid "AStar class representation that uses 2D vectors as edges." msgstr "使用二维向量作为边缘的AStar类表示。" #: doc/classes/AStar2D.xml msgid "" "This is a wrapper for the [AStar] class which uses 2D vectors instead of 3D " "vectors." msgstr "这是 [AStar] 类的包装,该类使用 2D 向量而不是 3D 向量。" #: doc/classes/AStar2D.xml msgid "" "Called when computing the cost between two connected points.\n" "Note that this function is hidden in the default [code]AStar2D[/code] class." msgstr "" "计算两个连接点之间的成本时调用。\n" "注意这个函数隐藏在默认的[code]AStar2D[/code]类中。" #: doc/classes/AStar2D.xml msgid "" "Called when estimating the cost between a point and the path's ending " "point.\n" "Note that this function is hidden in the default [code]AStar2D[/code] class." msgstr "" "当估计一个点和路径终点之间的成本时调用。\n" "请注意,这个函数隐藏在默认的 [code]AStar2D[/code] 类中。" #: doc/classes/AStar2D.xml msgid "" "Adds a new point at the given position with the given identifier. The " "[code]id[/code] must be 0 or larger, and the [code]weight_scale[/code] must " "be 0.0 or greater.\n" "The [code]weight_scale[/code] is multiplied by the result of [method " "_compute_cost] when determining the overall cost of traveling across a " "segment from a neighboring point to this point. Thus, all else being equal, " "the algorithm prefers points with lower [code]weight_scale[/code]s to form a " "path.\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(1, 0), 4) # Adds the point (1, 0) with " "weight_scale 4 and id 1\n" "[/codeblock]\n" "If there already exists a point for the given [code]id[/code], its position " "and weight scale are updated to the given values." msgstr "" "在给定的位置添加一个新的点,并使用给定的标识符。[code]id[/code] 必须大于等于 " "0,[code]weight_scale[/code] 必须大于等于 0.0。\n" "在确定从相邻点到此点的一段路程的总成本时,[code]weight_scale[/code] 要乘以 " "[method _compute_cost] 的结果。因此,在其他条件相同的情况下,算法优先选择 " "[code]weight_scale[/code] 较低的点来形成路径。\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(1, 0), 4) # 添加点 (1, 0)、权重为 4、ID 为 1\n" "[/codeblock]\n" "如果已经存在一个给定 [code]id[/code] 的点,它的位置和权重将被更新为给定值。" #: doc/classes/AStar2D.xml msgid "Returns whether there is a connection/segment between the given points." msgstr "返回给定点之间是否有连接/分割。" #: doc/classes/AStar2D.xml msgid "" "Creates a segment between the given points. If [code]bidirectional[/code] is " "[code]false[/code], only movement from [code]id[/code] to [code]to_id[/code] " "is allowed, not the reverse direction.\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(1, 1))\n" "astar.add_point(2, Vector2(0, 5))\n" "astar.connect_points(1, 2, false)\n" "[/codeblock]" msgstr "" "在给定的点之间创建一个分段。如果 [code]bidirectional[/code] 为 [code]false[/" "code],则只允许从 [code]id[/code] 到 [code]to_id[/code] 之间的移动,不允许反" "方向移动。\n" "(codeblock)\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(1, 1))\n" "astar.add_point(2, Vector2(0, 5))\n" "astar.connect_points(1, 2, false)\n" "[/codeblock]" #: doc/classes/AStar2D.xml msgid "Deletes the segment between the given points." msgstr "删除给定点之间的线段。" #: doc/classes/AStar2D.xml msgid "" "Returns the closest position to [code]to_position[/code] that resides inside " "a segment between two connected points.\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(0, 0))\n" "astar.add_point(2, Vector2(0, 5))\n" "astar.connect_points(1, 2)\n" "var res = astar.get_closest_position_in_segment(Vector2(3, 3)) # Returns (0, " "3)\n" "[/codeblock]\n" "The result is in the segment that goes from [code]y = 0[/code] to [code]y = " "5[/code]. It's the closest position in the segment to the given point." msgstr "" "返回位于两个连接点之间的线段中离 [code]to_position[/code] 最近的位置。\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(0, 0))\n" "astar.add_point(2, Vector2(0, 5))\n" "astar.connect_points(1, 2)\n" "var res = astar.get_closest_position_in_segment(Vector2(3, 3))# 返回 (0, 3)\n" "[/codeblock]\n" "结果是在从 [code]y=0[/code] 到 [code]y=5[/code] 的线段中。它是该段中离给定点" "最近的位置。" #: doc/classes/AStar2D.xml msgid "" "Returns an array with the IDs of the points that form the path found by " "AStar2D between the given points. The array is ordered from the starting " "point to the ending point of the path.\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(0, 0))\n" "astar.add_point(2, Vector2(0, 1), 1) # Default weight is 1\n" "astar.add_point(3, Vector2(1, 1))\n" "astar.add_point(4, Vector2(2, 0))\n" "\n" "astar.connect_points(1, 2, false)\n" "astar.connect_points(2, 3, false)\n" "astar.connect_points(4, 3, false)\n" "astar.connect_points(1, 4, false)\n" "\n" "var res = astar.get_id_path(1, 3) # Returns [1, 2, 3]\n" "[/codeblock]\n" "If you change the 2nd point's weight to 3, then the result will be [code][1, " "4, 3][/code] instead, because now even though the distance is longer, it's " "\"easier\" to get through point 4 than through point 2." msgstr "" "返回一个数组,该数组中包含了由 AStar2D 在给定点之间找到的路径的点的 ID。数组" "从路径的起点到终点排序。\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(0, 0))\n" "astar.add_point(2, Vector2(0, 1), 1) # 默认权重为 1\n" "astar.add_point(3, Vector2(1, 1))\n" "astar.add_point(4, Vector2(2, 0))\n" "\n" "astar.connect_points(1, 2, false)\n" "astar.connect_points(2, 3, false)\n" "astar.connect_points(4, 3, false)\n" "astar.connect_points(1, 4, false)\n" "\n" "var res = astar.get_id_path(1, 3) # 返回 [1, 2, 3]\n" "[/codeblock]\n" "如果你把第 2 点的权重改为3,那么结果就会变成 [code][1, 4, 3][/code],因为现在" "虽然距离长了,但通过第 4 点比通过第 2 点“容易”。" #: doc/classes/AStar2D.xml msgid "" "Returns an array with the IDs of the points that form the connection with " "the given point.\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(0, 0))\n" "astar.add_point(2, Vector2(0, 1))\n" "astar.add_point(3, Vector2(1, 1))\n" "astar.add_point(4, Vector2(2, 0))\n" "\n" "astar.connect_points(1, 2, true)\n" "astar.connect_points(1, 3, true)\n" "\n" "var neighbors = astar.get_point_connections(1) # Returns [2, 3]\n" "[/codeblock]" msgstr "" "返回一个数组,其中包含与给定点形成连接的点的 ID。\n" "[codeblock]\n" "var astar = AStar2D.new()\n" "astar.add_point(1, Vector2(0, 0))\n" "astar.add_point(2, Vector2(0, 1))\n" "astar.add_point(3, Vector2(1, 1))\n" "astar.add_point(4, Vector2(2, 0))\n" "\n" "astar.connect_points(1, 2, true)\n" "astar.connect_points(1, 3, true)\n" "\n" "var neighbors = astar.get_point_connections(1) # 返回 [2, 3]\n" "[/codeblock]" #: doc/classes/AStar2D.xml msgid "" "Returns an array with the points that are in the path found by AStar2D " "between the given points. The array is ordered from the starting point to " "the ending point of the path.\n" "[b]Note:[/b] This method is not thread-safe. If called from a [Thread], it " "will return an empty [PoolVector2Array] and will print an error message." msgstr "" "返回一个数组,该数组包含了AStar2D在给定点之间找到的路径中的点。该数组从路径的" "起点到终点排序。\n" "[b]注意:[/b]这个方法不是线程安全的。如果从一个[Thread]线程中调用,它将返回一" "个空的[PoolVector2Array],并打印一个错误信息。" #: doc/classes/AtlasTexture.xml msgid "" "Crops out one part of a texture, such as a texture from a texture atlas." msgstr "将纹理的一部分裁剪出来,例如来自纹理图集的纹理。" #: doc/classes/AtlasTexture.xml msgid "" "[Texture] resource that crops out one part of the [member atlas] texture, " "defined by [member region]. The main use case is cropping out textures from " "a texture atlas, which is a big texture file that packs multiple smaller " "textures. Consists of a [Texture] for the [member atlas], a [member region] " "that defines the area of [member atlas] to use, and a [member margin] that " "defines the border width.\n" "[AtlasTexture] cannot be used in an [AnimatedTexture], cannot be tiled in " "nodes such as [TextureRect], and does not work properly if used inside of " "other [AtlasTexture] resources. Multiple [AtlasTexture] resources can be " "used to crop multiple textures from the atlas. Using a texture atlas helps " "to optimize video memory costs and render calls compared to using multiple " "small files.\n" "[b]Note:[/b] AtlasTextures don't support repetition. The [constant Texture." "FLAG_REPEAT] and [constant Texture.FLAG_MIRRORED_REPEAT] flags are ignored " "when using an AtlasTexture." msgstr "" "[Texture]资源,由[member region]定义,裁剪出[member atlas]纹理的一个部分。主" "要的用例是从纹理图集中裁剪出纹理,一个大的纹理文件,包含了多个较小的纹理。由 " "[member atlas]的[Texture]、定义使用 [member atlas]区域的[member region]和定义" "边界宽度的[member margin]组成。\n" "[AtlasTexture]不能在[AnimatedTexture]中使用,不能在[TextureRect]等节点中平" "铺,如果在其他[AtlasTexture]资源内部使用,将不能正常工作。多个[AtlasTexture]" "资源可以用来裁剪图集中的多个纹理。与使用多个小文件相比,使用一个纹理图集有助" "于优化视频内存消耗和渲染调用。\n" "[b]注意:[/b]AtlasTextures不支持重复。当使用AtlasTexture时,[constant " "Texture.FLAG_REPEAT]和[constant Texture.FLAG_MIRRORED_REPEAT]标志被忽略。" #: doc/classes/AtlasTexture.xml msgid "The texture that contains the atlas. Can be any [Texture] subtype." msgstr "包含图集的纹理。可以是任何 [Texture] 子类型。" #: doc/classes/AtlasTexture.xml msgid "" "If [code]true[/code], clips the area outside of the region to avoid bleeding " "of the surrounding texture pixels." msgstr "" "如果为 [code]true[/code],则该区域外的区域将被裁去,避免周围纹理像素的出血。" #: doc/classes/AtlasTexture.xml msgid "" "The margin around the region. The [Rect2]'s [member Rect2.size] parameter " "(\"w\" and \"h\" in the editor) resizes the texture so it fits within the " "margin." msgstr "" "区域周围的边距。[Rect2] 的 [member Rect2.size] 参数(编辑器中的“w”和“h”)调整" "纹理的大小,使其适合于边距。" #: doc/classes/AtlasTexture.xml msgid "The AtlasTexture's used region." msgstr "AtlasTexture 所使用的区域。" #: doc/classes/AudioBusLayout.xml msgid "Stores information about the audio buses." msgstr "存储有关音频总线的信息。" #: doc/classes/AudioBusLayout.xml msgid "" "Stores position, muting, solo, bypass, effects, effect position, volume, and " "the connections between buses. See [AudioServer] for usage." msgstr "" "存储位置、静音、独奏、旁通、效果、效果位置、音量以及总线之间的连接。使用方法" "参阅 [AudioServer] 。" #: doc/classes/AudioEffect.xml msgid "Audio effect for audio." msgstr "音频效果的音频。" #: doc/classes/AudioEffect.xml msgid "" "Base resource for audio bus. Applies an audio effect on the bus that the " "resource is applied on." msgstr "音频总线的基础资源。在该资源所应用的总线上应用音频效果。" #: doc/classes/AudioEffect.xml doc/classes/AudioEffectRecord.xml #: doc/classes/AudioServer.xml doc/classes/AudioStream.xml #: doc/classes/AudioStreamPlayer.xml msgid "Audio Mic Record Demo" msgstr "音频麦克风录音演示" #: doc/classes/AudioEffectAmplify.xml msgid "" "Adds an amplifying audio effect to an audio bus.\n" "Increases or decreases the volume of the selected audio bus." msgstr "" "给音频总线添加放大音频效果。\n" "增加或减少所选音频总线的音量。" #: doc/classes/AudioEffectAmplify.xml msgid "Increases or decreases the volume being routed through the audio bus." msgstr "增加或减少通过音频总线传送的音量。" #: doc/classes/AudioEffectAmplify.xml msgid "" "Amount of amplification in decibels. Positive values make the sound louder, " "negative values make it quieter. Value can range from -80 to 24." msgstr "" "以分贝为单位的放大量。正值使声音更响亮,负值使声音更安静。数值范围从-80到24。" #: doc/classes/AudioEffectBandLimitFilter.xml msgid "Adds a band limit filter to the audio bus." msgstr "为音频总线添加一个带限滤波器。" #: doc/classes/AudioEffectBandLimitFilter.xml msgid "" "Limits the frequencies in a range around the [member AudioEffectFilter." "cutoff_hz] and allows frequencies outside of this range to pass." msgstr "" "限制[member AudioEffectFilter.cutoff_hz]周围范围内的频率,允许这个范围外的频" "率通过。" #: doc/classes/AudioEffectBandPassFilter.xml msgid "Adds a band pass filter to the audio bus." msgstr "为音频总线添加一个带通滤波器。" #: doc/classes/AudioEffectBandPassFilter.xml msgid "" "Attenuates the frequencies inside of a range around the [member " "AudioEffectFilter.cutoff_hz] and cuts frequencies outside of this band." msgstr "" "衰减[member AudioEffectFilter.cutoff_hz]周围范围内的频率,并切断这个频段之外" "的频率。" #: doc/classes/AudioEffectCapture.xml msgid "Captures audio from an audio bus in real-time." msgstr "从音频总线上实时捕捉音频。" #: doc/classes/AudioEffectCapture.xml msgid "" "AudioEffectCapture is an AudioEffect which copies all audio frames from the " "attached audio effect bus into its internal ring buffer.\n" "Application code should consume these audio frames from this ring buffer " "using [method get_buffer] and process it as needed, for example to capture " "data from a microphone, implement application defined effects, or to " "transmit audio over the network." msgstr "" "音频效果捕获是一种音频效果,可将所附音频效果总线的所有音频帧复制到其内部环缓" "冲器中。\n" "应用程序代码应使用 [method get_buffer]从该环缓冲器中消耗这些音频帧,并根据需" "要进行处理,例如从麦克风捕获数据、实现应用程序定义的效果或通过网络传输音频。" #: doc/classes/AudioEffectCapture.xml msgid "" "Returns [code]true[/code] if at least [code]frames[/code] audio frames are " "available to read in the internal ring buffer." msgstr "" "如果内部环缓冲器中至少有[code]frames[/code]音频帧可供读取,则返回 " "[code]true[/code]。" #: doc/classes/AudioEffectCapture.xml msgid "Clears the internal ring buffer." msgstr "清除内部环缓冲区。" #: doc/classes/AudioEffectCapture.xml msgid "" "Gets the next [code]frames[/code] audio samples from the internal ring " "buffer.\n" "Returns a [PoolVector2Array] containing exactly [code]frames[/code] audio " "samples if available, or an empty [PoolVector2Array] if insufficient data " "was available." msgstr "" "从内部环缓冲区获取下一个[code]frames[/code]音频样本。\n" "如果有的话,返回一个正好包含[code]frames[/code]音频样本的[PoolVector2Array]," "如果没有足够的数据,则返回一个空[PoolVector2Array]。" #: doc/classes/AudioEffectCapture.xml msgid "Returns the total size of the internal ring buffer in frames." msgstr "返回内部环缓冲区的总大小,以帧为单位。" #: doc/classes/AudioEffectCapture.xml msgid "" "Returns the number of audio frames discarded from the audio bus due to full " "buffer." msgstr "返回由于缓冲区满而从音频总线上丢弃的音频帧的数量。" #: doc/classes/AudioEffectCapture.xml msgid "" "Returns the number of frames available to read using [method get_buffer]." msgstr "返回可使用 [method get_buffer] 读取的帧数。" #: doc/classes/AudioEffectCapture.xml msgid "Returns the number of audio frames inserted from the audio bus." msgstr "返回从音频总线插入的音频帧的数量。" #: doc/classes/AudioEffectCapture.xml msgid "" "Length of the internal ring buffer, in seconds. Setting the buffer length " "will have no effect if already initialized." msgstr "" "内部环缓冲区的长度,单位是秒。如果已经初始化,设置缓冲区长度将没有效果。" #: doc/classes/AudioEffectChorus.xml msgid "Adds a chorus audio effect." msgstr "添加合唱音频效果。" #: doc/classes/AudioEffectChorus.xml msgid "" "Adds a chorus audio effect. The effect applies a filter with voices to " "duplicate the audio source and manipulate it through the filter." msgstr "添加一个合唱音频效果。该效果复制音频源,并应用声音滤波器进行操作。" #: doc/classes/AudioEffectChorus.xml msgid "The effect's raw signal." msgstr "效果的原始信号。" #: doc/classes/AudioEffectChorus.xml msgid "The voice's cutoff frequency." msgstr "声音的截止频率。" #: doc/classes/AudioEffectChorus.xml msgid "The voice's signal delay." msgstr "声音的信号延迟。" #: doc/classes/AudioEffectChorus.xml msgid "The voice filter's depth." msgstr "声音滤镜的深度。" #: doc/classes/AudioEffectChorus.xml msgid "The voice's volume." msgstr "声音的音量。" #: doc/classes/AudioEffectChorus.xml msgid "The voice's pan level." msgstr "声音的声相级别。" #: doc/classes/AudioEffectChorus.xml msgid "The voice's filter rate." msgstr "声音过滤比率。" #: doc/classes/AudioEffectChorus.xml msgid "The amount of voices in the effect." msgstr "效果中的声音数量。" #: doc/classes/AudioEffectChorus.xml msgid "The effect's processed signal." msgstr "效果的处理信号。" #: doc/classes/AudioEffectCompressor.xml msgid "" "Adds a compressor audio effect to an audio bus.\n" "Reduces sounds that exceed a certain threshold level, smooths out the " "dynamics and increases the overall volume." msgstr "" "为音频总线添加压缩音频效果。\n" "减少超过一定阈值水平的声音,平滑动态,增加整体音量。" #: doc/classes/AudioEffectCompressor.xml msgid "" "Dynamic range compressor reduces the level of the sound when the amplitude " "goes over a certain threshold in Decibels. One of the main uses of a " "compressor is to increase the dynamic range by clipping as little as " "possible (when sound goes over 0dB).\n" "Compressor has many uses in the mix:\n" "- In the Master bus to compress the whole output (although an " "[AudioEffectLimiter] is probably better).\n" "- In voice channels to ensure they sound as balanced as possible.\n" "- Sidechained. This can reduce the sound level sidechained with another " "audio bus for threshold detection. This technique is common in video game " "mixing to the level of music and SFX while voices are being heard.\n" "- Accentuates transients by using a wider attack, making effects sound more " "punchy." msgstr "" "动态范围压缩器在振幅超过一定的阈值(以分贝为单位)时,降低声音的电平。压缩器" "的主要用途之一是通过尽可能少的削波(当声音超过0dB时)来增加动态范围。\n" "压缩器在混音中的用途很多。\n" "- 在主总线上压缩整个输出(虽然[AudioEffectLimiter]可能更好些)。\n" "- 在声音通道中,以确保它们听起来尽可能的平衡。\n" "- 侧链。这可以降低与另一条音频总线侧链的声音级别,以进行阈值检测。这种技术在" "视频游戏混音中很常见,以音乐和SFX的级别,从而声音被听到。\n" "- 通过使用更宽的冲攻来突出瞬态,使效果听起来更有冲击力。" #: doc/classes/AudioEffectCompressor.xml msgid "" "Compressor's reaction time when the signal exceeds the threshold, in " "microseconds. Value can range from 20 to 2000." msgstr "当信号超过阈值时,压缩器的反应时间,以微秒为单位。数值范围从20到2000。" #: doc/classes/AudioEffectCompressor.xml msgid "Gain applied to the output signal." msgstr "应用于输出信号的增益。" #: doc/classes/AudioEffectCompressor.xml msgid "" "Balance between original signal and effect signal. Value can range from 0 " "(totally dry) to 1 (totally wet)." msgstr "原始信号和效果信号之间的平衡。数值范围从0(完全干燥)到1(完全浸润)。" #: doc/classes/AudioEffectCompressor.xml msgid "" "Amount of compression applied to the audio once it passes the threshold " "level. The higher the ratio, the more the loud parts of the audio will be " "compressed. Value can range from 1 to 48." msgstr "" "音频通过阈值级别后,应用于音频的压缩量。比率越高,音频的大声部分将被压缩。数" "值范围从1到48。" #: doc/classes/AudioEffectCompressor.xml msgid "" "Compressor's delay time to stop reducing the signal after the signal level " "falls below the threshold, in milliseconds. Value can range from 20 to 2000." msgstr "" "压缩器在信号电平低于阈值后,停止降低信号的延迟时间,以毫秒为单位。取值范围为 " "20 到 2000。" #: doc/classes/AudioEffectCompressor.xml msgid "Reduce the sound level using another audio bus for threshold detection." msgstr "使用另一条音频总线进行阈值检测,降低声音级别。" #: doc/classes/AudioEffectCompressor.xml msgid "" "The level above which compression is applied to the audio. Value can range " "from -60 to 0." msgstr "对音频进行压缩的级别。数值范围从-60到0。" #: doc/classes/AudioEffectDelay.xml msgid "" "Adds a delay audio effect to an audio bus. Plays input signal back after a " "period of time.\n" "Two tap delay and feedback options." msgstr "" "为音频总线添加延迟音频效果。在一段时间后回放输入信号。\n" "两个节拍延迟和反馈选项。" #: doc/classes/AudioEffectDelay.xml msgid "" "Plays input signal back after a period of time. The delayed signal may be " "played back multiple times to create the sound of a repeating, decaying " "echo. Delay effects range from a subtle echo effect to a pronounced blending " "of previous sounds with new sounds." msgstr "" "在一段时间后回放输入信号。延迟的信号可以多次回放,以产生重复、衰减的回声。延" "迟效果的范围是从微弱回声效果到明显的以前声音和新声音的混合。" #: doc/classes/AudioEffectDelay.xml msgid "" "Output percent of original sound. At 0, only delayed sounds are output. " "Value can range from 0 to 1." msgstr "原始声音的输出百分比。为 0 时,只输出延迟的声音。取值范围为 0 到 1。" #: doc/classes/AudioEffectDelay.xml msgid "If [code]true[/code], feedback is enabled." msgstr "如果[code]true[/code],则启用反馈。" #: doc/classes/AudioEffectDelay.xml msgid "Feedback delay time in milliseconds." msgstr "反馈延迟时间,单位为毫秒。" #: doc/classes/AudioEffectDelay.xml msgid "Sound level for [code]tap1[/code]." msgstr "[code]tap1[/code] 的声音电平。" #: doc/classes/AudioEffectDelay.xml msgid "" "Low-pass filter for feedback, in Hz. Frequencies below this value are " "filtered out of the source signal." msgstr "反馈的低通滤波器,单位为 Hz。低于此值的频率会被源信号过滤掉。" #: doc/classes/AudioEffectDelay.xml msgid "If [code]true[/code], [code]tap1[/code] will be enabled." msgstr "如果为 [code]true[/code],将启用 [code]tap1[/code]。" #: doc/classes/AudioEffectDelay.xml msgid "[code]tap1[/code] delay time in milliseconds." msgstr "[code]tap1[/code] 延迟时间,单位为毫秒。" #: doc/classes/AudioEffectDelay.xml msgid "" "Pan position for [code]tap1[/code]. Value can range from -1 (fully left) to " "1 (fully right)." msgstr "" "[code]tap1[/code] 的平移位置。取值范围为 -1(完全向左)到 1(完全向右)。" #: doc/classes/AudioEffectDelay.xml msgid "If [code]true[/code], [code]tap2[/code] will be enabled." msgstr "如果[code]true[/code],将启用[code]tap2[/code]。" #: doc/classes/AudioEffectDelay.xml msgid "[b]Tap2[/b] delay time in milliseconds." msgstr "[b]Tap2[/b] 延迟时间,单位为毫秒。" #: doc/classes/AudioEffectDelay.xml msgid "Sound level for [code]tap2[/code]." msgstr "[code]tap2[/code] 的声音电平。" #: doc/classes/AudioEffectDelay.xml msgid "" "Pan position for [code]tap2[/code]. Value can range from -1 (fully left) to " "1 (fully right)." msgstr "" "[code]tap2[/code] 的平移位置。取值范围为 -1(完全向左)到 1(完全向右)。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Adds a distortion audio effect to an Audio bus.\n" "Modify the sound to make it distorted." msgstr "" "在音频总线上添加一个失真的音频效果。\n" "修改声音,使其失真。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Different types are available: clip, tan, lo-fi (bit crushing), overdrive, " "or waveshape.\n" "By distorting the waveform the frequency content change, which will often " "make the sound \"crunchy\" or \"abrasive\". For games, it can simulate sound " "coming from some saturated device or speaker very efficiently." msgstr "" "提供不同类型的类型:clip、tan、lo-fi(bit crushing)、overdrive、" "waveshape。\n" "通过扭曲波形,频率内容会发生变化,这通常会使声音“清脆”或“粗糙”。对于游戏,它" "可以非常有效地模拟来自一些饱和设备或扬声器的声音。" #: doc/classes/AudioEffectDistortion.xml doc/classes/AudioEffectFilter.xml #: doc/classes/AudioEffectHighShelfFilter.xml #: doc/classes/AudioEffectLowShelfFilter.xml doc/classes/AudioServer.xml msgid "Audio buses" msgstr "音频总线" #: doc/classes/AudioEffectDistortion.xml msgid "Distortion power. Value can range from 0 to 1." msgstr "失真度。值的范围可在 0 到 1 之间。" #: doc/classes/AudioEffectDistortion.xml msgid "" "High-pass filter, in Hz. Frequencies higher than this value will not be " "affected by the distortion. Value can range from 1 to 20000." msgstr "" "高通滤波器,单位为Hz。高于此值的频率不会受到失真的影响。该值的范围为1至" "20000。" #: doc/classes/AudioEffectDistortion.xml msgid "Distortion type." msgstr "失真类型." #: doc/classes/AudioEffectDistortion.xml msgid "" "Increases or decreases the volume after the effect. Value can range from -80 " "to 24." msgstr "增加或减少效果后的音量。数值范围从-80到24。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Increases or decreases the volume before the effect. Value can range from " "-60 to 60." msgstr "增加或减少效果前的音量。值的范围为-60至60。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Digital distortion effect which cuts off peaks at the top and bottom of the " "waveform." msgstr "数字失真效果,可以切断波形顶部和底部的峰值。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Low-resolution digital distortion effect. You can use it to emulate the " "sound of early digital audio devices." msgstr "低分辨率的数字失真效果。你可以用它来模拟早期数字音频设备的声音。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Emulates the warm distortion produced by a field effect transistor, which is " "commonly used in solid-state musical instrument amplifiers." msgstr "模仿场效应晶体管产生的暖失真,场效应晶体管常用于固态乐器放大器。" #: doc/classes/AudioEffectDistortion.xml msgid "" "Waveshaper distortions are used mainly by electronic musicians to achieve an " "extra-abrasive sound." msgstr "波形变形失真主要是电子音乐人为了获得格外粗糙的声音而使用的。" #: doc/classes/AudioEffectEQ.xml msgid "" "Base class for audio equalizers. Gives you control over frequencies.\n" "Use it to create a custom equalizer if [AudioEffectEQ6], [AudioEffectEQ10] " "or [AudioEffectEQ21] don't fit your needs." msgstr "" "音频均衡器的基础类。让你可以控制频率。\n" "如果 [AudioEffectEQ6], [AudioEffectEQ10] 或 [AudioEffectEQ21]不符合您的需求," "请使用它来创建一个自定义均衡器。" #: doc/classes/AudioEffectEQ.xml msgid "" "AudioEffectEQ gives you control over frequencies. Use it to compensate for " "existing deficiencies in audio. AudioEffectEQs are useful on the Master bus " "to completely master a mix and give it more character. They are also useful " "when a game is run on a mobile device, to adjust the mix to that kind of " "speakers (it can be added but disabled when headphones are plugged)." msgstr "" "AudioEffectEQ 可用于频率控制。用它来弥补音频中不足之处。AudioEffectEQ 在 " "Master 总线上很有用,可以完全掌控一个混音,并赋予它更多的特性。当游戏在移动设" "备上运行时,它们也很有用,可以根据那种扬声器来调整混音(可以被添加,但在插入" "耳机时禁用)。" #: doc/classes/AudioEffectEQ.xml msgid "Returns the number of bands of the equalizer." msgstr "返回均衡器的频段数。" #: doc/classes/AudioEffectEQ.xml msgid "Returns the band's gain at the specified index, in dB." msgstr "返回指定索引处的波段增益,单位为dB。" #: doc/classes/AudioEffectEQ.xml msgid "Sets band's gain at the specified index, in dB." msgstr "设置指定索引处的波段增益,单位为dB。" #: doc/classes/AudioEffectEQ10.xml msgid "" "Adds a 10-band equalizer audio effect to an Audio bus. Gives you control " "over frequencies from 31 Hz to 16000 Hz.\n" "Each frequency can be modulated between -60/+24 dB." msgstr "" "为音频总线添加 10 段均衡器音频效果。让你控制 31Hz 到 16000Hz 的频率。\n" "每个频率可以在 -60/+24dB 之间进行调制。" #: doc/classes/AudioEffectEQ10.xml msgid "" "Frequency bands:\n" "Band 1: 31 Hz\n" "Band 2: 62 Hz\n" "Band 3: 125 Hz\n" "Band 4: 250 Hz\n" "Band 5: 500 Hz\n" "Band 6: 1000 Hz\n" "Band 7: 2000 Hz\n" "Band 8: 4000 Hz\n" "Band 9: 8000 Hz\n" "Band 10: 16000 Hz\n" "See also [AudioEffectEQ], [AudioEffectEQ6], [AudioEffectEQ21]." msgstr "" "频段:\n" "频段 1:31 Hz\n" "频段 2:62 Hz\n" "频段 3:125 Hz\n" "频段 4:250 Hz\n" "频段 5:500 Hz\n" "频段 6:1000 Hz\n" "频段 7:2000 Hz\n" "频段 8:4000 Hz\n" "频段 9:8000 Hz\n" "频段 10:16000 Hz\n" "另请参阅 [AudioEffectEQ]、[AudioEffectEQ6]、[AudioEffectEQ21]。" #: doc/classes/AudioEffectEQ21.xml msgid "" "Adds a 21-band equalizer audio effect to an Audio bus. Gives you control " "over frequencies from 22 Hz to 22000 Hz.\n" "Each frequency can be modulated between -60/+24 dB." msgstr "" "为音频总线添加21段均衡器音频效果。让你控制22Hz到22000Hz的频率。\n" "每个频率可以在-60/+24dB之间进行调制。" #: doc/classes/AudioEffectEQ21.xml msgid "" "Frequency bands:\n" "Band 1: 22 Hz\n" "Band 2: 32 Hz\n" "Band 3: 44 Hz\n" "Band 4: 63 Hz\n" "Band 5: 90 Hz\n" "Band 6: 125 Hz\n" "Band 7: 175 Hz\n" "Band 8: 250 Hz\n" "Band 9: 350 Hz\n" "Band 10: 500 Hz\n" "Band 11: 700 Hz\n" "Band 12: 1000 Hz\n" "Band 13: 1400 Hz\n" "Band 14: 2000 Hz\n" "Band 15: 2800 Hz\n" "Band 16: 4000 Hz\n" "Band 17: 5600 Hz\n" "Band 18: 8000 Hz\n" "Band 19: 11000 Hz\n" "Band 20: 16000 Hz\n" "Band 21: 22000 Hz\n" "See also [AudioEffectEQ], [AudioEffectEQ6], [AudioEffectEQ10]." msgstr "" "频段:\n" "频段 1:22 Hz\n" "频段 2:32 Hz\n" "频段 3:44 Hz\n" "频段 4:63 Hz\n" "频段 5:90 Hz\n" "频段 6:125 Hz\n" "频段 7:175 Hz\n" "频段 8:250 Hz\n" "频段 9:350 Hz\n" "频段 10:500 Hz\n" "频段 11:700 Hz\n" "频段 12:1000 Hz\n" "频段 13:1400 Hz\n" "频段 14:2000 Hz\n" "频段 15:2800 Hz\n" "频段 16:4000 Hz\n" "频段 17:5600 Hz\n" "频段 18:8000 Hz\n" "频段 19:11000 Hz\n" "频段 20:16000 Hz\n" "频段 21:22000 Hz\n" "另请参阅 [AudioEffectEQ]、[AudioEffectEQ6]、[AudioEffectEQ10]。" #: doc/classes/AudioEffectEQ6.xml msgid "" "Adds a 6-band equalizer audio effect to an Audio bus. Gives you control over " "frequencies from 32 Hz to 10000 Hz.\n" "Each frequency can be modulated between -60/+24 dB." msgstr "" "为音频总线添加6段均衡器音频效果。让你控制32Hz到10000Hz的频率。\n" "每个频率可以在-60/+24dB之间进行调制。" #: doc/classes/AudioEffectEQ6.xml msgid "" "Frequency bands:\n" "Band 1: 32 Hz\n" "Band 2: 100 Hz\n" "Band 3: 320 Hz\n" "Band 4: 1000 Hz\n" "Band 5: 3200 Hz\n" "Band 6: 10000 Hz\n" "See also [AudioEffectEQ], [AudioEffectEQ10], [AudioEffectEQ21]." msgstr "" "频段:\n" "频段 1:32 Hz\n" "频段 2:100 Hz\n" "频段 3:320 Hz\n" "频段 4:1000 Hz\n" "频段 5:3200 Hz\n" "频段 6:10000 Hz\n" "另请参阅 [AudioEffectEQ]、[AudioEffectEQ10]、[AudioEffectEQ21]。" #: doc/classes/AudioEffectFilter.xml msgid "Adds a filter to the audio bus." msgstr "为音频总线添加一个滤波器。" #: doc/classes/AudioEffectFilter.xml msgid "Allows frequencies other than the [member cutoff_hz] to pass." msgstr "允许通过[member cutoff_hz]以外的频率。" #: doc/classes/AudioEffectFilter.xml msgid "Threshold frequency for the filter, in Hz." msgstr "滤波器的阈值频率,单位为Hz。" #: doc/classes/AudioEffectFilter.xml msgid "Gain amount of the frequencies after the filter." msgstr "滤波后频率的增益量。" #: doc/classes/AudioEffectFilter.xml msgid "Amount of boost in the frequency range near the cutoff frequency." msgstr "在截断频率附近的频率范围内的提升量。" #: doc/classes/AudioEffectHighPassFilter.xml msgid "Adds a high-pass filter to the Audio Bus." msgstr "为音频总线添加高通滤波器。" #: doc/classes/AudioEffectHighPassFilter.xml msgid "" "Cuts frequencies lower than the [member AudioEffectFilter.cutoff_hz] and " "allows higher frequencies to pass." msgstr "" "削减比[member AudioEffectFilter.cutoff_hz]更低的频率,允许更高的频率通过。" #: doc/classes/AudioEffectHighShelfFilter.xml msgid "Reduces all frequencies above the [member AudioEffectFilter.cutoff_hz]." msgstr "降低所有高于[member AudioEffectFilter.cutoff_hz]的频率。" #: doc/classes/AudioEffectLimiter.xml msgid "Adds a soft-clip limiter audio effect to an Audio bus." msgstr "为音频总线添加一个软剪辑限制器音频效果。" #: doc/classes/AudioEffectLimiter.xml msgid "" "A limiter is similar to a compressor, but it's less flexible and designed to " "disallow sound going over a given dB threshold. Adding one in the Master bus " "is always recommended to reduce the effects of clipping.\n" "Soft clipping starts to reduce the peaks a little below the threshold level " "and progressively increases its effect as the input level increases such " "that the threshold is never exceeded." msgstr "" "限制器类似于压缩器,但灵活性较差,并且设计为不允许声音超过给定的dB阈值。始终" "建议在主总线中添加一个以减少削波的影响。\n" "软削波开始将峰值降低到略低于阈值水平,并随着输入水平的增加而逐渐增强其效果," "从而永不超过阈值。" #: doc/classes/AudioEffectLimiter.xml msgid "" "The waveform's maximum allowed value, in decibels. Value can range from -20 " "to -0.1." msgstr "波形的最大允许值,单位是分贝。数值范围从-20到-0.1。" #: doc/classes/AudioEffectLimiter.xml msgid "" "Applies a gain to the limited waves, in decibels. Value can range from 0 to " "6." msgstr "将增益应用于有限的波,以分贝为单位。取值范围是0到6。" #: doc/classes/AudioEffectLimiter.xml msgid "" "Threshold from which the limiter begins to be active, in decibels. Value can " "range from -30 to 0." msgstr "限制器开始生效的阈值,以分贝为单位。值的范围可以从-30到0。" #: doc/classes/AudioEffectLowPassFilter.xml msgid "Adds a low-pass filter to the Audio bus." msgstr "向音频总线添加一个低通滤波器。" #: doc/classes/AudioEffectLowPassFilter.xml msgid "" "Cuts frequencies higher than the [member AudioEffectFilter.cutoff_hz] and " "allows lower frequencies to pass." msgstr "" "削减比[member AudioEffectFilter.cutoff_hz]更低的频率,允许更高的频率通过。" #: doc/classes/AudioEffectLowShelfFilter.xml msgid "Reduces all frequencies below the [member AudioEffectFilter.cutoff_hz]." msgstr "降低[member AudioEffectFilter.cutoff_hz]以下的所有频率。" #: doc/classes/AudioEffectNotchFilter.xml msgid "Adds a notch filter to the Audio bus." msgstr "在音频总线上添加一个陷波滤波器。" #: doc/classes/AudioEffectNotchFilter.xml msgid "" "Attenuates frequencies in a narrow band around the [member AudioEffectFilter." "cutoff_hz] and cuts frequencies outside of this range." msgstr "" "衰减[member AudioEffectFilter.cutoff_hz]周围窄带的频率,并切断这个范围以外的" "频率。" #: doc/classes/AudioEffectPanner.xml msgid "Adds a panner audio effect to an Audio bus. Pans sound left or right." msgstr "向音频总线添加声相器音频效果。左右平移声音。" #: doc/classes/AudioEffectPanner.xml msgid "" "Determines how much of an audio signal is sent to the left and right buses." msgstr "决定向左右总线发送的音频信号量。" #: doc/classes/AudioEffectPanner.xml msgid "Pan position. Value can range from -1 (fully left) to 1 (fully right)." msgstr "平移位置。值的范围可以从-1(完全左)到1(完全右)。" #: doc/classes/AudioEffectPhaser.xml msgid "" "Adds a phaser audio effect to an Audio bus.\n" "Combines the original signal with a copy that is slightly out of phase with " "the original." msgstr "" "为音频总线添加相移音频效果。\n" "将原始信号与原始信号稍有相位偏差的副本相结合。" #: doc/classes/AudioEffectPhaser.xml msgid "" "Combines phase-shifted signals with the original signal. The movement of the " "phase-shifted signals is controlled using a low-frequency oscillator." msgstr "将相移信号与原始信号相结合。使用低频振荡器控制相移信号的移动。" #: doc/classes/AudioEffectPhaser.xml msgid "" "Governs how high the filter frequencies sweep. Low value will primarily " "affect bass frequencies. High value can sweep high into the treble. Value " "can range from 0.1 to 4." msgstr "" "控制滤波器频率扫描的频率。较低的值将主要影响低音频率。高值可以推高高音。值的" "范围可以从0.1到4。" #: doc/classes/AudioEffectPhaser.xml msgid "Output percent of modified sound. Value can range from 0.1 to 0.9." msgstr "修改后声音的输出百分比。数值范围从0.1到0.9。" #: doc/classes/AudioEffectPhaser.xml msgid "" "Determines the maximum frequency affected by the LFO modulations, in Hz. " "Value can range from 10 to 10000." msgstr "决定受 LFO 调制影响的最大频率,单位为 Hz。数值范围为10-10000。" #: doc/classes/AudioEffectPhaser.xml msgid "" "Determines the minimum frequency affected by the LFO modulations, in Hz. " "Value can range from 10 to 10000." msgstr "决定受 LFO 调制影响的最小频率,单位为 Hz。数值范围为10-10000。" #: doc/classes/AudioEffectPhaser.xml msgid "" "Adjusts the rate in Hz at which the effect sweeps up and down across the " "frequency range." msgstr "以Hz为单位调整效果在整个频率范围内上下扫描的速度。" #: doc/classes/AudioEffectPitchShift.xml msgid "" "Adds a pitch-shifting audio effect to an Audio bus.\n" "Raises or lowers the pitch of original sound." msgstr "" "为音频总线添加音高变换的音频效果。\n" "升高或降低原始声音的音高。" #: doc/classes/AudioEffectPitchShift.xml msgid "" "Allows modulation of pitch independently of tempo. All frequencies can be " "increased/decreased with minimal effect on transients." msgstr "允许独立于速度调制音高。所有频率都可以增加或减少,而对瞬态的影响最小。" #: doc/classes/AudioEffectPitchShift.xml msgid "" "The size of the [url=https://en.wikipedia.org/wiki/" "Fast_Fourier_transform]Fast Fourier transform[/url] buffer. Higher values " "smooth out the effect over time, but have greater latency. The effects of " "this higher latency are especially noticeable on sounds that have sudden " "amplitude changes." msgstr "" "[url=https://en.wikipedia.org/wiki/Fast_Fourier_transform]快速傅里叶变换[/" "url]缓冲区的大小。较高的数值可以使效果随时间平滑,但有较大的延迟。这种较高的" "延迟对有突然幅度变化的声音的影响特别明显。" #: doc/classes/AudioEffectPitchShift.xml msgid "" "The oversampling factor to use. Higher values result in better quality, but " "are more demanding on the CPU and may cause audio cracking if the CPU can't " "keep up." msgstr "" "要使用的过采样系数。更高的值会带来更好的质量,但对CPU的要求更高,如果CPU跟不" "上,可能会导致音频破裂。" #: doc/classes/AudioEffectPitchShift.xml msgid "" "The pitch scale to use. [code]1.0[/code] is the default pitch and plays " "sounds unaltered. [member pitch_scale] can range from [code]0.0[/code] " "(infinitely low pitch, inaudible) to [code]16[/code] (16 times higher than " "the initial pitch)." msgstr "" "要使用的音高缩放。[code]1.0[/code] 是默认的音高,声音会按原样播放。[member " "pitch_scale] 的范围从 [code]0.0[/code](无限低的音高,听不见)到 [code]16[/" "code](比初始音高要高 16 倍)。" #: doc/classes/AudioEffectPitchShift.xml #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "Use a buffer of 256 samples for the Fast Fourier transform. Lowest latency, " "but least stable over time." msgstr "" "使用 256 个样品的缓冲器进行快速傅里叶变换。最低延迟,但随着时间的推移最不稳" "定。" #: doc/classes/AudioEffectPitchShift.xml #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "Use a buffer of 512 samples for the Fast Fourier transform. Low latency, but " "less stable over time." msgstr "" "使用 512 个样本的缓冲器进行快速傅里叶变换。低延迟,但随着时间的推移不太稳定。" #: doc/classes/AudioEffectPitchShift.xml #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "Use a buffer of 1024 samples for the Fast Fourier transform. This is a " "compromise between latency and stability over time." msgstr "" "使用 1024 个样本的缓冲器进行快速傅里叶变换。随着时间的推移,这是延迟和稳定性" "之间的折衷。" #: doc/classes/AudioEffectPitchShift.xml #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "Use a buffer of 2048 samples for the Fast Fourier transform. High latency, " "but stable over time." msgstr "" "使用 2048 个样品的缓冲器进行快速傅里叶变换。随着时间的推移,延迟高但稳定。" #: doc/classes/AudioEffectPitchShift.xml #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "Use a buffer of 4096 samples for the Fast Fourier transform. Highest " "latency, but most stable over time." msgstr "" "使用 4096 个样品的缓冲器进行快速傅里叶变换。随着时间的推移,延迟最高但最稳" "定。" #: doc/classes/AudioEffectPitchShift.xml #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "Represents the size of the [enum FFT_Size] enum." msgstr "表示[enum FFT_Size]枚举的大小。" #: doc/classes/AudioEffectRecord.xml msgid "Audio effect used for recording the sound from an audio bus." msgstr "用于录制来自音频总线的声音的音频效果。" #: doc/classes/AudioEffectRecord.xml msgid "" "Allows the user to record the sound from an audio bus. This can include all " "audio output by Godot when used on the \"Master\" audio bus.\n" "Can be used (with an [AudioStreamMicrophone]) to record from a microphone.\n" "It sets and gets the format in which the audio file will be recorded (8-bit, " "16-bit, or compressed). It checks whether or not the recording is active, " "and if it is, records the sound. It then returns the recorded sample." msgstr "" "允许用户录制来自音频总线的声音。在“Master”音频总线上使用时会包含所有 Godot 输" "出的音频。\n" "可以用于录制麦克风(使用 [AudioStreamMicrophone])。\n" "它设置和获取记录音频文件的格式(8位,16位或压缩)。它检查录音是否处于活动状" "态,如果是,则记录声音。然后返回记录的样本。" #: doc/classes/AudioEffectRecord.xml msgid "Recording with microphone" msgstr "使用麦克风录音" #: doc/classes/AudioEffectRecord.xml msgid "Returns the recorded sample." msgstr "返回录音的样本。" #: doc/classes/AudioEffectRecord.xml msgid "Returns whether the recording is active or not." msgstr "返回录音是否处于激活状态。" #: doc/classes/AudioEffectRecord.xml msgid "" "If [code]true[/code], the sound will be recorded. Note that restarting the " "recording will remove the previously recorded sample." msgstr "" "如果[code]true[/code],将录制声音。请注意,重新开始录音将删除先前录音的样本。" #: doc/classes/AudioEffectRecord.xml msgid "" "Specifies the format in which the sample will be recorded. See [enum " "AudioStreamSample.Format] for available formats." msgstr "" "指定录音样本的格式。请参阅[enum AudioStreamSample.Format]了解可用的格式。" #: doc/classes/AudioEffectReverb.xml msgid "" "Adds a reverberation audio effect to an Audio bus.\n" "Simulates the sound of acoustic environments such as rooms, concert halls, " "caverns, or an open spaces." msgstr "" "为音频总线添加混响效果。\n" "模拟房间、音乐厅、洞穴或开放空间等声学环境的声音。" #: doc/classes/AudioEffectReverb.xml msgid "" "Simulates rooms of different sizes. Its parameters can be adjusted to " "simulate the sound of a specific room." msgstr "模拟不同大小的房间。其参数可以调整,以模拟特定房间的声音。" #: doc/classes/AudioEffectReverb.xml msgid "" "Defines how reflective the imaginary room's walls are. Value can range from " "0 to 1." msgstr "定义虚拟房间墙壁的反射程度。值的范围是0到1。" #: doc/classes/AudioEffectReverb.xml msgid "" "Output percent of original sound. At 0, only modified sound is outputted. " "Value can range from 0 to 1." msgstr "原始声音的输出百分比。为 0 时,只输出修改后的声音。取值范围是 0 到 1。" #: doc/classes/AudioEffectReverb.xml msgid "" "High-pass filter passes signals with a frequency higher than a certain " "cutoff frequency and attenuates signals with frequencies lower than the " "cutoff frequency. Value can range from 0 to 1." msgstr "" "高通滤波器通过频率高于某一截止频率的信号,衰减频率低于截止频率的信号。数值范" "围为0~1。" #: doc/classes/AudioEffectReverb.xml msgid "Output percent of predelay. Value can range from 0 to 1." msgstr "预延迟的输出百分比。数值范围为0~1。" #: doc/classes/AudioEffectReverb.xml msgid "" "Time between the original signal and the early reflections of the reverb " "signal, in milliseconds." msgstr "原始信号与混响信号早期反射之间的时间,以毫秒为单位。" #: doc/classes/AudioEffectReverb.xml msgid "" "Dimensions of simulated room. Bigger means more echoes. Value can range from " "0 to 1." msgstr "模拟房间的尺寸。越大表示回声越多。值的范围可以从0到1。" #: doc/classes/AudioEffectReverb.xml msgid "" "Widens or narrows the stereo image of the reverb tail. 1 means fully widens. " "Value can range from 0 to 1." msgstr "扩大或缩小混响尾音的立体声图像。1表示完全扩大。值的范围是0到1。" #: doc/classes/AudioEffectReverb.xml msgid "" "Output percent of modified sound. At 0, only original sound is outputted. " "Value can range from 0 to 1." msgstr "修改后声音的输出百分比。为 0 时,只输出原始声音。取值范围是 0 到 1。" #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "Audio effect that can be used for real-time audio visualizations." msgstr "可用于实时音频可视化的音频效果。" #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "This audio effect does not affect sound output, but can be used for real-" "time audio visualizations.\n" "See also [AudioStreamGenerator] for procedurally generating sounds." msgstr "" "这种音频效果不影响声音输出,但可以用于实时音频可视化。\n" "使用程序生成声音请参阅 [AudioStreamGenerator]。" #: doc/classes/AudioEffectSpectrumAnalyzer.xml doc/classes/AudioServer.xml #: doc/classes/AudioStream.xml doc/classes/AudioStreamPlayer.xml #: doc/classes/CanvasItem.xml msgid "Audio Spectrum Demo" msgstr "音频频谱演示" #: doc/classes/AudioEffectSpectrumAnalyzer.xml #: doc/classes/AudioStreamGenerator.xml #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "Godot 3.2 will get new audio features" msgstr "Godot 3.2将获得新的音频功能" #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "The length of the buffer to keep (in seconds). Higher values keep data " "around for longer, but require more memory." msgstr "" "要保留的缓冲区长度(以秒为单位)。较高的值将数据保存的时间更长,但需要更多的" "内存。" #: doc/classes/AudioEffectSpectrumAnalyzer.xml msgid "" "The size of the [url=https://en.wikipedia.org/wiki/" "Fast_Fourier_transform]Fast Fourier transform[/url] buffer. Higher values " "smooth out the spectrum analysis over time, but have greater latency. The " "effects of this higher latency are especially noticeable with sudden " "amplitude changes." msgstr "" "[url=https://en.wikipedia.org/wiki/Fast_Fourier_transform]快速傅里叶变换[/" "url]缓冲区的大小。较高的值可以使频谱分析随时间的推移而平滑,但有较大的延迟。" "这种较高延迟的影响在突然的振幅变化中特别明显。" #: doc/classes/AudioEffectSpectrumAnalyzerInstance.xml msgid "Use the average value as magnitude." msgstr "用平均值作为幅度。" #: doc/classes/AudioEffectSpectrumAnalyzerInstance.xml msgid "Use the maximum value as magnitude." msgstr "用最大值作为幅度。" #: doc/classes/AudioServer.xml msgid "Server interface for low-level audio access." msgstr "低级音频访问的服务器接口。" #: doc/classes/AudioServer.xml msgid "" "[AudioServer] is a low-level server interface for audio access. It is in " "charge of creating sample data (playable audio) as well as its playback via " "a voice interface." msgstr "" "[AudioServer]是一个音频访问的低级服务器接口。它负责创建样本数据(可播放的音" "频)以及通过语音接口进行播放。" #: doc/classes/AudioServer.xml doc/classes/AudioStreamPlayer.xml msgid "Audio Device Changer Demo" msgstr "音频设备切换演示" #: doc/classes/AudioServer.xml msgid "Adds a bus at [code]at_position[/code]." msgstr "在 [code]at_position[/code] 处添加一条总线。" #: doc/classes/AudioServer.xml msgid "" "Adds an [AudioEffect] effect to the bus [code]bus_idx[/code] at " "[code]at_position[/code]." msgstr "" "为索引为 [code]bus_idx[/code] 的总线在 [code]at_position[/code] 处添加 " "[AudioEffect] 效果。" #: doc/classes/AudioServer.xml msgid "Returns the names of all audio input devices detected on the system." msgstr "返回系统上检测到的所有音频输入设备的名称。" #: doc/classes/AudioServer.xml msgid "Generates an [AudioBusLayout] using the available buses and effects." msgstr "使用可用的总线和效果生成[AudioBusLayout]。" #: doc/classes/AudioServer.xml msgid "" "Returns the amount of channels of the bus at index [code]bus_idx[/code]." msgstr "返回索引为[code]bus_idx[/code]的总线通道数。" #: doc/classes/AudioServer.xml msgid "" "Returns the [AudioEffect] at position [code]effect_idx[/code] in bus " "[code]bus_idx[/code]." msgstr "" "返回总线 [code]bus_idx[/code] in [code]effect_idx[/code] 位置的 " "[AudioEffect]。" #: doc/classes/AudioServer.xml msgid "Returns the number of effects on the bus at [code]bus_idx[/code]." msgstr "返回 [code]bus_idx[/code] 处总线上的效果数。" #: doc/classes/AudioServer.xml msgid "" "Returns the [AudioEffectInstance] assigned to the given bus and effect " "indices (and optionally channel)." msgstr "" "返回分配给给定总线和效果指数(以及可选的通道)的[AudioEffectInstance]。" #: doc/classes/AudioServer.xml msgid "Returns the index of the bus with the name [code]bus_name[/code]." msgstr "返回名称为[code]bus_name[/code]的总线的索引。" #: doc/classes/AudioServer.xml msgid "Returns the name of the bus with the index [code]bus_idx[/code]." msgstr "返回索引为 [code]bus_idx[/code] 的总线名称。" #: doc/classes/AudioServer.xml msgid "" "Returns the peak volume of the left speaker at bus index [code]bus_idx[/" "code] and channel index [code]channel[/code]." msgstr "" "返回总线索引[code]bus_idx[/code]和通道索引[code]channel[/code]处左扬声器的峰" "值音量。" #: doc/classes/AudioServer.xml msgid "" "Returns the peak volume of the right speaker at bus index [code]bus_idx[/" "code] and channel index [code]channel[/code]." msgstr "" "返回总线索引[code]bus_idx[/code]和通道索引[code]channel[/code]处右扬声器的峰" "值音量。" #: doc/classes/AudioServer.xml msgid "" "Returns the name of the bus that the bus at index [code]bus_idx[/code] sends " "to." msgstr "返回位于索引[code]bus_idx[/code]处的总线所发送的总线名称。" #: doc/classes/AudioServer.xml msgid "Returns the volume of the bus at index [code]bus_idx[/code] in dB." msgstr "返回索引[code]bus_idx[/code]处总线的音量,单位为dB。" #: doc/classes/AudioServer.xml msgid "Returns the names of all audio devices detected on the system." msgstr "返回系统中检测到的所有音频设备的名称。" #: doc/classes/AudioServer.xml msgid "Returns the sample rate at the output of the [AudioServer]." msgstr "返回 [AudioServer] 输出的采样率。" #: doc/classes/AudioServer.xml msgid "Returns the audio driver's output latency." msgstr "返回音频驱动器的输出延迟。" #: doc/classes/AudioServer.xml msgid "Returns the speaker configuration." msgstr "返回扬声器的配置。" #: doc/classes/AudioServer.xml msgid "Returns the relative time since the last mix occurred." msgstr "返回自上次混合以来的相对时间。" #: doc/classes/AudioServer.xml msgid "Returns the relative time until the next mix occurs." msgstr "返回下一次混合之前的相对时间。" #: doc/classes/AudioServer.xml msgid "" "If [code]true[/code], the bus at index [code]bus_idx[/code] is bypassing " "effects." msgstr "" "如果为 [code]true[/code],则位于索引 [code]bus_idx[/code] 的总线会绕过效果。" #: doc/classes/AudioServer.xml msgid "" "If [code]true[/code], the effect at index [code]effect_idx[/code] on the bus " "at index [code]bus_idx[/code] is enabled." msgstr "" "如果为 [code]true[/code],则启用索引 [code]effect_idx[/code] 在索引 " "[code]bus_idx[/code] 的总线上的效果。" #: doc/classes/AudioServer.xml msgid "If [code]true[/code], the bus at index [code]bus_idx[/code] is muted." msgstr "如果为 [code]true[/code],则索引[code]bus_idx[/code]处的总线被静音。" #: doc/classes/AudioServer.xml msgid "" "If [code]true[/code], the bus at index [code]bus_idx[/code] is in solo mode." msgstr "" "如果为 [code]true[/code],则索引[code]bus_idx[/code]处的总线处于solo模式。" #: doc/classes/AudioServer.xml msgid "" "Locks the audio driver's main loop.\n" "[b]Note:[/b] Remember to unlock it afterwards." msgstr "" "锁定音频驱动程序的主循环。\n" "[b]注意:[/b]记得事后解锁。" #: doc/classes/AudioServer.xml msgid "" "Moves the bus from index [code]index[/code] to index [code]to_index[/code]." msgstr "将总线从索引[code]index[/code]移动到索引[code]to_index[/code]。" #: doc/classes/AudioServer.xml msgid "Removes the bus at index [code]index[/code]." msgstr "移除索引[code]index[/code]处的总线。" #: doc/classes/AudioServer.xml msgid "" "Removes the effect at index [code]effect_idx[/code] from the bus at index " "[code]bus_idx[/code]." msgstr "" "将索引 [code]effect_idx[/code] 的效果从索引 [code]bus_idx[/code] 的总线上删" "除。" #: doc/classes/AudioServer.xml msgid "Overwrites the currently used [AudioBusLayout]." msgstr "覆盖当前使用的[AudioBusLayout]。" #: doc/classes/AudioServer.xml msgid "" "Sets the name of the bus at index [code]bus_idx[/code] to [code]name[/code]." msgstr "将索引[code]bus_idx[/code]处的总线名称设置为[code]name[/code]。" #: doc/classes/AudioServer.xml msgid "" "Connects the output of the bus at [code]bus_idx[/code] to the bus named " "[code]send[/code]." msgstr "" "将 [code]bus_idx[/code] 处的总线输出连接到名为 [code]send[/code] 的总线。" #: doc/classes/AudioServer.xml msgid "" "Sets the volume of the bus at index [code]bus_idx[/code] to [code]volume_db[/" "code]." msgstr "" "将索引 [code]bus_idx[/code] 处的总线容量设置为 [code]volume_db[/code]。" #: doc/classes/AudioServer.xml msgid "Swaps the position of two effects in bus [code]bus_idx[/code]." msgstr "在[code]bus_idx[/code]中交换两个效果的位置。" #: doc/classes/AudioServer.xml msgid "" "Unlocks the audio driver's main loop. (After locking it, you should always " "unlock it.)" msgstr "解锁音频驱动程序的主循环。(锁定后,你始终需要手动解锁它。)" #: doc/classes/AudioServer.xml msgid "Number of available audio buses." msgstr "可用音频总线的数量。" #: doc/classes/AudioServer.xml msgid "" "Name of the current device for audio input (see [method get_device_list]). " "On systems with multiple audio inputs (such as analog, USB and HDMI audio), " "this can be used to select the audio input device. The value " "[code]\"Default\"[/code] will record audio on the system-wide default audio " "input. If an invalid device name is set, the value will be reverted back to " "[code]\"Default\"[/code]." msgstr "" "当前音频输出设备的名称(见 [method get_device_list])。在具有多个音频输出的系" "统中(例如模拟、USB、HDMI 音频),可用于选择音频输出设备。为 " "[code]\"Default\"[/code] 时会从系统默认的音频输出播放音频。如果设置了无效的设" "备名称,该值会被恢复为 [code]\"Default\"[/code]。" #: doc/classes/AudioServer.xml msgid "" "Name of the current device for audio output (see [method get_device_list]). " "On systems with multiple audio outputs (such as analog, USB and HDMI audio), " "this can be used to select the audio output device. The value " "[code]\"Default\"[/code] will play audio on the system-wide default audio " "output. If an invalid device name is set, the value will be reverted back to " "[code]\"Default\"[/code]." msgstr "" "当前音频输出设备名称(见 [method get_device_list])。在具有多个音频输出的系统" "中(例如模拟、USB、HDMI 音频),可用于选择音频输出设备。将值设为 " "[code]\"Default\"[/code] 则会从系统默认的音频输出播放音频。如果设置了无效的设" "备名称,该值会被恢复为 [code]\"Default\"[/code]。" #: doc/classes/AudioServer.xml msgid "" "Scales the rate at which audio is played (i.e. setting it to [code]0.5[/" "code] will make the audio be played twice as fast)." msgstr "" "缩放播放音频的速率(即将其设置为[code]0.5[/code]将使音频播放速度提高一倍)。" #: doc/classes/AudioServer.xml msgid "Emitted when the [AudioBusLayout] changes." msgstr "当[AudioBusLayout]改变时发出。" #: doc/classes/AudioServer.xml msgid "Two or fewer speakers were detected." msgstr "检测到两个或更少的扬声器。" #: doc/classes/AudioServer.xml msgid "A 3.1 channel surround setup was detected." msgstr "检测到3.1声道环绕声设置。" #: doc/classes/AudioServer.xml msgid "A 5.1 channel surround setup was detected." msgstr "检测到5.1声道环绕声设置。" #: doc/classes/AudioServer.xml msgid "A 7.1 channel surround setup was detected." msgstr "检测到7.1声道环绕声设置。" #: doc/classes/AudioStream.xml msgid "Base class for audio streams." msgstr "音频流的基类。" #: doc/classes/AudioStream.xml msgid "" "Base class for audio streams. Audio streams are used for sound effects and " "music playback, and support WAV (via [AudioStreamSample]) and OGG (via " "[AudioStreamOGGVorbis]) file formats." msgstr "" "音频流的基类。音频流用于声音效果和音乐播放,支持 WAV(通过" "[AudioStreamSample])和 OGG(通过[AudioStreamOGGVorbis])文件格式。" #: doc/classes/AudioStream.xml doc/classes/AudioStreamPlayer.xml msgid "Audio streams" msgstr "音频流" #: doc/classes/AudioStream.xml doc/classes/AudioStreamGenerator.xml #: doc/classes/AudioStreamGeneratorPlayback.xml #: doc/classes/AudioStreamPlayback.xml doc/classes/AudioStreamPlayer.xml msgid "Audio Generator Demo" msgstr "音频生成器演示" #: doc/classes/AudioStream.xml msgid "Returns the length of the audio stream in seconds." msgstr "返回音频流的长度,单位为秒。" #: doc/classes/AudioStreamGenerator.xml msgid "Audio stream that generates sounds procedurally." msgstr "使用程序生成声音的音频流。" #: doc/classes/AudioStreamGenerator.xml msgid "" "This audio stream does not play back sounds, but expects a script to " "generate audio data for it instead. See also " "[AudioStreamGeneratorPlayback].\n" "See also [AudioEffectSpectrumAnalyzer] for performing real-time audio " "spectrum analysis.\n" "[b]Note:[/b] Due to performance constraints, this class is best used from C# " "or from a compiled language via GDNative. If you still want to use this " "class from GDScript, consider using a lower [member mix_rate] such as 11,025 " "Hz or 22,050 Hz." msgstr "" "此音频流不播放声音,需要脚本为其生成音频数据。参阅" "[AudioStreamGeneratorPlayback]。\n" "另请参阅 [AudioEffectSpectrumAnalyzer] 用于执行实时音频频谱分析。\n" "[b]注意:[/b]由于性能限制,最好从 C# 或通过 GDNative 编译的语言中使用此类。如" "果你仍然想从GDScript中使用这个类,请考虑使用较低的 [member mix_rate],例如 " "11,025 Hz 或 22,050 Hz。" #: doc/classes/AudioStreamGenerator.xml msgid "" "The length of the buffer to generate (in seconds). Lower values result in " "less latency, but require the script to generate audio data faster, " "resulting in increased CPU usage and more risk for audio cracking if the CPU " "can't keep up." msgstr "" "要生成的缓冲区的长度,以秒为单位。较低的值会带来更少的延迟,但需要脚本更快地" "生成音频数据,从而导致 CPU 使用率增加,如果 CPU 跟不上,则音频破裂的风险更" "大。" #: doc/classes/AudioStreamGenerator.xml msgid "" "The sample rate to use (in Hz). Higher values are more demanding for the CPU " "to generate, but result in better quality.\n" "In games, common sample rates in use are [code]11025[/code], [code]16000[/" "code], [code]22050[/code], [code]32000[/code], [code]44100[/code], and " "[code]48000[/code].\n" "According to the [url=https://en.wikipedia.org/wiki/" "Nyquist%E2%80%93Shannon_sampling_theorem]Nyquist-Shannon sampling theorem[/" "url], there is no quality difference to human hearing when going past 40,000 " "Hz (since most humans can only hear up to ~20,000 Hz, often less). If you " "are generating lower-pitched sounds such as voices, lower sample rates such " "as [code]32000[/code] or [code]22050[/code] may be usable with no loss in " "quality." msgstr "" "使用的采样率(单位:Hz)。更高的值对 CPU 要求更高,但会带来更好的质量。\n" "在游戏中,常用的采样率有 [code]11025[/code]、[code]16000[/code]、" "[code]22050[/code]、[code]32000[/code]、[code]44100[/code]、[code]48000[/" "code]。\n" "根据[url=https://zh.wikipedia.org/wiki/%E9%87%87%E6%A0%B7%E5%AE%9A%E7%90%86]" "奈奎斯特–香农采样定理[/url],当超过 40000 赫兹时,人类的听觉没有质量上的差别" "(因为大多数人只能听到 ~20000 赫兹,往往更少)。如果你要生成语音等音高较低的" "声音,则可以使用 [code]32000[/code] 或 [code]22050[/code] 等较低的采样率,不" "会降低质量。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "Plays back audio generated using [AudioStreamGenerator]." msgstr "播放使用[AudioStreamGenerator]生成的音频。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "" "This class is meant to be used with [AudioStreamGenerator] to play back the " "generated audio in real-time." msgstr "此类旨在与 [AudioStreamGenerator] 一起使用以实时播放生成的音频。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "" "Returns [code]true[/code] if a buffer of the size [code]amount[/code] can be " "pushed to the audio sample data buffer without overflowing it, [code]false[/" "code] otherwise." msgstr "" "如果可以将大小为 [code]amount[/code] 的缓冲区推送到音频采样数据缓冲区而不使其" "溢出,则返回 [code]true[/code],否则返回 [code]false[/code]。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "Clears the audio sample data buffer." msgstr "清除音频样本数据缓冲区。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "" "Returns the number of audio data frames left to play. If this returned " "number reaches [code]0[/code], the audio will stop playing until frames are " "added again. Therefore, make sure your script can always generate and push " "new audio frames fast enough to avoid audio cracking." msgstr "" "返回要播放的音频数据帧数。如果返回的数字达到 [code]0[/code],音频将停止播放," "直到再次添加帧。因此,请确保你的脚本始终能够以足够快的速度生成和推送新的音频" "帧,以避免音频破裂。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "" "Pushes several audio data frames to the buffer. This is usually more " "efficient than [method push_frame] in C# and compiled languages via " "GDNative, but [method push_buffer] may be [i]less[/i] efficient in GDScript." msgstr "" "将多个音频数据帧推送到缓冲区。这通常比 C# 中的 [method push_frame] 和通过 " "GDNative 编译的语言更有效,但 [method push_buffer] 在 GDScript 中的效率可能 " "[i]低[/i]。" #: doc/classes/AudioStreamGeneratorPlayback.xml msgid "" "Pushes a single audio data frame to the buffer. This is usually less " "efficient than [method push_buffer] in C# and compiled languages via " "GDNative, but [method push_frame] may be [i]more[/i] efficient in GDScript." msgstr "" "将单个音频数据帧推送到缓冲区。在 C# 和通过 GDNative 编译的语言中通常比 " "[method push_buffer] 效率低,但在 GDScript 中 [method push_frame] 可能[i]更高" "效[/i]。" #: modules/minimp3/doc_classes/AudioStreamMP3.xml msgid "MP3 audio stream driver." msgstr "MP3 音频流驱动程序。" #: modules/minimp3/doc_classes/AudioStreamMP3.xml #: modules/stb_vorbis/doc_classes/AudioStreamOGGVorbis.xml msgid "Contains the audio data in bytes." msgstr "包含以字节为单位的音频数据。" #: modules/minimp3/doc_classes/AudioStreamMP3.xml #: modules/stb_vorbis/doc_classes/AudioStreamOGGVorbis.xml msgid "" "If [code]true[/code], the stream will automatically loop when it reaches the " "end." msgstr "如果[code]true[/code],当流到达末尾时将自动循环。" #: modules/minimp3/doc_classes/AudioStreamMP3.xml #: modules/stb_vorbis/doc_classes/AudioStreamOGGVorbis.xml msgid "Time in seconds at which the stream starts after being looped." msgstr "循环后流开始的时间(秒)。" #: modules/stb_vorbis/doc_classes/AudioStreamOGGVorbis.xml msgid "OGG Vorbis audio stream driver." msgstr "OGG Vorbis 音频流驱动程序。" #: doc/classes/AudioStreamPlayback.xml msgid "Meta class for playing back audio." msgstr "播放音频的元类。" #: doc/classes/AudioStreamPlayback.xml msgid "" "Can play, loop, pause a scroll through audio. See [AudioStream] and " "[AudioStreamOGGVorbis] for usage." msgstr "" "可以播放、循环、暂停滚动音频。有关用法,请参阅 [AudioStream] 和 " "[AudioStreamOGGVorbis]。" #: doc/classes/AudioStreamPlayer.xml msgid "Plays back audio non-positionally." msgstr "播放音频,不考虑所处位置。" #: doc/classes/AudioStreamPlayer.xml msgid "" "Plays an audio stream non-positionally.\n" "To play audio positionally, use [AudioStreamPlayer2D] or " "[AudioStreamPlayer3D] instead of [AudioStreamPlayer]." msgstr "" "以非位置方式支持播放音频流。\n" "要在位置上播放音频,请使用[AudioStreamPlayer2D]或[AudioStreamPlayer3D]而不是" "[AudioStreamPlayer]。" #: doc/classes/AudioStreamPlayer.xml msgid "Returns the position in the [AudioStream] in seconds." msgstr "返回 [AudioStream] 中的位置,单位为秒。" #: doc/classes/AudioStreamPlayer.xml msgid "" "Returns the [AudioStreamPlayback] object associated with this " "[AudioStreamPlayer]." msgstr "返回与此 [AudioStreamPlayer] 关联的 [AudioStreamPlayback] 对象。" #: doc/classes/AudioStreamPlayer.xml msgid "Plays the audio from the given [code]from_position[/code], in seconds." msgstr "从给定的位置 [code]from_position[/code] 播放音频,以秒为单位。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml #: doc/classes/AudioStreamPlayer3D.xml msgid "Sets the position from which audio will be played, in seconds." msgstr "设置音频的播放位置,以秒为单位。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml #: doc/classes/AudioStreamPlayer3D.xml msgid "Stops the audio." msgstr "停止音频。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml msgid "If [code]true[/code], audio plays when added to scene tree." msgstr "为 [code]true[/code] 时在添加到场景树时播放音频。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml msgid "Bus on which this audio is playing." msgstr "播放此音频的总线。" #: doc/classes/AudioStreamPlayer.xml msgid "" "If the audio configuration has more than two speakers, this sets the target " "channels. See [enum MixTarget] constants." msgstr "" "如果音频配置有两个以上的扬声器,则设置目标通道。请参阅[enum MixTarget]常量。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml #: doc/classes/AudioStreamPlayer3D.xml msgid "" "The pitch and the tempo of the audio, as a multiplier of the audio sample's " "sample rate." msgstr "音频的音高和节奏,作为音频样本的采样率的倍数。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml #: doc/classes/AudioStreamPlayer3D.xml msgid "If [code]true[/code], audio is playing." msgstr "如果[code]true[/code],则播放音频。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml msgid "The [AudioStream] object to be played." msgstr "要播放的[AudioStream]对象。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml msgid "" "If [code]true[/code], the playback is paused. You can resume it by setting " "[code]stream_paused[/code] to [code]false[/code]." msgstr "" "如果 [code]true[/code],则暂停播放。您可以通过将 [code]stream_paused[/code] " "设置为 [code]false[/code] 来恢复播放。" #: doc/classes/AudioStreamPlayer.xml msgid "Volume of sound, in dB." msgstr "音量,单位为 dB。" #: doc/classes/AudioStreamPlayer.xml doc/classes/AudioStreamPlayer2D.xml #: doc/classes/AudioStreamPlayer3D.xml msgid "Emitted when the audio stops playing." msgstr "当音频停止播放时发出。" #: doc/classes/AudioStreamPlayer.xml msgid "The audio will be played only on the first channel." msgstr "音频将只在第一个声道中播放。" #: doc/classes/AudioStreamPlayer.xml msgid "The audio will be played on all surround channels." msgstr "音频将在所有环绕声声道中播放。" #: doc/classes/AudioStreamPlayer.xml msgid "" "The audio will be played on the second channel, which is usually the center." msgstr "音频将在第二个声道中播放,通常位于中央。" #: doc/classes/AudioStreamPlayer2D.xml msgid "Plays positional sound in 2D space." msgstr "在 2D 空间中播放与位置相关的声音。" #: doc/classes/AudioStreamPlayer2D.xml msgid "" "Plays audio that dampens with distance from screen center.\n" "See also [AudioStreamPlayer] to play a sound non-positionally.\n" "[b]Note:[/b] Hiding an [AudioStreamPlayer2D] node does not disable its audio " "output. To temporarily disable an [AudioStreamPlayer2D]'s audio output, set " "[member volume_db] to a very low value like [code]-100[/code] (which isn't " "audible to human hearing)." msgstr "" "播放音频,随着与屏幕中心的距离而减弱。\n" "参阅[AudioStreamPlayer]来播放非位置性的声音。\n" "[b]注意:[/b]隐藏一个[AudioStreamPlayer2D]节点并不能禁用其音频输出。要暂时禁" "用[AudioStreamPlayer2D]的音频输出,请将[member volume_db]设置为一个非常低的" "值,如[code]-100[/code](人的听觉听不到)。" #: doc/classes/AudioStreamPlayer2D.xml doc/classes/AudioStreamPlayer3D.xml msgid "Returns the position in the [AudioStream]." msgstr "返回 [AudioStream] 中的位置。" #: doc/classes/AudioStreamPlayer2D.xml msgid "" "Returns the [AudioStreamPlayback] object associated with this " "[AudioStreamPlayer2D]." msgstr "返回与该 [AudioStreamPlayer2D] 相关联的 [AudioStreamPlayback] 对象。" #: doc/classes/AudioStreamPlayer2D.xml doc/classes/AudioStreamPlayer3D.xml msgid "" "Plays the audio from the given position [code]from_position[/code], in " "seconds." msgstr "从给定的位置 [code]from_position[/code] 播放音频,以秒为单位。" #: doc/classes/AudioStreamPlayer2D.xml msgid "" "Determines which [Area2D] layers affect the sound for reverb and audio bus " "effects. Areas can be used to redirect [AudioStream]s so that they play in a " "certain audio bus. An example of how you might use this is making a " "\"water\" area so that sounds played in the water are redirected through an " "audio bus to make them sound like they are being played underwater." msgstr "" "决定对混响及音频总线效果有影响的 [Area2D] 层。可使用区域对 [AudioStream] 进行" "重定向,使其在特定的音频总线中播放。一个例子是可以用来制作“水域”,将水中播放" "的声音重定向至单独的音频总线,让声音听起来像是在水下播放。" #: doc/classes/AudioStreamPlayer2D.xml msgid "Dampens audio over distance with this as an exponent." msgstr "以此为指数,将声音在距离上进行衰减。" #: doc/classes/AudioStreamPlayer2D.xml msgid "Maximum distance from which audio is still hearable." msgstr "音频仍可听到的最大距离。" #: doc/classes/AudioStreamPlayer2D.xml msgid "Base volume without dampening." msgstr "基础音量,无衰减。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Plays positional sound in 3D space." msgstr "在 3D 空间中播放与位置相关的声音。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Plays a sound effect with directed sound effects, dampens with distance if " "needed, generates effect of hearable position in space. For greater realism, " "a low-pass filter is automatically applied to distant sounds. This can be " "disabled by setting [member attenuation_filter_cutoff_hz] to [code]20500[/" "code].\n" "By default, audio is heard from the camera position. This can be changed by " "adding a [Listener] node to the scene and enabling it by calling [method " "Listener.make_current] on it.\n" "See also [AudioStreamPlayer] to play a sound non-positionally.\n" "[b]Note:[/b] Hiding an [AudioStreamPlayer3D] node does not disable its audio " "output. To temporarily disable an [AudioStreamPlayer3D]'s audio output, set " "[member unit_db] to a very low value like [code]-100[/code] (which isn't " "audible to human hearing)." msgstr "" "播放具有定向性的声音效果,如果需要,可随着距离的增加而减弱,产生空间中可听到" "的位置效果。为了更逼真,低通滤波器会自动应用于远处的声音。这可以通过设置" "[member attenuation_filter_cutoff_hz]为[code]20500[/code]来禁用。\n" "默认情况下,音频是从相机的位置听到的,这可以通过在场景中添加一个[Listener]节" "点,并通过对其调用[method Listener.make_current]来启用它,以改变。\n" "参阅[AudioStreamPlayer]来播放非位置的声音。\n" "[b]注意:[/b]隐藏一个[AudioStreamPlayer3D]节点并不能禁用其音频输出。要暂时禁" "用[AudioStreamPlayer3D]的音频输出,请将[member unit_db]设置为一个非常低的值," "如[code]-100[/code](人的听觉听不到)。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Returns the [AudioStreamPlayback] object associated with this " "[AudioStreamPlayer3D]." msgstr "返回与该[AudioStreamPlayer3D]相关联的[AudioStreamPlayback]对象。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Determines which [Area] layers affect the sound for reverb and audio bus " "effects. Areas can be used to redirect [AudioStream]s so that they play in a " "certain audio bus. An example of how you might use this is making a " "\"water\" area so that sounds played in the water are redirected through an " "audio bus to make them sound like they are being played underwater." msgstr "" "决定对混响及音频总线效果有影响的 [Area] 层。可使用区域对 [AudioStream] 进行重" "定向,使其在特定的音频总线中播放。一个例子是可以用来制作“水域”,将水中播放的" "声音重定向至单独的音频总线,让声音听起来像是在水下播放。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Dampens audio using a low-pass filter above this frequency, in Hz. To " "disable the dampening effect entirely, set this to [code]20500[/code] as " "this frequency is above the human hearing limit." msgstr "" "使用高于此频率的低通滤波器衰减音频,以 Hz 为单位。要完全禁用阻尼效果,请将其" "设置为 [code]20500[/code],因为该频率高于人类听力极限。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Amount how much the filter affects the loudness, in decibels." msgstr "滤波器对响度的影响程度,以分贝为单位。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Decides if audio should get quieter with distance linearly, quadratically, " "logarithmically, or not be affected by distance, effectively disabling " "attenuation." msgstr "" "决定音频是否应该得到更安静的距离线性,平方,对数,或不受影响的距离,有效地禁" "用衰减。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "If [code]true[/code], audio plays when the AudioStreamPlayer3D node is added " "to scene tree." msgstr "" "如果 [code]true[/code],则在将 AudioStreamPlayer3D 节点添加到场景树时播放音" "频。" #: doc/classes/AudioStreamPlayer3D.xml msgid "The bus on which this audio is playing." msgstr "播放此音频的总线。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Decides in which step the [url=https://en.wikipedia.org/wiki/" "Doppler_effect]Doppler effect[/url] should be calculated.\n" "[b]Note:[/b] Only effective if the current [Camera]'s [member Camera." "doppler_tracking] property is set to a value other than [constant Camera." "DOPPLER_TRACKING_DISABLED]." msgstr "" "决定 [url=https://en.wikipedia.org/wiki/Doppler_effect]多普勒效应[/url] 应该" "在哪一步计算。\n" "[b]注意:[/b]仅当当前 [Camera] 的 [member Camera.doppler_tracking] 属性设置" "为 [constant Camera.DOPPLER_TRACKING_DISABLED] 以外的值时有效。" #: doc/classes/AudioStreamPlayer3D.xml msgid "The angle in which the audio reaches cameras undampened." msgstr "音频到达相机的角度,不受衰减。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "If [code]true[/code], the audio should be dampened according to the " "direction of the sound." msgstr "如果[code]true[/code],则应根据声音的方向对音频进行衰减。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Dampens audio if camera is outside of [member emission_angle_degrees] and " "[member emission_angle_enabled] is set by this factor, in decibels." msgstr "" "如果样机在 [member emission_angle_degrees] 之外,并且 [member " "emission_angle_enabled] 被设置为这个系数,则对音频进行减弱,单位是分贝。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Sets the absolute maximum of the soundlevel, in decibels." msgstr "设置声级的绝对最大值,以分贝为单位。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Sets the distance from which the [member out_of_range_mode] takes effect. " "Has no effect if set to 0." msgstr "设置[member out_of_range_mode]生效的距离。设置为0时没有效果。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Decides if audio should pause when source is outside of [member " "max_distance] range." msgstr "决定当音源超出 [member max_distance] 范围时,是否应该暂停音频。" #: doc/classes/AudioStreamPlayer3D.xml msgid "The [AudioStream] resource to be played." msgstr "要播放的[AudioStream]资源。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "If [code]true[/code], the playback is paused. You can resume it by setting " "[member stream_paused] to [code]false[/code]." msgstr "" "如果[code]true[/code],则播放会暂停。你可以通过设置[member stream_paused]为 " "[code]false[/code]来恢复它。" #: doc/classes/AudioStreamPlayer3D.xml msgid "The base sound level unaffected by dampening, in decibels." msgstr "不受阻尼影响的基本声级,单位为分贝。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "The factor for the attenuation effect. Higher values make the sound audible " "over a larger distance." msgstr "衰减效果的系数。更高的值使声音在更远的距离可以听到。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Linear dampening of loudness according to distance." msgstr "根据距离对响度进行线性衰减。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Squared dampening of loudness according to distance." msgstr "根据距离对响度进行平方衰减。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Logarithmic dampening of loudness according to distance." msgstr "根据距离对数降低响度。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "No dampening of loudness according to distance. The sound will still be " "heard positionally, unlike an [AudioStreamPlayer]. [constant " "ATTENUATION_DISABLED] can be combined with a [member max_distance] value " "greater than [code]0.0[/code] to achieve linear attenuation clamped to a " "sphere of a defined size." msgstr "" "不会根据距离衰减响度。与 [AudioStreamPlayer] 不同,声音仍会在位置上被听到。 " "[constant ATTENUATION_DISABLED] 可以与大于 [code]0.0[/code] 的 [member " "max_distance] 值结合使用,以实现线性衰减,限制在定义的球体大小。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Mix this audio in, even when it's out of range. This increases CPU usage, " "but keeps the sound playing at the correct position if the camera leaves and " "enters the [AudioStreamPlayer3D]'s [member max_distance] radius." msgstr "" "将此音频混合,即使它超出范围。这会增加 CPU 使用率,但如果相机离开并进入 " "[AudioStreamPlayer3D] 的 [member max_distance] 半径,则保持声音在正确的位置播" "放。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Pause this audio when it gets out of range. This decreases CPU usage, but " "will cause the sound to restart if the camera leaves and enters the " "[AudioStreamPlayer3D]'s [member max_distance] radius." msgstr "" "超出范围时暂停此音频。这会降低 CPU 使用率,但如果相机离开并进入 " "[AudioStreamPlayer3D] 的 [member max_distance] 半径,则会使声音重新开始。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Disables doppler tracking." msgstr "禁用多普勒跟踪。" #: doc/classes/AudioStreamPlayer3D.xml msgid "Executes doppler tracking in idle step (every rendered frame)." msgstr "在空闲的步骤中执行多普勒跟踪(每渲染一帧)。" #: doc/classes/AudioStreamPlayer3D.xml msgid "" "Executes doppler tracking in physics step (every simulated physics frame)." msgstr "在物理步骤中执行多普勒跟踪(每个模拟的物理帧)。" #: doc/classes/AudioStreamRandomPitch.xml msgid "Plays audio with random pitch shifting." msgstr "播放随机音高变化的音频。" #: doc/classes/AudioStreamRandomPitch.xml msgid "Randomly varies pitch on each start." msgstr "每次开始时随机变换音高。" #: doc/classes/AudioStreamRandomPitch.xml msgid "The current [AudioStream]." msgstr "当前的[AudioStream]。" #: doc/classes/AudioStreamRandomPitch.xml msgid "The intensity of random pitch variation." msgstr "随机音高变化的强度。" #: doc/classes/AudioStreamSample.xml msgid "Stores audio data loaded from WAV files." msgstr "存储从WAV文件加载的音频数据。" #: doc/classes/AudioStreamSample.xml msgid "" "AudioStreamSample stores sound samples loaded from WAV files. To play the " "stored sound, use an [AudioStreamPlayer] (for non-positional audio) or " "[AudioStreamPlayer2D]/[AudioStreamPlayer3D] (for positional audio). The " "sound can be looped.\n" "This class can also be used to store dynamically-generated PCM audio data. " "See also [AudioStreamGenerator] for procedural audio generation." msgstr "" "AudioStreamSample 存储从 WAV 文件加载的声音样本。要播放存储的声音,请使用 " "[AudioStreamPlayer](用于非定位音频)或 [AudioStreamPlayer2D]/" "[AudioStreamPlayer3D](用于定位音频)。声音可以循环播放。\n" "此类还可用于存储动态生成的 PCM 音频数据。另请参阅 [AudioStreamGenerator] 以了" "解程序式音频生成。" #: doc/classes/AudioStreamSample.xml msgid "" "Saves the AudioStreamSample as a WAV file to [code]path[/code]. Samples with " "IMA ADPCM format can't be saved.\n" "[b]Note:[/b] A [code].wav[/code] extension is automatically appended to " "[code]path[/code] if it is missing." msgstr "" "将AudioStreamSample作为WAV文件保存到[code]path[/code]。无法保存IMA ADPCM格式" "的样本。\n" "[b]注意:[/b]如果缺少[code].wav[/code]扩展名,则会自动将其附加到[code]path[/" "code]。" #: doc/classes/AudioStreamSample.xml msgid "" "Contains the audio data in bytes.\n" "[b]Note:[/b] This property expects signed PCM8 data. To convert unsigned " "PCM8 to signed PCM8, subtract 128 from each byte." msgstr "" "包含以字节为单位的音频数据。\n" "[b]注意:[/b]此属性需要有符号的 PCM8数据。要将无符号的 PCM8转换为有符号的 " "PCM8,需要从每个字节中减去128。" #: doc/classes/AudioStreamSample.xml msgid "Audio format. See [enum Format] constants for values." msgstr "音频格式。参阅[enum Format]常量的值。" #: doc/classes/AudioStreamSample.xml msgid "" "The loop start point (in number of samples, relative to the beginning of the " "sample). This information will be imported automatically from the WAV file " "if present." msgstr "" "循环起始点(相对于样本开始的样本数)。如果 WAV 文件中存在此信息,则将自动导" "入。" #: doc/classes/AudioStreamSample.xml msgid "" "The loop end point (in number of samples, relative to the beginning of the " "sample). This information will be imported automatically from the WAV file " "if present." msgstr "" "循环结束点(相对于样本开始的样本数)。如果 WAV 文件中存在此信息,则将自动导" "入。" #: doc/classes/AudioStreamSample.xml msgid "" "The loop mode. This information will be imported automatically from the WAV " "file if present. See [enum LoopMode] constants for values." msgstr "" "循环模式。如果 WAV 文件中存在此信息,则将自动导入。取值请参阅 [enum " "LoopMode] 常量。" #: doc/classes/AudioStreamSample.xml msgid "" "The sample rate for mixing this audio. Higher values require more storage " "space, but result in better quality.\n" "In games, common sample rates in use are [code]11025[/code], [code]16000[/" "code], [code]22050[/code], [code]32000[/code], [code]44100[/code], and " "[code]48000[/code].\n" "According to the [url=https://en.wikipedia.org/wiki/" "Nyquist%E2%80%93Shannon_sampling_theorem]Nyquist-Shannon sampling theorem[/" "url], there is no quality difference to human hearing when going past 40,000 " "Hz (since most humans can only hear up to ~20,000 Hz, often less). If you " "are using lower-pitched sounds such as voices, lower sample rates such as " "[code]32000[/code] or [code]22050[/code] may be usable with no loss in " "quality." msgstr "" "混合这个音频的采样率。更高的数值需要更多的存储空间,但会带来更好的质量。\n" "在游戏中,常用的采样率有 [code]11025[/code]、[code]16000[/code]、" "[code]22050[/code]、[code]32000[/code]、[code]44100[/code]、[code]48000[/" "code]。\n" "根据[url=https://zh.wikipedia.org/wiki/%E9%87%87%E6%A0%B7%E5%AE%9A%E7%90%86]" "奈奎斯特–香农采样定理[/url],当超过 40000 赫兹时,人类的听觉没有质量上的差别" "(因为大多数人只能听到 ~20000 赫兹,往往更少)。如果你要使用语音等音高较低的" "声音,则可以使用 [code]32000[/code] 或 [code]22050[/code] 等较低的采样率,不" "会降低质量。" #: doc/classes/AudioStreamSample.xml msgid "If [code]true[/code], audio is stereo." msgstr "如果为 [code]true[/code],则音频为立体声。" #: doc/classes/AudioStreamSample.xml msgid "8-bit audio codec." msgstr "8 位音频编解码器。" #: doc/classes/AudioStreamSample.xml msgid "16-bit audio codec." msgstr "16 位音频编解码器。" #: doc/classes/AudioStreamSample.xml msgid "Audio is compressed using IMA ADPCM." msgstr "音频使用 IMA ADPCM 进行压缩。" #: doc/classes/AudioStreamSample.xml msgid "Audio does not loop." msgstr "音频不循环。" #: doc/classes/AudioStreamSample.xml msgid "" "Audio loops the data between [member loop_begin] and [member loop_end], " "playing forward only." msgstr "" "音频在 [member loop_begin] 和 [member loop_end] 之间循环数据,仅向前播放。" #: doc/classes/AudioStreamSample.xml msgid "" "Audio loops the data between [member loop_begin] and [member loop_end], " "playing back and forth." msgstr "" "音频在 [member loop_begin] 和 [member loop_end] 之间循环数据,来回播放。" #: doc/classes/AudioStreamSample.xml msgid "" "Audio loops the data between [member loop_begin] and [member loop_end], " "playing backward only." msgstr "" "音频在 [member loop_begin] 和 [member loop_end] 之间循环数据,仅向后播放。" #: doc/classes/BackBufferCopy.xml msgid "" "Copies a region of the screen (or the whole screen) to a buffer so it can be " "accessed in your shader scripts through the " "[code]texture(SCREEN_TEXTURE, ...)[/code] function." msgstr "" "将屏幕的某个区域(或整个屏幕)复制到缓冲区,以便通过 " "[code]texture(SCREEN_TEXTURE, ...)[/code] 函数在着色器脚本中对其进行访问。" #: doc/classes/BackBufferCopy.xml msgid "" "Node for back-buffering the currently-displayed screen. The region defined " "in the BackBufferCopy node is buffered with the content of the screen it " "covers, or the entire screen according to the copy mode set. Use the " "[code]texture(SCREEN_TEXTURE, ...)[/code] function in your shader scripts to " "access the buffer.\n" "[b]Note:[/b] Since this node inherits from [Node2D] (and not [Control]), " "anchors and margins won't apply to child [Control]-derived nodes. This can " "be problematic when resizing the window. To avoid this, add [Control]-" "derived nodes as [i]siblings[/i] to the BackBufferCopy node instead of " "adding them as children." msgstr "" "用于对当前屏幕显示进行后台缓冲的节点。 BackBufferCopy 节点中定义的区域与其覆" "盖屏幕的内容一起缓冲,或者根据拷贝模式设置的整个屏幕进行缓冲。在着色器脚本中" "使用 [code]texture(SCREEN_TEXTURE, ...)[/code] 函数来访问缓冲区。\n" "[b]注意:[/b]由于该节点继承自 [Node2D] 而非 [Control],锚点和边距将不会应用于" "从 [Control] 派生的子节点。这在调整窗口大小时可能会出现问题。为避免这种情况," "请将 [Control] 派生节点添加为 BackBufferCopy 节点的[i]同级[/i],不要将它们添" "加为其子节点。" #: doc/classes/BackBufferCopy.xml msgid "Buffer mode. See [enum CopyMode] constants." msgstr "缓冲区模式。参阅 [enum CopyMode] 常量。" #: doc/classes/BackBufferCopy.xml msgid "" "The area covered by the BackBufferCopy. Only used if [member copy_mode] is " "[constant COPY_MODE_RECT]." msgstr "" "BackBufferCopy 覆盖的区域。只有当 [member copy_mode] 是 [constant " "COPY_MODE_RECT] 时才使用。" #: doc/classes/BackBufferCopy.xml msgid "" "Disables the buffering mode. This means the BackBufferCopy node will " "directly use the portion of screen it covers." msgstr "" "禁用缓冲模式。这意味着 BackBufferCopy 节点将直接使用它所覆盖的屏幕部分。" #: doc/classes/BackBufferCopy.xml msgid "BackBufferCopy buffers a rectangular region." msgstr "BackBufferCopy 缓冲一个矩形区域。" #: doc/classes/BackBufferCopy.xml msgid "BackBufferCopy buffers the entire screen." msgstr "BackBufferCopy 缓冲整个屏幕。" #: doc/classes/BakedLightmap.xml msgid "Prerendered indirect light map for a scene." msgstr "场景的预渲染间接光照贴图。" #: doc/classes/BakedLightmap.xml msgid "" "Baked lightmaps are an alternative workflow for adding indirect (or baked) " "lighting to a scene. Unlike the [GIProbe] approach, baked lightmaps work " "fine on low-end PCs and mobile devices as they consume almost no resources " "in run-time.\n" "[b]Procedural generation:[/b] Lightmap baking functionality is only " "available in the editor. This means [BakedLightmap] is not suited to " "procedurally generated or user-built levels. For procedurally generated or " "user-built levels, use [GIProbe] instead.\n" "[b]Note:[/b] Due to how lightmaps work, most properties only have a visible " "effect once lightmaps are baked again." msgstr "" "烘焙光照贴图是向场景添加间接(或烘焙)光照的替代工作流程。与 [GIProbe] 方法不" "同,烘焙光照贴图在低端 PC 和移动设备上运行良好,因为它们在运行时几乎不消耗资" "源。\n" "[b]程序化生成:[/b] 烘焙光照贴图的功能只在编辑器中可用。也就是说," "[BakedLightmap] 不适合程序化生成、用户搭建的关卡。想要支持程序化生成或者用户" "搭建关卡,请使用 [GIProbe]。\n" "[b]注意:[/b]由于光照贴图的工作原理,大多数属性只有在光照贴图再次烘焙后才会看" "到效果。" #: doc/classes/BakedLightmap.xml msgid "" "Bakes the lightmap, scanning from the given [code]from_node[/code] root and " "saves the resulting [BakedLightmapData] in [code]data_save_path[/code]. If " "no root node is provided, parent of this node will be used as root instead. " "If no save path is provided it will try to match the path from the current " "[member light_data]." msgstr "" "烘焙光照贴图,从给定的[code]from_node[/code]根节点扫描,并将产生的" "[BakedLightmapData]保存在[code]data_save_path[/code]中。如果没有提供根节点," "此节点的父节点将作为根节点。如果没有提供保存路径,将尝试匹配当前[member " "light_data]的路径。" #: doc/classes/BakedLightmap.xml msgid "" "If [code]true[/code], the lightmapper will merge the textures for all meshes " "into one or several large layered textures. If [code]false[/code], every " "mesh will get its own lightmap texture, which is less efficient.\n" "[b]Note:[/b] Atlas lightmap rendering is only supported in GLES3, [i]not[/i] " "GLES2. Non-atlas lightmap rendering is supported by both GLES3 and GLES2. If " "[member ProjectSettings.rendering/quality/driver/fallback_to_gles2] is " "[code]true[/code], consider baking lightmaps with [member atlas_generate] " "set to [code]false[/code] so that the resulting lightmap is visible in both " "GLES3 and GLES2." msgstr "" "如果为 [code]true[/code],光照贴图器会将所有网格的纹理合并为单个纹理或若干大" "型的分层纹理。如果为 [code]false[/code],各个网格有各自的光照贴图纹理,效率较" "低。\n" "[b]注意:[/b]只有 GLES3 支持光照贴图集的渲染,GLES2 [i]不支持[/i]。GLES3 和 " "GLES2 均支持非图集的光照贴图渲染。如果 [member ProjectSettings.rendering/" "quality/driver/fallback_to_gles2] 为 [code]true[/code],请考虑在烘焙光照贴图" "时将 [member atlas_generate] 设为 [code]false[/code],这样生成的光照贴图在 " "GLES3 和 GLES2 中均可用。" #: doc/classes/BakedLightmap.xml msgid "" "Maximum size of each lightmap layer, only used when [member atlas_generate] " "is enabled." msgstr "每个光照贴图层的最大尺寸,仅在启用 [member atlas_generate] 时使用。" #: doc/classes/BakedLightmap.xml msgid "" "Raycasting bias used during baking to avoid floating point precision issues." msgstr "在烘焙过程中使用光线投射偏置来避免浮点数精度问题。" #: doc/classes/BakedLightmap.xml msgid "" "The energy multiplier for each bounce. Higher values will make indirect " "lighting brighter. A value of [code]1.0[/code] represents physically " "accurate behavior, but higher values can be used to make indirect lighting " "propagate more visibly when using a low number of bounces. This can be used " "to speed up bake times by lowering the number of [member bounces] then " "increasing [member bounce_indirect_energy]. Unlike [member BakedLightmapData." "energy], this property does not affect direct lighting emitted by light " "nodes, emissive materials and the environment.\n" "[b]Note:[/b] [member bounce_indirect_energy] only has an effect if [member " "bounces] is set to a value greater than or equal to [code]1[/code]." msgstr "" "每次反弹的能量乘数。较高的值将使间接照明更亮。 [code]1.0[/code] 的值表示与物" "理相一致的行为,但在使用少量反弹时,可以使用更高的值使间接照明传播更明显。这" "可用于通过降低 [member bounces] 的数量然后增加 [member " "bounce_indirect_energy] 来加快烘焙时间。与 [member BakedLightmapData.energy] " "不同,此属性不会影响灯光节点、发光材质和环境发出的直接光照。\n" "[b]注意:[/b][member bounce_indirect_energy] 仅在 [member bounces] 设置为大于" "等于 [code]1[/code] 的值时有效。" #: doc/classes/BakedLightmap.xml msgid "" "Number of light bounces that are taken into account during baking. See also " "[member bounce_indirect_energy]." msgstr "烘焙过程中考虑的光线反射次数。参阅 [member bounce_indirect_energy]。" #: doc/classes/BakedLightmap.xml msgid "Grid size used for real-time capture information on dynamic objects." msgstr "用于实时捕获动态对象信息的网格大小。" #: doc/classes/BakedLightmap.xml msgid "" "When enabled, an octree containing the scene's lighting information will be " "computed. This octree will then be used to light dynamic objects in the " "scene." msgstr "" "启用后,将计算包含场景照明信息的八叉树。然后此八叉树将用于照亮场景中的动态对" "象。" #: doc/classes/BakedLightmap.xml msgid "" "Bias value to reduce the amount of light propagation in the captured octree." msgstr "偏置值,用于减少捕获的八叉树中的光传播量。" #: doc/classes/BakedLightmap.xml msgid "Bake quality of the capture data." msgstr "捕获数据的烘焙质量。" #: doc/classes/BakedLightmap.xml msgid "" "If a baked mesh doesn't have a UV2 size hint, this value will be used to " "roughly compute a suitable lightmap size." msgstr "" "如果烘焙后的网格没有 UV2 的尺寸提示,这个值将被用来粗略计算出合适的光照贴图尺" "寸。" #: doc/classes/BakedLightmap.xml msgid "" "The environment color when [member environment_mode] is set to [constant " "ENVIRONMENT_MODE_CUSTOM_COLOR]." msgstr "" "[member environment_mode] 设置为 [constant ENVIRONMENT_MODE_CUSTOM_COLOR] 时" "的环境颜色。" #: doc/classes/BakedLightmap.xml msgid "" "The energy scaling factor when when [member environment_mode] is set to " "[constant ENVIRONMENT_MODE_CUSTOM_COLOR] or [constant " "ENVIRONMENT_MODE_CUSTOM_SKY]." msgstr "" "[member environment_mode] 设置为 [constant ENVIRONMENT_MODE_CUSTOM_COLOR] 或 " "[constant ENVIRONMENT_MODE_CUSTOM_SKY] 时的能量比例系数。" #: doc/classes/BakedLightmap.xml msgid "" "The [Sky] resource to use when [member environment_mode] is set o [constant " "ENVIRONMENT_MODE_CUSTOM_SKY]." msgstr "" "当 [member environment_mode] 设置为 [constant ENVIRONMENT_MODE_CUSTOM_SKY] 时" "要使用的 [Sky] 资源。" #: doc/classes/BakedLightmap.xml msgid "The rotation of the baked custom sky." msgstr "烘焙自定义天空的旋转。" #: doc/classes/BakedLightmap.xml msgid "" "Minimum ambient light for all the lightmap texels. This doesn't take into " "account any occlusion from the scene's geometry, it simply ensures a minimum " "amount of light on all the lightmap texels. Can be used for artistic control " "on shadow color." msgstr "" "所有光照贴图纹素的最小环境光。这不考虑场景几何体的任何遮挡,它只是确保所有光" "照贴图纹素上的光量最小。可用于阴影颜色的艺术控制。" #: doc/classes/BakedLightmap.xml msgid "Decides which environment to use during baking." msgstr "决定烘焙时使用哪个环境。" #: doc/classes/BakedLightmap.xml msgid "" "Size of the baked lightmap. Only meshes inside this region will be included " "in the baked lightmap, also used as the bounds of the captured region for " "dynamic lighting." msgstr "" "烘焙光照贴图的大小。只有该区域内的网格才会包含在烘焙光照贴图中,也用作动态光" "照捕获区域的边界。" #: doc/classes/BakedLightmap.xml msgid "" "Deprecated, in previous versions it determined the location where lightmaps " "were be saved." msgstr "已废弃,在以前的版本中,它决定了光照贴图的保存位置。" #: doc/classes/BakedLightmap.xml msgid "The calculated light data." msgstr "计算出的光照数据。" #: doc/classes/BakedLightmap.xml msgid "" "Determines the amount of samples per texel used in indirect light baking. " "The amount of samples for each quality level can be configured in the " "project settings." msgstr "" "决定在不正确的光照烘焙中每一个纹素的采样量。可以在项目设置中配置每个质量级别" "的采样量。" #: doc/classes/BakedLightmap.xml msgid "" "Store full color values in the lightmap textures. When disabled, lightmap " "textures will store a single brightness channel. Can be disabled to reduce " "disk usage if the scene contains only white lights or you don't mind losing " "color information in indirect lighting." msgstr "" "在光照贴图纹理中存储全色值。禁用时,光照贴图纹理将存储单个亮度通道。如果场景" "仅包含白光或者您不介意在间接照明中丢失颜色信息,则可以禁用以减少磁盘使用量。" #: doc/classes/BakedLightmap.xml msgid "" "When enabled, a lightmap denoiser will be used to reduce the noise inherent " "to Monte Carlo based global illumination." msgstr "" "启用后,将使用光照贴图降噪器来减少基于Monte Carlo的全局照明固有的噪声。" #: doc/classes/BakedLightmap.xml msgid "" "If [code]true[/code], stores the lightmap textures in a high dynamic range " "format (EXR). If [code]false[/code], stores the lightmap texture in a low " "dynamic range PNG image. This can be set to [code]false[/code] to reduce " "disk usage, but light values over 1.0 will be clamped and you may see " "banding caused by the reduced precision.\n" "[b]Note:[/b] Setting [member use_hdr] to [code]true[/code] will decrease " "lightmap banding even when using the GLES2 backend or if [member " "ProjectSettings.rendering/quality/depth/hdr] is [code]false[/code]." msgstr "" "如果为 [code]true[/code],则以高动态范围格式(EXR)存储光照贴图纹理。如果为 " "[code]false[/code],则将光照贴图纹理存储在低动态范围的 PNG 图像中。这可以设置" "为 [code]false[/code] 以减少磁盘占用,但超过 1.0 的光照值将被限制,你可能会看" "到因精度降低而导致的条纹。\n" "[b]注意:[/b]将 [member use_hdr] 设置为 [code]true[/code] 可以降低光照贴图的" "条纹,即使使用的是 GLES2 后端或 [member ProjectSettings.rendering/quality/" "depth/hdr] 为 [code]false[/code]。" #: doc/classes/BakedLightmap.xml msgid "The lowest bake quality mode. Fastest to calculate." msgstr "最低烘焙质量模式。计算速度最快。" #: doc/classes/BakedLightmap.xml msgid "The default bake quality mode." msgstr "默认烘焙质量模式。" #: doc/classes/BakedLightmap.xml msgid "A higher bake quality mode. Takes longer to calculate." msgstr "更高的烘焙质量模式。需要更长的时间来计算。" #: doc/classes/BakedLightmap.xml msgid "The highest bake quality mode. Takes the longest to calculate." msgstr "最高的烘焙质量模式。需要最长的时间来计算。" #: doc/classes/BakedLightmap.xml msgid "Baking was successful." msgstr "烘焙成功。" #: doc/classes/BakedLightmap.xml msgid "" "Returns if no viable save path is found. This can happen where an [member " "image_path] is not specified or when the save location is invalid." msgstr "" "如果没有找到合适的保存路径,则返回。这可能发生在没有指定[member image_path]或" "者保存位置无效的情况下。" #: doc/classes/BakedLightmap.xml doc/classes/SpatialMaterial.xml msgid "Currently unused." msgstr "当前未使用." #: doc/classes/BakedLightmap.xml msgid "Returns when the baker cannot save per-mesh textures to file." msgstr "当烘焙器不能将每个网格的纹理保存到文件时返回。" #: doc/classes/BakedLightmap.xml msgid "The size of the generated lightmaps is too large." msgstr "生成的光照贴图尺寸过大。" #: doc/classes/BakedLightmap.xml msgid "Some mesh contains UV2 values outside the [code][0,1][/code] range." msgstr "有些网格包含 [code][0,1][/code] 范围以外的 UV2 值。" #: doc/classes/BakedLightmap.xml msgid "Returns if user cancels baking." msgstr "返回用户是否取消了烘焙。" #: doc/classes/BakedLightmap.xml msgid "" "Returns if lightmapper can't be created. Unless you are using a custom " "lightmapper, please report this as bug." msgstr "" "如果不能创建光照贴图器,则返回。除非你使用的是自定义的光照贴图器,否则请将此" "报告为bug。" #: doc/classes/BakedLightmap.xml msgid "" "There is no root node to start baking from. Either provide [code]from_node[/" "code] argument or attach this node to a parent that should be used as root." msgstr "" "没有根节点可以开始烘焙。要么提供[code]from_node[/code]参数,要么将此节点附加" "到一个被用作根节点的父节点。" #: doc/classes/BakedLightmap.xml msgid "No environment is used during baking." msgstr "烘焙过程中不使用任何环境。" #: doc/classes/BakedLightmap.xml msgid "The baked environment is automatically picked from the current scene." msgstr "烘焙环境会自动从当前场景中获取。" #: doc/classes/BakedLightmap.xml msgid "A custom sky is used as environment during baking." msgstr "在烘焙过程中使用自定义天空作为环境。" #: doc/classes/BakedLightmap.xml msgid "A custom solid color is used as environment during baking." msgstr "烘焙过程中使用自定义纯色作为环境。" #: doc/classes/BakedLightmapData.xml msgid "" "Global energy multiplier for baked and dynamic capture objects. This can be " "changed at run-time without having to bake lightmaps again.\n" "To adjust only the energy of indirect lighting (without affecting direct " "lighting or emissive materials), adjust [member BakedLightmap." "bounce_indirect_energy] and bake lightmaps again." msgstr "" "烘焙和动态捕获对象的全局能量乘数。这可以在运行时更改,而无需再次烘焙光照贴" "图。\n" "要仅调整间接照明的能量(即不影响直接照明或发光材质),请调整 [member " "BakedLightmap.bounce_indirect_energy] 并再次烘焙光照贴图。" #: doc/classes/BakedLightmapData.xml msgid "" "Controls whether dynamic capture objects receive environment lighting or not." msgstr "控制动态捕捉对象是否接收环境光照。" #: doc/classes/BaseButton.xml msgid "Base class for different kinds of buttons." msgstr "不同类型按钮的基类。" #: doc/classes/BaseButton.xml msgid "" "BaseButton is the abstract base class for buttons, so it shouldn't be used " "directly (it doesn't display anything). Other types of buttons inherit from " "it." msgstr "" "BaseButton是按钮的抽象基类,所以不应该直接使用它(它不显示任何东西)。其他类" "型的按钮都继承自它。" #: doc/classes/BaseButton.xml msgid "" "Called when the button is pressed. If you need to know the button's pressed " "state (and [member toggle_mode] is active), use [method _toggled] instead." msgstr "" "当按钮被按下时调用。如果你需要知道按钮被按下的状态(并且 [member toggle_mode] " "is active]是活动状态),请使用[method _toggled]代替。" #: doc/classes/BaseButton.xml msgid "" "Called when the button is toggled (only if [member toggle_mode] is active)." msgstr "当按钮被切换时调用(仅当 [member toggle_mode] 处于活动状态时)。" #: doc/classes/BaseButton.xml msgid "" "Returns the visual state used to draw the button. This is useful mainly when " "implementing your own draw code by either overriding _draw() or connecting " "to \"draw\" signal. The visual state of the button is defined by the [enum " "DrawMode] enum." msgstr "" "返回用于绘制按钮的视觉状态。当您通过覆盖 _draw() 或连接到“draw”信号来实现您自" "己的绘制代码时,这很有用。按钮的视觉状态由 [enum DrawMode] 枚举定义。" #: doc/classes/BaseButton.xml msgid "" "Returns [code]true[/code] if the mouse has entered the button and has not " "left it yet." msgstr "如果鼠标已进入按钮,且尚未离开,则返回 [code]true[/code]。" #: doc/classes/BaseButton.xml msgid "" "Changes the [member pressed] state of the button, without emitting [signal " "toggled]. Use when you just want to change the state of the button without " "sending the pressed event (e.g. when initializing scene). Only works if " "[member toggle_mode] is [code]true[/code].\n" "[b]Note:[/b] This method doesn't unpress other buttons in its button [member " "group]." msgstr "" "改变按钮的[member pressed]状态,不触发[signal toggled]。当你只想改变按钮的状" "态而不发送按下事件时使用(例如,在初始化场景时)。只有当[member toggle_mode]" "是[code]true[/code] 时才有效。\n" "[b]注意:[/b]这个方法不会释放其按钮[member group] 中的其他按钮。" #: doc/classes/BaseButton.xml msgid "" "Determines when the button is considered clicked, one of the [enum " "ActionMode] constants." msgstr "确定按钮何时被认为被点击,是 [enum ActionMode] 常量之一。" #: doc/classes/BaseButton.xml msgid "" "Binary mask to choose which mouse buttons this button will respond to.\n" "To allow both left-click and right-click, use [code]BUTTON_MASK_LEFT | " "BUTTON_MASK_RIGHT[/code]." msgstr "" "二进制掩码,用于选择该按钮将响应的鼠标按钮。\n" "要同时允许左键和右键,请使用 [code]BUTTON_MASK_LEFT | BUTTON_MASK_RIGHT[/" "code] 。" #: doc/classes/BaseButton.xml msgid "" "If [code]true[/code], the button is in disabled state and can't be clicked " "or toggled." msgstr "如果[code]true[/code],则该按钮处于禁用状态,无法点击或切换。" #: doc/classes/BaseButton.xml msgid "" "[i]Deprecated.[/i] This property has been deprecated due to redundancy and " "will be removed in Godot 4.0. This property no longer has any effect when " "set. Please use [member Control.focus_mode] instead." msgstr "" "[i]已弃用。[/i] 由于冗余,此属性已弃用,将在 Godot 4.0 中删除。此属性在设置后" "不会有任何影响。请改用 [member Control.focus_mode]。" #: doc/classes/BaseButton.xml msgid "[ButtonGroup] associated to the button." msgstr "与按钮相关联的[ButtonGroup]。" #: doc/classes/BaseButton.xml msgid "" "If [code]true[/code], the button stays pressed when moving the cursor " "outside the button while pressing it.\n" "[b]Note:[/b] This property only affects the button's visual appearance. " "Signals will be emitted at the same moment regardless of this property's " "value." msgstr "" "如果[code]true[/code],当按下按钮时将光标移到按钮外时,按钮会保持按下状态。\n" "[b]注意:[/b]该属性只影响按钮的视觉表现。无论该属性的值是多少,信号都会在同一" "时刻发出。" #: doc/classes/BaseButton.xml msgid "" "If [code]true[/code], the button's state is pressed. Means the button is " "pressed down or toggled (if [member toggle_mode] is active). Only works if " "[member toggle_mode] is [code]true[/code].\n" "[b]Note:[/b] Setting [member pressed] will result in [signal toggled] to be " "emitted. If you want to change the pressed state without emitting that " "signal, use [method set_pressed_no_signal]." msgstr "" "如果 [code]true[/code],按钮为按下状态。表示按钮被按下或切换(如果 [member " "toggle_mode] 处于激活状态)。仅当 [member toggle_mode] 为 [code]true[/code] " "时才有效。\n" "[b]注意:[/b]设置 [member pressed] 将导致 [signal toggled] 触发。如果你想在不" "触发该信号的情况下更改按下状态,请使用 [method set_pressed_no_signal]。" #: doc/classes/BaseButton.xml msgid "[ShortCut] associated to the button." msgstr "与按钮相关联的[ShortCut]。" #: doc/classes/BaseButton.xml msgid "" "If [code]true[/code], the button will add information about its shortcut in " "the tooltip." msgstr "如果[code]true[/code],按钮将在工具提示中添加其快捷方式的信息。" #: doc/classes/BaseButton.xml msgid "" "If [code]true[/code], the button is in toggle mode. Makes the button flip " "state between pressed and unpressed each time its area is clicked." msgstr "" "如果[code]true[/code],则按钮处于切换模式。使按钮在每次点击其区域时,在按下和" "未按下之间转换状态。" #: doc/classes/BaseButton.xml msgid "Emitted when the button starts being held down." msgstr "当按钮开始被按下时发出。" #: doc/classes/BaseButton.xml msgid "Emitted when the button stops being held down." msgstr "当按钮停止按下时发出。" #: doc/classes/BaseButton.xml msgid "" "Emitted when the button is toggled or pressed. This is on [signal " "button_down] if [member action_mode] is [constant ACTION_MODE_BUTTON_PRESS] " "and on [signal button_up] otherwise.\n" "If you need to know the button's pressed state (and [member toggle_mode] is " "active), use [signal toggled] instead." msgstr "" "当按钮被切换或按下时发出。如果 [member action_mode] 是 [constant " "ACTION_MODE_BUTTON_PRESS],则在 [signal button_down] 上,否则在 [signal " "button_up] 上。\n" "如果您需要知道按钮的按压状态(并且 [member toggle_mode] 是活动的),请使用" "[signal toggled]代替。" #: doc/classes/BaseButton.xml msgid "" "Emitted when the button was just toggled between pressed and normal states " "(only if [member toggle_mode] is active). The new state is contained in the " "[code]button_pressed[/code] argument." msgstr "" "当按钮刚刚在按下和正常状态之间切换时发出(仅当[member toggle_mode]处于活动状态" "时)。新状态包含在[code]button_pressed[/code]参数中。" #: doc/classes/BaseButton.xml msgid "" "The normal state (i.e. not pressed, not hovered, not toggled and enabled) of " "buttons." msgstr "按钮的正常状态(即没有按下、没有悬停、没有切换和启用)。" #: doc/classes/BaseButton.xml msgid "The state of buttons are pressed." msgstr "按钮被按下的状态。" #: doc/classes/BaseButton.xml msgid "The state of buttons are hovered." msgstr "按钮的状态为悬停。" #: doc/classes/BaseButton.xml msgid "The state of buttons are disabled." msgstr "按钮的状态为禁用。" #: doc/classes/BaseButton.xml msgid "The state of buttons are both hovered and pressed." msgstr "按钮的状态既是悬停的,也是按下的。" #: doc/classes/BaseButton.xml msgid "Require just a press to consider the button clicked." msgstr "只需要按一下就可以认为按钮被点击了。" #: doc/classes/BaseButton.xml msgid "" "Require a press and a subsequent release before considering the button " "clicked." msgstr "要求按下后再释放,才算点击了按钮。" #: doc/classes/Basis.xml msgid "3×3 matrix datatype." msgstr "3×3矩阵数据类型。" #: doc/classes/Basis.xml msgid "" "3×3 matrix used for 3D rotation and scale. Almost always used as an " "orthogonal basis for a Transform.\n" "Contains 3 vector fields X, Y and Z as its columns, which are typically " "interpreted as the local basis vectors of a transformation. For such use, it " "is composed of a scaling and a rotation matrix, in that order (M = R.S).\n" "Can also be accessed as array of 3D vectors. These vectors are normally " "orthogonal to each other, but are not necessarily normalized (due to " "scaling).\n" "For more information, read the \"Matrices and transforms\" documentation " "article." msgstr "" "用于 3D 旋转和缩放的 3×3 矩阵。几乎总是用作变换的正交基。\n" "包含 3 个向量字段 X、Y 和 Z 作为其列,通常被解释为变换的局部基向量。对于这种" "用途,它由一个缩放矩阵和一个旋转矩阵组成,依次为 (M=R.S)。\n" "也可以作为三维向量的数组来访问。这些向量通常是相互正交的,但不一定是归一化的" "(由于缩放)。\n" "更多信息请阅读文档中的《矩阵和变换》一文。" #: doc/classes/Basis.xml doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "Matrices and transforms" msgstr "矩阵与变换" #: doc/classes/Basis.xml doc/classes/Quat.xml doc/classes/Transform.xml msgid "Using 3D transforms" msgstr "使用 3D 变换" #: doc/classes/Basis.xml doc/classes/Line2D.xml doc/classes/Transform.xml #: doc/classes/Transform2D.xml doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "Matrix Transform Demo" msgstr "矩阵变换演示" #: doc/classes/Basis.xml doc/classes/CylinderShape.xml #: doc/classes/Dictionary.xml doc/classes/DynamicFont.xml #: doc/classes/DynamicFontData.xml doc/classes/File.xml doc/classes/Input.xml #: doc/classes/InputEvent.xml doc/classes/InputEventAction.xml #: doc/classes/InputEventMouseMotion.xml doc/classes/KinematicBody.xml #: doc/classes/RayCast.xml doc/classes/StaticBody.xml #: doc/classes/SurfaceTool.xml doc/classes/TextureButton.xml #: doc/classes/TextureRect.xml doc/classes/Thread.xml #: doc/classes/VBoxContainer.xml msgid "3D Voxel Demo" msgstr "3D 体素演示" #: doc/classes/Basis.xml doc/classes/Line2D.xml doc/classes/Transform.xml #: doc/classes/Transform2D.xml msgid "2.5D Demo" msgstr "2.5D 演示" #: doc/classes/Basis.xml msgid "Constructs a pure rotation basis matrix from the given quaternion." msgstr "根据给定的四元数构造一个纯旋转基矩阵。" #: doc/classes/Basis.xml msgid "" "Constructs a pure rotation basis matrix from the given Euler angles (in the " "YXZ convention: when *composing*, first Y, then X, and Z last), given in the " "vector format as (X angle, Y angle, Z angle).\n" "Consider using the [Quat] constructor instead, which uses a quaternion " "instead of Euler angles." msgstr "" "根据给定的欧拉角构造一个纯旋转的基矩阵(按照 YXZ 惯例:当*合成*时,先 Y、然" "后 X、最后 Z),向量格式为(X 角、Y 角、Z 角)。\n" "可以考虑使用 [Quat] 构造函数代替,它使用四元组代替欧拉角。" #: doc/classes/Basis.xml msgid "" "Constructs a pure rotation basis matrix, rotated around the given " "[code]axis[/code] by [code]angle[/code] (in radians). The axis must be a " "normalized vector." msgstr "" "构造一个纯旋转的基矩阵,围绕给定的轴 [code]axis[/code] 旋转 [code]angle[/" "code](单位为弧度)。该轴必须是归一化向量。" #: doc/classes/Basis.xml msgid "Constructs a basis matrix from 3 axis vectors (matrix columns)." msgstr "从 3 个轴向量(矩阵列)构造一个基矩阵。" #: doc/classes/Basis.xml msgid "" "Returns the determinant of the basis matrix. If the basis is uniformly " "scaled, its determinant is the square of the scale.\n" "A negative determinant means the basis has a negative scale. A zero " "determinant means the basis isn't invertible, and is usually considered " "invalid." msgstr "" "返回基矩阵的行列式。如果基是均匀缩放的,它的行列式是缩放的平方。\n" "负的行列式意味着基的比例是负的。负的行列式意味着基不可逆,通常被认为无效。" #: doc/classes/Basis.xml msgid "" "Returns the basis's rotation in the form of Euler angles (in the YXZ " "convention: when decomposing, first Z, then X, and Y last). The returned " "vector contains the rotation angles in the format (X angle, Y angle, Z " "angle).\n" "Consider using the [method get_rotation_quat] method instead, which returns " "a [Quat] quaternion instead of Euler angles." msgstr "" "以欧拉角的形式返回基的旋转角度(按照 YXZ 惯例:分解时,先 Z、再 X、最后 Y)。" "返回的向量包含格式为(X角、Y角、Z角)的旋转角。\n" "可以考虑使用 [method get_rotation_quat] 代替,该方法返回的是 [Quat] 四元组而" "不是欧拉角。" #: doc/classes/Basis.xml msgid "" "This function considers a discretization of rotations into 24 points on unit " "sphere, lying along the vectors (x,y,z) with each component being either -1, " "0, or 1, and returns the index of the point best representing the " "orientation of the object. It is mainly used by the [GridMap] editor. For " "further details, refer to the Godot source code." msgstr "" "这个函数考虑将单位球面上的旋转分解成 24 个点,沿向量 (x,y,z) 放置,每个分量" "为 -1、0 或 1,并返回最能代表物体方向的点的索引。它主要由 [GridMap] 编辑器使" "用。更多细节请参考 Godot 源码。" #: doc/classes/Basis.xml msgid "" "Returns the basis's rotation in the form of a quaternion. See [method " "get_euler] if you need Euler angles, but keep in mind quaternions should " "generally be preferred to Euler angles." msgstr "" "以四元数的形式返回基的旋转。如果你需要欧拉角,请参阅 [method get_euler] 方" "法,但通常首选四元数而不是欧拉角。" #: doc/classes/Basis.xml msgid "" "Assuming that the matrix is the combination of a rotation and scaling, " "return the absolute value of scaling factors along each axis." msgstr "假设矩阵是旋转和缩放的组合,返回沿各轴缩放系数的绝对值。" #: doc/classes/Basis.xml msgid "Returns the inverse of the matrix." msgstr "返回矩阵的逆值。" #: doc/classes/Basis.xml msgid "" "Returns [code]true[/code] if this basis and [code]b[/code] are approximately " "equal, by calling [code]is_equal_approx[/code] on each component.\n" "[b]Note:[/b] For complicated reasons, the epsilon argument is always " "discarded. Don't use the epsilon argument, it does nothing." msgstr "" "如果这个基和 [code]b[/code] 近似相等,返回 [code]true[/code],比较是通过对每" "个分量调用 [code]is_equal_approx[/code] 完成的。\n" "[b]注意:[/b]由于复杂的原因,epsilon参数总是被丢弃,不要使用它,它没有任何作" "用。" #: doc/classes/Basis.xml msgid "" "Returns the orthonormalized version of the matrix (useful to call from time " "to time to avoid rounding error for orthogonal matrices). This performs a " "Gram-Schmidt orthonormalization on the basis of the matrix." msgstr "" "返回矩阵的正交归一化版本(对于正交矩阵来说,偶尔调用以避免四舍五入错误是有用" "的)。这将在矩阵的基上执行 Gram-Schmidt 正交化。" #: doc/classes/Basis.xml msgid "" "Introduce an additional rotation around the given axis by [code]angle[/code] " "(in radians). The axis must be a normalized vector." msgstr "" "围绕给定轴线引入一个额外的旋转 [code]angle[/code](单位为弧度)。该轴必须是一" "个归一化的向量。" #: doc/classes/Basis.xml msgid "" "Introduce an additional scaling specified by the given 3D scaling factor." msgstr "引入一个由给定的3D缩放因子指定的附加缩放。" #: doc/classes/Basis.xml msgid "" "Assuming that the matrix is a proper rotation matrix, slerp performs a " "spherical-linear interpolation with another rotation matrix." msgstr "" "假设该矩阵是一个合适的旋转矩阵,slerp与另一个旋转矩阵进行球面直线插值。" #: doc/classes/Basis.xml msgid "Transposed dot product with the X axis of the matrix." msgstr "与矩阵 X 轴的转置点积。" #: doc/classes/Basis.xml msgid "Transposed dot product with the Y axis of the matrix." msgstr "与矩阵 Y 轴的转置点积。" #: doc/classes/Basis.xml msgid "Transposed dot product with the Z axis of the matrix." msgstr "与矩阵 Z 轴的转置点积。" #: doc/classes/Basis.xml msgid "Returns the transposed version of the matrix." msgstr "返回矩阵的转置版本。" #: doc/classes/Basis.xml msgid "Returns a vector transformed (multiplied) by the matrix." msgstr "返回一个被矩阵变换(乘法)的向量。" #: doc/classes/Basis.xml msgid "" "Returns a vector transformed (multiplied) by the transposed basis matrix.\n" "[b]Note:[/b] This results in a multiplication by the inverse of the matrix " "only if it represents a rotation-reflection." msgstr "" "返回一个由转置基矩阵变换(乘法)的向量。\n" "[b]注意:[/b]只有当矩阵代表旋转反射时,才会产生矩阵的反相乘法。" #: doc/classes/Basis.xml doc/classes/Transform2D.xml msgid "" "The basis matrix's X vector (column 0). Equivalent to array index [code]0[/" "code]." msgstr "基矩阵的 X 向量(第 0 列)。等效于数组索引 [code]0[/code]。" #: doc/classes/Basis.xml doc/classes/Transform2D.xml msgid "" "The basis matrix's Y vector (column 1). Equivalent to array index [code]1[/" "code]." msgstr "基矩阵的 Y 向量(第 1 列)。相当于数组索引 [code]1[/code]。" #: doc/classes/Basis.xml msgid "" "The basis matrix's Z vector (column 2). Equivalent to array index [code]2[/" "code]." msgstr "基矩阵的 Z 向量(第 2 列)。相当于数组索引 [code]2[/code]。" #: doc/classes/Basis.xml msgid "" "The identity basis, with no rotation or scaling applied.\n" "This is identical to calling [code]Basis()[/code] without any parameters. " "This constant can be used to make your code clearer, and for consistency " "with C#." msgstr "" "恒等基,未应用旋转或缩放。\n" "这与不带任何参数调用 [code]Basis()[/code] 是一样的。这个常量可以用来让你的代" "码更清晰,并与 C# 保持一致。" #: doc/classes/Basis.xml msgid "" "The basis that will flip something along the X axis when used in a " "transformation." msgstr "在变换中使用时,会沿 X 轴翻转某物的基。" #: doc/classes/Basis.xml msgid "" "The basis that will flip something along the Y axis when used in a " "transformation." msgstr "在变换中使用时,会沿 Y 轴翻转某物的基。" #: doc/classes/Basis.xml msgid "" "The basis that will flip something along the Z axis when used in a " "transformation." msgstr "在变换中使用时,会沿 Z 轴翻转某物的基。" #: doc/classes/BitMap.xml msgid "Boolean matrix." msgstr "布尔矩阵。" #: doc/classes/BitMap.xml msgid "" "A two-dimensional array of boolean values, can be used to efficiently store " "a binary matrix (every matrix element takes only one bit) and query the " "values using natural cartesian coordinates." msgstr "" "布尔值二维数组,可以用来高效存储二进制矩阵(每个矩阵元素只占一个比特位),并" "使用自然的笛卡尔坐标查询数值。" #: doc/classes/BitMap.xml msgid "" "Returns an image of the same size as the bitmap and with a [enum Image." "Format] of type [code]FORMAT_L8[/code]. [code]true[/code] bits of the bitmap " "are being converted into white pixels, and [code]false[/code] bits into " "black." msgstr "" "返回与该位图尺寸一致的图像,格式 [enum Image.Format] 为 [code]FORMAT_L8[/" "code]。该位图中为 [code]true[/code] 的位会被转为白色像素,为 [code]false[/" "code] 的位会被转为黑色像素。" #: doc/classes/BitMap.xml msgid "" "Creates a bitmap with the specified size, filled with [code]false[/code]." msgstr "创建一个指定尺寸的位图,用[code]false[/code]填充。" #: doc/classes/BitMap.xml msgid "" "Creates a bitmap that matches the given image dimensions, every element of " "the bitmap is set to [code]false[/code] if the alpha value of the image at " "that position is equal to [code]threshold[/code] or less, and [code]true[/" "code] in other case." msgstr "" "创建一个与给定图像尺寸相匹配的位图,如果图像在该位置的 Alpha 值等于 " "[code]threshold[/code] 或更小,则位图的每个元素都设置为 [code]false[/code]," "其他情况下为 [code]true[/code]。" #: doc/classes/BitMap.xml msgid "Returns bitmap's value at the specified position." msgstr "返回位图在指定位置的值。" #: doc/classes/BitMap.xml msgid "Returns bitmap's dimensions." msgstr "返回位图的尺寸。" #: doc/classes/BitMap.xml msgid "" "Returns the amount of bitmap elements that are set to [code]true[/code]." msgstr "返回设置为 [code]true[/code]的位图元素的数量。" #: doc/classes/BitMap.xml msgid "" "Applies morphological dilation or erosion to the bitmap. If [code]pixels[/" "code] is positive, dilation is applied to the bitmap. If [code]pixels[/code] " "is negative, erosion is applied to the bitmap. [code]rect[/code] defines the " "area where the morphological operation is applied. Pixels located outside " "the [code]rect[/code] are unaffected by [method grow_mask]." msgstr "" "对位图进行形态学膨胀或腐蚀操作。如果 [code]pixels[/code] 为正,则对位图执行膨" "胀。如果 [code]pixels[/code] 为负,则对位图执行腐蚀。[code]rect[/code] 定义进" "行形态学操作的区域。位于 [code]rect[/code] 之外的像素不会被 [method " "grow_mask] 影响。" #: doc/classes/BitMap.xml msgid "Resizes the image to [code]new_size[/code]." msgstr "将图像修改为新尺寸 [code]new_size[/code]。" #: doc/classes/BitMap.xml msgid "" "Sets the bitmap's element at the specified position, to the specified value." msgstr "将位图中指定位置的元素设置为指定值。" #: doc/classes/BitMap.xml msgid "Sets a rectangular portion of the bitmap to the specified value." msgstr "将位图的矩形部分设置为指定值。" #: doc/classes/BitmapFont.xml msgid "" "Renders text using fonts under the [url=https://www.angelcode.com/products/" "bmfont/]BMFont[/url] format.\n" "Handles files with the [code].fnt[/code] extension." msgstr "" "使用[url=https://www.angelcode.com/products/bmfont/]BMFont[/url]格式的字体来" "渲染文本。\n" "处理扩展名为[code].fnt[/code]的文件。" #: doc/classes/BitmapFont.xml msgid "" "Renders text using [code]*.fnt[/code] fonts containing texture atlases. " "Supports distance fields. For using vector font files like TTF directly, see " "[DynamicFont]." msgstr "" "使用 [code]*.fnt[/code] 包含纹理图库的字体来渲染文本。支持距离场。关于直接使" "用 TTF 等矢量字体文件,请参阅 [DynamicFont]。" #: doc/classes/BitmapFont.xml msgid "" "Adds a character to the font, where [code]character[/code] is the Unicode " "value, [code]texture[/code] is the texture index, [code]rect[/code] is the " "region in the texture (in pixels!), [code]align[/code] is the (optional) " "alignment for the character and [code]advance[/code] is the (optional) " "advance." msgstr "" "添加一个字符到字体中,其中[code]character[/code]是Unicode值,[code]texture[/" "code]是纹理索引,[code]rect[/code]是纹理中的区域(以像素为单位!)," "[code]align[/code]是字符的对齐方式(可选),[code]advance[/code]是前进方式" "(可选)。" #: doc/classes/BitmapFont.xml msgid "" "Adds a kerning pair to the [BitmapFont] as a difference. Kerning pairs are " "special cases where a typeface advance is determined by the next character." msgstr "" "在 [BitmapFont] 中为字偶添加差值。字偶(距)是一种特殊情况,当前字体的前进量" "由下一个字符决定。" #: doc/classes/BitmapFont.xml msgid "Adds a texture to the [BitmapFont]." msgstr "为[BitmapFont]添加一个纹理。" #: doc/classes/BitmapFont.xml msgid "Clears all the font data and settings." msgstr "清除所有字体数据和设置。" #: doc/classes/BitmapFont.xml msgid "" "Creates a BitmapFont from the [code]*.fnt[/code] file at [code]path[/code]." msgstr "从 [code]*.fnt[/code] 文件的 [code]path[/code] 处创建一个 BitmapFont。" #: doc/classes/BitmapFont.xml msgid "Returns a kerning pair as a difference." msgstr "返回字偶的差值。" #: doc/classes/BitmapFont.xml msgid "Returns the font atlas texture at index [code]idx[/code]." msgstr "返回位于索引[code]idx[/code]处的字体Atlas纹理。" #: doc/classes/BitmapFont.xml msgid "Returns the number of textures in the BitmapFont atlas." msgstr "返回BitmapFont图谱中纹理的数量。" #: doc/classes/BitmapFont.xml msgid "Ascent (number of pixels above the baseline)." msgstr "上升(基线以上的像素数)。" #: doc/classes/BitmapFont.xml msgid "If [code]true[/code], distance field hint is enabled." msgstr "如果[code]true[/code],则启用距离场提示。" #: doc/classes/BitmapFont.xml msgid "The fallback font." msgstr "备用字体。" #: doc/classes/BitmapFont.xml msgid "Total font height (ascent plus descent) in pixels." msgstr "字体总高度(上升加下降),单位为像素。" #: doc/classes/Bone2D.xml msgid "Joint used with [Skeleton2D] to control and animate other nodes." msgstr "与 [Skeleton2D] 一起使用的关节,用于控制其他节点并使其具有动画效果。" #: doc/classes/Bone2D.xml msgid "" "Use a hierarchy of [code]Bone2D[/code] bound to a [Skeleton2D] to control, " "and animate other [Node2D] nodes.\n" "You can use [code]Bone2D[/code] and [code]Skeleton2D[/code] nodes to animate " "2D meshes created with the Polygon 2D UV editor.\n" "Each bone has a [member rest] transform that you can reset to with [method " "apply_rest]. These rest poses are relative to the bone's parent.\n" "If in the editor, you can set the rest pose of an entire skeleton using a " "menu option, from the code, you need to iterate over the bones to set their " "individual rest poses." msgstr "" "使用绑定到 [Skeleton2D] 的 [code]Bone2D[/code] 的层次结构来控制,并对其他 " "[Node2D] 节点进行动画。\n" "您可以使用 [code]Bone2D[/code] 和 [code]Skeleton2D[/code] 节点对使用 Polygon " "2D UV 编辑器创建的 2D 网格进行动画制作。\n" "每个骨骼都有一个 [member rest] 变换,你可以用 [method apply_rest] 来重置。这" "些放松姿势是相对于骨的父节点而言的。\n" "如果在编辑器中,你可以使用菜单选项设置整个骨架的放松姿势,从代码中,你需要遍" "历骨骼来设置它们各自的放松姿势。" #: doc/classes/Bone2D.xml msgid "Stores the node's current transforms in [member rest]." msgstr "将节点当前的变换存储在[member rest]中。" #: doc/classes/Bone2D.xml msgid "" "Returns the node's index as part of the entire skeleton. See [Skeleton2D]." msgstr "返回节点的索引,作为整个骨架的一部分。请参阅 [Skeleton2D]。" #: doc/classes/Bone2D.xml msgid "" "Returns the node's [member rest] [code]Transform2D[/code] if it doesn't have " "a parent, or its rest pose relative to its parent." msgstr "" "如果节点没有父节点,返回节点的 [member rest] [code]Transform2D[/code],或者返" "回它相对于父节点的放松姿势。" #: doc/classes/Bone2D.xml msgid "" "Length of the bone's representation drawn in the editor's viewport in pixels." msgstr "在编辑器的视窗中绘制的骨骼的长度,单位为像素。" #: doc/classes/Bone2D.xml msgid "" "Rest transform of the bone. You can reset the node's transforms to this " "value using [method apply_rest]." msgstr "" "骨骼的静止变换。您可以使用[method apply_rest]将节点的变换重置为这个值。" #: doc/classes/BoneAttachment.xml msgid "A node that will attach to a bone." msgstr "一个会附着在骨骼上的节点。" #: doc/classes/BoneAttachment.xml msgid "" "This node must be the child of a [Skeleton] node. You can then select a bone " "for this node to attach to. The BoneAttachment node will copy the transform " "of the selected bone." msgstr "" "此节点必须是 [Skeleton] 节点的子节点。然后,你可以为此节点选择要附加的骨骼。 " "BoneAttachment 节点将拷贝所选骨骼的变换。" #: doc/classes/BoneAttachment.xml msgid "The name of the attached bone." msgstr "附着骨骼的名称。" #: doc/classes/bool.xml msgid "Boolean built-in type." msgstr "布尔型内置型。" #: doc/classes/bool.xml msgid "" "Boolean is a built-in type. There are two boolean values: [code]true[/code] " "and [code]false[/code]. You can think of it as a switch with on or off (1 or " "0) setting. Booleans are used in programming for logic in condition " "statements, like [code]if[/code] statements.\n" "Booleans can be directly used in [code]if[/code] statements. The code below " "demonstrates this on the [code]if can_shoot:[/code] line. You don't need to " "use [code]== true[/code], you only need [code]if can_shoot:[/code]. " "Similarly, use [code]if not can_shoot:[/code] rather than [code]== false[/" "code].\n" "[codeblock]\n" "var can_shoot = true\n" "\n" "func shoot():\n" " if can_shoot:\n" " pass # Perform shooting actions here.\n" "[/codeblock]\n" "The following code will only create a bullet if both conditions are met: " "action \"shoot\" is pressed and if [code]can_shoot[/code] is [code]true[/" "code].\n" "[b]Note:[/b] [code]Input.is_action_pressed(\"shoot\")[/code] is also a " "boolean that is [code]true[/code] when \"shoot\" is pressed and [code]false[/" "code] when \"shoot\" isn't pressed.\n" "[codeblock]\n" "var can_shoot = true\n" "\n" "func shoot():\n" " if can_shoot and Input.is_action_pressed(\"shoot\"):\n" " create_bullet()\n" "[/codeblock]\n" "The following code will set [code]can_shoot[/code] to [code]false[/code] and " "start a timer. This will prevent player from shooting until the timer runs " "out. Next [code]can_shoot[/code] will be set to [code]true[/code] again " "allowing player to shoot once again.\n" "[codeblock]\n" "var can_shoot = true\n" "onready var cool_down = $CoolDownTimer\n" "\n" "func shoot():\n" " if can_shoot and Input.is_action_pressed(\"shoot\"):\n" " create_bullet()\n" " can_shoot = false\n" " cool_down.start()\n" "\n" "func _on_CoolDownTimer_timeout():\n" " can_shoot = true\n" "[/codeblock]" msgstr "" "布尔是内置类型。有两个布尔值。[code]true[/code]和[code]false[/code]。你可以把" "它想象成有开或关状态的开关(1或0)。布尔在编程中用于条件语句的逻辑,如" "[code]if[/code]语句。\n" "布尔可以直接用于[code]if[/code]语句中。下面的代码在[code]if can_shoot:[/code]" "行中演示了这一点。你不需要使用[code]==true[/code],你只需要[code]if " "can_shoot:[/code]。同样地,使用[code]if not can_shoot:[/code]而不是[code]== " "false[/code]。\n" "[codeblock]\n" "var can_shoot = true\n" "\n" "func shoot():\n" " if can_shoot:\n" " pass # 在此执行射击。\n" "[/codeblock]\n" "下面的代码只有在两个条件都满足的情况下才会产生子弹:动作“shoot”被按下,并且如" "果[code]can_shoot[/code]是[code]true[/code]。\n" "[b]注意:[/b][code]Input.is_action_pressed(\"shoot\")[/code]也是一个布尔值," "当“shoot”被按下时为 [code]true[/code],当“shoot”没有被按下时为 [code]false[/" "code]。\n" "[codeblock]\n" "var can_shoot = true\n" "\n" "func shoot():\n" " if can_shoot and Input.is_action_pressed(\"shoot\"):\n" " create_bullet()\n" "[/codeblock]\n" "下面的代码将把[code]can_shoot[/code]设置为 [code]false[/code]并启动一个定时" "器。这将阻止玩家射击,直到定时器用完。然后[code]can_shoot[/code]设置为 " "[code]true[/code],再次允许玩家进行射击。\n" "[codeblock]\n" "var can_shoot = true\n" "onready var cool_down = $CoolDownTimer\n" "\n" "func shoot():\n" " if can_shoot and Input.is_action_pressed(\"shoot\"):\n" " create_bullet()\n" " can_shoot = false\n" " cool_down.start()\n" "\n" "func _on_CoolDownTimer_timeout():\n" " can_shoot = true\n" "[/codeblock]" #: doc/classes/bool.xml msgid "" "Cast an [int] value to a boolean value, this method will return [code]false[/" "code] if [code]0[/code] is passed in, and [code]true[/code] for all other " "ints." msgstr "" "将 [int] 值转换为布尔值,传入 [code]0[/code] 时,本方法将返回 [code]false[/" "code],对于所有其他整数,本方法将返回 [code]true[/code]。" #: doc/classes/bool.xml msgid "" "Cast a [float] value to a boolean value, this method will return " "[code]false[/code] if [code]0.0[/code] is passed in, and [code]true[/code] " "for all other floats." msgstr "" "将 [float] 值转换为布尔值,如果传入 [code]0.0[/code],本方法将返回 " "[code]false[/code],对于其他所有的浮点数,本方法将返回 [code]true[/code]。" #: doc/classes/bool.xml msgid "" "Cast a [String] value to a boolean value, this method will return " "[code]false[/code] if [code]\"\"[/code] is passed in, and [code]true[/code] " "for all non-empty strings.\n" "Examples: [code]bool(\"False\")[/code] returns [code]true[/code], " "[code]bool(\"\")[/code] returns [code]false[/code]." msgstr "" "将 [String] 值转换为布尔值,如果传入 [code]\"\"[/code],本方法将返回 " "[code]false[/code],对于所有非空字符串,本方法将返回 [code]true[/code]。\n" "示例:[code]bool(\"False\")[/code] 返回 [code]true[/code],[code]bool(\"\")[/" "code] 返回 [code]false[/code]。" #: doc/classes/BoxContainer.xml msgid "Base class for box containers." msgstr "盒式容器的基类。" #: doc/classes/BoxContainer.xml msgid "" "Arranges child controls vertically or horizontally, and rearranges the " "controls automatically when their minimum size changes." msgstr "垂直或水平排列子控件,并在其最小尺寸更改时自动重新排列。" #: doc/classes/BoxContainer.xml msgid "" "Adds a control to the box as a spacer. If [code]true[/code], [code]begin[/" "code] will insert the spacer control in front of other children." msgstr "" "将控件添加到盒子作为间隔。如果 [code]true[/code], [code]begin[/code] 将在其他" "子级之前插入间隔控件。" #: doc/classes/BoxContainer.xml msgid "" "The alignment of the container's children (must be one of [constant " "ALIGN_BEGIN], [constant ALIGN_CENTER] or [constant ALIGN_END])." msgstr "" "容器子项的对齐方式,必须是 [constant ALIGN_BEGIN]、[constant ALIGN_CENTER] " "或 [constant ALIGN_END] 之一。" #: doc/classes/BoxContainer.xml msgid "Aligns children with the beginning of the container." msgstr "将子项与容器的开端对齐。" #: doc/classes/BoxContainer.xml msgid "Aligns children with the center of the container." msgstr "将子项与容器的中心对齐。" #: doc/classes/BoxContainer.xml msgid "Aligns children with the end of the container." msgstr "将子项与容器的末端对齐。" #: doc/classes/BoxShape.xml msgid "Box shape resource." msgstr "盒形资源。" #: doc/classes/BoxShape.xml msgid "3D box shape that can be a child of a [PhysicsBody] or [Area]." msgstr "3D 盒子形状,可以是 [PhysicsBody] 或 [Area] 的子项。" #: doc/classes/BoxShape.xml doc/classes/CapsuleShape.xml #: doc/classes/ConcavePolygonShape.xml doc/classes/ConvexPolygonShape.xml #: doc/classes/CylinderShape.xml doc/classes/ProjectSettings.xml #: doc/classes/RigidBody.xml doc/classes/SphereShape.xml #: doc/classes/StaticBody.xml msgid "3D Physics Tests Demo" msgstr "3D 物理测试演示" #: doc/classes/BoxShape.xml doc/classes/CollisionShape.xml #: modules/gridmap/doc_classes/GridMap.xml doc/classes/KinematicBody.xml #: doc/classes/Mesh.xml doc/classes/MeshInstance.xml #: doc/classes/MeshLibrary.xml msgid "3D Kinematic Character Demo" msgstr "3D 动力学角色演示" #: doc/classes/BoxShape.xml msgid "" "The box's half extents. The width, height and depth of this shape is twice " "the half extents." msgstr "盒子的一半范围。这种形状的宽度,高度和深度是一半范围的两倍。" #: doc/classes/Button.xml msgid "Standard themed Button." msgstr "标准主题按钮。" #: doc/classes/Button.xml msgid "" "Button is the standard themed button. It can contain text and an icon, and " "will display them according to the current [Theme].\n" "[b]Example of creating a button and assigning an action when pressed by code:" "[/b]\n" "[codeblock]\n" "func _ready():\n" " var button = Button.new()\n" " button.text = \"Click me\"\n" " button.connect(\"pressed\", self, \"_button_pressed\")\n" " add_child(button)\n" "\n" "func _button_pressed():\n" " print(\"Hello world!\")\n" "[/codeblock]\n" "Buttons (like all Control nodes) can also be created in the editor, but some " "situations may require creating them from code.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node.\n" "[b]Note:[/b] Buttons do not interpret touch input and therefore don't " "support multitouch, since mouse emulation can only press one button at a " "given time. Use [TouchScreenButton] for buttons that trigger gameplay " "movement or actions, as [TouchScreenButton] supports multitouch." msgstr "" "标准的主题按钮。它可以包含文字和图标,并根据当前的 [Theme]显示。\n" "[b]创建按钮并在按下代码时配置动作的示例:[/b]\n" "[codeblock]\n" "func _ready():\n" " var button = Button.new()\n" " button.text = \"Click me\"\n" " button.connect(\"pressed\", self, \"_button_pressed\")\n" " add_child(button)\n" "\n" "func _button_pressed():\n" " print(\"Hello world!\")\n" "[/codeblock]\n" "按钮像所有控件节点一样,也可以在编辑器中创建,但在某些情况下可能需要从代码中" "创建。\n" "参阅 [BaseButton],其中包括与此节点相关的通用属性和方法。\n" "[b]注意:[/b]按钮不处理触摸输入,因此不支持多点触控,因为模拟鼠标在给定时间只" "能按下一个按钮。将 [TouchScreenButton] 用于触发游戏移动或动作的按钮,因为 " "[TouchScreenButton] 支持多点触控。" #: doc/classes/Button.xml doc/classes/Dictionary.xml #: doc/classes/GridContainer.xml doc/classes/OS.xml #: doc/classes/PoolStringArray.xml doc/classes/ProjectSettings.xml #: doc/classes/ResourceLoader.xml doc/classes/RichTextLabel.xml msgid "OS Test Demo" msgstr "操作系统测试演示" #: doc/classes/Button.xml msgid "" "Text alignment policy for the button's text, use one of the [enum TextAlign] " "constants." msgstr "按钮文本的文本对齐策略,使用[enum TextAlign]常量之一。" #: doc/classes/Button.xml msgid "" "When this property is enabled, text that is too large to fit the button is " "clipped, when disabled the Button will always be wide enough to hold the " "text." msgstr "" "当此属性被启用时,过大而无法容纳按钮的文本会被剪掉,当被禁用时,按钮将始终有" "足够的宽度来容纳文本。" #: doc/classes/Button.xml msgid "" "When enabled, the button's icon will expand/shrink to fit the button's size " "while keeping its aspect." msgstr "启用后,按钮的图标将展开/收缩以适应按钮的大小,同时保持其外观。" #: doc/classes/Button.xml msgid "Flat buttons don't display decoration." msgstr "平面按钮不显示装饰。" #: doc/classes/Button.xml msgid "" "Button's icon, if text is present the icon will be placed before the text.\n" "To edit margin and spacing of the icon, use [code]hseparation[/code] theme " "property of [Button] and [code]content_margin_*[/code] properties of the " "used [StyleBox]es." msgstr "" "按钮的图标,存在文本时,图标会被放置于文本前方。\n" "如果想要编辑边距以及图标的间距,请使用 [Button] 的主题属性 " "[code]hseparation[/code] 以及所使用的 [StyleBox] 的 [code]content_margin_*[/" "code] 属性。" #: doc/classes/Button.xml msgid "" "Specifies if the icon should be aligned to the left, right, or center of a " "button. Uses the same [enum TextAlign] constants as the text alignment. If " "centered, text will draw on top of the icon." msgstr "" "指定图标应该在按钮上左对齐、右对齐、还是居中。请使用与文本对齐相同的 [enum " "TextAlign] 常量。如果居中,文本将绘制在图标上。" #: doc/classes/Button.xml doc/classes/LinkButton.xml msgid "The button's text that will be displayed inside the button's area." msgstr "按钮的文字,将显示在按钮的区域内。" #: doc/classes/Button.xml msgid "Align the text to the left." msgstr "将文本向左对齐。" #: doc/classes/Button.xml msgid "Align the text to the center." msgstr "将文本居中对齐。。" #: doc/classes/Button.xml msgid "Align the text to the right." msgstr "将文本向右对齐。" #: doc/classes/Button.xml msgid "Default text [Color] of the [Button]." msgstr "[Button]的默认文本[Color]。" #: doc/classes/Button.xml msgid "Text [Color] used when the [Button] is disabled." msgstr "禁用[Button]时使用的文本[Color]。" #: doc/classes/Button.xml msgid "" "Text [Color] used when the [Button] is focused. Only replaces the normal " "text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "当[Button]获得焦点时使用的文本[Color]。只取代按钮的正常文本颜色。禁用、悬停和" "按下状态优先于这个颜色。" #: doc/classes/Button.xml msgid "Text [Color] used when the [Button] is being hovered." msgstr "悬停[Button]时使用的文本[Color]。" #: doc/classes/Button.xml msgid "Text [Color] used when the [Button] is being pressed." msgstr "正在按下 [Button] 时使用的文本 [Color] 。" #: doc/classes/Button.xml msgid "The horizontal space between [Button]'s icon and text." msgstr "[Button]的图标和文本之间的水平间距。" #: doc/classes/Button.xml msgid "[Font] of the [Button]'s text." msgstr "[Button]文本的[Font]。" #: doc/classes/Button.xml msgid "[StyleBox] used when the [Button] is disabled." msgstr "当 [Button] 被禁用时,使用的 [StyleBox]。" #: doc/classes/Button.xml msgid "" "[StyleBox] used when the [Button] is focused. It is displayed over the " "current [StyleBox], so using [StyleBoxEmpty] will just disable the focus " "visual effect." msgstr "" "当[Button]获得焦点时使用的[StyleBox]。它显示在当前的[StyleBox]之上,所以使用" "[StyleBoxEmpty]只是禁用焦点视觉效果。" #: doc/classes/Button.xml msgid "[StyleBox] used when the [Button] is being hovered." msgstr "悬停[Button]时使用的[StyleBox]。" #: doc/classes/Button.xml msgid "Default [StyleBox] for the [Button]." msgstr "[Button]的默认[StyleBox]。" #: doc/classes/Button.xml msgid "[StyleBox] used when the [Button] is being pressed." msgstr "按下[Button]时使用的[StyleBox]。" #: doc/classes/ButtonGroup.xml msgid "Group of Buttons." msgstr "按钮组。" #: doc/classes/ButtonGroup.xml msgid "" "Group of [Button]. All direct and indirect children buttons become radios. " "Only one allows being pressed.\n" "[member BaseButton.toggle_mode] should be [code]true[/code]." msgstr "" "[Button] 组。所有直接和间接的子按钮都成为单选按钮。只有一个允许被按下。\n" "[member BaseButton.toggle_mode] 应该是 [code]true[/code]。" #: doc/classes/ButtonGroup.xml msgid "" "Returns an [Array] of [Button]s who have this as their [ButtonGroup] (see " "[member BaseButton.group])." msgstr "" "返回一个[Button]的[Array],这些[Button]的[ButtonGroup]都有这个功能(参阅" "[member BaseButton.group])。" #: doc/classes/ButtonGroup.xml msgid "Returns the current pressed button." msgstr "返回当前按下的按钮。" #: doc/classes/ButtonGroup.xml msgid "Emitted when one of the buttons of the group is pressed." msgstr "当该组中的一个按钮被按下时触发。" #: doc/classes/CallbackTweener.xml msgid "Calls the specified method after optional delay." msgstr "在可选的延迟之后调用指定的方法。" #: doc/classes/CallbackTweener.xml msgid "" "[CallbackTweener] is used to call a method in a tweening sequence. See " "[method SceneTreeTween.tween_callback] for more usage information.\n" "[b]Note:[/b] [method SceneTreeTween.tween_callback] is the only correct way " "to create [CallbackTweener]. Any [CallbackTweener] created manually will not " "function correctly." msgstr "" "[CallbackTweener] 可用于在补间序列中调用方法。更多用法信息请参阅 [method " "SceneTreeTween.tween_callback]。\n" "[b]注意:[/b]创建 [CallbackTweener] 的唯一正确方法是 [method SceneTreeTween." "tween_callback]。任何手动创建的 [CallbackTweener] 都无法正常工作。" #: doc/classes/CallbackTweener.xml msgid "" "Makes the callback call delayed by given time in seconds. Example:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_callback(queue_free).set_delay(2) #this will call queue_free() " "after 2 seconds\n" "[/codeblock]" msgstr "" "让该回调延迟给定的时间,单位为秒。示例:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_callback(queue_free).set_delay(2) # 会在 2 秒后调用 " "queue_free()\n" "[/codeblock]" #: doc/classes/Camera.xml msgid "Camera node, displays from a point of view." msgstr "相机节点,会从某个角度进行显示。" #: doc/classes/Camera.xml msgid "" "Camera is a special node that displays what is visible from its current " "location. Cameras register themselves in the nearest [Viewport] node (when " "ascending the tree). Only one camera can be active per viewport. If no " "viewport is available ascending the tree, the camera will register in the " "global viewport. In other words, a camera just provides 3D display " "capabilities to a [Viewport], and, without one, a scene registered in that " "[Viewport] (or higher viewports) can't be displayed." msgstr "" "相机是一个特殊节点,用于显示从其当前位置可见的内容。相机在最近的 [Viewport] " "节点中注册自己(当树上行)。每个视区只能激活一个相机。如果在树上没有可用的视" "区,相机将在全局视区中注册。换句话说,相机只是为 [Viewport] 提供 3D 显示能" "力,如果没有,则无法显示在该 [Viewport] 或更高视区中注册的场景。" #: doc/classes/Camera.xml msgid "" "If this is the current camera, remove it from being current. If " "[code]enable_next[/code] is [code]true[/code], request to make the next " "camera current, if any." msgstr "" "如果这是当前相机,则将其从当前相机中移除。如果[code]enable_next[/code]是" "[code]true[/code],请求使下一个相机成为当前相机(如果有)。" #: doc/classes/Camera.xml msgid "Returns the camera's RID from the [VisualServer]." msgstr "从 [VisualServer] 返回相机的 RID。" #: doc/classes/Camera.xml msgid "" "Returns the transform of the camera plus the vertical ([member v_offset]) " "and horizontal ([member h_offset]) offsets; and any other adjustments made " "to the position and orientation of the camera by subclassed cameras such as " "[ClippedCamera], [InterpolatedCamera] and [ARVRCamera]." msgstr "" "返回相机的变换加上垂直[member v_offset]和水平[member h_offset]的偏移量;以及" "由子类相机如[ClippedCamera]、[InterpolatedCamera]和[ARVRCamera]对相机的位置和" "方向做出的任何其他调整。" #: doc/classes/Camera.xml msgid "" "Returns [code]true[/code] if the given [code]layer[/code] in the [member " "cull_mask] is enabled, [code]false[/code] otherwise." msgstr "" "如果[member cull_mask]中给定的[code]layer[/code]被启用,返回 [code]true[/" "code],否则返回 [code]false[/code]。" #: doc/classes/Camera.xml msgid "" "Returns the camera's frustum planes in world space units as an array of " "[Plane]s in the following order: near, far, left, top, right, bottom. Not to " "be confused with [member frustum_offset]." msgstr "" "以世界空间单位将相机的视锥平面作为 [Plane] 数组按以下顺序返回:near、far、" "left、top、right、bottom。不要与 [member frustum_offset] 混淆。" #: doc/classes/Camera.xml msgid "" "Returns [code]true[/code] if the given position is behind the camera.\n" "[b]Note:[/b] A position which returns [code]false[/code] may still be " "outside the camera's field of view." msgstr "" "如果给定的位置在相机后面,返回 [code]true[/code]。\n" "[b]注意:[/b]返回 [code]false[/code]的位置可能仍然在相机的视野之外。" #: doc/classes/Camera.xml msgid "" "Makes this camera the current camera for the [Viewport] (see class " "description). If the camera node is outside the scene tree, it will attempt " "to become current once it's added." msgstr "" "使此相机成为 [Viewport] 的当前相机(见类的说明)。如果相机节点在场景树之外," "一旦添加,它将尝试成为当前相机。" #: doc/classes/Camera.xml msgid "" "Returns a normal vector from the screen point location directed along the " "camera. Orthogonal cameras are normalized. Perspective cameras account for " "perspective, screen width/height, etc." msgstr "" "返回从屏幕点位置沿相机方向的法向量。正交相机会被归一化。透视相机考虑到透视、" "屏幕宽度/高度等因素。" #: doc/classes/Camera.xml msgid "" "Returns the 3D point in world space that maps to the given 2D coordinate in " "the [Viewport] rectangle on a plane that is the given [code]z_depth[/code] " "distance into the scene away from the camera." msgstr "" "返回世界空间中的 3D 点,该点映射到平面上 [Viewport] 矩形中的给定 2D 坐标,该" "平面距离相机的场景为给定的 [code]z_depth[/code] 距离。" #: doc/classes/Camera.xml msgid "" "Returns a normal vector in world space, that is the result of projecting a " "point on the [Viewport] rectangle by the inverse camera projection. This is " "useful for casting rays in the form of (origin, normal) for object " "intersection or picking." msgstr "" "返回世界空间中的法线向量,即通过逆相机投影在 [Viewport] 矩形上投影一个点的结" "果。这对于以原点、法线,投射光线形式用于对象相交或拾取很有用。" #: doc/classes/Camera.xml msgid "" "Returns a 3D position in world space, that is the result of projecting a " "point on the [Viewport] rectangle by the inverse camera projection. This is " "useful for casting rays in the form of (origin, normal) for object " "intersection or picking." msgstr "" "返回世界空间中的 3D 坐标,即通过逆相机投影在 [Viewport] 矩形上投影一个点的结" "果。这对于以原点、法线,投射光线形式用于对象相交或拾取很有用。" #: doc/classes/Camera.xml msgid "" "Enables or disables the given [code]layer[/code] in the [member cull_mask]." msgstr "启用或禁用[member cull_mask]中给定的[code]layer[/code]。" #: doc/classes/Camera.xml msgid "" "Sets the camera projection to frustum mode (see [constant " "PROJECTION_FRUSTUM]), by specifying a [code]size[/code], an [code]offset[/" "code], and the [code]z_near[/code] and [code]z_far[/code] clip planes in " "world space units." msgstr "" "通过指定大小 [code]size[/code] 、偏移量 [code]offset[/code] 以及以世界空间为" "单位的 [code]z_near[/code] 和 [code]z_far[/code] 裁剪平面,将相机投影设置为视" "锥模式(请参阅 [constant PROJECTION_FRUSTUM])。" #: doc/classes/Camera.xml msgid "" "Sets the camera projection to orthogonal mode (see [constant " "PROJECTION_ORTHOGONAL]), by specifying a [code]size[/code], and the " "[code]z_near[/code] and [code]z_far[/code] clip planes in world space units. " "(As a hint, 2D games often use this projection, with values specified in " "pixels.)" msgstr "" "通过在世界空间单位中指定 [code]size[/code] 和 [code]z_near[/code] 和 " "[code]z_far[/code] 剪裁平面,将相机投影设置为正交模式,请参阅 [constant " "PROJECTION_ORTHOGONAL]。 (提示:2D 游戏经常使用这种投影,以像素为单位指定" "值。)" #: doc/classes/Camera.xml msgid "" "Sets the camera projection to perspective mode (see [constant " "PROJECTION_PERSPECTIVE]), by specifying a [code]fov[/code] (field of view) " "angle in degrees, and the [code]z_near[/code] and [code]z_far[/code] clip " "planes in world space units." msgstr "" "将摄像机的投影设置为透视模式,参阅[constant PROJECTION_PERSPECTIVE]),指定" "[code]fov[/code] 视野角度,单位度,以及世界空间单位的[code]z_near[/code]和" "[code]z_far[/code]裁剪平面。" #: doc/classes/Camera.xml msgid "" "Returns the 2D coordinate in the [Viewport] rectangle that maps to the given " "3D point in world space.\n" "[b]Note:[/b] When using this to position GUI elements over a 3D viewport, " "use [method is_position_behind] to prevent them from appearing if the 3D " "point is behind the camera:\n" "[codeblock]\n" "# This code block is part of a script that inherits from Spatial.\n" "# `control` is a reference to a node inheriting from Control.\n" "control.visible = not get_viewport().get_camera()." "is_position_behind(global_transform.origin)\n" "control.rect_position = get_viewport().get_camera()." "unproject_position(global_transform.origin)\n" "[/codeblock]" msgstr "" "返回 [Viewport] 矩形中的 2D 坐标,该坐标映射到世界空间中给定的 3D 点。\n" "[b]注意:[/b]当使用它来定位 3D 视区上的 GUI 元素时,如果 3D 点在相机后面,请" "使用 [method is_position_behind] 来防止它们显示。\n" "[codeblock]\n" "# 这个代码块是继承自 Spatial 的脚本的一部分。\n" "# `control`是对继承自 Control 的节点的引用。\n" "control.visible = not get_viewport().get_camera()." "is_position_behind(global_transform.origin)\n" "control.rect_position = get_viewport().get_camera()." "unproject_position(global_transform.origin)\n" "[/codeblock]" #: doc/classes/Camera.xml msgid "" "The culling mask that describes which 3D render layers are rendered by this " "camera." msgstr "描述此相机渲染哪些 3D 渲染层的剔除掩码。" #: doc/classes/Camera.xml msgid "" "If [code]true[/code], the ancestor [Viewport] is currently using this camera." msgstr "如果[code]true[/code],则说明祖级的[Viewport]当前正在使用这个摄像头。" #: doc/classes/Camera.xml msgid "" "If not [constant DOPPLER_TRACKING_DISABLED], this camera will simulate the " "[url=https://en.wikipedia.org/wiki/Doppler_effect]Doppler effect[/url] for " "objects changed in particular [code]_process[/code] methods. The Doppler " "effect is only simulated for [AudioStreamPlayer3D] nodes that have [member " "AudioStreamPlayer3D.doppler_tracking] set to a value other than [constant " "AudioStreamPlayer3D.DOPPLER_TRACKING_DISABLED].\n" "[b]Note:[/b] To toggle the Doppler effect preview in the editor, use the " "Perspective menu in the top-left corner of the 3D viewport and toggle " "[b]Enable Doppler[/b]." msgstr "" "如果不是 [constant DOPPLER_TRACKING_DISABLED],此相机将模拟[url=https://en." "wikipedia.org/wiki/Doppler_effect]多普勒效果[/url]的对象在特定 " "[code]_process[/code] 方法中的变化。多普勒效果只对 [member " "AudioStreamPlayer3D.doppler_tracking] 设置为 [constant AudioStreamPlayer3D." "DOPPLER_TRACKING_DISABLED] 以外的值的 [AudioStreamPlayer3D] 节点进行模拟。\n" "[b]注意:[/b]要在编辑器中切换多普勒效果预览,使用 3D 视区左上角的透视菜单,并" "切换为[b]启用多普勒[/b]。" #: doc/classes/Camera.xml msgid "The [Environment] to use for this camera." msgstr "此相机要使用的[Environment]。" #: doc/classes/Camera.xml msgid "" "The distance to the far culling boundary for this camera relative to its " "local Z axis." msgstr "该相机相对于其本地Z轴的远裁边界的距离。" #: doc/classes/Camera.xml msgid "" "The camera's field of view angle (in degrees). Only applicable in " "perspective mode. Since [member keep_aspect] locks one axis, [code]fov[/" "code] sets the other axis' field of view angle.\n" "For reference, the default vertical field of view value ([code]70.0[/code]) " "is equivalent to a horizontal FOV of:\n" "- ~86.07 degrees in a 4:3 viewport\n" "- ~96.50 degrees in a 16:10 viewport\n" "- ~102.45 degrees in a 16:9 viewport\n" "- ~117.06 degrees in a 21:9 viewport" msgstr "" "相机的视野角度,以度为单位。仅适用于透视模式。由于 [member keep_aspect] 锁定" "一个轴,因此 [code]fov[/code] 设置另一个轴的视角。\n" "作为参考,默认的垂直视野值([code]70.0[/code])等效于以下水平 FOV:\n" "- 在 4:3 视窗中约86.07 度\n" "- 在 16:10 视窗中约 96.50 度\n" "- 在 16:9 视窗中约102.45 度\n" "- 在 21:9 视窗中约117.06 度" #: doc/classes/Camera.xml msgid "" "The camera's frustum offset. This can be changed from the default to create " "\"tilted frustum\" effects such as [url=https://zdoom.org/wiki/Y-shearing]Y-" "shearing[/url]." msgstr "" "相机的机身偏移。可以更改默认值,以创建 \"倾斜frustum \"效果,如[url=https://" "zdoom.org/wiki/Y-shearing]Y-shearing[/url]。" #: doc/classes/Camera.xml msgid "The horizontal (X) offset of the camera viewport." msgstr "相机视窗的水平(X)偏移量。" #: doc/classes/Camera.xml msgid "" "The axis to lock during [member fov]/[member size] adjustments. Can be " "either [constant KEEP_WIDTH] or [constant KEEP_HEIGHT]." msgstr "" "在[member fov]/[member size]调整时要锁定的轴。可以是[constant KEEP_WIDTH]或" "[constant KEEP_HEIGHT]。" #: doc/classes/Camera.xml msgid "" "The distance to the near culling boundary for this camera relative to its " "local Z axis." msgstr "该相机相对于其本地Z轴到近裁边界的距离。" #: doc/classes/Camera.xml msgid "" "The camera's projection mode. In [constant PROJECTION_PERSPECTIVE] mode, " "objects' Z distance from the camera's local space scales their perceived " "size." msgstr "" "相机的投影模式。在[constant PROJECTION_PERSPECTIVE]模式下,物体与相机局部空间" "的Z距离会影响其感知的大小。" #: doc/classes/Camera.xml msgid "" "The camera's size measured as 1/2 the width or height. Only applicable in " "orthogonal and frustum modes. Since [member keep_aspect] locks on axis, " "[code]size[/code] sets the other axis' size length." msgstr "" "相机的尺寸,以 1/2 的宽度或高度为单位。仅适用于正交及视锥模式。由于 [member " "keep_aspect] 锁定在轴上,因此 [code]size[/code] 设置其他轴的尺寸长度。" #: doc/classes/Camera.xml msgid "The vertical (Y) offset of the camera viewport." msgstr "相机视窗的垂直(Y)偏移量。" #: doc/classes/Camera.xml msgid "" "Perspective projection. Objects on the screen becomes smaller when they are " "far away." msgstr "透视投影。物体距离相机屏幕越远显示就越小。" #: doc/classes/Camera.xml msgid "" "Orthogonal projection, also known as orthographic projection. Objects remain " "the same size on the screen no matter how far away they are." msgstr "正交投影,又称正交投影。物体无论距离多远,在屏幕上都保持相同的大小。" #: doc/classes/Camera.xml msgid "" "Frustum projection. This mode allows adjusting [member frustum_offset] to " "create \"tilted frustum\" effects." msgstr "" "Frustum投影。通过该模式可以调整[member frustum_offset]来创建 \"tilted " "frustum \"效果。" #: doc/classes/Camera.xml msgid "" "Preserves the horizontal aspect ratio; also known as Vert- scaling. This is " "usually the best option for projects running in portrait mode, as taller " "aspect ratios will benefit from a wider vertical FOV." msgstr "" "保留水平长宽比,也称为Vert-缩放。这通常是在纵向模式下运行的项目的最佳选择,因" "为较高的纵横比将从更宽的垂直视场中受益。" #: doc/classes/Camera.xml msgid "" "Preserves the vertical aspect ratio; also known as Hor+ scaling. This is " "usually the best option for projects running in landscape mode, as wider " "aspect ratios will automatically benefit from a wider horizontal FOV." msgstr "" "保留垂直长宽比,也称为 Hor+ 缩放。这通常是在横向模式下运行的项目的最佳选择," "因为较宽的纵横比会自动从较宽的水平视场中受益。" #: doc/classes/Camera.xml msgid "" "Disables [url=https://en.wikipedia.org/wiki/Doppler_effect]Doppler effect[/" "url] simulation (default)." msgstr "" "禁用[url=https://en.wikipedia.org/wiki/Doppler_effect]多普勒效应[/url]模拟" "(默认)。" #: doc/classes/Camera.xml msgid "" "Simulate [url=https://en.wikipedia.org/wiki/Doppler_effect]Doppler effect[/" "url] by tracking positions of objects that are changed in [code]_process[/" "code]. Changes in the relative velocity of this camera compared to those " "objects affect how audio is perceived (changing the audio's [member " "AudioStreamPlayer3D.pitch_scale])." msgstr "" "通过跟踪在 [code]_process[/code] 中改变的物体位置来模拟[url=https://zh." "wikipedia.org/wiki/%E5%A4%9A%E6%99%AE%E5%8B%92%E6%95%88%E5%BA%94]多普勒效应[/" "url]。与这些物体相比,该相机的相对速度的变化会影响音频的感知方式(改变音频的 " "[member AudioStreamPlayer3D.pitch_scale])。" #: doc/classes/Camera.xml msgid "" "Simulate [url=https://en.wikipedia.org/wiki/Doppler_effect]Doppler effect[/" "url] by tracking positions of objects that are changed in " "[code]_physics_process[/code]. Changes in the relative velocity of this " "camera compared to those objects affect how audio is perceived (changing the " "audio's [member AudioStreamPlayer3D.pitch_scale])." msgstr "" "通过跟踪在 [code]_process[/code] 中改变的物体位置来模拟[url=https://zh." "wikipedia.org/wiki/%E5%A4%9A%E6%99%AE%E5%8B%92%E6%95%88%E5%BA%94]多普勒效应[/" "url]。与这些物体相比,该相机的相对速度的变化会影响音频的感知方式(改变音频的 " "[member AudioStreamPlayer3D.pitch_scale])。" #: doc/classes/Camera2D.xml msgid "Camera node for 2D scenes." msgstr "2D 场景的相机节点。" #: doc/classes/Camera2D.xml msgid "" "Camera node for 2D scenes. It forces the screen (current layer) to scroll " "following this node. This makes it easier (and faster) to program scrollable " "scenes than manually changing the position of [CanvasItem]-based nodes.\n" "This node is intended to be a simple helper to get things going quickly, but " "more functionality may be desired to change how the camera works. To make " "your own custom camera node, inherit it from [Node2D] and change the " "transform of the canvas by setting [member Viewport.canvas_transform] in " "[Viewport] (you can obtain the current [Viewport] by using [method Node." "get_viewport]).\n" "Note that the [Camera2D] node's [code]position[/code] doesn't represent the " "actual position of the screen, which may differ due to applied smoothing or " "limits. You can use [method get_camera_screen_center] to get the real " "position." msgstr "" "用于 2D 场景的相机节点。它强制屏幕(当前层)跟随该节点滚动。与手动改变基于 " "[CanvasItem] 节点的坐标相比,这使得对可滚动场景进行编程更加容易和快捷。\n" "这个节点旨在成为简单的辅助工具,让事情便捷,但可能需要更多的功能来改变相机的" "工作方式。要制作自定义相机节点,则从 [Node2D] 继承,并通过设置 [Viewport] 中" "的 [member Viewport.canvas_transform] 来改变画布的变换(你可以通过使用 " "[method Node.get_viewport] 获得当前的 [Viewport])。\n" "请注意,[Camera2D] 节点的 [code]position[/code] 并不代表屏幕的实际坐标,它可" "能会因为应用的平滑或限制而有所不同。你可以使用 [method " "get_camera_screen_center] 来获取实际坐标。" #: doc/classes/Camera2D.xml doc/classes/TileMap.xml doc/classes/TileSet.xml msgid "2D Isometric Demo" msgstr "2D 等轴测演示" #: doc/classes/Camera2D.xml doc/classes/Environment.xml #: doc/classes/WorldEnvironment.xml msgid "2D HDR Demo" msgstr "2D HDR 演示" #: doc/classes/Camera2D.xml msgid "Aligns the camera to the tracked node." msgstr "将相机与跟踪的节点对齐。" #: doc/classes/Camera2D.xml msgid "" "Removes any [Camera2D] from the ancestor [Viewport]'s internal currently-" "assigned camera." msgstr "从父级[Viewport]的内部当前分配的相机中删除任何[Camera2D]。" #: doc/classes/Camera2D.xml msgid "Forces the camera to update scroll immediately." msgstr "强制相机立即更新滚动。" #: doc/classes/Camera2D.xml msgid "" "Returns the camera's [code]position[/code] (the tracked point the camera " "attempts to follow), relative to the origin.\n" "[b]Note:[/b] The returned value is not the same as [member Node2D.position] " "or [member Node2D.global_position], as it is affected by the [code]drag[/" "code] properties." msgstr "" "返回该摄像机的位置 [code]position[/code](该摄像机试图跟随的跟踪点),相对于" "原点。\n" "[b]注意:[/b]返回的值与 [member Node2D.position] 或 [member Node2D." "global_position] 均不相同,因为它会受到 [code]drag[/code] 属性的影响。" #: doc/classes/Camera2D.xml msgid "" "Returns the location of the [Camera2D]'s screen-center, relative to the " "origin.\n" "[b]Note:[/b] The real [code]position[/code] of the camera may be different, " "see [method get_camera_position]." msgstr "" "返回该 [Camera2D] 的屏幕中心位置,相对于原点。\n" "[b]注意:[/b]摄像机实际的位置 [code]position[/code] 可能是不同的,请参阅 " "[method get_camera_position]。" #: doc/classes/Camera2D.xml msgid "" "Returns the specified margin. See also [member drag_margin_bottom], [member " "drag_margin_top], [member drag_margin_left], and [member drag_margin_right]." msgstr "" "返回指定的边距。另请参阅[member drag_margin_bottom],[member " "drag_margin_top],[member drag_margin_left]和[member drag_margin_right]。" #: doc/classes/Camera2D.xml msgid "" "Returns the specified camera limit. See also [member limit_bottom], [member " "limit_top], [member limit_left], and [member limit_right]." msgstr "" "返回指定的相机限制。请参阅 [member limit_bottom]、[member limit_top]、" "[member limit_left]和[member limit_right]。" #: doc/classes/Camera2D.xml msgid "" "Make this the current 2D camera for the scene (viewport and layer), in case " "there are many cameras in the scene." msgstr "使之成为场景(视窗和图层)的当前 2D 相机,以防场景中有很多相机。" #: doc/classes/Camera2D.xml msgid "" "Sets the camera's position immediately to its current smoothing " "destination.\n" "This method has no effect if [member smoothing_enabled] is [code]false[/" "code]." msgstr "" "将相机的位置立即设置为其当前平滑的目标位置。\n" "当 [member smoothing_enabled] 为 [code]false[/code] 时,本方法没有效果。" #: doc/classes/Camera2D.xml msgid "" "Sets the specified margin. See also [member drag_margin_bottom], [member " "drag_margin_top], [member drag_margin_left], and [member drag_margin_right]." msgstr "" "设置指定的边距。另请参阅 [member drag_margin_bottom]、[member " "drag_margin_top]、[member drag_margin_left]和 [member drag_margin_right]。" #: doc/classes/Camera2D.xml msgid "" "Sets the specified camera limit. See also [member limit_bottom], [member " "limit_top], [member limit_left], and [member limit_right]." msgstr "" "设置指定的相机限制。另请参阅 [member limit_bottom]、[member limit_top]、" "[member limit_left]和[member limit_right]。" #: doc/classes/Camera2D.xml msgid "The Camera2D's anchor point. See [enum AnchorMode] constants." msgstr "Camera2D的锚点。参阅[enum AnchorMode]常量。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], the camera is the active camera for the current scene. " "Only one camera can be current, so setting a different camera [code]current[/" "code] will disable this one." msgstr "" "如果 [code]true[/code],相机是当前场景的活动相机。当前只能有一台相机,所以设" "置不同的相机[code]current[/code]将禁用这台相机。" #: doc/classes/Camera2D.xml msgid "" "The custom [Viewport] node attached to the [Camera2D]. If [code]null[/code] " "or not a [Viewport], uses the default viewport instead." msgstr "" "连接到[Camera2D]的自定义[Viewport]节点。如果[code]null[/code]或不是" "[Viewport],则使用默认的 Viewpor。" #: doc/classes/Camera2D.xml msgid "" "Bottom margin needed to drag the camera. A value of [code]1[/code] makes the " "camera move only when reaching the edge of the screen." msgstr "" "拖动相机所需的底边距。值为[code]1[/code]时,相机仅在到达屏幕边缘时才会移动。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], the camera only moves when reaching the horizontal " "drag margins. If [code]false[/code], the camera moves horizontally " "regardless of margins." msgstr "" "如果 [code]true[/code],相机仅在达到水平拖动边距时才移动。如果[code]false[/" "code],相机会水平移动而不管边距。" #: doc/classes/Camera2D.xml msgid "" "Left margin needed to drag the camera. A value of [code]1[/code] makes the " "camera move only when reaching the edge of the screen." msgstr "" "拖动相机所需的左边缘。值为[code]1[/code]时,相机仅在到达屏幕边缘时才会移动。" #: doc/classes/Camera2D.xml msgid "" "Right margin needed to drag the camera. A value of [code]1[/code] makes the " "camera move only when reaching the edge of the screen." msgstr "" "拖动相机所需的右边缘。值为[code]1[/code]时,相机仅在到达屏幕边缘时才会移动。" #: doc/classes/Camera2D.xml msgid "" "Top margin needed to drag the camera. A value of [code]1[/code] makes the " "camera move only when reaching the edge of the screen." msgstr "" "拖动相机所需的上边距。值为[code]1[/code]时,相机仅在到达屏幕边缘时才会移动。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], the camera only moves when reaching the vertical drag " "margins. If [code]false[/code], the camera moves vertically regardless of " "margins." msgstr "" "如果 [code]true[/code],相机仅在达到垂直拖动边距时才移动。如果[code]false[/" "code],相机会垂直移动而不管边距。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], draws the camera's drag margin rectangle in the editor." msgstr "如果[code]true[/code],在编辑器中绘制相机的拖动边距矩形。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], draws the camera's limits rectangle in the editor." msgstr "如果[code]true[/code],在编辑器中绘制相机的极限矩形。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], draws the camera's screen rectangle in the editor." msgstr "如果[code]true[/code],在编辑器中绘制相机的画面矩形。" #: doc/classes/Camera2D.xml msgid "" "Bottom scroll limit in pixels. The camera stops moving when reaching this " "value." msgstr "以像素为单位的底部滚动限制。当达到这个值时,相机停止移动。" #: doc/classes/Camera2D.xml msgid "" "Left scroll limit in pixels. The camera stops moving when reaching this " "value." msgstr "以像素为单位的左滚动限制。当达到这个值时,相机停止移动。" #: doc/classes/Camera2D.xml msgid "" "Right scroll limit in pixels. The camera stops moving when reaching this " "value." msgstr "以像素为单位的右滚动限制。当达到这个值时,相机停止移动。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], the camera smoothly stops when reaches its limits.\n" "This property has no effect if [member smoothing_enabled] is [code]false[/" "code].\n" "[b]Note:[/b] To immediately update the camera's position to be within limits " "without smoothing, even with this setting enabled, invoke [method " "reset_smoothing]." msgstr "" "为 [code]true[/code] 时,相机会在达到极限时平滑地停止。\n" "当 [member smoothing_enabled] 为 [code]false[/code] 时,该属性无效。\n" "[b]注意:[/b]要立即将相机的位置更新到限制范围内而不进行平滑,即使启用了此设" "置,也要调用 [method reset_smoothing]。" #: doc/classes/Camera2D.xml msgid "" "Top scroll limit in pixels. The camera stops moving when reaching this value." msgstr "以像素为单位的顶部滚动限制。达到此值时,相机停止移动。" #: doc/classes/Camera2D.xml msgid "" "The camera's offset, useful for looking around or camera shake animations." msgstr "相机的偏移量,对于环顾四周或相机晃动动画非常有用。" #: doc/classes/Camera2D.xml msgid "" "The horizontal offset of the camera, relative to the drag margins.\n" "[b]Note:[/b] Offset H is used only to force offset relative to margins. It's " "not updated in any way if drag margins are enabled and can be used to set " "initial offset." msgstr "" "相机的水平偏移,相对于拖动边距。\n" "[b]注意:[/b]Offset H 仅用于强制执行相对于边距的偏移,如果启用拖动边距,它不" "会以任何方式更新,并可用于设置初始偏移量。如果启用了拖动边距,它不会以任何方" "式更新,可以用来设置初始偏移。" #: doc/classes/Camera2D.xml msgid "" "The vertical offset of the camera, relative to the drag margins.\n" "[b]Note:[/b] Used the same as [member offset_h]." msgstr "" "相机相对于拖动边距的垂直偏移。\n" "[b]注意:[/b]用法与 [member offset_h] 相同。" #: doc/classes/Camera2D.xml msgid "The camera's process callback. See [enum Camera2DProcessMode]." msgstr "相机的过程回调。请参阅[enum Camera2DProcessMode]。" #: doc/classes/Camera2D.xml msgid "If [code]true[/code], the camera view rotates with the target." msgstr "为 [code]true[/code] 时,相机视图将随目标旋转。" #: doc/classes/Camera2D.xml msgid "" "If [code]true[/code], the camera smoothly moves towards the target at " "[member smoothing_speed]." msgstr "" "为 [code]true[/code] 时,相机将以 [member smoothing_speed] 的速度平滑地朝目标" "移动。" #: doc/classes/Camera2D.xml msgid "" "Speed in pixels per second of the camera's smoothing effect when [member " "smoothing_enabled] is [code]true[/code]." msgstr "" "当[member smoothing_enabled]为 [code]true[/code] 时,相机平滑效果的速度,以每" "秒像素为单位。" #: doc/classes/Camera2D.xml msgid "" "The camera's zoom relative to the viewport. Values larger than " "[code]Vector2(1, 1)[/code] zoom out and smaller values zoom in. For an " "example, use [code]Vector2(0.5, 0.5)[/code] for a 2× zoom-in, and " "[code]Vector2(4, 4)[/code] for a 4× zoom-out." msgstr "" "相机相对于视窗的缩放比例。大于 [code]Vector2(1, 1)[/code] 的值会缩小内容,而" "较小的值会起到放大镜的作用。例如,将 [code]Vector2(0.5, 0.5)[/code] 放大 2 " "倍,然后将 [code]Vector2(4, 4)[/code] 用于 4 倍缩小。" #: doc/classes/Camera2D.xml msgid "" "The camera's position is fixed so that the top-left corner is always at the " "origin." msgstr "相机的位置是固定的,所以左上角总是在原点。" #: doc/classes/Camera2D.xml msgid "" "The camera's position takes into account vertical/horizontal offsets and the " "screen size." msgstr "相机的位置要考虑垂直/水平偏移和屏幕尺寸。" #: doc/classes/Camera2D.xml doc/classes/ClippedCamera.xml msgid "The camera updates with the [code]_physics_process[/code] callback." msgstr "相机通过 [code]_physics_process[/code] 回调进行更新。" #: doc/classes/Camera2D.xml doc/classes/ClippedCamera.xml msgid "The camera updates with the [code]_process[/code] callback." msgstr "相机通过 [code]_process[/code] 回调进行更新。" #: doc/classes/CameraFeed.xml msgid "" "A camera feed gives you access to a single physical camera attached to your " "device." msgstr "通过相机源,您可以访问连接到设备的单个物理相机。" #: doc/classes/CameraFeed.xml msgid "" "A camera feed gives you access to a single physical camera attached to your " "device. When enabled, Godot will start capturing frames from the camera " "which can then be used. See also [CameraServer].\n" "[b]Note:[/b] Many cameras will return YCbCr images which are split into two " "textures and need to be combined in a shader. Godot does this automatically " "for you if you set the environment to show the camera image in the " "background." msgstr "" "通过相机源,你可以访问连接到设备的单个物理相机。启用后,Godot 将开始从相机捕" "获帧,然后使用。另请参阅 [CameraServer]。\n" "[b]注意:[/b]很多相机会返回 YCbCr 图像,这些图像被分成两个纹理,需要在着色器" "中组合。如果你将环境设置为在背景中显示相机图像,Godot 会自动为将执行此操作。" #: doc/classes/CameraFeed.xml msgid "Returns the unique ID for this feed." msgstr "返回该源的唯一ID。" #: doc/classes/CameraFeed.xml msgid "Returns the camera's name." msgstr "返回相机的名称。" #: doc/classes/CameraFeed.xml msgid "Returns the position of camera on the device." msgstr "返回设备上的相机位置。" #: doc/classes/CameraFeed.xml msgid "If [code]true[/code], the feed is active." msgstr "如果[code]true[/code],则源是激活的。" #: doc/classes/CameraFeed.xml msgid "The transform applied to the camera's image." msgstr "应用于相机图像的变换。" #: doc/classes/CameraFeed.xml msgid "No image set for the feed." msgstr "没有为该源设置图像。" #: doc/classes/CameraFeed.xml msgid "Feed supplies RGB images." msgstr "源提供 RGB 图像。" #: doc/classes/CameraFeed.xml msgid "Feed supplies YCbCr images that need to be converted to RGB." msgstr "源提供的 YCbCr 图像需要转换成 RGB 图像。" #: doc/classes/CameraFeed.xml msgid "" "Feed supplies separate Y and CbCr images that need to be combined and " "converted to RGB." msgstr "源提供单独的 Y 和 CbCr 图像,需要合并并转换为 RGB。" #: doc/classes/CameraFeed.xml msgid "Unspecified position." msgstr "未指定坐标。" #: doc/classes/CameraFeed.xml msgid "Camera is mounted at the front of the device." msgstr "相机安装在了设备前部。" #: doc/classes/CameraFeed.xml msgid "Camera is mounted at the back of the device." msgstr "相机安装在了设备后部。" #: doc/classes/CameraServer.xml msgid "Server keeping track of different cameras accessible in Godot." msgstr "跟踪 Godot 中可访问的不同摄像头的服务器。" #: doc/classes/CameraServer.xml msgid "" "The [CameraServer] keeps track of different cameras accessible in Godot. " "These are external cameras such as webcams or the cameras on your phone.\n" "It is notably used to provide AR modules with a video feed from the camera.\n" "[b]Note:[/b] This class is currently only implemented on macOS and iOS. On " "other platforms, no [CameraFeed]s will be available." msgstr "" "[CameraServer] 记录了 Godot 中可访问的不同摄像机。这些是外部摄像机,如网络摄" "像头或手机上的摄像机。\n" "它主要用于为 AR 模块提供来自摄像机的视频源。\n" "[b]注意:[/b]这个类目前只在 macOS 和 iOS 上实现。在其他平台上没有可用的 " "[CameraFeed]。" #: doc/classes/CameraServer.xml msgid "Adds the camera [code]feed[/code] to the camera server." msgstr "将相机源 [code]feed[/code] 添加到摄像机服务器中。" #: doc/classes/CameraServer.xml msgid "Returns an array of [CameraFeed]s." msgstr "返回一个 [CameraFeed] 数组。" #: doc/classes/CameraServer.xml msgid "" "Returns the [CameraFeed] corresponding to the camera with the given " "[code]index[/code]." msgstr "返回与给定索引 [code]index[/code] 的摄像机对应的 [CameraFeed]。" #: doc/classes/CameraServer.xml msgid "Returns the number of [CameraFeed]s registered." msgstr "返回注册的 [CameraFeed] 的数量。" #: doc/classes/CameraServer.xml msgid "Removes the specified camera [code]feed[/code]." msgstr "移除指定的相机源 [code]feed[/code]。" #: doc/classes/CameraServer.xml msgid "Emitted when a [CameraFeed] is added (e.g. a webcam is plugged in)." msgstr "当添加 [CameraFeed] 时触发(例如,插入网络摄像头)。" #: doc/classes/CameraServer.xml msgid "Emitted when a [CameraFeed] is removed (e.g. a webcam is unplugged)." msgstr "当移除 [CameraFeed] 时触发(例如,拔掉网络摄像头)。" #: doc/classes/CameraServer.xml msgid "The RGBA camera image." msgstr "RGBA 相机图像。" #: doc/classes/CameraServer.xml msgid "The [url=https://en.wikipedia.org/wiki/YCbCr]YCbCr[/url] camera image." msgstr "[url=https://zh.wikipedia.org/zh-cn/YCbCr]YCbCr[/url] 摄像机图像。" #: doc/classes/CameraServer.xml msgid "The Y component camera image." msgstr "Y 分量相机图像。" #: doc/classes/CameraServer.xml msgid "The CbCr component camera image." msgstr "CbCr 分量相机图像。" #: doc/classes/CameraTexture.xml msgid "Texture provided by a [CameraFeed]." msgstr "由 [CameraFeed] 提供的纹理。" #: doc/classes/CameraTexture.xml msgid "" "This texture gives access to the camera texture provided by a [CameraFeed].\n" "[b]Note:[/b] Many cameras supply YCbCr images which need to be converted in " "a shader." msgstr "" "该纹理可以访问 [CameraFeed] 提供的相机纹理。\n" "[b]注意:[/b]许多相机提供需要在着色器中转换的 YCbCr 图像。" #: doc/classes/CameraTexture.xml msgid "The ID of the [CameraFeed] for which we want to display the image." msgstr "我们要显示图像的 [CameraFeed] 的 ID。" #: doc/classes/CameraTexture.xml msgid "" "Convenience property that gives access to the active property of the " "[CameraFeed]." msgstr "给予访问 [CameraFeed] 的活动属性的便利属性。" #: doc/classes/CameraTexture.xml msgid "" "Which image within the [CameraFeed] we want access to, important if the " "camera image is split in a Y and CbCr component." msgstr "" "我们要访问 [CameraFeed] 中的哪个图像,如果相机图像被分割成 Y 和 CbCr 分量,这" "一点很重要。" #: doc/classes/CanvasItem.xml msgid "Base class of anything 2D." msgstr "任何 2D 对象的基类。" #: doc/classes/CanvasItem.xml msgid "" "Base class of anything 2D. Canvas items are laid out in a tree; children " "inherit and extend their parent's transform. [CanvasItem] is extended by " "[Control] for anything GUI-related, and by [Node2D] for anything related to " "the 2D engine.\n" "Any [CanvasItem] can draw. For this, [method update] must be called, then " "[constant NOTIFICATION_DRAW] will be received on idle time to request " "redraw. Because of this, canvas items don't need to be redrawn on every " "frame, improving the performance significantly. Several functions for " "drawing on the [CanvasItem] are provided (see [code]draw_*[/code] " "functions). However, they can only be used inside the [method Object." "_notification], signal or [method _draw] virtual functions.\n" "Canvas items are drawn in tree order. By default, children are on top of " "their parents so a root [CanvasItem] will be drawn behind everything. This " "behavior can be changed on a per-item basis.\n" "A [CanvasItem] can also be hidden, which will also hide its children. It " "provides many ways to change parameters such as modulation (for itself and " "its children) and self modulation (only for itself), as well as its blend " "mode.\n" "Ultimately, a transform notification can be requested, which will notify the " "node that its global position changed in case the parent tree changed.\n" "[b]Note:[/b] Unless otherwise specified, all methods that have angle " "parameters must have angles specified as [i]radians[/i]. To convert degrees " "to radians, use [method @GDScript.deg2rad]." msgstr "" "任何 2D 对象的基类。画布项目(Canvas Item)以树状排列;子节点继承并扩展其父节" "点的变换。[CanvasItem] 由 [Control] 扩展为任何 GUI 相关的东西,由 [Node2D] 扩" "展为任何 2D 引擎相关的东西。\n" "任何 [CanvasItem] 都可以绘图。要绘图就必须调用 [method update],然后就会在空" "闲时接收到 [constant NOTIFICATION_DRAW] 来请求重绘。因此画布项目不需要每一帧" "都重绘,大大提升了性能。提供了几个用于在 [CanvasItem] 上绘图的函数(请参阅 " "[code]draw_*[/code] 函数)。但是,它们只能在 [method Object._notification]、" "信号或虚函数 [method _draw] 内部使用。\n" "画布项目是按树状顺序绘制的。默认情况下,子项目在其父项目的顶部,因此根" "[CanvasItem]将被画在所有项目的后面。这种行为可以在每个项目的基础上进行更" "改。\n" "[CanvasItem] 也可以被隐藏,这也将隐藏其子项目。它提供了许多方法来改变参数,如" "调制(对它自己和它的子项目)和自调制(只对它自己),以及它的混合模式。\n" "最终,可以请求一个变换通知,它将在父树改变的情况下通知节点它的全局位置发生了" "变化。\n" "[b]注意:[/b]除非另有说明,所有具有角度参数的方法必须将角度指定为[i]弧度[/" "i]。要将度数转换为弧度,请使用 [method @GDScript.deg2rad]。" #: doc/classes/CanvasItem.xml doc/classes/CanvasLayer.xml #: doc/classes/InputEvent.xml doc/classes/Viewport.xml msgid "Viewport and canvas transforms" msgstr "Viewport 和画布变换" #: doc/classes/CanvasItem.xml doc/classes/Control.xml doc/classes/Node2D.xml msgid "Custom drawing in 2D" msgstr "2D 中的自定义绘图" #: doc/classes/CanvasItem.xml msgid "" "Overridable function called by the engine (if defined) to draw the canvas " "item." msgstr "引擎调用的可覆盖函数(如果定义了)来绘制画布项目。" #: doc/classes/CanvasItem.xml msgid "" "Draws a unfilled arc between the given angles. The larger the value of " "[code]point_count[/code], the smoother the curve. See also [method " "draw_circle].\n" "[b]Note:[/b] Line drawing is not accelerated by batching if " "[code]antialiased[/code] is [code]true[/code].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent lines and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedRegularPolygon2D node. That node relies on a texture with custom " "mipmaps to perform antialiasing. 2D batching is also still supported with " "those antialiased lines." msgstr "" "在给定的角度之间绘制未填充的弧形。[code]point_count[/code] 的值越大,曲线越平" "滑。另请参阅 [method draw_circle]。\n" "[b]注意:[/b]如果 [code]antialiased[/code] 为 [code]true[/code],那么线段的绘" "制就不会被分批加速。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedRegularPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap " "的纹理进行的。这些抗锯齿线段仍然支持 2D 分批。" #: doc/classes/CanvasItem.xml msgid "" "Draws a string character using a custom font. Returns the advance, depending " "on the character width and kerning with an optional next character." msgstr "" "使用自定义字体绘制一个字符串字符。返回前进量,这个量取决于该字符的宽度,以及" "与可选的下一个字符的字偶距。" #: doc/classes/CanvasItem.xml #, fuzzy msgid "" "Draws a colored, filled circle. See also [method draw_arc], [method " "draw_polyline] and [method draw_polygon].\n" "[b]Note:[/b] Built-in antialiasing is not provided for [method draw_circle]. " "As a workaround, install the [url=https://github.com/godot-extended-" "libraries/godot-antialiased-line2d]Antialiased Line2D[/url] add-on then " "create an AntialiasedRegularPolygon2D node. That node relies on a texture " "with custom mipmaps to perform antialiasing." msgstr "" "绘制未填充的彩色圆形。另请参阅 [method draw_arc]、[method draw_polyline]、" "[method draw_polygon]。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedRegularPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap " "的纹理进行的。" #: doc/classes/CanvasItem.xml msgid "" "Draws a colored polygon of any amount of points, convex or concave. Unlike " "[method draw_polygon], a single color must be specified for the whole " "polygon.\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent polygons and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedPolygon2D node. That node relies on a texture with custom mipmaps " "to perform antialiasing." msgstr "" "绘制任意数量顶点的彩色多边形,凹凸均可。与 [method draw_polygon] 不同,整个多" "边形只能指定一种颜色。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理" "进行的。" #: doc/classes/CanvasItem.xml msgid "" "Draws a line from a 2D point to another, with a given color and width. It " "can be optionally antialiased. See also [method draw_multiline] and [method " "draw_polyline].\n" "[b]Note:[/b] Line drawing is not accelerated by batching if " "[code]antialiased[/code] is [code]true[/code].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent lines and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedLine2D node. That node relies on a texture with custom mipmaps to " "perform antialiasing. 2D batching is also still supported with those " "antialiased lines." msgstr "" "在两个 2D 点之间绘制给定颜色和宽度的线段。可以打开抗锯齿。另请参阅 [method " "draw_multiline] 和 [method draw_polyline]。\n" "[b]注意:[/b]如果 [code]antialiased[/code] 为 [code]true[/code],那么线段的绘" "制就不会被分批加速。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedLine2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理进行" "的。这些抗锯齿线段仍然支持 2D 分批。" #: doc/classes/CanvasItem.xml msgid "" "Draws a [Mesh] in 2D, using the provided texture. See [MeshInstance2D] for " "related documentation." msgstr "" "使用所提供的纹理以 2D 方式绘制一个 [Mesh]。相关文档请参阅 [MeshInstance2D]。" #: doc/classes/CanvasItem.xml msgid "" "Draws multiple disconnected lines with a uniform [code]color[/code]. When " "drawing large amounts of lines, this is faster than using individual [method " "draw_line] calls. To draw interconnected lines, use [method draw_polyline] " "instead.\n" "[b]Note:[/b] [code]width[/code] and [code]antialiased[/code] are currently " "not implemented and have no effect. As a workaround, install the " "[url=https://github.com/godot-extended-libraries/godot-antialiased-" "line2d]Antialiased Line2D[/url] add-on then create an AntialiasedLine2D " "node. That node relies on a texture with custom mipmaps to perform " "antialiasing. 2D batching is also still supported with those antialiased " "lines." msgstr "" "使用单一颜色 [code]color[/code] 绘制多条不相连的直线。绘制大量直线时,比单独" "调用 [method draw_line] 要快。要绘制相连的直线,请换用 [method " "draw_polyline]。\n" "[b]注意:[/b]目前尚未实现 [code]width[/code] 和 [code]antialiased[/code],不" "会产生任何效果。作为替代方案,请安装[url=https://github.com/godot-extended-" "libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并创建 " "AntialiasedLine2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理进行的。" "这些抗锯齿线段仍然支持 2D 分批。" #: doc/classes/CanvasItem.xml msgid "" "Draws multiple disconnected lines with a uniform [code]width[/code] and " "segment-by-segment coloring. Colors assigned to line segments match by index " "between [code]points[/code] and [code]colors[/code]. When drawing large " "amounts of lines, this is faster than using individual [method draw_line] " "calls. To draw interconnected lines, use [method draw_polyline_colors] " "instead.\n" "[b]Note:[/b] [code]width[/code] and [code]antialiased[/code] are currently " "not implemented and have no effect. As a workaround, install the " "[url=https://github.com/godot-extended-libraries/godot-antialiased-" "line2d]Antialiased Line2D[/url] add-on then create an AntialiasedLine2D " "node. That node relies on a texture with custom mipmaps to perform " "antialiasing. 2D batching is also still supported with those antialiased " "lines." msgstr "" "使用单一宽度 [code]width[/code] 绘制多条不相连的直线,不同线段颜色可以不同。" "线段的颜色使用 [code]points[/code] 和 [code]colors[/code] 的索引进行匹配。绘" "制大量直线时,比单独调用 [method draw_line] 要快。要绘制相连的直线,请换用 " "[method draw_polyline_colors]。\n" "[b]注意:[/b]目前尚未实现 [code]width[/code] 和 [code]antialiased[/code],不" "会产生任何效果。作为替代方案,请安装[url=https://github.com/godot-extended-" "libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并创建 " "AntialiasedLine2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理进行的。" "这些抗锯齿线段仍然支持 2D 分批。" #: doc/classes/CanvasItem.xml msgid "" "Draws a [MultiMesh] in 2D with the provided texture. See " "[MultiMeshInstance2D] for related documentation." msgstr "" "用所提供的纹理以 2D 方式绘制 [MultiMesh]。相关文档请参考" "[MultiMeshInstance2D]。" #: doc/classes/CanvasItem.xml msgid "" "Draws a solid polygon of any amount of points, convex or concave. Unlike " "[method draw_colored_polygon], each point's color can be changed " "individually. See also [method draw_polyline] and [method " "draw_polyline_colors].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent polygons and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedPolygon2D node. That node relies on a texture with custom mipmaps " "to perform antialiasing." msgstr "" "绘制任意数量顶点的彩色多边形,凹凸均可。与 [method draw_colored_polygon] 不" "同,可以单独修改各个顶点的颜色。另请参阅 [method draw_polyline] 和 [method " "draw_polyline_colors]。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理" "进行的。" #: doc/classes/CanvasItem.xml msgid "" "Draws interconnected line segments with a uniform [code]color[/code] and " "[code]width[/code] and optional antialiasing. When drawing large amounts of " "lines, this is faster than using individual [method draw_line] calls. To " "draw disconnected lines, use [method draw_multiline] instead. See also " "[method draw_polygon].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent polygons and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedPolygon2D node. That node relies on a texture with custom mipmaps " "to perform antialiasing." msgstr "" "使用单一颜色 [code]color[/code] 和宽度 [code]width[/code] 绘制多条相连的线" "段,还可以选择抗锯齿。绘制大量直线时,比单独调用 [method draw_line] 要快。要" "绘制不相连的直线,请换用 [method draw_multiline]。另请参阅 [method " "draw_polygon]。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理" "进行的。" #: doc/classes/CanvasItem.xml msgid "" "Draws interconnected line segments with a uniform [code]width[/code] and " "segment-by-segment coloring, and optional antialiasing. Colors assigned to " "line segments match by index between [code]points[/code] and [code]colors[/" "code]. When drawing large amounts of lines, this is faster than using " "individual [method draw_line] calls. To draw disconnected lines, use [method " "draw_multiline_colors] instead. See also [method draw_polygon].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent polygons and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedPolygon2D node. That node relies on a texture with custom mipmaps " "to perform antialiasing." msgstr "" "使用单一宽度 [code]width[/code] 绘制多条相连的直线,不同线段颜色可以不同。线" "段的颜色使用 [code]points[/code] 和 [code]colors[/code] 的索引进行匹配。绘制" "大量直线时,比单独调用 [method draw_line] 要快。要绘制不相连的直线,请换用 " "[method draw_multiline_colors]。另请参阅 [method draw_polygon]。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理" "进行的。" #: doc/classes/CanvasItem.xml msgid "" "Draws a custom primitive. 1 point for a point, 2 points for a line, 3 points " "for a triangle, and 4 points for a quad. If 0 points or more than 4 points " "are specified, nothing will be drawn and an error message will be printed. " "See also [method draw_line], [method draw_polyline], [method draw_polygon], " "and [method draw_rect]." msgstr "" "绘制自定义图元。1 个点的是个点,2 个点的是线段,3 个点的是三角形,4 个点的是" "四边形。如果没有指定点或者指定了超过 4 个点,则不会绘制任何东西,只会输出错误" "消息。另请参阅 [method draw_line]、[method draw_polyline]、[method " "draw_polygon]、[method draw_rect]。" #: doc/classes/CanvasItem.xml msgid "" "Draws a rectangle. If [code]filled[/code] is [code]true[/code], the " "rectangle will be filled with the [code]color[/code] specified. If " "[code]filled[/code] is [code]false[/code], the rectangle will be drawn as a " "stroke with the [code]color[/code] and [code]width[/code] specified. If " "[code]antialiased[/code] is [code]true[/code], the lines will attempt to " "perform antialiasing using OpenGL line smoothing.\n" "[b]Note:[/b] [code]width[/code] and [code]antialiased[/code] are only " "effective if [code]filled[/code] is [code]false[/code].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent polygons and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedPolygon2D node. That node relies on a texture with custom mipmaps " "to perform antialiasing." msgstr "" "绘制一个矩形。如果[code]filled[/code]是[code]true[/code],矩形将被填充为指定" "的[code]color[/code]。如果[code]filled[/code]是[code]false[/code],矩形将以" "[code]color[/code]和[code]width[/code]指定的笔画形式绘制。如果" "[code]antialiased[/code]是[code]true[/code],线条抗锯齿。\n" "[b]注意:[/b][code]width[/code]和[code]antialiased[/code]只有在[code]filled[/" "code]是[code]false[/code] 时才有效。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理" "进行的。" #: doc/classes/CanvasItem.xml msgid "" "Sets a custom transform for drawing via components. Anything drawn " "afterwards will be transformed by this." msgstr "设置通过组件进行绘图的自定义变换。此后绘制的任何东西都将被它变换。" #: doc/classes/CanvasItem.xml msgid "" "Sets a custom transform for drawing via matrix. Anything drawn afterwards " "will be transformed by this." msgstr "设置通过矩阵绘制时的自定义变换。此后绘制的任何东西都将被它变换。" #: doc/classes/CanvasItem.xml msgid "" "Draws [code]text[/code] using the specified [code]font[/code] at the " "[code]position[/code] (bottom-left corner using the baseline of the font). " "The text will have its color multiplied by [code]modulate[/code]. If " "[code]clip_w[/code] is greater than or equal to 0, the text will be clipped " "if it exceeds the specified width.\n" "[b]Example using the default project font:[/b]\n" "[codeblock]\n" "# If using this method in a script that redraws constantly, move the\n" "# `default_font` declaration to a member variable assigned in `_ready()`\n" "# so the Control is only created once.\n" "var default_font = Control.new().get_font(\"font\")\n" "draw_string(default_font, Vector2(64, 64), \"Hello world\")\n" "[/codeblock]\n" "See also [method Font.draw]." msgstr "" "使用指定的[code]font[/code]在[code]position[/code]绘制[code]text[/code](左下" "角作为字体的基线)。该文本的颜色将乘以[code]modulate[/code]。如果" "[code]clip_w[/code]大于或等于0,文本超过了指定的宽度,将被裁剪。\n" "[b]使用项目默认字体的例子:[/b]\n" "[codeblock]\n" "# 如果在不断重绘的脚本中使用此方法,\n" "# 则将`default_font`声明移动到在`_ready()`中赋值的成员变量中\n" "# 这样Control只创建一次。\n" "var default_font = Control.new().get_font(\"font\")\n" "draw_string(default_font, Vector2(64, 64), \"Hello world\")\n" "[/codeblock]\n" "参阅[method Font.draw]。" #: doc/classes/CanvasItem.xml msgid "Draws a styled rectangle." msgstr "绘制一个样式矩形。" #: doc/classes/CanvasItem.xml msgid "Draws a texture at a given position." msgstr "在给定的位置绘制纹理。" #: doc/classes/CanvasItem.xml msgid "" "Draws a textured rectangle at a given position, optionally modulated by a " "color. If [code]transpose[/code] is [code]true[/code], the texture will have " "its X and Y coordinates swapped." msgstr "" "在给定的位置上绘制一个纹理矩形,可以选择用颜色调制。如果 [code]transpose[/" "code] 是 [code]true[/code],纹理的 X 和 Y 坐标将被调换。" #: doc/classes/CanvasItem.xml msgid "" "Draws a textured rectangle region at a given position, optionally modulated " "by a color. If [code]transpose[/code] is [code]true[/code], the texture will " "have its X and Y coordinates swapped." msgstr "" "在给定的位置绘制纹理矩形区域,可选择用颜色调制。如果 [code]transpose[/code] " "是 [code]true[/code],纹理的 X 和 Y 坐标将被调换。" #: doc/classes/CanvasItem.xml doc/classes/Spatial.xml msgid "" "Forces the transform to update. Transform changes in physics are not instant " "for performance reasons. Transforms are accumulated and then set. Use this " "if you need an up-to-date transform when doing physics operations." msgstr "" "强制更新变换。由于性能原因,物理中的变换改变不是即时的。变换是在累积后再设" "置。如果你在进行物理操作时需要最新的变换,请使用此功能。" #: doc/classes/CanvasItem.xml msgid "Returns the [RID] of the [World2D] canvas where this item is in." msgstr "返回此项目所在的 [World2D] 画布的 [RID]。" #: doc/classes/CanvasItem.xml msgid "Returns the canvas item RID used by [VisualServer] for this item." msgstr "返回此项目在 [VisualServer] 中使用的画布项 RID。" #: doc/classes/CanvasItem.xml msgid "Returns the transform matrix of this item's canvas." msgstr "返回此项目画布的变换矩阵。" #: doc/classes/CanvasItem.xml msgid "" "Returns the mouse's position in the [CanvasLayer] that this [CanvasItem] is " "in using the coordinate system of the [CanvasLayer]." msgstr "" "返回该 [CanvasItem] 所在的 [CanvasLayer] 中鼠标的位置,使用该 [CanvasLayer] " "的坐标系。" #: doc/classes/CanvasItem.xml msgid "Returns the global transform matrix of this item." msgstr "返回此项目的全局变换矩阵。" #: doc/classes/CanvasItem.xml msgid "" "Returns the global transform matrix of this item in relation to the canvas." msgstr "返回此项目相对于画布的全局变换矩阵。" #: doc/classes/CanvasItem.xml msgid "" "Returns the mouse's position in this [CanvasItem] using the local coordinate " "system of this [CanvasItem]." msgstr "返回该 [CanvasItem] 中鼠标的位置,使用该 [CanvasItem] 的局部坐标系。" #: doc/classes/CanvasItem.xml msgid "Returns the transform matrix of this item." msgstr "返回此项目的变换矩阵。" #: doc/classes/CanvasItem.xml msgid "Returns the viewport's boundaries as a [Rect2]." msgstr "以 [Rect2] 形式返回视区的边界。" #: doc/classes/CanvasItem.xml msgid "Returns this item's transform in relation to the viewport." msgstr "返回这个项目相对于视区的变换。" #: doc/classes/CanvasItem.xml msgid "Returns the [World2D] where this item is in." msgstr "返回此物品所在的[World2D]。" #: doc/classes/CanvasItem.xml msgid "" "Hide the [CanvasItem] if it's currently visible. This is equivalent to " "setting [member visible] to [code]false[/code]." msgstr "" "如果该 [CanvasItem] 目前是可见的,则将其隐藏。等价于将 [member visible] 设为 " "[code]false[/code]。" #: doc/classes/CanvasItem.xml msgid "" "Returns [code]true[/code] if local transform notifications are communicated " "to children." msgstr "如果将本地变换通知传达给子级,则返回 [code]true[/code]。" #: doc/classes/CanvasItem.xml msgid "" "Returns [code]true[/code] if the node is set as top-level. See [method " "set_as_toplevel]." msgstr "" "如果节点设置为顶层,则返回 [code]true[/code]。参阅 [method set_as_toplevel]。" #: doc/classes/CanvasItem.xml msgid "" "Returns [code]true[/code] if global transform notifications are communicated " "to children." msgstr "如果将全局变换通知传达给子级,则返回 [code]true[/code]。" #: doc/classes/CanvasItem.xml doc/classes/Spatial.xml msgid "" "Returns [code]true[/code] if the node is present in the [SceneTree], its " "[member visible] property is [code]true[/code] and all its antecedents are " "also visible. If any antecedent is hidden, this node will not be visible in " "the scene tree." msgstr "" "如果该节点位于 [SceneTree] 中,并且其 [member visible] 属性为 [code]true[/" "code],并且其所有上层节点也均可见,则返回 [code]true[/code]。如果任何上层节点" "被隐藏,则该节点在场景树中将不可见。" #: doc/classes/CanvasItem.xml msgid "Assigns [code]screen_point[/code] as this node's new local transform." msgstr "分配 [code]screen_point[/code] 作为该节点的新本地变换。" #: doc/classes/CanvasItem.xml msgid "" "Transformations issued by [code]event[/code]'s inputs are applied in local " "space instead of global space." msgstr "[code]event[/code] 的输入发出的变换将在局部空间而不是全局空间中应用。" #: doc/classes/CanvasItem.xml msgid "" "If [code]enable[/code] is [code]true[/code], this [CanvasItem] will [i]not[/" "i] inherit its transform from parent [CanvasItem]s. Its draw order will also " "be changed to make it draw on top of other [CanvasItem]s that are not set as " "top-level. The [CanvasItem] will effectively act as if it was placed as a " "child of a bare [Node]. See also [method is_set_as_toplevel]." msgstr "" "如果 [code]enable[/code] 为 [code]true[/code],那么这个 [CanvasItem] [i]不会" "[/i]继承父 [CanvasItem] 的变换。其绘制顺序也会发生改变,会被绘制到其他非顶层 " "[CanvasItem] 之上。该 [CanvasItem] 会与设为普通 [Node] 节点的子节点的效果一" "致。另请参阅 [method is_set_as_toplevel]。" #: doc/classes/CanvasItem.xml msgid "" "If [code]enable[/code] is [code]true[/code], this node will receive " "[constant NOTIFICATION_LOCAL_TRANSFORM_CHANGED] when its local transform " "changes." msgstr "" "如果 [code]enable[/code] 为 [code]true[/code],那么这个节点会在其局部变换发生" "改变时接收到 [constant NOTIFICATION_LOCAL_TRANSFORM_CHANGED]。" #: doc/classes/CanvasItem.xml msgid "" "If [code]enable[/code] is [code]true[/code], this node will receive " "[constant NOTIFICATION_TRANSFORM_CHANGED] when its global transform changes." msgstr "" "如果 [code]enable[/code] 为 [code]true[/code],那么这个节点会在其全局变换发生" "改变时接收到 [constant NOTIFICATION_TRANSFORM_CHANGED]。" #: doc/classes/CanvasItem.xml msgid "" "Show the [CanvasItem] if it's currently hidden. This is equivalent to " "setting [member visible] to [code]true[/code]. For controls that inherit " "[Popup], the correct way to make them visible is to call one of the multiple " "[code]popup*()[/code] functions instead." msgstr "" "如果该 [CanvasItem] 目前是隐藏的,则将其显示。等价于将 [member visible] 设为 " "[code]true[/code]。对于继承自 [Popup] 的控件,让它们可见的正确做法是换成调用" "各种 [code]popup*()[/code] 函数的其中之一。" #: doc/classes/CanvasItem.xml msgid "" "Queue the [CanvasItem] for update. [constant NOTIFICATION_DRAW] will be " "called on idle time to request redraw." msgstr "" "将[CanvasItem]排队等待更新。在空闲时间将调用[constant NOTIFICATION_DRAW]以请" "求重绘。" #: doc/classes/CanvasItem.xml msgid "" "The rendering layers in which this [CanvasItem] responds to [Light2D] nodes." msgstr "此[CanvasItem]在其中响应[Light2D]节点的渲染层。" #: doc/classes/CanvasItem.xml msgid "The material applied to textures on this [CanvasItem]." msgstr "在此[CanvasItem]上应用于纹理的材质。" #: doc/classes/CanvasItem.xml msgid "The color applied to textures on this [CanvasItem]." msgstr "应用于此 [CanvasItem] 上纹理的颜色。" #: doc/classes/CanvasItem.xml msgid "" "The color applied to textures on this [CanvasItem]. This is not inherited by " "children [CanvasItem]s." msgstr "" "应用于此 [CanvasItem] 上纹理的颜色。子 [CanvasItem] 节点不会继承这个颜色。" #: doc/classes/CanvasItem.xml msgid "If [code]true[/code], the object draws behind its parent." msgstr "如果[code]true[/code],则对象在其父对象后面绘制。" #: doc/classes/CanvasItem.xml msgid "If [code]true[/code], the object draws on top of its parent." msgstr "如果[code]true[/code],则对象在其父对象的顶部绘制。" #: doc/classes/CanvasItem.xml msgid "" "If [code]true[/code], the parent [CanvasItem]'s [member material] property " "is used as this one's material." msgstr "" "如果[code]true[/code],则将父级[CanvasItem]的[member material]属性用作此项的" "材质。" #: doc/classes/CanvasItem.xml msgid "" "If [code]true[/code], this [CanvasItem] is drawn. The node is only visible " "if all of its antecedents are visible as well (in other words, [method " "is_visible_in_tree] must return [code]true[/code]).\n" "[b]Note:[/b] For controls that inherit [Popup], the correct way to make them " "visible is to call one of the multiple [code]popup*()[/code] functions " "instead." msgstr "" "如果[code]true[/code],这个[CanvasItem]被绘制。只有当它的所有父节点也可见时," "该节点才是可见的(换句话说,[method is_visible_in_tree]必须返回 [code]true[/" "code])。\n" "[b]注意:[/b]对于继承了[Popup]的控件,使其可见的正确方法是调用多个" "[code]popup*()[/code]函数之一。" #: doc/classes/CanvasItem.xml msgid "" "Emitted when the [CanvasItem] must redraw. This can only be connected " "realtime, as deferred will not allow drawing." msgstr "" "当 [CanvasItem] 必须重绘时发出。这只能是实时连接,因为延迟将不允许绘制。" #: doc/classes/CanvasItem.xml msgid "Emitted when becoming hidden." msgstr "当隐藏时发出。" #: doc/classes/CanvasItem.xml msgid "" "Emitted when the item's [Rect2] boundaries (position or size) have changed, " "or when an action is taking place that may have impacted these boundaries (e." "g. changing [member Sprite.texture])." msgstr "" "在物体[Rect2]边缘(位置或大小)改变,或有影响到边缘的操作(比如修改[member " "Sprite.texture])时触发。" #: doc/classes/CanvasItem.xml msgid "Emitted when the visibility (hidden/visible) changes." msgstr "当可见性(隐藏/可见)更改时发出。" #: doc/classes/CanvasItem.xml doc/classes/CanvasItemMaterial.xml msgid "" "Mix blending mode. Colors are assumed to be independent of the alpha " "(opacity) value." msgstr "混合混合模式。假设颜色与 Alpha 值(不透明度)无关。" #: doc/classes/CanvasItem.xml doc/classes/CanvasItemMaterial.xml msgid "Additive blending mode." msgstr "添加混合模式。" #: doc/classes/CanvasItem.xml doc/classes/CanvasItemMaterial.xml msgid "Subtractive blending mode." msgstr "减去混合模式。" #: doc/classes/CanvasItem.xml doc/classes/CanvasItemMaterial.xml msgid "Multiplicative blending mode." msgstr "正片叠底混合模式。" #: doc/classes/CanvasItem.xml doc/classes/CanvasItemMaterial.xml msgid "" "Mix blending mode. Colors are assumed to be premultiplied by the alpha " "(opacity) value." msgstr "混合混合模式。假定颜色已预先乘以 Alpha 值(不透明度)。" #: doc/classes/CanvasItem.xml msgid "" "Disables blending mode. Colors including alpha are written as-is. Only " "applicable for render targets with a transparent background. No lighting " "will be applied." msgstr "" "禁用混合模式。颜色(包括 Alpha)将会变原来的样子。仅能在渲染透明背景的目标使" "用。不会应用任何光照。" #: doc/classes/CanvasItem.xml msgid "" "The [CanvasItem]'s global transform has changed. This notification is only " "received if enabled by [method set_notify_transform]." msgstr "" "该 [CanvasItem] 的全局变换已更改。只有在通过 [method set_notify_transform] 启" "用时,才会收到这个通知。" #: doc/classes/CanvasItem.xml msgid "" "The [CanvasItem]'s local transform has changed. This notification is only " "received if enabled by [method set_notify_local_transform]." msgstr "" "该 [CanvasItem] 的局部变换已更改。只有在通过 [method " "set_notify_local_transform] 启用时,才会收到这个通知。" #: doc/classes/CanvasItem.xml msgid "The [CanvasItem] is requested to draw." msgstr "要求绘制[CanvasItem]。" #: doc/classes/CanvasItem.xml msgid "The [CanvasItem]'s visibility has changed." msgstr "[CanvasItem]的可见性已更改。" #: doc/classes/CanvasItem.xml msgid "The [CanvasItem] has entered the canvas." msgstr "[CanvasItem]已进入画布。" #: doc/classes/CanvasItem.xml msgid "The [CanvasItem] has exited the canvas." msgstr "[CanvasItem]已退出画布。" #: doc/classes/CanvasItemMaterial.xml msgid "A material for [CanvasItem]s." msgstr "[CanvasItem]的材质。" #: doc/classes/CanvasItemMaterial.xml msgid "" "[CanvasItemMaterial]s provide a means of modifying the textures associated " "with a CanvasItem. They specialize in describing blend and lighting " "behaviors for textures. Use a [ShaderMaterial] to more fully customize a " "material's interactions with a [CanvasItem]." msgstr "" "[CanvasItemMaterial]提供了一种修改与CanvasItem相关联的纹理的方法。他们专注于" "描述纹理的混合和照明行为。使用[ShaderMaterial]可以更全面地自定义材质与" "[CanvasItem]的交互。" #: doc/classes/CanvasItemMaterial.xml msgid "" "The manner in which a material's rendering is applied to underlying textures." msgstr "将材质的渲染应用于基础纹理的方式。" #: doc/classes/CanvasItemMaterial.xml msgid "The manner in which material reacts to lighting." msgstr "材质对照明的反应方式。" #: doc/classes/CanvasItemMaterial.xml msgid "" "The number of columns in the spritesheet assigned as [Texture] for a " "[Particles2D] or [CPUParticles2D].\n" "[b]Note:[/b] This property is only used and visible in the editor if [member " "particles_animation] is [code]true[/code]." msgstr "" "精灵表中分配为 [Particles2D] 或 [CPUParticles2D] 的 [Texture] 的列数。\n" "[b]注意:[/b]仅当 [member particles_animation] 为 [code]true[/code] 时,此属" "性才在编辑器中使用和可见。" #: doc/classes/CanvasItemMaterial.xml msgid "" "If [code]true[/code], the particles animation will loop.\n" "[b]Note:[/b] This property is only used and visible in the editor if [member " "particles_animation] is [code]true[/code]." msgstr "" "如果 [code]true[/code],粒子动画将循环播放。\n" "[b]注意:[/b]只有当 [member particles_animation] 为 [code]true[/code] 时,该" "属性才会在编辑器中使用并可见。" #: doc/classes/CanvasItemMaterial.xml msgid "" "The number of rows in the spritesheet assigned as [Texture] for a " "[Particles2D] or [CPUParticles2D].\n" "[b]Note:[/b] This property is only used and visible in the editor if [member " "particles_animation] is [code]true[/code]." msgstr "" "精灵表中分配为 [Particles2D] 或 [CPUParticles2D] 的 [Texture] 的行数。\n" "[b]注意:[/b]仅当 [member particles_animation] 为 [code]true[/code] 时,此属" "性才在编辑器中使用和可见。" #: doc/classes/CanvasItemMaterial.xml msgid "" "If [code]true[/code], enable spritesheet-based animation features when " "assigned to [Particles2D] and [CPUParticles2D] nodes. The [member " "ParticlesMaterial.anim_speed] or [member CPUParticles2D.anim_speed] should " "also be set to a positive value for the animation to play.\n" "This property (and other [code]particles_anim_*[/code] properties that " "depend on it) has no effect on other types of nodes." msgstr "" "如果为 [code]true[/code],当分配给 [Particles2D] 和 [CPUParticles2D] 节点时," "启用基于spritesheet的动画功能。[member ParticlesMaterial.anim_speed]或" "[member CPUParticles2D.anim_speed]也应设置为正值,才能播放动画。\n" "这个属性(以及其他依赖于它的[code]particles_anim_*[/code]属性)对其他类型的节" "点没有影响。" #: doc/classes/CanvasItemMaterial.xml msgid "" "Render the material using both light and non-light sensitive material " "properties." msgstr "使用光敏和非光敏材料属性渲染材质。" #: doc/classes/CanvasItemMaterial.xml msgid "Render the material as if there were no light." msgstr "将材质渲染成没有光的样子。" #: doc/classes/CanvasItemMaterial.xml msgid "Render the material as if there were only light." msgstr "将材质渲染成只有光的样子。" #: doc/classes/CanvasLayer.xml msgid "Canvas drawing layer." msgstr "画布绘图层。" #: doc/classes/CanvasLayer.xml msgid "" "Canvas drawing layer. [CanvasItem] nodes that are direct or indirect " "children of a [CanvasLayer] will be drawn in that layer. The layer is a " "numeric index that defines the draw order. The default 2D scene renders with " "index 0, so a [CanvasLayer] with index -1 will be drawn below, and one with " "index 1 will be drawn above. This is very useful for HUDs (in layer 1+ or " "above), or backgrounds (in layer -1 or below)." msgstr "" "画布绘图层。[CanvasLayer] 的直接或间接子级的 [CanvasItem] 节点将在该层中绘" "制。层是一个决定绘制顺序的数字索引。默认 2D 场景的渲染索引为 0,因此索引为 " "-1 的 [CanvasLayer] 会在其下方绘制,索引为 1 的则会在其上方绘制。这对于 HUD" "(在 1+ 层或更高层中)或背景(在 -1 层或更低层中)非常有用。" #: doc/classes/CanvasLayer.xml msgid "Canvas layers" msgstr "画布层" #: doc/classes/CanvasLayer.xml msgid "Returns the RID of the canvas used by this layer." msgstr "返回此层使用的画布的 RID。" #: doc/classes/CanvasLayer.xml msgid "" "Hides any [CanvasItem] under this [CanvasLayer]. This is equivalent to " "setting [member visible] to [code]false[/code]." msgstr "" "隐藏该 [CanvasLayer] 下的所有 [CanvasItem]。等价于将 [member visible] 设为 " "[code]false[/code]。" #: doc/classes/CanvasLayer.xml msgid "" "Shows any [CanvasItem] under this [CanvasLayer]. This is equivalent to " "setting [member visible] to [code]true[/code]." msgstr "" "显示该 [CanvasLayer] 下的所有 [CanvasItem]。等价于将 [member visible] 设为 " "[code]true[/code]。" #: doc/classes/CanvasLayer.xml msgid "" "The custom [Viewport] node assigned to the [CanvasLayer]. If [code]null[/" "code], uses the default viewport instead." msgstr "" "分配给该 [CanvasLayer] 的自定义 [Viewport] 节点。如果为 [code]null[/code],则" "使用默认的视口。" #: doc/classes/CanvasLayer.xml msgid "" "Sets the layer to follow the viewport in order to simulate a pseudo 3D " "effect." msgstr "将图层设置为跟随视区,以模拟伪 3D 效果。" #: doc/classes/CanvasLayer.xml msgid "" "Scales the layer when using [member follow_viewport_enable]. Layers moving " "into the foreground should have increasing scales, while layers moving into " "the background should have decreasing scales." msgstr "" "使用[member follow_viewport_enable]时,对图层进行缩放。移动到前景的图层应该有" "增加的比例,而移动到背景的图层应该有减少的比例。" #: doc/classes/CanvasLayer.xml msgid "Layer index for draw order. Lower values are drawn first." msgstr "绘制顺序的图层索引。首先绘制较低的值。" #: doc/classes/CanvasLayer.xml msgid "The layer's base offset." msgstr "图层的基本偏移量。" #: doc/classes/CanvasLayer.xml msgid "The layer's rotation in radians." msgstr "图层的旋转弧度。" #: doc/classes/CanvasLayer.xml msgid "The layer's rotation in degrees." msgstr "图层的旋转度数。" #: doc/classes/CanvasLayer.xml msgid "The layer's scale." msgstr "图层的缩放。" #: doc/classes/CanvasLayer.xml msgid "The layer's transform." msgstr "图层的变换。" #: doc/classes/CanvasLayer.xml msgid "" "If [code]false[/code], any [CanvasItem] under this [CanvasLayer] will be " "hidden.\n" "Unlike [member CanvasItem.visible], visibility of a [CanvasLayer] isn't " "propagated to underlying layers." msgstr "" "为 [code]false[/code] 时,该 [CanvasLayer] 下的所有 [CanvasItem] 都会被隐" "藏。\n" "与 [member CanvasItem.visible] 不同,[CanvasLayer] 的显示与否不会传播到其内部" "的层。" #: doc/classes/CanvasLayer.xml msgid "Emitted when visibility of the layer is changed. See [member visible]." msgstr "当该层的可见性发生变化时触发。请参阅 [member visible]。" #: doc/classes/CanvasModulate.xml msgid "Tint the entire canvas." msgstr "给整个画布上色。" #: doc/classes/CanvasModulate.xml msgid "" "[CanvasModulate] tints the canvas elements using its assigned [member color]." msgstr "[CanvasModulate]使用其分配的[member color]对画布元素进行着色。" #: doc/classes/CanvasModulate.xml msgid "The tint color to apply." msgstr "要应用的色调颜色。" #: doc/classes/CapsuleMesh.xml msgid "Class representing a capsule-shaped [PrimitiveMesh]." msgstr "表示胶囊状 [PrimitiveMesh] 的类。" #: doc/classes/CapsuleMesh.xml msgid "" "Height of the middle cylindrical part of the capsule (without the " "hemispherical ends).\n" "[b]Note:[/b] The capsule's total height is equal to [member mid_height] + 2 " "* [member radius]." msgstr "" "胶囊体中间圆柱体(除了两个半球体的部分)的高度。\n" "[b]注意:[/b]圆柱体的总高度等于 [member mid_height] + 2 * [member radius]。" #: doc/classes/CapsuleMesh.xml msgid "Number of radial segments on the capsule mesh." msgstr "胶囊网格上的径向线段数。" #: doc/classes/CapsuleMesh.xml msgid "Radius of the capsule mesh." msgstr "胶囊网格的半径。" #: doc/classes/CapsuleMesh.xml msgid "Number of rings along the height of the capsule." msgstr "沿胶囊高度的环数。" #: doc/classes/CapsuleShape.xml msgid "Capsule shape for collisions." msgstr "胶囊的碰撞形状。" #: doc/classes/CapsuleShape.xml doc/classes/CapsuleShape2D.xml msgid "The capsule's height." msgstr "胶囊体的高度。" #: doc/classes/CapsuleShape.xml doc/classes/CapsuleShape2D.xml msgid "The capsule's radius." msgstr "胶囊体的半径。" #: doc/classes/CapsuleShape2D.xml msgid "Capsule shape for 2D collisions." msgstr "2D 碰撞的胶囊形状。" #: doc/classes/CenterContainer.xml msgid "Keeps children controls centered." msgstr "使子级控件居中。" #: doc/classes/CenterContainer.xml msgid "" "CenterContainer keeps children controls centered. This container keeps all " "children to their minimum size, in the center." msgstr "" "CenterContainer 会使子节点居中。该容器会将所有子节点保持在最小尺寸并居中。" #: doc/classes/CenterContainer.xml msgid "" "If [code]true[/code], centers children relative to the [CenterContainer]'s " "top left corner." msgstr "" "如果为 [code]true[/code],会将子节点相对于 [CenterContainer] 的左上角居中。" #: doc/classes/CharFXTransform.xml msgid "" "Controls how an individual character will be displayed in a [RichTextEffect]." msgstr "控制单个字符在[RichTextEffect]中的显示方式。" #: doc/classes/CharFXTransform.xml msgid "" "By setting various properties on this object, you can control how individual " "characters will be displayed in a [RichTextEffect]." msgstr "" "通过在此对象上设置各种属性,可以控制单个字符在[RichTextEffect]中的显示方式。" #: doc/classes/CharFXTransform.xml msgid "" "The index of the current character (starting from 0) for the " "[RichTextLabel]'s BBCode text. Setting this property won't affect drawing." msgstr "" "该 [RichTextLabel] 的 BBCode 文本中当前字符的索引号(从 0 开始)。设置该属性" "不会影响绘制。" #: doc/classes/CharFXTransform.xml msgid "" "The Unicode codepoint the character will use. This only affects non-" "whitespace characters. [method @GDScript.ord] can be useful here. For " "example, the following will replace all characters with asterisks:\n" "[codeblock]\n" "# `char_fx` is the CharFXTransform parameter from `_process_custom_fx()`.\n" "# See the RichTextEffect documentation for details.\n" "char_fx.character = ord(\"*\")\n" "[/codeblock]" msgstr "" "字符所使用的 Unicode 码位。这只会影响非空白字符。[method @GDScript.ord] 在这" "里可能很有用。例如,以下将用星号替换所有字符:\n" "[codeblock]\n" "# `char_fx` 是 `_process_custom_fx()` 的 CharFXTransform 参数。\n" "# 详情请参阅 RichTextEffect 的文档。\n" "char_fx.character = ord(\"*\")\n" "[/codeblock]" #: doc/classes/CharFXTransform.xml msgid "The color the character will be drawn with." msgstr "绘制角色所用的颜色。" #: doc/classes/CharFXTransform.xml msgid "" "The time elapsed since the [RichTextLabel] was added to the scene tree (in " "seconds). Time stops when the [RichTextLabel] is paused (see [member Node." "pause_mode]). Resets when the text in the [RichTextLabel] is changed.\n" "[b]Note:[/b] Time still passes while the [RichTextLabel] is hidden." msgstr "" "自 [RichTextLabel] 被添加到场景树后所经过的时间,单位秒。时间在 " "[RichTextLabel] 暂停时停止,参阅 [member Node.pause_mode]。当 " "[RichTextLabel] 中的文本发生改变时会重置。\n" "[b]注意:[/b]当 [RichTextLabel] 被隐藏时,时间仍会增加。" #: doc/classes/CharFXTransform.xml msgid "" "Contains the arguments passed in the opening BBCode tag. By default, " "arguments are strings; if their contents match a type such as [bool], [int] " "or [float], they will be converted automatically. Color codes in the form " "[code]#rrggbb[/code] or [code]#rgb[/code] will be converted to an opaque " "[Color]. String arguments may not contain spaces, even if they're quoted. If " "present, quotes will also be present in the final string.\n" "For example, the opening BBCode tag [code][example foo=hello bar=true baz=42 " "color=#ffffff][/code] will map to the following [Dictionary]:\n" "[codeblock]\n" "{\"foo\": \"hello\", \"bar\": true, \"baz\": 42, \"color\": Color(1, 1, 1, " "1)}\n" "[/codeblock]" msgstr "" "包含在开头的 BBCode 标记中传递的参数。默认情况下,参数是字符串。如果它们的内" "容与 [bool]、[int]、[float] 之类的类型匹配,它们将被自动转换。格式为 " "[code]#rrggbb[/code] 或 [code]#rgb[/code] 的颜色代码将转换为不透明的 " "[Color]。字符串参数即使使用引号也不能包含空格。如果存在,引号也将出现在最终字" "符串中。\n" "例如,开头的 BBCode 标签 [code][example foo = hello bar = true baz = 42 " "color =#ffffff][/code] 将映射到以下 [Dictionary]:\n" "[codeblock]\n" "{\"foo\": \"hello\", \"bar\": true, \"baz\": 42, \"color\": Color(1, 1, 1, " "1)}\n" "[/codeblock]" #: doc/classes/CharFXTransform.xml msgid "The position offset the character will be drawn with (in pixels)." msgstr "绘制字符的位置偏移量(以像素为单位)。" #: doc/classes/CharFXTransform.xml msgid "" "The index of the current character (starting from 0) for this " "[RichTextEffect] custom block. Setting this property won't affect drawing." msgstr "" "该 [RichTextEffect] 自定义块中当前字符的索引号(从 0 开始)。设置该属性不会影" "响绘制。" #: doc/classes/CharFXTransform.xml msgid "" "If [code]true[/code], the character will be drawn. If [code]false[/code], " "the character will be hidden. Characters around hidden characters will " "reflow to take the space of hidden characters. If this is not desired, set " "their [member color] to [code]Color(1, 1, 1, 0)[/code] instead." msgstr "" "如果[code]true[/code],将绘制字符。如果[code]false[/code],则隐藏字符。隐藏字" "符周围的字符将回流以占用隐藏字符的空间。如果不希望这样做,可以将它们的" "[member color]设置为[code]Color(1, 1, 1, 0)[/code]。" #: doc/classes/CheckBox.xml msgid "Binary choice user interface widget. See also [CheckButton]." msgstr "二项选择用户界面小部件。另请参阅 [CheckButton]。" #: doc/classes/CheckBox.xml msgid "" "A checkbox allows the user to make a binary choice (choosing only one of two " "possible options). It's similar to [CheckButton] in functionality, but it " "has a different appearance. To follow established UX patterns, it's " "recommended to use CheckBox when toggling it has [b]no[/b] immediate effect " "on something. For instance, it should be used when toggling it will only do " "something once a confirmation button is pressed.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node." msgstr "" "让用户做出二项选择的复选框(在两个可能的选项中只选择一个)。它在功能上类似于 " "[CheckButton],但外观不同。为了遵循用户体验,建议在切换它对某些东西[b]没有[/" "b]直接影响时使用 CheckBox。例如,当切换它只会在确认按钮被按下时做一些事情时," "选择 CheckBox。\n" "另请参阅 [BaseButton],它包含了与该节点相关的常规属性和方法。" #: doc/classes/CheckBox.xml msgid "The [CheckBox] text's font color." msgstr "该 [CheckBox] 的文本字体颜色。" #: doc/classes/CheckBox.xml msgid "The [CheckBox] text's font color when it's disabled." msgstr "该 [CheckBox] 被禁用时的文本字体颜色。" #: doc/classes/CheckBox.xml msgid "" "The [CheckBox] text's font color when it's focused. Only replaces the normal " "text color of the checkbox. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "该 [CheckBox] 被聚焦时的文本字体颜色。只取代复选框的正常文本颜色。禁用、悬停" "和按下状态优先于这个颜色。" #: doc/classes/CheckBox.xml msgid "The [CheckBox] text's font color when it's hovered." msgstr "该 [CheckBox] 被悬停时的文本字体颜色。" #: doc/classes/CheckBox.xml msgid "The [CheckBox] text's font color when it's hovered and pressed." msgstr "该 [CheckBox] 被悬停且被按下时的文本字体颜色。" #: doc/classes/CheckBox.xml msgid "The [CheckBox] text's font color when it's pressed." msgstr "该 [CheckBox] 被按下时的文本字体颜色。" #: doc/classes/CheckBox.xml msgid "The vertical offset used when rendering the check icons (in pixels)." msgstr "渲染复选图标时使用的垂直偏移量(单位为像素)。" #: doc/classes/CheckBox.xml msgid "The separation between the check icon and the text (in pixels)." msgstr "复选图标与文本之间的间隔(单位为像素)。" #: doc/classes/CheckBox.xml msgid "The [Font] to use for the [CheckBox] text." msgstr "该 [CheckBox] 的文本所使用的 [Font]。" #: doc/classes/CheckBox.xml msgid "The check icon to display when the [CheckBox] is checked." msgstr "该 [CheckBox] 被勾选时显示的复选图标。" #: doc/classes/CheckBox.xml msgid "The check icon to display when the [CheckBox] is checked and disabled." msgstr "该 [CheckBox] 被勾选且被禁用时显示的复选图标。" #: doc/classes/CheckBox.xml msgid "" "If the [CheckBox] is configured as a radio button, the icon to display when " "the [CheckBox] is checked." msgstr "如果该 [CheckBox] 被配置为单选按钮,该 [CheckBox] 被选中时显示的图标。" #: doc/classes/CheckBox.xml msgid "" "If the [CheckBox] is configured as a radio button, the icon to display when " "the [CheckBox] is unchecked." msgstr "" "如果该 [CheckBox] 被配置为单选按钮,该 [CheckBox] 未被选中时显示的图标。" #: doc/classes/CheckBox.xml msgid "The check icon to display when the [CheckBox] is unchecked." msgstr "该 [CheckBox] 未被勾选时显示的复选图标。" #: doc/classes/CheckBox.xml msgid "" "The check icon to display when the [CheckBox] is unchecked and disabled." msgstr "该 [CheckBox] 未被勾选且被禁用时显示的复选图标。" #: doc/classes/CheckBox.xml msgid "" "The [StyleBox] to display as a background when the [CheckBox] is disabled." msgstr "该 [CheckBox] 被禁用时作为背景显示的 [StyleBox]。" #: doc/classes/CheckBox.xml msgid "" "The [StyleBox] to display as a background when the [CheckBox] is focused." msgstr "该 [CheckBox] 被聚焦时作为背景显示的 [StyleBox]。" #: doc/classes/CheckBox.xml msgid "" "The [StyleBox] to display as a background when the [CheckBox] is hovered." msgstr "该 [CheckBox] 被悬停时作为背景显示的 [StyleBox]。" #: doc/classes/CheckBox.xml msgid "" "The [StyleBox] to display as a background when the [CheckBox] is hovered and " "pressed." msgstr "该 [CheckBox] 被悬停且被按下时作为背景显示的 [StyleBox]。" #: doc/classes/CheckBox.xml doc/classes/CheckButton.xml msgid "The [StyleBox] to display as a background." msgstr "作为背景显示的 [StyleBox]。" #: doc/classes/CheckBox.xml msgid "" "The [StyleBox] to display as a background when the [CheckBox] is pressed." msgstr "该 [CheckBox] 被按下时作为背景显示的 [StyleBox]。" #: doc/classes/CheckButton.xml msgid "Checkable button. See also [CheckBox]." msgstr "可复选的按钮。另请参阅 [CheckBox]。" #: doc/classes/CheckButton.xml msgid "" "CheckButton is a toggle button displayed as a check field. It's similar to " "[CheckBox] in functionality, but it has a different appearance. To follow " "established UX patterns, it's recommended to use CheckButton when toggling " "it has an [b]immediate[/b] effect on something. For instance, it should be " "used if toggling it enables/disables a setting without requiring the user to " "press a confirmation button.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node." msgstr "" "CheckButton是一个切换按钮,显示为一个可选字段。它在功能上类似于[CheckBox],但" "外观不同。为了遵循用户体验,建议在切换它对某些东西有[b]直接[/b]影响时使用" "CheckButton。例如,如果切换它可以启用或禁用设置而不需要用户按下确认按钮时,使" "用它。\n" "参阅[BaseButton],它包含了与该节点相关的常规属性和方法。" #: doc/classes/CheckButton.xml msgid "The [CheckButton] text's font color." msgstr "该 [CheckButton] 的文本字体颜色。" #: doc/classes/CheckButton.xml msgid "The [CheckButton] text's font color when it's disabled." msgstr "该 [CheckButton] 被禁用时的文本字体颜色。" #: doc/classes/CheckButton.xml msgid "" "The [CheckButton] text's font color when it's focused. Only replaces the " "normal text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "该 [CheckButton] 被聚焦时的文本字体颜色。仅替换按钮的正常文本颜色。禁用、悬停" "和按下状态优先于此颜色。" #: doc/classes/CheckButton.xml msgid "The [CheckButton] text's font color when it's hovered." msgstr "该 [CheckButton] 被悬停时的文本字体颜色。" #: doc/classes/CheckButton.xml msgid "The [CheckButton] text's font color when it's hovered and pressed." msgstr "该 [CheckButton] 被悬停且被按下时的文本字体颜色。" #: doc/classes/CheckButton.xml msgid "The [CheckButton] text's font color when it's pressed." msgstr "该 [CheckButton] 被按下时的文本字体颜色。" #: doc/classes/CheckButton.xml msgid "The vertical offset used when rendering the toggle icons (in pixels)." msgstr "渲染切换图标时使用的垂直偏移量(单位为像素)。" #: doc/classes/CheckButton.xml msgid "The separation between the toggle icon and the text (in pixels)." msgstr "切换图标与文本之间的间隔(单位为像素)。" #: doc/classes/CheckButton.xml msgid "The [Font] to use for the [CheckButton] text." msgstr "该 [CheckButton] 的文本所使用的 [Font]。" #: doc/classes/CheckButton.xml msgid "The icon to display when the [CheckButton] is unchecked." msgstr "该 [CheckButton] 未被勾选时显示的图标。" #: doc/classes/CheckButton.xml msgid "The icon to display when the [CheckButton] is unchecked and disabled." msgstr "该 [CheckButton] 未被勾选且被禁用时显示的图标。" #: doc/classes/CheckButton.xml msgid "The icon to display when the [CheckButton] is checked." msgstr "该 [CheckButton] 被勾选时显示的图标。" #: doc/classes/CheckButton.xml msgid "The icon to display when the [CheckButton] is checked and disabled." msgstr "该 [CheckButton] 被勾选且被禁用时显示的图标。" #: doc/classes/CheckButton.xml msgid "" "The [StyleBox] to display as a background when the [CheckButton] is disabled." msgstr "该 [CheckButton] 被禁用时作为背景显示的 [StyleBox]。" #: doc/classes/CheckButton.xml msgid "" "The [StyleBox] to display as a background when the [CheckButton] is focused." msgstr "该 [CheckButton] 被聚焦时作为背景显示的 [StyleBox]。" #: doc/classes/CheckButton.xml msgid "" "The [StyleBox] to display as a background when the [CheckButton] is hovered." msgstr "该 [CheckButton] 被悬停时作为背景显示的 [StyleBox]。" #: doc/classes/CheckButton.xml msgid "" "The [StyleBox] to display as a background when the [CheckButton] is hovered " "and pressed." msgstr "该 [CheckButton] 被悬停且被按下时作为背景显示的 [StyleBox]。" #: doc/classes/CheckButton.xml msgid "" "The [StyleBox] to display as a background when the [CheckButton] is pressed." msgstr "该 [CheckButton] 被按下时作为背景显示的 [StyleBox]。" #: doc/classes/CircleShape2D.xml msgid "Circular shape for 2D collisions." msgstr "用于 2D 碰撞的圆形。" #: doc/classes/CircleShape2D.xml msgid "" "Circular shape for 2D collisions. This shape is useful for modeling balls or " "small characters and its collision detection with everything else is very " "fast." msgstr "" "用于 2D 碰撞的圆形。这种形状可用于塑造球或较小的角色,它与其他东西的碰撞检测" "非常快。" #: doc/classes/CircleShape2D.xml msgid "The circle's radius." msgstr "圆的半径。" #: doc/classes/ClassDB.xml msgid "Class information repository." msgstr "类信息存储库。" #: doc/classes/ClassDB.xml msgid "Provides access to metadata stored for every available class." msgstr "提供对为每个可用类存储的元数据的访问。" #: doc/classes/ClassDB.xml msgid "" "Returns [code]true[/code] if you can instance objects from the specified " "[code]class[/code], [code]false[/code] in other case." msgstr "" "如果可以将指定 [code]class[/code] 实例化为对象,则返回 [code]true[/code],否" "则返回 [code]false[/code]。" #: doc/classes/ClassDB.xml msgid "Returns whether the specified [code]class[/code] is available or not." msgstr "返回指定的[code]class[/code]是否可用。" #: doc/classes/ClassDB.xml msgid "" "Returns a category associated with the class for use in documentation and " "the Asset Library. Debug mode required." msgstr "返回与该类关联的类别,以用于文档和资产库。需要调试模式。" #: doc/classes/ClassDB.xml msgid "" "Returns an array with all the keys in [code]enum[/code] of [code]class[/" "code] or its ancestry." msgstr "" "返回一个数组,其中包含 [code]class[/code] 或其父级的 [code]enum[/code] 中的所" "有键。" #: doc/classes/ClassDB.xml msgid "" "Returns an array with all the enums of [code]class[/code] or its ancestry." msgstr "返回一个数组,其中包含 [code]class[/code] 或其父级的所有枚举。" #: doc/classes/ClassDB.xml msgid "" "Returns the value of the integer constant [code]name[/code] of [code]class[/" "code] or its ancestry. Always returns 0 when the constant could not be found." msgstr "" "返回 [code]class[/code]的整数常量[code]name[/code]或其父级的值。找不到常量" "时,始终返回0。" #: doc/classes/ClassDB.xml msgid "" "Returns which enum the integer constant [code]name[/code] of [code]class[/" "code] or its ancestry belongs to." msgstr "返回 [code]class[/code] 或其父级所属的枚举整数常量 [code]name[/code]。" #: doc/classes/ClassDB.xml msgid "" "Returns an array with the names all the integer constants of [code]class[/" "code] or its ancestry." msgstr "" "返回一个数组,其中带有 [code]class[/code] 的所有整数常量或其祖先的名称。" #: doc/classes/ClassDB.xml msgid "" "Returns an array with all the methods of [code]class[/code] or its ancestry " "if [code]no_inheritance[/code] is [code]false[/code]. Every element of the " "array is a [Dictionary] with the following keys: [code]args[/code], " "[code]default_args[/code], [code]flags[/code], [code]id[/code], [code]name[/" "code], [code]return: (class_name, hint, hint_string, name, type, usage)[/" "code].\n" "[b]Note:[/b] In exported release builds the debug info is not available, so " "the returned dictionaries will contain only method names." msgstr "" "如果[code]no_inheritance[/code]是[code]false[/code],返回一个包含" "[code]class[/code]或其父级所有方法的数组。数组的每个元素都是一个" "[Dictionary],其键值如:[code]args[/code], [code]default_args[/code], " "[code]flags[/code], [code]id[/code], [code]name[/code], [code]return:" "(class_name, hint, hint_string, name, type, usage)[/code]。\n" "[b]注意:[/b]在导出的发布版本中,调试信息不可用,所以返回的字典将只包含方法名" "称。" #: doc/classes/ClassDB.xml msgid "" "Returns the value of [code]property[/code] of [code]class[/code] or its " "ancestry." msgstr "返回 [code]class[/code]的[code]property[/code]的值或其父级。" #: doc/classes/ClassDB.xml msgid "" "Returns an array with all the properties of [code]class[/code] or its " "ancestry if [code]no_inheritance[/code] is [code]false[/code]." msgstr "" "如果[code]no_inheritance[/code]为 [code]false[/code],则返回具有[code]class[/" "code]或其父级所有属性的数组。" #: doc/classes/ClassDB.xml msgid "" "Returns the [code]signal[/code] data of [code]class[/code] or its ancestry. " "The returned value is a [Dictionary] with the following keys: [code]args[/" "code], [code]default_args[/code], [code]flags[/code], [code]id[/code], " "[code]name[/code], [code]return: (class_name, hint, hint_string, name, type, " "usage)[/code]." msgstr "" "返回 [code]class[/code] 或其父级的[code]信号[/code]数据。返回 [Dictionary] 并" "带有以下键: [code]args[/code], [code]default_args[/code], [code]flags[/" "code], [code]id[/code], [code]name[/code], [code]return:(class_name, hint, " "hint_string, name, type, usage)[/code]。" #: doc/classes/ClassDB.xml msgid "" "Returns an array with all the signals of [code]class[/code] or its ancestry " "if [code]no_inheritance[/code] is [code]false[/code]. Every element of the " "array is a [Dictionary] as described in [method class_get_signal]." msgstr "" "如果 [code]no_inheritance[/code] 为 [code]false[/code],则返回具有 " "[code]class[/code] 或其父级的所有信号的数组。数组的每个元素都是 " "[Dictionary],如 [method class_get_signal] 中所述。" #: doc/classes/ClassDB.xml msgid "" "Returns whether [code]class[/code] or its ancestry has an enum called " "[code]name[/code] or not." msgstr "返回 [code]class[/code] 或其父级是否有称为 [code]name[/code] 的信号。" #: doc/classes/ClassDB.xml msgid "" "Returns whether [code]class[/code] or its ancestry has an integer constant " "called [code]name[/code] or not." msgstr "" "返回 [code]class[/code] 或其父级是否有称为 [code]name[/code] 的整数常量。" #: doc/classes/ClassDB.xml msgid "" "Returns whether [code]class[/code] (or its ancestry if [code]no_inheritance[/" "code] is [code]false[/code]) has a method called [code]method[/code] or not." msgstr "" "返回 [code]class[/code] 是否有名为 [code]method[/code] 的方法。(如果" "[code]no_inheritance[/code]为 [code]false[/code],则返回其父级)。" #: doc/classes/ClassDB.xml msgid "" "Returns whether [code]class[/code] or its ancestry has a signal called " "[code]signal[/code] or not." msgstr "" "返回 [code]class[/code] 或其父级是否有称为 [code]signal[/code] 的信号。" #: doc/classes/ClassDB.xml msgid "" "Sets [code]property[/code] value of [code]class[/code] to [code]value[/code]." msgstr "" "将[code]class[/code]的[code]property[/code]值设置为[code]value[/code]。" #: doc/classes/ClassDB.xml msgid "Returns the names of all the classes available." msgstr "返回所有可用类的名称。" #: doc/classes/ClassDB.xml msgid "" "Returns the names of all the classes that directly or indirectly inherit " "from [code]class[/code]." msgstr "返回直接或间接继承自[code]class[/code]的所有类的名称。" #: doc/classes/ClassDB.xml msgid "Returns the parent class of [code]class[/code]." msgstr "返回 [code]class[/code]的父类。" #: doc/classes/ClassDB.xml msgid "Creates an instance of [code]class[/code]." msgstr "创建[code]class[/code]的实例。" #: doc/classes/ClassDB.xml msgid "Returns whether this [code]class[/code] is enabled or not." msgstr "返回是否启用此[code]class[/code]。" #: doc/classes/ClassDB.xml msgid "" "Returns whether [code]inherits[/code] is an ancestor of [code]class[/code] " "or not." msgstr "返回 [code]inherits[/code]是否是[code]class[/code]的祖先。" #: doc/classes/ClippedCamera.xml msgid "A [Camera] that includes collision." msgstr "包含碰撞的相机 [Camera]。" #: doc/classes/ClippedCamera.xml msgid "" "This node extends [Camera] to add collisions with [Area] and/or " "[PhysicsBody] nodes. The camera cannot move through colliding objects." msgstr "" "此节点扩展 [Camera] 以添加与 [Area] 和/或 [PhysicsBody] 节点的碰撞。摄像机无" "法穿过碰撞物体。" #: doc/classes/ClippedCamera.xml msgid "" "Adds a collision exception so the camera does not collide with the specified " "node." msgstr "添加碰撞例外,使相机不会与指定的节点碰撞。" #: doc/classes/ClippedCamera.xml msgid "" "Adds a collision exception so the camera does not collide with the specified " "[RID]." msgstr "添加碰撞例外,以使相机不会与指定的[RID]碰撞。" #: doc/classes/ClippedCamera.xml msgid "Removes all collision exceptions." msgstr "删除所有碰撞例外。" #: doc/classes/ClippedCamera.xml msgid "Returns the distance the camera has been offset due to a collision." msgstr "返回相机由于碰撞而偏移的距离。" #: doc/classes/ClippedCamera.xml msgid "" "Returns [code]true[/code] if the specified bit index is on.\n" "[b]Note:[/b] Bit indices range from 0-19." msgstr "" "如果指定的位索引打开,则返回 [code]true[/code]。\n" "[b]注意:[/b]位索引的范围是0-19。" #: doc/classes/ClippedCamera.xml msgid "Removes a collision exception with the specified node." msgstr "删除与指定节点的碰撞例外。" #: doc/classes/ClippedCamera.xml msgid "Removes a collision exception with the specified [RID]." msgstr "删除指定 [RID] 的碰撞例外。" #: doc/classes/ClippedCamera.xml msgid "" "Sets the specified bit index to the [code]value[/code].\n" "[b]Note:[/b] Bit indices range from 0-19." msgstr "" "将指定的位索引设置为[code]value[/code]。\n" "[b]注意:[/b]位索引的范围是0-19。" #: doc/classes/ClippedCamera.xml msgid "If [code]true[/code], the camera stops on contact with [Area]s." msgstr "为 [code]true[/code] 时,相机将在与 [Area] 接触时停止。" #: doc/classes/ClippedCamera.xml msgid "If [code]true[/code], the camera stops on contact with [PhysicsBody]s." msgstr "为 [code]true[/code] 时,相机将在与 [PhysicsBody] 接触时停止。" #: doc/classes/ClippedCamera.xml msgid "" "The camera's collision mask. Only objects in at least one collision layer " "matching the mask will be detected. See [url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]Collision layers and " "masks[/url] in the documentation for more information." msgstr "" "相机的碰撞遮罩。只有在对象有至少一个碰撞层和碰撞这招匹对时才能被检测到。详情" "请参阅文档[url=$DOCS_URL/tutorials/physics/physics_introduction." "html#collision-layers-and-masks]《碰撞层与遮罩》[/url]。" #: doc/classes/ClippedCamera.xml msgid "" "The camera's collision margin. The camera can't get closer than this " "distance to a colliding object." msgstr "相机的碰撞距离。相机与碰撞物体的距离不能超过这个距离。" #: doc/classes/ClippedCamera.xml msgid "The camera's process callback. See [enum ProcessMode]." msgstr "相机的过程回调。请参阅 [enum ProcessMode]。" #: doc/classes/CollisionObject.xml msgid "Base node for collision objects." msgstr "碰撞对象的基础节点。" #: doc/classes/CollisionObject.xml msgid "" "CollisionObject is the base class for physics objects. It can hold any " "number of collision [Shape]s. Each shape must be assigned to a [i]shape " "owner[/i]. The CollisionObject can have any number of shape owners. Shape " "owners are not nodes and do not appear in the editor, but are accessible " "through code using the [code]shape_owner_*[/code] methods." msgstr "" "CollisionObject 是物理对象的基类。它可以容纳任何数量的碰撞形状 [Shape]。每个" "形状必须分配给一个形状所有者 [i]shape owner[/i]。CollisionObject 可以有任意数" "量的形状所有者。形状所有者不是节点,也不会出现在编辑器中,但是可以通过代码使" "用 [code]shape_owner_*[/code] 方法进行访问。" #: doc/classes/CollisionObject.xml msgid "" "Receives unhandled [InputEvent]s. [code]position[/code] is the location in " "world space of the mouse pointer on the surface of the shape with index " "[code]shape_idx[/code] and [code]normal[/code] is the normal vector of the " "surface at that point. Connect to the [signal input_event] signal to easily " "pick up these events." msgstr "" "接收未处理的事件 [InputEvent]。 [code]position[/code] 是鼠标指针在具有索引 " "[code]shape_idx[/code] 的形状表面在世界空间中的位置,[code]normal[/code] 是该" "点表面的法向量。连接到 [signal input_event] 信号以轻松获取这些事件。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "Creates a new shape owner for the given object. Returns [code]owner_id[/" "code] of the new owner for future reference." msgstr "" "为给定对象创建一个新的形状所有者。返回 [code]owner_id[/code]的新所有者,供将" "来引用。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "Returns whether or not the specified [code]bit[/code] of the [member " "collision_layer] is set." msgstr "" "返回是否设置了碰撞层 [member collision_layer] 的指定位[code]bit[/code]。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "Returns whether or not the specified [code]bit[/code] of the [member " "collision_mask] is set." msgstr "" "返回是否设置了碰撞掩码 [member collision_mask] 的指定位[code]bit[/code]。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml #: doc/classes/Navigation.xml doc/classes/Navigation2D.xml msgid "Returns the object's [RID]." msgstr "返回对象的 [RID]。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "Returns an [Array] of [code]owner_id[/code] identifiers. You can use these " "ids in other methods that take [code]owner_id[/code] as an argument." msgstr "" "返回一个[code]owner_id[/code]标识符的[Array]。你可以在其他使用" "[code]owner_id[/code]作为参数的方法中使用这些id。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "If [code]true[/code], the shape owner and its shapes are disabled." msgstr "如果[code]true[/code],则禁用形状所有者及其形状。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "Removes the given shape owner." msgstr "移除给定形状的所有者。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/" "code] in the the [member collision_layer].\n" "If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/" "code] in the the [member collision_layer]." msgstr "" "如果[code]value[/code]为 [code]true[/code],则设置[member collision_layer]中" "指定的[code]bit[/code]位。\n" "如果[code]value[/code]为 [code]false[/code],清除[member collision_layer]中指" "定的 [code]bit[/code]位。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/" "code] in the the [member collision_mask].\n" "If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/" "code] in the the [member collision_mask]." msgstr "" "如果[code]value[/code]为 [code]true[/code],则设置[member collision_mask]中指" "定的[code]bit[/code]位。\n" "如果[code]value[/code]为 [code]false[/code],清除[member collision_mask]中指" "定的 [code]bit[/code]位。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "Returns the [code]owner_id[/code] of the given shape." msgstr "返回指定形状的[code]owner_id[/code]。" #: doc/classes/CollisionObject.xml msgid "Adds a [Shape] to the shape owner." msgstr "向形状所有者添加形状 [Shape]。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "Removes all shapes from the shape owner." msgstr "移除形状所有者的所有形状。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "Returns the parent object of the given shape owner." msgstr "返回给定形状所有者的父对象。" #: doc/classes/CollisionObject.xml msgid "Returns the [Shape] with the given id from the given shape owner." msgstr "从给定的形状所有者返回具有给定 id 的形状 [Shape]。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "Returns the number of shapes the given shape owner contains." msgstr "返回给定形状所有者包含的形状数量。" #: doc/classes/CollisionObject.xml msgid "" "Returns the child index of the [Shape] with the given id from the given " "shape owner." msgstr "返回具有给定形状所有者的给定 id 的形状 [Shape] 的子索引。" #: doc/classes/CollisionObject.xml msgid "Returns the shape owner's [Transform]." msgstr "返回形状所有者的[Transform]。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "Removes a shape from the given shape owner." msgstr "从给定的形状所有者中删除一个形状。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "If [code]true[/code], disables the given shape owner." msgstr "如果[code]true[/code],则禁用给定的形状所有者。" #: doc/classes/CollisionObject.xml msgid "Sets the [Transform] of the given shape owner." msgstr "设置给定形状所有者的[Transform]。" #: doc/classes/CollisionObject.xml msgid "" "The physics layers this CollisionObject3D is in. Collision objects can exist " "in one or more of 32 different layers. See also [member collision_mask].\n" "[b]Note:[/b] A contact is detected if object A is in any of the layers that " "object B scans, or object B is in any layers that object A scans. See " "[url=$DOCS_URL/tutorials/physics/physics_introduction.html#collision-layers-" "and-masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "CollisionObject3D 所在的物理层。碰撞对象可以存在于 32 个不同层中的一个或多" "个。另见 [member collision_mask]。\n" "[b]注意:[/b]如果对象 A 在对象 B 扫描的任何层中,或者对象 B 在对象 A 扫描的任" "何层中,则检测到接触。详情请参阅文档中的 [url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: doc/classes/CollisionObject.xml msgid "" "The physics layers this CollisionObject3D scans. Collision objects can scan " "one or more of 32 different layers. See also [member collision_layer].\n" "[b]Note:[/b] A contact is detected if object A is in any of the layers that " "object B scans, or object B is in any layers that object A scans. See " "[url=$DOCS_URL/tutorials/physics/physics_introduction.html#collision-layers-" "and-masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "CollisionObject3D 扫描的物理层。碰撞对象可以扫描 32 个不同层中的一个或多个。" "另见 [member collision_layer]]。\n" "[b]注意:[/b]如果对象 A 在对象 B 扫描的任何层中,或者对象 B 在对象 A 扫描的任" "何层中,则检测到接触。详情请参阅文档中的 [url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: doc/classes/CollisionObject.xml msgid "" "If [code]true[/code], the [CollisionObject] will continue to receive input " "events as the mouse is dragged across its shapes." msgstr "" "如果[code]true[/code],[CollisionObject] 将在鼠标拖过其形状时继续接收输入事" "件。" #: doc/classes/CollisionObject.xml doc/classes/CollisionObject2D.xml msgid "" "If [code]true[/code], this object is pickable. A pickable object can detect " "the mouse pointer entering/leaving, and if the mouse is inside it, report " "input events. Requires at least one [member collision_layer] bit to be set." msgstr "" "如果为 [code]true[/code],则该对象是可拾取的。可拾取的对象可以检测鼠标指针的" "进入/离开,鼠标位于其中时,就会报告输入事件。要求至少设置一个 [member " "collision_layer] 位。" #: doc/classes/CollisionObject.xml msgid "" "Emitted when the object receives an unhandled [InputEvent]. [code]position[/" "code] is the location in world space of the mouse pointer on the surface of " "the shape with index [code]shape_idx[/code] and [code]normal[/code] is the " "normal vector of the surface at that point." msgstr "" "当对象收到未处理的 [InputEvent] 时发出。 [code]position[/code] 是鼠标指针在具" "有索引 [code]shape_idx[/code] 的形状表面在世界空间中的位置,[code]normal[/" "code] 是该点表面的法向量。" #: doc/classes/CollisionObject.xml msgid "Emitted when the mouse pointer enters any of this object's shapes." msgstr "当鼠标指针进入此对象的任何形状时触发。" #: doc/classes/CollisionObject.xml msgid "Emitted when the mouse pointer exits all this object's shapes." msgstr "当鼠标指针退出此对象的所有形状时发出。" #: doc/classes/CollisionObject2D.xml msgid "Base node for 2D collision objects." msgstr "二维碰撞对象的基础节点。" #: doc/classes/CollisionObject2D.xml msgid "" "CollisionObject2D is the base class for 2D physics objects. It can hold any " "number of 2D collision [Shape2D]s. Each shape must be assigned to a [i]shape " "owner[/i]. The CollisionObject2D can have any number of shape owners. Shape " "owners are not nodes and do not appear in the editor, but are accessible " "through code using the [code]shape_owner_*[/code] methods.\n" "[b]Note:[/b] Only collisions between objects within the same canvas " "([Viewport] canvas or [CanvasLayer]) are supported. The behavior of " "collisions between objects in different canvases is undefined." msgstr "" "CollisionObject2D 是 2D 物理对象的基类,可以容纳任意数量的 2D 碰撞形状 " "[Shape2D]。每个形状必须分配给一个[i]形状所有者[/i]。CollisionObject2D 可以拥" "有任意数量的形状所有者。形状所有者不是节点,也不会出现在编辑器中,但可以通过" "代码使用 [code]shape_owner_*[/code] 方法访问。\n" "[b]注意:[/b]仅支持相同画布中不同对象的碰撞([Viewport] 画布或 " "[CanvasLayer])。不同画布中的对象之间的碰撞行为是未定义的。" #: doc/classes/CollisionObject2D.xml msgid "" "Accepts unhandled [InputEvent]s. Requires [member input_pickable] to be " "[code]true[/code]. [code]shape_idx[/code] is the child index of the clicked " "[Shape2D]. Connect to the [code]input_event[/code] signal to easily pick up " "these events." msgstr "" "接受未处理的[InputEvent]。要求[member input_pickable]为 [code]true[/code]。 " "[code]shape_idx[/code]被点击的[Shape2D]的子索引。连接到[code]input_event[/" "code]信号即可轻松接收这些事件。" #: doc/classes/CollisionObject2D.xml msgid "" "Returns the [code]one_way_collision_margin[/code] of the shape owner " "identified by given [code]owner_id[/code]." msgstr "" "返回由给定的[code]owner_id[/code]标识的形状所有者的" "[code]one_way_collision_margin[/code]。" #: doc/classes/CollisionObject2D.xml msgid "" "Returns [code]true[/code] if collisions for the shape owner originating from " "this [CollisionObject2D] will not be reported to collided with " "[CollisionObject2D]s." msgstr "" "返回 [code]true[/code],如果源于这个[CollisionObject2D]的形状所有者的碰撞不会" "被报告给[CollisionObject2D]s。" #: doc/classes/CollisionObject2D.xml msgid "Adds a [Shape2D] to the shape owner." msgstr "给形状所有者添加一个[Shape2D]。" #: doc/classes/CollisionObject2D.xml msgid "Returns the [Shape2D] with the given id from the given shape owner." msgstr "从给定的形状所有者那里返回给定id的[Shape2D]。" #: doc/classes/CollisionObject2D.xml msgid "" "Returns the child index of the [Shape2D] with the given id from the given " "shape owner." msgstr "从给定的形状所有者那里返回给定id的[Shape2D]的子索引。" #: doc/classes/CollisionObject2D.xml msgid "Returns the shape owner's [Transform2D]." msgstr "返回形状所有者的[Transform2D]。" #: doc/classes/CollisionObject2D.xml msgid "" "If [code]enable[/code] is [code]true[/code], collisions for the shape owner " "originating from this [CollisionObject2D] will not be reported to collided " "with [CollisionObject2D]s." msgstr "" "如果[code]enable[/code]为 [code]true[/code],则源自这个[CollisionObject2D]的" "形状所有者的碰撞将不会被报告给[CollisionObject2D]。" #: doc/classes/CollisionObject2D.xml msgid "" "Sets the [code]one_way_collision_margin[/code] of the shape owner identified " "by given [code]owner_id[/code] to [code]margin[/code] pixels." msgstr "" "将由给定的[code]owner_id[/code]标识的形状所有者的" "[code]one_way_collision_margin[/code]设置为[code]margin[/code]像素。" #: doc/classes/CollisionObject2D.xml msgid "Sets the [Transform2D] of the given shape owner." msgstr "设置给定形状所有者的[Transform2D]。" #: doc/classes/CollisionObject2D.xml msgid "" "The physics layers this CollisionObject2D is in. Collision objects can exist " "in one or more of 32 different layers. See also [member collision_mask].\n" "[b]Note:[/b] A contact is detected if object A is in any of the layers that " "object B scans, or object B is in any layers that object A scans. See " "[url=$DOCS_URL/tutorials/physics/physics_introduction.html#collision-layers-" "and-masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "这个 CollisionObject2D 所在的物理层。碰撞对象可以存在于 32 个不同层中的一个或" "多个。也见 [member collision_mask]。\n" "[b]注意:[/b]如果对象 A 在对象 B 扫描的任何层中,或者对象 B 在对象 A 扫描的任" "何层中,则检测到接触。请参阅文档[url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: doc/classes/CollisionObject2D.xml msgid "" "The physics layers this CollisionObject2D scans. Collision objects can scan " "one or more of 32 different layers. See also [member collision_layer].\n" "[b]Note:[/b] A contact is detected if object A is in any of the layers that " "object B scans, or object B is in any layers that object A scans. See " "[url=$DOCS_URL/tutorials/physics/physics_introduction.html#collision-layers-" "and-masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "这个 CollisionObject2D 所扫描的物理层。碰撞对象可以扫描 32 个不同层中的一个或" "多个。另见 [member collision_layer]。\n" "[b]注意:[/b]如果对象 A 在对象 B 扫描的任何层中,或者对象 B 在对象 A 扫描的任" "何层中,就会检测到接触。详情请参阅文档[url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: doc/classes/CollisionObject2D.xml msgid "" "Emitted when an input event occurs. Requires [member input_pickable] to be " "[code]true[/code] and at least one [code]collision_layer[/code] bit to be " "set. See [method _input_event] for details." msgstr "" "当输入事件发生时发出。要求 [member input_pickable]为 [code]true[/code],并至" "少要设置一个[code]collision_layer[/code]位。有关详细信息,请参阅[method " "_input_event]。" #: doc/classes/CollisionObject2D.xml msgid "" "Emitted when the mouse pointer enters any of this object's shapes. Requires " "[member input_pickable] to be [code]true[/code] and at least one " "[code]collision_layer[/code] bit to be set." msgstr "" "当鼠标指针进入此对象的任何形状时触发。要求[member input_pickable]为 " "[code]true[/code],并且至少要设置一个[code]collision_layer[/code]位。" #: doc/classes/CollisionObject2D.xml msgid "" "Emitted when the mouse pointer exits all this object's shapes. Requires " "[member input_pickable] to be [code]true[/code] and at least one " "[code]collision_layer[/code] bit to be set." msgstr "" "当鼠标指针退出此对象的所有形状时发出。要求[member input_pickable]为 " "[code]true[/code],并且至少要设置一个[code]collision_layer[/code]位。" #: doc/classes/CollisionPolygon.xml msgid "Editor-only class for defining a collision polygon in 3D space." msgstr "仅限编辑器的类,用于在3D空间中定义碰撞多边形。" #: doc/classes/CollisionPolygon.xml msgid "" "Allows editing a collision polygon's vertices on a selected plane. Can also " "set a depth perpendicular to that plane. This class is only available in the " "editor. It will not appear in the scene tree at run-time. Creates a [Shape] " "for gameplay. Properties modified during gameplay will have no effect." msgstr "" "允许在选定平面上编辑碰撞多边形的顶点。也可以设置垂直于该平面的深度。此类仅在" "编辑器中可用。它不会在运行时出现在场景树中。为游戏创建一个形状 [Shape]。在游" "戏过程中修改的属性将不起作用。" #: doc/classes/CollisionPolygon.xml msgid "" "Length that the resulting collision extends in either direction " "perpendicular to its polygon." msgstr "产生的碰撞在垂直于其多边形的任一方向上延伸的长度。" #: doc/classes/CollisionPolygon.xml msgid "If [code]true[/code], no collision will be produced." msgstr "如果[code]true[/code],将不会产生碰撞。" #: doc/classes/CollisionPolygon.xml msgid "" "The collision margin for the generated [Shape]. See [member Shape.margin] " "for more details." msgstr "生成的[Shape]的碰撞边。参阅[member Shape.margin]获取更多细节。" #: doc/classes/CollisionPolygon.xml msgid "" "Array of vertices which define the polygon.\n" "[b]Note:[/b] The returned value is a copy of the original. Methods which " "mutate the size or properties of the return value will not impact the " "original polygon. To change properties of the polygon, assign it to a " "temporary variable and make changes before reassigning the [code]polygon[/" "code] member." msgstr "" "定义多边形的顶点数组。\n" "[b]注意:[/b]返回的值是原始值的副本。改变返回值的大小或属性的方法不会影响原始" "多边形。要更改多边形的属性,请将其分配给临时变量并进行更改,然后再重新分配" "[code]polygon[/code]成员。" #: doc/classes/CollisionPolygon2D.xml msgid "Defines a 2D collision polygon." msgstr "定义2D碰撞多边形。" #: doc/classes/CollisionPolygon2D.xml msgid "" "Provides a 2D collision polygon to a [CollisionObject2D] parent. Polygons " "can be drawn in the editor or specified by a list of vertices." msgstr "" "为[CollisionObject2D]父级提供2D碰撞多边形。多边形可以在编辑器中绘制,也可以由" "顶点列表指定。" #: doc/classes/CollisionPolygon2D.xml msgid "Collision build mode. Use one of the [enum BuildMode] constants." msgstr "碰撞构建模式。使用[enum BuildMode]常量之一。" #: doc/classes/CollisionPolygon2D.xml msgid "If [code]true[/code], no collisions will be detected." msgstr "如果为 [code]true[/code],则不会检测到碰撞。" #: doc/classes/CollisionPolygon2D.xml msgid "" "If [code]true[/code], only edges that face up, relative to " "[CollisionPolygon2D]'s rotation, will collide with other objects.\n" "[b]Note:[/b] This property has no effect if this [CollisionPolygon2D] is a " "child of an [Area2D] node." msgstr "" "如果为 [code]true[/code],则只有面朝上的边缘才会与其他对象发生碰撞,方向是相" "对于 [CollisionPolygon2D] 的旋转而言的。\n" "[b]注意:[/b]如果这个 [CollisionPolygon2D] 是 [Area2D] 节点的子节点,则这个属" "性无效。" #: doc/classes/CollisionPolygon2D.xml msgid "" "The margin used for one-way collision (in pixels). Higher values will make " "the shape thicker, and work better for colliders that enter the polygon at a " "high velocity." msgstr "" "用于单向碰撞的边距(以像素为单位)。较高的值将使形状更厚,并且对于以高速进入" "多边形的对撞机来说效果更好。" #: doc/classes/CollisionPolygon2D.xml msgid "" "The polygon's list of vertices. The final point will be connected to the " "first. The returned value is a clone of the [PoolVector2Array], not a " "reference." msgstr "" "多边形的顶点列表。最后一个点将与第一个点相连。返回值是 [PoolVector2Array] 的" "克隆,不是引用。" #: doc/classes/CollisionPolygon2D.xml msgid "Collisions will include the polygon and its contained area." msgstr "碰撞将包括多边形及其包含的区域。" #: doc/classes/CollisionPolygon2D.xml msgid "Collisions will only include the polygon edges." msgstr "碰撞将仅包括多边形边缘。" #: doc/classes/CollisionShape.xml msgid "Node that represents collision shape data in 3D space." msgstr "表示3D空间中的碰撞形状数据的节点。" #: doc/classes/CollisionShape.xml msgid "" "Editor facility for creating and editing collision shapes in 3D space. You " "can use this node to represent all sorts of collision shapes, for example, " "add this to an [Area] to give it a detection shape, or add it to a " "[PhysicsBody] to create a solid object. [b]IMPORTANT[/b]: this is an Editor-" "only helper to create shapes, use [method CollisionObject." "shape_owner_get_shape] to get the actual shape." msgstr "" "用于在 3D 空间中创建和编辑碰撞形状的编辑工具。您可以使用此节点表示各种碰撞形" "状,例如,将其添加到 [Area] 以使其具有检测形状,或将其添加到物理体 " "[PhysicsBody] 以创建实体对象。[b]重要[/b]:这是一个编辑器专用的创建形状的助" "手,使用 [method CollisionObject.shape_owner_get_shape] 获取实际形状。" #: doc/classes/CollisionShape.xml doc/classes/CollisionShape2D.xml #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/Physics2DDirectSpaceState.xml #: doc/classes/PhysicsDirectBodyState.xml #: doc/classes/PhysicsDirectSpaceState.xml doc/classes/RigidBody.xml msgid "Physics introduction" msgstr "物理介绍" #: doc/classes/CollisionShape.xml msgid "" "Sets the collision shape's shape to the addition of all its convexed " "[MeshInstance] siblings geometry." msgstr "将碰撞形状的形状设置为其所有凸出的 [MeshInstance] 兄弟几何体的相加。" #: doc/classes/CollisionShape.xml msgid "" "If this method exists within a script it will be called whenever the shape " "resource has been modified." msgstr "如果脚本中存在此方法,则只要修改形状资源,就会调用该方法。" #: doc/classes/CollisionShape.xml msgid "A disabled collision shape has no effect in the world." msgstr "禁用的碰撞形状对世界没有任何影响。" #: doc/classes/CollisionShape.xml doc/classes/CollisionShape2D.xml msgid "The actual shape owned by this collision shape." msgstr "该碰撞形状拥有的实际形状。" #: doc/classes/CollisionShape2D.xml msgid "Node that represents collision shape data in 2D space." msgstr "表示2D空间中的碰撞形状数据的节点。" #: doc/classes/CollisionShape2D.xml msgid "" "Editor facility for creating and editing collision shapes in 2D space. You " "can use this node to represent all sorts of collision shapes, for example, " "add this to an [Area2D] to give it a detection shape, or add it to a " "[PhysicsBody2D] to create a solid object. [b]IMPORTANT[/b]: this is an " "Editor-only helper to create shapes, use [method CollisionObject2D." "shape_owner_get_shape] to get the actual shape." msgstr "" "编辑器功能,用于在2D空间中创建和编辑碰撞形状。您可以使用此节点表示各种碰撞形" "状,例如,将其添加到[Area2D]以提供检测形状,或将其添加到[PhysicsBody2D]以创建" "实体。 [b]重要事项[/b]:这是创建形状的仅编辑器助手,请使用[method " "CollisionObject2D.shape_owner_get_shape]获取实际形状。" #: doc/classes/CollisionShape2D.xml doc/classes/KinematicBody2D.xml #: doc/classes/RectangleShape2D.xml doc/classes/TileMap.xml #: doc/classes/TileSet.xml msgid "2D Kinematic Character Demo" msgstr "2D 运动学角色演示" #: doc/classes/CollisionShape2D.xml msgid "" "A disabled collision shape has no effect in the world. This property should " "be changed with [method Object.set_deferred]." msgstr "" "禁用的碰撞形状在世界中没有影响。这个属性应该用 [method Object.set_deferred] " "改变。" #: doc/classes/CollisionShape2D.xml msgid "" "Sets whether this collision shape should only detect collision on one side " "(top or bottom).\n" "[b]Note:[/b] This property has no effect if this [CollisionShape2D] is a " "child of an [Area2D] node." msgstr "" "设置此碰撞形状是否仅应检测到一侧(顶部或底部)的碰撞。\n" "[b]注意:[/b]如果这个 [CollisionShape2D] 是 [Area2D] 节点的子节点,则这个属性" "无效。" #: doc/classes/CollisionShape2D.xml msgid "" "The margin used for one-way collision (in pixels). Higher values will make " "the shape thicker, and work better for colliders that enter the shape at a " "high velocity." msgstr "" "用于单向碰撞的边距(以像素为单位)。较高的值将使形状更厚,并且对于高速进入形" "状的对撞机来说效果更好。" #: doc/classes/Color.xml msgid "Color in RGBA format using floats on the range of 0 to 1." msgstr "RGBA 格式的颜色,使用 0 到 1 范围内的浮点数。" #: doc/classes/Color.xml msgid "" "A color represented by red, green, blue, and alpha (RGBA) components. The " "alpha component is often used for opacity. Values are in floating-point and " "usually range from 0 to 1. Some properties (such as CanvasItem.modulate) may " "accept values greater than 1 (overbright or HDR colors).\n" "You can also create a color from standardized color names by using [method " "@GDScript.ColorN] or directly using the color constants defined here. The " "standardized color set is based on the [url=https://en.wikipedia.org/wiki/" "X11_color_names]X11 color names[/url].\n" "If you want to supply values in a range of 0 to 255, you should use [method " "@GDScript.Color8].\n" "[b]Note:[/b] In a boolean context, a Color will evaluate to [code]false[/" "code] if it's equal to [code]Color(0, 0, 0, 1)[/code] (opaque black). " "Otherwise, a Color will always evaluate to [code]true[/code].\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "color_constants.png]Color constants cheatsheet[/url]" msgstr "" "由红、绿、蓝、Alpha(RGBA)分量表示的颜色。Alpha 分量通常用于不透明度。这些值" "都是浮点数,范围一般在 0 到 1 之间。有些属性(如 CanvasItem.modulate)可以接" "受大于 1 的值(过亮或 HDR 颜色)。\n" "您也可以通过使用 [method @GDScript.ColorN] 从标准化颜色名称中创建颜色,或者直" "接使用这里定义的颜色常量。标准化颜色集取自 [url=https://en.wikipedia.org/" "wiki/X11_color_names]X11 颜色名称[/url]。\n" "如果想提供 0 到 255 范围内的值,你应该使用 [method @GDScript.Color8]。\n" "[b]注意:[/b]在布尔上下文中,等于 [code]Color(0, 0, 0, 1)[/code](不透明的黑" "色)的 Color 将被评估为 [code]false[/code]。否则,Color 将始终被评估为 " "[code]true[/code]。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "color_constants.png]Color 常量速查表[/url]" #: doc/classes/Color.xml doc/classes/ColorPickerButton.xml msgid "2D GD Paint Demo" msgstr "2D GD 画图演示" #: doc/classes/Color.xml doc/classes/ColorPicker.xml msgid "Tween Demo" msgstr "Tween 演示" #: doc/classes/Color.xml doc/classes/ColorPickerButton.xml msgid "GUI Drag And Drop Demo" msgstr "GUI 拖放演示" #: doc/classes/Color.xml msgid "" "Constructs a color from an HTML hexadecimal color string in ARGB or RGB " "format. See also [method @GDScript.ColorN].\n" "[codeblock]\n" "# Each of the following creates the same color RGBA(178, 217, 10, 255).\n" "var c1 = Color(\"#ffb2d90a\") # ARGB format with \"#\".\n" "var c2 = Color(\"ffb2d90a\") # ARGB format.\n" "var c3 = Color(\"#b2d90a\") # RGB format with \"#\".\n" "var c4 = Color(\"b2d90a\") # RGB format.\n" "[/codeblock]" msgstr "" "从 HTML 十六进制颜色字符串构造 ARGB 或 RGB 格式的颜色。另请参阅 [method " "@GDScript.ColorN]。\n" "[codeblock]\n" "# 以下每一个都是一样的颜色 RGBA(178, 217, 10, 255)。\n" "var c1 = Color(\"#ffb2d90a\") # ARGB 格式,带“#”。\n" "var c2 = Color(\"ffb2d90a\") # ARGB 格式。\n" "var c3 = Color(\"#b2d90a\") # RGB 格式,带“#”。\n" "var c4 = Color(\"b2d90a\") # RGB 格式。\n" "[/codeblock]" #: doc/classes/Color.xml #, fuzzy msgid "" "Constructs a color from a 32-bit integer in RGBA format (each byte " "represents a color channel).\n" "[codeblock]\n" "var color = Color(274) # Similar to Color(0.0, 0.0, 0.004, 0.07)\n" "[/codeblock]" msgstr "" "从 RGBA 格式的 32 位整数构造颜色,每个字节代表一个颜色通道。\n" "[codeblock]\n" "var c = Color(274) # Similar to Color(0.0, 0.0, 0.004, 0.07)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Constructs a color from RGB values, typically between 0 and 1. Alpha will be " "1.\n" "[codeblock]\n" "var color = Color(0.2, 1.0, 0.7) # Similar to Color8(51, 255, 178, 255)\n" "[/codeblock]" msgstr "" "根据 RGB 值构造颜色,通常介于 0 和 1 之间。Alpha 将为 1。\n" "[codeblock]\n" "var color = Color(0.2, 1.0, 0.7) # 类似于 Color8(51, 255, 178, 255)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Constructs a color from RGBA values, typically between 0 and 1.\n" "[codeblock]\n" "var color = Color(0.2, 1.0, 0.7, 0.8) # Similar to Color8(51, 255, 178, " "204)\n" "[/codeblock]" msgstr "" "根据 RGBA 值构造颜色,通常介于 0 和 1 之间。\n" "[codeblock]\n" "var color = Color(0.2, 1.0, 0.7, 0.8) # Similar to Color8(51, 255, 178, " "204)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns a new color resulting from blending this color over another. If the " "color is opaque, the result is also opaque. The second color may have a " "range of alpha values.\n" "[codeblock]\n" "var bg = Color(0.0, 1.0, 0.0, 0.5) # Green with alpha of 50%\n" "var fg = Color(1.0, 0.0, 0.0, 0.5) # Red with alpha of 50%\n" "var blended_color = bg.blend(fg) # Brown with alpha of 75%\n" "[/codeblock]" msgstr "" "返回将此颜色混合到另一个颜色上所产生的新颜色。如果颜色是不透明的,结果也是不" "透明的。第二种颜色可以有一定范围的 Alpha 值。\n" "[codeblock]\n" "var bg = Color(0.0, 1.0, 0.0, 0.5) # 50% 不透明的绿色\n" "var fg = Color(1.0, 0.0, 0.0, 0.5) # 50% 不透明的红色\n" "var blended_color = bg.blend(fg) # 75% 不透明的棕色\n" "[/codeblock]" #: doc/classes/Color.xml #, fuzzy msgid "" "Returns the most contrasting color.\n" "[codeblock]\n" "var color = Color(0.3, 0.4, 0.9)\n" "var contrasted_color = color.contrasted() # Equivalent to RGBA(204, 229, " "102, 255)\n" "[/codeblock]" msgstr "" "返回对比度最高的颜色。\n" "[codeblock]\n" "var c = Color(0.3, 0.4, 0.9)\n" "var contrasted_color = c.contrasted() # Equivalent to RGBA(204, 229, 102, " "255)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns a new color resulting from making this color darker by the specified " "percentage (ratio from 0 to 1).\n" "[codeblock]\n" "var green = Color(0.0, 1.0, 0.0)\n" "var darkgreen = green.darkened(0.2) # 20% darker than regular green\n" "[/codeblock]" msgstr "" "返回一个新的颜色,这个颜色按指定的百分比(比例从0到1)变暗。\n" "[codeblock]\n" "var green = Color(0.0, 1.0, 0.0)\n" "var darkgreen = green.darkened(0.2) # 20% darker than regular green\n" "[/codeblock]" #: doc/classes/Color.xml #, fuzzy msgid "" "Constructs a color from an HSV profile. [code]h[/code], [code]s[/code], and " "[code]v[/code] are values between 0 and 1.\n" "[codeblock]\n" "var color = Color.from_hsv(0.58, 0.5, 0.79, 0.8) # Equivalent to HSV(210, " "50, 79, 0.8) or Color8(100, 151, 201, 0.8)\n" "[/codeblock]" msgstr "" "从 HSV 配置文件中构建一个颜色。[code]h[/code]、[code]s[/code]和[code]v[/code]" "是0和1之间的值。\n" "[codeblock]\n" "var c = Color.from_hsv(0.58, 0.5, 0.79, 0.8) # Equivalent to HSV(210, 50, " "79, 0.8) or Color8(100, 151, 201, 0.8)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the luminance of the color in the [code][0.0, 1.0][/code] range.\n" "This is useful when determining light or dark color. Colors with a luminance " "smaller than 0.5 can be generally considered dark." msgstr "" "返回该颜色的亮度,位于 [code][0.0, 1.0][/code] 的范围内。\n" "可以用来确定颜色是亮色还是暗色。一般认为亮度小于 0.5 的颜色是暗色。" #: doc/classes/Color.xml #, fuzzy msgid "" "Returns the color's grayscale representation.\n" "The gray value is calculated as [code](r + g + b) / 3[/code].\n" "[codeblock]\n" "var color = Color(0.2, 0.45, 0.82)\n" "var gray = color.gray() # A value of 0.466667\n" "[/codeblock]" msgstr "" "返回颜色的灰度表示。\n" "灰度值计算为 [code](r + g + b) / 3[/code]。\n" "[codeblock]\n" "var c = Color(0.2, 0.45, 0.82)\n" "var gray = c.gray() # A value of 0.466667\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the inverted color [code](1 - r, 1 - g, 1 - b, a)[/code].\n" "[codeblock]\n" "var color = Color(0.3, 0.4, 0.9)\n" "var inverted_color = color.inverted() # Equivalent to Color(0.7, 0.6, 0.1)\n" "[/codeblock]" msgstr "" "返回反色 [code](1 - r, 1 - g, 1 - b, a)[/code]。\n" "[codeblock]\n" "var color = Color(0.3, 0.4, 0.9)\n" "var inverted_color = color.inverted() # 等价于 Color(0.7, 0.6, 0.1)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns [code]true[/code] if this color and [code]color[/code] are " "approximately equal, by running [method @GDScript.is_equal_approx] on each " "component." msgstr "" "如果这个颜色和 [code]color[/code] 近似相等,则返回 [code]true[/code],方法是" "对每个分量运行 [method @GDScript.is_equal_approx]。" #: doc/classes/Color.xml msgid "" "Returns a new color resulting from making this color lighter by the " "specified percentage (ratio from 0 to 1).\n" "[codeblock]\n" "var green = Color(0.0, 1.0, 0.0)\n" "var lightgreen = green.lightened(0.2) # 20% lighter than regular green\n" "[/codeblock]" msgstr "" "返回将此颜色按指定百分比(比例从0到1)变浅后产生的新颜色。\n" "[codeblock]\n" "var green = Color(0.0, 1.0, 0.0)\n" "var lightgreen = green.lightened(0.2) # 20% lighter than regular green\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the linear interpolation with another color. The interpolation " "factor [code]weight[/code] is between 0 and 1.\n" "[codeblock]\n" "var c1 = Color(1.0, 0.0, 0.0)\n" "var c2 = Color(0.0, 1.0, 0.0)\n" "var li_c = c1.linear_interpolate(c2, 0.5) # Equivalent to Color(0.5, 0.5, " "0.0)\n" "[/codeblock]" msgstr "" "返回另一种颜色的线性插值。插值系数 [code]weight[/code] 介于 0 和 1 之间。\n" "[codeblock]\n" "var c1 = Color(1.0, 0.0, 0.0)\n" "var c2 = Color(0.0, 1.0, 0.0)\n" "var li_c = c1.linear_interpolate(c2, 0.5) # Equivalent to Color(0.5, 0.5, " "0.0)\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the color converted to a 32-bit integer in ABGR format (each byte " "represents a color channel). ABGR is the reversed version of the default " "format.\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_abgr32()) # Prints 4281565439\n" "[/codeblock]" msgstr "" "返回转换为 ABGR 格式的 32 位整数的颜色,每个字节代表一个颜色通道。 ABGR 是默" "认格式的转置版本。\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_abgr32()) # Prints 4281565439\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the color converted to a 64-bit integer in ABGR format (each word " "represents a color channel). ABGR is the reversed version of the default " "format.\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_abgr64()) # Prints -225178692812801\n" "[/codeblock]" msgstr "" "返回转换为 ABGR 格式的 64 位整数的颜色,每个字代表一个颜色通道。 ABGR 是默认" "格式的转置版本。\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_abgr64()) # Prints -225178692812801\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the color converted to a 32-bit integer in ARGB format (each byte " "represents a color channel). ARGB is more compatible with DirectX.\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_argb32()) # Prints 4294934323\n" "[/codeblock]" msgstr "" "返回转换为 ARGB 格式的 32 位整数的颜色,每个字节代表一个颜色通道。 ARGB 与 " "DirectX 更加兼容。\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_argb32()) # Prints 4294934323\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the color converted to a 64-bit integer in ARGB format (each word " "represents a color channel). ARGB is more compatible with DirectX.\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_argb64()) # Prints -2147470541\n" "[/codeblock]" msgstr "" "返回转换为 ARGB 格式的 64 位整数的颜色,每个字代表一个颜色通道。 ARGB 与 " "DirectX 更加兼容。\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_argb64()) # Prints -2147470541\n" "[/codeblock]" #: doc/classes/Color.xml #, fuzzy msgid "" "Returns the color's HTML hexadecimal color string in ARGB format (ex: " "[code]ff34f822[/code]).\n" "Setting [code]with_alpha[/code] to [code]false[/code] excludes alpha from " "the hexadecimal string.\n" "[codeblock]\n" "var color = Color(1, 1, 1, 0.5)\n" "var s1 = color.to_html() # Returns \"7fffffff\"\n" "var s2 = color.to_html(false) # Returns \"ffffff\"\n" "[/codeblock]" msgstr "" "返回 ARGB 格式的 HTML 十六进制颜色字符串(例如:[code]ff34f822[/code])。\n" "将 [code]with_alpha[/code] 设置为 [code]false[/code] 将十六进制字符串中的 " "Alpha 排除在外。\n" "[codeblock]\n" "var c = Color(1, 1, 1, 0.5)\n" "var s1 = c.to_html() # 返回 \"7fffffff\"\n" "var s2 = c.to_html(false) # 返回 \"ffffff\"\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the color converted to a 32-bit integer in RGBA format (each byte " "represents a color channel). RGBA is Godot's default format.\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_rgba32()) # Prints 4286526463\n" "[/codeblock]" msgstr "" "返回转换为 RGBA 格式的 32 位整数的颜色,每个字节代表一个颜色通道。 RGBA 是 " "Godot 的默认格式。\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_rgba32()) # Prints 4286526463\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "Returns the color converted to a 64-bit integer in RGBA format (each word " "represents a color channel). RGBA is Godot's default format.\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_rgba64()) # Prints -140736629309441\n" "[/codeblock]" msgstr "" "返回转换为 RGBA 格式的 64 位整数的颜色,每个字代表一个颜色通道。 RGBA 是 " "Godot 的默认格式。\n" "[codeblock]\n" "var color = Color(1, 0.5, 0.2)\n" "print(color.to_rgba64()) # Prints -140736629309441\n" "[/codeblock]" #: doc/classes/Color.xml msgid "" "The color's alpha component, typically on the range of 0 to 1. A value of 0 " "means that the color is fully transparent. A value of 1 means that the color " "is fully opaque." msgstr "" "颜色的 Alpha 分量,一般在 0 到 1 的范围内。0 表示该颜色完全透明。1 表示该颜色" "完全不透明。" #: doc/classes/Color.xml msgid "Wrapper for [member a] that uses the range 0 to 255 instead of 0 to 1." msgstr "[member a]的包装程序,使用的范围是0到255,而不是0到1。" #: doc/classes/Color.xml msgid "The color's blue component, typically on the range of 0 to 1." msgstr "颜色的蓝色分量,一般在 0 到 1 的范围内。" #: doc/classes/Color.xml msgid "Wrapper for [member b] that uses the range 0 to 255 instead of 0 to 1." msgstr "[member b]的封装器,使用0到255的范围,而不是0到1。" #: doc/classes/Color.xml msgid "The color's green component, typically on the range of 0 to 1." msgstr "颜色的绿色分量,一般在 0 到 1 的范围内。" #: doc/classes/Color.xml msgid "Wrapper for [member g] that uses the range 0 to 255 instead of 0 to 1." msgstr "[member g]的封装器,使用范围0到255而不是0到1。" #: doc/classes/Color.xml msgid "The HSV hue of this color, on the range 0 to 1." msgstr "这个颜色的HSV色相,范围是0到1。" #: doc/classes/Color.xml msgid "The color's red component, typically on the range of 0 to 1." msgstr "颜色的红色分量,通常在0到1的范围内。" #: doc/classes/Color.xml msgid "Wrapper for [member r] that uses the range 0 to 255 instead of 0 to 1." msgstr "[member r]的封装器,使用0到255的范围而不是0到1。" #: doc/classes/Color.xml msgid "The HSV saturation of this color, on the range 0 to 1." msgstr "该颜色的HSV饱和度,范围为0到1。" #: doc/classes/Color.xml msgid "The HSV value (brightness) of this color, on the range 0 to 1." msgstr "该颜色的HSV值(亮度),范围为0至1。" #: doc/classes/Color.xml msgid "Alice blue color." msgstr "爱丽丝蓝。" #: doc/classes/Color.xml msgid "Antique white color." msgstr "古董白。" #: doc/classes/Color.xml msgid "Aqua color." msgstr "水色." #: doc/classes/Color.xml msgid "Aquamarine color." msgstr "海蓝色." #: doc/classes/Color.xml msgid "Azure color." msgstr "天蓝色." #: doc/classes/Color.xml msgid "Beige color." msgstr "米黄色." #: doc/classes/Color.xml msgid "Bisque color." msgstr "橘黄色." #: doc/classes/Color.xml msgid "Black color." msgstr "黑色." #: doc/classes/Color.xml msgid "Blanche almond color." msgstr "布兰奇杏仁色。" #: doc/classes/Color.xml msgid "Blue color." msgstr "蓝色." #: doc/classes/Color.xml msgid "Blue violet color." msgstr "蓝紫色的颜色。" #: doc/classes/Color.xml msgid "Brown color." msgstr "棕色." #: doc/classes/Color.xml msgid "Burly wood color." msgstr "癭木色。" #: doc/classes/Color.xml msgid "Cadet blue color." msgstr "军服蓝。" #: doc/classes/Color.xml msgid "Chartreuse color." msgstr "黄褐色." #: doc/classes/Color.xml msgid "Chocolate color." msgstr "巧克力色." #: doc/classes/Color.xml msgid "Coral color." msgstr "珊瑚色." #: doc/classes/Color.xml msgid "Cornflower color." msgstr "矢车菊花色。" #: doc/classes/Color.xml msgid "Corn silk color." msgstr "玉米丝色。" #: doc/classes/Color.xml msgid "Crimson color." msgstr "绯红的颜色。" #: doc/classes/Color.xml msgid "Cyan color." msgstr "青色。" #: doc/classes/Color.xml msgid "Dark blue color." msgstr "深蓝色。" #: doc/classes/Color.xml msgid "Dark cyan color." msgstr "深青色。" #: doc/classes/Color.xml msgid "Dark goldenrod color." msgstr "深色菊科植物的颜色。" #: doc/classes/Color.xml msgid "Dark gray color." msgstr "深灰色。" #: doc/classes/Color.xml msgid "Dark green color." msgstr "深绿色。" #: doc/classes/Color.xml msgid "Dark khaki color." msgstr "深卡其色。" #: doc/classes/Color.xml msgid "Dark magenta color." msgstr "深洋红色。" #: doc/classes/Color.xml msgid "Dark olive green color." msgstr "深橄榄绿色。" #: doc/classes/Color.xml msgid "Dark orange color." msgstr "深橙色。" #: doc/classes/Color.xml msgid "Dark orchid color." msgstr "深色的兰花色。" #: doc/classes/Color.xml msgid "Dark red color." msgstr "深红色。" #: doc/classes/Color.xml msgid "Dark salmon color." msgstr "深鲑鱼色。" #: doc/classes/Color.xml msgid "Dark sea green color." msgstr "深海绿色。" #: doc/classes/Color.xml msgid "Dark slate blue color." msgstr "深板蓝的颜色。" #: doc/classes/Color.xml msgid "Dark slate gray color." msgstr "暗石板灰色。" #: doc/classes/Color.xml msgid "Dark turquoise color." msgstr "深绿松石色。" #: doc/classes/Color.xml msgid "Dark violet color." msgstr "深紫罗兰色。" #: doc/classes/Color.xml msgid "Deep pink color." msgstr "深粉色。" #: doc/classes/Color.xml msgid "Deep sky blue color." msgstr "深邃的天蓝色。" #: doc/classes/Color.xml msgid "Dim gray color." msgstr "暗灰色。" #: doc/classes/Color.xml msgid "Dodger blue color." msgstr "道奇蓝色。" #: doc/classes/Color.xml msgid "Firebrick color." msgstr "火砖的颜色。" #: doc/classes/Color.xml msgid "Floral white color." msgstr "花白色。" #: doc/classes/Color.xml msgid "Forest green color." msgstr "森林绿色。" #: doc/classes/Color.xml msgid "Fuchsia color." msgstr "紫红色的颜色。" #: doc/classes/Color.xml msgid "Gainsboro color." msgstr "庚斯伯勒颜色。" #: doc/classes/Color.xml msgid "Ghost white color." msgstr "幽灵白颜色。" #: doc/classes/Color.xml msgid "Gold color." msgstr "金色。" #: doc/classes/Color.xml msgid "Goldenrod color." msgstr "金黄的颜色。" #: doc/classes/Color.xml msgid "Gray color." msgstr "灰色。" #: doc/classes/Color.xml msgid "Green color." msgstr "绿色。" #: doc/classes/Color.xml msgid "Green yellow color." msgstr "绿黄色。" #: doc/classes/Color.xml msgid "Honeydew color." msgstr "蜜露色。" #: doc/classes/Color.xml msgid "Hot pink color." msgstr "炙热的粉红色。" #: doc/classes/Color.xml msgid "Indian red color." msgstr "印度红色。" #: doc/classes/Color.xml msgid "Indigo color." msgstr "靛青色。" #: doc/classes/Color.xml msgid "Ivory color." msgstr "象牙色。" #: doc/classes/Color.xml msgid "Khaki color." msgstr "卡其色。" #: doc/classes/Color.xml msgid "Lavender color." msgstr "薰衣草色。" #: doc/classes/Color.xml msgid "Lavender blush color." msgstr "薰衣草腮红的颜色。" #: doc/classes/Color.xml msgid "Lawn green color." msgstr "草坪绿色。" #: doc/classes/Color.xml msgid "Lemon chiffon color." msgstr "柠檬雪纺色。" #: doc/classes/Color.xml msgid "Light blue color." msgstr "浅蓝色。" #: doc/classes/Color.xml msgid "Light coral color." msgstr "浅珊瑚色。" #: doc/classes/Color.xml msgid "Light cyan color." msgstr "淡青色。" #: doc/classes/Color.xml msgid "Light goldenrod color." msgstr "淡淡的金黄色。" #: doc/classes/Color.xml msgid "Light gray color." msgstr "浅灰色。" #: doc/classes/Color.xml msgid "Light green color." msgstr "浅绿色。" #: doc/classes/Color.xml msgid "Light pink color." msgstr "浅粉色。" #: doc/classes/Color.xml msgid "Light salmon color." msgstr "浅鲑鱼色。" #: doc/classes/Color.xml msgid "Light sea green color." msgstr "浅海绿色。" #: doc/classes/Color.xml msgid "Light sky blue color." msgstr "浅天蓝色。" #: doc/classes/Color.xml msgid "Light slate gray color." msgstr "浅板岩灰色。" #: doc/classes/Color.xml msgid "Light steel blue color." msgstr "浅钢蓝色。" #: doc/classes/Color.xml msgid "Light yellow color." msgstr "浅黄色。" #: doc/classes/Color.xml msgid "Lime color." msgstr "青柠色。" #: doc/classes/Color.xml msgid "Lime green color." msgstr "石灰绿色。" #: doc/classes/Color.xml msgid "Linen color." msgstr "亚麻色。" #: doc/classes/Color.xml msgid "Magenta color." msgstr "洋红色。" #: doc/classes/Color.xml msgid "Maroon color." msgstr "栗色。" #: doc/classes/Color.xml msgid "Medium aquamarine color." msgstr "中等海蓝宝石色。" #: doc/classes/Color.xml msgid "Medium blue color." msgstr "中蓝色。" #: doc/classes/Color.xml msgid "Medium orchid color." msgstr "中等兰色。" #: doc/classes/Color.xml msgid "Medium purple color." msgstr "中等紫色。" #: doc/classes/Color.xml msgid "Medium sea green color." msgstr "中海绿色。" #: doc/classes/Color.xml msgid "Medium slate blue color." msgstr "中等板岩蓝色。" #: doc/classes/Color.xml msgid "Medium spring green color." msgstr "中等春天绿色。" #: doc/classes/Color.xml msgid "Medium turquoise color." msgstr "中等绿松石色。" #: doc/classes/Color.xml msgid "Medium violet red color." msgstr "中等紫红色。" #: doc/classes/Color.xml msgid "Midnight blue color." msgstr "午夜蓝色。" #: doc/classes/Color.xml msgid "Mint cream color." msgstr "薄荷奶油色。" #: doc/classes/Color.xml msgid "Misty rose color." msgstr "朦胧的玫瑰色。" #: doc/classes/Color.xml msgid "Moccasin color." msgstr "鹿皮鞋颜色。" #: doc/classes/Color.xml msgid "Navajo white color." msgstr "纳瓦白。" #: doc/classes/Color.xml msgid "Navy blue color." msgstr "藏青色。" #: doc/classes/Color.xml msgid "Old lace color." msgstr "旧蕾丝色。" #: doc/classes/Color.xml msgid "Olive color." msgstr "橄榄色。" #: doc/classes/Color.xml msgid "Olive drab color." msgstr "暗淡橄榄色。" #: doc/classes/Color.xml msgid "Orange color." msgstr "橙色。" #: doc/classes/Color.xml msgid "Orange red color." msgstr "橘红色。" #: doc/classes/Color.xml msgid "Orchid color." msgstr "兰花色。" #: doc/classes/Color.xml msgid "Pale goldenrod color." msgstr "淡金色。" #: doc/classes/Color.xml msgid "Pale green color." msgstr "淡绿色。" #: doc/classes/Color.xml msgid "Pale turquoise color." msgstr "淡绿松石色。" #: doc/classes/Color.xml msgid "Pale violet red color." msgstr "淡紫红色。" #: doc/classes/Color.xml msgid "Papaya whip color." msgstr "木瓜鞭色。" #: doc/classes/Color.xml msgid "Peach puff color." msgstr "桃花粉。" #: doc/classes/Color.xml msgid "Peru color." msgstr "秘鲁色。" #: doc/classes/Color.xml msgid "Pink color." msgstr "粉红色。" #: doc/classes/Color.xml msgid "Plum color." msgstr "梅花色。" #: doc/classes/Color.xml msgid "Powder blue color." msgstr "浅蓝色。" #: doc/classes/Color.xml msgid "Purple color." msgstr "紫色。" #: doc/classes/Color.xml msgid "Rebecca purple color." msgstr "丽贝卡紫色。" #: doc/classes/Color.xml msgid "Red color." msgstr "红色。" #: doc/classes/Color.xml msgid "Rosy brown color." msgstr "玫瑰棕。" #: doc/classes/Color.xml msgid "Royal blue color." msgstr "宝蓝色。" #: doc/classes/Color.xml msgid "Saddle brown color." msgstr "鞍棕色。" #: doc/classes/Color.xml msgid "Salmon color." msgstr "鲑鱼色。" #: doc/classes/Color.xml msgid "Sandy brown color." msgstr "沙褐色。" #: doc/classes/Color.xml msgid "Sea green color." msgstr "海绿色。" #: doc/classes/Color.xml msgid "Seashell color." msgstr "贝壳色。" #: doc/classes/Color.xml msgid "Sienna color." msgstr "西恩娜色。" #: doc/classes/Color.xml msgid "Silver color." msgstr "银色。" #: doc/classes/Color.xml msgid "Sky blue color." msgstr "天蓝色。" #: doc/classes/Color.xml msgid "Slate blue color." msgstr "石板蓝色。" #: doc/classes/Color.xml msgid "Slate gray color." msgstr "石板灰。" #: doc/classes/Color.xml msgid "Snow color." msgstr "雪白。" #: doc/classes/Color.xml msgid "Spring green color." msgstr "春绿。" #: doc/classes/Color.xml msgid "Steel blue color." msgstr "钢蓝色。" #: doc/classes/Color.xml msgid "Tan color." msgstr "棕褐色。" #: doc/classes/Color.xml msgid "Teal color." msgstr "青色。" #: doc/classes/Color.xml msgid "Thistle color." msgstr "蓟色。" #: doc/classes/Color.xml msgid "Tomato color." msgstr "番茄色。" #: doc/classes/Color.xml msgid "Transparent color (white with no alpha)." msgstr "透明色(白色,无 Alpha)。" #: doc/classes/Color.xml msgid "Turquoise color." msgstr "松石绿。" #: doc/classes/Color.xml msgid "Violet color." msgstr "紫罗兰色。" #: doc/classes/Color.xml msgid "Web gray color." msgstr "网格灰。" #: doc/classes/Color.xml msgid "Web green color." msgstr "网络绿。" #: doc/classes/Color.xml msgid "Web maroon color." msgstr "网络栗。" #: doc/classes/Color.xml msgid "Web purple color." msgstr "网络紫。" #: doc/classes/Color.xml msgid "Wheat color." msgstr "小麦色。" #: doc/classes/Color.xml msgid "White color." msgstr "白色。" #: doc/classes/Color.xml msgid "White smoke color." msgstr "白烟色。" #: doc/classes/Color.xml msgid "Yellow color." msgstr "黄色。" #: doc/classes/Color.xml msgid "Yellow green color." msgstr "黄绿色。" #: doc/classes/ColorPicker.xml msgid "Color picker control." msgstr "取色器控件。" #: doc/classes/ColorPicker.xml msgid "" "Displays a color picker widget. Useful for selecting a color from an RGB/" "RGBA colorspace.\n" "[b]Note:[/b] This control is the color picker widget itself. You can use a " "[ColorPickerButton] instead if you need a button that brings up a " "[ColorPicker] in a pop-up." msgstr "" "显示一个取色器部件。可以从 RGB/RGBA 彩色空间内选取一个颜色。\n" "[b]注意:[/b]这个控件就是取色器本身。如果你需要一个能够弹出一个 " "[ColorPicker] 窗口的按钮,你可以使用一个 [ColorPickerButton] 来代替它。" #: doc/classes/ColorPicker.xml msgid "" "Adds the given color to a list of color presets. The presets are displayed " "in the color picker and the user will be able to select them.\n" "[b]Note:[/b] The presets list is only for [i]this[/i] color picker." msgstr "" "将给定的颜色添加到颜色预设列表中。预设会显示在取色器中,可以被用户选择。\n" "[b]注意:[/b]预设列表仅适用于[i]这个[/i]取色器。" #: doc/classes/ColorPicker.xml msgid "" "Removes the given color from the list of color presets of this color picker." msgstr "从这个取色器的颜色预设列表中删除给定的颜色。" #: doc/classes/ColorPicker.xml msgid "Returns the list of colors in the presets of the color picker." msgstr "返回取色器的预设颜色列表。" #: doc/classes/ColorPicker.xml doc/classes/ColorPickerButton.xml msgid "The currently selected color." msgstr "当前选择的颜色。" #: doc/classes/ColorPicker.xml msgid "" "If [code]true[/code], the color will apply only after the user releases the " "mouse button, otherwise it will apply immediately even in mouse motion event " "(which can cause performance issues)." msgstr "" "如果[code]true[/code],只有在用户松开鼠标按钮后才会应用颜色,否则即使在鼠标移" "动事件中也会立即应用(会造成性能问题)。" #: doc/classes/ColorPicker.xml msgid "If [code]true[/code], shows an alpha channel slider (opacity)." msgstr "如果为 [code]true[/code],则显示 Alpha 通道滑动条(不透明度)。" #: doc/classes/ColorPicker.xml msgid "" "If [code]true[/code], allows editing the color with Hue/Saturation/Value " "sliders.\n" "[b]Note:[/b] Cannot be enabled if raw mode is on." msgstr "" "如果为 [code]true[/code],则允许使用“色相/饱和度/值”滑块编辑颜色。\n" "[b]注意:[/b]如果启用了原始模式,则无法启用。" #: doc/classes/ColorPicker.xml msgid "If [code]true[/code], the \"add preset\" button is enabled." msgstr "如果为 [code]true[/code],则启用“添加预设”按钮。" #: doc/classes/ColorPicker.xml msgid "If [code]true[/code], saved color presets are visible." msgstr "如果为 [code]true[/code],则保存的颜色预设可见。" #: doc/classes/ColorPicker.xml msgid "" "If [code]true[/code], allows the color R, G, B component values to go beyond " "1.0, which can be used for certain special operations that require it (like " "tinting without darkening or rendering sprites in HDR).\n" "[b]Note:[/b] Cannot be enabled if HSV mode is on." msgstr "" "如果为 [code]true[/code],则允许颜色 R、G、B 分量值超过 1.0,这些值可用于需要" "它的某些特殊操作(例如着色而不会使 HDR 变暗或渲染精灵)。\n" "[b]注意:[/b]如果启用了 HSV 模式,则无法启用。" #: doc/classes/ColorPicker.xml msgid "Emitted when the color is changed." msgstr "更改颜色时发出。" #: doc/classes/ColorPicker.xml msgid "Emitted when a preset is added." msgstr "添加预设时发出。" #: doc/classes/ColorPicker.xml msgid "Emitted when a preset is removed." msgstr "删除预设时发出。" #: doc/classes/ColorPicker.xml msgid "The width of the hue selection slider." msgstr "色相选择滑块的宽度。" #: doc/classes/ColorPicker.xml msgid "The margin around the [ColorPicker]." msgstr "[ColorPicker] 周围的边距。" #: doc/classes/ColorPicker.xml msgid "The height of the saturation-value selection box." msgstr "饱和值选择框的高度。" #: doc/classes/ColorPicker.xml msgid "The width of the saturation-value selection box." msgstr "饱和度选择框的宽度。" #: doc/classes/ColorPicker.xml msgid "The icon for the \"Add Preset\" button." msgstr "“添加预设”按钮的图标。" #: doc/classes/ColorPicker.xml msgid "Custom texture for the hue selection slider on the right." msgstr "右侧的色相选择滑块的自定义纹理。" #: doc/classes/ColorPicker.xml msgid "" "The indicator used to signalize that the color value is outside the 0-1 " "range." msgstr "该指示器用于指示颜色值在 0-1 范围之外。" #: doc/classes/ColorPicker.xml msgid "The icon for the screen color picker button." msgstr "屏幕取色器按钮的图标。" #: doc/classes/ColorPickerButton.xml msgid "Button that pops out a [ColorPicker]." msgstr "弹出 [ColorPicker] 的按钮。" #: doc/classes/ColorPickerButton.xml msgid "" "Encapsulates a [ColorPicker] making it accessible by pressing a button. " "Pressing the button will toggle the [ColorPicker] visibility.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node.\n" "[b]Note:[/b] By default, the button may not be wide enough for the color " "preview swatch to be visible. Make sure to set [member Control." "rect_min_size] to a big enough value to give the button enough space." msgstr "" "将 [ColorPicker] 封装成可以通过按一个按钮来进行使用。点击按钮可以切换出可见" "的 [ColorPicker]。\n" "另请参阅 [BaseButton]。它包括了和这个节点共同拥有的属性和方法。\n" "[b]注意:[/b]按钮默认状态时可能非常窄,导致颜色预览样本不可见。确保将 " "[member Control.rect_min_size] 设置的足够大从而给这个按钮足够的空间去显示。" #: doc/classes/ColorPickerButton.xml msgid "" "Returns the [ColorPicker] that this node toggles.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回此节点所切换的 [ColorPicker]。\n" "[b]警告:[/b]这是一个必需的内部节点,移除和释放它可能会导致崩溃。如果你希望隐" "藏它或其所有子项,请使用其 [member CanvasItem.visible] 属性。" #: doc/classes/ColorPickerButton.xml msgid "" "Returns the control's [PopupPanel] which allows you to connect to popup " "signals. This allows you to handle events when the ColorPicker is shown or " "hidden.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回控件的 [PopupPanel],它允许你连接到弹出信号。这允许你在显示或隐藏 " "ColorPicker 时事件处理。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果你希望隐" "藏它或其任何子项,请使用其 [member CanvasItem.visible] 属性。" #: doc/classes/ColorPickerButton.xml msgid "" "If [code]true[/code], the alpha channel in the displayed [ColorPicker] will " "be visible." msgstr "如果 [code]true[/code],则显示的 [ColorPicker] 中的 Alpha 通道将可见。" #: doc/classes/ColorPickerButton.xml msgid "Emitted when the color changes." msgstr "颜色改变时发出。" #: doc/classes/ColorPickerButton.xml msgid "" "Emitted when the [ColorPicker] is created (the button is pressed for the " "first time)." msgstr "创建 [ColorPicker] 时(第一次按下按钮)发出。" #: doc/classes/ColorPickerButton.xml msgid "Emitted when the [ColorPicker] is closed." msgstr "当 [ColorPicker] 关闭时发出。" #: doc/classes/ColorPickerButton.xml msgid "Default text [Color] of the [ColorPickerButton]." msgstr "[ColorPickerButton] 的默认文本颜色 [Color]。" #: doc/classes/ColorPickerButton.xml msgid "Text [Color] used when the [ColorPickerButton] is disabled." msgstr "禁用 [ColorPickerButton] 时使用的文本颜色 [Color]。" #: doc/classes/ColorPickerButton.xml msgid "" "Text [Color] used when the [ColorPickerButton] is focused. Only replaces the " "normal text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "当 [ColorPickerButton] 获得焦点时使用的文本颜色 [Color]。只替换按钮的正常文本" "颜色。禁用、悬停和按下状态优先于这个颜色。" #: doc/classes/ColorPickerButton.xml msgid "Text [Color] used when the [ColorPickerButton] is being hovered." msgstr "悬停 [ColorPickerButton] 时使用的文本 [Color]。" #: doc/classes/ColorPickerButton.xml msgid "Text [Color] used when the [ColorPickerButton] is being pressed." msgstr "按下 [ColorPickerButton] 时使用的文本颜色 [Color]。" #: doc/classes/ColorPickerButton.xml msgid "The horizontal space between [ColorPickerButton]'s icon and text." msgstr "[ColorPickerButton] 的图标和文本之间的水平间距。" #: doc/classes/ColorPickerButton.xml msgid "[Font] of the [ColorPickerButton]'s text." msgstr "[ColorPickerButton] 文本的 [Font]。" #: doc/classes/ColorPickerButton.xml msgid "The background of the color preview rect on the button." msgstr "颜色预览的背景将在按钮上显示。" #: doc/classes/ColorPickerButton.xml msgid "[StyleBox] used when the [ColorPickerButton] is disabled." msgstr "当 [ColorPickerButton] 被禁用时使用的 [StyleBox]。" #: doc/classes/ColorPickerButton.xml msgid "" "[StyleBox] used when the [ColorPickerButton] is focused. It is displayed " "over the current [StyleBox], so using [StyleBoxEmpty] will just disable the " "focus visual effect." msgstr "" "当 [ColorPickerButton] 获得焦点时使用的 [StyleBox]。它显示在当前的 " "[StyleBox] 上,所以使用 [StyleBoxEmpty] 只是禁用焦点视觉效果。" #: doc/classes/ColorPickerButton.xml msgid "[StyleBox] used when the [ColorPickerButton] is being hovered." msgstr "悬停 [ColorPickerButton] 时使用的 [StyleBox]。" #: doc/classes/ColorPickerButton.xml msgid "Default [StyleBox] for the [ColorPickerButton]." msgstr "[ColorPickerButton] 的默认 [StyleBox]。" #: doc/classes/ColorPickerButton.xml msgid "[StyleBox] used when the [ColorPickerButton] is being pressed." msgstr "按下 [ColorPickerButton] 时使用的 [StyleBox]。" #: doc/classes/ColorRect.xml msgid "Colored rectangle." msgstr "彩色矩形。" #: doc/classes/ColorRect.xml msgid "" "Displays a rectangle filled with a solid [member color]. If you need to " "display the border alone, consider using [ReferenceRect] instead." msgstr "" "显示一个用纯色 [member color] 填充的矩形。如果你需要单独显示边框,请考虑使用 " "[ReferenceRect] 代替。" #: doc/classes/ColorRect.xml msgid "" "The fill color.\n" "[codeblock]\n" "$ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.\n" "[/codeblock]" msgstr "" "填充颜色。\n" "[codeblock]\n" "$ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.\n" "[/codeblock]" #: doc/classes/ConcavePolygonShape.xml msgid "Concave polygon shape." msgstr "凹面多边形形状。" #: doc/classes/ConcavePolygonShape.xml msgid "" "Concave polygon shape resource, which can be set into a [PhysicsBody] or " "area. This shape is created by feeding a list of triangles.\n" "[b]Note:[/b] When used for collision, [ConcavePolygonShape] is intended to " "work with static [PhysicsBody] nodes like [StaticBody] and will not work " "with [KinematicBody] or [RigidBody] with a mode other than Static." msgstr "" "凹多边形形状资源,可设置为[PhysicsBody]或区域。这个形状是通过提供一个三角形列" "表来创建的。\n" "[b]注意:[/b]用于碰撞时,[ConcavePolygonShape] 旨在与静态 [PhysicsBody] 节点" "一起使用,如 [StaticBody],并且不适用于具有非静态模式的 [KinematicBody] 或 " "[RigidBody]。" #: doc/classes/ConcavePolygonShape.xml msgid "Returns the faces (an array of triangles)." msgstr "返回面(三角形数组)。" #: doc/classes/ConcavePolygonShape.xml msgid "Sets the faces (an array of triangles)." msgstr "设置面(三角形数组)。" #: doc/classes/ConcavePolygonShape2D.xml msgid "Concave polygon 2D shape resource for physics." msgstr "凹面多边形2D形状资源用于物理。" #: doc/classes/ConcavePolygonShape2D.xml msgid "" "Concave polygon 2D shape resource for physics. It is made out of segments " "and is optimal for complex polygonal concave collisions. However, it is not " "advised to use for [RigidBody2D] nodes. A CollisionPolygon2D in convex " "decomposition mode (solids) or several convex objects are advised for that " "instead. Otherwise, a concave polygon 2D shape is better for static " "collisions.\n" "The main difference between a [ConvexPolygonShape2D] and a " "[ConcavePolygonShape2D] is that a concave polygon assumes it is concave and " "uses a more complex method of collision detection, and a convex one forces " "itself to be convex in order to speed up collision detection." msgstr "" "凹面多边形2D形状资源用于物理。它是由线段组成的,是复杂的多边形凹面碰撞的最佳" "选择。但是,建议不要将其用于[RigidBody2D]节点。建议使用凸分解模式(实体)或多" "个凸对象的CollisionPolygon2D代替。否则,凹多边形2D形状更适合静态碰撞。\n" "[ConvexPolygonShape2D]和[ConcavePolygonShape2D]之间的主要区别在于,凹面多边形" "假定其为凹面,并使用更复杂的碰撞检测方法,而凸面多边形则将自身强制变为凸面," "以加快碰撞检测的速度。" #: doc/classes/ConcavePolygonShape2D.xml msgid "" "The array of points that make up the [ConcavePolygonShape2D]'s line segments." msgstr "组成[ConcavePolygonShape2D]线段的点的数组。" #: doc/classes/ConeTwistJoint.xml msgid "A twist joint between two 3D PhysicsBodies." msgstr "两个 3D PhysicsBody 之间的扭转关节。" #: doc/classes/ConeTwistJoint.xml msgid "" "The joint can rotate the bodies across an axis defined by the local x-axes " "of the [Joint].\n" "The twist axis is initiated as the X axis of the [Joint].\n" "Once the Bodies swing, the twist axis is calculated as the middle of the x-" "axes of the Joint in the local space of the two Bodies. See also " "[Generic6DOFJoint]." msgstr "" "关节可以在 [Joint] 的局部 x 轴定义的轴上旋转物体。\n" "扭转轴是以 [Joint] 的 X 轴为起始。\n" "一旦物体摆动,扭转轴就会被计算为两个物体的局部空间中的 Joint 的 X 轴的中间位" "置。请参阅 [Generic6DOFJoint]。" #: doc/classes/ConeTwistJoint.xml doc/classes/PhysicsServer.xml msgid "" "The speed with which the swing or twist will take place.\n" "The higher, the faster." msgstr "" "摆动或扭转的速度。\n" "越高,速度越快。" #: doc/classes/ConeTwistJoint.xml doc/classes/PhysicsServer.xml msgid "" "Defines, how fast the swing- and twist-speed-difference on both sides gets " "synced." msgstr "定义两侧的摆动速度和扭转速度差异同步的速度。" #: doc/classes/ConeTwistJoint.xml msgid "" "The ease with which the joint starts to twist. If it's too low, it takes " "more force to start twisting the joint." msgstr "关节开始扭曲的难易程度。如果太低,则需要更多的力才能开始扭转关节。" #: doc/classes/ConeTwistJoint.xml doc/classes/PhysicsServer.xml msgid "" "Swing is rotation from side to side, around the axis perpendicular to the " "twist axis.\n" "The swing span defines, how much rotation will not get corrected along the " "swing axis.\n" "Could be defined as looseness in the [ConeTwistJoint].\n" "If below 0.05, this behavior is locked." msgstr "" "摆动是围绕垂直于扭转轴的轴线从一边到另一边的旋转。\n" "摆动跨度定义了,多少旋转不会沿着摆动轴得到纠正。\n" "可以定义[ConeTwistJoint]的松动性。\n" "如果低于0.05,此行为被锁定。" #: doc/classes/ConeTwistJoint.xml doc/classes/PhysicsServer.xml msgid "" "Twist is the rotation around the twist axis, this value defined how far the " "joint can twist.\n" "Twist is locked if below 0.05." msgstr "" "扭曲是绕扭曲轴的旋转,此值定义了关节可以扭曲多远。\n" "如果低于0.05,则扭曲被锁定。" #: doc/classes/ConeTwistJoint.xml doc/classes/Generic6DOFJoint.xml #: doc/classes/HingeJoint.xml doc/classes/Light.xml doc/classes/SliderJoint.xml msgid "Represents the size of the [enum Param] enum." msgstr "表示 [enum Param] 枚举的大小。" #: doc/classes/ConfigFile.xml msgid "Helper class to handle INI-style files." msgstr "用于处理 INI 样式文件的辅助类。" #: doc/classes/ConfigFile.xml msgid "" "This helper class can be used to store [Variant] values on the filesystem " "using INI-style formatting. The stored values are identified by a section " "and a key:\n" "[codeblock]\n" "[section]\n" "some_key=42\n" "string_example=\"Hello World!\"\n" "a_vector=Vector3( 1, 0, 2 )\n" "[/codeblock]\n" "The stored data can be saved to or parsed from a file, though ConfigFile " "objects can also be used directly without accessing the filesystem.\n" "The following example shows how to create a simple [ConfigFile] and save it " "on disk:\n" "[codeblock]\n" "# Create new ConfigFile object.\n" "var config = ConfigFile.new()\n" "\n" "# Store some values.\n" "config.set_value(\"Player1\", \"player_name\", \"Steve\")\n" "config.set_value(\"Player1\", \"best_score\", 10)\n" "config.set_value(\"Player2\", \"player_name\", \"V3geta\")\n" "config.set_value(\"Player2\", \"best_score\", 9001)\n" "\n" "# Save it to a file (overwrite if already exists).\n" "config.save(\"user://scores.cfg\")\n" "[/codeblock]\n" "This example shows how the above file could be loaded:\n" "[codeblock]\n" "var score_data = {}\n" "var config = ConfigFile.new()\n" "\n" "# Load data from a file.\n" "var err = config.load(\"user://scores.cfg\")\n" "\n" "# If the file didn't load, ignore it.\n" "if err != OK:\n" " return\n" "\n" "# Iterate over all sections.\n" "for player in config.get_sections():\n" " # Fetch the data for each section.\n" " var player_name = config.get_value(player, \"player_name\")\n" " var player_score = config.get_value(player, \"best_score\")\n" " score_data[player_name] = player_score\n" "[/codeblock]\n" "Any operation that mutates the ConfigFile such as [method set_value], " "[method clear], or [method erase_section], only changes what is loaded in " "memory. If you want to write the change to a file, you have to save the " "changes with [method save], [method save_encrypted], or [method " "save_encrypted_pass].\n" "Keep in mind that section and property names can't contain spaces. Anything " "after a space will be ignored on save and on load.\n" "ConfigFiles can also contain manually written comment lines starting with a " "semicolon ([code];[/code]). Those lines will be ignored when parsing the " "file. Note that comments will be lost when saving the ConfigFile. This can " "still be useful for dedicated server configuration files, which are " "typically never overwritten without explicit user action.\n" "[b]Note:[/b] The file extension given to a ConfigFile does not have any " "impact on its formatting or behavior. By convention, the [code].cfg[/code] " "extension is used here, but any other extension such as [code].ini[/code] is " "also valid. Since neither [code].cfg[/code] nor [code].ini[/code] are " "standardized, Godot's ConfigFile formatting may differ from files written by " "other programs." msgstr "" "这个辅助类可以用来在文件系统中使用 INI 风格来格式化存储 [Variant] 值。存储的" "值由部分和对应键来识别。\n" "[codeblock]\n" "[section]\n" "some_key=42\n" "string_example=\"Hello World!\"\n" "a_vector=Vector3( 1, 0, 2 )\n" "[/codeblock]\n" "存储的数据可以被保存到文件中,或从文件中解析出来,尽管 ConfigFile 对象也可以" "直接使用而不需要访问文件系统。\n" "下面的例子展示了如何创建一个简单的 [ConfigFile] 并将其保存在磁盘上。\n" "[codeblock]\n" "# 创建新的 ConfigFile 对象。\n" "var config = ConfigFile.new()\n" "\n" "# 存储一些值。\n" "config.set_value(\"Player1\", \"player_name\", \"Steve\")\n" "config.set_value(\"Player1\", \"best_score\", 10)\n" "config.set_value(\"Player2\", \"player_name\", \"V3geta\")\n" "config.set_value(\"Player2\", \"best_score\", 9001)\n" "\n" "# 把它保存到一个文件中(如果已经存在则覆盖)。\n" "config.save(\"user://scores.cfg\")\n" "[/codeblock]\n" "这个例子显示了如何加载上述文件。\n" "[codeblock]\n" "var score_data = {}\n" "var config = ConfigFile.new()\n" "\n" "# 从文件中加载数据。\n" "var err = config.load(\"user://scores.cfg\")\n" "\n" "# 如果文件没有加载,请忽略它。\n" "if err != OK:\n" " return\n" "\n" "# 遍历所有部分。\n" "for player in config.get_sections():\n" " # 取出每个部分的数据。\n" " var player_name = config.get_value(player, \"player_name\")\n" " var player_score = config.get_value(player, \"best_score\")\n" " score_data[player_name] = player_score\n" "[/codeblock]\n" "任何改变 ConfigFile 的操作,如 [method set_value]、[method clear] 或 [method " "erase_section],都只改变内存中加载的内容。如果你想把变化写入文件,必须用 " "[method save]、[method save_encrypted] 或 [method save_encrypted_pass] 保存这" "些变化。\n" "请记住,部分和属性名称不能包含空格。空格之后的内容在保存和加载时都会被忽" "略。\n" "配置文件还可以包含以分号开头的手动编写的注释行([code];[/code])。这些行在解" "析文件时将被忽略。请注意,在保存 ConfigFile 时,注释将会丢失。注释对于专用的" "服务器配置文件仍然很有用,因为如果没有明确的用户操作,这些文件通常不会被覆" "盖。\n" "[b]注意:[/b]给予配置文件扩展名对其格式或行为没有任何影响。根据惯例,这里使用" "的是 [code].cfg[/code] 扩展名,但任何其他扩展名,如 [code].ini[/code] 也是有" "效的。由于 [code].cfg[/code] 和 [code].ini[/code] 都不是标准化的,Godot 的 " "ConfigFile 格式可能与其他程序编写的文件有所不同。" #: doc/classes/ConfigFile.xml msgid "Removes the entire contents of the config." msgstr "删除配置的全部内容。" #: doc/classes/ConfigFile.xml msgid "" "Deletes the specified section along with all the key-value pairs inside. " "Raises an error if the section does not exist." msgstr "删除指定的部分以及内部的所有键值对。如果该节不存在,则会引发错误。" #: doc/classes/ConfigFile.xml msgid "" "Deletes the specified key in a section. Raises an error if either the " "section or the key do not exist." msgstr "删除部分中的指定键。如果该部分或键不存在,则会引发错误。" #: doc/classes/ConfigFile.xml msgid "" "Returns an array of all defined key identifiers in the specified section. " "Raises an error and returns an empty array if the section does not exist." msgstr "" "返回指定部分中所有已定义键标识符的数组。如果该部分不存在,则会引发错误并返回" "一个空数组。" #: doc/classes/ConfigFile.xml msgid "Returns an array of all defined section identifiers." msgstr "返回所有已定义节标识符的数组。" #: doc/classes/ConfigFile.xml msgid "" "Returns the current value for the specified section and key. If either the " "section or the key do not exist, the method returns the fallback " "[code]default[/code] value. If [code]default[/code] is not specified or set " "to [code]null[/code], an error is also raised." msgstr "" "返回指定部分和键的当前值。如果节或键不存在,本方法返回后备值[code]default[/" "code]。如果没有指定[code]default[/code]或者设置为[code]null[/code],也会引发" "一个错误。" #: doc/classes/ConfigFile.xml msgid "Returns [code]true[/code] if the specified section exists." msgstr "如果指定的部分存在,则返回 [code]true[/code]。" #: doc/classes/ConfigFile.xml msgid "Returns [code]true[/code] if the specified section-key pair exists." msgstr "如果指定的段键对存在,则返回 [code]true[/code]。" #: doc/classes/ConfigFile.xml msgid "" "Loads the config file specified as a parameter. The file's contents are " "parsed and loaded in the [ConfigFile] object which the method was called " "on.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "加载指定为参数的配置文件。解析文件的内容并将其加载到调用该方法的[ConfigFile]" "对象中。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/ConfigFile.xml msgid "" "Loads the encrypted config file specified as a parameter, using the provided " "[code]key[/code] to decrypt it. The file's contents are parsed and loaded in " "the [ConfigFile] object which the method was called on.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "加载指定为参数的加密配置文件,使用提供的[code]key[/code]对其解密。解析文件的" "内容并将其加载到调用该方法的[ConfigFile]对象中。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/ConfigFile.xml msgid "" "Loads the encrypted config file specified as a parameter, using the provided " "[code]password[/code] to decrypt it. The file's contents are parsed and " "loaded in the [ConfigFile] object which the method was called on.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "加载作为参数的加密配置文件,使用提供的[code]password[/code]解密。该文件的内容" "被解析并加载到调用该方法的 [ConfigFile] 对象中。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/ConfigFile.xml msgid "" "Parses the passed string as the contents of a config file. The string is " "parsed and loaded in the ConfigFile object which the method was called on.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "将传递的字符串解析为配置文件的内容。该字符串被解析并加载到调用该方法的 " "ConfigFile 对象中。\n" "返回 [enum Error] 常量之一,成功时返回 [code]OK[/code]。" #: doc/classes/ConfigFile.xml msgid "" "Saves the contents of the [ConfigFile] object to the file specified as a " "parameter. The output file uses an INI-style structure.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "将[ConfigFile]对象的内容保存到指定为参数的文件中。输出文件使用INI样式的结" "构。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/ConfigFile.xml msgid "" "Saves the contents of the [ConfigFile] object to the AES-256 encrypted file " "specified as a parameter, using the provided [code]key[/code] to encrypt it. " "The output file uses an INI-style structure.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "使用提供的[code]key[/code]将[ConfigFile]对象的内容保存到作为参数指定的AES-256" "加密文件中。输出文件使用INI样式的结构。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/ConfigFile.xml msgid "" "Saves the contents of the [ConfigFile] object to the AES-256 encrypted file " "specified as a parameter, using the provided [code]password[/code] to " "encrypt it. The output file uses an INI-style structure.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "将[ConfigFile]对象的内容保存到作为参数指定的AES-256加密文件中,使用提供的" "[code]password[/code]进行加密。输出文件使用 INI 风格的结构。\n" "返回 [enum Error] 代码常量之一 (成功时返回 [code]OK[/code])。" #: doc/classes/ConfigFile.xml msgid "" "Assigns a value to the specified key of the specified section. If either the " "section or the key do not exist, they are created. Passing a [code]null[/" "code] value deletes the specified key if it exists, and deletes the section " "if it ends up empty once the key has been removed." msgstr "" "为指定章节的指定键赋值。如果节或键不存在,则创建它们。如果指定的键存在,传递" "一个[code]null[/code]的值就会删除指定的键,如果键被删除后,键最终是空的,就会" "删除节。" #: doc/classes/ConfirmationDialog.xml msgid "Dialog for confirmation of actions." msgstr "确认动作的对话框。" #: doc/classes/ConfirmationDialog.xml msgid "" "Dialog for confirmation of actions. This dialog inherits from " "[AcceptDialog], but has by default an OK and Cancel button (in host OS " "order).\n" "To get cancel action, you can use:\n" "[codeblock]\n" "get_cancel().connect(\"pressed\", self, \"cancelled\")\n" "[/codeblock]." msgstr "" "用于确认操作的对话框。这个对话框继承自[AcceptDialog],但默认有一个确定和取消" "按钮(按主机操作系统顺序)。\n" "要获得取消操作,你可以使用\n" "[codeblock]\n" "get_cancel().connect(\"pressed\", self, \"cancelled\")\n" "[/codeblock]." #: doc/classes/ConfirmationDialog.xml msgid "" "Returns the cancel button.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回取消按钮。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果你希望隐" "藏它或其任何子项,请使用其 [member CanvasItem.visible] 属性。" #: doc/classes/Container.xml msgid "Base node for containers." msgstr "容器的基础节点。" #: doc/classes/Container.xml msgid "" "Base node for containers. A [Container] contains other controls and " "automatically arranges them in a certain way.\n" "A Control can inherit this to create custom container classes." msgstr "" "容器的基础节点。[Container] 包含其他控件,并自动以某种方式排列它们。\n" "Control 可以继承该类来创建自定义的容器类。" #: doc/classes/Container.xml msgid "" "Fit a child control in a given rect. This is mainly a helper for creating " "custom container classes." msgstr "在给定的矩形中适配子控件。这主要是用于创建自定义容器类的辅助工具。" #: doc/classes/Container.xml msgid "" "Queue resort of the contained children. This is called automatically anyway, " "but can be called upon request." msgstr "将子节点的重排加入队列。虽然会被自动调用,但也可以在需要时手动调用。" #: doc/classes/Container.xml msgid "Emitted when sorting the children is needed." msgstr "需要对子节点进行排序时发出。" #: doc/classes/Container.xml msgid "" "Notification for when sorting the children, it must be obeyed immediately." msgstr "对子节点进行排序时的通知,必须立即服从。" #: doc/classes/Control.xml msgid "" "All user interface nodes inherit from Control. A control's anchors and " "margins adapt its position and size relative to its parent." msgstr "" "所有用户界面节点都从 Control 继承。控件的锚点和边距相对于其父级调整其位置和大" "小。" #: doc/classes/Control.xml msgid "" "Base class for all UI-related nodes. [Control] features a bounding rectangle " "that defines its extents, an anchor position relative to its parent control " "or the current viewport, and margins that represent an offset to the anchor. " "The margins update automatically when the node, any of its parents, or the " "screen size change.\n" "For more information on Godot's UI system, anchors, margins, and containers, " "see the related tutorials in the manual. To build flexible UIs, you'll need " "a mix of UI elements that inherit from [Control] and [Container] nodes.\n" "[b]User Interface nodes and input[/b]\n" "Godot sends input events to the scene's root node first, by calling [method " "Node._input]. [method Node._input] forwards the event down the node tree to " "the nodes under the mouse cursor, or on keyboard focus. To do so, it calls " "[method MainLoop._input_event]. Call [method accept_event] so no other node " "receives the event. Once you accept an input, it becomes handled so [method " "Node._unhandled_input] will not process it.\n" "Only one [Control] node can be in keyboard focus. Only the node in focus " "will receive keyboard events. To get the focus, call [method grab_focus]. " "[Control] nodes lose focus when another node grabs it, or if you hide the " "node in focus.\n" "Sets [member mouse_filter] to [constant MOUSE_FILTER_IGNORE] to tell a " "[Control] node to ignore mouse or touch events. You'll need it if you place " "an icon on top of a button.\n" "[Theme] resources change the Control's appearance. If you change the [Theme] " "on a [Control] node, it affects all of its children. To override some of the " "theme's parameters, call one of the [code]add_*_override[/code] methods, " "like [method add_font_override]. You can override the theme with the " "inspector.\n" "[b]Note:[/b] Theme items are [i]not[/i] [Object] properties. This means you " "can't access their values using [method Object.get] and [method Object.set]. " "Instead, use [method get_color], [method get_constant], [method get_font], " "[method get_icon], [method get_stylebox], and the [code]add_*_override[/" "code] methods provided by this class." msgstr "" "所有 UI 相关节点的基类。[Control] 具有定义其范围的边界矩形、相对于其父控件或" "当前视窗的锚点位置以及表示锚点偏移的边距。 当节点、其任何父节点或屏幕尺寸发生" "变化时,边距会自动更新。\n" "更多关于 Godot 的 UI 系统、锚点、边距和容器的信息,请参阅手册中的相关教程。 " "要构建灵活的 UI,您需要混合使用从 [Control] 和 [Container] 节点继承的 UI 元" "素。\n" "[b]用户界面节点和输入[/b]\n" "Godot 首先通过调用 [method Node._input] 将输入事件发送到场景的根节点。 " "[method Node._input] 将事件沿节点树向下转发到鼠标光标下或键盘焦点上的节点。 " "为此,它调用 [method MainLoop._input_event]。 调用 [method accept_event] 以便" "没有其他节点收到该事件。 一旦你接受一个输入,它就会被处理,所以 [method Node." "_unhandled_input] 不会处理它。\n" "只有一个 [Control] 节点可以处于键盘焦点。 只有处于焦点的节点才会接收键盘事" "件。 要获得焦点,请调用 [method grab_focus]。在另一个节点获得聚焦时 " "[Control] 节点会失去焦点,或者您隐藏焦点中的节点。\n" "将 [member mouse_filter] 设置为 [constant MOUSE_FILTER_IGNORE] 以告诉 " "[Control] 节点忽略鼠标或触摸事件。 如果您在按钮顶部放置一个图标,您将需要" "它。\n" "[Theme] 资源更改控件的外观。 如果您更改 [Control] 节点上的 [Theme],则会影响" "其所有子节点。 要覆盖某些主题的参数,请调用 [code]add_*_override[/code] 方法" "之一,例如 [method add_font_override]。 您可以使用检查器覆盖主题。\n" "[b]注意:[/b]主题项目[i]不是[/i] [Object] 的属性。这意味着你无法使用 [method " "Object.get] 和 [method Object.set] 访问它们的值。请换用 [method get_color]、" "[method get_constant]、[method get_font]、[method get_icon]、[method " "get_stylebox],以及这个类提供的 [code]add_*_override[/code] 方法。" #: doc/classes/Control.xml msgid "GUI tutorial index" msgstr "GUI 教程索引" #: doc/classes/Control.xml msgid "Control node gallery" msgstr "控件节点一览" #: doc/classes/Control.xml msgid "All GUI Demos" msgstr "所有 GUI 演示" #: doc/classes/Control.xml msgid "" "Virtual method to be implemented by the user. Returns whether [method " "_gui_input] should not be called for children controls outside this " "control's rectangle. Input will be clipped to the Rect of this [Control]. " "Similar to [member rect_clip_content], but doesn't affect visibility.\n" "If not overridden, defaults to [code]false[/code]." msgstr "" "用户要实现的虚方法。返回是否应为该控件矩形之外的子控件调用 [method " "_gui_input]。输入将被剪切到此 [Control] 的 Rect 上。与 [member " "rect_clip_content] 相似,但不影响可见性。\n" "如果未覆盖,则默认为 [code]false[/code]。" #: doc/classes/Control.xml msgid "" "Virtual method to be implemented by the user. Returns the minimum size for " "this control. Alternative to [member rect_min_size] for controlling minimum " "size via code. The actual minimum size will be the max value of these two " "(in each axis separately).\n" "If not overridden, defaults to [constant Vector2.ZERO].\n" "[b]Note:[/b] This method will not be called when the script is attached to a " "[Control] node that already overrides its minimum size (e.g. [Label], " "[Button], [PanelContainer] etc.). It can only be used with most basic GUI " "nodes, like [Control], [Container], [Panel] etc." msgstr "" "用户要实现的虚方法。返回此控件的最小尺寸。这是 [member rect_min_size] 的替代" "方法,用于通过代码控制最小尺寸。实际的最小尺寸将是两者中的最大值(在各个轴上" "分别取)。\n" "如果未覆盖,则默认为 [constant Vector2.ZERO]。\n" "[b]注意:[/b]如果脚本附加的是已经覆盖过最小尺寸的 [Control] 节点(例如 " "[Label]、[Button]、[PanelContainer] 等),本方法不会被调用。只能在 " "[Control]、[Container]、[Panel] 等最基本的 GUI 节点上使用。" #: doc/classes/Control.xml msgid "" "Virtual method to be implemented by the user. Use this method to process and " "accept inputs on UI elements. See [method accept_event].\n" "Example: clicking a control.\n" "[codeblock]\n" "func _gui_input(event):\n" " if event is InputEventMouseButton:\n" " if event.button_index == BUTTON_LEFT and event.pressed:\n" " print(\"I've been clicked D:\")\n" "[/codeblock]\n" "The event won't trigger if:\n" "* clicking outside the control (see [method has_point]);\n" "* control has [member mouse_filter] set to [constant MOUSE_FILTER_IGNORE];\n" "* control is obstructed by another [Control] on top of it, which doesn't " "have [member mouse_filter] set to [constant MOUSE_FILTER_IGNORE];\n" "* control's parent has [member mouse_filter] set to [constant " "MOUSE_FILTER_STOP] or has accepted the event;\n" "* it happens outside the parent's rectangle and the parent has either " "[member rect_clip_content] or [method _clips_input] enabled.\n" "[b]Note:[/b] Event position is relative to the control origin." msgstr "" "由用户实现的虚方法。使用此方法处理和接受 UI 元素上的输入。请参阅 [method " "accept_event]。\n" "例:单击控件。\n" "[codeblock]\n" "func _gui_input(event):\n" " if event is InputEventMouseButton:\n" " if event.button_index == BUTTON_LEFT and event.pressed:\n" " print(\"I've been clicked D:\")\n" "[/codeblock]\n" "如果出现以下情况,则不会触发该事件:\n" "* 在控件外点击(参阅[method has_point]);\n" "* 控件将 [member mouse_filter] 设置为 [constant MOUSE_FILTER_IGNORE];\n" "* 控件被其上的另一个 [Control] 阻挡,该控件没有将 [member mouse_filter] 设置" "为 [constant MOUSE_FILTER_IGNORE];\n" "* 控件的父级已将 [member mouse_filter] 设置为 [constant MOUSE_FILTER_STOP] 或" "已接受该事件;\n" "* 它发生在父级的矩形之外,并且父级已启用 [member rect_clip_content] 或 " "[method _clips_input]。\n" "[b]注意:[/b]事件坐标相对于控件原点。" #: doc/classes/Control.xml msgid "" "Virtual method to be implemented by the user. Returns a [Control] node that " "should be used as a tooltip instead of the default one. The [code]for_text[/" "code] includes the contents of the [member hint_tooltip] property.\n" "The returned node must be of type [Control] or Control-derived. It can have " "child nodes of any type. It is freed when the tooltip disappears, so make " "sure you always provide a new instance (if you want to use a pre-existing " "node from your scene tree, you can duplicate it and pass the duplicated " "instance). When [code]null[/code] or a non-Control node is returned, the " "default tooltip will be used instead.\n" "The returned node will be added as child to a [PopupPanel], so you should " "only provide the contents of that panel. That [PopupPanel] can be themed " "using [method Theme.set_stylebox] for the type [code]\"TooltipPanel\"[/code] " "(see [member hint_tooltip] for an example).\n" "[b]Note:[/b] The tooltip is shrunk to minimal size. If you want to ensure " "it's fully visible, you might want to set its [member rect_min_size] to some " "non-zero value.\n" "Example of usage with a custom-constructed node:\n" "[codeblock]\n" "func _make_custom_tooltip(for_text):\n" " var label = Label.new()\n" " label.text = for_text\n" " return label\n" "[/codeblock]\n" "Example of usage with a custom scene instance:\n" "[codeblock]\n" "func _make_custom_tooltip(for_text):\n" " var tooltip = preload(\"res://SomeTooltipScene.tscn\").instance()\n" " tooltip.get_node(\"Label\").text = for_text\n" " return tooltip\n" "[/codeblock]" msgstr "" "由用户实现的虚方法。返回一个 [Control] 节点,该节点应用作工具提示而不是默认节" "点。 [code]for_text[/code] 包含 [member hint_tooltip] 属性的内容。\n" "返回的节点必须是 [Control] 或 Control-derived 类型。它可以有任何类型的子节" "点。当工具提示消失时它会被释放,因此请确保你始终提供一个新实例(如果你想使用" "场景树中预先存在的节点,可以复制它并传递复制的实例)。当返回 [code]null[/" "code] 或非控件节点时,将使用默认工具提示。\n" "返回的节点将作为子节点添加到 [PopupPanel],因此你应该只提供该面板的内容。该 " "[PopupPanel] 可以使用 [method Theme.set_stylebox] 为类型 " "[code]\"TooltipPanel\"[/code] 设置主题,参阅 [member hint_tooltip] 示例。\n" "[b]注意:[/b]工具提示缩小到最小尺寸。如果你想确保它完全可见,需将其 [member " "rect_min_size] 设置为非零值。\n" "自定义构建节点的使用示例:\n" "[codeblock]\n" "func _make_custom_tooltip(for_text):\n" " var label = Label.new()\n" " label.text = for_text\n" " return label\n" "[/codeblock]\n" "自定义场景实例的使用示例:\n" "[codeblock]\n" "func _make_custom_tooltip(for_text):\n" " var tooltip = preload(\"res://SomeTooltipScene.tscn\").instance()\n" " tooltip.get_node(\"Label\").text = for_text\n" " return tooltip\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Marks an input event as handled. Once you accept an input event, it stops " "propagating, even to nodes listening to [method Node._unhandled_input] or " "[method Node._unhandled_key_input]." msgstr "" "将输入事件标记为已处理。一旦接受输入事件,它就会停止传播,甚至传播到正在侦听" "[method Node._unhandled_input]或[method Node._unhandled_key_input]的节点。" #: doc/classes/Control.xml msgid "" "Creates a local override for a theme [Color] with the specified [code]name[/" "code]. Local overrides always take precedence when fetching theme items for " "the control.\n" "See also [method get_color], [method remove_color_override].\n" "[b]Example of overriding a label's color and resetting it later:[/b]\n" "[codeblock]\n" "# Given the child Label node \"MyLabel\", override its font color with a " "custom value.\n" "$MyLabel.add_color_override(\"font_color\", Color(1, 0.5, 0))\n" "# Reset the font color of the child label.\n" "$MyLabel.add_color_override(\"font_color\", get_color(\"font_color\", " "\"Label\"))\n" "[/codeblock]" msgstr "" "使用指定的 [code]name[/code] 为主题 [Color] 创建本地覆盖项。获取控件的主题项" "时,本地覆盖项始终优先。\n" "另请参阅 [method get_color]、[method remove_color_override]。\n" "[b]覆盖标签颜色并其后重置的示例:[/b]\n" "[codeblock]\n" "# 给定子标签节点\"MyLabel\",用自定义值覆盖其字体颜色。\n" "$MyLabel.add_color_override(\"font_color\", Color(1, 0.5, 0))\n" "# 重置子标签的字体颜色。\n" "$MyLabel.add_color_override(\"font_color\", get_color(\"font_color\", " "\"Label\"))\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Creates a local override for a theme constant with the specified [code]name[/" "code]. Local overrides always take precedence when fetching theme items for " "the control.\n" "See also [method get_constant], [method remove_constant_override]." msgstr "" "为指定 [code]name[/code] 的主题常量创建本地覆盖项。获取控件的主题项时,本地覆" "盖项始终优先。\n" "另请参阅 [method get_constant]、[method remove_constant_override]。" #: doc/classes/Control.xml msgid "" "Creates a local override for a theme [Font] with the specified [code]name[/" "code]. Local overrides always take precedence when fetching theme items for " "the control.\n" "[b]Note:[/b] An override can be removed by assigning it a [code]null[/code] " "value. This behavior is deprecated and will be removed in 4.0, use [method " "remove_font_override] instead.\n" "See also [method get_font]." msgstr "" "使用指定的 [code]name[/code] 为主题 [Font] 创建本地覆盖项。获取控件的主题项" "时,本地覆盖项始终优先。\n" "[b]注意:[/b]为覆盖项设 [code]null[/code] 值可将其删除。该行为已废弃,将在 " "4.0 中移除,请换成 [method remove_font_override]。\n" "参阅[method get_font]。" #: doc/classes/Control.xml msgid "" "Creates a local override for a theme icon with the specified [code]name[/" "code]. Local overrides always take precedence when fetching theme items for " "the control.\n" "[b]Note:[/b] An override can be removed by assigning it a [code]null[/code] " "value. This behavior is deprecated and will be removed in 4.0, use [method " "remove_icon_override] instead.\n" "See also [method get_icon]." msgstr "" "为指定 [code]name[/code] 的主题图标创建本地覆盖项。获取控件的主题项时,本地覆" "盖项始终优先。\n" "[b]注意:[/b]为覆盖项设 [code]null[/code] 值可将其删除。该行为已废弃,将在 " "4.0 中移除,请换成 [method remove_icon_override]。\n" "参阅[method get_icon]。" #: doc/classes/Control.xml msgid "" "Creates a local override for a theme shader with the specified [code]name[/" "code]. Local overrides always take precedence when fetching theme items for " "the control.\n" "[b]Note:[/b] An override can be removed by assigning it a [code]null[/code] " "value. This behavior is deprecated and will be removed in 4.0, use [method " "remove_shader_override] instead." msgstr "" "使用指定的 [code]name[/code] 为主题着色器创建本地覆盖项。获取控件的主题项时," "本地覆盖项始终优先。\n" "[b]注意:[/b]为覆盖项设 [code]null[/code] 值可将其删除。该行为已废弃,将在 " "4.0 中移除,请换成 [method remove_shader_override]。" #: doc/classes/Control.xml msgid "" "Creates a local override for a theme [StyleBox] with the specified " "[code]name[/code]. Local overrides always take precedence when fetching " "theme items for the control.\n" "[b]Note:[/b] An override can be removed by assigning it a [code]null[/code] " "value. This behavior is deprecated and will be removed in 4.0, use [method " "remove_stylebox_override] instead.\n" "See also [method get_stylebox].\n" "[b]Example of modifying a property in a StyleBox by duplicating it:[/b]\n" "[codeblock]\n" "# The snippet below assumes the child node MyButton has a StyleBoxFlat " "assigned.\n" "# Resources are shared across instances, so we need to duplicate it\n" "# to avoid modifying the appearance of all other buttons.\n" "var new_stylebox_normal = $MyButton.get_stylebox(\"normal\").duplicate()\n" "new_stylebox_normal.border_width_top = 3\n" "new_stylebox_normal.border_color = Color(0, 1, 0.5)\n" "$MyButton.add_stylebox_override(\"normal\", new_stylebox_normal)\n" "# Remove the stylebox override.\n" "$MyButton.add_stylebox_override(\"normal\", null)\n" "[/codeblock]" msgstr "" "为主题 [StyleBox] 创建名为 [code]name[/code] 的本地覆盖项。获取控件的主题项" "时,本地覆盖项始终优先。\n" "[b]注意:[/b]为覆盖项设 [code]null[/code] 值可将其删除。该行为已废弃,将在 " "4.0 中移除,请换成 [method remove_stylebox_override]。\n" "参阅 [method get_stylebox]。\n" "[b]通过复制来修改 StyleBox 中的属性的示例:[/b]\n" "[codeblock]\n" "# 下面的代码片段假设子节点 MyButton 分配了一个 StyleBoxFlat。\n" "# 资源是跨实例共享的,所以我们需要复制它\n" "# 以避免修改所有其他按钮的外观。\n" "var new_stylebox_normal = $MyButton.get_stylebox(\"normal\").duplicate()\n" "new_stylebox_normal.border_width_top = 3\n" "new_stylebox_normal.border_color = Color(0, 1, 0.5)\n" "$MyButton.add_stylebox_override(\"normal\", new_stylebox_normal)\n" "# 删除样式盒覆盖。\n" "$MyButton.add_stylebox_override(\"normal\", null)\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Godot calls this method to test if [code]data[/code] from a control's " "[method get_drag_data] can be dropped at [code]position[/code]. " "[code]position[/code] is local to this control.\n" "This method should only be used to test the data. Process the data in " "[method drop_data].\n" "[codeblock]\n" "func can_drop_data(position, data):\n" " # Check position if it is relevant to you\n" " # Otherwise, just check data\n" " return typeof(data) == TYPE_DICTIONARY and data.has(\"expected\")\n" "[/codeblock]" msgstr "" "Godot 调用此方法来测试是否可以将控件的 [method get_drag_data] 的 [code]data[/" "code] 放在 [code]position[/code] 处。[code]position[/code] 在相对于该控件" "的。\n" "此方法仅应用于测试数据。处理 [method drop_data] 中的数据。\n" "[codeblock]\n" "func can_drop_data(position, data):\n" " # 需要时可以检查 position\n" " # 否则只检查 data 即可\n" " return typeof(data) == TYPE_DICTIONARY and data.has(\"expected\")\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Godot calls this method to pass you the [code]data[/code] from a control's " "[method get_drag_data] result. Godot first calls [method can_drop_data] to " "test if [code]data[/code] is allowed to drop at [code]position[/code] where " "[code]position[/code] is local to this control.\n" "[codeblock]\n" "func can_drop_data(position, data):\n" " return typeof(data) == TYPE_DICTIONARY and data.has(\"color\")\n" "\n" "func drop_data(position, data):\n" " color = data[\"color\"]\n" "[/codeblock]" msgstr "" "Godot调用此方法以将控件的[method get_drag_data]结果中的[code]data[/code]传递" "给您。 Godot首先调用[method can_drop_data]来测试是否允许[code]data[/code]在" "[code]position[/code]处删除,其中[code]position[/code]对于此控件而言是本地" "的。\n" "[codeblock]\n" "func can_drop_data(position, data):\n" " return typeof(data) == TYPE_DICTIONARY and data.has(\"color\")\n" "\n" "func drop_data(position, data):\n" " color = data[\"color\"]\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Finds the next (below in the tree) [Control] that can receive the focus." msgstr "找到下一个可以接受焦点的[Control],在树的下方。" #: doc/classes/Control.xml msgid "" "Finds the previous (above in the tree) [Control] that can receive the focus." msgstr "找到可以接收焦点的上一个[Control],在树的上方。" #: doc/classes/Control.xml msgid "" "Forces drag and bypasses [method get_drag_data] and [method " "set_drag_preview] by passing [code]data[/code] and [code]preview[/code]. " "Drag will start even if the mouse is neither over nor pressed on this " "control.\n" "The methods [method can_drop_data] and [method drop_data] must be " "implemented on controls that want to receive drop data." msgstr "" "通过传递[code]data[/code]和[code]preview[/code]强制拖动并绕过[method " "get_drag_data]和[method set_drag_preview]。即使鼠标既不在该控件上,也未在该控" "件上按下,都将开始拖动。\n" "方法[method can_drop_data]和[method drop_data]必须在要接收放置数据的控件上实" "现。" #: doc/classes/Control.xml msgid "" "Returns the anchor identified by [code]margin[/code] constant from [enum " "Margin] enum. A getter method for [member anchor_bottom], [member " "anchor_left], [member anchor_right] and [member anchor_top]." msgstr "" "从 [enum Margin] 枚举返回由 [code]margin[/code] 常量标识的锚点。是 [member " "anchor_bottom]、[member anchor_left]、[member anchor_right]、[member " "anchor_top] 的获取方法。" #: doc/classes/Control.xml msgid "" "Returns [member margin_left] and [member margin_top]. See also [member " "rect_position]." msgstr "" "返回[member margin_left]和[member margin_top]。另请参阅[member " "rect_position]。" #: doc/classes/Control.xml msgid "" "Returns a [Color] from the first matching [Theme] in the tree if that " "[Theme] has a color item with the specified [code]name[/code] and " "[code]theme_type[/code]. If [code]theme_type[/code] is omitted the class " "name of the current control is used as the type, or [member " "theme_type_variation] if it is defined. If the type is a class name its " "parent classes are also checked, in order of inheritance.\n" "For the current control its local overrides are considered first (see " "[method add_color_override]), then its assigned [member theme]. After the " "current control, each parent control and its assigned [member theme] are " "considered; controls without a [member theme] assigned are skipped. If no " "matching [Theme] is found in the tree, a custom project [Theme] (see [member " "ProjectSettings.gui/theme/custom]) and the default [Theme] are used.\n" "[codeblock]\n" "func _ready():\n" " # Get the font color defined for the current Control's class, if it " "exists.\n" " modulate = get_color(\"font_color\")\n" " # Get the font color defined for the Button class.\n" " modulate = get_color(\"font_color\", \"Button\")\n" "[/codeblock]" msgstr "" "如果该 [Theme] 具有指定 [code]name[/code] 和 [code]theme_type[/code] 的颜色" "项,则从树中第一个匹配的 [Theme] 返回 [Color]。如果省略 [code]theme_type[/" "code],则使用当前控件的类名作为类型,如果定义了 [member " "theme_type_variation] 则也会使用。如果类型是类名,则还会按继承顺序检查其父" "类。\n" "对于当前控件,首先考虑其本地覆盖项,参阅 [method add_color_override],然后是" "其分配的 [member theme]。在当前控件之后,考虑每个父控件及其分配的 [member " "theme];未分配[member theme]的控件将被跳过。如果在树中找不到匹配的 [Theme]," "则使用自定义项目 [Theme]和默认的 [Theme],参阅 [member ProjectSettings.gui/" "theme/custom]。\n" "[codeblock]\n" "func _ready():\n" " # 获取为当前控件类定义的字体颜色(如果存在)。\n" " modulate = get_color(\"font_color\")\n" " # 获取为 Button 类定义的字体颜色。\n" " modulate = get_color(\"font_color\", \"Button\")\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Returns combined minimum size from [member rect_min_size] and [method " "get_minimum_size]." msgstr "返回[member rect_min_size]和[method get_minimum_size]的组合最小大小。" #: doc/classes/Control.xml msgid "" "Returns a constant from the first matching [Theme] in the tree if that " "[Theme] has a constant item with the specified [code]name[/code] and " "[code]theme_type[/code].\n" "See [method get_color] for details." msgstr "" "如果该 [Theme] 具有指定 [code]name[/code] 和 [code]theme_type[/code] 的常量项" "目,则从树中的第一个匹配的 [Theme] 返回常量。\n" "有关详细信息,参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns the mouse cursor shape the control displays on mouse hover. See " "[enum CursorShape]." msgstr "返回控件在鼠标悬停时显示的鼠标指针形状。参阅[enum CursorShape]。" #: doc/classes/Control.xml msgid "" "Godot calls this method to get data that can be dragged and dropped onto " "controls that expect drop data. Returns [code]null[/code] if there is no " "data to drag. Controls that want to receive drop data should implement " "[method can_drop_data] and [method drop_data]. [code]position[/code] is " "local to this control. Drag may be forced with [method force_drag].\n" "A preview that will follow the mouse that should represent the data can be " "set with [method set_drag_preview]. A good time to set the preview is in " "this method.\n" "[codeblock]\n" "func get_drag_data(position):\n" " var mydata = make_data()\n" " set_drag_preview(make_preview(mydata))\n" " return mydata\n" "[/codeblock]" msgstr "" "Godot调用此方法来获取可以拖放到期望放置数据的控件上的数据。如果没有要拖动的数" "据,则返回 [code]null[/code]。想要接收放置数据的控件应实现[method " "can_drop_data]和[method drop_data]。 [code]position[/code]在此控件中是本地" "的。可以使用[method force_drag]强制拖动。\n" "可以使用[method set_drag_preview]设置跟随鼠标的预览,该预览将代表数据。设置预" "览的好时机就是这种方法。\n" "[codeblock]\n" "func get_drag_data(position):\n" " var mydata = make_data()\n" " set_drag_preview(make_preview(mydata))\n" " return mydata\n" "[/codeblock]" #: doc/classes/Control.xml msgid "Returns [member margin_right] and [member margin_bottom]." msgstr "返回[member margin_right]和[member margin_bottom]。" #: doc/classes/Control.xml msgid "" "Returns the focus neighbour identified by [code]margin[/code] constant from " "[enum Margin] enum. A getter method for [member focus_neighbour_bottom], " "[member focus_neighbour_left], [member focus_neighbour_right] and [member " "focus_neighbour_top]." msgstr "" "返回由[enum Margin]枚举的[code]margin[/code]常量标识的焦点邻居。 [member " "focus_neighbour_bottom],[member focus_neighbour_left],[member " "focus_neighbour_right]和[member focus_neighbour_top]的获取方法。" #: doc/classes/Control.xml msgid "" "Returns the control that has the keyboard focus or [code]null[/code] if none." msgstr "返回有键盘焦点的控件,如果没有,则返回 [code]null[/code]。" #: doc/classes/Control.xml msgid "" "Returns a [Font] from the first matching [Theme] in the tree if that [Theme] " "has a font item with the specified [code]name[/code] and [code]theme_type[/" "code].\n" "See [method get_color] for details." msgstr "" "如果该 [Theme] 具有指定 [code]name[/code] 和 [code]theme_type[/code] 的字体项" "目,则从树中第一个匹配的 [Theme] 返回 [Font]。\n" "有关详细信息,请参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns the position and size of the control relative to the top-left corner " "of the screen. See [member rect_position] and [member rect_size]." msgstr "" "返回控件相对于屏幕左上角的位置和大小。请参阅[member rect_position]和[member " "rect_size]。" #: doc/classes/Control.xml msgid "" "Returns an icon from the first matching [Theme] in the tree if that [Theme] " "has an icon item with the specified [code]name[/code] and [code]theme_type[/" "code].\n" "See [method get_color] for details." msgstr "" "如果该 [Theme] 具有指定 [code]name[/code] 和 [code]theme_type[/code] 的图标项" "目,则从树中第一个匹配的 [Theme] 返回图标。\n" "有关详细信息,请参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns the anchor identified by [code]margin[/code] constant from [enum " "Margin] enum. A getter method for [member margin_bottom], [member " "margin_left], [member margin_right] and [member margin_top]." msgstr "" "从 [enum Margin] 枚举返回由 [code]margin[/code] 常量标识的锚点。是 [member " "margin_bottom]、[member margin_left]、[member margin_right]、[member " "margin_top] 的获取方法。" #: doc/classes/Control.xml msgid "Returns the minimum size for this control. See [member rect_min_size]." msgstr "返回此控件的最小尺寸。参阅[member rect_min_size]。" #: doc/classes/Control.xml msgid "Returns the width/height occupied in the parent control." msgstr "返回父控件中占用的宽度/高度。" #: doc/classes/Control.xml msgid "Returns the parent control node." msgstr "返回父控制节点。" #: doc/classes/Control.xml msgid "" "Returns the position and size of the control relative to the top-left corner " "of the parent Control. See [member rect_position] and [member rect_size]." msgstr "" "返回相对于父控件左上角的控件的位置和大小。请参阅[member rect_position]和" "[member rect_size]。" #: doc/classes/Control.xml msgid "Returns the rotation (in radians)." msgstr "返回旋转(以弧度为单位)。" #: doc/classes/Control.xml msgid "" "Returns a [StyleBox] from the first matching [Theme] in the tree if that " "[Theme] has a stylebox item with the specified [code]name[/code] and " "[code]theme_type[/code].\n" "See [method get_color] for details." msgstr "" "返回树中首个符合条件的 [Theme] 的 [StyleBox],这个 [Theme] 具有名称为 " "[code]name[/code] 并且主题类型为 [code]theme_type[/code] 的样式盒。\n" "详情请参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns the default font from the first matching [Theme] in the tree if that " "[Theme] has a valid [member Theme.default_font] value.\n" "See [method get_color] for details." msgstr "" "如果 [Theme] 具有有效的 [member Theme.default_font] 值,则从树中第一个匹配的 " "[Theme] 返回默认字体。\n" "有关详细信息,参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns the tooltip, which will appear when the cursor is resting over this " "control. See [member hint_tooltip]." msgstr "" "返回工具提示,当光标停留在该控件上时将显示该工具提示。请参阅[member " "hint_tooltip]。" #: doc/classes/Control.xml msgid "" "Creates an [InputEventMouseButton] that attempts to click the control. If " "the event is received, the control acquires focus.\n" "[codeblock]\n" "func _process(delta):\n" " grab_click_focus() #when clicking another Control node, this node will " "be clicked instead\n" "[/codeblock]" msgstr "" "创建一个[InputEventMouseButton],尝试点击控件。如果接收到该事件,控件就会获得" "焦点。\n" "[codeblock]\n" "func _process(delta):\n" " grab_click_focus() #when clicking another Control node, this node will " "be clicked instead\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Steal the focus from another control and become the focused control (see " "[member focus_mode])." msgstr "从另一个控件中窃取焦点,并成为焦点控件(请参阅[member focus_mode])。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a matching [Theme] in the tree that " "has a color item with the specified [code]name[/code] and [code]theme_type[/" "code].\n" "See [method get_color] for details." msgstr "" "如果树中存在匹配的 [Theme] 且具有指定 [code]name[/code] 和 [code]theme_type[/" "code] 的颜色项,则返回 [code]true[/code]。\n" "有关详细信息,参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a local override for a theme [Color] " "with the specified [code]name[/code] in this [Control] node.\n" "See [method add_color_override]." msgstr "" "如果在此 [Control] 节点中具有指定 [code]name[/code] 的主题颜色 [Color] 的本地" "覆盖项,则返回 [code]true[/code]。\n" "参阅 [method add_color_override]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a matching [Theme] in the tree that " "has a constant item with the specified [code]name[/code] and " "[code]theme_type[/code].\n" "See [method get_color] for details." msgstr "" "如果树中存在匹配的 [Theme] 且具有指定 [code]name[/code] 和 [code]theme_type[/" "code] 的常量项目,则返回 [code]true[/code]。\n" "有关详细信息,参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a local override for a theme constant " "with the specified [code]name[/code] in this [Control] node.\n" "See [method add_constant_override]." msgstr "" "如果此 [Control] 节点中具有指定 [code]name[/code] 的主题常量存在本地覆盖项," "则返回 [code]true[/code]。\n" "参阅 [method add_constant_override]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if this is the current focused control. See " "[member focus_mode]." msgstr "" "如果这是当前的焦点控件,则返回 [code]true[/code]。参阅[member focus_mode]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a matching [Theme] in the tree that " "has a font item with the specified [code]name[/code] and [code]theme_type[/" "code].\n" "See [method get_color] for details." msgstr "" "如果树中存在 [Theme] 且该主题具有指定 [code]name[/code] 和 [code]theme_type[/" "code] 的字体项目,则返回 [code]true[/code]。\n" "详情请参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a local override for a theme [Font] " "with the specified [code]name[/code] in this [Control] node.\n" "See [method add_font_override]." msgstr "" "如果在此 [Control] 节点中具有指定 [code]name[/code] 的主题 [Font] 的本地覆盖" "项目,则返回 [code]true[/code]。\n" "参阅[method add_font_override]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a matching [Theme] in the tree that " "has an icon item with the specified [code]name[/code] and [code]theme_type[/" "code].\n" "See [method get_color] for details." msgstr "" "如果树中存在 [Theme] 且该主题具有指定 [code]name[/code] 和 [code]theme_type[/" "code] 的图标项目,则返回 [code]true[/code]。\n" "详情请参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a local override for a theme icon with " "the specified [code]name[/code] in this [Control] node.\n" "See [method add_icon_override]." msgstr "" "如果此 [Control] 节点中具有指定 [code]name[/code] 的主题图标存在本地覆盖项," "则返回 [code]true[/code]。\n" "参阅 [method add_icon_override]。" #: doc/classes/Control.xml msgid "" "Virtual method to be implemented by the user. Returns whether the given " "[code]point[/code] is inside this control.\n" "If not overridden, default behavior is checking if the point is within " "control's Rect.\n" "[b]Note:[/b] If you want to check if a point is inside the control, you can " "use [code]get_rect().has_point(point)[/code]." msgstr "" "用户要实现的虚方法。返回给定的 [code]point[/code] 是否在此控件内。\n" "如果未覆盖,则默认行为是检查该点是否在控件的 Rect 范围内。\n" "[b]注意:[/b]如果要检查控件中是否有点,可以使用 [code]get_rect()." "has_point(point)[/code]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a local override for a theme shader " "with the specified [code]name[/code] in this [Control] node.\n" "See [method add_shader_override]." msgstr "" "如果此 [Control] 节点中具有指定 [code]name[/code] 的主题着色器存在本地覆盖" "项,则返回 [code]true[/code]。\n" "参阅[method add_shader_override]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a matching [Theme] in the tree that " "has a stylebox item with the specified [code]name[/code] and " "[code]theme_type[/code].\n" "See [method get_color] for details." msgstr "" "如果树中存在 [Theme] 且该主题具有指定 [code]name[/code] 和 [code]theme_type[/" "code] 的样式盒项目,则返回 [code]true[/code]。\n" "详情请参阅 [method get_color]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if there is a local override for a theme " "[StyleBox] with the specified [code]name[/code] in this [Control] node.\n" "See [method add_stylebox_override]." msgstr "" "如果在此 [Control] 节点中具有指定 [code]name[/code] 的主题 [StyleBox] 的本地" "覆盖项,则返回 [code]true[/code]。\n" "参阅 [method add_stylebox_override]。" #: doc/classes/Control.xml msgid "" "Returns [code]true[/code] if a drag operation is successful. Alternative to " "[method Viewport.gui_is_drag_successful].\n" "Best used with [constant Node.NOTIFICATION_DRAG_END]." msgstr "" "如果拖放操作成功则返回 [code]true[/code],是 [method Viewport." "gui_is_drag_successful] 的替代方案。\n" "建议与 [constant Node.NOTIFICATION_DRAG_END] 配合使用。" #: doc/classes/Control.xml msgid "" "Invalidates the size cache in this node and in parent nodes up to toplevel. " "Intended to be used with [method get_minimum_size] when the return value is " "changed. Setting [member rect_min_size] directly calls this method " "automatically." msgstr "" "使此节点和父节点(直至最高级别)中的大小缓存无效。打算在更改返回值时与" "[method get_minimum_size]一起使用。设置[member rect_min_size]直接直接自动调用" "此方法。" #: doc/classes/Control.xml msgid "" "Give up the focus. No other control will be able to receive keyboard input." msgstr "放弃焦点。其他控件将无法接收键盘输入。" #: doc/classes/Control.xml msgid "" "Removes a theme override for a [Color] with the given [code]name[/code]." msgstr "移除名为 [code]name[/code] 的主题 [Color] 覆盖项。" #: doc/classes/Control.xml msgid "" "Removes a theme override for a constant with the given [code]name[/code]." msgstr "移除名为 [code]name[/code] 的主题常量覆盖项。" #: doc/classes/Control.xml msgid "Removes a theme override for a [Font] with the given [code]name[/code]." msgstr "移除名为 [code]name[/code] 的主题 [Font] 覆盖项。" #: doc/classes/Control.xml msgid "Removes a theme override for an icon with the given [code]name[/code]." msgstr "移除名为 [code]name[/code] 的主题图标覆盖项。" #: doc/classes/Control.xml msgid "Removes a theme override for a shader with the given [code]name[/code]." msgstr "移除名为 [code]name[/code] 的主题着色器覆盖项。" #: doc/classes/Control.xml msgid "" "Removes a theme override for a [StyleBox] with the given [code]name[/code]." msgstr "移除名为 [code]name[/code] 的主题 [StyleBox] 覆盖项。" #: doc/classes/Control.xml msgid "" "Sets the anchor identified by [code]margin[/code] constant from [enum " "Margin] enum to value [code]anchor[/code]. A setter method for [member " "anchor_bottom], [member anchor_left], [member anchor_right] and [member " "anchor_top].\n" "If [code]keep_margin[/code] is [code]true[/code], margins aren't updated " "after this operation.\n" "If [code]push_opposite_anchor[/code] is [code]true[/code] and the opposite " "anchor overlaps this anchor, the opposite one will have its value " "overridden. For example, when setting left anchor to 1 and the right anchor " "has value of 0.5, the right anchor will also get value of 1. If " "[code]push_opposite_anchor[/code] was [code]false[/code], the left anchor " "would get value 0.5." msgstr "" "将由[enum Margin]枚举的[code]margin[/code]常量标识的锚设置为值[code]anchor[/" "code]。用于[member anchor_bottom],[member anchor_left],[member " "anchor_right]和[member anchor_top]的setter方法。\n" "如果[code]keep_margin[/code]为 [code]true[/code],则在执行此操作后不会更新边" "距。\n" "如果[code]push_opposite_anchor[/code]为 [code]true[/code],并且相对的锚点与该" "锚点重叠,则相对的锚点将覆盖其值。例如,当将左锚点设置为1且右锚点的值为0.5" "时,右锚点的值也将为1。如果[code]push_opposite_anchor[/code]为 [code]false[/" "code],则左锚点将得到值0.5。" #: doc/classes/Control.xml msgid "" "Works the same as [method set_anchor], but instead of [code]keep_margin[/" "code] argument and automatic update of margin, it allows to set the margin " "offset yourself (see [method set_margin])." msgstr "" "与 [method set_anchor] 的工作原理相同,但是它代替 [code]keep_margin[/code] 参" "数和边距的自动更新,它允许您自己设置边距偏移量(请参阅 [method " "set_margin])。" #: doc/classes/Control.xml msgid "" "Sets both anchor preset and margin preset. See [method set_anchors_preset] " "and [method set_margins_preset]." msgstr "" "设置锚点预设和边距预设。请参阅 [method set_anchors_preset] 和 [method " "set_margins_preset]。" #: doc/classes/Control.xml msgid "" "Sets the anchors to a [code]preset[/code] from [enum Control.LayoutPreset] " "enum. This is the code equivalent to using the Layout menu in the 2D " "editor.\n" "If [code]keep_margins[/code] is [code]true[/code], control's position will " "also be updated." msgstr "" "将锚点设置为预设 [code]preset[/code],取值范围为 [enum Control.LayoutPreset] " "枚举。等效于在 2D 编辑器中使用布局菜单。\n" "如果 [code]keep_margins[/code] 是 [code]true[/code],控件的位置也会更新。" #: doc/classes/Control.xml msgid "" "Sets [member margin_left] and [member margin_top] at the same time. " "Equivalent of changing [member rect_position]." msgstr "" "同时设置[member margin_left]和[member margin_top]。等效于更改[member " "rect_position]。" #: doc/classes/Control.xml msgid "" "Forwards the handling of this control's drag and drop to [code]target[/code] " "control.\n" "Forwarding can be implemented in the target control similar to the methods " "[method get_drag_data], [method can_drop_data], and [method drop_data] but " "with two differences:\n" "1. The function name must be suffixed with [b]_fw[/b]\n" "2. The function must take an extra argument that is the control doing the " "forwarding\n" "[codeblock]\n" "# ThisControl.gd\n" "extends Control\n" "func _ready():\n" " set_drag_forwarding(target_control)\n" "\n" "# TargetControl.gd\n" "extends Control\n" "func can_drop_data_fw(position, data, from_control):\n" " return true\n" "\n" "func drop_data_fw(position, data, from_control):\n" " my_handle_data(data)\n" "\n" "func get_drag_data_fw(position, from_control):\n" " set_drag_preview(my_preview)\n" " return my_data()\n" "[/codeblock]" msgstr "" "将此控件的拖放操作转发到 [code]target[/code] 控件。\n" "可以在目标控件中实现转发,类似于方法 [method get_drag_data]、[method " "can_drop_data] 和 [method drop_data],但有两个区别:\n" "1. 函数名称必须带有 [b]_fw[/b] 后缀\n" "2. 该函数必须接受一个额外的参数,即进行转发的控件\n" "[codeblock]\n" "# ThisControl.gd\n" "extends Control\n" "func _ready():\n" " set_drag_forwarding(target_control)\n" "\n" "# TargetControl.gd\n" "extends Control\n" "func can_drop_data_fw(position, data, from_control):\n" " return true\n" "\n" "func drop_data_fw(position, data, from_control):\n" " my_handle_data(data)\n" "\n" "func get_drag_data_fw(position, from_control):\n" " set_drag_preview(my_preview)\n" " return my_data()\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Shows the given control at the mouse pointer. A good time to call this " "method is in [method get_drag_data]. The control must not be in the scene " "tree. You should not free the control, and you should not keep a reference " "to the control beyond the duration of the drag. It will be deleted " "automatically after the drag has ended.\n" "[codeblock]\n" "export (Color, RGBA) var color = Color(1, 0, 0, 1)\n" "\n" "func get_drag_data(position):\n" " # Use a control that is not in the tree\n" " var cpb = ColorPickerButton.new()\n" " cpb.color = color\n" " cpb.rect_size = Vector2(50, 50)\n" " set_drag_preview(cpb)\n" " return color\n" "[/codeblock]" msgstr "" "在鼠标指针处显示指定的控件。调用此方法好的时机,是在 [method get_drag_data] " "中。控件不得位于场景树当中。你不应该释放控件,也不应该在拖动持续时间结束保留" "对控件的引用。拖拽结束后会自动删除。\n" "[codeblock]\n" "export (Color, RGBA) var color = Color(1, 0, 0, 1)\n" "\n" "func get_drag_data(position):\n" " # 使用不在树中的控件\n" " var cpb = ColorPickerButton.new()\n" " cpb.color = color\n" " cpb.rect_size = Vector2(50, 50)\n" " set_drag_preview(cpb)\n" " return color\n" "[/codeblock]" #: doc/classes/Control.xml msgid "Sets [member margin_right] and [member margin_bottom] at the same time." msgstr "同时设置[member margin_right]和[member margin_bottom]。" #: doc/classes/Control.xml msgid "" "Sets the anchor identified by [code]margin[/code] constant from [enum " "Margin] enum to [Control] at [code]neighbor[/code] node path. A setter " "method for [member focus_neighbour_bottom], [member focus_neighbour_left], " "[member focus_neighbour_right] and [member focus_neighbour_top]." msgstr "" "设置由 [code]margin[/code] 常量标识的锚点,从 [enum Margin] 枚举到 " "[code]neighbor[/code] 节点路径处的 [Control]。是 [member " "focus_neighbour_bottom]、[member focus_neighbour_left]、[member " "focus_neighbour_right]、[member focus_neighbour_top] 的设置方法。" #: doc/classes/Control.xml msgid "" "Sets the [member rect_global_position] to given [code]position[/code].\n" "If [code]keep_margins[/code] is [code]true[/code], control's anchors will be " "updated instead of margins." msgstr "" "将[member rect_global_position]设置为给定的[code]position[/code]。\n" "如果[code]keep_margins[/code]为 [code]true[/code],则控件的锚点将被更新,而不" "是边距。" #: doc/classes/Control.xml msgid "" "Sets the margin identified by [code]margin[/code] constant from [enum " "Margin] enum to given [code]offset[/code]. A setter method for [member " "margin_bottom], [member margin_left], [member margin_right] and [member " "margin_top]." msgstr "" "设置由[enum Margin]枚举到[code]offset[/code]的[code]margin[/code]常量所标识的" "边距。用于[member margin_bottom],[member margin_left],[member margin_right]" "和[member margin_top]的设置方法。" #: doc/classes/Control.xml msgid "" "Sets the margins to a [code]preset[/code] from [enum Control.LayoutPreset] " "enum. This is the code equivalent to using the Layout menu in the 2D " "editor.\n" "Use parameter [code]resize_mode[/code] with constants from [enum Control." "LayoutPresetMode] to better determine the resulting size of the [Control]. " "Constant size will be ignored if used with presets that change size, e.g. " "[code]PRESET_LEFT_WIDE[/code].\n" "Use parameter [code]margin[/code] to determine the gap between the [Control] " "and the edges." msgstr "" "从 [enum Control.LayoutPreset] 枚举将边距设置为 [code]preset[/code]。这是等效" "于在 2D 编辑器中使用布局菜单的编码。\n" "使用参数 [code]resize_mode[/code] 和 [enum Control.LayoutPresetMode] 中的常量" "来更好地确定 [Control] 的最终大小。如果与更改大小的预设一起使用,则常规大小将" "被忽略,例如[code]PRESET_LEFT_WIDE[/code]。\n" "使用参数 [code]margin[/code] 确定 [Control] 和边缘之间的间隙。" #: doc/classes/Control.xml msgid "" "Sets the [member rect_position] to given [code]position[/code].\n" "If [code]keep_margins[/code] is [code]true[/code], control's anchors will be " "updated instead of margins." msgstr "" "将[member rect_position]设置为给定的[code]position[/code]。\n" "如果[code]keep_margins[/code]为 [code]true[/code],则控件的锚点将被更新,而不" "是边距。" #: doc/classes/Control.xml msgid "Sets the rotation (in radians)." msgstr "设置旋转度(以弧度为单位)。" #: doc/classes/Control.xml msgid "" "Sets the size (see [member rect_size]).\n" "If [code]keep_margins[/code] is [code]true[/code], control's anchors will be " "updated instead of margins." msgstr "" "设置控件的大小(参阅[member rect_size])。\n" "如果[code]keep_margins[/code]是[code]true[/code],则会更新控件的锚点而不是页" "边距。" #: doc/classes/Control.xml msgid "" "Displays a control as modal. Control must be a subwindow. Modal controls " "capture the input signals until closed or the area outside them is accessed. " "When a modal control loses focus, or the ESC key is pressed, they " "automatically hide. Modal controls are used extensively for popup dialogs " "and menus.\n" "If [code]exclusive[/code] is [code]true[/code], other controls will not " "receive input and clicking outside this control will not close it." msgstr "" "模态显示控件。控件必须是一个子窗口。模态控件捕获输入信号,直到关闭或访问它们" "之外的区域。当模态控件失去焦点或按下 ESC 键时,会自动隐藏。模态控件广泛用于弹" "出对话框和菜单。\n" "如果 [code]exclusive[/code] 为 [code]true[/code],则其他控件将不会接收输入," "并且在此控件外单击不会关闭它。" #: doc/classes/Control.xml msgid "" "Moves the mouse cursor to [code]to_position[/code], relative to [member " "rect_position] of this [Control]." msgstr "" "将鼠标光标移动到 [code]to_position[/code],相对于这个控件 [Control] 的 " "[member rect_position]。" #: doc/classes/Control.xml msgid "" "Anchors the bottom edge of the node to the origin, the center, or the end of " "its parent control. It changes how the bottom margin updates when the node " "moves or changes size. You can use one of the [enum Anchor] constants for " "convenience." msgstr "" "将节点的底部边缘锚定到其父控件的原点,中心或末端。当节点移动或更改大小时,它" "会更改底部边距的更新方式。为了方便起见,可以使用 [enum Anchor] 常量之一。" #: doc/classes/Control.xml msgid "" "Anchors the left edge of the node to the origin, the center or the end of " "its parent control. It changes how the left margin updates when the node " "moves or changes size. You can use one of the [enum Anchor] constants for " "convenience." msgstr "" "将节点的左边缘锚定到其父控件的原点,中心或末端。当节点移动或更改大小时,它会" "更改左侧边距的更新方式。为了方便起见,可以使用 [enum Anchor] 常量之一。" #: doc/classes/Control.xml msgid "" "Anchors the right edge of the node to the origin, the center or the end of " "its parent control. It changes how the right margin updates when the node " "moves or changes size. You can use one of the [enum Anchor] constants for " "convenience." msgstr "" "将节点的右边缘锚定到其父控件的原点,中心或末端。当节点移动或更改大小时,它会" "更改右边距的更新方式。为了方便起见,可以使用 [enum Anchor] 常量之一。" #: doc/classes/Control.xml msgid "" "Anchors the top edge of the node to the origin, the center or the end of its " "parent control. It changes how the top margin updates when the node moves or " "changes size. You can use one of the [enum Anchor] constants for convenience." msgstr "" "锚定节点的顶部边缘到原点、中心或其父控件的末端。当节点移动或改变大小时,它可" "以改变顶边的更新方式。为了便捷,你可以使用 [enum Anchor] 常量之一。" #: doc/classes/Control.xml msgid "" "The focus access mode for the control (None, Click or All). Only one Control " "can be focused at the same time, and it will receive keyboard signals." msgstr "" "控件的焦点访问模式(“无”,“单击”或“全部”)。只能同时集中一个控件,它将接收键" "盘信号。" #: doc/classes/Control.xml msgid "" "Tells Godot which node it should give keyboard focus to if the user presses " "the down arrow on the keyboard or down on a gamepad by default. You can " "change the key by editing the [code]ui_down[/code] input action. The node " "must be a [Control]. If this property is not set, Godot will give focus to " "the closest [Control] to the bottom of this one." msgstr "" "告诉Godot,默认情况下,如果用户按下键盘上的向下箭头或游戏手柄上的向下箭头,则" "应将焦点对准哪个节点。您可以通过编辑[code]ui_down[/code]输入操作来更改键。该" "节点必须是[Control]。如果未设置此属性,则Godot会将焦点放在该控件底部最接近的" "[Control]。" #: doc/classes/Control.xml msgid "" "Tells Godot which node it should give keyboard focus to if the user presses " "the left arrow on the keyboard or left on a gamepad by default. You can " "change the key by editing the [code]ui_left[/code] input action. The node " "must be a [Control]. If this property is not set, Godot will give focus to " "the closest [Control] to the left of this one." msgstr "" "告诉Godot,默认情况下,如果用户按下键盘上的向左箭头或游戏手柄上的向左键,应该" "将焦点对准键盘上的哪个节点。您可以通过编辑[code]ui_left[/code]输入操作来更改" "键。该节点必须是[Control]。如果未设置此属性,则Godot会将焦点放在该控件左侧最" "接近的[Control]。" #: doc/classes/Control.xml msgid "" "Tells Godot which node it should give keyboard focus to if the user presses " "the right arrow on the keyboard or right on a gamepad by default. You can " "change the key by editing the [code]ui_right[/code] input action. The node " "must be a [Control]. If this property is not set, Godot will give focus to " "the closest [Control] to the bottom of this one." msgstr "" "告诉Godot,如果用户按键盘上的右键或默认的游戏手柄上的右键,它应该把键盘焦点给" "哪个节点。你可以通过编辑[code]ui_right[/code]输入动作来改变这个键。该节点必须" "是一个[Control]。如果没有设置这个属性,Godot将把焦点交给离这个节点底部最近的" "[Control]。" #: doc/classes/Control.xml msgid "" "Tells Godot which node it should give keyboard focus to if the user presses " "the top arrow on the keyboard or top on a gamepad by default. You can change " "the key by editing the [code]ui_top[/code] input action. The node must be a " "[Control]. If this property is not set, Godot will give focus to the closest " "[Control] to the bottom of this one." msgstr "" "告诉Godot默认情况下,如果用户按下键盘上的顶部箭头或游戏手柄上的顶部,则应该将" "焦点对准键盘上的哪个节点。您可以通过编辑[code]ui_top[/code]输入操作来更改键。" "该节点必须是[Control]。如果未设置此属性,则Godot会将焦点放在该控件底部最接近" "的[Control]。" #: doc/classes/Control.xml msgid "" "Tells Godot which node it should give keyboard focus to if the user presses " "Tab on a keyboard by default. You can change the key by editing the " "[code]ui_focus_next[/code] input action.\n" "If this property is not set, Godot will select a \"best guess\" based on " "surrounding nodes in the scene tree." msgstr "" "告诉Godot,如果用户默认按键盘上的Tab键,它应该把键盘焦点给哪个节点。你可以通" "过编辑[code]ui_focus_next[/code]输入动作来改变这个键。\n" "如果这个属性没有设置,Godot会根据场景树中的周围节点选择一个 \"最佳猜测\"。" #: doc/classes/Control.xml msgid "" "Tells Godot which node it should give keyboard focus to if the user presses " "Shift+Tab on a keyboard by default. You can change the key by editing the " "[code]ui_focus_prev[/code] input action.\n" "If this property is not set, Godot will select a \"best guess\" based on " "surrounding nodes in the scene tree." msgstr "" "告诉Godot,如果用户按键盘上的Shift+Tab键,它应该把键盘焦点给哪个节点,这是默" "认。你可以通过编辑[code]ui_focus_prev[/code]输入动作来改变这个键。\n" "如果没有设置这个属性,Godot会根据场景树中的周围节点选择一个 \"最佳猜测\"。" #: doc/classes/Control.xml msgid "" "Controls the direction on the horizontal axis in which the control should " "grow if its horizontal minimum size is changed to be greater than its " "current size, as the control always has to be at least the minimum size." msgstr "" "控制水平轴的方向,如果控件的水平最小尺寸更改为大于其当前尺寸,则控件应沿水平" "轴增长,因为控件始终必须至少为最小尺寸。" #: doc/classes/Control.xml msgid "" "Controls the direction on the vertical axis in which the control should grow " "if its vertical minimum size is changed to be greater than its current size, " "as the control always has to be at least the minimum size." msgstr "" "控制控件在垂直轴上的方向,如果控件的垂直最小尺寸更改为大于当前尺寸,则控件应" "沿该方向增大,因为控件始终必须至少为最小尺寸。" #: doc/classes/Control.xml msgid "" "Changes the tooltip text. The tooltip appears when the user's mouse cursor " "stays idle over this control for a few moments, provided that the [member " "mouse_filter] property is not [constant MOUSE_FILTER_IGNORE]. You can change " "the time required for the tooltip to appear with [code]gui/timers/" "tooltip_delay_sec[/code] option in Project Settings.\n" "The tooltip popup will use either a default implementation, or a custom one " "that you can provide by overriding [method _make_custom_tooltip]. The " "default tooltip includes a [PopupPanel] and [Label] whose theme properties " "can be customized using [Theme] methods with the [code]\"TooltipPanel\"[/" "code] and [code]\"TooltipLabel\"[/code] respectively. For example:\n" "[codeblock]\n" "var style_box = StyleBoxFlat.new()\n" "style_box.set_bg_color(Color(1, 1, 0))\n" "style_box.set_border_width_all(2)\n" "# We assume here that the `theme` property has been assigned a custom Theme " "beforehand.\n" "theme.set_stylebox(\"panel\", \"TooltipPanel\", style_box)\n" "theme.set_color(\"font_color\", \"TooltipLabel\", Color(0, 1, 1))\n" "[/codeblock]" msgstr "" "改变工具提示的文本。当用户的鼠标光标在这个控件上停留片刻,工具提示就会出现," "前提是[member mouse_filter]属性非[constant MOUSE_FILTER_IGNORE]。你可以用项目" "设置中的[code]gui/timers/tooltip_delay_sec[/code]选项改变工具提示出现的时" "间。\n" "工具提示的弹出将使用默认的实现,或者你可以通过覆盖[method " "_make_custom_tooltip]提供一个自定义的实现。默认的工具提示包括一个[PopupPanel]" "和[Label],其主题属性可以通过[code]\"TooltipPanel\"[/code]和" "[code]\"TooltipLabel\"[/code]方法分别进行自定义。如:\n" "[codeblock]\n" "var style_box = StyleBoxFlat.new()\n" "style_box.set_bg_color(Color(1, 1, 0))\n" "style_box.set_border_width_all(2)\n" "# 我们在这里假设`theme`属性已经被事先分配了一个自定义的Theme。\n" "theme.set_stylebox(\"panel\", \"TooltipPanel\", style_box)\n" "theme.set_color(\"font_color\", \"TooltipLabel\", Color(0, 1, 1))\n" "[/codeblock]" #: doc/classes/Control.xml msgid "" "Enables whether input should propagate when you close the control as modal.\n" "If [code]false[/code], stops event handling at the viewport input event " "handling. The viewport first hides the modal and after marks the input as " "handled." msgstr "" "启用当你关闭控件模态时,输入是否传播。\n" "如果为 [code]false[/code],在视区输入事件处理时将停止事件处理。视区首先隐藏模" "态,之后将输入标记为已处理。" #: doc/classes/Control.xml msgid "" "Distance between the node's bottom edge and its parent control, based on " "[member anchor_bottom].\n" "Margins are often controlled by one or multiple parent [Container] nodes, so " "you should not modify them manually if your node is a direct child of a " "[Container]. Margins update automatically when you move or resize the node." msgstr "" "节点底边与其父控件之间的距离,基于 [member anchor_bottom]。\n" "边距通常由一个或多个父 [Container] 节点控制,因此,如果您的节点是 " "[Container] 的直接子级,则不应手动修改它们。当您移动或调整节点大小时,边距会" "自动更新。" #: doc/classes/Control.xml msgid "" "Distance between the node's left edge and its parent control, based on " "[member anchor_left].\n" "Margins are often controlled by one or multiple parent [Container] nodes, so " "you should not modify them manually if your node is a direct child of a " "[Container]. Margins update automatically when you move or resize the node." msgstr "" "节点的左边缘与其父控件之间的距离,基于 [member anchor_left]。\n" "边距通常由一个或多个父 [Container] 节点控制,因此,如果您的节点是 " "[Container] 的直接子级,则不应手动修改它们。当您移动或调整节点大小时,边距会" "自动更新。" #: doc/classes/Control.xml msgid "" "Distance between the node's right edge and its parent control, based on " "[member anchor_right].\n" "Margins are often controlled by one or multiple parent [Container] nodes, so " "you should not modify them manually if your node is a direct child of a " "[Container]. Margins update automatically when you move or resize the node." msgstr "" "节点的右边缘与其父控件之间的距离,基于 [member anchor_right]。\n" "边距通常由一个或多个父 [Container] 节点控制,因此,如果您的节点是 " "[Container] 的直接子级,则不应手动修改它们。当您移动或调整节点大小时,边距会" "自动更新。" #: doc/classes/Control.xml msgid "" "Distance between the node's top edge and its parent control, based on " "[member anchor_top].\n" "Margins are often controlled by one or multiple parent [Container] nodes, so " "you should not modify them manually if your node is a direct child of a " "[Container]. Margins update automatically when you move or resize the node." msgstr "" "节点的顶边与其父控件之间的距离,基于 [member anchor_top]。\n" "边距通常由一个或多个父 [Container] 节点控制,所以如果您的节点是 [Container] " "的直接子节点,您不应该手动修改它们。当您移动或调整节点大小时,边距会自动更" "新。" #: doc/classes/Control.xml msgid "" "The default cursor shape for this control. Useful for Godot plugins and " "applications or games that use the system's mouse cursors.\n" "[b]Note:[/b] On Linux, shapes may vary depending on the cursor theme of the " "system." msgstr "" "此控件的默认光标形状。对于Godot插件和使用系统鼠标光标的应用程序或游戏很有" "用。\n" "[b]注意:[/b]在Linux上,形状可能会有所不同,具体取决于系统的光标主题。" #: doc/classes/Control.xml msgid "" "Controls whether the control will be able to receive mouse button input " "events through [method _gui_input] and how these events should be handled. " "Also controls whether the control can receive the [signal mouse_entered], " "and [signal mouse_exited] signals. See the constants to learn what each does." msgstr "" "控制控件是否能够通过[method _gui_input]接收鼠标按钮输入事件,以及如何处理这些" "事件。还控制控件是否能接收[signal mouse_entered]和[signal mouse_exited]信号。" "参阅常量来了解每个常量的作用。" #: doc/classes/Control.xml msgid "" "Enables whether rendering of [CanvasItem] based children should be clipped " "to this control's rectangle. If [code]true[/code], parts of a child which " "would be visibly outside of this control's rectangle will not be rendered." msgstr "" "启用是否应将基于[CanvasItem]的子控件渲染到该控件的矩形上。如果[code]true[/" "code],则不会渲染子控件中明显在矩形之外的部分。" #: doc/classes/Control.xml msgid "" "The node's global position, relative to the world (usually to the top-left " "corner of the window)." msgstr "节点相对于世界的全局位置(通常是窗口的左上角)。" #: doc/classes/Control.xml msgid "" "The minimum size of the node's bounding rectangle. If you set it to a value " "greater than (0, 0), the node's bounding rectangle will always have at least " "this size, even if its content is smaller. If it's set to (0, 0), the node " "sizes automatically to fit its content, be it a texture or child nodes." msgstr "" "节点的边界矩形的最小尺寸。如果你将它设置为大于(0,0)的值,节点的边界矩形将始" "终至少有这个大小,即使它的内容更小。如果设置为(0,0),节点的大小会自动适应其" "内容,无论是纹理还是子节点。" #: doc/classes/Control.xml msgid "" "By default, the node's pivot is its top-left corner. When you change its " "[member rect_rotation] or [member rect_scale], it will rotate or scale " "around this pivot. Set this property to [member rect_size] / 2 to pivot " "around the Control's center." msgstr "" "默认情况下,该节点的轴心位于其左上角。当您更改其 [member rect_rotation] 或 " "[member rect_scale] 时,它将围绕此轴心进行旋转或缩放。将此属性设置为 [member " "rect_size] / 2,以将轴心在该 Control 内居中。" #: doc/classes/Control.xml msgid "" "The node's position, relative to its parent. It corresponds to the " "rectangle's top-left corner. The property is not affected by [member " "rect_pivot_offset]." msgstr "" "节点相对于其父节点的位置。它对应于矩形的左上角。该属性不受 [member " "rect_pivot_offset] 的影响。" #: doc/classes/Control.xml msgid "" "The node's rotation around its pivot, in degrees. See [member " "rect_pivot_offset] to change the pivot's position." msgstr "" "节点围绕其轴心的旋转(以度为单位)。更改轴心的位置请参阅 [member " "rect_pivot_offset]。" #: doc/classes/Control.xml msgid "" "The node's scale, relative to its [member rect_size]. Change this property " "to scale the node around its [member rect_pivot_offset]. The Control's " "[member hint_tooltip] will also scale according to this value.\n" "[b]Note:[/b] This property is mainly intended to be used for animation " "purposes. Text inside the Control will look pixelated or blurry when the " "Control is scaled. To support multiple resolutions in your project, use an " "appropriate viewport stretch mode as described in the [url=$DOCS_URL/" "tutorials/rendering/multiple_resolutions.html]documentation[/url] instead of " "scaling Controls individually.\n" "[b]Note:[/b] If the Control node is a child of a [Container] node, the scale " "will be reset to [code]Vector2(1, 1)[/code] when the scene is instanced. To " "set the Control's scale when it's instanced, wait for one frame using " "[code]yield(get_tree(), \"idle_frame\")[/code] then set its [member " "rect_scale] property." msgstr "" "节点的缩放,相对于其 [member rect_size]。改变这个属性可以使节点围绕它的 " "[member rect_pivot_offset] 缩放。该 Control 的 [member hint_tooltip] 也将根据" "这个值进行缩放。\n" "[b]注意:[/b]这个属性主要用于动画用途。当控件被缩放时,控件内的文本将看起来是" "像素化或模糊的。要在你的项目支持多种分辨率,请使用[url=$DOCS_URL/tutorials/" "rendering/multiple_resolutions.html]文档[/url]中描述的合适的视窗拉伸模式,而" "不是单独缩放控件。\n" "[b]注意:[/b]如果控件节点是 [Container] 节点的子节点,当场景实例化时,缩放将" "被重置为 [code]Vector2(1, 1)[/code]。要在实例化时设置控件的缩放,使用 " "[code]yield(get_tree(), \"idle_frame\")[/code] 等待一帧,然后设置其 [member " "rect_scale] 属性。" #: doc/classes/Control.xml msgid "" "The size of the node's bounding rectangle, in pixels. [Container] nodes " "update this property automatically." msgstr "节点边界矩形的大小,以像素为单位。 [Container]节点会自动更新此属性。" #: doc/classes/Control.xml msgid "" "Tells the parent [Container] nodes how they should resize and place the node " "on the X axis. Use one of the [enum SizeFlags] constants to change the " "flags. See the constants to learn what each does." msgstr "" "告诉父[Container]节点应如何调整尺寸并将其放置在X轴上。使用[enum SizeFlags]常" "量之一更改标志。查看常量以了解每个常量的作用。" #: doc/classes/Control.xml msgid "" "If the node and at least one of its neighbours uses the [constant " "SIZE_EXPAND] size flag, the parent [Container] will let it take more or less " "space depending on this property. If this node has a stretch ratio of 2 and " "its neighbour a ratio of 1, this node will take two thirds of the available " "space." msgstr "" "如果这个节点和它的至少一个相邻节点使用[constant SIZE_EXPAND]大小标志,父节点" "[Container]将根据这个属性让它占用更多或更少的空间。如果这个节点的拉伸比为2," "而它的相邻节点的拉伸比为1,这个节点将占用三分之二的可用空间。" #: doc/classes/Control.xml msgid "" "Tells the parent [Container] nodes how they should resize and place the node " "on the Y axis. Use one of the [enum SizeFlags] constants to change the " "flags. See the constants to learn what each does." msgstr "" "告诉父[Container]节点应如何调整尺寸并将其放置在X轴上。使用[enum SizeFlags]常" "量之一更改标志。查看常量以了解每个常量的作用。" #: doc/classes/Control.xml msgid "" "Changing this property replaces the current [Theme] resource this node and " "all its [Control] children use." msgstr "更改此属性将替换该节点及其所有[Control]子级使用的当前[Theme]资源。" #: doc/classes/Control.xml msgid "" "The name of a theme type variation used by this [Control] to look up its own " "theme items. When empty, the class name of the node is used (e.g. " "[code]Button[/code] for the [Button] control), as well as the class names of " "all parent classes (in order of inheritance).\n" "When set, this property gives the highest priority to the type of the " "specified name. This type can in turn extend another type, forming a " "dependency chain. See [method Theme.set_type_variation]. If the theme item " "cannot be found using this type or its base types, lookup falls back on the " "class names.\n" "[b]Note:[/b] To look up [Control]'s own items use various [code]get_*[/code] " "methods without specifying [code]theme_type[/code].\n" "[b]Note:[/b] Theme items are looked for in the tree order, from branch to " "root, where each [Control] node is checked for its [member theme] property. " "The earliest match against any type/class name is returned. The project-" "level Theme and the default Theme are checked last." msgstr "" "主题类型变种的名称,这个 [Control] 用它来查询自身的主题项目。为空时,会使用该" "节点的类名(例如 [Button] 控件使用 [code]Button[/code])与所有父类的类名(按" "照继承的顺序)。\n" "设值后,这个属性会为其指定的名称赋予最高优先级。这个类型可以扩展另一个类型," "形成依赖链。请参阅 [method Theme.set_type_variation]。如果无法使用这个类型或" "者其基础类型找到主题项目,会使用类名进行查询。\n" "[b]注意:[/b]要查询 [Control] 自身的项目,请勿在使用各种 [code]get_*[/code] " "方法时指定 [code]theme_type[/code]。\n" "[b]注意:[/b]主题项目的查询是按照树顺序进行的,从枝到根,会检查各个 " "[Control] 节点的 [member theme] 属性。返回的是最早符合条件的类型/类名。项目级" "别的主题和默认主题会在最后检查。" #: doc/classes/Control.xml msgid "Emitted when the node gains keyboard focus." msgstr "在节点获得键盘焦点时发出。" #: doc/classes/Control.xml msgid "Emitted when the node loses keyboard focus." msgstr "当节点失去键盘焦点时发出。" #: doc/classes/Control.xml msgid "Emitted when the node receives an [InputEvent]." msgstr "当节点收到 [InputEvent] 时发出。" #: doc/classes/Control.xml msgid "Emitted when the node's minimum size changes." msgstr "当节点的最小大小更改时发出。" #: doc/classes/Control.xml msgid "Emitted when a modal [Control] is closed. See [method show_modal]." msgstr "当模态控件[Control]被关闭时触发。参阅[method show_modal]。" #: doc/classes/Control.xml msgid "" "Emitted when the mouse enters the control's [code]Rect[/code] area, provided " "its [member mouse_filter] lets the event reach it.\n" "[b]Note:[/b] [signal mouse_entered] will not be emitted if the mouse enters " "a child [Control] node before entering the parent's [code]Rect[/code] area, " "at least until the mouse is moved to reach the parent's [code]Rect[/code] " "area." msgstr "" "当鼠标进入控件的[code]Rect[/code]区域时触发,只要其[member mouse_filter]允许" "事件到达。\n" "[b]注意:[/b]如果鼠标在进入父控件的[code]Rect[/code]区域之前进入子[Control]节" "点,在鼠标移动到父控件的[code]Rect[/code]区域之前,不会发出[signal " "mouse_entered]。" #: doc/classes/Control.xml msgid "" "Emitted when the mouse leaves the control's [code]Rect[/code] area, provided " "its [member mouse_filter] lets the event reach it.\n" "[b]Note:[/b] [signal mouse_exited] will be emitted if the mouse enters a " "child [Control] node, even if the mouse cursor is still inside the parent's " "[code]Rect[/code] area.\n" "If you want to check whether the mouse truly left the area, ignoring any top " "nodes, you can use code like this:\n" "[codeblock]\n" "func _on_mouse_exited():\n" " if not Rect2(Vector2(), rect_size)." "has_point(get_local_mouse_position()):\n" " # Not hovering over area.\n" "[/codeblock]" msgstr "" "当鼠标离开控件的 [code]Rect[/code] 区域时触发,只要其 [member mouse_filter] " "允许事件到达。\n" "[b]注意:[/b]如果鼠标进入一个子 [Control] 节点,即使鼠标光标仍然在父 " "[code]Rect[/code] 区域内,[signal mouse_exited] 也将触发。\n" "如果你想检查鼠标是否真正离开了该区域,无视上层节点,可以使用这样的代码:\n" "[codeblock]\n" "func _on_mouse_exited():\n" " if not Rect2(Vector2(), rect_size)." "has_point(get_local_mouse_position()):\n" " # 没有悬停在此区域。\n" "[/codeblock]" #: doc/classes/Control.xml msgid "Emitted when the control changes size." msgstr "当控件更改大小时发出。" #: doc/classes/Control.xml msgid "" "Emitted when one of the size flags changes. See [member " "size_flags_horizontal] and [member size_flags_vertical]." msgstr "" "当大小标志之一更改时发出。请参阅[member size_flags_horizontal]和[member " "size_flags_vertical]。" #: doc/classes/Control.xml msgid "The node cannot grab focus. Use with [member focus_mode]." msgstr "该节点无法获取焦点。在 [member focus_mode] 中使用。" #: doc/classes/Control.xml msgid "" "The node can only grab focus on mouse clicks. Use with [member focus_mode]." msgstr "该节点只能通过鼠标点击获取焦点。在 [member focus_mode] 中使用。" #: doc/classes/Control.xml msgid "" "The node can grab focus on mouse click or using the arrows and the Tab keys " "on the keyboard. Use with [member focus_mode]." msgstr "" "该节点可以通过使用鼠标点击或使用键盘上的箭头和 Tab 键获取焦点。在 [member " "focus_mode] 中使用。" #: doc/classes/Control.xml msgid "" "Sent when the node changes size. Use [member rect_size] to get the new size." msgstr "当节点更改大小时发送。使用[member rect_size]获取新大小。" #: doc/classes/Control.xml msgid "Sent when the mouse pointer enters the node." msgstr "当鼠标指针进入节点时发送。" #: doc/classes/Control.xml msgid "Sent when the mouse pointer exits the node." msgstr "当鼠标指针退出节点时发送。" #: doc/classes/Control.xml msgid "Sent when the node grabs focus." msgstr "当节点获得焦点时发送。" #: doc/classes/Control.xml msgid "Sent when the node loses focus." msgstr "当节点失去焦点时发送。" #: doc/classes/Control.xml msgid "" "Sent when the node's [member theme] changes, right before Godot redraws the " "control. Happens when you call one of the [code]add_*_override[/code] " "methods." msgstr "" "当节点的 [member theme] 改变时,就在Godot重绘控件之前发送。当你调用" "[code]add_*_override[/code]方法之一时发生。" #: doc/classes/Control.xml msgid "Sent when an open modal dialog closes. See [method show_modal]." msgstr "当一个打开的模态对话框关闭时发送。参阅[method show_modal]。" #: doc/classes/Control.xml msgid "" "Sent when this node is inside a [ScrollContainer] which has begun being " "scrolled." msgstr "当此节点在已开始滚动的[ScrollContainer]内部时发送。" #: doc/classes/Control.xml msgid "" "Sent when this node is inside a [ScrollContainer] which has stopped being " "scrolled." msgstr "当此节点在已停止滚动的[ScrollContainer]内部时发送。" #: doc/classes/Control.xml msgid "" "Show the system's arrow mouse cursor when the user hovers the node. Use with " "[member mouse_default_cursor_shape]." msgstr "" "当用户将节点悬停时,显示系统的箭头鼠标光标。与[member " "mouse_default_cursor_shape]成员一起使用。" #: doc/classes/Control.xml msgid "" "Show the system's I-beam mouse cursor when the user hovers the node. The I-" "beam pointer has a shape similar to \"I\". It tells the user they can " "highlight or insert text." msgstr "" "当用户将节点悬停时,显示系统的I型光束鼠标光标。工字梁指针的形状类似于“ I”。它" "告诉用户他们可以突出显示或插入文本。" #: doc/classes/Control.xml msgid "" "Show the system's pointing hand mouse cursor when the user hovers the node." msgstr "当用户将节点悬停时,显示系统的手形鼠标光标。" #: doc/classes/Control.xml msgid "Show the system's cross mouse cursor when the user hovers the node." msgstr "当用户将鼠标悬停在节点上时,显示系统的交叉鼠标光标。" #: doc/classes/Control.xml msgid "" "Show the system's wait mouse cursor when the user hovers the node. Often an " "hourglass." msgstr "当用户悬停节点时,显示系统等待的鼠标光标。通常是一个沙漏。" #: doc/classes/Control.xml msgid "" "Show the system's busy mouse cursor when the user hovers the node. Often an " "arrow with a small hourglass." msgstr "当用户悬停节点时,显示系统繁忙的鼠标光标。通常是箭头加一个小沙漏。" #: doc/classes/Control.xml msgid "" "Show the system's drag mouse cursor, often a closed fist or a cross symbol, " "when the user hovers the node. It tells the user they're currently dragging " "an item, like a node in the Scene dock." msgstr "" "当用户悬停在节点上时,显示系统的拖动鼠标光标,通常是一个闭合的拳头或十字符" "号。它告诉用户他们当前正在拖动一个项目,例如场景面板中的节点。" #: doc/classes/Control.xml msgid "" "Show the system's drop mouse cursor when the user hovers the node. It can be " "an open hand. It tells the user they can drop an item they're currently " "grabbing, like a node in the Scene dock." msgstr "" "当用户悬停节点时,显示系统的落地鼠标光标。它可以是一个张开的手。它告诉用户可" "以放下一个他们当前正在抓取的物品,比如场景dock中的一个节点。" #: doc/classes/Control.xml msgid "" "Show the system's forbidden mouse cursor when the user hovers the node. " "Often a crossed circle." msgstr "当用户悬停节点时,显示系统禁止的鼠标光标。通常是一个交叉的圆圈。" #: doc/classes/Control.xml msgid "" "Show the system's vertical resize mouse cursor when the user hovers the " "node. A double-headed vertical arrow. It tells the user they can resize the " "window or the panel vertically." msgstr "" "当用户悬停节点时,显示系统的垂直调整鼠标光标。一个双头的垂直箭头。它告诉用户" "可以垂直调整窗口或面板的大小。" #: doc/classes/Control.xml msgid "" "Show the system's horizontal resize mouse cursor when the user hovers the " "node. A double-headed horizontal arrow. It tells the user they can resize " "the window or the panel horizontally." msgstr "" "当用户悬停节点时,显示系统的水平调整鼠标光标。一个双头的水平箭头。它告诉用户" "可以水平调整窗口或面板的大小。" #: doc/classes/Control.xml msgid "" "Show the system's window resize mouse cursor when the user hovers the node. " "The cursor is a double-headed arrow that goes from the bottom left to the " "top right. It tells the user they can resize the window or the panel both " "horizontally and vertically." msgstr "" "当用户将节点悬停时,显示系统窗口调整大小的鼠标光标。光标是从左下角到右上角的" "双向箭头。它告诉用户可以水平和垂直调整窗口或面板的大小。" #: doc/classes/Control.xml msgid "" "Show the system's window resize mouse cursor when the user hovers the node. " "The cursor is a double-headed arrow that goes from the top left to the " "bottom right, the opposite of [constant CURSOR_BDIAGSIZE]. It tells the user " "they can resize the window or the panel both horizontally and vertically." msgstr "" "当用户将节点悬停时,显示系统窗口调整大小的鼠标光标。光标是一个双向箭头,从左" "上角到右下角,与[constant CURSOR_BDIAGSIZE]相反。它告诉用户可以水平和垂直调整" "窗口或面板的大小。" #: doc/classes/Control.xml msgid "" "Show the system's move mouse cursor when the user hovers the node. It shows " "2 double-headed arrows at a 90 degree angle. It tells the user they can move " "a UI element freely." msgstr "" "当用户将节点悬停时,显示系统的移动鼠标光标。它以90度角显示2个双向箭头。它告诉" "用户他们可以自由移动UI元素。" #: doc/classes/Control.xml msgid "" "Show the system's vertical split mouse cursor when the user hovers the node. " "On Windows, it's the same as [constant CURSOR_VSIZE]." msgstr "" "当用户将节点悬停时,显示系统的垂直拆分鼠标光标。在 Windows 上,它与 " "[constant CURSOR_VSIZE] 相同。" #: doc/classes/Control.xml msgid "" "Show the system's horizontal split mouse cursor when the user hovers the " "node. On Windows, it's the same as [constant CURSOR_HSIZE]." msgstr "" "当用户将节点悬停时,显示系统的水平拆分鼠标光标。在Windows上,它与[constant " "CURSOR_HSIZE]相同。" #: doc/classes/Control.xml msgid "" "Show the system's help mouse cursor when the user hovers the node, a " "question mark." msgstr "当用户将节点悬停在一个节点上时,显示系统的帮助鼠标光标,一个问号。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the top-left of the parent control's bounds. Use with " "[method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的左上角。与 [method set_anchors_preset] 一起" "使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the top-right of the parent control's bounds. Use with " "[method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的右上角。与 [method set_anchors_preset] 一起" "使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the bottom-left of the parent control's bounds. Use " "with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的左下角。与 [method set_anchors_preset] 一起" "使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the bottom-right of the parent control's bounds. Use " "with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的右下角。与 [method set_anchors_preset] 一起" "使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the center of the left edge of the parent control's " "bounds. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的左边缘的中心。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the center of the top edge of the parent control's " "bounds. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的顶边缘的中心。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the center of the right edge of the parent control's " "bounds. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的右边缘的中心。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the center of the bottom edge of the parent control's " "bounds. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的底边缘的中心。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the center of the parent control's bounds. Use with " "[method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件边界的中心。与 [method set_anchors_preset] 一起使" "用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the left edge of the parent control. The left margin " "becomes relative to the left edge and the top margin relative to the top " "left corner of the node's parent. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件的左边缘。左边距相对于节点父节点的左边缘,而上边距" "相对于节点父节点的左上角。与 [method set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the top edge of the parent control. The left margin " "becomes relative to the top left corner, the top margin relative to the top " "edge, and the right margin relative to the top right corner of the node's " "parent. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件的顶部边缘。左侧边距相对于节点父节点的左上角,顶部" "边距相对于顶部的边缘,右侧边距相对于节点的父节点。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the right edge of the parent control. The right margin " "becomes relative to the right edge and the top margin relative to the top " "right corner of the node's parent. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件的顶部边缘。左侧边距相对于节点父节点的左上角,顶部" "边距相对于顶部的边缘,右侧边距相对于节点的父节点。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the bottom edge of the parent control. The left margin " "becomes relative to the bottom left corner, the bottom margin relative to " "the bottom edge, and the right margin relative to the bottom right corner of " "the node's parent. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件的底部边缘。左侧边距相对于节点父节点的左下角,底部" "边距相对于底部的边缘,而右侧边距相对于节点的右下角。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to a vertical line that cuts the parent control in half. " "Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到一条垂直线,该垂直线将父控件切成两半。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to a horizontal line that cuts the parent control in " "half. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到一条水平线,该水平线将父控件切成两半。与 [method " "set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "" "Snap all 4 anchors to the respective corners of the parent control. Set all " "4 margins to 0 after you applied this preset and the [Control] will fit its " "parent control. This is equivalent to the \"Full Rect\" layout option in the " "editor. Use with [method set_anchors_preset]." msgstr "" "将所有 4 个锚点对齐到父控件的各个角。应用此预设后,将所有 4 个页边距设置为 " "0,[Control] 将适合其上级控件。这等效于编辑器中的“整个矩形”布局选项。与 " "[method set_anchors_preset] 一起使用。" #: doc/classes/Control.xml msgid "The control will be resized to its minimum size." msgstr "控件将被调整为最小尺寸。" #: doc/classes/Control.xml msgid "The control's width will not change." msgstr "控件的宽度不会改变。" #: doc/classes/Control.xml msgid "The control's height will not change." msgstr "控件的高度不会改变。" #: doc/classes/Control.xml msgid "The control's size will not change." msgstr "控件的大小不会改变。" #: doc/classes/Control.xml msgid "" "Tells the parent [Container] to expand the bounds of this node to fill all " "the available space without pushing any other node. Use with [member " "size_flags_horizontal] and [member size_flags_vertical]." msgstr "" "告诉父[Container]扩展此节点的边界,以在不推其他节点的情况下填充所有可用空间。" "使用[member size_flags_horizontal]和[member size_flags_vertical]。" #: doc/classes/Control.xml msgid "" "Tells the parent [Container] to let this node take all the available space " "on the axis you flag. If multiple neighboring nodes are set to expand, " "they'll share the space based on their stretch ratio. See [member " "size_flags_stretch_ratio]. Use with [member size_flags_horizontal] and " "[member size_flags_vertical]." msgstr "" "告诉父级[Container]让该节点占用您标记的轴上的所有可用空间。如果将多个相邻节点" "设置为扩展,它们将根据其拉伸比共享空间。参阅[member " "size_flags_stretch_ratio]。与[member size_flags_horizontal]和[member " "size_flags_vertical]一起使用。" #: doc/classes/Control.xml msgid "" "Sets the node's size flags to both fill and expand. See the 2 constants " "above for more information." msgstr "" "将节点的大小标志设置为同时填充和扩展。有关更多信息,请参阅上面的2个常量。" #: doc/classes/Control.xml msgid "" "Tells the parent [Container] to center the node in itself. It centers the " "control based on its bounding box, so it doesn't work with the fill or " "expand size flags. Use with [member size_flags_horizontal] and [member " "size_flags_vertical]." msgstr "" "告诉父级 [Container] 使节点本身居中。它基于控件的包围框居中,因此它不适用于 " "fill 或 expand 尺寸标志。与 [member size_flags_horizontal] 和 [member " "size_flags_vertical] 一起使用。" #: doc/classes/Control.xml msgid "" "Tells the parent [Container] to align the node with its end, either the " "bottom or the right edge. It doesn't work with the fill or expand size " "flags. Use with [member size_flags_horizontal] and [member " "size_flags_vertical]." msgstr "" "告诉父级[Container]将节点与其末端(底部或右侧)对齐。它不适用于fill或expand " "size标志。与[member size_flags_horizontal]和[member size_flags_vertical]一起" "使用。" #: doc/classes/Control.xml msgid "" "The control will receive mouse button input events through [method " "_gui_input] if clicked on. And the control will receive the [signal " "mouse_entered] and [signal mouse_exited] signals. These events are " "automatically marked as handled, and they will not propagate further to " "other controls. This also results in blocking signals in other controls." msgstr "" "被点击时,控件将通过 [method _gui_input] 收到鼠标按钮输入事件。控件能够接收" "到 [signal mouse_entered] 和 [signal mouse_exited] 信号。这些事件将自动被标记" "为已处理,不会进一步传播到其他控件,因此相关的信号也不会在其他控件中触发。" #: doc/classes/Control.xml msgid "" "The control will receive mouse button input events through [method " "_gui_input] if clicked on. And the control will receive the [signal " "mouse_entered] and [signal mouse_exited] signals. If this control does not " "handle the event, the parent control (if any) will be considered, and so on " "until there is no more parent control to potentially handle it. This also " "allows signals to fire in other controls. Even if no control handled it at " "all, the event will still be handled automatically, so unhandled input will " "not be fired." msgstr "" "被点击时,控件将通过 [method _gui_input] 收到鼠标按钮输入事件。控件能够接收 " "[signal mouse_entered] 和 [signal mouse_exited] 信号。如果此控件未处理事件," "则将考虑其父控件(如果有的话),并依此类推,直到不再有可能处理它的父控件为" "止。因此,相关的信号可以在其他控件中触发。即使根本没有控件处理过该事件,该事" "件仍将被自动处理,因此不会触发未处理的输入。" #: doc/classes/Control.xml msgid "" "The control will not receive mouse button input events through [method " "_gui_input]. The control will also not receive the [signal mouse_entered] " "nor [signal mouse_exited] signals. This will not block other controls from " "receiving these events or firing the signals. Ignored events will not be " "handled automatically." msgstr "" "该控件不会通过 [method _gui_input] 收到鼠标按钮输入事件,也不会接收到 " "[signal mouse_entered] 和 [signal mouse_exited] 信号。这不会阻止其他控件接收" "这些事件或触发信号。被忽略的事件将不会被自动处理。" #: doc/classes/Control.xml msgid "" "The control will grow to the left or top to make up if its minimum size is " "changed to be greater than its current size on the respective axis." msgstr "" "如果控件的最小尺寸更改为大于其相应轴上的当前尺寸,则控件将向左或顶部增大以进" "行组合。" #: doc/classes/Control.xml msgid "" "The control will grow to the right or bottom to make up if its minimum size " "is changed to be greater than its current size on the respective axis." msgstr "" "如果控件的最小尺寸更改为大于其相应轴上的当前尺寸,则控件将向右或向下增大以进" "行补偿。" #: doc/classes/Control.xml msgid "" "The control will grow in both directions equally to make up if its minimum " "size is changed to be greater than its current size." msgstr "" "如果控件的最小大小更改为大于其当前大小,则控件将在两个方向上均等地增长以组成" "该控件。" #: doc/classes/Control.xml msgid "" "Snaps one of the 4 anchor's sides to the origin of the node's [code]Rect[/" "code], in the top left. Use it with one of the [code]anchor_*[/code] member " "variables, like [member anchor_left]. To change all 4 anchors at once, use " "[method set_anchors_preset]." msgstr "" "将 4 个锚点的某一侧吸附到节点的 [code]Rect[/code] 的左上角。在 " "[code]anchor_*[/code] 成员变量中使用,例如 [member anchor_left]。要一次更改全" "部 4 个锚点,请使用 [method set_anchors_preset]。" #: doc/classes/Control.xml msgid "" "Snaps one of the 4 anchor's sides to the end of the node's [code]Rect[/" "code], in the bottom right. Use it with one of the [code]anchor_*[/code] " "member variables, like [member anchor_left]. To change all 4 anchors at " "once, use [method set_anchors_preset]." msgstr "" "将 4 个锚点的某一侧吸附到节点的 [code]Rect[/code] 的右下角。在 " "[code]anchor_*[/code] 成员变量中使用,例如 [member anchor_left]。要一次更改全" "部 4 个锚点,请使用 [method set_anchors_preset]。" #: doc/classes/ConvexPolygonShape.xml msgid "Convex polygon shape for 3D physics." msgstr "用于3D物理的凸多边形形状。" #: doc/classes/ConvexPolygonShape.xml msgid "" "Convex polygon shape resource, which can be added to a [PhysicsBody] or area." msgstr "凸多边形形状资源,可以添加到[PhysicsBody]或area区域。" #: doc/classes/ConvexPolygonShape.xml msgid "The list of 3D points forming the convex polygon shape." msgstr "形成凸多边形的3D点列表。" #: doc/classes/ConvexPolygonShape2D.xml msgid "Convex polygon shape for 2D physics." msgstr "用于2D物理的凸多边形形状。" #: doc/classes/ConvexPolygonShape2D.xml msgid "" "Convex polygon shape for 2D physics. A convex polygon, whatever its shape, " "is internally decomposed into as many convex polygons as needed to ensure " "all collision checks against it are always done on convex polygons (which " "are faster to check).\n" "The main difference between a [ConvexPolygonShape2D] and a " "[ConcavePolygonShape2D] is that a concave polygon assumes it is concave and " "uses a more complex method of collision detection, and a convex one forces " "itself to be convex in order to speed up collision detection." msgstr "" "用于2D物理的凸多边形形状。凸多边形,无论其形状如何,都可以在内部分解为所需数" "量的凸多边形,以确保始终对凸多边形执行所有针对它的碰撞检查(检查速度更" "快)。\n" "[ConvexPolygonShape2D]和[ConcavePolygonShape2D]之间的主要区别在于,凹面多边形" "假定其为凹面,并使用更复杂的碰撞检测方法,而凸面多边形则将自身强制变为凸面," "以加快碰撞检测的速度。" #: doc/classes/ConvexPolygonShape2D.xml msgid "" "Based on the set of points provided, this creates and assigns the [member " "points] property using the convex hull algorithm. Removing all unneeded " "points. See [method Geometry.convex_hull_2d] for details." msgstr "" "基于所提供点的集合,使用凸包算法创建和分配 [member points]属性。删除所有不需" "要的点。参阅[method Geometry.convex_hull_2d]。" #: doc/classes/ConvexPolygonShape2D.xml msgid "" "The polygon's list of vertices. Can be in either clockwise or " "counterclockwise order. Only set this property with convex hull points, use " "[method set_point_cloud] to generate a convex hull shape from concave shape " "points." msgstr "" "该多边形的顶点列表。顺时针顺序或逆时针顺序都有可能。请用凸包点设置该属性,可" "以用 [method set_point_cloud] 从凹形状点设成凸包形状。" #: doc/classes/CPUParticles.xml msgid "CPU-based 3D particle emitter." msgstr "基于 CPU 的 3D 粒子发射器。" #: doc/classes/CPUParticles.xml msgid "" "CPU-based 3D particle node used to create a variety of particle systems and " "effects.\n" "See also [Particles], which provides the same functionality with hardware " "acceleration, but may not run on older devices.\n" "[b]Note:[/b] Unlike [Particles], the visibility rect is generated on-the-fly " "and doesn't need to be configured by the user." msgstr "" "基于 CPU 的 3D 粒子节点,用于创建各种粒子系统和效果。\n" "参阅 [Particles],它是以硬件加速提供相同的功能,但可能无法在旧设备上运行。\n" "[b]注意:[/b]与 [Particles] 不同,其可见性矩形是即时生成的,不需要用户配置。" #: doc/classes/CPUParticles.xml msgid "" "Sets this node's properties to match a given [Particles] node with an " "assigned [ParticlesMaterial]." msgstr "" "设置此节点的属性,以将给定的 [Particles] 节点与指定的 [ParticlesMaterial] 匹" "配。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Returns the base value of the parameter specified by [enum Parameter]." msgstr "返回由[enum Parameter]指定的参数的基值。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Returns the [Curve] of the parameter specified by [enum Parameter]." msgstr "返回由[enum Parameter]指定的参数的[Curve]。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Returns the randomness factor of the parameter specified by [enum Parameter]." msgstr "返回[enum Parameter]指定的参数的随机性系数。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Returns the enabled state of the given flag (see [enum Flags] for options)." msgstr "返回给定标志的启用状态(有关选项,请参阅[enum Flags])。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Restarts the particle emitter." msgstr "重新启动粒子发射器。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Sets the base value of the parameter specified by [enum Parameter]." msgstr "设置[enum Parameter]指定的参数的基值。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Sets the [Curve] of the parameter specified by [enum Parameter]." msgstr "设置[enum Parameter]指定的参数的[Curve]。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Sets the randomness factor of the parameter specified by [enum Parameter]." msgstr "设置[enum Parameter]指定的参数的随机性因子。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Enables or disables the given flag (see [enum Flags] for options)." msgstr "启用或禁用给定标志(有关选项,请参阅[enum Flags])。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "" "The number of particles emitted in one emission cycle (corresponding to the " "[member lifetime]).\n" "[b]Note:[/b] Changing [member amount] will reset the particle emission, " "therefore removing all particles that were already emitted before changing " "[member amount]." msgstr "" "在一个发射周期内排放的粒子数(对应于[member lifetime])。\n" "[b]注意:[/b]改变[member amount]将重置粒子发射,因此,在改变[member amount]之" "前已经排放的所有粒子将被移除。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Initial rotation applied to each particle, in degrees." msgstr "应用于每个粒子的初始旋转(以度为单位)。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's rotation will be animated along this [Curve]." msgstr "每个粒子的旋转将沿此[Curve]进行动画处理。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Rotation randomness ratio." msgstr "旋转随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Initial angular velocity applied to each particle in [i]degrees[/i] per " "second. Sets the speed of rotation of the particle." msgstr "应用于每个粒子的初始角速度,单位为[i]度[/i]每秒。设置粒子的旋转速度。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's angular velocity will vary along this [Curve]." msgstr "每个粒子的角速度将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Angular velocity randomness ratio." msgstr "角速度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Particle animation offset." msgstr "粒子动画偏移量。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's animation offset will vary along this [Curve]." msgstr "每个粒子的动画偏移将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Animation offset randomness ratio." msgstr "动画偏移随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Particle animation speed." msgstr "粒子动画速度。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's animation speed will vary along this [Curve]." msgstr "每个粒子的动画速度将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Animation speed randomness ratio." msgstr "动画速度随机率。" #: doc/classes/CPUParticles.xml msgid "" "Each particle's initial color. To have particle display color in a " "[SpatialMaterial] make sure to set [member SpatialMaterial." "vertex_color_use_as_albedo] to [code]true[/code]." msgstr "" "每个粒子的初始颜色。为了让粒子在 [SpatialMaterial] 中显示颜色,请确保将 " "[member SpatialMaterial.vertex_color_use_as_albedo] 设置为 [code]true[/" "code]。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "" "Each particle's initial color will vary along this [GradientTexture] " "(multiplied with [member color])." msgstr "每个粒子的颜色将沿着这个 [Gradient] 变化(与 [member color] 相乘)。" #: doc/classes/CPUParticles.xml doc/classes/ParticlesMaterial.xml msgid "" "Each particle's color will vary along this [GradientTexture] over its " "lifetime (multiplied with [member color])." msgstr "" "每个粒子的颜色将在其生命周期内随着这个[GradientTexture]变化,即与[member " "color]相乘。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "The rate at which particles lose velocity." msgstr "粒子失去速度的速率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Damping will vary along this [Curve]." msgstr "阻尼将沿着这条[Gradient]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Damping randomness ratio." msgstr "阻尼随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Unit vector specifying the particles' emission direction." msgstr "指定粒子发射方向的单位向量。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "Particle draw order. Uses [enum DrawOrder] values." msgstr "粒子绘制顺序。使用[enum DrawOrder]值。" #: doc/classes/CPUParticles.xml msgid "" "The rectangle's extents if [member emission_shape] is set to [constant " "EMISSION_SHAPE_BOX]." msgstr "" "如果 [member emission_shape] 设置为 [constant EMISSION_SHAPE_BOX],则矩形的范" "围。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Sets the [Color]s to modulate particles by when using [constant " "EMISSION_SHAPE_POINTS] or [constant EMISSION_SHAPE_DIRECTED_POINTS]." msgstr "" "设置[Color]以使用[constant EMISSION_SHAPE_POINTS]或[constant " "EMISSION_SHAPE_DIRECTED_POINTS]来调制粒子。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Sets the direction the particles will be emitted in when using [constant " "EMISSION_SHAPE_DIRECTED_POINTS]." msgstr "设置使用[constant EMISSION_SHAPE_DIRECTED_POINTS]时粒子发射的方向。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Sets the initial positions to spawn particles when using [constant " "EMISSION_SHAPE_POINTS] or [constant EMISSION_SHAPE_DIRECTED_POINTS]." msgstr "" "设置使用[constant EMISSION_SHAPE_POINTS]或[constant " "EMISSION_SHAPE_DIRECTED_POINTS]时产生粒子的初始位置。" #: doc/classes/CPUParticles.xml msgid "" "The axis for the ring shaped emitter when using [constant " "EMISSION_SHAPE_RING]." msgstr "使用[constant EMISSION_SHAPE_RING]时,环形发射器的轴。" #: doc/classes/CPUParticles.xml msgid "" "The height for the ring shaped emitter when using [constant " "EMISSION_SHAPE_RING]." msgstr "使用[constant EMISSION_SHAPE_RING]时,环形发射器的高度。" #: doc/classes/CPUParticles.xml msgid "" "The inner radius for the ring shaped emitter when using [constant " "EMISSION_SHAPE_RING]." msgstr "使用[constant EMISSION_SHAPE_RING]时,环形发射器的内半径。" #: doc/classes/CPUParticles.xml msgid "" "The radius for the ring shaped emitter when using [constant " "EMISSION_SHAPE_RING]." msgstr "使用[constant EMISSION_SHAPE_RING]时,环形发射器的半径。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Particles will be emitted inside this region. See [enum EmissionShape] for " "possible values." msgstr "粒子将在此区域内发射。有关可能的值,请参阅[enum EmissionShape]。" #: doc/classes/CPUParticles.xml msgid "" "The sphere's radius if [enum EmissionShape] is set to [constant " "EMISSION_SHAPE_SPHERE]." msgstr "" "如果[enum EmissionShape]设置为[constant EMISSION_SHAPE_SPHERE],则球体的半" "径。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "If [code]true[/code], particles are being emitted." msgstr "如果[code]true[/code],则正在发射粒子。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles2D.xml msgid "" "How rapidly particles in an emission cycle are emitted. If greater than " "[code]0[/code], there will be a gap in emissions before the next cycle " "begins." msgstr "" "粒子在一个发射周期中的发射速度有多快。如果大于[code]0[/code],则在下一个循环" "开始之前会有排放量缺口。" #: doc/classes/CPUParticles.xml msgid "" "The particle system's frame rate is fixed to a value. For instance, changing " "the value to 2 will make the particles render at 2 frames per second. Note " "this does not slow down the particle system itself." msgstr "" "粒子系统的帧速率固定为一个值。例如,将值更改为2将使粒子以每秒2帧的速度渲染。" "请注意,这不会减慢粒子系统本身的速度。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Align Y axis of particle with the direction of its velocity." msgstr "将粒子的Y轴与其速度方向对齐。" #: doc/classes/CPUParticles.xml doc/classes/ParticlesMaterial.xml msgid "If [code]true[/code], particles will not move on the z axis." msgstr "如果为 [code]true[/code],则粒子将不会在 z 轴上移动。" #: doc/classes/CPUParticles.xml doc/classes/ParticlesMaterial.xml msgid "If [code]true[/code], particles rotate around Y axis by [member angle]." msgstr "如果为 [code]true[/code],则粒子将绕 Y 轴旋转 [member angle]。" #: doc/classes/CPUParticles.xml msgid "" "Amount of [member spread] in Y/Z plane. A value of [code]1[/code] restricts " "particles to X/Z plane." msgstr "" "Y/Z 平面中的 [member spread] 数量。值 [code]1[/code] 将粒子限制在 X/Z 平面" "上。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "" "If [code]true[/code], results in fractional delta calculation which has a " "smoother particles display effect." msgstr "" "如果[code]true[/code],将导致分数增量计算,该显示具有更平滑的粒子显示效果。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Gravity applied to every particle." msgstr "重力作用于每个粒子。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Initial hue variation applied to each particle." msgstr "初始色调变化应用于每个粒子。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's hue will vary along this [Curve]." msgstr "每个粒子的色相都将随之变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Hue variation randomness ratio." msgstr "色相变化随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "" "Initial velocity magnitude for each particle. Direction comes from [member " "spread] and the node's orientation." msgstr "每个粒子的初始速度大小。方向来自[member spread]和节点的方向。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Initial velocity randomness ratio." msgstr "初始速度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "The amount of time each particle will exist (in seconds)." msgstr "每个粒子存在的时间,以秒为单位。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Particle lifetime randomness ratio." msgstr "粒子寿命随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "" "Linear acceleration applied to each particle in the direction of motion." msgstr "沿运动方向施加到每个粒子的线性加速度。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's linear acceleration will vary along this [Curve]." msgstr "每个粒子的线性加速度将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Linear acceleration randomness ratio." msgstr "线性加速度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "" "If [code]true[/code], particles use the parent node's coordinate space. If " "[code]false[/code], they use global coordinates." msgstr "" "如果[code]true[/code],则粒子将使用父节点的坐标空间。如果[code]false[/code]," "则使用全局坐标。" #: doc/classes/CPUParticles.xml msgid "" "The [Mesh] used for each particle. If [code]null[/code], particles will be " "spheres." msgstr "每个粒子使用的[Mesh]。如果[code]null[/code],则粒子将是球形。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles2D.xml msgid "" "If [code]true[/code], only one emission cycle occurs. If set [code]true[/" "code] during a cycle, emission will stop at the cycle's end." msgstr "" "如果 [code]true[/code],则只发生一个排放周期。如果在周期内设置 [code]true[/" "code],则排放将在周期结束时停止。" #: doc/classes/CPUParticles.xml msgid "" "Orbital velocity applied to each particle. Makes the particles circle around " "origin in the local XY plane. Specified in number of full rotations around " "origin per second.\n" "This property is only available when [member flag_disable_z] is [code]true[/" "code]." msgstr "" "应用于每个粒子的轨道速度。使粒子在局部XY平面上绕原点旋转。用每秒绕原点旋转的" "次数来表示。\n" "只有当[member flag_disable_z]为 [code]true[/code] 时,此属性才可用。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's orbital velocity will vary along this [Curve]." msgstr "每个粒子的轨道速度将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Orbital velocity randomness ratio." msgstr "轨道速度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles2D.xml msgid "Particle system starts as if it had already run for this many seconds." msgstr "粒子系统启动时就好像已经运行了这么多秒一样。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "" "Radial acceleration applied to each particle. Makes particle accelerate away " "from origin." msgstr "径向加速度应用于每个粒子。使粒子加速远离原点。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's radial acceleration will vary along this [Curve]." msgstr "每个粒子的径向加速度将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Radial acceleration randomness ratio." msgstr "径向加速度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles2D.xml msgid "Emission lifetime randomness ratio." msgstr "发射寿命随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Initial scale applied to each particle." msgstr "初始比例应用于每个粒子。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's scale will vary along this [Curve]." msgstr "每个粒子的比例将随着[Curve]的变化而变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Scale randomness ratio." msgstr "标度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles2D.xml msgid "" "Particle system's running speed scaling ratio. A value of [code]0[/code] can " "be used to pause the particles." msgstr "粒子系统的运行速度缩放比例。值[code]0[/code]可用于暂停粒子。" #: doc/classes/CPUParticles.xml msgid "" "Each particle's initial direction range from [code]+spread[/code] to [code]-" "spread[/code] degrees. Applied to X/Z plane and Y/Z planes." msgstr "" "每个粒子的初始方向范围为[code]+spread[/code]至[code]-spread[/code]度。适用于" "X/Z平面和Y/Z平面。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "" "Tangential acceleration applied to each particle. Tangential acceleration is " "perpendicular to the particle's velocity giving the particles a swirling " "motion." msgstr "" "切向加速度应用于每个粒子。切向加速度垂直于粒子的速度,使粒子产生涡旋运动。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Each particle's tangential acceleration will vary along this [Curve]." msgstr "每个粒子的切向加速度将沿此[Curve]变化。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Tangential acceleration randomness ratio." msgstr "切向加速度随机率。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "Particles are drawn in the order emitted." msgstr "粒子按发射顺序绘制。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "Particles are drawn in order of remaining lifetime." msgstr "按照剩余寿命的顺序绘制粒子。" #: doc/classes/CPUParticles.xml doc/classes/Particles.xml msgid "Particles are drawn in order of depth." msgstr "粒子按深度顺序绘制。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set initial velocity properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置初始速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set angular velocity properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置角速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set orbital velocity properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置轨道速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set linear acceleration properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置线性加速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set radial acceleration properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置径向加速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set tangential acceleration properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置切向加速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set damping properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置阻尼属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set angle properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置角度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set scale properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置缩放属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set hue variation properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置色调变化属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set animation speed properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置动画速度属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_curve] to set animation offset properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_curve] 中设置动画偏移属性。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Represents the size of the [enum Parameter] enum." msgstr "表示[enum Parameter]枚举的大小。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "Use with [method set_particle_flag] to set [member flag_align_y]." msgstr "用于在 [method set_particle_flag] 中设置 [member flag_align_y]。" #: doc/classes/CPUParticles.xml msgid "Use with [method set_particle_flag] to set [member flag_rotate_y]." msgstr "用于在 [method set_particle_flag] 中设置 [member flag_rotate_y]。" #: doc/classes/CPUParticles.xml msgid "Use with [method set_particle_flag] to set [member flag_disable_z]." msgstr "用于在 [method set_particle_flag] 中设置 [member flag_disable_z]。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/GeometryInstance.xml doc/classes/ParticlesMaterial.xml #: doc/classes/SpatialMaterial.xml msgid "Represents the size of the [enum Flags] enum." msgstr "表示[enum Flags]枚举的大小。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "All particles will be emitted from a single point." msgstr "所有粒子将从一个点发射。" #: doc/classes/CPUParticles.xml doc/classes/ParticlesMaterial.xml msgid "Particles will be emitted in the volume of a sphere." msgstr "粒子将在球体的体积中发射。" #: doc/classes/CPUParticles.xml doc/classes/ParticlesMaterial.xml msgid "Particles will be emitted in the volume of a box." msgstr "粒子将在盒子的体积中发射。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Particles will be emitted at a position chosen randomly among [member " "emission_points]. Particle color will be modulated by [member " "emission_colors]." msgstr "" "粒子将在[member emission_points]中随机选择的位置发射。粒子颜色将通过[member " "emission_colors]进行调制。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml msgid "" "Particles will be emitted at a position chosen randomly among [member " "emission_points]. Particle velocity and rotation will be set based on " "[member emission_normals]. Particle color will be modulated by [member " "emission_colors]." msgstr "" "粒子将在[member emission_points]中随机选择的位置发射。粒子的速度和旋转将基于" "[member emission_normals]进行设置。粒子颜色将通过[member emission_colors]进行" "调制。" #: doc/classes/CPUParticles.xml doc/classes/ParticlesMaterial.xml msgid "Particles will be emitted in a ring or cylinder." msgstr "粒子将以环形或圆柱的形式发射出来。" #: doc/classes/CPUParticles.xml doc/classes/CPUParticles2D.xml #: doc/classes/ParticlesMaterial.xml msgid "Represents the size of the [enum EmissionShape] enum." msgstr "表示[enum EmissionShape]枚举的大小。" #: doc/classes/CPUParticles2D.xml msgid "CPU-based 2D particle emitter." msgstr "基于 CPU 的 2D 粒子发射器。" #: doc/classes/CPUParticles2D.xml msgid "" "CPU-based 2D particle node used to create a variety of particle systems and " "effects.\n" "See also [Particles2D], which provides the same functionality with hardware " "acceleration, but may not run on older devices.\n" "[b]Note:[/b] Unlike [Particles2D], the visibility rect is generated on-the-" "fly and doesn't need to be configured by the user." msgstr "" "基于 CPU 的 2D 粒子节点,用于创建各种粒子系统和效果。\n" "参阅 [Particles2D],它通过硬件加速提供相同的功能,但可能无法在旧设备上运" "行。\n" "[b]注意:[/b]其与 [Particles2D] 不同,可见性矩形是即时生成的,不需要用户配" "置。" #: doc/classes/CPUParticles2D.xml msgid "" "Sets this node's properties to match a given [Particles2D] node with an " "assigned [ParticlesMaterial]." msgstr "" "设置此节点的属性,以将给定的 [Particles2D] 节点与指定的 [ParticlesMaterial] " "匹配。" #: doc/classes/CPUParticles2D.xml msgid "" "Each particle's initial color. If [member texture] is defined, it will be " "multiplied by this color." msgstr "每个粒子的初始颜色。如果定义了 [member texture],它将乘以该颜色。" #: doc/classes/CPUParticles2D.xml msgid "" "Each particle's color will vary along this [Gradient] (multiplied with " "[member color])." msgstr "每个粒子的颜色将随着这个[Gradient]变化,即与[member color]相乘。" #: doc/classes/CPUParticles2D.xml msgid "" "The rectangle's extents if [member emission_shape] is set to [constant " "EMISSION_SHAPE_RECTANGLE]." msgstr "" "如果 [member emission_shape] 设置为 [constant EMISSION_SHAPE_RECTANGLE],则矩" "形的范围。" #: doc/classes/CPUParticles2D.xml msgid "" "The sphere's radius if [member emission_shape] is set to [constant " "EMISSION_SHAPE_SPHERE]." msgstr "" "如果 [member emission_shape] 设置为 [constant EMISSION_SHAPE_SPHERE],则球体" "的半径。" #: doc/classes/CPUParticles2D.xml doc/classes/Particles.xml #: doc/classes/Particles2D.xml msgid "" "The particle system's frame rate is fixed to a value. For instance, changing " "the value to 2 will make the particles render at 2 frames per second. Note " "this does not slow down the simulation of the particle system itself." msgstr "" "粒子系统的帧速率固定为一个值。例如,将值更改为2将使粒子以每秒2帧的速度渲染。" "注意,这不会减慢粒子系统本身的仿真速度。" #: doc/classes/CPUParticles2D.xml doc/classes/Particles2D.xml msgid "" "Normal map to be used for the [member texture] property.\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "用于 [member texture] 属性的法线贴图。\n" "[b]注意:[/b]Godot 希望法线贴图使用 X+、Y- 和 Z+ 坐标。请参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]该页[/url],了解流行" "引擎所期望的法线贴图坐标的比较。" #: doc/classes/CPUParticles2D.xml msgid "" "Orbital velocity applied to each particle. Makes the particles circle around " "origin. Specified in number of full rotations around origin per second." msgstr "" "应用于每个粒子的轨道速度。使粒子围绕原点旋转。以每秒绕原点的完整旋转数指定。" #: doc/classes/CPUParticles2D.xml doc/classes/ParticlesMaterial.xml msgid "" "Each particle's initial direction range from [code]+spread[/code] to [code]-" "spread[/code] degrees." msgstr "" "每个粒子的初始方向范围为[code]+spread[/code] 到 [code]-spread[/code]度。" #: doc/classes/CPUParticles2D.xml doc/classes/Particles2D.xml msgid "Particle texture. If [code]null[/code], particles will be squares." msgstr "粒子纹理。如果[code]null[/code],则粒子将为正方形。" #: doc/classes/CPUParticles2D.xml msgid "Present for consistency with 3D particle nodes, not used in 2D." msgstr "为了与3D粒子节点保持一致而存在,在2D中不使用。" #: doc/classes/CPUParticles2D.xml msgid "" "Particles will be emitted on the surface of a sphere flattened to two " "dimensions." msgstr "粒子将在展平为二维的球体表面上发射。" #: doc/classes/CPUParticles2D.xml msgid "Particles will be emitted in the area of a rectangle." msgstr "粒子将在矩形区域内发射。" #: doc/classes/Crypto.xml msgid "Access to advanced cryptographic functionalities." msgstr "访问高级加密功能。" #: doc/classes/Crypto.xml msgid "" "The Crypto class allows you to access some more advanced cryptographic " "functionalities in Godot.\n" "For now, this includes generating cryptographically secure random bytes, RSA " "keys and self-signed X509 certificates generation, asymmetric key encryption/" "decryption, and signing/verification.\n" "[codeblock]\n" "extends Node\n" "\n" "var crypto = Crypto.new()\n" "var key = CryptoKey.new()\n" "var cert = X509Certificate.new()\n" "\n" "func _ready():\n" " # Generate new RSA key.\n" " key = crypto.generate_rsa(4096)\n" " # Generate new self-signed certificate with the given key.\n" " cert = crypto.generate_self_signed_certificate(key, \"CN=mydomain.com," "O=My Game Company,C=IT\")\n" " # Save key and certificate in the user folder.\n" " key.save(\"user://generated.key\")\n" " cert.save(\"user://generated.crt\")\n" " # Encryption\n" " var data = \"Some data\"\n" " var encrypted = crypto.encrypt(key, data.to_utf8())\n" " # Decryption\n" " var decrypted = crypto.decrypt(key, encrypted)\n" " # Signing\n" " var signature = crypto.sign(HashingContext.HASH_SHA256, data." "sha256_buffer(), key)\n" " # Verifying\n" " var verified = crypto.verify(HashingContext.HASH_SHA256, data." "sha256_buffer(), signature, key)\n" " # Checks\n" " assert(verified)\n" " assert(data.to_utf8() == decrypted)\n" "[/codeblock]\n" "[b]Note:[/b] Not available in HTML5 exports." msgstr "" "Crypto类允许您访问Godot中的一些更高级的加密功能。\n" "目前,这包括生成加密安全的随机字节,RSA密钥和自签名X509证书生成,非对称密钥加" "密/解密以及签名/验证。\n" "[codeblock]\n" "extends Node\n" "\n" "var crypto = Crypto.new()\n" "var key = CryptoKey.new()\n" "var cert = X509Certificate.new()\n" "\n" "func _ready():\n" " # Generate new RSA key.\n" " key = crypto.generate_rsa(4096)\n" " # Generate new self-signed certificate with the given key.\n" " cert = crypto.generate_self_signed_certificate(key, \"CN=mydomain.com," "O=My Game Company,C=IT\")\n" " # Save key and certificate in the user folder.\n" " key.save(\"user://generated.key\")\n" " cert.save(\"user://generated.crt\")\n" " # Encryption\n" " var data = \"Some data\"\n" " var encrypted = crypto.encrypt(key, data.to_utf8())\n" " # Decryption\n" " var decrypted = crypto.decrypt(key, encrypted)\n" " # Signing\n" " var signature = crypto.sign(HashingContext.HASH_SHA256, data." "sha256_buffer(), key)\n" " # Verifying\n" " var verified = crypto.verify(HashingContext.HASH_SHA256, data." "sha256_buffer(), signature, key)\n" " # Checks\n" " assert(verified)\n" " assert(data.to_utf8() == decrypted)\n" "[/codeblock]\n" "[b]注意:[/b]在HTML5导出中不可用。" #: doc/classes/Crypto.xml msgid "" "Compares two [PoolByteArray]s for equality without leaking timing " "information in order to prevent timing attacks.\n" "See [url=https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-" "string-comparison-with-double-hmac-strategy]this blog post[/url] for more " "information." msgstr "" "比较两个[PoolByteArray]是否相等,而不泄露时间信息,以防止计时攻击。\n" "更多信息参阅[url=https://paragonie.com/blog/2015/11/preventing-timing-" "attacks-on-string-comparison-with-double-hmac-strategy]这篇博文[/url]。" #: doc/classes/Crypto.xml msgid "" "Decrypt the given [code]ciphertext[/code] with the provided private " "[code]key[/code].\n" "[b]Note:[/b] The maximum size of accepted ciphertext is limited by the key " "size." msgstr "" "用提供的私人[code]key[/code]解密给定的[code]ciphertext[/code]。\n" "[b]注意:[/b]所接受的密码文本的最大尺寸受到密钥大小限制。" #: doc/classes/Crypto.xml msgid "" "Encrypt the given [code]plaintext[/code] with the provided public [code]key[/" "code].\n" "[b]Note:[/b] The maximum size of accepted plaintext is limited by the key " "size." msgstr "" "用提供的公钥 [code]key[/code] 加密给定的[code]plaintext[/code]。\n" "[b]注意:[/b]接受的明文的最大尺寸受到密钥大小的限制。" #: doc/classes/Crypto.xml msgid "" "Generates a [PoolByteArray] of cryptographically secure random bytes with " "given [code]size[/code]." msgstr "生成具有给定 [code]size[/code] 的加密安全随机字节的 [PoolByteArray]。" #: doc/classes/Crypto.xml msgid "" "Generates an RSA [CryptoKey] that can be used for creating self-signed " "certificates and passed to [method StreamPeerSSL.accept_stream]." msgstr "" "生成可用于创建自签名证书并传递给[method StreamPeerSSL.accept_stream]的RSA " "[CryptoKey]。" #: doc/classes/Crypto.xml msgid "" "Generates a self-signed [X509Certificate] from the given [CryptoKey] and " "[code]issuer_name[/code]. The certificate validity will be defined by " "[code]not_before[/code] and [code]not_after[/code] (first valid date and " "last valid date). The [code]issuer_name[/code] must contain at least " "\"CN=\" (common name, i.e. the domain name), \"O=\" (organization, i.e. your " "company name), \"C=\" (country, i.e. 2 lettered ISO-3166 code of the country " "the organization is based in).\n" "A small example to generate an RSA key and a X509 self-signed certificate.\n" "[codeblock]\n" "var crypto = Crypto.new()\n" "# Generate 4096 bits RSA key.\n" "var key = crypto.generate_rsa(4096)\n" "# Generate self-signed certificate using the given key.\n" "var cert = crypto.generate_self_signed_certificate(key, \"CN=example.com,O=A " "Game Company,C=IT\")\n" "[/codeblock]" msgstr "" "根据给定的[CryptoKey]和[code]issuer_name[/code]生成自签名的" "[X509Certificate]。证书的有效性将由[code]not_before[/code]和[code]not_after[/" "code](第一个有效日期和最后一个有效日期)定义。 [code]issuer_name[/code]必须" "至少包含“ CN =“(通用名称,即域名),“ O =”(组织,即您的公司名称),“ C " "=“(国家,即2个字母的ISO) -3166组织所在国家/地区的代码)。\n" "一个生成RSA密钥和X509自签名证书的小示例。\n" "[codeblock]\n" "var crypto = Crypto.new()\n" "# Generate 4096 bits RSA key.\n" "var key = crypto.generate_rsa(4096)\n" "# Generate self-signed certificate using the given key.\n" "var cert = crypto.generate_self_signed_certificate(key, \"CN=example.com,O=A " "Game Company,C=IT\")\n" "[/codeblock]" #: doc/classes/Crypto.xml msgid "" "Generates an [url=https://en.wikipedia.org/wiki/HMAC]HMAC[/url] digest of " "[code]msg[/code] using [code]key[/code]. The [code]hash_type[/code] " "parameter is the hashing algorithm that is used for the inner and outer " "hashes.\n" "Currently, only [constant HashingContext.HASH_SHA256] and [constant " "HashingContext.HASH_SHA1] are supported." msgstr "" "使用 [code]key[/code] 生成 [code]msg[/code] 的 [url=https://en.wikipedia.org/" "wiki/HMAC]HMAC[/url] 摘要。 [code]hash_type[/code] 参数是用于内部和外部哈希的" "哈希算法。\n" "目前仅支持 [constant HashingContext.HASH_SHA256] 和 [constant HashingContext." "HASH_SHA1]。" #: doc/classes/Crypto.xml msgid "" "Sign a given [code]hash[/code] of type [code]hash_type[/code] with the " "provided private [code]key[/code]." msgstr "" "使用提供的私有[code]key[/code]对类型为[code]hash_type[/code]的给定的" "[code]hash[/code]进行签名。" #: doc/classes/Crypto.xml msgid "" "Verify that a given [code]signature[/code] for [code]hash[/code] of type " "[code]hash_type[/code] against the provided public [code]key[/code]." msgstr "" "对照提供的公共[code]key[/code]验证类型为[code]hash_type[/code]的" "[code]hash_type[/code]的给定[code]签名[/code]。" #: doc/classes/CryptoKey.xml msgid "A cryptographic key (RSA)." msgstr "加密密钥(RSA)。" #: doc/classes/CryptoKey.xml msgid "" "The CryptoKey class represents a cryptographic key. Keys can be loaded and " "saved like any other [Resource].\n" "They can be used to generate a self-signed [X509Certificate] via [method " "Crypto.generate_self_signed_certificate] and as private key in [method " "StreamPeerSSL.accept_stream] along with the appropriate certificate." msgstr "" "CryptoKey 类表示加密密钥。密钥可以像其他任何 [Resource] 一样进行加载和保" "存。\n" "密钥可以通过 [method Crypto.generate_self_signed_certificate] 生成自签名 " "[X509Certificate],并可作为 [method StreamPeerSSL.accept_stream] 中的私钥以及" "相应的证书。" #: doc/classes/CryptoKey.xml msgid "" "Return [code]true[/code] if this CryptoKey only has the public part, and not " "the private one." msgstr "" "如果此CryptoKey仅具有公共部分,而没有私有部分,则返回 [code]true[/code]。" #: doc/classes/CryptoKey.xml msgid "" "Loads a key from [code]path[/code]. If [code]public_only[/code] is " "[code]true[/code], only the public key will be loaded.\n" "[b]Note:[/b] [code]path[/code] should be a \"*.pub\" file if " "[code]public_only[/code] is [code]true[/code], a \"*.key\" file otherwise." msgstr "" "从[code]path[/code]加载一个密钥。如果[code]public_only[/code]是[code]true[/" "code],将只加载公钥。\n" "[b]注意:[/b]如果 [code]public_only[/code] 为 [code]true[/code],则 " "[code]path[/code] 应该是一个“*.pub”文件,否则是“*.key”文件。" #: doc/classes/CryptoKey.xml msgid "" "Loads a key from the given [code]string[/code]. If [code]public_only[/code] " "is [code]true[/code], only the public key will be loaded." msgstr "" "从给定的[code]string[/code]加载密钥。如果[code]public_only[/code]为 " "[code]true[/code],则仅会加载公共密钥。" #: doc/classes/CryptoKey.xml msgid "" "Saves a key to the given [code]path[/code]. If [code]public_only[/code] is " "[code]true[/code], only the public key will be saved.\n" "[b]Note:[/b] [code]path[/code] should be a \"*.pub\" file if " "[code]public_only[/code] is [code]true[/code], a \"*.key\" file otherwise." msgstr "" "将密钥保存到给定的 [code]path[/code]。如果 [code]public_only[/code] 为 " "[code]true[/code],则只会保存公钥。\n" "[b]注意:[/b]如果[code]public_only[/code]是[code]true[/code],则[code]path[/" "code]应该是一个\"*.pub\"文件,否则是\"*.key\"文件。" #: doc/classes/CryptoKey.xml msgid "" "Returns a string containing the key in PEM format. If [code]public_only[/" "code] is [code]true[/code], only the public key will be included." msgstr "" "返回包含PEM格式的密钥的字符串。如果[code]public_only[/code]为 [code]true[/" "code],则仅包含公共密钥。" #: modules/csg/doc_classes/CSGBox.xml msgid "A CSG Box shape." msgstr "CSG 盒子形状。" #: modules/csg/doc_classes/CSGBox.xml msgid "" "This node allows you to create a box for use with the CSG system.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "你可以使用该节点在 CSG 系统中创建长方体。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGBox.xml modules/csg/doc_classes/CSGCombiner.xml #: modules/csg/doc_classes/CSGCylinder.xml modules/csg/doc_classes/CSGMesh.xml #: modules/csg/doc_classes/CSGPolygon.xml #: modules/csg/doc_classes/CSGPrimitive.xml #: modules/csg/doc_classes/CSGShape.xml modules/csg/doc_classes/CSGSphere.xml #: modules/csg/doc_classes/CSGTorus.xml msgid "Prototyping levels with CSG" msgstr "使用 CSG 设计关卡原型" #: modules/csg/doc_classes/CSGBox.xml msgid "Depth of the box measured from the center of the box." msgstr "盒子的深度,从盒子的中心开始测量。" #: modules/csg/doc_classes/CSGBox.xml msgid "Height of the box measured from the center of the box." msgstr "盒子的高度,从盒子的中心开始测量。" #: modules/csg/doc_classes/CSGBox.xml msgid "The material used to render the box." msgstr "用于渲染盒子的材质。" #: modules/csg/doc_classes/CSGBox.xml msgid "Width of the box measured from the center of the box." msgstr "盒子的宽度,从盒子的中心开始测量。" #: modules/csg/doc_classes/CSGCombiner.xml msgid "A CSG node that allows you to combine other CSG modifiers." msgstr "允许您组合其他 CSG 修改器的 CSG 节点。" #: modules/csg/doc_classes/CSGCombiner.xml msgid "" "For complex arrangements of shapes, it is sometimes needed to add structure " "to your CSG nodes. The CSGCombiner node allows you to create this structure. " "The node encapsulates the result of the CSG operations of its children. In " "this way, it is possible to do operations on one set of shapes that are " "children of one CSGCombiner node, and a set of separate operations on a " "second set of shapes that are children of a second CSGCombiner node, and " "then do an operation that takes the two end results as its input to create " "the final shape.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "对于复杂的形状排列,有时需要向 CSG 节点添加结构体。CSGCombiner 节点允许你创建" "这种结构体。该节点封装了其子节点的 CSG 操作的结果。通过这种方式,可以对作为一" "个 CSGCombiner 节点的子节点的一组形状进行操作,并对作为第二个 CSGCombiner 节" "点的子节点的第二组形状进行单独的操作,然后进行操作,将两个最终结果作为其输入" "来创建最终形状。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "A CSG Cylinder shape." msgstr "CSG 圆柱形状。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "" "This node allows you to create a cylinder (or cone) for use with the CSG " "system.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "你可以使用该节点在 CSG 系统中创建圆柱体(或圆锥体)。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "" "If [code]true[/code] a cone is created, the [member radius] will only apply " "to one side." msgstr "如果创建了[code]true[/code]圆锥,则[member radius]将仅应用于一侧。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "The height of the cylinder." msgstr "圆柱体的高度。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "The material used to render the cylinder." msgstr "用于渲染圆柱体的材质。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "The radius of the cylinder." msgstr "圆柱体的半径。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "" "The number of sides of the cylinder, the higher this number the more detail " "there will be in the cylinder." msgstr "圆柱体的边数越多,圆柱体的细节越多。" #: modules/csg/doc_classes/CSGCylinder.xml msgid "" "If [code]true[/code] the normals of the cylinder are set to give a smooth " "effect making the cylinder seem rounded. If [code]false[/code] the cylinder " "will have a flat shaded look." msgstr "" "如果[code]true[/code],则将圆柱体的法线设置为具有平滑效果,使圆柱体看起来是圆" "形的。如果[code]false[/code],则圆柱体将具有平坦的阴影表现。" #: modules/csg/doc_classes/CSGMesh.xml msgid "A CSG Mesh shape that uses a mesh resource." msgstr "使用网格资源的CSG网格形状。" #: modules/csg/doc_classes/CSGMesh.xml msgid "" "This CSG node allows you to use any mesh resource as a CSG shape, provided " "it is closed, does not self-intersect, does not contain internal faces and " "has no edges that connect to more than two faces. See also [CSGPolygon] for " "drawing 2D extruded polygons to be used as CSG nodes.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "你可以使用该节点将任何网格资源用作 CSG 形状,只要该网格是闭合的、没有自我贯" "穿、不包含内部面、每条边所连接的面不超过两个。要将 2D 多边形挤出用作 CSG 节" "点,请参阅 [CSGPolygon]。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGMesh.xml msgid "The [Material] used in drawing the CSG shape." msgstr "用于绘制 CSG 形状的 [Material]。" #: modules/csg/doc_classes/CSGMesh.xml msgid "" "The [Mesh] resource to use as a CSG shape.\n" "[b]Note:[/b] When using an [ArrayMesh], avoid meshes with vertex normals " "unless a flat shader is required. By default, CSGMesh will ignore the mesh's " "vertex normals and use a smooth shader calculated using the faces' normals. " "If a flat shader is required, ensure that all faces' vertex normals are " "parallel." msgstr "" "用来作为CSG形状的[Mesh]资源。\n" "[b]注意:[/b]当使用[ArrayMesh]时,除非需要一个平面着色器,否则要避免使用顶点" "法线的网格。默认情况下,CSGMesh会忽略网格的顶点法线,并使用面的法线计算平整的" "着色器。如果需要使用平面着色器,请确保所有面的顶点法线是平行的。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "Extrudes a 2D polygon shape to create a 3D mesh." msgstr "拉伸2D多边形形状以创建3D网格。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "An array of 2D points is extruded to quickly and easily create a variety of " "3D meshes. See also [CSGMesh] for using 3D meshes as CSG nodes.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "将 2D 顶点数组快速挤出,创建各种 3D 网格。要将 3D 网格用作 CSG 节点,请参阅 " "[CSGMesh]。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_DEPTH], the depth of the extrusion." msgstr "当[member mode]为[constant MODE_DEPTH]时,挤出的深度。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "Material to use for the resulting mesh. The UV maps the top half of the " "material to the extruded shape (U along the the length of the extrusions and " "V around the outline of the [member polygon]), the bottom-left quarter to " "the front end face, and the bottom-right quarter to the back end face." msgstr "" "用于生成的网格的材质。UV将材质的上半部分映射到挤出的形状,即U沿挤出物的长度," "V围绕 [member polygon]的轮廓,左下角的四分之一映射到前端面,右下角的四分之一" "映射到后端面。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "The [member mode] used to extrude the [member polygon]." msgstr "用于挤出 [member polygon] 的 [member mode] 。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], by default, the top half of the " "[member material] is stretched along the entire length of the extruded " "shape. If [code]false[/code] the top half of the material is repeated every " "step of the extrusion." msgstr "" "当 [member mode] 为[constant MODE_PATH]时,默认情况下, [member material]的上" "半部分会沿着挤出形状的整个长度被拉伸。如果[code]false[/code],挤出的每一步都" "会重复材质的上半部分。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], the path interval or ratio of " "path points to extrusions." msgstr "当[member mode] 为[constant MODE_PATH]时,路径间隔或路径点比例挤出。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], this will determine if the " "interval should be by distance ([constant PATH_INTERVAL_DISTANCE]) or " "subdivision fractions ([constant PATH_INTERVAL_SUBDIVIDE])." msgstr "" "当 [member mode] 为 [constant MODE_PATH] 时,这将确定间隔是按距离([constant " "PATH_INTERVAL_DISTANCE])还是细分分数([constant PATH_INTERVAL_SUBDIVIDE])。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], if [code]true[/code] the ends of " "the path are joined, by adding an extrusion between the last and first " "points of the path." msgstr "" "当 [member mode] 为 [constant MODE_PATH] 时,如果 [code]true[/code] 路径的两" "端会被连接起来,在路径的最后一个点和第一个点之间添加挤出。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], if [code]true[/code] the " "[Transform] of the [CSGPolygon] is used as the starting point for the " "extrusions, not the [Transform] of the [member path_node]." msgstr "" "当[member mode]为[constant MODE_PATH]时,如果[code]true[/code],则使用" "[CSGPolygon]的[Transform]作为挤出的起点,而不是[member path_node]的" "[Transform]。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], the location of the [Path] " "object used to extrude the [member polygon]." msgstr "" "[member mode] 为[constant MODE_PATH]时,用于挤出 [member polygon] 的 [Path] " "对象的坐标。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], the [enum PathRotation] method " "used to rotate the [member polygon] as it is extruded." msgstr "" "当 [member mode] 为 [constant MODE_PATH] 时,[enum PathRotation] 方法用于在挤" "出时旋转[member polygon]。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], extrusions that are less than " "this angle, will be merged together to reduce polygon count." msgstr "" "当 [member mode] 为 [constant MODE_PATH] 时,小于此角度的挤出将合并在一起以减" "少多边形数量。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_PATH], this is the distance along the " "path, in meters, the texture coordinates will tile. When set to 0, texture " "coordinates will match geometry exactly with no tiling." msgstr "" "当[member mode] 为[constant MODE_PATH] 时,这是纹理坐标沿着路径的距离,以米为" "单位,将进行平铺。当设置为0时,纹理坐标将与几何图形完全匹配,没有平铺。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "The point array that defines the 2D polygon that is extruded. This can be a " "convex or concave polygon with 3 or more points. The polygon must [i]not[/i] " "have any intersecting edges. Otherwise, triangulation will fail and no mesh " "will be generated.\n" "[b]Note:[/b] If only 1 or 2 points are defined in [member polygon], no mesh " "will be generated." msgstr "" "顶点数组,用于定义要挤出的 2D 多边形。需要包含 3 个或更多顶点,可以是凸多边形" "也可以是凹多边形。该多边形中[i]不能[/i]存在相交的边。否则,三角形化会失败,不" "会生成任何网格。\n" "[b]注意:[/b]如果 [member polygon] 中只定义了 1 个或 2 个顶点,则不会生成网" "格。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "If [code]true[/code], applies smooth shading to the extrusions." msgstr "如果[code]true[/code],则对挤出应用平滑着色。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_SPIN], the total number of degrees the " "[member polygon] is rotated when extruding." msgstr "" "当[member mode]为[constant MODE_SPIN],[member polygon]在挤出时旋转的总度数。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is [constant MODE_SPIN], the number of extrusions made." msgstr "[member mode] 为 [constant MODE_SPIN] 时,挤出的次数。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "The [member polygon] shape is extruded along the negative Z axis." msgstr "[member polygon] 形状沿负 Z 轴挤出。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "The [member polygon] shape is extruded by rotating it around the Y axis." msgstr "[member polygon]形状通过围绕Y轴旋转来挤出。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "The [member polygon] shape is extruded along the [Path] specified in [member " "path_node]." msgstr "[member polygon] 形状沿 [member path_node] 中指定的 [Path] 挤出。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "The [member polygon] shape is not rotated.\n" "[b]Note:[/b] Requires the path's Z coordinates to continually decrease to " "ensure viable shapes." msgstr "" "[member polygon] 多边形的形状不会被旋转。\n" "[b]注意:[/b]要求路径的Z坐标不断减少,以确保可行的形状。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "The [member polygon] shape is rotated along the path, but it is not rotated " "around the path axis.\n" "[b]Note:[/b] Requires the path's Z coordinates to continually decrease to " "ensure viable shapes." msgstr "" "[member polygon] 多边形的形状沿路径旋转,但不绕路径轴旋转。\n" "[b]注意:[/b]需要路径的 Z 坐标不断减小以确保可行的形状。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "The [member polygon] shape follows the path and its rotations around the " "path axis." msgstr "[member polygon] 多边形的形状跟随路径及其围绕路径轴的旋转。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is set to [constant MODE_PATH], [member path_interval] " "will determine the distance, in meters, each interval of the path will " "extrude." msgstr "" "当 [member mode] 被设置为路径[constant MODE_PATH] 时,[member path_interval] " "将决定路径的每个间隔将被挤出的距离,单位为米。" #: modules/csg/doc_classes/CSGPolygon.xml msgid "" "When [member mode] is set to [constant MODE_PATH], [member path_interval] " "will subdivide the polygons along the path." msgstr "" "当 [member mode] 被设置为路径 [constant MODE_PATH]时,[member path_interval] " "将沿着路径细分多边形。" #: modules/csg/doc_classes/CSGPrimitive.xml msgid "Base class for CSG primitives." msgstr "CSG 图元的基类。" #: modules/csg/doc_classes/CSGPrimitive.xml msgid "" "Parent class for various CSG primitives. It contains code and functionality " "that is common between them. It cannot be used directly. Instead use one of " "the various classes that inherit from it.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "各种 CSG 图元的父类,包含了它们所需的公共代码和功能。无法直接使用这个类,请使" "用继承它的各种类。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGPrimitive.xml msgid "Invert the faces of the mesh." msgstr "反转网格的面。" #: modules/csg/doc_classes/CSGShape.xml msgid "The CSG base class." msgstr "CSG基类。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "This is the CSG base class that provides CSG operation support to the " "various CSG nodes in Godot.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "为 Godot 中的各种 CSG 节点提供 CSG 操作支持的 CSG 基类。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGShape.xml doc/classes/RayCast2D.xml #: doc/classes/SoftBody.xml msgid "Returns an individual bit on the collision mask." msgstr "返回碰撞遮罩上的单个的个体。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "Returns an [Array] with two elements, the first is the [Transform] of this " "node and the second is the root [Mesh] of this node. Only works when this " "node is the root shape." msgstr "" "返回带有两个元素的[Array],第一个是此节点的[Transform],第二个是此节点的根" "[Mesh]。仅当此节点为根形时才有效。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "Returns [code]true[/code] if this is a root shape and is thus the object " "that is rendered." msgstr "如果这是根形状,因此是渲染的对象,则返回 [code]true[/code]。" #: modules/csg/doc_classes/CSGShape.xml doc/classes/SoftBody.xml msgid "" "Sets individual bits on the layer mask. Use this if you only need to change " "one layer's value." msgstr "设置图层掩码上的各个位。如果只需要更改一层的值,请使用此选项。" #: modules/csg/doc_classes/CSGShape.xml doc/classes/SoftBody.xml msgid "" "Sets individual bits on the collision mask. Use this if you only need to " "change one layer's value." msgstr "设置碰撞掩码上的各个位。如果只需要更改一层的值,请使用此选项。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "Calculate tangents for the CSG shape which allows the use of normal maps. " "This is only applied on the root shape, this setting is ignored on any child." msgstr "" "计算允许使用法线贴图的CSG形状的切线。这仅适用于根部形状,此设置将在所有子级上" "均被忽略。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "The physics layers this area is in.\n" "Collidable objects can exist in any of 32 different layers. These layers " "work like a tagging system, and are not visual. A collidable can use these " "layers to select with which objects it can collide, using the collision_mask " "property.\n" "A contact is detected if object A is in any of the layers that object B " "scans, or object B is in any layer scanned by object A. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "这个区域所处的物理层。\n" "可碰撞的物体可以存在于 32 个不同层中的任何一个。这些层的工作就像一个标签系" "统,而不是可视化的。一个可碰撞物体可以使用这些层来选择它可以与哪些物体碰撞," "使用 collision_mask 属性。\n" "如果对象 A 在对象 B 所扫描的任何层中,或者对象 B 在对象 A 所扫描的任何层中," "就会检测到接触。详情请参阅文档中的[url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "The physics layers this CSG shape scans for collisions. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "此 CSG 形状将要扫描碰撞的物理层。详情请参阅文档中的[url=$DOCS_URL/tutorials/" "physics/physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》" "[/url]。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "The operation that is performed on this shape. This is ignored for the first " "CSG child node as the operation is between this node and the previous child " "of this nodes parent." msgstr "" "在此形状上执行的操作。对于第一个CSG子节点,将忽略此操作,因为操作是在此节点与" "该节点父级的上一个子级之间进行的。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "Snap makes the mesh snap to a given distance so that the faces of two meshes " "can be perfectly aligned. A lower value results in greater precision but may " "be harder to adjust." msgstr "" "捕捉使网格捕捉到给定的距离,以便两个网格的面可以完美对齐。较低的值会导致较高" "的精度,但可能难以调整。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "Adds a collision shape to the physics engine for our CSG shape. This will " "always act like a static body. Note that the collision shape is still active " "even if the CSG shape itself is hidden." msgstr "" "为我们的CSG形状向物理引擎添加碰撞形状。这将始终像一个静态物体。请注意,即使" "CSG形状本身被隐藏,碰撞形状仍处于活动状态。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "Geometry of both primitives is merged, intersecting geometry is removed." msgstr "合并两个图元的几何体,删除相交的几何体。" #: modules/csg/doc_classes/CSGShape.xml msgid "Only intersecting geometry remains, the rest is removed." msgstr "仅保留相交的几何,其余的将被删除。" #: modules/csg/doc_classes/CSGShape.xml msgid "" "The second shape is subtracted from the first, leaving a dent with its shape." msgstr "从第一个形状减去第二个形状,留下一个带有其形状的凹痕。" #: modules/csg/doc_classes/CSGSphere.xml msgid "A CSG Sphere shape." msgstr "CSG球形形状。" #: modules/csg/doc_classes/CSGSphere.xml msgid "" "This node allows you to create a sphere for use with the CSG system.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "你可以使用该节点在 CSG 系统中创建球体。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGSphere.xml msgid "The material used to render the sphere." msgstr "用于渲染球体的材质。" #: modules/csg/doc_classes/CSGSphere.xml msgid "Number of vertical slices for the sphere." msgstr "球体的垂直切片数。" #: modules/csg/doc_classes/CSGSphere.xml msgid "Radius of the sphere." msgstr "球体的半径。" #: modules/csg/doc_classes/CSGSphere.xml msgid "Number of horizontal slices for the sphere." msgstr "球体的水平切片数。" #: modules/csg/doc_classes/CSGSphere.xml msgid "" "If [code]true[/code] the normals of the sphere are set to give a smooth " "effect making the sphere seem rounded. If [code]false[/code] the sphere will " "have a flat shaded look." msgstr "" "如果[code]true[/code],则将圆柱体的法线设置为具有平滑效果,使圆柱体看起来是圆" "形的。如果[code]false[/code],则圆柱体将具有平坦的阴影表现。" #: modules/csg/doc_classes/CSGTorus.xml msgid "A CSG Torus shape." msgstr "CSG圆环形状。" #: modules/csg/doc_classes/CSGTorus.xml msgid "" "This node allows you to create a torus for use with the CSG system.\n" "[b]Note:[/b] CSG nodes are intended to be used for level prototyping. " "Creating CSG nodes has a significant CPU cost compared to creating a " "[MeshInstance] with a [PrimitiveMesh]. Moving a CSG node within another CSG " "node also has a significant CPU cost, so it should be avoided during " "gameplay." msgstr "" "你可以使用该节点在 CSG 系统中创建圆环体。\n" "[b]注意:[/b]CSG 节点是为制作关卡原型准备的。与创建使用 [PrimitiveMesh] 的 " "[MeshInstance] 相比,创建 CSG 节点对 CPU 资源的消耗更显著。在一个 CSG 节点中" "移动另一个 CSG 节点也会产生显著的 CPU 消耗,所以应当在游戏过程中避免进行类似" "操作。" #: modules/csg/doc_classes/CSGTorus.xml msgid "The inner radius of the torus." msgstr "圆环的内半径。" #: modules/csg/doc_classes/CSGTorus.xml msgid "The material used to render the torus." msgstr "用于渲染圆环的材质。" #: modules/csg/doc_classes/CSGTorus.xml msgid "The outer radius of the torus." msgstr "圆环的外半径。" #: modules/csg/doc_classes/CSGTorus.xml msgid "The number of edges each ring of the torus is constructed of." msgstr "构造每个圆环的边缘的数量。" #: modules/csg/doc_classes/CSGTorus.xml msgid "The number of slices the torus is constructed of." msgstr "构成圆环的切片数。" #: modules/csg/doc_classes/CSGTorus.xml msgid "" "If [code]true[/code] the normals of the torus are set to give a smooth " "effect making the torus seem rounded. If [code]false[/code] the torus will " "have a flat shaded look." msgstr "" "如果[code]true[/code]设置圆环的法线以提供平滑效果,则使圆环看起来是圆形的。如" "果[code]false[/code],则圆环将具有平坦的阴影表现。" #: modules/mono/doc_classes/CSharpScript.xml msgid "" "A script implemented in the C# programming language (Mono-enabled builds " "only)." msgstr "用C#编程语言实现的脚本(仅启用Mono的版本)。" #: modules/mono/doc_classes/CSharpScript.xml msgid "" "This class represents a C# script. It is the C# equivalent of the [GDScript] " "class and is only available in Mono-enabled Godot builds.\n" "See also [GodotSharp]." msgstr "" "此类表示C#脚本。它与[GDScript]类的C#等效,并且仅在启用了Mono的Godot版本中可" "用。\n" "另请参阅[GodotSharp]。" #: modules/mono/doc_classes/CSharpScript.xml #: modules/gdnative/doc_classes/PluginScript.xml msgid "Returns a new instance of the script." msgstr "返回脚本的新实例。" #: doc/classes/CubeMap.xml msgid "A CubeMap is a 6-sided 3D texture." msgstr "CubeMap 是一种 6 面 3D 纹理。" #: doc/classes/CubeMap.xml msgid "" "A 6-sided 3D texture typically used for faking reflections. It can be used " "to make an object look as if it's reflecting its surroundings. This usually " "delivers much better performance than other reflection methods." msgstr "" "通常用于伪造反射的 6 面 3D 纹理。它可用于使对象看起来好像在反射其周围环境。这" "通常比其他反射方法提供更好的性能。" #: doc/classes/CubeMap.xml msgid "Returns the [CubeMap]'s height." msgstr "返回该 [CubeMap] 的高度。" #: doc/classes/CubeMap.xml msgid "" "Returns an [Image] for a side of the [CubeMap] using one of the [enum Side] " "constants." msgstr "" "返回该 [CubeMap] 中某一面的图像 [Image],使用 [enum Side] 常量之一指定。" #: doc/classes/CubeMap.xml msgid "Returns the [CubeMap]'s width." msgstr "返回该 [CubeMap] 的宽度。" #: doc/classes/CubeMap.xml msgid "" "Sets an [Image] for a side of the [CubeMap] using one of the [enum Side] " "constants." msgstr "" "设置该 [CubeMap] 中某一面的图像 [Image],使用 [enum Side] 常量之一指定。" #: doc/classes/CubeMap.xml msgid "" "The render flags for the [CubeMap]. See the [enum Flags] constants for " "details." msgstr "[CubeMap] 的渲染标志。有关详细信息,请参阅 [enum Flags] 常量。" #: doc/classes/CubeMap.xml msgid "" "The lossy storage quality of the [CubeMap] if the storage mode is set to " "[constant STORAGE_COMPRESS_LOSSY]." msgstr "" "如果存储模式设置为 [constant STORAGE_COMPRESS_LOSSY],则 [CubeMap] 为有损存储" "质量。" #: doc/classes/CubeMap.xml msgid "The [CubeMap]'s storage mode. See [enum Storage] constants." msgstr "[CubeMap] 的存储模式。参阅 [enum Storage] 常量。" #: doc/classes/CubeMap.xml msgid "Store the [CubeMap] without any compression." msgstr "存储[CubeMap]而不进行任何压缩。" #: doc/classes/CubeMap.xml msgid "Store the [CubeMap] with strong compression that reduces image quality." msgstr "以降低图像质量的强压缩方式存储 [CubeMap]。" #: doc/classes/CubeMap.xml msgid "" "Store the [CubeMap] with moderate compression that doesn't reduce image " "quality." msgstr "以不降低图像质量的适度压缩方式存储 [CubeMap]。" #: doc/classes/CubeMap.xml msgid "Identifier for the left face of the [CubeMap]." msgstr "[CubeMap] 左面的标识符。" #: doc/classes/CubeMap.xml msgid "Identifier for the right face of the [CubeMap]." msgstr "[CubeMap] 右面的标识符。" #: doc/classes/CubeMap.xml msgid "Identifier for the bottom face of the [CubeMap]." msgstr "[CubeMap] 底面的标识符。" #: doc/classes/CubeMap.xml msgid "Identifier for the top face of the [CubeMap]." msgstr "[CubeMap] 顶面的标识符。" #: doc/classes/CubeMap.xml msgid "Identifier for the front face of the [CubeMap]." msgstr "[CubeMap] 正面的标识符。" #: doc/classes/CubeMap.xml msgid "Identifier for the back face of the [CubeMap]." msgstr "[CubeMap] 背面的标识符。" #: doc/classes/CubeMap.xml msgid "Generate mipmaps, to enable smooth zooming out of the texture." msgstr "生成 mipmap 多级渐远纹理,以实现纹理的平滑缩放。" #: doc/classes/CubeMap.xml msgid "Repeat (instead of clamp to edge)." msgstr "重复(而不是限制到边缘)。" #: doc/classes/CubeMap.xml msgid "Turn on magnifying filter, to enable smooth zooming in of the texture." msgstr "打开放大滤镜,使纹理平滑放大。" #: doc/classes/CubeMap.xml msgid "Default flags. Generate mipmaps, repeat, and filter are enabled." msgstr "默认标志。启用生成 mipmap、重复和滤镜。" #: doc/classes/CubeMesh.xml msgid "Generate an axis-aligned cuboid [PrimitiveMesh]." msgstr "生成轴对齐的立方体 [PrimitiveMesh]。" #: doc/classes/CubeMesh.xml msgid "" "Generate an axis-aligned cuboid [PrimitiveMesh].\n" "The cube's UV layout is arranged in a 3×2 layout that allows texturing each " "face individually. To apply the same texture on all faces, change the " "material's UV property to [code]Vector3(3, 2, 1)[/code].\n" "[b]Note:[/b] When using a large textured [CubeMesh] (e.g. as a floor), you " "may stumble upon UV jittering issues depending on the camera angle. To solve " "this, increase [member subdivide_depth], [member subdivide_height] and " "[member subdivide_width] until you no longer notice UV jittering." msgstr "" "生成轴对齐的立方体 [PrimitiveMesh]。\n" "这个立方体的UV布局是以3×2的方式排列的,可以对每个面单独进行纹理处理。要在所有" "的面上应用相同的纹理,将材质的UV属性改为 [code]Vector3(3, 2, 1)[/code]。\n" "[b]注意:[/b]当使用一个大的纹理 [CubeMesh]时(例如作为地板),你可能会遇到UV" "抖动的问题,这取决于相机的角度。为了解决这个问题,增加细分深度 [member " "subdivide_depth]、[member subdivide_height] 细分高度和细分宽带 [member " "subdivide_width],直到你不再注意到UV抖动。" #: doc/classes/CubeMesh.xml msgid "Size of the cuboid mesh." msgstr "长方体网格的大小。" #: doc/classes/CubeMesh.xml msgid "Number of extra edge loops inserted along the Z axis." msgstr "沿 Z 轴插入的额外边缘环的数量。" #: doc/classes/CubeMesh.xml msgid "Number of extra edge loops inserted along the Y axis." msgstr "沿 Y 轴插入的额外边缘环的数量。" #: doc/classes/CubeMesh.xml msgid "Number of extra edge loops inserted along the X axis." msgstr "沿 X 轴插入的额外边缘环的数量。" #: doc/classes/CullInstance.xml msgid "Parent of all nodes that can be culled by the Portal system." msgstr "所有可以被 Portal 入口系统剔除的节点的父节点。" #: doc/classes/CullInstance.xml msgid "" "Provides common functionality to nodes that can be culled by the [Portal] " "system.\n" "[code]Static[/code] and [code]Dynamic[/code] objects are the most " "efficiently managed objects in the system, but there are some caveats. They " "are expected to be present initially when [Room]s are converted using the " "[RoomManager] [code]rooms_convert[/code] function, and their lifetime should " "be the same as the game level (i.e. present until you call " "[code]rooms_clear[/code] on the [RoomManager]. Although you shouldn't " "create / delete these objects during gameplay, you can manage their " "visibility with the standard [code]hide[/code] and [code]show[/code] " "commands.\n" "[code]Roaming[/code] objects on the other hand, require extra processing to " "keep track of which [Room] they are within. This enables them to be culled " "effectively, wherever they are.\n" "[code]Global[/code] objects are not culled by the portal system, and use " "view frustum culling only.\n" "Objects that are not [code]Static[/code] or [code]Dynamic[/code] can be " "freely created and deleted during the lifetime of the game level." msgstr "" "为可以被 [Portal] 系统剔除的节点提供通用功能。\n" "[code]Static[/code] 和 [code]Dynamic[/code] 对象是系统中最有效的管理对象,但" "有一些注意事项。当使用 [RoomManager] 的 [code]rooms_convert[/code] 函数转换 " "[Room] 时,它们最初应该存在,并且其寿命应该与游戏级别相同,也就是说,在你调" "用 [RoomManager] 的 [code]rooms_clear[/code] 之前一直存在。虽然你不应该在游戏" "过程中创建或删除这些对象,但可以用标准的 [code]hide[/code] 和 [code]show[/" "code] 命令管理它们的可见性。\n" "另一方面,[code]Roaming[/code] 对象需要额外的处理来跟踪它们在哪个 [Room] 中。" "这使它们能够有效地被剔除,无论其位置。\n" "[code]Global[/code] 对象不被入口系统剔除,只使用视图视锥剔除。\n" "不是 [code]Static[/code] 或 [code]Dynamic[/code] 的对象可以在游戏关卡的生命周" "期内自由创建和删除。" #: doc/classes/CullInstance.xml msgid "" "This allows fine control over the mesh merging feature in the " "[RoomManager].\n" "Setting this option to [code]false[/code] can be used to prevent an instance " "being merged." msgstr "" "用于对 [RoomManager] 的网格合并功能进行微调。\n" "将该选项设为 [code]false[/code] 可以避免实例被合并。" #: doc/classes/CullInstance.xml msgid "" "When set to [code]0[/code], [CullInstance]s will be autoplaced in the [Room] " "with the highest priority.\n" "When set to a value other than [code]0[/code], the system will attempt to " "autoplace in a [Room] with the [code]autoplace_priority[/code], if it is " "present.\n" "This can be used to control autoplacement of building exteriors in an outer " "[RoomGroup]." msgstr "" "当设置为[code]0[/code]时,[CullInstance]将被自动放置在具有最高优先级的[Room]" "中。\n" "当设置为[code]0[/code]以外的值时,系统将尝试在具有[code]autoplace_priority[/" "code]的[Room]中自动放置,如果它存在的话。\n" "这可以用来控制建筑外面的在外部[RoomGroup]的自动放置。" #: doc/classes/CullInstance.xml msgid "" "When a manual bound has not been explicitly specified for a [Room], the " "convex hull bound will be estimated from the geometry of the objects within " "the room. This setting determines whether the geometry of an object is " "included in this estimate of the room bound.\n" "[b]Note:[/b] This setting is only relevant when the object is set to " "[code]PORTAL_MODE_STATIC[/code] or [code]PORTAL_MODE_DYNAMIC[/code], and for " "[Portal]s." msgstr "" "当没有为 [Room] 明确指定手动边界时,凸形边界将根据房间内对象的几何形状进行估" "算。此设置确定对象的几何形状是否包含在此房间边界估算之中。\n" "[b]注意:[/b]此设置仅在对象设置为 [code]PORTAL_MODE_STATIC[/code] 或 " "[code]PORTAL_MODE_DYNAMIC[/code] 时有相,并且适用于 [Portal]。" #: doc/classes/CullInstance.xml msgid "" "When using [Room]s and [Portal]s, this specifies how the [CullInstance] is " "processed in the system." msgstr "" "当使用 [Room] 和 [Portal] 时,这指定了 [CullInstance] 在系统中的处理方式。" #: doc/classes/CullInstance.xml msgid "" "Use for instances within [Room]s that will [b]not move[/b] - e.g. walls, " "floors.\n" "[b]Note:[/b] If you attempt to delete a [code]PORTAL_MODE_STATIC[/code] " "instance while the room graph is loaded (converted), it will unload the room " "graph and deactivate portal culling. This is because the [b]room graph[/b] " "data has been invalidated. You will need to reconvert the rooms using the " "[RoomManager] to activate the system again." msgstr "" "用于[b]不会移动[/b]的 [Room] 内的实例——如墙壁、地板。\n" "[b]注意:[/b]如果你在房间图加载(转换)的时候,试图删除一个 " "[code]PORTAL_MODE_STATIC[/code] 实例,它将卸载房间图并停用入口剔除。这是因为" "[b]房间图[/b]的数据已经失效。你将需要使用 [RoomManager] 重新转换房间以再次激" "活系统。" #: doc/classes/CullInstance.xml msgid "" "Use for instances within rooms that will move but [b]not change room[/b] - e." "g. moving platforms.\n" "[b]Note:[/b] If you attempt to delete a [code]PORTAL_MODE_DYNAMIC[/code] " "instance while the room graph is loaded (converted), it will unload the room " "graph and deactivate portal culling. This is because the [b]room graph[/b] " "data has been invalidated. You will need to reconvert the rooms using the " "[RoomManager] to activate the system again." msgstr "" "用于房间内会移动但[b]不会改变房间[/b]的实例——例如移动平台。\n" "[b]注意:[/b]如果在加载即转换房间图时尝试删除 [code]PORTAL_MODE_DYNAMIC[/" "code] 实例,它将卸载房间图并停用入口剔除。这是因为[b]房间图[/b]数据已经失效。" "将需要使用 [RoomManager] 重新转换房间以再次激活系统。" #: doc/classes/CullInstance.xml msgid "Use for instances that will move [b]between[/b] [Room]s - e.g. players." msgstr "用于在 [Room] [b]之间[/b]移动的实例——例如玩家。" #: doc/classes/CullInstance.xml msgid "" "Use for instances that will be frustum culled only - e.g. first person " "weapon, debug." msgstr "用于只会被视锥剔除的实例——例如第一人称武器,调试。" #: doc/classes/CullInstance.xml msgid "" "Use for instances that will not be shown at all - e.g. [b]manual room " "bounds[/b] (specified by prefix [i]'Bound_'[/i])." msgstr "" "用于根本不会显示的实例——例如[b]手动房间边界[/b](由 [i]'Bound_'[/i] 前缀指" "定)。" #: doc/classes/Curve.xml msgid "A mathematic curve." msgstr "一条数学曲线。" #: doc/classes/Curve.xml msgid "" "A curve that can be saved and re-used for other objects. By default, it " "ranges between [code]0[/code] and [code]1[/code] on the Y axis and positions " "points relative to the [code]0.5[/code] Y position." msgstr "" "可以保存并重新用于其他对象的曲线。默认情况下,它在Y轴上的范围在 [code]0[/" "code] 到 [code]1[/code]之间,并且位置点相对于 [code]0.5[/code] Y 位置。" #: doc/classes/Curve.xml msgid "" "Adds a point to the curve. For each side, if the [code]*_mode[/code] is " "[constant TANGENT_LINEAR], the [code]*_tangent[/code] angle (in degrees) " "uses the slope of the curve halfway to the adjacent point. Allows custom " "assignments to the [code]*_tangent[/code] angle if [code]*_mode[/code] is " "set to [constant TANGENT_FREE]." msgstr "" "在曲线上添加一个点。对于每一侧,如果[code]*_mode[/code]为[constant " "TANGENT_LINEAR],则[code]*_tangent[/code]角度(以度为单位)将使用曲线到邻近点" "的一半的斜率。如果[code]*_mode[/code]设置为[constant TANGENT_FREE],则允许自" "定义分配给[code]*_tangent[/code]角度。" #: doc/classes/Curve.xml msgid "Recomputes the baked cache of points for the curve." msgstr "重新计算曲线的烘焙点缓存。" #: doc/classes/Curve.xml msgid "" "Removes points that are closer than [code]CMP_EPSILON[/code] (0.00001) units " "to their neighbor on the curve." msgstr "删除比曲线上的相邻点近[code]CMP_EPSILON[/code](0.00001)个单位的点。" #: doc/classes/Curve.xml doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "Removes all points from the curve." msgstr "从曲线中删除所有点。" #: doc/classes/Curve.xml doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "Returns the number of points describing the curve." msgstr "返回描述曲线的点数。" #: doc/classes/Curve.xml msgid "" "Returns the left [enum TangentMode] for the point at [code]index[/code]." msgstr "返回 [code]index[/code]处的点的左侧[enum TangentMode]。" #: doc/classes/Curve.xml msgid "" "Returns the left tangent angle (in degrees) for the point at [code]index[/" "code]." msgstr "返回 [code]index[/code]处的点的左切线角(以度为单位)。" #: doc/classes/Curve.xml msgid "Returns the curve coordinates for the point at [code]index[/code]." msgstr "返回 [code]index[/code]处该点的曲线坐标。" #: doc/classes/Curve.xml msgid "" "Returns the right [enum TangentMode] for the point at [code]index[/code]." msgstr "返回在[code]index[/code]处的点的右[enum TangentMode]。" #: doc/classes/Curve.xml msgid "" "Returns the right tangent angle (in degrees) for the point at [code]index[/" "code]." msgstr "返回 [code]index[/code]处的点的左切线角(以度为单位)。" #: doc/classes/Curve.xml msgid "" "Returns the Y value for the point that would exist at the X position " "[code]offset[/code] along the curve." msgstr "返回沿曲线的X位置[code]offset[/code]处将存在的点的Y值。" #: doc/classes/Curve.xml msgid "" "Returns the Y value for the point that would exist at the X position " "[code]offset[/code] along the curve using the baked cache. Bakes the curve's " "points if not already baked." msgstr "" "使用烘焙的缓存返回沿曲线的X位置[code]offset[/code]处将存在的点的Y值。如果尚未" "烘焙曲线的点,则将其烘焙。" #: doc/classes/Curve.xml msgid "Removes the point at [code]index[/code] from the curve." msgstr "从曲线中删除[code]index[/code]处的点。" #: doc/classes/Curve.xml msgid "" "Sets the left [enum TangentMode] for the point at [code]index[/code] to " "[code]mode[/code]." msgstr "" "将[code]index[/code]处的点的左侧[enum TangentMode]设置为[code]mode[/code]。" #: doc/classes/Curve.xml msgid "" "Sets the left tangent angle for the point at [code]index[/code] to " "[code]tangent[/code]." msgstr "将点的左切线角度设置为 [code]index[/code] 至 [code]tangent[/code]。" #: doc/classes/Curve.xml msgid "Sets the offset from [code]0.5[/code]." msgstr "设置相对于[code]0.5[/code]的偏移量。" #: doc/classes/Curve.xml msgid "" "Sets the right [enum TangentMode] for the point at [code]index[/code] to " "[code]mode[/code]." msgstr "" "将[code]index[/code]上的点的右侧[enum TangentMode]设置为[code]mode[/code]。" #: doc/classes/Curve.xml msgid "" "Sets the right tangent angle for the point at [code]index[/code] to " "[code]tangent[/code]." msgstr "设置[code]index[/code]至[code]tangent[/code]处的点的右切线角。" #: doc/classes/Curve.xml msgid "" "Assigns the vertical position [code]y[/code] to the point at [code]index[/" "code]." msgstr "将垂直位置[code]y[/code]分配给[code]index[/code]处的点。" #: doc/classes/Curve.xml msgid "The number of points to include in the baked (i.e. cached) curve data." msgstr "烘焙(即缓存)曲线数据中包含的点的数量。" #: doc/classes/Curve.xml msgid "The maximum value the curve can reach." msgstr "曲线能达到的最大值。" #: doc/classes/Curve.xml msgid "The minimum value the curve can reach." msgstr "曲线能达到的最小值。" #: doc/classes/Curve.xml msgid "Emitted when [member max_value] or [member min_value] is changed." msgstr "更改 [member max_value] 或 [member min_value] 时发出。" #: doc/classes/Curve.xml msgid "The tangent on this side of the point is user-defined." msgstr "点这边的切线是用户自定义的。" #: doc/classes/Curve.xml msgid "" "The curve calculates the tangent on this side of the point as the slope " "halfway towards the adjacent point." msgstr "曲线计算点的这一侧的切线,作为向相邻点的一半的斜率。" #: doc/classes/Curve.xml msgid "The total number of available tangent modes." msgstr "可用切线模式的总数。" #: doc/classes/Curve2D.xml msgid "Describes a Bézier curve in 2D space." msgstr "描述 2D 空间的贝塞尔曲线。" #: doc/classes/Curve2D.xml msgid "" "This class describes a Bézier curve in 2D space. It is mainly used to give a " "shape to a [Path2D], but can be manually sampled for other purposes.\n" "It keeps a cache of precalculated points along the curve, to speed up " "further calculations." msgstr "" "该类描述了 2D 空间中的贝塞尔曲线。它主要用于给 [Path2D] 一个形状,但也可以手" "动采样用于其他目的。\n" "它保留了沿曲线的预计算点的缓存,以加快进一步的计算。" #: doc/classes/Curve2D.xml msgid "" "Adds a point to a curve at [code]position[/code] relative to the [Curve2D]'s " "position, with control points [code]in[/code] and [code]out[/code].\n" "If [code]at_position[/code] is given, the point is inserted before the point " "number [code]at_position[/code], moving that point (and every point after) " "after the inserted point. If [code]at_position[/code] is not given, or is an " "illegal value ([code]at_position <0[/code] or [code]at_position >= [method " "get_point_count][/code]), the point will be appended at the end of the point " "list." msgstr "" "在曲线的 [code]position[/code] 上添加一个点,相对于该 [Curve2D] 的位置,以及" "控制点 [code]in[/code] 和 [code]out[/code]。\n" "如果给定了 [code]at_position[/code],这个点会被插入到点号 [code]at_position[/" "code] 之前,并将这个点(以及之后的每一个点)移到被插入点之后。如果 " "[code]at_position[/code] 没有给定,或者是非法值([code]at_position <0[/code] " "或 [code]at_position >= [method get_point_count][/code]),该点将被追加在点列" "表的最后。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Returns the total length of the curve, based on the cached points. Given " "enough density (see [member bake_interval]), it should be approximate enough." msgstr "" "根据缓存的点,返回曲线的总长度。给予足够的密度(参阅[member bake_interval])," "它应该是足够近似的。" #: doc/classes/Curve2D.xml msgid "Returns the cache of points as a [PoolVector2Array]." msgstr "以[PoolVector2Array]的形式返回缓存的点。" #: doc/classes/Curve2D.xml msgid "" "Returns the closest offset to [code]to_point[/code]. This offset is meant to " "be used in [method interpolate_baked].\n" "[code]to_point[/code] must be in this curve's local space." msgstr "" "返回与 [code]to_point[/code] 最近的偏移量。这个偏移量在 [method " "interpolate_baked] 中使用。\n" "[code]to_point[/code] 必须在这条曲线的局部空间中。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Returns the closest baked point (in curve's local space) to [code]to_point[/" "code].\n" "[code]to_point[/code] must be in this curve's local space." msgstr "" "返回最接近 [code]to_point[/code] 并烘焙好的点(在曲线的局部空间)。\n" "[code]to_point[/code] 必须是在这个曲线的局部空间。" #: doc/classes/Curve2D.xml msgid "" "Returns the position of the control point leading to the vertex [code]idx[/" "code]. The returned position is relative to the vertex [code]idx[/code]. If " "the index is out of bounds, the function sends an error to the console, and " "returns [code](0, 0)[/code]." msgstr "" "返回指向顶点[code]idx[/code]的控制点位置。返回的位置是相对于顶点[code]idx[/" "code]的。如果索引超出了范围,函数会向控制台发送一条错误,并返回 [code](0, 0)" "[/code]。" #: doc/classes/Curve2D.xml msgid "" "Returns the position of the control point leading out of the vertex " "[code]idx[/code]. The returned position is relative to the vertex [code]idx[/" "code]. If the index is out of bounds, the function sends an error to the " "console, and returns [code](0, 0)[/code]." msgstr "" "返回从顶点[code]idx[/code]引出的控制点位置。返回的位置是相对于顶点 " "[code]idx[/code]。如果索引越界,函数会向控制台发送错误,并返回 [code](0, 0)[/" "code]。" #: doc/classes/Curve2D.xml msgid "" "Returns the position of the vertex [code]idx[/code]. If the index is out of " "bounds, the function sends an error to the console, and returns [code](0, 0)" "[/code]." msgstr "" "返回顶点 [code]idx[/code] 的位置。如果索引超出边界,函数会向控制台发送一个错" "误信息,并返回 [code](0, 0)[/code]。" #: doc/classes/Curve2D.xml msgid "" "Returns the position between the vertex [code]idx[/code] and the vertex " "[code]idx + 1[/code], where [code]t[/code] controls if the point is the " "first vertex ([code]t = 0.0[/code]), the last vertex ([code]t = 1.0[/code]), " "or in between. Values of [code]t[/code] outside the range ([code]0.0 >= t " "<=1[/code]) give strange, but predictable results.\n" "If [code]idx[/code] is out of bounds it is truncated to the first or last " "vertex, and [code]t[/code] is ignored. If the curve has no points, the " "function sends an error to the console, and returns [code](0, 0)[/code]." msgstr "" "返回顶点 [code]idx[/code] 和顶点 [code]idx + 1[/code] 之间的位置,其中 " "[code]t[/code] 控制该点是第一个顶点([code]t = 0.0[/code])、最后一个顶点" "([code]t = 1.0[/code]),还是介于两者之间。范围([code]0.0 >= t <=1[/code])" "外的 [code]t[/code] 的值会产生奇怪但可预测的结果。\n" "如果 [code]idx[/code] 超出边界,则截断到第一个或最后一个顶点,而 [code]t[/" "code] 则被忽略。如果曲线没有点,函数会向控制台发送一个错误,并返回 [code](0, " "0)[/code]。" #: doc/classes/Curve2D.xml msgid "" "Returns a point within the curve at position [code]offset[/code], where " "[code]offset[/code] is measured as a pixel distance along the curve.\n" "To do that, it finds the two cached points where the [code]offset[/code] " "lies between, then interpolates the values. This interpolation is cubic if " "[code]cubic[/code] is set to [code]true[/code], or linear if set to " "[code]false[/code].\n" "Cubic interpolation tends to follow the curves better, but linear is faster " "(and often, precise enough)." msgstr "" "返回曲线中位于 [code]offset[/code] 位置的一个点,其中 [code]offset[/code] 是" "沿曲线的像素距离。\n" "为此,它找到 [code]offset[/code] 所在的两个缓存点,然后对其进行插值。如果将 " "[code]cubic[/code] 设置为 [code]true[/code] 则为立方插值,如果设置为 " "[code]false[/code] 则为线性插值。\n" "立方内插往往能更好地跟随曲线,但线性内插速度更快(而且通常足够精确)。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Returns the position at the vertex [code]fofs[/code]. It calls [method " "interpolate] using the integer part of [code]fofs[/code] as [code]idx[/" "code], and its fractional part as [code]t[/code]." msgstr "" "返回顶点 [code]fofs[/code] 的位置。它使用 [code]fofs[/code] 的整数部分作为 " "[code]idx[/code] 和分数部分作为 [code]t[/code] 调用 [method interpolate]。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Deletes the point [code]idx[/code] from the curve. Sends an error to the " "console if [code]idx[/code] is out of bounds." msgstr "" "从曲线上删除点 [code]idx[/code] 。如果 [code]idx[/code] 越界,会向控制台发送" "错误信息。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Sets the position of the control point leading to the vertex [code]idx[/" "code]. If the index is out of bounds, the function sends an error to the " "console. The position is relative to the vertex." msgstr "" "设置通往顶点 [code]idx[/code] 的控制点位置。如果索引超出范围,函数会向控制台" "发送错误信息。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Sets the position of the control point leading out of the vertex [code]idx[/" "code]. If the index is out of bounds, the function sends an error to the " "console. The position is relative to the vertex." msgstr "" "设置从顶点[code]idx[/code]引出的控制点位置。如果索引超出范围,该函数会向控制" "台发送错误。位置是相对于顶点的。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Sets the position for the vertex [code]idx[/code]. If the index is out of " "bounds, the function sends an error to the console." msgstr "" "设置顶点[code]idx[/code]的位置。如果索引超出范围,函数会向控制台发送一个错误" "信息。" #: doc/classes/Curve2D.xml doc/classes/Curve3D.xml msgid "" "Returns a list of points along the curve, with a curvature controlled point " "density. That is, the curvier parts will have more points than the " "straighter parts.\n" "This approximation makes straight segments between each point, then " "subdivides those segments until the resulting shape is similar enough.\n" "[code]max_stages[/code] controls how many subdivisions a curve segment may " "face before it is considered approximate enough. Each subdivision splits the " "segment in half, so the default 5 stages may mean up to 32 subdivisions per " "curve segment. Increase with care!\n" "[code]tolerance_degrees[/code] controls how many degrees the midpoint of a " "segment may deviate from the real curve, before the segment has to be " "subdivided." msgstr "" "返回沿曲线的点的列表,点的密度由曲率控制。也就是说,曲线部分比直线部分有更多" "的点。\n" "这个近似值在每个点之间做了直段,然后将这些直段细分,直到得到的形状足够相" "似。\n" "[code]max_stages[/code] 控制一个曲线段在被认为足够近似之前可能面临多少次细" "分。每一次细分都会将曲线段分成两半,所以默认的 5 个阶段意味着每条曲线段最多可" "以细分 32 次。请谨慎增加!\n" "[code]tolerance_degrees[/code] 控制一个曲线段的中点与实际曲线的偏差多少度才会" "被细分。" #: doc/classes/Curve2D.xml msgid "" "The distance in pixels between two adjacent cached points. Changing it " "forces the cache to be recomputed the next time the [method " "get_baked_points] or [method get_baked_length] function is called. The " "smaller the distance, the more points in the cache and the more memory it " "will consume, so use with care." msgstr "" "相邻两个缓存点之间的距离,以像素为单位。改变它将迫使缓存在下次调用[method " "get_baked_points]或[method get_baked_length]函数时重新计算。距离越小,缓存中" "的点越多,占用的内存也越多,所以使用时要注意。" #: doc/classes/Curve3D.xml msgid "Describes a Bézier curve in 3D space." msgstr "描述二维空间的贝兹尔曲线。" #: doc/classes/Curve3D.xml msgid "" "This class describes a Bézier curve in 3D space. It is mainly used to give a " "shape to a [Path], but can be manually sampled for other purposes.\n" "It keeps a cache of precalculated points along the curve, to speed up " "further calculations." msgstr "" "该类描述了 3D 空间中的贝塞尔曲线。它主要用于给 [Path] 提供一个形状,但也可以" "为其他目的手动取样。\n" "它沿曲线保留了一个预先计算好的点缓存,以加快进一步的计算。" #: doc/classes/Curve3D.xml msgid "" "Adds a point to a curve at [code]position[/code] relative to the [Curve3D]'s " "position, with control points [code]in[/code] and [code]out[/code].\n" "If [code]at_position[/code] is given, the point is inserted before the point " "number [code]at_position[/code], moving that point (and every point after) " "after the inserted point. If [code]at_position[/code] is not given, or is an " "illegal value ([code]at_position <0[/code] or [code]at_position >= [method " "get_point_count][/code]), the point will be appended at the end of the point " "list." msgstr "" "在曲线的 [code]position[/code] 上添加一个点,相对于该 [Curve2D] 的位置,以及" "控制点 [code]in[/code] 和 [code]out[/code]。\n" "如果给定了 [code]at_position[/code],这个点会被插入到点号 [code]at_position[/" "code] 之前,并将这个点(以及之后的每一个点)移到被插入点之后。如果 " "[code]at_position[/code] 没有给定,或者是非法值([code]at_position <0[/code] " "或 [code]at_position >= [method get_point_count][/code]),该点将被追加在点列" "表的最后。" #: doc/classes/Curve3D.xml msgid "Returns the cache of points as a [PoolVector3Array]." msgstr "以 [PoolVector3Array] 的形式返回缓存的点。" #: doc/classes/Curve3D.xml msgid "Returns the cache of tilts as a [PoolRealArray]." msgstr "以 [PoolRealArray] 的形式返回倾斜的缓存。" #: doc/classes/Curve3D.xml msgid "" "Returns the cache of up vectors as a [PoolVector3Array].\n" "If [member up_vector_enabled] is [code]false[/code], the cache will be empty." msgstr "" "以 [PoolVector3Array] 的形式返回向上向量的缓存。\n" "如果 [member up_vector_enabled] 是 [code]false[/code],缓存将是空的。" #: doc/classes/Curve3D.xml msgid "" "Returns the closest offset to [code]to_point[/code]. This offset is meant to " "be used in [method interpolate_baked] or [method " "interpolate_baked_up_vector].\n" "[code]to_point[/code] must be in this curve's local space." msgstr "" "返回离 [code]to_point[/code] 最近的偏移量。这个偏移量可以用在 [method " "interpolate_baked] 或 [method interpolate_baked_up_vector] 中。\n" "[code]to_point[/code] 必须在这条曲线的局部空间中。" #: doc/classes/Curve3D.xml msgid "" "Returns the position of the control point leading to the vertex [code]idx[/" "code]. The returned position is relative to the vertex [code]idx[/code]. If " "the index is out of bounds, the function sends an error to the console, and " "returns [code](0, 0, 0)[/code]." msgstr "" "返回通往顶点 [code]idx[/code] 的控制点的位置。返回的位置是相对于顶点 " "[code]idx[/code]的。如果索引超出了范围,函数会向控制台发送一个错误,并返回 " "[code](0, 0, 0)[/code]。" #: doc/classes/Curve3D.xml msgid "" "Returns the position of the control point leading out of the vertex " "[code]idx[/code]. The returned position is relative to the vertex [code]idx[/" "code]. If the index is out of bounds, the function sends an error to the " "console, and returns [code](0, 0, 0)[/code]." msgstr "" "返回从顶点 [code]idx[/code] 伸出的控制点的位置。返回的位置是相对于顶点 " "[code]idx[/code] 的。如果索引超出了范围,函数会向控制台发送一个错误,并返回 " "[code](0, 0, 0)[/code]。" #: doc/classes/Curve3D.xml msgid "" "Returns the position of the vertex [code]idx[/code]. If the index is out of " "bounds, the function sends an error to the console, and returns [code](0, 0, " "0)[/code]." msgstr "" "返回顶点 [code]idx[/code] 的位置。如果索引超出边界,函数会向控制台发送一个错" "误信息,并返回 [code](0, 0, 0)[/code]。" #: doc/classes/Curve3D.xml msgid "" "Returns the tilt angle in radians for the point [code]idx[/code]. If the " "index is out of bounds, the function sends an error to the console, and " "returns [code]0[/code]." msgstr "" "返回 [code]idx[/code] 点的倾斜角,单位为弧度。如果指数超出范围,函数将向控制" "台发送错误信息,并返回 [code]0[/code]。" #: doc/classes/Curve3D.xml msgid "" "Returns the position between the vertex [code]idx[/code] and the vertex " "[code]idx + 1[/code], where [code]t[/code] controls if the point is the " "first vertex ([code]t = 0.0[/code]), the last vertex ([code]t = 1.0[/code]), " "or in between. Values of [code]t[/code] outside the range ([code]0.0 >= t " "<=1[/code]) give strange, but predictable results.\n" "If [code]idx[/code] is out of bounds it is truncated to the first or last " "vertex, and [code]t[/code] is ignored. If the curve has no points, the " "function sends an error to the console, and returns [code](0, 0, 0)[/code]." msgstr "" "返回顶点 [code]idx[/code] 和顶点 [code]idx + 1[/code] 之间的位置,其中 " "[code]t[/code] 控制该点是第一个顶点 ([code]t = 0.0[/code])、最后一个顶点 " "([code]t = 1.0[/code]),还是介于两者之间。范围外的[code]t[/code]的值" "([code]0.0 >= t <=1[/code])会产生奇怪但可预测的结果。\n" "如果[code]idx[/code]超出边界,则截断到第一个或最后一个顶点,而[code]t[/code]" "则被忽略。如果曲线没有点,函数会向控制台发送一个错误,并返回 [code](0, 0, 0)" "[/code]。" #: doc/classes/Curve3D.xml msgid "" "Returns a point within the curve at position [code]offset[/code], where " "[code]offset[/code] is measured as a distance in 3D units along the curve.\n" "To do that, it finds the two cached points where the [code]offset[/code] " "lies between, then interpolates the values. This interpolation is cubic if " "[code]cubic[/code] is set to [code]true[/code], or linear if set to " "[code]false[/code].\n" "Cubic interpolation tends to follow the curves better, but linear is faster " "(and often, precise enough)." msgstr "" "返回曲线中 [code]offset[/code] 偏移位置的一个点,其中 [code]offset[/code] 以" "沿曲线的 3D 单位距离测量。\n" "为了做到这一点,它找到 [code]offset[/code] 所在的两个缓存点,然后进行内插值。" "如果 [code]cubic[/code] 被设置为 [code]true[/code],这个插值是立方的,如果设" "置为 [code]false[/code],则是线性的。\n" "立体插值倾向于更好地遵循曲线,但线性插值更快(而且通常足够精确)。" #: doc/classes/Curve3D.xml msgid "" "Returns an up vector within the curve at position [code]offset[/code], where " "[code]offset[/code] is measured as a distance in 3D units along the curve.\n" "To do that, it finds the two cached up vectors where the [code]offset[/code] " "lies between, then interpolates the values. If [code]apply_tilt[/code] is " "[code]true[/code], an interpolated tilt is applied to the interpolated up " "vector.\n" "If the curve has no up vectors, the function sends an error to the console, " "and returns [code](0, 1, 0)[/code]." msgstr "" "返回位于 [code]offset[/code] 位置的曲线内的向上向量,其中 [code]offset[/" "code] 是以 3D 单位测量的曲线距离。\n" "为此,它会找到 [code]offset[/code] 所在的两个缓存向上向量,然后对其进行插值。" "如果 [code]apply_tilt[/code] 是 [code]true[/code],内插后的倾斜会被应用到内插" "的向上向量上。\n" "如果曲线没有向上向量,函数会向控制台发送一个错误,并返回 [code](0, 1, 0)[/" "code]。" #: doc/classes/Curve3D.xml msgid "" "Sets the tilt angle in radians for the point [code]idx[/code]. If the index " "is out of bounds, the function sends an error to the console.\n" "The tilt controls the rotation along the look-at axis an object traveling " "the path would have. In the case of a curve controlling a [PathFollow], this " "tilt is an offset over the natural tilt the [PathFollow] calculates." msgstr "" "以弧度为单位设置点 [code]idx[/code] 的倾斜角度。如果索引超出范围,该函数会向" "控制台发送错误。\n" "倾斜控制着沿路径移动的对象沿观察轴的旋转。在控制 [PathFollow] 的曲线的情况" "下,此倾斜是对 [PathFollow] 计算的自然倾斜的偏移。" #: doc/classes/Curve3D.xml msgid "" "The distance in meters between two adjacent cached points. Changing it " "forces the cache to be recomputed the next time the [method " "get_baked_points] or [method get_baked_length] function is called. The " "smaller the distance, the more points in the cache and the more memory it " "will consume, so use with care." msgstr "" "相邻两个缓存点之间的距离,单位为米。改变它将迫使缓存在下次调用[method " "get_baked_points]或[method get_baked_length]函数时重新计算。距离越小,缓存中" "的点越多,占用的内存也越多,所以使用时要注意。" #: doc/classes/Curve3D.xml msgid "" "If [code]true[/code], the curve will bake up vectors used for orientation. " "This is used when [member PathFollow.rotation_mode] is set to [constant " "PathFollow.ROTATION_ORIENTED]. Changing it forces the cache to be recomputed." msgstr "" "如果[code]true[/code],曲线将烘焙出用于定向的向量。当[member PathFollow." "rotation_mode]被设置为[constant PathFollow.ROTATION_ORIENTED]时,就会使用这个" "功能。改变它将强制重新计算缓存。" #: doc/classes/CurveTexture.xml msgid "A texture that shows a curve." msgstr "显示曲线的纹理。" #: doc/classes/CurveTexture.xml msgid "" "Renders a given [Curve] provided to it. Simplifies the task of drawing " "curves and/or saving them as image files." msgstr "渲染提供给它的[Curve]。简化了绘制曲线和/或保存为图像文件的任务。" #: doc/classes/CurveTexture.xml msgid "The [code]curve[/code] rendered onto the texture." msgstr "渲染到纹理上的[code]curve[/code]。" #: doc/classes/CurveTexture.xml msgid "The width of the texture." msgstr "纹理的宽度。" #: doc/classes/CylinderMesh.xml msgid "Class representing a cylindrical [PrimitiveMesh]." msgstr "表示圆柱形 [PrimitiveMesh] 的类。" #: doc/classes/CylinderMesh.xml msgid "" "Class representing a cylindrical [PrimitiveMesh]. This class can be used to " "create cones by setting either the [member top_radius] or [member " "bottom_radius] properties to [code]0.0[/code]." msgstr "" "表示圆柱形 [PrimitiveMesh] 的类。通过将 [member top_radius] 或 [member " "bottom_radius] 属性设置为 [code]0.0[/code],这个类可以用来创建圆锥体。" #: doc/classes/CylinderMesh.xml msgid "" "Bottom radius of the cylinder. If set to [code]0.0[/code], the bottom faces " "will not be generated, resulting in a conic shape." msgstr "" "圆柱体的底部半径。如果设置为[code]0.0[/code],而不会生成底面,从而形成圆锥" "体。" #: doc/classes/CylinderMesh.xml msgid "Full height of the cylinder." msgstr "缸体的全高。" #: doc/classes/CylinderMesh.xml msgid "" "Number of radial segments on the cylinder. Higher values result in a more " "detailed cylinder/cone at the cost of performance." msgstr "" "圆柱体上的径向段数。更高的值会生成更细致的圆柱体或圆锥体,但以性能为代价。" #: doc/classes/CylinderMesh.xml msgid "" "Number of edge rings along the height of the cylinder. Changing [member " "rings] does not have any visual impact unless a shader or procedural mesh " "tool is used to alter the vertex data. Higher values result in more " "subdivisions, which can be used to create smoother-looking effects with " "shaders or procedural mesh tools (at the cost of performance). When not " "altering the vertex data using a shader or procedural mesh tool, [member " "rings] should be kept to its default value." msgstr "" "沿圆柱体的高度的边缘环的数量。除非使用着色器或程序网格工具来更改顶点数据,否" "则更改 [member rings] 不会影响显示,[member rings] 应保持其默认值。较高的值会" "产生更多的细分,这可用于使用着色器或程序式网格工具创建更平滑的显示效果,但以" "性能为代价。" #: doc/classes/CylinderMesh.xml msgid "" "Top radius of the cylinder. If set to [code]0.0[/code], the top faces will " "not be generated, resulting in a conic shape." msgstr "" "圆柱体的顶部半径。如果设置为 [code]0.0[/code],则不会生成顶部面,形成圆锥形" "状。" #: doc/classes/CylinderShape.xml msgid "Cylinder shape for collisions." msgstr "碰撞用的圆柱体形状。" #: doc/classes/CylinderShape.xml msgid "The cylinder's height." msgstr "圆柱体的高度。" #: doc/classes/CylinderShape.xml msgid "The cylinder's radius." msgstr "圆柱体的半径。" #: doc/classes/DampedSpringJoint2D.xml msgid "Damped spring constraint for 2D physics." msgstr "2D 物理的阻尼弹簧约束。" #: doc/classes/DampedSpringJoint2D.xml msgid "" "Damped spring constraint for 2D physics. This resembles a spring joint that " "always wants to go back to a given length." msgstr "2D 物理的阻尼弹簧约束。这类似于总是想回到给定长度的弹簧关节。" #: doc/classes/DampedSpringJoint2D.xml msgid "" "The spring joint's damping ratio. A value between [code]0[/code] and " "[code]1[/code]. When the two bodies move into different directions the " "system tries to align them to the spring axis again. A high [code]damping[/" "code] value forces the attached bodies to align faster." msgstr "" "弹簧关节的阻尼比。值在 [code]0[/code] 和 [code]1[/code] 之间。当两个机构移动" "到不同的方向时,系统会尝试将它们再次对准弹簧轴。高的 [code]damping[/code] 值" "迫使连接的机构更快地对齐。" #: doc/classes/DampedSpringJoint2D.xml msgid "" "The spring joint's maximum length. The two attached bodies cannot stretch it " "past this value." msgstr "弹簧关节的最大长度。两个连接体不能超过这个值。" #: doc/classes/DampedSpringJoint2D.xml msgid "" "When the bodies attached to the spring joint move they stretch or squash it. " "The joint always tries to resize towards this length." msgstr "" "当连接到弹簧关节的机构移动时,它们会拉伸或挤压它。关节总是尝试向这个长度调" "整。" #: doc/classes/DampedSpringJoint2D.xml msgid "" "The higher the value, the less the bodies attached to the joint will deform " "it. The joint applies an opposing force to the bodies, the product of the " "stiffness multiplied by the size difference from its resting length." msgstr "" "该值越大,连接在关节上的机构变形越小。关节对各机构施加一个相反的力,即刚度乘" "以与其静止长度的大小差的乘积。" #: doc/classes/Dictionary.xml msgid "Dictionary type." msgstr "字典类型。" #: doc/classes/Dictionary.xml msgid "" "Dictionary type. Associative container which contains values referenced by " "unique keys. Dictionaries are composed of pairs of keys (which must be " "unique) and values. Dictionaries will preserve the insertion order when " "adding elements, even though this may not be reflected when printing the " "dictionary. In other programming languages, this data structure is sometimes " "referred to as a hash map or associative array.\n" "You can define a dictionary by placing a comma-separated list of [code]key: " "value[/code] pairs in curly braces [code]{}[/code].\n" "Erasing elements while iterating over them [b]is not supported[/b] and will " "result in undefined behavior.\n" "[b]Note:[/b] Dictionaries are always passed by reference. To get a copy of a " "dictionary which can be modified independently of the original dictionary, " "use [method duplicate].\n" "Creating a dictionary:\n" "[codeblock]\n" "var my_dict = {} # Creates an empty dictionary.\n" "\n" "var dict_variable_key = \"Another key name\"\n" "var dict_variable_value = \"value2\"\n" "var another_dict = {\n" " \"Some key name\": \"value1\",\n" " dict_variable_key: dict_variable_value,\n" "}\n" "\n" "var points_dict = {\"White\": 50, \"Yellow\": 75, \"Orange\": 100}\n" "\n" "# Alternative Lua-style syntax.\n" "# Doesn't require quotes around keys, but only string constants can be used " "as key names.\n" "# Additionally, key names must start with a letter or an underscore.\n" "# Here, `some_key` is a string literal, not a variable!\n" "another_dict = {\n" " some_key = 42,\n" "}\n" "[/codeblock]\n" "You can access a dictionary's values by referencing the appropriate key. In " "the above example, [code]points_dict[\"White\"][/code] will return [code]50[/" "code]. You can also write [code]points_dict.White[/code], which is " "equivalent. However, you'll have to use the bracket syntax if the key you're " "accessing the dictionary with isn't a fixed string (such as a number or " "variable).\n" "[codeblock]\n" "export(String, \"White\", \"Yellow\", \"Orange\") var my_color\n" "var points_dict = {\"White\": 50, \"Yellow\": 75, \"Orange\": 100}\n" "func _ready():\n" " # We can't use dot syntax here as `my_color` is a variable.\n" " var points = points_dict[my_color]\n" "[/codeblock]\n" "In the above code, [code]points[/code] will be assigned the value that is " "paired with the appropriate color selected in [code]my_color[/code].\n" "Dictionaries can contain more complex data:\n" "[codeblock]\n" "my_dict = {\"First Array\": [1, 2, 3, 4]} # Assigns an Array to a String " "key.\n" "[/codeblock]\n" "To add a key to an existing dictionary, access it like an existing key and " "assign to it:\n" "[codeblock]\n" "var points_dict = {\"White\": 50, \"Yellow\": 75, \"Orange\": 100}\n" "points_dict[\"Blue\"] = 150 # Add \"Blue\" as a key and assign 150 as its " "value.\n" "[/codeblock]\n" "Finally, dictionaries can contain different types of keys and values in the " "same dictionary:\n" "[codeblock]\n" "# This is a valid dictionary.\n" "# To access the string \"Nested value\" below, use `my_dict.sub_dict." "sub_key` or `my_dict[\"sub_dict\"][\"sub_key\"]`.\n" "# Indexing styles can be mixed and matched depending on your needs.\n" "var my_dict = {\n" " \"String Key\": 5,\n" " 4: [1, 2, 3],\n" " 7: \"Hello\",\n" " \"sub_dict\": {\"sub_key\": \"Nested value\"},\n" "}\n" "[/codeblock]\n" "[b]Note:[/b] Unlike [Array]s, you can't compare dictionaries directly:\n" "[codeblock]\n" "array1 = [1, 2, 3]\n" "array2 = [1, 2, 3]\n" "\n" "func compare_arrays():\n" " print(array1 == array2) # Will print true.\n" "\n" "var dict1 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "var dict2 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "\n" "func compare_dictionaries():\n" " print(dict1 == dict2) # Will NOT print true.\n" "[/codeblock]\n" "You need to first calculate the dictionary's hash with [method hash] before " "you can compare them:\n" "[codeblock]\n" "var dict1 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "var dict2 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "\n" "func compare_dictionaries():\n" " print(dict1.hash() == dict2.hash()) # Will print true.\n" "[/codeblock]\n" "[b]Note:[/b] When declaring a dictionary with [code]const[/code], the " "dictionary itself can still be mutated by defining the values of individual " "keys. Using [code]const[/code] will only prevent assigning the constant with " "another value after it was initialized." msgstr "" "字典类型。关联容器,包含由唯一键引用的值。字典由键(必须是唯一的)和值对组" "成。当添加元素时,字典将保留插入顺序,即使在打印字典时可能不会反映出来。在其" "他编程语言中,这种数据结构有时被称为哈希表或关联数组。\n" "您可以通过在大括号 [code]{}[/code] 中放置一个以逗号分隔的 [code]key: value[/" "code] 对的列表来定义一个字典。\n" "[b]不支持[/b]在迭代元素时擦除元素,会导致未定义行为。\n" "[b]注意:[/b]字典总是通过引用传递的。要获得一个可以独立于原始字典进行修改的字" "典副本,请使用 [method duplicate]。\n" "创建字典:\n" "[codeblock]\n" "var my_dict = {} # 创建空字典\n" "\n" "var dict_variable_key = \"Another key name\"\n" "var dict_variable_value = \"value2\"\n" "var another_dict = {\n" " \"Some key name\": \"value1\",\n" " dict_variable_key: dict_variable_value,\n" "}\n" "\n" "var points_dict = {\"White\": 50, \"Yellow\": 75, \"Orange\": 100}\n" "\n" "# 可替代的 Lua 风格语法。\n" "# 键并不需要加引号,但只有字符常量参数能被用作键名。\n" "# 并且,键名必须以字母或下划线开头。\n" "# 这里,some_key 是一个字符串,不是变量!\n" "another_dict = {\n" " some_key = 42,\n" "}\n" "[/codeblock]\n" "你可以通过引用合适的键来访问一个字典。在上方的示例中," "[code]points_dir[\"White\"][/code] 会返回 [code]50[/code]。你也可以写成 " "[code]points_dir.White[/code],效果都是相同的。但是如果你需要访问的键不是一个" "固定的字符串(比如数字或变量)时,你需要使用方括号。\n" "[codeblock]\n" "export(String, \"White\", \"Yellow\", \"Orange\") var my_color\n" "var points_dir = {\"White\": 50, \"Yellow\": 75, \"Orange\": 100}\n" "func _ready():\n" " # 这里我们不能使用点,因为‘my_color’是个变量。\n" " var points = points_dir[my_color]\n" "[/codeblock]\n" "在上方的代码中,[code]points[/code] 会被赋值为 [code]my_color[/code]中选取的" "颜色。\n" "字典可以容纳更加复杂的数据:\n" "[codeblock]\n" "my_dir = {\"First Array\": [1, 2, 3, 4]} # 将一个数组分配给一个字符串键。\n" "[/codeblock]\n" "如果想要给字典添加一个键,可以像访问已有的键一样:\n" "[codeblock]\n" "var points_dir = {\"White\": 50, \"Yellow\": 75, \"Orange\": 100}\n" "points_dir[\"Blue\"] = 150 # 添加键\"Blue\",并将其数值设定为150\n" "[/codeblock]\n" "最终,同一个字典内可以容纳不同类型的键和值:\n" "[codeblock]\n" "# 这是一个合法的字典。\n" "# 使用`my_dir.sub_dir.sub_key`或`my_dir[\"sub_dir\"][\"sub_key\"]`来访问下方" "的字符串\"Nested value\"。\n" "# 根据你不同的需求可以修改索引样式。\n" "var my_dir = {\n" " \"String Key\": 5,\n" " 4: [1, 2, 3],\n" " 7: \"Hello\",\n" " \"sub_dir\": {\"sub_key\": \"Nested value\"},\n" "}\n" "[/codeblock]\n" "[b]注意:[/b]和数组不同的是,你不能直接进行字典对比:\n" "[codeblock]\n" "array1 = [1, 2, 3]\n" "array2 = [1, 2, 3]\n" "\n" "func compare_arrays():\n" " print(array1 == array2) # 会输出true。\n" "\n" "dir1 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "dir2 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "\n" "func compare_dictionaries():\n" " print(dir1 == dir2) # 不会输出true。\n" "[/codeblock]\n" "想要对比字典,首先需要用 [method hash] 计算字典哈希。\n" "[codeblock]\n" "dir1 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "dir2 = {\"a\": 1, \"b\": 2, \"c\": 3}\n" "\n" "func compare_dictionaries():\n" " print(dir1.hash() == dir2.hash()) # 会输出true。\n" "[/codeblock]\n" "[b]注意:[/b]当使用 [code]const[/code] 来声明字典时,字典本身依然可以通过定义" "键的数值来进行修改。使用 [code]const[/code] 只能防止在它初始化完成后被给予另" "一个数值。" #: doc/classes/Dictionary.xml msgid "GDScript basics: Dictionary" msgstr "GDScript 基础:字典" #: doc/classes/Dictionary.xml msgid "Clear the dictionary, removing all key/value pairs." msgstr "清除字典,删除所有键/值对。" #: doc/classes/Dictionary.xml msgid "" "Creates a copy of the dictionary, and returns it. The [code]deep[/code] " "parameter causes inner dictionaries and arrays to be copied recursively, but " "does not apply to objects." msgstr "" "创建一个字典的副本,并返回它。[code]deep[/code] 参数使内部字典和数组被递归复" "制,但不适用于对象。" #: doc/classes/Dictionary.xml msgid "Returns [code]true[/code] if the dictionary is empty." msgstr "如果字典为空,返回 [code]true[/code]。" #: doc/classes/Dictionary.xml msgid "" "Erase a dictionary key/value pair by key. Returns [code]true[/code] if the " "given key was present in the dictionary, [code]false[/code] otherwise.\n" "[b]Note:[/b] Don't erase elements while iterating over the dictionary. You " "can iterate over the [method keys] array instead." msgstr "" "依据键擦除字典的键值对。如果指定的键存在于字典中,返回 [code]true[/code] ,否" "则返回 [code]false[/code] 。\n" "[b]注意:[/b]在迭代字典时不要擦除元素。可以迭代 [method keys] 数组。" #: doc/classes/Dictionary.xml msgid "" "Returns the current value for the specified key in the [Dictionary]. If the " "key does not exist, the method returns the value of the optional default " "argument, or [code]null[/code] if it is omitted." msgstr "" "返回[Dictionary]中指定键的当前值。如果键不存在,则该方法返回可选默认参数的" "值;如果省略,则返回 [code]null[/code]。" #: doc/classes/Dictionary.xml msgid "" "Returns [code]true[/code] if the dictionary has a given key.\n" "[b]Note:[/b] This is equivalent to using the [code]in[/code] operator as " "follows:\n" "[codeblock]\n" "# Will evaluate to `true`.\n" "if \"godot\" in {\"godot\": \"engine\"}:\n" " pass\n" "[/codeblock]\n" "This method (like the [code]in[/code] operator) will evaluate to [code]true[/" "code] as long as the key exists, even if the associated value is [code]null[/" "code]." msgstr "" "如果字典有一个给定的键,返回 [code]true[/code]。\n" "[b]注意:[/b]这相当于使用 [code]in[/code] 运算符,如下所示:\n" "[codeblock]\n" "# 估值为 `true`。\n" "if \"godot\" in {\"godot\": \"engine\"}:\n" " pass\n" "[/codeblock]\n" "只要键存在,即使相关的值是 [code]null[/code],这个方法(就像 [code]in[/code] " "运算符一样)也会评估为 [code]true[/code]。" #: doc/classes/Dictionary.xml msgid "" "Returns [code]true[/code] if the dictionary has all the keys in the given " "array." msgstr "如果字典具有给定数组中的所有键,则返回 [code]true[/code] 。" #: doc/classes/Dictionary.xml msgid "" "Returns a hashed 32-bit integer value representing the dictionary contents. " "This can be used to compare dictionaries by value:\n" "[codeblock]\n" "var dict1 = {0: 10}\n" "var dict2 = {0: 10}\n" "# The line below prints `true`, whereas it would have printed `false` if " "both variables were compared directly.\n" "print(dict1.hash() == dict2.hash())\n" "[/codeblock]\n" "[b]Note:[/b] Dictionaries with the same keys/values but in a different order " "will have a different hash.\n" "[b]Note:[/b] Dictionaries with equal content will always produce identical " "hash values. However, the reverse is not true. Returning identical hash " "values does [i]not[/i] imply the dictionaries are equal, because different " "dictionaries can have identical hash values due to hash collisions." msgstr "" "返回代表该字典内容的 32 位整数哈希值。可用于按值比较字典:\n" "[codeblock]\n" "var dict1 = {0: 10}\n" "var dict2 = {0: 10}\n" "# 下面这一行会输出 `true`,而如果直接比较这两个变量就会输出 `false`。\n" "print(dict1.hash() == dict2.hash())\n" "[/codeblock]\n" "[b]注意:[/b]具有相同键/值但顺序不同的字典将有不同的哈希值。\n" "[b]注意:[/b]内容相同的字典会得到一致的哈希值。然而,反之不然。返回一致的哈希" "值[i]并不[/i]意味着字典相等,因为不同的字典可能因为哈希碰撞而得到一致的哈希" "值。" #: doc/classes/Dictionary.xml msgid "Returns the list of keys in the [Dictionary]." msgstr "返回[Dictionary]中的键列表。" #: doc/classes/Dictionary.xml msgid "Returns the number of keys in the dictionary." msgstr "返回字典中键的数量。" #: doc/classes/Dictionary.xml msgid "Returns the list of values in the [Dictionary]." msgstr "返回[Dictionary]中的值列表。" #: doc/classes/DirectionalLight.xml msgid "Directional light from a distance, as from the Sun." msgstr "来自远处的平行光,如太阳光。" #: doc/classes/DirectionalLight.xml msgid "" "A directional light is a type of [Light] node that models an infinite number " "of parallel rays covering the entire scene. It is used for lights with " "strong intensity that are located far away from the scene to model sunlight " "or moonlight. The worldspace location of the DirectionalLight transform " "(origin) is ignored. Only the basis is used to determine light direction." msgstr "" "平行光是一种 [Light] 类型的节点,它可以模拟出覆盖整个场景的无限多的平行光线。" "可以用作离场景很远、具有强烈强度的灯光,模拟太阳光或月光。DirectionalLight 变" "换的世界空间坐标(原点)会被忽略。只会用基来确定光线的方向。" #: doc/classes/DirectionalLight.xml msgid "" "Amount of extra bias for shadow splits that are far away. If self-shadowing " "occurs only on the splits far away, increasing this value can fix them." msgstr "" "远处阴影分裂的额外偏置量。如果自身阴影只产生远处的分裂,增加这个值可以修复它" "们。" #: doc/classes/DirectionalLight.xml msgid "" "If [code]true[/code], shadow detail is sacrificed in exchange for smoother " "transitions between splits." msgstr "" "如果[code]true[/code],则会牺牲阴影细节,以换取更平滑的分割之间的过渡。" #: doc/classes/DirectionalLight.xml msgid "" "Optimizes shadow rendering for detail versus movement. See [enum " "ShadowDepthRange]." msgstr "优化阴影渲染的细节与运动。参阅[enum ShadowDepthRange]。" #: doc/classes/DirectionalLight.xml msgid "The maximum distance for shadow splits." msgstr "阴影分割的最大距离。" #: doc/classes/DirectionalLight.xml msgid "The light's shadow rendering algorithm. See [enum ShadowMode]." msgstr "灯光的阴影渲染算法。参阅[enum ShadowMode]。" #: doc/classes/DirectionalLight.xml msgid "" "Can be used to fix special cases of self shadowing when objects are " "perpendicular to the light." msgstr "当物体垂直于光线时,可用于修复自身阴影的特殊情况。" #: doc/classes/DirectionalLight.xml msgid "" "The distance from camera to shadow split 1. Relative to [member " "directional_shadow_max_distance]. Only used when [member " "directional_shadow_mode] is [code]SHADOW_PARALLEL_2_SPLITS[/code] or " "[code]SHADOW_PARALLEL_4_SPLITS[/code]." msgstr "" "相机到影子分割1的距离。相对于[member directional_shadow_max_distance]。只有当" "[member directional_shadow_mode]是[code]SHADOW_PARALLEL_2_SPLITS[/code]或" "[code]SHADOW_PARALLEL_4_SPLITS[/code]时才使用。" #: doc/classes/DirectionalLight.xml msgid "" "The distance from shadow split 1 to split 2. Relative to [member " "directional_shadow_max_distance]. Only used when [member " "directional_shadow_mode] is [code]SHADOW_PARALLEL_2_SPLITS[/code] or " "[code]SHADOW_PARALLEL_4_SPLITS[/code]." msgstr "" "阴影分割1到分割2的距离。相对于[member directional_shadow_max_distance]。仅在" "[member directional_shadow_mode]为[code]SHADOW_PARALLEL_2_SPLITS[/code]或" "[code]SHADOW_PARALLEL_4_SPLITS[/code]时使用。" #: doc/classes/DirectionalLight.xml msgid "" "The distance from shadow split 2 to split 3. Relative to [member " "directional_shadow_max_distance]. Only used when [member " "directional_shadow_mode] is [code]SHADOW_PARALLEL_4_SPLITS[/code]." msgstr "" "从影子分割2到分割3的距离。相对于[member directional_shadow_max_distance]。只" "有当[member directional_shadow_mode]为[code]SHADOW_PARALLEL_4_SPLITS[/code]时" "才使用。" #: doc/classes/DirectionalLight.xml msgid "" "Renders the entire scene's shadow map from an orthogonal point of view. This " "is the fastest directional shadow mode. May result in blurrier shadows on " "close objects." msgstr "" "从正交的角度渲染整个场景的阴影图。这是最快的方向性阴影模式。可能会导致近距离" "物体的阴影更模糊。" #: doc/classes/DirectionalLight.xml msgid "" "Splits the view frustum in 2 areas, each with its own shadow map. This " "shadow mode is a compromise between [constant SHADOW_ORTHOGONAL] and " "[constant SHADOW_PARALLEL_4_SPLITS] in terms of performance." msgstr "" "将视图分割成2个区域,每个区域都有自己的阴影图。这个阴影模式是[constant " "SHADOW_ORTHOGONAL]和[constant SHADOW_PARALLEL_4_SPLITS]在性能上的折中。" #: doc/classes/DirectionalLight.xml msgid "" "Splits the view frustum in 4 areas, each with its own shadow map. This is " "the slowest directional shadow mode." msgstr "" "将视图frustum分成4个区域,每个区域都有自己的阴影图。这是最慢的方向性阴影模" "式。" #: doc/classes/DirectionalLight.xml msgid "" "Keeps the shadow stable when the camera moves, at the cost of lower " "effective shadow resolution." msgstr "当相机移动时,保持影子稳定,但代价是降低有效影子分辨率。" #: doc/classes/DirectionalLight.xml msgid "" "Tries to achieve maximum shadow resolution. May result in saw effect on " "shadow edges. This mode typically works best in games where the camera will " "often move at high speeds, such as most racing games." msgstr "" "尝试实现最大的阴影分辨率。可能导致阴影边缘出现锯齿效果。此模式通常在相机经常" "高速移动的游戏中效果最好,例如大多数赛车游戏。" #: doc/classes/Directory.xml msgid "Type used to handle the filesystem." msgstr "用于处理文件系统的类型。" #: doc/classes/Directory.xml msgid "" "Directory type. It is used to manage directories and their content (not " "restricted to the project folder).\n" "When creating a new [Directory], its default opened directory will be " "[code]res://[/code]. This may change in the future, so it is advised to " "always use [method open] to initialize your [Directory] where you want to " "operate, with explicit error checking.\n" "[b]Note:[/b] Many resources types are imported (e.g. textures or sound " "files), and their source asset will not be included in the exported game, as " "only the imported version is used. Use [ResourceLoader] to access imported " "resources.\n" "Here is an example on how to iterate through the files of a directory:\n" "[codeblock]\n" "func dir_contents(path):\n" " var dir = Directory.new()\n" " if dir.open(path) == OK:\n" " dir.list_dir_begin()\n" " var file_name = dir.get_next()\n" " while file_name != \"\":\n" " if dir.current_is_dir():\n" " print(\"Found directory: \" + file_name)\n" " else:\n" " print(\"Found file: \" + file_name)\n" " file_name = dir.get_next()\n" " else:\n" " print(\"An error occurred when trying to access the path.\")\n" "[/codeblock]" msgstr "" "目录类型。用于管理目录及其内容(并不仅限于项目文件夹)。\n" "新建 [Directory] 时,其默认打开的目录为 [code]res://[/code]。这在将来可能会改" "变,因此建议始终使用 [method open] 将您要操作的 [Directory] 初始化至想要操作" "的位置,并进行显式的错误检查。\n" "[b]注意:[/b]很多资源类型是经过导入的(例如纹理或声音文件),导出后的游戏中不" "会包含源素材,只会使用导入后的版本。请使用 [ResourceLoader] 访问导入后的资" "源。\n" "下面是一个关于如何遍历目录文件的示例:\n" "[codeblock]\n" "func dir_contents(path):\n" " var dir = Directory.new()\n" " if dir.open(path) == OK:\n" " dir.list_dir_begin()\n" " var file_name = dir.get_next()\n" " while file_name != \"\":\n" " if dir.current_is_dir():\n" " print(\"发现目录:\" + file_name)\n" " else:\n" " print(\"发现文件:\" + file_name)\n" " file_name = dir.get_next()\n" " else:\n" " print(\"尝试访问路径时出错。\")\n" "[/codeblock]" #: doc/classes/Directory.xml msgid "" "Changes the currently opened directory to the one passed as an argument. The " "argument can be relative to the current directory (e.g. [code]newdir[/code] " "or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/" "code] or [code]res://somedir/newdir[/code]).\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "将当前打开的目录改为参数传递的目录。参数可以是相对于当前目录的(例如 " "[code]newdir[/code] 或 [code].../newdir[/code]),也可以是绝对路径(例如 " "[code]/tmp/newdir[/code] 或 [code]res://somedir/newdir[/code])。\n" "返回 [enum Error] 代码常量之一 ([code]OK[/code] 成功时)。" #: doc/classes/Directory.xml msgid "" "Copies the [code]from[/code] file to the [code]to[/code] destination. Both " "arguments should be paths to files, either relative or absolute. If the " "destination file exists and is not access-protected, it will be " "overwritten.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "将 [code]from[/code] 文件复制到 [code]to[/code] 目标位置。两个参数都应该是相" "对或绝对文件的路径。如果目标文件存在且没有访问保护,则会被覆盖。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/Directory.xml msgid "" "Returns whether the current item processed with the last [method get_next] " "call is a directory ([code].[/code] and [code]..[/code] are considered " "directories)." msgstr "" "返回上一次 [method get_next] 调用处理的当前项目是否为目录([code].[/code]和" "[code].[/code]被认为是目录)。" #: doc/classes/Directory.xml msgid "" "Returns whether the target directory exists. The argument can be relative to " "the current directory, or an absolute path." msgstr "" "返回目标目录是否存在。参数可以是相对于当前目录的路径,也可以是绝对路径。" #: doc/classes/Directory.xml msgid "" "Returns whether the target file exists. The argument can be relative to the " "current directory, or an absolute path." msgstr "" "返回目标文件是否存在。参数可以是相对于当前目录的路径,也可以是绝对路径。" #: doc/classes/Directory.xml msgid "" "Returns the absolute path to the currently opened directory (e.g. " "[code]res://folder[/code] or [code]C:\\tmp\\folder[/code])." msgstr "" "返回当前打开目录的绝对路径(例如[code]res://文件夹[/code]或[code]C:\\tmp\\文" "件夹[/code])。" #: doc/classes/Directory.xml msgid "" "Returns the currently opened directory's drive index. See [method get_drive] " "to convert returned index to the name of the drive." msgstr "" "返回当前打开的目录的驱动器索引。请参阅[method get_drive]将返回的索引转换为驱" "动器的名称。" #: doc/classes/Directory.xml msgid "" "On Windows, returns the name of the drive (partition) passed as an argument " "(e.g. [code]C:[/code]).\n" "On macOS, returns the path to the mounted volume passed as an argument.\n" "On Linux, returns the path to the mounted volume or GTK 3 bookmark passed as " "an argument.\n" "On other platforms, or if the requested drive does not exist, the method " "returns an empty String." msgstr "" "在 Windows 上,返回作为参数传递的驱动器(分区)的名称(例如 [code]C:[/" "code])。\n" "在 macOS 上,返回作为参数传递的挂载卷的路径。\n" "在 Linux 上,返回作为参数传递的挂载卷或 GTK 3 书签的路径。\n" "在其他平台上,或者当请求的驱动器不存在时,该方法会返回空的 String。" #: doc/classes/Directory.xml msgid "" "On Windows, returns the number of drives (partitions) mounted on the current " "filesystem.\n" "On macOS, returns the number of mounted volumes.\n" "On Linux, returns the number of mounted volumes and GTK 3 bookmarks.\n" "On other platforms, the method returns 0." msgstr "" "在 Windows 上,返回挂载在当前文件系统上的驱动器(分区)数量。\n" "在 macOS 上,返回挂载卷的数量。\n" "在 Linux 上,返回挂载卷与 GTK 3 书签的数量。\n" "在其他平台上,该方法返回 0。" #: doc/classes/Directory.xml msgid "" "Returns the next element (file or directory) in the current directory " "(including [code].[/code] and [code]..[/code], unless " "[code]skip_navigational[/code] was given to [method list_dir_begin]).\n" "The name of the file or directory is returned (and not its full path). Once " "the stream has been fully processed, the method returns an empty String and " "closes the stream automatically (i.e. [method list_dir_end] would not be " "mandatory in such a case)." msgstr "" "返回当前目录中的下一个元素(文件或目录)(包括[code].[/code]和[code].[/" "code],除非[code]skip_navigational[/code]被赋予[method list_dir_begin])。\n" "返回的是文件或目录的名称(而不是它的完整路径)。一旦流被完全处理,该方法返回" "一个空的String,并自动关闭流(即在这种情况下,[method list_dir_end]将不是强制" "性的)。" #: doc/classes/Directory.xml msgid "" "On UNIX desktop systems, returns the available space on the current " "directory's disk. On other platforms, this information is not available and " "the method returns 0 or -1." msgstr "" "在UNIX桌面系统上,返回当前目录磁盘上的可用空间。在其他平台上,此信息不可用," "该方法返回0或-1。" #: doc/classes/Directory.xml msgid "" "Initializes the stream used to list all files and directories using the " "[method get_next] function, closing the currently opened stream if needed. " "Once the stream has been processed, it should typically be closed with " "[method list_dir_end].\n" "If [code]skip_navigational[/code] is [code]true[/code], [code].[/code] and " "[code]..[/code] are filtered out.\n" "If [code]skip_hidden[/code] is [code]true[/code], hidden files are filtered " "out." msgstr "" "初始化用于列出所有文件和目录的流,使用 [method get_next] 函数,如果需要,可关" "闭当前打开的流。一旦流被处理完毕,通常应该用 [method list_dir_end] 关闭。\n" "[code]skip_navigational[/code] 为 [code]true[/code] 时会过滤掉 [code].[/" "code] 和 [code]..[/code]。\n" "[code]skip_hidden[/code] 为 [code]true[/code] 时会过滤掉隐藏文件。" #: doc/classes/Directory.xml msgid "" "Closes the current stream opened with [method list_dir_begin] (whether it " "has been fully processed with [method get_next] does not matter)." msgstr "" "关闭用[method list_dir_begin]打开的当前流,并不关注是否已经用[method " "get_next]完成处理。" #: doc/classes/Directory.xml msgid "" "Creates a directory. The argument can be relative to the current directory, " "or an absolute path. The target directory should be placed in an already " "existing directory (to create the full path recursively, see [method " "make_dir_recursive]).\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "创建一个目录。参数可以是当前目录的相对路径,也可以是绝对路径。目标目录应该放" "置在一个已经存在的目录中(如果要递归创建完整的路径,请参阅[method " "make_dir_recursive])。\n" "返回 [enum Error] 代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/Directory.xml msgid "" "Creates a target directory and all necessary intermediate directories in its " "path, by calling [method make_dir] recursively. The argument can be relative " "to the current directory, or an absolute path.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "通过递归调用 [method make_dir]方法,创建一个目标目录和其路径中所有必要的中间" "目录。参数可以是相对于当前目录的,也可以是绝对路径。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/Directory.xml msgid "" "Opens an existing directory of the filesystem. The [code]path[/code] " "argument can be within the project tree ([code]res://folder[/code]), the " "user directory ([code]user://folder[/code]) or an absolute path of the user " "filesystem (e.g. [code]/tmp/folder[/code] or [code]C:\\tmp\\folder[/code]).\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "打开文件系统的现有目录。 [code]path[/code]参数可以位于项目树([code]res:// " "folder[/code]),用户目录([code]user:// folder[/code])或以下位置的绝对路径" "内:用户文件系统(例如[code]/ tmp / folder[/code]或[code]C:\\ tmp \\ " "folder[/code])。\n" "返回[enum Error]代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/Directory.xml msgid "" "Permanently deletes the target file or an empty directory. The argument can " "be relative to the current directory, or an absolute path. If the target " "directory is not empty, the operation will fail.\n" "If you don't want to delete the file/directory permanently, use [method OS." "move_to_trash] instead.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "永久删除目标文件或空目录。参数可以是相对于当前目录的,也可以是绝对路径。如果" "目标目录不是空的,操作将失败。\n" "如果你不想永久删除该文件/目录,请使用 [method OS.move_to_trash] 代替。\n" "返回 [enum Error] 代码常量之一(成功时返回 [code]OK[/code])。" #: doc/classes/Directory.xml msgid "" "Renames (move) the [code]from[/code] file or directory to the [code]to[/" "code] destination. Both arguments should be paths to files or directories, " "either relative or absolute. If the destination file or directory exists and " "is not access-protected, it will be overwritten.\n" "Returns one of the [enum Error] code constants ([code]OK[/code] on success)." msgstr "" "将 [code]from[/code] 文件或目录重命名且移动到 [code]to[/code] 目标。两个参数" "都应该是文件或目录的相对路径或绝对路径。如果目标文件或目录存在且不受访问保" "护,它将被覆盖。\n" "返回 [enum Error] 代码常量之一,成功时返回 [code]OK[/code]。" #: doc/classes/DTLSServer.xml msgid "Helper class to implement a DTLS server." msgstr "实现DTLS服务器的辅助类。" #: doc/classes/DTLSServer.xml msgid "" "This class is used to store the state of a DTLS server. Upon [method setup] " "it converts connected [PacketPeerUDP] to [PacketPeerDTLS] accepting them via " "[method take_connection] as DTLS clients. Under the hood, this class is used " "to store the DTLS state and cookies of the server. The reason of why the " "state and cookies are needed is outside of the scope of this documentation.\n" "Below a small example of how to use it:\n" "[codeblock]\n" "# server.gd\n" "extends Node\n" "\n" "var dtls := DTLSServer.new()\n" "var server := UDPServer.new()\n" "var peers = []\n" "\n" "func _ready():\n" " server.listen(4242)\n" " var key = load(\"key.key\") # Your private key.\n" " var cert = load(\"cert.crt\") # Your X509 certificate.\n" " dtls.setup(key, cert)\n" "\n" "func _process(delta):\n" " while server.is_connection_available():\n" " var peer : PacketPeerUDP = server.take_connection()\n" " var dtls_peer : PacketPeerDTLS = dtls.take_connection(peer)\n" " if dtls_peer.get_status() != PacketPeerDTLS.STATUS_HANDSHAKING:\n" " continue # It is normal that 50% of the connections fails due to " "cookie exchange.\n" " print(\"Peer connected!\")\n" " peers.append(dtls_peer)\n" " for p in peers:\n" " p.poll() # Must poll to update the state.\n" " if p.get_status() == PacketPeerDTLS.STATUS_CONNECTED:\n" " while p.get_available_packet_count() > 0:\n" " print(\"Received message from client: %s\" % p.get_packet()." "get_string_from_utf8())\n" " p.put_packet(\"Hello DTLS client\".to_utf8())\n" "[/codeblock]\n" "[codeblock]\n" "# client.gd\n" "extends Node\n" "\n" "var dtls := PacketPeerDTLS.new()\n" "var udp := PacketPeerUDP.new()\n" "var connected = false\n" "\n" "func _ready():\n" " udp.connect_to_host(\"127.0.0.1\", 4242)\n" " dtls.connect_to_peer(udp, false) # Use true in production for " "certificate validation!\n" "\n" "func _process(delta):\n" " dtls.poll()\n" " if dtls.get_status() == PacketPeerDTLS.STATUS_CONNECTED:\n" " if !connected:\n" " # Try to contact server\n" " dtls.put_packet(\"The answer is... 42!\".to_utf8())\n" " while dtls.get_available_packet_count() > 0:\n" " print(\"Connected: %s\" % dtls.get_packet()." "get_string_from_utf8())\n" " connected = true\n" "[/codeblock]" msgstr "" "这个类用来存储 DTLS 服务器的状态。在 [method setup] 时,它将连接的 " "[PacketPeerUDP] 转换为 [PacketPeerDTLS],通过 [method take_connection] 接受它" "们作为 DTLS 客户端。底下,这个类是用来存储服务器的 DTLS 状态和 cookie 的。为" "什么需要状态和 cookie 的原因不在本文档的范围内。\n" "下面以一个小例子来说明如何使用它。\n" "[codeblock]\n" "# server.gd\n" "extends Node\n" "\n" "var dtls := DTLSServer.new()\n" "var server := UDPServer.new()\n" "var peers = []\n" "\n" "func _ready():\n" " server.listen(4242)\n" " var key = load(\"key.key\") # 你的私钥。\n" " var cert = load(\"cert.crt\") # 你的 X509 证书。\n" " dtls.setup(key, cert)\n" "\n" "func _process(delta):\n" " while server.is_connection_available():\n" " var peer : PacketPeerUDP = server.take_connection()\n" " var dtls_peer : PacketPeerDTLS = dtls.take_connection(peer)\n" " if dtls_peer.get_status() != PacketPeerDTLS.STATUS_HANDSHAKING:\n" " continue # 由于 cookie 交换,50% 的连接会失败,这是正常现象。\n" " print(\"对等体已连接!\")\n" " peers.append(dtls_peer)\n" " for p in peers:\n" " p.poll() # Must poll to update the state.\n" " if p.get_status() == PacketPeerDTLS.STATUS_CONNECTED:\n" " while p.get_available_packet_count() > 0:\n" " print(\"从客户的收到消息:%s\" % p.get_packet()." "get_string_from_utf8())\n" " p.put_packet(\"Hello DTLS 客户端\".to_utf8())\n" "[/codeblock]\n" "[codeblock]\n" "# client.gd\n" "extends Node\n" "\n" "var dtls := PacketPeerDTLS.new()\n" "var udp := PacketPeerUDP.new()\n" "var connected = false\n" "\n" "func _ready():\n" " udp.connect_to_host(\"127.0.0.1\", 4242)\n" " dtls.connect_to_peer(udp, false) # 生产环境中请使用 true 进行证书校验!\n" "\n" "func _process(delta):\n" " dtls.poll()\n" " if dtls.get_status() == PacketPeerDTLS.STATUS_CONNECTED:\n" " if !connected:\n" " # 尝试联系服务器\n" " dtls.put_packet(\"答案是……42!\".to_utf8())\n" " while dtls.get_available_packet_count() > 0:\n" " print(\"已连接:%s\" % dtls.get_packet()." "get_string_from_utf8())\n" " connected = true\n" "[/codeblock]" #: doc/classes/DTLSServer.xml msgid "" "Setup the DTLS server to use the given [code]private_key[/code] and provide " "the given [code]certificate[/code] to clients. You can pass the optional " "[code]chain[/code] parameter to provide additional CA chain information " "along with the certificate." msgstr "" "设置 DTLS 服务器使用给定的 [code]private_key[/code] 并向客户端提供给定的 " "[code]certificate[/code] 。您可以传递可选的 [code]chain[/code] 参数,以便在提" "供证书的同时提供额外的 CA 证书息。" #: doc/classes/DTLSServer.xml msgid "" "Try to initiate the DTLS handshake with the given [code]udp_peer[/code] " "which must be already connected (see [method PacketPeerUDP." "connect_to_host]).\n" "[b]Note:[/b] You must check that the state of the return PacketPeerUDP is " "[constant PacketPeerDTLS.STATUS_HANDSHAKING], as it is normal that 50% of " "the new connections will be invalid due to cookie exchange." msgstr "" "尝试与给定的 [code]udp_peer[/code] 启动 DTLS 握手,该 peer 必须已经连接,请参" "阅 [method PacketPeerUDP.connect_to_host]。\n" "[b]注意:[/b]你必须检查返回 PacketPeerUDP 的状态是否为 [constant " "PacketPeerDTLS.STATUS_HANDSHAKING],因为正常情况下,50% 的新连接会因为 " "cookie 交换而无效。" #: doc/classes/DynamicFont.xml msgid "DynamicFont renders vector font files at runtime." msgstr "DynamicFont 在运行时渲染矢量字体文件。" #: doc/classes/DynamicFont.xml msgid "" "DynamicFont renders vector font files dynamically at runtime instead of " "using a prerendered texture atlas like [BitmapFont]. This trades the faster " "loading time of [BitmapFont]s for the ability to change font parameters like " "size and spacing during runtime. [DynamicFontData] is used for referencing " "the font file paths. DynamicFont also supports defining one or more fallback " "fonts, which will be used when displaying a character not supported by the " "main font.\n" "DynamicFont uses the [url=https://www.freetype.org/]FreeType[/url] library " "for rasterization. Supported formats are TrueType ([code].ttf[/code]), " "OpenType ([code].otf[/code]), Web Open Font Format 1 ([code].woff[/code]), " "and Web Open Font Format 2 ([code].woff2[/code]).\n" "[codeblock]\n" "var dynamic_font = DynamicFont.new()\n" "dynamic_font.font_data = load(\"res://BarlowCondensed-Bold.ttf\")\n" "dynamic_font.size = 64\n" "$\"Label\".set(\"custom_fonts/font\", dynamic_font)\n" "[/codeblock]\n" "[b]Note:[/b] DynamicFont doesn't support features such as kerning, right-to-" "left typesetting, ligatures, text shaping, variable fonts and optional font " "features yet. If you wish to \"bake\" an optional font feature into a TTF " "font file, you can use [url=https://fontforge.org/]FontForge[/url] to do so. " "In FontForge, use [b]File > Generate Fonts[/b], click [b]Options[/b], choose " "the desired features then generate the font." msgstr "" "DynamicFont 在运行时动态渲染矢量字体文件,而不是像 [BitmapFont] 那样使用预渲" "染的纹理图集。通过放弃 [BitmapFont] 更快的加载时间,换取在运行时改变字体大小" "和间距等参数的能力。使用 [DynamicFontData] 引用字体文件路径。DynamicFont 还支" "持定义若干备用字体,这些字体将在主字体不支持显示某个字符时使用。\n" "DynamicFont 使用 [url=https://www.freetype.org/]FreeType[/url] 库进行光栅化处" "理。支持的格式有 TrueType([code].ttf[/code])、OpenType([code].otf[/" "code])、Web Open Font Format 1([code].woff[/code])、Web Open Font Format 2" "([code].woff2[/code])。\n" "[codeblock]\n" "var dynamic_font = DynamicFont.new()\n" "dynamic_font.font_data = load(\"res://BarlowCondensed-Bold.ttf\")\n" "dynamic_font.size = 64\n" "$\"Label\".set(\"custom_fonts/font\", dynamic_font)\n" "[/codeblock]\n" "[b]注意:[/b]DynamicFont 尚不支持字偶距、从右到左的排版、合字、文本变形、可变" "字体和可选字体等功能。如果你想把可选的字体功能“烘焙”进一个 TTF 字体文件,可以" "使用 [url=https://fontforge.org/]FontForge[/url]。在 FontForge 中,使用[b]文" "件 > 生成字体[/b],点击[b]选项[/b],选择需要的功能,然后生成字体。" #: doc/classes/DynamicFont.xml msgid "Adds a fallback font." msgstr "添加一个后备字体。" #: doc/classes/DynamicFont.xml msgid "" "Returns a string containing all the characters available in the main and all " "the fallback fonts.\n" "If a given character is included in more than one font, it appears only once " "in the returned string." msgstr "" "返回一个包含主字体和后备字体中所有可用字符的字符串。\n" "如果多个字体中包含同一个字符,那么它在返回的字符串第一次出现的位置。" #: doc/classes/DynamicFont.xml msgid "Returns the fallback font at index [code]idx[/code]." msgstr "返回位于索引[code]idx[/code]处的后备字体。" #: doc/classes/DynamicFont.xml msgid "Returns the number of fallback fonts." msgstr "返回后备字体的数量。" #: doc/classes/DynamicFont.xml msgid "" "Returns the spacing for the given [code]type[/code] (see [enum SpacingType])." msgstr "返回给定[code]type[/code]的间距(参阅[enum SpacingType])。" #: doc/classes/DynamicFont.xml msgid "Removes the fallback font at index [code]idx[/code]." msgstr "移除位于索引[code]idx[/code]处的后备字体。" #: doc/classes/DynamicFont.xml msgid "Sets the fallback font at index [code]idx[/code]." msgstr "设置索引[code]idx[/code]处的后备字体。" #: doc/classes/DynamicFont.xml msgid "" "Sets the spacing for [code]type[/code] (see [enum SpacingType]) to " "[code]value[/code] in pixels (not relative to the font size)." msgstr "" "给[code]type[/code]设置间距(参阅[enum SpacingType])为[code]value[/code],单位" "为像素(与字体大小无关)。" #: doc/classes/DynamicFont.xml msgid "Extra spacing at the bottom in pixels." msgstr "底部的额外间距,单位为像素。" #: doc/classes/DynamicFont.xml msgid "" "Extra spacing for each character in pixels.\n" "This can be a negative number to make the distance between characters " "smaller." msgstr "" "每个字符的额外间距,单位为像素。\n" "这可以是负数,使字符之间的距离更小。" #: doc/classes/DynamicFont.xml msgid "" "Extra spacing for the space character (in addition to [member " "extra_spacing_char]) in pixels.\n" "This can be a negative number to make the distance between words smaller." msgstr "" "空格字符的额外间距,单位是像素,除了[member extra_spacing_char]。\n" "这可以是负数,使字符之间的距离更小。" #: doc/classes/DynamicFont.xml msgid "Extra spacing at the top in pixels." msgstr "顶部的额外间距,单位为像素。" #: doc/classes/DynamicFont.xml msgid "The font data." msgstr "字体数据。" #: doc/classes/DynamicFont.xml msgid "" "The font outline's color.\n" "[b]Note:[/b] It's recommended to leave this at the default value so that you " "can adjust it in individual controls. For example, if the outline is made " "black here, it won't be possible to change its color using a Label's font " "outline modulate theme item." msgstr "" "字体轮廓的颜色。\n" "[b]注意:[/b]建议将此值保留为默认值,以便您可以在各个控件中对其进行调整。例" "如,如果在此处将轮廓设为黑色,则无法使用 Label 的字体轮廓调制主题项来更改其颜" "色。" #: doc/classes/DynamicFont.xml msgid "The font outline's thickness in pixels (not relative to the font size)." msgstr "字体轮廓的厚度,单位为像素(与字体大小无关)。" #: doc/classes/DynamicFont.xml msgid "The font size in pixels." msgstr "字体大小,单位为像素。" #: doc/classes/DynamicFont.xml msgid "" "If [code]true[/code], filtering is used. This makes the font blurry instead " "of pixelated when scaling it if font oversampling is disabled or " "ineffective. It's recommended to enable this when using the font in a " "control whose size changes over time, unless a pixel art aesthetic is " "desired." msgstr "" "为 [code]true[/code] 时将使用过滤功能。如果字体过度采样被禁用或无效,这将使字" "体在缩放时变得模糊,而非像素化。当在尺寸随时变化的控件中使用字体时,建议启用" "这个功能,除非是像素设计。" #: doc/classes/DynamicFont.xml msgid "" "If [code]true[/code], mipmapping is used. This improves the font's " "appearance when downscaling it if font oversampling is disabled or " "ineffective." msgstr "" "为 [code]true[/code] 时将使用 mipmap 多级渐远纹理。在字体过度采样被禁用或无效" "时,可改善字体缩小时的表现。" #: doc/classes/DynamicFont.xml msgid "Spacing at the top." msgstr "顶部间距。" #: doc/classes/DynamicFont.xml msgid "Spacing at the bottom." msgstr "底部间距。" #: doc/classes/DynamicFont.xml msgid "Spacing for each character." msgstr "每个字符的间距。" #: doc/classes/DynamicFont.xml msgid "Spacing for the space character." msgstr "空格字符的间距。" #: doc/classes/DynamicFontData.xml msgid "Used with [DynamicFont] to describe the location of a font file." msgstr "与 [DynamicFont] 一起使用,用于描述字体文件的位置。" #: doc/classes/DynamicFontData.xml msgid "" "Used with [DynamicFont] to describe the location of a vector font file for " "dynamic rendering at runtime." msgstr "" "与 [DynamicFont] 一起使用,用于描述运行时动态渲染的矢量字体文件的位置。" #: doc/classes/DynamicFontData.xml msgid "" "If [code]true[/code], the font is rendered with anti-aliasing. This property " "applies both to the main font and its outline (if it has one)." msgstr "" "为 [code]true[/code] 时将以抗锯齿方式渲染该字体。此属性既适用于主字体,也适用" "于其轮廓(如果有)。" #: doc/classes/DynamicFontData.xml msgid "The path to the vector font file." msgstr "矢量字体文件的路径。" #: doc/classes/DynamicFontData.xml msgid "The font hinting mode used by FreeType. See [enum Hinting] for options." msgstr "FreeType 使用的字体提示模式。参阅 [enum Hinting] 选项。" #: doc/classes/DynamicFontData.xml msgid "" "If set to a value greater than [code]0.0[/code], it will override default " "font oversampling, ignoring [member SceneTree.use_font_oversampling] value " "and viewport stretch mode." msgstr "" "如果设为比 [code]0.0[/code] 大的值,则会覆盖默认的字体过采样,忽略 [member " "SceneTree.use_font_oversampling] 的值和视口拉伸模式。" #: doc/classes/DynamicFontData.xml msgid "Disables font hinting (smoother but less crisp)." msgstr "禁用字体提示(更平滑但不那么清晰)。" #: doc/classes/DynamicFontData.xml msgid "Use the light font hinting mode." msgstr "使用浅色字体提示模式。" #: doc/classes/DynamicFontData.xml msgid "Use the default font hinting mode (crisper but less smooth)." msgstr "使用默认的字体提示模式(更清晰但不太流畅)。" #: doc/classes/EditorExportPlugin.xml msgid "A script that is executed when exporting the project." msgstr "在导出项目时执行的脚本。" #: doc/classes/EditorExportPlugin.xml msgid "" "[EditorExportPlugin]s are automatically invoked whenever the user exports " "the project. Their most common use is to determine what files are being " "included in the exported project. For each plugin, [method _export_begin] is " "called at the beginning of the export process and then [method _export_file] " "is called for each exported file.\n" "To use [EditorExportPlugin], register it using the [method EditorPlugin." "add_export_plugin] method first." msgstr "" "[EditorExportPlugin] 会在用户导出项目时自动调用。它们最常见的用途是确定哪些文" "件应该包含在导出的项目中。对于每个插件,导出过程开始时都会调用 [method " "_export_begin],然后会为每一个导出的文件调用 [method _export_file]。\n" "要使用 [EditorExportPlugin],请先用 [method EditorPlugin.add_export_plugin] " "注册。" #: doc/classes/EditorExportPlugin.xml msgid "" "Virtual method to be overridden by the user. It is called when the export " "starts and provides all information about the export. [code]features[/code] " "is the list of features for the export, [code]is_debug[/code] is [code]true[/" "code] for debug builds, [code]path[/code] is the target path for the " "exported project. [code]flags[/code] is only used when running a runnable " "profile, e.g. when using native run on Android." msgstr "" "由用户重写的虚方法。在导出开始时它被调用,并提供关于导出的所有信息。" "[code]features[/code] 是导出的特性列表,[code]is_debug[/code] 是[code]true[/" "code] 用于调试构建,[code]path[/code] 是导出项目的目标路径。[code]flags[/" "code]只运行在可运行配置时使用,例如在Android上使用本地运行。" #: doc/classes/EditorExportPlugin.xml msgid "" "Virtual method to be overridden by the user. Called when the export is " "finished." msgstr "可以被用户重写的虚方法。在导出完成后被调用。" #: doc/classes/EditorExportPlugin.xml msgid "" "Virtual method to be overridden by the user. Called for each exported file, " "providing arguments that can be used to identify the file. [code]path[/code] " "is the path of the file, [code]type[/code] is the [Resource] represented by " "the file (e.g. [PackedScene]) and [code]features[/code] is the list of " "features for the export.\n" "Calling [method skip] inside this callback will make the file not included " "in the export." msgstr "" "由用户重写的虚方法。每个导出的文件都会调用,并提供可用于识别文件的参数。" "[code]path[/code] 是文件的路径,[code]type[/code] 是文件所代表的 [Resource] " "类型(例如 [PackedScene]),[code]features[/code] 是导出的特征列表。\n" "在这个回调中调用 [method skip] 将使该文件不包括在导出中。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds a custom file to be exported. [code]path[/code] is the virtual path " "that can be used to load the file, [code]file[/code] is the binary data of " "the file. If [code]remap[/code] is [code]true[/code], file will not be " "exported, but instead remapped to the given [code]path[/code]." msgstr "" "添加一个要导出的自定义文件。[code]path[/code] 是可用于加载文件的虚拟路径," "[code]file[/code] 是文件的二进制数据。如果 [code]remap[/code] 是 [code]true[/" "code],则文件将不会导出,而是重新映射到给定的 [code]path[/code]。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds an iOS bundle file from the given [code]path[/code] to the exported " "project." msgstr "从给定的 [code]path[/code] 添加一个 iOS 捆绑文件到导出的项目。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds a C++ code to the iOS export. The final code is created from the code " "appended by each active export plugin." msgstr "" "将 C++ 代码添加到 iOS 导出中。最终的代码是由每个激活的导出插件附加的代码创建" "的。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds a dynamic library (*.dylib, *.framework) to Linking Phase in iOS's " "Xcode project and embeds it into resulting binary.\n" "[b]Note:[/b] For static libraries (*.a) works in same way as [method " "add_ios_framework].\n" "This method should not be used for System libraries as they are already " "present on the device." msgstr "" "在 iOS 的 Xcode 项目中链接阶段添加动态库(*.dylib, *.framework),并将其嵌入" "到生成的二进制文件中。\n" "[b]注意:[/b]对于静态库(*.a)的工作方式与 [method add_ios_framework] 相" "同。\n" "这个方法不应用于系统库,因为它们已经在设备上存在。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds a static library (*.a) or dynamic library (*.dylib, *.framework) to " "Linking Phase in iOS's Xcode project." msgstr "" "在 iOS 的 Xcode 项目中链接阶段添加静态库(*.a)或动态库(*.dylib、*." "framework)。" #: doc/classes/EditorExportPlugin.xml msgid "Adds linker flags for the iOS export." msgstr "为 iOS 导出添加链接器标志。" #: doc/classes/EditorExportPlugin.xml msgid "Adds content for iOS Property List files." msgstr "为 iOS 属性列表文件添加内容。" #: doc/classes/EditorExportPlugin.xml msgid "Adds a static lib from the given [code]path[/code] to the iOS project." msgstr "将位于给定路径 [code]path[/code] 的静态库添加到 iOS 项目中。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds file or directory matching [code]path[/code] to [code]PlugIns[/code] " "directory of macOS app bundle.\n" "[b]Note:[/b] This is useful only for macOS exports." msgstr "" "将与路径 [code]path[/code] 相匹配的文件或目录添加到 macOS App 捆绑包的 " "[code]PlugIns[/code] 目录中。\n" "[b]注意:[/b]仅适用于 macOS 导出。" #: doc/classes/EditorExportPlugin.xml msgid "" "Adds a shared object or a directory containing only shared objects with the " "given [code]tags[/code] and destination [code]path[/code].\n" "[b]Note:[/b] In case of macOS exports, those shared objects will be added to " "[code]Frameworks[/code] directory of app bundle.\n" "In case of a directory code-sign will error if you place non code object in " "directory." msgstr "" "添加共享对象或仅包含共享对象的目录,共享对象位于 [code]path[/code],需要与给" "定的 [code]tags[/code] 标签匹配。\n" "[b]注意:[/b]使用 macOS 导出时,这些共享对象会被加入到 App 捆绑包的 " "[code]Frameworkds[/code] 目录。\n" "如果使用的是目录,并且你在该目录中加入了非代码对象,则代码签名时会报错。" #: doc/classes/EditorExportPlugin.xml msgid "" "To be called inside [method _export_file]. Skips the current file, so it's " "not included in the export." msgstr "在 [method _export_file] 中调用。跳过当前文件,因此它不包括在导出中。" #: doc/classes/EditorFeatureProfile.xml msgid "" "An editor feature profile which can be used to disable specific features." msgstr "编辑器功能配置文件,可用于禁用特定功能。" #: doc/classes/EditorFeatureProfile.xml msgid "" "An editor feature profile can be used to disable specific features of the " "Godot editor. When disabled, the features won't appear in the editor, which " "makes the editor less cluttered. This is useful in education settings to " "reduce confusion or when working in a team. For example, artists and level " "designers could use a feature profile that disables the script editor to " "avoid accidentally making changes to files they aren't supposed to edit.\n" "To manage editor feature profiles visually, use [b]Editor > Manage Feature " "Profiles...[/b] at the top of the editor window." msgstr "" "编辑器功能配置文件可以用来禁用 Godot 编辑器的特定功能。当禁用时,这些功能将不" "会出现在编辑器中,从而使编辑器不那么混乱。这个设置使编辑器更简洁,在团队中工" "作时。例如,游戏美术和关卡设计师可以使用禁用脚本编辑器的功能配置文件,以避免" "意外地对他们不应该编辑的文件进行更改。\n" "要可视化地管理编辑器功能配置文件,请使用编辑器窗口顶部的[b]编辑器 >管理功能配" "置文件...[/b]。" #: doc/classes/EditorFeatureProfile.xml msgid "Returns the specified [code]feature[/code]'s human-readable name." msgstr "返回指定的 [code]feature[/code] 的可读名称。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Returns [code]true[/code] if the class specified by [code]class_name[/code] " "is disabled. When disabled, the class won't appear in the Create New Node " "dialog." msgstr "" "如果 [code]class_name[/code] 指定的类被禁用,返回 [code]true[/code]。当类被禁" "用时,该类将不会出现在“创建新 Node”对话框中。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Returns [code]true[/code] if editing for the class specified by " "[code]class_name[/code] is disabled. When disabled, the class will still " "appear in the Create New Node dialog but the inspector will be read-only " "when selecting a node that extends the class." msgstr "" "如果 [code]class_name[/code] 指定的类的编辑被禁用,返回 [code]true[/code]。禁" "用时,类仍然会出现在“创建新 Node”对话框中,但在选择继承的节点时,检查器将是只" "读的。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Returns [code]true[/code] if [code]property[/code] is disabled in the class " "specified by [code]class_name[/code]. When a property is disabled, it won't " "appear in the inspector when selecting a node that extends the class " "specified by [code]class_name[/code]." msgstr "" "如果[code]class_name[/code]指定的类中的[code]property[/code]被禁用,则返回 " "[code]true[/code]。当属性被禁用时,当[code]class_name[/code]类被指定为类的(继" "承)父节点时,它将不会出现在检查器中。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Returns [code]true[/code] if the [code]feature[/code] is disabled. When a " "feature is disabled, it will disappear from the editor entirely." msgstr "" "如果[code]feature[/code]被禁用,返回 [code]true[/code]。当一个功能被禁用时," "它将从编辑器中完全消失。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Loads an editor feature profile from a file. The file must follow the JSON " "format obtained by using the feature profile manager's [b]Export[/b] button " "or the [method save_to_file] method." msgstr "" "从文件中加载一个编辑器功能配置文件。该文件必须遵循JSON格式,通过使用功能配置" "文件管理器的[b]Export[/b]按钮或[method save_to_file]方法获得。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Saves the editor feature profile to a file in JSON format. It can then be " "imported using the feature profile manager's [b]Import[/b] button or the " "[method load_from_file] button." msgstr "" "将编辑器的功能配置保存到JSON格式的文件中。然后可以使用特征配置文件管理器的[b]" "导入[/b]按钮或[method load_from_file]按钮导入它。" #: doc/classes/EditorFeatureProfile.xml msgid "" "If [code]disable[/code] is [code]true[/code], disables the class specified " "by [code]class_name[/code]. When disabled, the class won't appear in the " "Create New Node dialog." msgstr "" "如果 [code]disable[/code] 是 [code]true[/code],则禁用 [code]class_name[/" "code] 指定的类。被禁用时,该类不会出现在“创建新 Node”对话框中。" #: doc/classes/EditorFeatureProfile.xml msgid "" "If [code]disable[/code] is [code]true[/code], disables editing for the class " "specified by [code]class_name[/code]. When disabled, the class will still " "appear in the Create New Node dialog but the inspector will be read-only " "when selecting a node that extends the class." msgstr "" "如果 [code]disable[/code] 为 [code]true[/code],则禁用 [code]class_name[/" "code] 指定的类的编辑。禁用时,类仍然会出现在“创建新 Node”对话框中,但在选择继" "承的节点时,检查器将只读。" #: doc/classes/EditorFeatureProfile.xml msgid "" "If [code]disable[/code] is [code]true[/code], disables editing for " "[code]property[/code] in the class specified by [code]class_name[/code]. " "When a property is disabled, it won't appear in the inspector when selecting " "a node that extends the class specified by [code]class_name[/code]." msgstr "" "如果 [code]disable[/code] 是 [code]true[/code],则禁用 [code]class_name[/" "code] 指定的类中的 [code]property[/code] 的编辑。当属性被禁用时,当选择继承 " "[code]class_name[/code] 指定的类的节点时,它将不会出现在检查器中。" #: doc/classes/EditorFeatureProfile.xml msgid "" "If [code]disable[/code] is [code]true[/code], disables the editor feature " "specified in [code]feature[/code]. When a feature is disabled, it will " "disappear from the editor entirely." msgstr "" "如果 [code]disable[/code] 为 [code]true[/code],则禁用 [code]feature[/code] " "中指定的编辑器功能。当一个功能被禁用时,它将从编辑器中完全消失。" #: doc/classes/EditorFeatureProfile.xml msgid "" "The 3D editor. If this feature is disabled, the 3D editor won't display but " "3D nodes will still display in the Create New Node dialog." msgstr "" "3D 编辑器。如果禁用此功能,3D 编辑器将不显示,但 3D 节点仍将显示在“创建新 " "Node”对话框中。" #: doc/classes/EditorFeatureProfile.xml msgid "" "The Script tab, which contains the script editor and class reference " "browser. If this feature is disabled, the Script tab won't display." msgstr "" "脚本选项卡,它包含脚本编辑器和类引用浏览器。如果该功能被禁用,脚本选项卡将不" "会显示。" #: doc/classes/EditorFeatureProfile.xml msgid "" "The AssetLib tab. If this feature is disabled, the AssetLib tab won't " "display." msgstr "AssetLib选项卡。如果禁用此功能,则不会显示AssetLib选项卡。" #: doc/classes/EditorFeatureProfile.xml msgid "" "Scene tree editing. If this feature is disabled, the Scene tree dock will " "still be visible but will be read-only." msgstr "场景树编辑。如果禁用此功能,场景树停靠点仍将可见,但将是只读的。" #: doc/classes/EditorFeatureProfile.xml msgid "" "The Node dock. If this feature is disabled, signals and groups won't be " "visible and modifiable from the editor." msgstr "节点面板。如果此功能被禁用,信号和组将不可见,也不能从编辑器中修改。" #: doc/classes/EditorFeatureProfile.xml msgid "" "The FileSystem dock. If this feature is disabled, the FileSystem dock won't " "be visible." msgstr "文件系统面板。如果禁用此功能,则文件系统面板将不可见。" #: doc/classes/EditorFeatureProfile.xml msgid "" "The Import dock. If this feature is disabled, the Import dock won't be " "visible." msgstr "导入扩展面板。如果禁用此功能,则导入扩展面板将不可见。" #: doc/classes/EditorFeatureProfile.xml doc/classes/SpatialMaterial.xml msgid "Represents the size of the [enum Feature] enum." msgstr "表示[enum Feature]枚举的大小。" #: doc/classes/EditorFileDialog.xml msgid "A modified version of [FileDialog] used by the editor." msgstr "编辑器使用的 [FileDialog] 的修改版。" #: doc/classes/EditorFileDialog.xml msgid "" "Adds a comma-delimited file extension filter option to the " "[EditorFileDialog] with an optional semi-colon-delimited label.\n" "For example, [code]\"*.tscn, *.scn; Scenes\"[/code] results in filter text " "\"Scenes (*.tscn, *.scn)\"." msgstr "" "在 [EditorFileDialog] 中添加一个以逗号分隔的文件扩展名过滤选项,可选择以分号" "分隔的标签。\n" "例如,[code]\"*.tscn, *.scn; Scenes\"[/code] 的结果是过滤器文本 \"Scenes (*." "tscn, *.scn)\"。" #: doc/classes/EditorFileDialog.xml msgid "Removes all filters except for \"All Files (*)\"." msgstr "删除除“All Files(*)”筛选器之外的所有筛选器。" #: doc/classes/EditorFileDialog.xml msgid "" "Returns the [code]VBoxContainer[/code] used to display the file system.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回用于显示文件系统的 [code]VBoxContainer[/code]。\n" "[b]警告:[/b]这是一个必需的内部节点,移除和释放它可能会导致崩溃。如果你想隐藏" "它或它的任何子节点,请使用 [member CanvasItem.visible] 属性。" #: doc/classes/EditorFileDialog.xml msgid "" "Notify the [EditorFileDialog] that its view of the data is no longer " "accurate. Updates the view contents on next view update." msgstr "" "通知[EditorFileDialog]它的数据视图不再准确。在下次视图更新时更新视图内容。" #: doc/classes/EditorFileDialog.xml msgid "" "The location from which the user may select a file, including [code]res://[/" "code], [code]user://[/code], and the local file system." msgstr "" "用户可以选择文件的位置,包括[code]res://[/code]、[code]user://[/code]和本地文" "件系统。" #: doc/classes/EditorFileDialog.xml msgid "The currently occupied directory." msgstr "当前占用的目录。" #: doc/classes/EditorFileDialog.xml msgid "The currently selected file." msgstr "当前选择的文件。" #: doc/classes/EditorFileDialog.xml msgid "The file system path in the address bar." msgstr "地址栏中的文件系统路径。" #: doc/classes/EditorFileDialog.xml msgid "" "If [code]true[/code], the [EditorFileDialog] will not warn the user before " "overwriting files." msgstr "" "如果[code]true[/code],[EditorFileDialog]将不会在覆盖文件之前警告用户。" #: doc/classes/EditorFileDialog.xml msgid "" "The view format in which the [EditorFileDialog] displays resources to the " "user." msgstr "[EditorFileDialog]向用户显示资源的视图格式。" #: doc/classes/EditorFileDialog.xml msgid "" "The purpose of the [EditorFileDialog], which defines the allowed behaviors." msgstr "[EditorFileDialog] 的用途,它定义了允许的行为。" #: doc/classes/EditorFileDialog.xml msgid "" "If [code]true[/code], hidden files and directories will be visible in the " "[EditorFileDialog]." msgstr "如果[code]true[/code],隐藏的文件和目录将在[EditorFileDialog]中可见。" #: doc/classes/EditorFileDialog.xml msgid "Emitted when a directory is selected." msgstr "选择目录时触发。" #: doc/classes/EditorFileDialog.xml msgid "Emitted when a file is selected." msgstr "选择文件时触发。" #: doc/classes/EditorFileDialog.xml msgid "Emitted when multiple files are selected." msgstr "选择多个文件时触发。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can select only one file. Accepting the window will " "open the file." msgstr "[EditorFileDialog] 仅可以选择一个文件,选择同意窗口将会打开这个文件。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can select multiple files. Accepting the window will " "open all files." msgstr "" "[EditorFileDialog] 可以选择多个文件,选择同意窗口将会打开所有选择的文件。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can select only one directory. Accepting the window " "will open the directory." msgstr "[EditorFileDialog] 可以选择一个目录,选择同意窗口将会打开这个目录。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can select a file or directory. Accepting the window " "will open it." msgstr "" "[EditorFileDialog] 可以选择一个文件或者目录,选择同意窗口将会打开这个文件或目" "录。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can select only one file. Accepting the window will " "save the file." msgstr "[EditorFileDialog] 可以选择一个文件,选择同意窗口将会保存这个文件。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can only view [code]res://[/code] directory contents." msgstr "[EditorFileDialog] 只能查看 [code]res://[/code] 目录里的内容。" #: doc/classes/EditorFileDialog.xml msgid "" "The [EditorFileDialog] can only view [code]user://[/code] directory contents." msgstr "[EditorFileDialog] 只能查看[code]user://[/code] 目录里的内容。" #: doc/classes/EditorFileDialog.xml msgid "The [EditorFileDialog] can view the entire local file system." msgstr "[EditorFileDialog] 可以查看整个本地文件系统。" #: doc/classes/EditorFileDialog.xml msgid "The [EditorFileDialog] displays resources as thumbnails." msgstr "[EditorFileDialog] 以图标的形式显示资源。" #: doc/classes/EditorFileDialog.xml msgid "The [EditorFileDialog] displays resources as a list of filenames." msgstr "[EditorFileDialog] 以文件名列表的形式显示资源。" #: doc/classes/EditorFileSystem.xml msgid "Resource filesystem, as the editor sees it." msgstr "编辑器可以浏览的资源文件系统。" #: doc/classes/EditorFileSystem.xml msgid "" "This object holds information of all resources in the filesystem, their " "types, etc.\n" "[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access " "the singleton using [method EditorInterface.get_resource_filesystem]." msgstr "" "这个对象储存着文件系统里所有的资源的信息,类型和其他。\n" "[b]注意:[/b]这个类不应该被直接实例化。应该使用下列方法 [method " "EditorInterface.get_resource_filesystem] 来读取单例。" #: doc/classes/EditorFileSystem.xml msgid "" "Returns the resource type of the file, given the full path. This returns a " "string such as [code]\"Resource\"[/code] or [code]\"GDScript\"[/code], " "[i]not[/i] a file extension such as [code]\".gd\"[/code]." msgstr "" "返回文件的资源类型,给定完整路径。这将返回字符串,如[code]\"Resource\"[/code]" "或[code]\"GDScript\"[/code],[i]不是[/i]文件扩展名,如[code]\".gd\"[/code]。" #: doc/classes/EditorFileSystem.xml msgid "Gets the root directory object." msgstr "获取根目录对象。" #: doc/classes/EditorFileSystem.xml msgid "Returns a view into the filesystem at [code]path[/code]." msgstr "返回在 [code]path[/code] 文件系统的视图。" #: doc/classes/EditorFileSystem.xml msgid "Returns the scan progress for 0 to 1 if the FS is being scanned." msgstr "如果文件系统正在被扫描,返回扫描的进度,值为0-1。" #: doc/classes/EditorFileSystem.xml msgid "Returns [code]true[/code] if the filesystem is being scanned." msgstr "如果文件系统正在进行扫描,则返回 [code]true[/code]。" #: doc/classes/EditorFileSystem.xml msgid "Scan the filesystem for changes." msgstr "扫描文件系统的改动。" #: doc/classes/EditorFileSystem.xml msgid "Check if the source of any imported resource changed." msgstr "检查是否更改了已导入资源的来源。" #: doc/classes/EditorFileSystem.xml msgid "" "Update a file information. Call this if an external program (not Godot) " "modified the file." msgstr "更新文件信息。如果外部程序(不是Godot)修改了该文件,则调用此函数。" #: doc/classes/EditorFileSystem.xml msgid "Scans the script files and updates the list of custom class names." msgstr "扫描脚本文件并且更新自定义类(class)名称列表。" #: doc/classes/EditorFileSystem.xml msgid "Emitted if the filesystem changed." msgstr "在文件系统更改的时候触发。" #: doc/classes/EditorFileSystem.xml msgid "Emitted if a resource is reimported." msgstr "重新导入资源时触发。" #: doc/classes/EditorFileSystem.xml msgid "" "Emitted if at least one resource is reloaded when the filesystem is scanned." msgstr "如果在扫描文件系统的时候,至少有一个资源被重新加载,则触发该信号。" #: doc/classes/EditorFileSystem.xml msgid "Emitted if the source of any imported file changed." msgstr "如果导入文件的来源发生变化,则触发。" #: doc/classes/EditorFileSystemDirectory.xml msgid "A directory for the resource filesystem." msgstr "资源文件系统的目录。" #: doc/classes/EditorFileSystemDirectory.xml msgid "A more generalized, low-level variation of the directory concept." msgstr "目录概念的一个更概括的、低级的概念。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns the index of the directory with name [code]name[/code] or [code]-1[/" "code] if not found." msgstr "" "返回目录的索引,包括名字 [code]name[/code],如果不存在则返回 [code]-1[/" "code]。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns the index of the file with name [code]name[/code] or [code]-1[/code] " "if not found." msgstr "" "返回文件的索引,包括名字 [code]name[/code],如果不存在则返回 [code]-1[/" "code]。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the name of the file at index [code]idx[/code]." msgstr "返回文件索引 [code]idx[/code] 寻找到的文件名。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the number of files in this directory." msgstr "返回目录里文件的数量。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns [code]true[/code] if the file at index [code]idx[/code] imported " "properly." msgstr "" "如果这个文件在索引 [code]idx[/code] 处成功导入,返回 [code]true[/code]。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the path to the file at index [code]idx[/code]." msgstr "返回索引为[code]idx[/code] 文件的路径。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns the base class of the script class defined in the file at index " "[code]idx[/code]. If the file doesn't define a script class using the " "[code]class_name[/code] syntax, this will return an empty string." msgstr "" "返回这个文件中脚本类(script class)在索引处[code]idx[/code]定义的基类(base " "class)。如果这个文件没有使用 [code]class_name[/code] 关键字定义脚本类,将返回" "一个空字符串。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns the name of the script class defined in the file at index [code]idx[/" "code]. If the file doesn't define a script class using the [code]class_name[/" "code] syntax, this will return an empty string." msgstr "" "返回文件在索引 [code]idx[/code] 处定义的脚本类(class)。如果这个文件没有使" "用 [code]class_name[/code] 定义脚本类(class),这将会返回一个空字符串。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns the resource type of the file at index [code]idx[/code]. This " "returns a string such as [code]\"Resource\"[/code] or [code]\"GDScript\"[/" "code], [i]not[/i] a file extension such as [code]\".gd\"[/code]." msgstr "" "返回索引[code]idx[/code]处文件的资源类型。这将返回字符串,如" "[code]\"Resource\"[/code]或[code]\"GDScript\"[/code],[i]不是[/i]文件扩展名," "如[code]\".gd\"[/code]。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the name of this directory." msgstr "返回这个目录的名字。" #: doc/classes/EditorFileSystemDirectory.xml msgid "" "Returns the parent directory for this directory or [code]null[/code] if " "called on a directory at [code]res://[/code] or [code]user://[/code]." msgstr "" "返回这个目录的上层目录,如果在 [code]res://[/code] 或 [code]user://[/code] 调" "用这个方法,将会返回 [code]null[/code]。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the path to this directory." msgstr "返回这个目录的路径。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the subdirectory at index [code]idx[/code]." msgstr "返回在索引 [code]idx[/code] 处的子目录。" #: doc/classes/EditorFileSystemDirectory.xml msgid "Returns the number of subdirectories in this directory." msgstr "返回这个目录的子目录的数量。" #: doc/classes/EditorImportPlugin.xml msgid "" "Registers a custom resource importer in the editor. Use the class to parse " "any file and import it as a new resource type." msgstr "" "在编辑器中注册一个自定义资源导入器。使用该类来解析任何文件,并将其作为新的资" "源类型导入。" #: doc/classes/EditorImportPlugin.xml msgid "" "[EditorImportPlugin]s provide a way to extend the editor's resource import " "functionality. Use them to import resources from custom files or to provide " "alternatives to the editor's existing importers.\n" "EditorImportPlugins work by associating with specific file extensions and a " "resource type. See [method get_recognized_extensions] and [method " "get_resource_type]. They may optionally specify some import presets that " "affect the import process. EditorImportPlugins are responsible for creating " "the resources and saving them in the [code].import[/code] directory (see " "[member ProjectSettings.application/config/" "use_hidden_project_data_directory]).\n" "Below is an example EditorImportPlugin that imports a [Mesh] from a file " "with the extension \".special\" or \".spec\":\n" "[codeblock]\n" "tool\n" "extends EditorImportPlugin\n" "\n" "func get_importer_name():\n" " return \"my.special.plugin\"\n" "\n" "func get_visible_name():\n" " return \"Special Mesh\"\n" "\n" "func get_recognized_extensions():\n" " return [\"special\", \"spec\"]\n" "\n" "func get_save_extension():\n" " return \"mesh\"\n" "\n" "func get_resource_type():\n" " return \"Mesh\"\n" "\n" "func get_preset_count():\n" " return 1\n" "\n" "func get_preset_name(i):\n" " return \"Default\"\n" "\n" "func get_import_options(i):\n" " return [{\"name\": \"my_option\", \"default_value\": false}]\n" "\n" "func import(source_file, save_path, options, platform_variants, gen_files):\n" " var file = File.new()\n" " if file.open(source_file, File.READ) != OK:\n" " return FAILED\n" "\n" " var mesh = Mesh.new()\n" " # Fill the Mesh with data read in \"file\", left as an exercise to the " "reader\n" "\n" " var filename = save_path + \".\" + get_save_extension()\n" " return ResourceSaver.save(filename, mesh)\n" "[/codeblock]\n" "To use [EditorImportPlugin], register it using the [method EditorPlugin." "add_import_plugin] method first." msgstr "" "[EditorImportPlugin] 提供了一种扩展编辑器资源导入功能的方法。使用它们来导入自" "定义文件中的资源,或成为编辑器现有导入器的替代品。\n" "EditorImportPlugin 通过与特定的文件扩展名和资源类型相关联来工作。参阅 " "[method get_recognized_extensions] 和 [method get_resource_type]。其可以选择" "性地指定一些影响导入过程的导入预置。EditorImportPlugin 负责创建资源并将其保存" "在 [code].import[/code] 目录中,参阅 [member ProjectSettings.application/" "config/use_hidden_project_data_directory]。\n" "下面是一个 EditorImportPlugin 的例子,它会从扩展名为“.special”或“.spec”的文件" "中导入一个 [Mesh]:\n" "[codeblock]\n" "tool\n" "extends EditorImportPlugin\n" "\n" "func get_importer_name():\n" " return \"my.special.plugin\"\n" "\n" "func get_visible_name():\n" " return \"Special Mesh\"\n" "\n" "func get_recognized_extensions():\n" " return [\"special\", \"spec\"]\n" "\n" "func get_save_extension():\n" " return \"mesh\"\n" "\n" "func get_resource_type():\n" " return \"Mesh\"\n" "\n" "func get_preset_count():\n" " return 1\n" "\n" "func get_preset_name(i):\n" " return \"Default\"\n" "\n" "func get_import_options(i):\n" " return [{\"name\": \"my_option\", \"default_value\": false}]\n" "\n" "func import(source_file, save_path, options, platform_variants, gen_files):\n" " var file = File.new()\n" " if file.open(source_file, File.READ) != OK:\n" " return FAILED\n" "\n" " var mesh = Mesh.new()\n" " # 使用从“file”中读取的数据填充 Mesh,留作读者的练习\n" "\n" " var filename = save_path + \".\" + get_save_extension()\n" " return ResourceSaver.save(filename, mesh)\n" "[/codeblock]\n" "要使用你的 [EditorImportPlugin],请先通过 [method EditorPlugin." "add_import_plugin] 注册。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the options and default values for the preset at this index. Returns an " "Array of Dictionaries with the following keys: [code]name[/code], " "[code]default_value[/code], [code]property_hint[/code] (optional), " "[code]hint_string[/code] (optional), [code]usage[/code] (optional)." msgstr "" "获取该索引下预设的选项和默认值。返回一个字典数组,包含以下键名:[code]name[/" "code]、[code]default_value[/code]、[code]property_hint[/code](可选)、" "[code]hint_string[/code](可选)、[code]usage[/code](可选)。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the order of this importer to be run when importing resources. " "Importers with [i]lower[/i] import orders will be called first, and higher " "values will be called later. Use this to ensure the importer runs after the " "dependencies are already imported. The default import order is [code]0[/" "code] unless overridden by a specific importer. See [enum ResourceImporter." "ImportOrder] for some predefined values." msgstr "" "获取该导入器在导入资源时的运行顺序。具有[i]较低[/i]导入顺序的导入器将被首先调" "用,较高值的将被其后调用。使用这个来确保导入器在依赖项已经被导入后执行。默认" "的导入顺序是 [code]0[/code],除非被指定的导入器重写。参阅 [enum " "ResourceImporter.ImportOrder] 了解相关预定义的值。" #: doc/classes/EditorImportPlugin.xml msgid "Gets the unique name of the importer." msgstr "获取导入者的唯一名称。" #: doc/classes/EditorImportPlugin.xml msgid "" "This method can be overridden to hide specific import options if conditions " "are met. This is mainly useful for hiding options that depend on others if " "one of them is disabled. For example:\n" "[codeblock]\n" "func get_option_visibility(option, options):\n" " # Only show the lossy quality setting if the compression mode is set to " "\"Lossy\".\n" " if option == \"compress/lossy_quality\" and options.has(\"compress/" "mode\"):\n" " return int(options[\"compress/mode\"]) == COMPRESS_LOSSY\n" "\n" " return true\n" "[/codeblock]\n" "Return [code]true[/code] to make all options always visible." msgstr "" "这个方法可以在满足条件的情况下重写隐藏特定的导入选项。这主要适用于隐藏依赖于" "其他选项的选项,如果其中一个选项被禁用。例如:\n" "[codeblock]\n" "func get_option_visibility(option, options):\n" " # Only show the lossy quality setting if the compression mode is set to " "\"Lossy\".\n" " if option == \"compress/lossy_quality\" and options.has(\"compress/" "mode\"):\n" " return int(options[\"compress/mode\"]) == COMPRESS_LOSSY\n" "\n" " return true\n" "[/codeblock]\n" "返回 [code]true[/code],使所有选项始终可见。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the number of initial presets defined by the plugin. Use [method " "get_import_options] to get the default options for the preset and [method " "get_preset_name] to get the name of the preset." msgstr "" "获取插件定义的初始预置数量。使用[method get_import_options]获取预设的默认选" "项,使用[method get_preset_name]获取预设的名称。" #: doc/classes/EditorImportPlugin.xml msgid "Gets the name of the options preset at this index." msgstr "获取该索引处预设的选项名称。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the priority of this plugin for the recognized extension. Higher " "priority plugins will be preferred. The default priority is [code]1.0[/code]." msgstr "" "获取该插件对识别的扩展的优先级。优先级越高的插件会被优先选择。默认的优先级是" "[code]1.0[/code]。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the list of file extensions to associate with this loader (case-" "insensitive). e.g. [code][\"obj\"][/code]." msgstr "" "获取与该加载器相关联的文件扩展名列表(不区分大小写),例如 [code][\"obj\"][/" "code]。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the Godot resource type associated with this loader. e.g. " "[code]\"Mesh\"[/code] or [code]\"Animation\"[/code]." msgstr "" "获取与此加载程序关联的Godot资源类型,例如 [code]\"Mesh\"[/code] 或 " "[code]\"Animation\"[/code]。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the extension used to save this resource in the [code].import[/code] " "directory (see [member ProjectSettings.application/config/" "use_hidden_project_data_directory])." msgstr "" "获取用于在[code].import[/code]目录中保存此资源的扩展名,参阅[member " "ProjectSettings.application/config/use_hidden_project_data_directory]。" #: doc/classes/EditorImportPlugin.xml msgid "" "Gets the name to display in the import window. You should choose this name " "as a continuation to \"Import as\", e.g. \"Import as Special Mesh\"." msgstr "" "获取在导入窗口中显示的名称。你应该选择这个名字作为“导入为”的延续,例如“导入" "为 Special Mesh”。" #: doc/classes/EditorImportPlugin.xml msgid "" "Imports [code]source_file[/code] into [code]save_path[/code] with the import " "[code]options[/code] specified. The [code]platform_variants[/code] and " "[code]gen_files[/code] arrays will be modified by this function.\n" "This method must be overridden to do the actual importing work. See this " "class' description for an example of overriding this method." msgstr "" "使用指定的导入选项 [code]options[/code] 将 [code]source_file[/code] 导入到 " "[code]save_path[/code] 中。[code]platform_variants[/code] 和 " "[code]gen_files[/code] 数组将被此函数修改。\n" "这个方法必须被重写才能完成实际的导入工作。参阅本类的描述以了解如何重写该方" "法。" #: doc/classes/EditorInspector.xml msgid "A control used to edit properties of an object." msgstr "用于编辑所选节点属性的控件。" #: doc/classes/EditorInspector.xml msgid "" "This is the control that implements property editing in the editor's " "Settings dialogs, the Inspector dock, etc. To get the [EditorInspector] used " "in the editor's Inspector dock, use [method EditorInterface.get_inspector].\n" "[EditorInspector] will show properties in the same order as the array " "returned by [method Object.get_property_list].\n" "If a property's name is path-like (i.e. if it contains forward slashes), " "[EditorInspector] will create nested sections for \"directories\" along the " "path. For example, if a property is named [code]highlighting/gdscript/" "node_path_color[/code], it will be shown as \"Node Path Color\" inside the " "\"GDScript\" section nested inside the \"Highlighting\" section.\n" "If a property has [constant @GlobalScope.PROPERTY_USAGE_GROUP] usage, it " "will group subsequent properties whose name starts with the property's hint " "string. The group ends when a property does not start with that hint string " "or when a new group starts. An empty group name effectively ends the current " "group. [EditorInspector] will create a top-level section for each group. For " "example, if a property with group usage is named [code]Collide With[/code] " "and its hint string is [code]collide_with_[/code], a subsequent " "[code]collide_with_area[/code] property will be shown as \"Area\" inside the " "\"Collide With\" section.\n" "[b]Note:[/b] Unlike sections created from path-like property names, " "[EditorInspector] won't capitalize the name for sections created from " "groups. So properties with group usage usually use capitalized names instead " "of snake_cased names." msgstr "" "这是为编辑器的“设置”对话框、“检查器”面板等实现属性编辑的控件。要获取编辑器“检" "查器”面板中所使用的 [EditorInspector],请使用 [method EditorInterface." "get_inspector]。\n" "[EditorInspector] 展示属性的顺序与 [method Object.get_property_list] 返回的数" "组一致。\n" "如果属性的名称为路径形式(即包含正斜杠),[EditorInspector] 会为该路径上的各" "个“目录”创建嵌套的部分。例如,如果某个属性名为 [code]highlighting/gdscript/" "node_path_color[/code],那么就会显示为“Node Path Color”,位于嵌套" "在“Highlighting”部分的“GDScript”部分中。\n" "如果属性包含 [constant @GlobalScope.PROPERTY_USAGE_GROUP] 用法,就会将其后续" "属性中,名称以其提示字符串开头的属性合为一组。如果遇到不以该提示字符串开头的" "属性,或者开始了一个新的分组,那么这个分组就会结束。分组名称为空的效果为结束" "当前分组。[EditorInspector] 会为每个分组都创建一个顶层的部分。例如,如果有个" "包含分组用法的属性名叫 [code]Collide With[/code],其提示字符串为 " "[code]collide_with_[/code],那么后续的 [code]collide_with_area[/code] 属性就" "会以“Area”的名称出现在“Collide With”部分中。\n" "[b]注意:[/b]与根据路径形式的名称而创建的部分不同,[EditorInspector] 不会对根" "据分组创建的部分的名称进行首字母大写。因此,包含分组用法的属性通常使用首字母" "大写的名称,而不是 snake_case。" #: doc/classes/EditorInspector.xml msgid "" "Refreshes the inspector.\n" "[b]Note:[/b] To save on CPU resources, calling this method will do nothing " "if the time specified in [code]docks/property_editor/auto_refresh_interval[/" "code] editor setting hasn't passed yet since this method was last called. " "(By default, this interval is set to 0.3 seconds.)" msgstr "" "重新刷新检查器。\n" "[b]注意:[/b]为了节省 CPU 资源,如果 [code]docks/property_editor/" "auto_refresh_interval[/code] 编辑器设置中指定的时间在上一次调用本方法后还没有" "过去,那么调用本方法将不做任何操作。(默认情况下,这个时间间隔被设置为 0.3 " "秒。)" #: doc/classes/EditorInspector.xml msgid "" "Emitted when the Edit button of an [Object] has been pressed in the " "inspector. This is mainly used in the remote scene tree inspector." msgstr "在检查器中按下[Object]的编辑按钮时触发。主要用于远程场景树检查器中。" #: doc/classes/EditorInspector.xml msgid "Emitted when a property is edited in the inspector." msgstr "在检查器中编辑属性时触发。" #: doc/classes/EditorInspector.xml msgid "" "Emitted when a property is keyed in the inspector. Properties can be keyed " "by clicking the \"key\" icon next to a property when the Animation panel is " "toggled." msgstr "" "当属性在检查器中被键入时触发。当切换动画面板时,可通过点击属性旁边的 \"键 " "\"图标对属性进行键控。" #: doc/classes/EditorInspector.xml msgid "Emitted when a property is selected in the inspector." msgstr "在检查器中选择属性时触发。" #: doc/classes/EditorInspector.xml msgid "" "Emitted when a boolean property is toggled in the inspector.\n" "[b]Note:[/b] This signal is never emitted if the internal [code]autoclear[/" "code] property enabled. Since this property is always enabled in the editor " "inspector, this signal is never emitted by the editor itself." msgstr "" "在检查器中切换布尔属性时发出。\n" "[b]注意:[/b]如果启用了内部[code]autoclear[/code]属性,则该信号永远不会触发。" "由于该属性在编辑器检查器中始终处于启用状态,因此编辑器本身绝不会发出该信号。" #: doc/classes/EditorInspector.xml msgid "Emitted when a resource is selected in the inspector." msgstr "在检查器中选择资源时触发。" #: doc/classes/EditorInspector.xml msgid "" "Emitted when a property that requires a restart to be applied is edited in " "the inspector. This is only used in the Project Settings and Editor Settings." msgstr "" "在检查器中编辑需要重启应用的属性时触发。仅在项目设置和编辑器设置中使用。" #: doc/classes/EditorInspectorPlugin.xml msgid "Plugin for adding custom property editors on inspector." msgstr "用于在检查器上添加自定义属性编辑器的插件。" #: doc/classes/EditorInspectorPlugin.xml msgid "" "[EditorInspectorPlugin] allows adding custom property editors to " "[EditorInspector].\n" "When an object is edited, the [method can_handle] function is called and " "must return [code]true[/code] if the object type is supported.\n" "If supported, the function [method parse_begin] will be called, allowing to " "place custom controls at the beginning of the class.\n" "Subsequently, the [method parse_category] and [method parse_property] are " "called for every category and property. They offer the ability to add custom " "controls to the inspector too.\n" "Finally, [method parse_end] will be called.\n" "On each of these calls, the \"add\" functions can be called.\n" "To use [EditorInspectorPlugin], register it using the [method EditorPlugin." "add_inspector_plugin] method first." msgstr "" "[EditorInspectorPlugin] 可用于向 [EditorInspector] 添加自定义属性编辑器。\n" "当一个对象被编辑时,[method can_handle] 函数被调用,如果支持对象类型,必须返" "回 [code]true[/code]。\n" "如果支持,函数 [method parse_begin] 将被调用,允许在类的开头放置自定义控" "件。\n" "随后,调用每个类型和属性 [method parse_category] 和 [method parse_property]。" "其也提供了向检查器添加自定义控件的能力。\n" "最后,调用 [method parse_end]。\n" "在这些调用中,每一个都可以调用“add”函数。\n" "要使用 [EditorInspectorPlugin],请先通过 [method EditorPlugin." "add_inspector_plugin] 方法注册。" #: doc/classes/EditorInspectorPlugin.xml msgid "Inspector plugins" msgstr "检查器插件" #: doc/classes/EditorInspectorPlugin.xml msgid "Adds a custom control, which is not necessarily a property editor." msgstr "添加自定义控件,它不一定是属性编辑器。" #: doc/classes/EditorInspectorPlugin.xml msgid "" "Adds a property editor for an individual property. The [code]editor[/code] " "control must extend [EditorProperty]." msgstr "" "为单独的属性添加属性编辑器。[code]editor[/code]控件必须扩展[EditorProperty]。" #: doc/classes/EditorInspectorPlugin.xml msgid "" "Adds an editor that allows modifying multiple properties. The [code]editor[/" "code] control must extend [EditorProperty]." msgstr "" "添加一个编辑器,允许修改多个属性。[code]editor[/code]控件必须扩展" "[EditorProperty]。" #: doc/classes/EditorInspectorPlugin.xml msgid "Returns [code]true[/code] if this object can be handled by this plugin." msgstr "如果此插件可以处理此对象返回 [code]true[/code]。" #: doc/classes/EditorInspectorPlugin.xml msgid "Called to allow adding controls at the beginning of the list." msgstr "允许被调用在列表的开头添加控件。" #: doc/classes/EditorInspectorPlugin.xml msgid "Called to allow adding controls at the beginning of the category." msgstr "允许被调用在类别的开头添加控件。" #: doc/classes/EditorInspectorPlugin.xml msgid "Called to allow adding controls at the end of the list." msgstr "允许被调用在列表末尾添加控件。" #: doc/classes/EditorInspectorPlugin.xml msgid "" "Called to allow adding property specific editors to the inspector. Usually " "these inherit [EditorProperty]. Returning [code]true[/code] removes the " "built-in editor for this property, otherwise allows to insert a custom " "editor before the built-in one." msgstr "" "允许被调用在检查器中添加特定属性的编辑器。通常这些编辑器继承" "[EditorProperty]。返回 [code]true[/code]删除该属性的内置编辑器,否则允许在内" "置编辑器之前插入一个自定义编辑器。" #: doc/classes/EditorInterface.xml msgid "Godot editor's interface." msgstr "Godot 编辑器的界面。" #: doc/classes/EditorInterface.xml msgid "" "EditorInterface gives you control over Godot editor's window. It allows " "customizing the window, saving and (re-)loading scenes, rendering mesh " "previews, inspecting and editing resources and objects, and provides access " "to [EditorSettings], [EditorFileSystem], [EditorResourcePreview], " "[ScriptEditor], the editor viewport, and information about scenes.\n" "[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access " "the singleton using [method EditorPlugin.get_editor_interface]." msgstr "" "EditorInterface 让您可以控制 Godot 编辑器的窗口,它允许自定义窗口,保存和(重" "新)加载场景,渲染网格预览,检查和编辑资源和对象。它允许自定义窗口,保存和" "(重新)加载场景,渲染网格预览,检查和编辑资源和对象,并提供对 " "[EditorSettings]、[EditorFileSystem]、[EditorResourcePreview]、" "[ScriptEditor]、编辑器视窗和场景信息的访问。\n" "[b]注意:[/b]这个类不应该直接实例化。相反,使用 [method EditorPlugin." "get_editor_interface] 访问单例。" #: doc/classes/EditorInterface.xml msgid "" "Edits the given [Node]. The node will be also selected if it's inside the " "scene tree." msgstr "编辑给定的 [Node]。如果该节点在场景树内,将被选中。" #: doc/classes/EditorInterface.xml msgid "" "Edits the given [Resource]. If the resource is a [Script] you can also edit " "it with [method edit_script] to specify the line and column position." msgstr "" "编辑给定的 [Resource]。如果该资源是 [Script],你还可以使用 [method " "edit_script] 编辑,指定行列位置。" #: doc/classes/EditorInterface.xml msgid "" "Edits the given [Script]. The line and column on which to open the script " "can also be specified. The script will be open with the user-configured " "editor for the script's language which may be an external editor." msgstr "" "编辑给定的 [Script]。还可以指定所打开脚本的行和列。打开脚本所使用的编辑器是由" "用户为该脚本的语言所配置,可能是外部编辑器。" #: doc/classes/EditorInterface.xml msgid "" "Returns the main container of Godot editor's window. For example, you can " "use it to retrieve the size of the container and place your controls " "accordingly.\n" "[b]Warning:[/b] Removing and freeing this node will render the editor " "useless and may cause a crash." msgstr "" "返回 Godot 编辑器窗口的主容器。例如,你可以用它来检索容器的大小并相应地放置你" "的控件。\n" "[b]警告:[/b]删除和释放这个节点将使编辑器失效,并可能导致崩溃。" #: doc/classes/EditorInterface.xml msgid "Returns the current path being viewed in the [FileSystemDock]." msgstr "返回在 [FileSystemDock] 中查看的当前路径。" #: doc/classes/EditorInterface.xml msgid "Returns the edited (current) scene's root [Node]." msgstr "返回正在编辑的(当前)场景的根 [Node]。" #: doc/classes/EditorInterface.xml msgid "" "Returns the actual scale of the editor UI ([code]1.0[/code] being 100% " "scale). This can be used to adjust position and dimensions of the UI added " "by plugins.\n" "[b]Note:[/b] This value is set via the [code]interface/editor/display_scale[/" "code] and [code]interface/editor/custom_display_scale[/code] editor " "settings. Editor must be restarted for changes to be properly applied." msgstr "" "返回编辑器用户 UI 的实际比例,[code]1.0[/code] 比例为 100%。这可以用来调整由" "插件添加的用户 UI 的位置和尺寸。\n" "[b]注意:[/b]这个值是通过 [code]interface/editor/display_scale[/code] 和 " "[code]interface/editor/custom_display_scale[/code] 编辑器设置项来设置。编辑器" "必须重新启动才能正确应用这些变化。" #: doc/classes/EditorInterface.xml msgid "Returns the editor's [EditorSettings] instance." msgstr "返回编辑器的 [EditorSettings] 实例。" #: doc/classes/EditorInterface.xml msgid "" "Returns the main editor control. Use this as a parent for main screens.\n" "[b]Note:[/b] This returns the main editor control containing the whole " "editor, not the 2D or 3D viewports specifically.\n" "[b]Warning:[/b] Removing and freeing this node will render a part of the " "editor useless and may cause a crash." msgstr "" "返回主编辑器控件。将其作为主屏幕的父控件。\n" "[b]注意:[/b]这将返回包含整个编辑器的主编辑器控件,而不是具体的 2D或 3D 视" "窗。\n" "[b]警告:[/b]删除和释放这个节点将使编辑器的一部分失去作用,并可能导致崩溃。" #: doc/classes/EditorInterface.xml msgid "" "Returns the editor's [FileSystemDock] instance.\n" "[b]Warning:[/b] Removing and freeing this node will render a part of the " "editor useless and may cause a crash." msgstr "" "返回编辑器的文件系统面板 [FileSystemDock] 实例。\n" "[b]警告:[/b]移除和释放此节点将使编辑器的一部分失去作用,并可能导致崩溃。" #: doc/classes/EditorInterface.xml msgid "" "Returns the editor's [EditorInspector] instance.\n" "[b]Warning:[/b] Removing and freeing this node will render a part of the " "editor useless and may cause a crash." msgstr "" "返回编辑器的属性检查器 [EditorInspector]实例。\n" "[b]警告:[/b]删除和释放这个节点将使编辑器的一部分失去作用,并可能导致崩溃。" #: doc/classes/EditorInterface.xml msgid "Returns an [Array] with the file paths of the currently opened scenes." msgstr "返回包含当前打开的场景的文件路径的数组[Array]。" #: doc/classes/EditorInterface.xml msgid "" "Returns the name of the scene that is being played. If no scene is currently " "being played, returns an empty string." msgstr "返回正在播放的场景名称。如果当前没有场景正在播放,返回一个空字符串。" #: doc/classes/EditorInterface.xml msgid "Returns the editor's [EditorFileSystem] instance." msgstr "返回编辑器的[EditorFileSystem]实例。" #: doc/classes/EditorInterface.xml msgid "Returns the editor's [EditorResourcePreview] instance." msgstr "返回编辑器的[EditorResourcePreview]实例。" #: doc/classes/EditorInterface.xml msgid "" "Returns the editor's [ScriptEditor] instance.\n" "[b]Warning:[/b] Removing and freeing this node will render a part of the " "editor useless and may cause a crash." msgstr "" "返回编辑器的脚本编辑器 [ScriptEditor] 实例。\n" "[b]警告:[/b]删除和释放这个节点将使编辑器的一部分失去作用,并可能导致崩溃。" #: doc/classes/EditorInterface.xml msgid "" "Returns the path of the directory currently selected in the " "[FileSystemDock]. If a file is selected, its base directory will be returned " "using [method String.get_base_dir] instead." msgstr "" "返回当前在[FileSystemDock]中选择的目录的路径,如果选择了一个文件,将使用" "[method String.get_base_dir]返回其基本目录。如果选择了一个文件,将使用" "[method String.get_base_dir]返回它的基本目录。" #: doc/classes/EditorInterface.xml msgid "Returns the editor's [EditorSelection] instance." msgstr "返回编辑器的[EditorSelection]实例。" #: doc/classes/EditorInterface.xml msgid "" "Shows the given property on the given [code]object[/code] in the editor's " "Inspector dock. If [code]inspector_only[/code] is [code]true[/code], plugins " "will not attempt to edit [code]object[/code]." msgstr "" "在编辑器的属性检查器中显示给定对象 [code]object[/code] 的给定属性。如果 " "[code]inspector_only[/code] = [code]true[/code],插件将不会尝试编辑对象 " "[code]object[/code]。" #: doc/classes/EditorInterface.xml msgid "" "Returns [code]true[/code] if a scene is currently being played, [code]false[/" "code] otherwise. Paused scenes are considered as being played." msgstr "" "如果场景正在播放,返回 [code]true[/code],否则返回 [code]false[/code]。暂停的" "场景将被视为正在播放。" #: doc/classes/EditorInterface.xml msgid "" "Returns [code]true[/code] if the specified [code]plugin[/code] is enabled. " "The plugin name is the same as its directory name." msgstr "" "如果指定的插件 [code]plugin[/code] 已启用时返回 [code]true[/code]。插件名称与" "其目录名称一致。" #: doc/classes/EditorInterface.xml msgid "" "Returns mesh previews rendered at the given size as an [Array] of [Texture]s." msgstr "返回 [Array] 数组包含给定尺寸渲染的网格预览图[Texture]。" #: doc/classes/EditorInterface.xml msgid "Opens the scene at the given path." msgstr "打开给定路径中的场景。" #: doc/classes/EditorInterface.xml msgid "Plays the currently active scene." msgstr "播放当前活动的场景。" #: doc/classes/EditorInterface.xml msgid "Plays the scene specified by its filepath." msgstr "播放文件路径所指定的场景。" #: doc/classes/EditorInterface.xml msgid "Plays the main scene." msgstr "播放主场景。" #: doc/classes/EditorInterface.xml msgid "Reloads the scene at the given path." msgstr "重新加载给定路径的场景。" #: doc/classes/EditorInterface.xml msgid "" "Saves the scene. Returns either [code]OK[/code] or [code]ERR_CANT_CREATE[/" "code] (see [@GlobalScope] constants)." msgstr "" "保存场景。返回 [code]OK[/code] 或 [code]ERR_CANT_CREATE[/code] (参阅 " "[@GlobalScope] 常量)。" #: doc/classes/EditorInterface.xml msgid "Saves the scene as a file at [code]path[/code]." msgstr "将场景保存为[code]path[/code]处的文件。" #: doc/classes/EditorInterface.xml msgid "" "Selects the file, with the path provided by [code]file[/code], in the " "FileSystem dock." msgstr "在文件系统面板中选中文件,路径由 [code]file[/code] 提供。" #: doc/classes/EditorInterface.xml msgid "" "Sets the editor's current main screen to the one specified in [code]name[/" "code]. [code]name[/code] must match the text of the tab in question exactly " "([code]2D[/code], [code]3D[/code], [code]Script[/code], [code]AssetLib[/" "code])." msgstr "" "将编辑器的当前主界面设置为 [code]name[/code] 中指定的界面。[code]name[/code]" "必须与相关选项卡的文本完全匹配([code]2D[/code], [code]3D[/code], " "[code]Script[/code], [code]AssetLib[/code])。" #: doc/classes/EditorInterface.xml msgid "" "Sets the enabled status of a plugin. The plugin name is the same as its " "directory name." msgstr "设置插件的启用状态。插件名称与其目录名称相同。" #: doc/classes/EditorInterface.xml msgid "Stops the scene that is currently playing." msgstr "停止当前正在播放的场景。" #: doc/classes/EditorInterface.xml msgid "" "If [code]true[/code], enables distraction-free mode which hides side docks " "to increase the space available for the main view." msgstr "" "为 [code]true[/code] 时将启用专注模式,该模式会隐藏侧边面板,增加主视图的可用" "空间。" #: doc/classes/EditorPlugin.xml msgid "Used by the editor to extend its functionality." msgstr "由编辑器使用,用于扩展其功能。" #: doc/classes/EditorPlugin.xml msgid "" "Plugins are used by the editor to extend functionality. The most common " "types of plugins are those which edit a given node or resource type, import " "plugins and export plugins. See also [EditorScript] to add functions to the " "editor." msgstr "" "编辑器使用插件来扩展功能。最常见的插件类型是编辑给定的节点或资源类型、导入插" "件和导出插件。另请参阅[EditorScript]向编辑器添加函数。" #: doc/classes/EditorPlugin.xml msgid "" "Adds a script at [code]path[/code] to the Autoload list as [code]name[/code]." msgstr "" "将 [code]path[/code] 处的脚本作为 [code]name[/code] 添加到自动加载列表中。" #: doc/classes/EditorPlugin.xml msgid "" "Adds a control to the bottom panel (together with Output, Debug, Animation, " "etc). Returns a reference to the button added. It's up to you to hide/show " "the button when needed. When your plugin is deactivated, make sure to remove " "your custom control with [method remove_control_from_bottom_panel] and free " "it with [method Node.queue_free]." msgstr "" "将控件添加到底部面板(包含“输出”“调试”“动画”等)。返回对添加的按钮的引用。您" "可以根据需要隐藏/显示按钮。停用插件后,请确保使用 [method " "remove_control_from_bottom_panel] 移除自定义控件,并使用 [method Node." "queue_free] 释放。" #: doc/classes/EditorPlugin.xml msgid "" "Adds a custom control to a container (see [enum CustomControlContainer]). " "There are many locations where custom controls can be added in the editor " "UI.\n" "Please remember that you have to manage the visibility of your custom " "controls yourself (and likely hide it after adding it).\n" "When your plugin is deactivated, make sure to remove your custom control " "with [method remove_control_from_container] and free it with [method Node." "queue_free]." msgstr "" "将自定义控件添加到容器中(参阅 [enum CustomControlContainer])。在编辑器用户" "界面中,有许多位置可以添加自定义控件。\n" "请记住,您必须自己管理您的自定义控件的可见性(并且很可能在添加后隐藏它)。\n" "当你的插件停用时,请确保使用 [method remove_control_from_container] 删除你的" "自定义控件,并使用 [method Node.queue_free] 释放它。" #: doc/classes/EditorPlugin.xml msgid "" "Adds the control to a specific dock slot (see [enum DockSlot] for options).\n" "If the dock is repositioned and as long as the plugin is active, the editor " "will save the dock position on further sessions.\n" "When your plugin is deactivated, make sure to remove your custom control " "with [method remove_control_from_docks] and free it with [method Node." "queue_free]." msgstr "" "将控件添加到特定的停靠面板(有关选项,请参阅[enum DockSlot])。\n" "如果重新放置了停靠面板,并且只要插件处于活动状态,编辑器就会在以后的会话中保" "存停靠面板的位置。\n" "停用插件后,请确保使用[method remove_control_from_docks]删除自定义控件,并使" "用[method Node.queue_free]释放它。" #: doc/classes/EditorPlugin.xml msgid "" "Adds a custom type, which will appear in the list of nodes or resources. An " "icon can be optionally passed.\n" "When given node or resource is selected, the base type will be instanced " "(ie, \"Spatial\", \"Control\", \"Resource\"), then the script will be loaded " "and set to this object.\n" "You can use the virtual method [method handles] to check if your custom " "object is being edited by checking the script or using the [code]is[/code] " "keyword.\n" "During run-time, this will be a simple object with a script so this function " "does not need to be called then." msgstr "" "添加一个自定义类型,它将出现在节点或资源的列表中。可以选择指定一个图标。\n" "当给定的节点或资源被选中时,基本类型将被实例化" "(即“Spatial”、“Control”、“Resource”),然后脚本将被加载并设置为这个对象。\n" "你可以使用虚拟法 [method handles] 通过检查脚本或使用 [code]is[/code] 关键字来" "检查是否正在编辑自定义对象。\n" "在运行时,这将是一个带有脚本的简单对象,因此不需要调用此函数。" #: doc/classes/EditorPlugin.xml msgid "" "Registers a new [EditorExportPlugin]. Export plugins are used to perform " "tasks when the project is being exported.\n" "See [method add_inspector_plugin] for an example of how to register a plugin." msgstr "" "注册一个新的编辑器导出插件 [EditorExportPlugin]。导出插件是用来在项目被导出时" "执行任务的。\n" "参见 [method add_inspector_plugin],了解如何注册一个插件的例子。" #: doc/classes/EditorPlugin.xml msgid "" "Registers a new [EditorImportPlugin]. Import plugins are used to import " "custom and unsupported assets as a custom [Resource] type.\n" "[b]Note:[/b] If you want to import custom 3D asset formats use [method " "add_scene_import_plugin] instead.\n" "See [method add_inspector_plugin] for an example of how to register a plugin." msgstr "" "注册一个新的编辑器导入插件 [EditorImportPlugin]。导入插件用于导入自定义和不支" "持的资产,作为一个自定义的 [Resource] 资源类型。\n" "[b]注意:[/b]如果你想导入自定义的 3D 资产格式,请使用 [method " "add_scene_import_plugin] 代替。\n" "参见 [method add_inspector_plugin] 以了解如何注册一个插件的例子。" #: doc/classes/EditorPlugin.xml msgid "" "Registers a new [EditorInspectorPlugin]. Inspector plugins are used to " "extend [EditorInspector] and provide custom configuration tools for your " "object's properties.\n" "[b]Note:[/b] Always use [method remove_inspector_plugin] to remove the " "registered [EditorInspectorPlugin] when your [EditorPlugin] is disabled to " "prevent leaks and an unexpected behavior.\n" "[codeblock]\n" "const MyInspectorPlugin = preload(\"res://addons/your_addon/path/to/your/" "script.gd\")\n" "var inspector_plugin = MyInspectorPlugin.new()\n" "\n" "func _enter_tree():\n" " add_inspector_plugin(inspector_plugin)\n" "\n" "func _exit_tree():\n" " remove_inspector_plugin(inspector_plugin)\n" "[/codeblock]" msgstr "" "注册一个新的编辑器属性检查器插件[EditorInspectorPlugin]。检查器插件用于扩展 " "[EditorInspector] 并为你的对象属性提供自定义配置工具。\n" "[b]注意:[/b]当你的 [EditorPlugin] 被禁用时,一定要使用 [method " "remove_inspector_plugin] 来删除注册的 [EditorInspectorPlugin],以防止泄漏和出" "现意外行为。\n" "[codeblock]\n" "const MyInspectorPlugin = preload(\"res://addons/your_addon/path/to/your/" "script.gd\")\n" "var inspector_plugin = MyInspectorPlugin.new()\n" "\n" "func _enter_tree():\n" " add_inspector_plugin( inspector_plugin)\n" "\n" "func _exit_tree():\n" " remove_inspector_plugin(inspector_plugin)\n" "[/codeblock]" #: doc/classes/EditorPlugin.xml msgid "" "Registers a new [EditorSceneImporter]. Scene importers are used to import " "custom 3D asset formats as scenes." msgstr "" "注册一个新的场景导入器 [EditorSceneImporter]。场景导入器可以将自定义 3D 素材" "格式导入为场景。" #: doc/classes/EditorPlugin.xml msgid "" "Registers a new [EditorSpatialGizmoPlugin]. Gizmo plugins are used to add " "custom gizmos to the 3D preview viewport for a [Spatial].\n" "See [method add_inspector_plugin] for an example of how to register a plugin." msgstr "" "注册一个新的空间辅助器插件 [EditorSpatialGizmoPlugin]。Gizmo插件用于为 " "[Spatial] 的 3D预览视窗添加自定义的 gizmos。\n" "参见 [method add_inspector_plugin] 以了解如何注册一个插件的例子。" #: doc/classes/EditorPlugin.xml msgid "" "Adds a custom menu item to [b]Project > Tools[/b] as [code]name[/code] that " "calls [code]callback[/code] on an instance of [code]handler[/code] with a " "parameter [code]ud[/code] when user activates it." msgstr "" "在[b]项目 > 工具[/b]中添加一个自定义菜单项,作为[code]name[/code],当用户激活" "它时,该菜单项将调用[code]callback[/code]参数为[code]ud[/code]的" "[code]handler[/code]实例。" #: doc/classes/EditorPlugin.xml msgid "" "Adds a custom submenu under [b]Project > Tools >[/b] [code]name[/code]. " "[code]submenu[/code] should be an object of class [PopupMenu]. This submenu " "should be cleaned up using [code]remove_tool_menu_item(name)[/code]." msgstr "" "在[b]项目 > 工具[/b]下添加名为 [code]name[/code] 的自定义子菜单。 " "[code]submenu[/code] 应该是 [PopupMenu] 类的对象。此子菜单应使用 " "[code]remove_tool_menu_item(name)[/code] 进行清理。" #: doc/classes/EditorPlugin.xml msgid "" "This method is called when the editor is about to save the project, switch " "to another tab, etc. It asks the plugin to apply any pending state changes " "to ensure consistency.\n" "This is used, for example, in shader editors to let the plugin know that it " "must apply the shader code being written by the user to the object." msgstr "" "当编辑器将进行要保存项目、切换选项卡等操作时,将调用此方法。它要求插件应用任" "何暂挂状态更改以确保一致性。\n" "例如,在着色器编辑器中使用它来使插件将用户编写的着色代码应用于对象。" #: doc/classes/EditorPlugin.xml msgid "" "This method is called when the editor is about to run the project. The " "plugin can then perform required operations before the project runs.\n" "This method must return a boolean. If this method returns [code]false[/" "code], the project will not run. The run is aborted immediately, so this " "also prevents all other plugins' [method build] methods from running." msgstr "" "这个方法在编辑器即将运行项目时被调用。然后,该插件可以在项目运行前执行所需的" "操作。\n" "这个方法必须返回一个布尔值。如果这个方法返回 [code]false[/code],项目将不会运" "行。运行被立即中止,所以这也会阻止所有其他插件的[method build] 方法运行。" #: doc/classes/EditorPlugin.xml msgid "" "Clear all the state and reset the object being edited to zero. This ensures " "your plugin does not keep editing a currently existing node, or a node from " "the wrong scene." msgstr "" "清除所有状态,并将正在编辑的对象重置为零。这可以确保你的插件不会一直编辑一个" "当前存在的节点,或者一个来自错误场景节点。" #: doc/classes/EditorPlugin.xml msgid "" "Called by the engine when the user disables the [EditorPlugin] in the Plugin " "tab of the project settings window." msgstr "当用户在项目设置窗口的插件选项卡中禁用[EditorPlugin]时,由引擎调用。" #: doc/classes/EditorPlugin.xml msgid "" "This function is used for plugins that edit specific object types (nodes or " "resources). It requests the editor to edit the given object." msgstr "" "该函数用于编辑特定对象类型(节点或资源)的插件。它要求编辑器编辑给定的对象。" #: doc/classes/EditorPlugin.xml msgid "" "Called by the engine when the user enables the [EditorPlugin] in the Plugin " "tab of the project settings window." msgstr "当用户在项目设置窗口的插件选项卡中启用[EditorPlugin]时,由引擎调用。" #: doc/classes/EditorPlugin.xml msgid "" "Called by the engine when the 2D editor's viewport is updated. Use the " "[code]overlay[/code] [Control] for drawing. You can update the viewport " "manually by calling [method update_overlays].\n" "[codeblock]\n" "func forward_canvas_draw_over_viewport(overlay):\n" " # Draw a circle at cursor position.\n" " overlay.draw_circle(overlay.get_local_mouse_position(), 64, Color." "white)\n" "\n" "func forward_canvas_gui_input(event):\n" " if event is InputEventMouseMotion:\n" " # Redraw viewport when cursor is moved.\n" " update_overlays()\n" " return true\n" " return false\n" "[/codeblock]" msgstr "" "当2D编辑器的视窗被更新时,由引擎调用。使用 [code]overlay[/code] [Control] 进" "行绘制。你可以通过调用 [method update_overlays] 手动更新视窗。\n" "[codeblock]\n" "func forward_canvas_draw_over_viewport(overlay):\n" " # 在光标位置画一个圆。\n" " overlay.draw_circle(overlay.get_local_mouse_position(), 64, Color." "white)\n" "\n" "func forward_canvas_gui_input(event):\n" " if event is InputEventMouseMotion:\n" " # 当光标被移动时,重绘视窗。\n" " update_overlays()\n" " return true\n" " return false\n" "[/codeblock]" #: doc/classes/EditorPlugin.xml msgid "" "This method is the same as [method forward_canvas_draw_over_viewport], " "except it draws on top of everything. Useful when you need an extra layer " "that shows over anything else.\n" "You need to enable calling of this method by using [method " "set_force_draw_over_forwarding_enabled]." msgstr "" "这个方法和 [method forward_canvas_draw_over_viewport] 一样,只是它在所有东西" "的上面绘制。当你需要一个额外的层显示在其他东西上面时,这个方法很有用。\n" "你需要通过使用 [method set_force_draw_over_forwarding_enabled] 来激活这个方法" "的调用。" #: doc/classes/EditorPlugin.xml msgid "" "Called when there is a root node in the current edited scene, [method " "handles] is implemented and an [InputEvent] happens in the 2D viewport. " "Intercepts the [InputEvent], if [code]return true[/code] [EditorPlugin] " "consumes the [code]event[/code], otherwise forwards [code]event[/code] to " "other Editor classes. Example:\n" "[codeblock]\n" "# Prevents the InputEvent to reach other Editor classes\n" "func forward_canvas_gui_input(event):\n" " var forward = true\n" " return forward\n" "[/codeblock]\n" "Must [code]return false[/code] in order to forward the [InputEvent] to other " "Editor classes. Example:\n" "[codeblock]\n" "# Consumes InputEventMouseMotion and forwards other InputEvent types\n" "func forward_canvas_gui_input(event):\n" " var forward = false\n" " if event is InputEventMouseMotion:\n" " forward = true\n" " return forward\n" "[/codeblock]" msgstr "" "当当前编辑场景中有一个根节点时被调用,[method handles]实现,在2D视窗中发生按" "键输入[InputEvent]。拦截按键输入[InputEvent],如果[code]return true[/code] " "[EditorPlugin]消耗键值[code]event[/code],否则将键值[code]event[/code]转发给" "其他Editor类。例子:\n" "[codeblock]\n" "# 阻止 InputEvent 到达其他编辑类\n" "func forward_canvas_gui_input(event):\n" " var forward = true\n" " return forward\n" "[/codeblock]\n" "必须 [code]return false[/code] 才能将 [InputEvent] 转发到其他编辑器类。例" "子:\n" "[codeblock]\n" "# 消耗InputEventMouseMotion并转发其他InputEvent类型\n" "func forward_canvas_gui_input(event):\n" " var forward = false\n" " if event is InputEventMouseMotion:\n" " forward = true\n" " return forward\n" "[/codeblock]" #: doc/classes/EditorPlugin.xml msgid "" "Called by the engine when the 3D editor's viewport is updated. Use the " "[code]overlay[/code] [Control] for drawing. You can update the viewport " "manually by calling [method update_overlays].\n" "[codeblock]\n" "func forward_spatial_draw_over_viewport(overlay):\n" " # Draw a circle at cursor position.\n" " overlay.draw_circle(overlay.get_local_mouse_position(), 64)\n" "\n" "func forward_spatial_gui_input(camera, event):\n" " if event is InputEventMouseMotion:\n" " # Redraw viewport when cursor is moved.\n" " update_overlays()\n" " return true\n" " return false\n" "[/codeblock]" msgstr "" "当3D编辑器的视窗被更新时,由引擎调用。使用 [code]overlay[/code] 控件 " "[Control] 进行绘制。你可以通过调用 [method update_overlays] 更新覆盖手动更新" "视窗。\n" "[codeblock]\n" "func forward_spatial_draw_over_viewport(overlay):\n" " # 在光标位置画一个圆。\n" " overlay.draw_circle(overlay.get_local_mouse_position(), 64)\n" "\n" "func forward_spatial_gui_input(camera, event):\n" " if event is InputEventMouseMotion:\n" " # 当光标被移动时,重绘视窗。\n" " update_overlays()\n" " return true\n" " return false\n" "[/codeblock]" #: doc/classes/EditorPlugin.xml msgid "" "This method is the same as [method forward_spatial_draw_over_viewport], " "except it draws on top of everything. Useful when you need an extra layer " "that shows over anything else.\n" "You need to enable calling of this method by using [method " "set_force_draw_over_forwarding_enabled]." msgstr "" "这个方法和 [method forward_spatial_draw_over_viewport] 一样,只是它在所有东西" "的上面绘制。当你需要一个额外的层显示在其他东西上面时,这个方法很有用。\n" "你需要通过使用 [method set_force_draw_over_forwarding_enabled] 来激活这个方法" "的调用。" #: doc/classes/EditorPlugin.xml msgid "" "Called when there is a root node in the current edited scene, [method " "handles] is implemented and an [InputEvent] happens in the 3D viewport. " "Intercepts the [InputEvent], if [code]return true[/code] [EditorPlugin] " "consumes the [code]event[/code], otherwise forwards [code]event[/code] to " "other Editor classes. Example:\n" "[codeblock]\n" "# Prevents the InputEvent to reach other Editor classes\n" "func forward_spatial_gui_input(camera, event):\n" " var forward = true\n" " return forward\n" "[/codeblock]\n" "Must [code]return false[/code] in order to forward the [InputEvent] to other " "Editor classes. Example:\n" "[codeblock]\n" "# Consumes InputEventMouseMotion and forwards other InputEvent types\n" "func forward_spatial_gui_input(camera, event):\n" " var forward = false\n" " if event is InputEventMouseMotion:\n" " forward = true\n" " return forward\n" "[/codeblock]" msgstr "" "在当前编辑的场景中存在根节点时调用,实现[method handles]并在3D视窗中发生按键" "输入[InputEvent]。拦截按键输入[InputEvent],如果[code]return true[/code],则" "[EditorPlugin]会使用键值[code]event[/code],否则将键值[code]event[/code]转发" "到其他Editor类。例子:\n" "[codeblock]\n" "# 阻止 InputEvent 到达其他编辑类\n" "func forward_spatial_gui_input(camera, event):\n" " var forward = true\n" " return forward\n" "[/codeblock]\n" "必须 [code]return false[/code] 才能将 [InputEvent] 转发到其他编辑器类。例" "子:\n" "[codeblock]\n" "# 消耗 InputEventMouseMotion 并转发其他 InputEvent 类型\n" "func forward_spatial_gui_input(camera, event):\n" " var forward = false\n" " if event is InputEventMouseMotion:\n" " forward = true\n" " return forward\n" "[/codeblock]" #: doc/classes/EditorPlugin.xml msgid "" "This is for editors that edit script-based objects. You can return a list of " "breakpoints in the format ([code]script:line[/code]), for example: " "[code]res://path_to_script.gd:25[/code]." msgstr "" "这是为编辑基于脚本的对象的编辑器。您可以返回格式中的断点列表([code]script:" "line[/code]),例如:[code]res://path_to_script.gd:25[/code]。" #: doc/classes/EditorPlugin.xml msgid "" "Returns the [EditorInterface] object that gives you control over Godot " "editor's window and its functionalities." msgstr "" "返回[EditorInterface]对象,该对象使您可以控制Godot编辑器的窗口及其功能。" #: doc/classes/EditorPlugin.xml msgid "" "Override this method in your plugin to return a [Texture] in order to give " "it an icon.\n" "For main screen plugins, this appears at the top of the screen, to the right " "of the \"2D\", \"3D\", \"Script\", and \"AssetLib\" buttons.\n" "Ideally, the plugin icon should be white with a transparent background and " "16x16 pixels in size.\n" "[codeblock]\n" "func get_plugin_icon():\n" " # You can use a custom icon:\n" " return preload(\"res://addons/my_plugin/my_plugin_icon.svg\")\n" " # Or use a built-in icon:\n" " return get_editor_interface().get_base_control().get_icon(\"Node\", " "\"EditorIcons\")\n" "[/codeblock]" msgstr "" "在你的插件中覆盖这个方法,返回一个纹理 [Texture],以便给它一个图标。\n" "对于主界面的插件,它出现在屏幕的顶部,在 \"2D\"、\"3D\"、\"Script \"和 " "\"AssetLib \"按钮的右边。\n" "理想情况下,插件的图标应该是透明背景的白色,尺寸为16x16像素。\n" "[codeblock]\n" "func get_plugin_icon():\n" " # 你可以使用一个自定义的图标。\n" " return preload(\"res://addons/my_plugin/my_plugin_icon.svg\")\n" " # 或者使用一个内置的图标。\n" " return get_editor_interface().get_base_control().get_icon(\"Node\", " "\"EditorIcons\")\n" "[/codeblock]" #: doc/classes/EditorPlugin.xml msgid "" "Override this method in your plugin to provide the name of the plugin when " "displayed in the Godot editor.\n" "For main screen plugins, this appears at the top of the screen, to the right " "of the \"2D\", \"3D\", \"Script\", and \"AssetLib\" buttons." msgstr "" "在Godot编辑器中显示时,请在插件中覆盖此方法以提供插件的名称。\n" "对于主屏幕插件,它显示在屏幕顶部,在“ 2D”,“ 3D”,“脚本”和“ AssetLib”按钮的右" "侧。" #: doc/classes/EditorPlugin.xml #, fuzzy msgid "" "Gets the Editor's dialog used for making scripts.\n" "[b]Note:[/b] Users can configure it before use.\n" "[b]Warning:[/b] Removing and freeing this node will render a part of the " "editor useless and may cause a crash." msgstr "" "获取用于创建脚本的编辑器对话框。\n" "[b]注意:[/b]用户可以在使用前对其进行配置。\n" "[b]警告:[/b]移除和释放这个节点将使编辑器的一部分失去作用,并可能导致崩溃。" #: doc/classes/EditorPlugin.xml msgid "" "Gets the state of your plugin editor. This is used when saving the scene (so " "state is kept when opening it again) and for switching tabs (so state can be " "restored when the tab returns)." msgstr "" "获取插件编辑器的状态。这用于保存场景时(从而再次打开时,它的状态被保持)和切" "换标签(从而状态能够当拉片返回恢复)时使用。" #: doc/classes/EditorPlugin.xml msgid "" "Gets the undo/redo object. Most actions in the editor can be undoable, so " "use this object to make sure this happens when it's worth it." msgstr "" "获取撤消/重做对象。编辑器中的大多数操作都是可以撤消的,因此请使用此对象来确保" "在需要时执行此操作。" #: doc/classes/EditorPlugin.xml msgid "" "Gets the GUI layout of the plugin. This is used to save the project's editor " "layout when [method queue_save_layout] is called or the editor layout was " "changed(For example changing the position of a dock)." msgstr "" "获取插件的GUI布局。当调用[method queue_save_layout]更改了编辑器布局(例如,更" "改停靠点的位置)时或保存项目的编辑器布局。" #: doc/classes/EditorPlugin.xml msgid "" "Implement this function if your plugin edits a specific type of object " "(Resource or Node). If you return [code]true[/code], then you will get the " "functions [method edit] and [method make_visible] called when the editor " "requests them. If you have declared the methods [method " "forward_canvas_gui_input] and [method forward_spatial_gui_input] these will " "be called too." msgstr "" "如果您的插件编辑特定类型的对象(资源或节点),请实现此功能。如果返回 " "[code]true[/code],则当编辑器请求它们时,将获得调用 [method edit] 和 [method " "make_visible] 的函数。如果您已经声明了方法 [method forward_canvas_gui_input] " "和 [method forward_spatial_gui_input],这些方法也将被调用。" #: doc/classes/EditorPlugin.xml msgid "" "Returns [code]true[/code] if this is a main screen editor plugin (it goes in " "the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b] and " "[b]AssetLib[/b])." msgstr "" "如果这是一个主屏幕编辑插件,返回 [code]true[/code](它与[b]2D[/b]、[b]3D[/b]、" "[b]Script[/b]和[b]AssetLib[/b]一起放在工作区选择器中)。" #: doc/classes/EditorPlugin.xml msgid "Minimizes the bottom panel." msgstr "最小化底部面板。" #: doc/classes/EditorPlugin.xml msgid "Makes a specific item in the bottom panel visible." msgstr "使底部面板中的一个特定项目可见。" #: doc/classes/EditorPlugin.xml msgid "" "This function will be called when the editor is requested to become visible. " "It is used for plugins that edit a specific object type.\n" "Remember that you have to manage the visibility of all your editor controls " "manually." msgstr "" "当编辑器被要求变为可见时,该函数将被调用。它用于编辑特定对象类型的插件。\n" "记住,你必须手动管理所有编辑器控件的可见性。" #: doc/classes/EditorPlugin.xml msgid "Queue save the project's editor layout." msgstr "排队保存项目的编辑器布局。" #: doc/classes/EditorPlugin.xml msgid "Removes an Autoload [code]name[/code] from the list." msgstr "从列表中删除自动加载[code]name[/code]。" #: doc/classes/EditorPlugin.xml msgid "" "Removes the control from the bottom panel. You have to manually [method Node." "queue_free] the control." msgstr "从底部面板上删除控件。您必须手动[method Node.queue_free]释放控件。" #: doc/classes/EditorPlugin.xml msgid "" "Removes the control from the specified container. You have to manually " "[method Node.queue_free] the control." msgstr "从指定的容器中删除控件。您必须手动[method Node.queue_free]释放控件。" #: doc/classes/EditorPlugin.xml msgid "" "Removes the control from the dock. You have to manually [method Node." "queue_free] the control." msgstr "从扩展面板中删除控件。您必须手动[method Node.queue_free]释放控件。" #: doc/classes/EditorPlugin.xml msgid "Removes a custom type added by [method add_custom_type]." msgstr "删除由 [method add_custom_type] 添加的自定义类型。" #: doc/classes/EditorPlugin.xml msgid "Removes an export plugin registered by [method add_export_plugin]." msgstr "删除由 [method add_export_plugin] 注册的导出插件。" #: doc/classes/EditorPlugin.xml msgid "Removes an import plugin registered by [method add_import_plugin]." msgstr "删除由 [method add_import_plugin] 注册的导入插件。" #: doc/classes/EditorPlugin.xml msgid "Removes an inspector plugin registered by [method add_import_plugin]" msgstr "删除由 [method add_import_plugin] 注册的检查器插件" #: doc/classes/EditorPlugin.xml msgid "" "Removes a scene importer registered by [method add_scene_import_plugin]." msgstr "删除由 [method add_scene_import_plugin] 注册的场景导入器。" #: doc/classes/EditorPlugin.xml msgid "Removes a gizmo plugin registered by [method add_spatial_gizmo_plugin]." msgstr "删除由 [method add_spatial_gizmo_plugin] 注册的控制器插件。" #: doc/classes/EditorPlugin.xml msgid "Removes a menu [code]name[/code] from [b]Project > Tools[/b]." msgstr "从[b]项目 > 工具[/b]中删除菜单[code]name[/code]。" #: doc/classes/EditorPlugin.xml msgid "" "This method is called after the editor saves the project or when it's " "closed. It asks the plugin to save edited external scenes/resources." msgstr "" "这个方法在编辑器保存项目后或关闭项目时被调用,它要求插件保存编辑的外部场景/资" "源。" #: doc/classes/EditorPlugin.xml msgid "" "Enables calling of [method forward_canvas_force_draw_over_viewport] for the " "2D editor and [method forward_spatial_force_draw_over_viewport] for the 3D " "editor when their viewports are updated. You need to call this method only " "once and it will work permanently for this plugin." msgstr "" "启用2D编辑器的 [method forward_canvas_force_draw_over_viewport] 和3D编辑器的 " "[method forward_spatial_force_draw_over_viewport] 在其视窗更新时的调用。你只" "需要调用这个方法一次,它就会对这个插件永久起作用。" #: doc/classes/EditorPlugin.xml msgid "" "Use this method if you always want to receive inputs from 3D view screen " "inside [method forward_spatial_gui_input]. It might be especially usable if " "your plugin will want to use raycast in the scene." msgstr "" "如果你想在[method forward_spatial_gui_input]里面接收来自3D视图屏幕的输入,请" "使用这个方法。如果你的插件想要在场景中使用光线广播,那么这个方法可能特别有" "用。" #: doc/classes/EditorPlugin.xml msgid "Restore the state saved by [method get_state]." msgstr "恢复[method get_state]保存的状态。" #: doc/classes/EditorPlugin.xml msgid "Restore the plugin GUI layout saved by [method get_window_layout]." msgstr "恢复[method get_window_layout]保存的插件GUI布局。" #: doc/classes/EditorPlugin.xml msgid "" "Updates the overlays of the 2D and 3D editor viewport. Causes methods " "[method forward_canvas_draw_over_viewport], [method " "forward_canvas_force_draw_over_viewport], [method " "forward_spatial_draw_over_viewport] and [method " "forward_spatial_force_draw_over_viewport] to be called." msgstr "" "更新 2D 和 3D 编辑器视窗的覆盖层。导致方法 [method " "forward_canvas_draw_over_viewport]、[method " "forward_canvas_force_draw_over_viewport]、[method " "forward_spatial_draw_over_viewport] 和 [method " "forward_spatial_force_draw_over_viewport] 被调用。" #: doc/classes/EditorPlugin.xml msgid "" "Emitted when user changes the workspace ([b]2D[/b], [b]3D[/b], [b]Script[/" "b], [b]AssetLib[/b]). Also works with custom screens defined by plugins." msgstr "" "当用户改变工作空间([b]2D[/b], [b]3D[/b], [b]Script[/b], [b]AssetLib[/b])时触" "发。也适用于由插件定义的自定义屏幕。" #: doc/classes/EditorPlugin.xml msgid "" "Emitted when the scene is changed in the editor. The argument will return " "the root node of the scene that has just become active. If this scene is new " "and empty, the argument will be [code]null[/code]." msgstr "" "在编辑器中更改场景时触发。该参数将返回刚刚变为活动状态的场景的根节点。如果此" "场景是新场景且为空,则参数将为[code]null[/code]。" #: doc/classes/EditorPlugin.xml msgid "" "Emitted when user closes a scene. The argument is file path to a closed " "scene." msgstr "当用户关闭场景时触发。参数是关闭场景的文件路径。" #: doc/classes/EditorPlugin.xml msgid "Represents the size of the [enum DockSlot] enum." msgstr "表示[enum DockSlot]枚举的大小。" #: doc/classes/EditorProperty.xml msgid "Custom control to edit properties for adding into the inspector." msgstr "自定义控件属性添加到检查器中。" #: doc/classes/EditorProperty.xml msgid "" "This control allows property editing for one or multiple properties into " "[EditorInspector]. It is added via [EditorInspectorPlugin]." msgstr "" "该控件可以将一个或多个属性编辑到 [EditorInspector] 中。通过 " "[EditorInspectorPlugin] 添加。" #: doc/classes/EditorProperty.xml msgid "" "If any of the controls added can gain keyboard focus, add it here. This " "ensures that focus will be restored if the inspector is refreshed." msgstr "" "如果添加的任何控件可以获得键盘焦点,将其添加到此处。这样可以确保在检查器被刷" "新时恢复焦点。" #: doc/classes/EditorProperty.xml msgid "" "If one or several properties have changed, this must be called. [code]field[/" "code] is used in case your editor can modify fields separately (as an " "example, Vector3.x). The [code]changing[/code] argument avoids the editor " "requesting this property to be refreshed (leave as [code]false[/code] if " "unsure)." msgstr "" "如果一个或几个属性发生了变化,必然会调用这个函数。[code]field[/code]是在你的" "编辑器可以单独修改字段的情况下使用的(比如Vector3.x)。[code]changing[/code]" "参数可以避免编辑器要求刷新这个属性(如果不确定的话,就用[code]false[/code])。" #: doc/classes/EditorProperty.xml msgid "Gets the edited object." msgstr "获取编辑后的对象。" #: doc/classes/EditorProperty.xml msgid "" "Gets the edited property. If your editor is for a single property (added via " "[method EditorInspectorPlugin.parse_property]), then this will return the " "property." msgstr "" "获取已编辑的属性。如果你的编辑器是针对单个属性的(通过 [method " "EditorInspectorPlugin.parse_property] 添加),那么这将返回属性。" #: doc/classes/EditorProperty.xml msgid "Must be implemented to provide a custom tooltip to the property editor." msgstr "必须实现为属性编辑器提供一个自定义工具提示。" #: doc/classes/EditorProperty.xml msgid "" "Puts the [code]editor[/code] control below the property label. The control " "must be previously added using [method Node.add_child]." msgstr "" "将 [code]editor[/code] 编辑器控件放在属性标签的下面。该控件必须事先用 " "[method Node.add_child] 添加。" #: doc/classes/EditorProperty.xml msgid "When this virtual function is called, you must update your editor." msgstr "当这个虚函数被调用时,你必须更新你的编辑器。" #: doc/classes/EditorProperty.xml msgid "" "Used by the inspector, set to [code]true[/code] when the property is " "checkable." msgstr "检查器会使用,当属性可勾选时,请设置为 [code]true[/code]。" #: doc/classes/EditorProperty.xml msgid "" "Used by the inspector, set to [code]true[/code] when the property is checked." msgstr "检查器会使用,当属性已勾选时,请设置为 [code]true[/code]。" #: doc/classes/EditorProperty.xml msgid "" "Used by the inspector, set to [code]true[/code] when the property is drawn " "with the editor theme's warning color. This is used for editable children's " "properties." msgstr "" "检查器会使用,当属性用编辑器主题的警告颜色着色时,请设置为 [code]true[/" "code]。这用于可编辑的子节点的属性。" #: doc/classes/EditorProperty.xml msgid "" "Used by the inspector, set to [code]true[/code] when the property can add " "keys for animation." msgstr "检查器会使用,当属性可以为添加为动画键时,请设置为 [code]true[/code]。" #: doc/classes/EditorProperty.xml msgid "Set this property to change the label (if you want to show one)." msgstr "设置此属性可改变标签(如果你想显示标签)。" #: doc/classes/EditorProperty.xml msgid "" "Used by the inspector, set to [code]true[/code] when the property is read-" "only." msgstr "检查器会使用,当属性为只读时,请设置为 [code]true[/code]。" #: doc/classes/EditorProperty.xml msgid "" "Emit it if you want multiple properties modified at the same time. Do not " "use if added via [method EditorInspectorPlugin.parse_property]." msgstr "" "如果你想同时修改多个属性,请触发它。如果通过 [method EditorInspectorPlugin." "parse_property] 添加,则不要使用。" #: doc/classes/EditorProperty.xml msgid "Used by sub-inspectors. Emit it if what was selected was an Object ID." msgstr "子检查器会使用。如果选择的是对象 ID,则触发。" #: doc/classes/EditorProperty.xml msgid "" "Do not emit this manually, use the [method emit_changed] method instead." msgstr "不要手动触发,使用 [method emit_changed] 方法代替。" #: doc/classes/EditorProperty.xml msgid "Emitted when a property was checked. Used internally." msgstr "检查属性时触发。在内部使用。" #: doc/classes/EditorProperty.xml msgid "" "Emit it if you want to add this value as an animation key (check for keying " "being enabled first)." msgstr "如果您想将此值添加这个值为动画键,请触发它(首先检查是否启用了键控)。" #: doc/classes/EditorProperty.xml msgid "Emit it if you want to key a property with a single value." msgstr "如果你想用一个单一的值来键入一个属性,请触发它。" #: doc/classes/EditorProperty.xml msgid "" "Emit it if you want to mark (or unmark) the value of a property for being " "saved regardless of being equal to the default value.\n" "The default value is the one the property will get when the node is just " "instantiated and can come from an ancestor scene in the inheritance/" "instancing chain, a script or a builtin class." msgstr "" "如果想要对某个属性进行标记(或者取消标记),让它无论是否与默认值相等都进行保" "存,请触发此信号。\n" "默认值指节点刚刚实例化后属性的取值,可能来自继承/实例化链上的祖先场景,也可能" "来自脚本或内置类。" #: doc/classes/EditorProperty.xml msgid "" "If you want a sub-resource to be edited, emit this signal with the resource." msgstr "如果你想编辑一个子资源,请将此信号与资源一起发出。" #: doc/classes/EditorProperty.xml msgid "Emitted when selected. Used internally." msgstr "选择时触发。内部使用。" #: doc/classes/EditorResourcePicker.xml msgid "Godot editor's control for selecting [Resource] type properties." msgstr "Godot 编辑器用于选择 [Resource] 类型属性的控件。" #: doc/classes/EditorResourcePicker.xml msgid "" "This [Control] node is used in the editor's Inspector dock to allow editing " "of [Resource] type properties. It provides options for creating, loading, " "saving and converting resources. Can be used with [EditorInspectorPlugin] to " "recreate the same behavior.\n" "[b]Note:[/b] This [Control] does not include any editor for the resource, as " "editing is controlled by the Inspector dock itself or sub-Inspectors." msgstr "" "此 [Control] 节点用于编辑器的属性检查器以允许编辑 [Resource] 类型属性。它提供" "了创建、加载、保存和转换资源的选项。可以与 [EditorInspectorPlugin] 检查器插件" "一起使用以重新创建相同的行为。\n" "[b]注意:[/b]这个 [Control] 不包括资源的任何编辑器,因为编辑是由属性检查器本" "身或子检查器控制的。" #: doc/classes/EditorResourcePicker.xml msgid "" "Returns a list of all allowed types and subtypes corresponding to the " "[member base_type]. If the [member base_type] is empty, an empty list is " "returned." msgstr "" "返回一个与 [member base_type] 对应的所有允许的类型和子类型的列表。如果 " "[member base_type] 是空,将返回一个空的列表。" #: doc/classes/EditorResourcePicker.xml msgid "" "This virtual method can be implemented to handle context menu items not " "handled by default. See [method set_create_options]." msgstr "" "此虚拟法可以实现处理默认未处理的上下文菜单项目。参见 [method " "set_create_options]。" #: doc/classes/EditorResourcePicker.xml msgid "" "This virtual method is called when updating the context menu of " "[EditorResourcePicker]. Implement this method to override the \"New ...\" " "items with your own options. [code]menu_node[/code] is a reference to the " "[PopupMenu] node.\n" "[b]Note:[/b] Implement [method handle_menu_selected] to handle these custom " "items." msgstr "" "在更新 [EditorResourcePicker] 的上下文菜单时调用这个虚方法。实现这个方法可以" "用你自己的选项覆盖“新建...”项目。[code]menu_node[/code] 是对 [PopupMenu] 菜单" "弹窗节点的引用。\n" "[b]注意:[/b]实现 [method handle_menu_selected] 来处理这些自定义项目。" #: doc/classes/EditorResourcePicker.xml msgid "" "Sets the toggle mode state for the main button. Works only if [member " "toggle_mode] is set to [code]true[/code]." msgstr "" "设置主按钮的切换模式状态。只有当 [member toggle_mode] 被设置为 [code]true[/" "code] 时才起作用。" #: doc/classes/EditorResourcePicker.xml msgid "" "The base type of allowed resource types. Can be a comma-separated list of " "several options." msgstr "允许资源类型的基本类型。可以是几个选项的逗号分离列表。" #: doc/classes/EditorResourcePicker.xml msgid "If [code]true[/code], the value can be selected and edited." msgstr "如果 [code]true[/code],则可以选择和编辑该值。" #: doc/classes/EditorResourcePicker.xml msgid "The edited resource value." msgstr "已编辑的资源值。" #: doc/classes/EditorResourcePicker.xml msgid "" "If [code]true[/code], the main button with the resource preview works in the " "toggle mode. Use [method set_toggle_pressed] to manually set the state." msgstr "" "如果 [code]true[/code],带有资源预览的主按钮在切换模式下工作。使用 [method " "set_toggle_pressed] 来手动设置状态。" #: doc/classes/EditorResourcePicker.xml msgid "Emitted when the value of the edited resource was changed." msgstr "当正在编辑的资源改变值时发出。" #: doc/classes/EditorResourcePicker.xml msgid "" "Emitted when the resource value was set and user clicked to edit it. When " "[code]edit[/code] is [code]true[/code], the signal was caused by the context " "menu \"Edit\" option." msgstr "" "当资源值被设置,并且用户点击它编辑时触发。当[code]edit[/code]为 [code]true[/" "code] 时,该信号是由上下文菜单的 \"Edit\" 选项引起。" #: doc/classes/EditorResourcePreview.xml msgid "Helper to generate previews of resources or files." msgstr "帮助生成资源或文件的预览。" #: doc/classes/EditorResourcePreview.xml msgid "" "This object is used to generate previews for resources of files.\n" "[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access " "the singleton using [method EditorInterface.get_resource_previewer]." msgstr "" "该对象用于生成文件资源的预览。\n" "[b]注意:[/b]不应该直接实例化这个类,而是使用[method EditorInterface." "get_resource_previewer]访问单例。而是,使用[method EditorInterface." "get_resource_previewer]访问单例。" #: doc/classes/EditorResourcePreview.xml msgid "Create an own, custom preview generator." msgstr "创建一个自定义的预览生成器。" #: doc/classes/EditorResourcePreview.xml msgid "" "Check if the resource changed, if so, it will be invalidated and the " "corresponding signal emitted." msgstr "检查资源是否发生变化,如果发生变化,则无效,并发出相应的信号。" #: doc/classes/EditorResourcePreview.xml msgid "" "Queue the [code]resource[/code] being edited for preview. Once the preview " "is ready, the [code]receiver[/code]'s [code]receiver_func[/code] will be " "called. The [code]receiver_func[/code] must take the following four " "arguments: [String] path, [Texture] preview, [Texture] thumbnail_preview, " "[Variant] userdata. [code]userdata[/code] can be anything, and will be " "returned when [code]receiver_func[/code] is called.\n" "[b]Note:[/b] If it was not possible to create the preview the " "[code]receiver_func[/code] will still be called, but the preview will be " "null." msgstr "" "将正在编辑的资源 [code]resource[/code] 排队进行预览。一旦预览准备好了,接收" "器 [code]receiver[/code] 的 [code]receiver_func[/code] 将被调用。" "[code]receiver_func[/code] 必须接受以下四个参数。[String] path, [Texture] " "preview, [Texture] thumbnail_preview, [Variant] userdata。[code]userdata[/" "code] 可以是任何东西,并将在 [code]receiver_func[/code] 被调用时返回。\n" "[b]注意:[/b]如果无法创建预览,[code]receiver_func[/code] 仍将被调用,但预览" "将为空。" #: doc/classes/EditorResourcePreview.xml msgid "" "Queue a resource file located at [code]path[/code] for preview. Once the " "preview is ready, the [code]receiver[/code]'s [code]receiver_func[/code] " "will be called. The [code]receiver_func[/code] must take the following four " "arguments: [String] path, [Texture] preview, [Texture] thumbnail_preview, " "[Variant] userdata. [code]userdata[/code] can be anything, and will be " "returned when [code]receiver_func[/code] is called.\n" "[b]Note:[/b] If it was not possible to create the preview the " "[code]receiver_func[/code] will still be called, but the preview will be " "null." msgstr "" "将位于路径 [code]path[/code] 的资源文件排队以进行预览。预览准备好后,将调用 " "[code]receiver[/code] 的 [code]receiver_func[/code] 函数。" "[code]receiver_func[/code] 必须带有以下四个参数:[String] path、[Texture] " "preview、[Texture] thumbnail_preview、[Variant] userdata。用户数据 " "[code]userdata[/code] 可以是任意的,会在调用 [code]receiver_func[/code] 时返" "回。\n" "[b]注意:[/b]无法创建预览时仍将调用 [code]receiver_func[/code],但 preview 会" "是 null。" #: doc/classes/EditorResourcePreview.xml msgid "Removes a custom preview generator." msgstr "移除自定义预览生成器。" #: doc/classes/EditorResourcePreview.xml msgid "" "Emitted if a preview was invalidated (changed). [code]path[/code] " "corresponds to the path of the preview." msgstr "预览无效(更改)时触发。[code]path[/code]对应的预览路径。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "Custom generator of previews." msgstr "自定义的预览生成器。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "" "Custom code to generate previews. Please check [code]file_dialog/" "thumbnail_size[/code] in [EditorSettings] to find out the right size to do " "previews at." msgstr "" "自定义代码来生成预览。请查看[EditorSettings]中的[code]file_dialog/" "thumbnail_size[/code],找出适合做预览的尺寸。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "" "If this function returns [code]true[/code], the generator will call [method " "generate] or [method generate_from_path] for small previews as well.\n" "By default, it returns [code]false[/code]." msgstr "" "如果该函数返回 [code]true[/code],生成器将调用[method generate]或[method " "generate_from_path]来进行小型预览。\n" "默认情况下,它会返回 [code]false[/code]。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "" "Generate a preview from a given resource with the specified size. This must " "always be implemented.\n" "Returning an empty texture is an OK way to fail and let another generator " "take care.\n" "Care must be taken because this function is always called from a thread (not " "the main thread)." msgstr "" "从指定大小的给定资源生成预览。这必须始终执行。\n" "返回空纹理是失败的好方法,并让另一个生成器负责。\n" "注意!,因为始终从线程(而不是主线程)调用此函数。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "" "Generate a preview directly from a path with the specified size. " "Implementing this is optional, as default code will load and call [method " "generate].\n" "Returning an empty texture is an OK way to fail and let another generator " "take care.\n" "Care must be taken because this function is always called from a thread (not " "the main thread)." msgstr "" "直接从指定大小的路径生成预览。实现此操作是可选的,因为默认代码将加载并调用" "[method generate]。\n" "返回空纹理是失败的好方法,并让另一个生成器负责。\n" "注意!,因为始终从线程(而不是主线程)调用此函数。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "" "If this function returns [code]true[/code], the generator will automatically " "generate the small previews from the normal preview texture generated by the " "methods [method generate] or [method generate_from_path].\n" "By default, it returns [code]false[/code]." msgstr "" "如果此函数返回 [code]true[/code],则生成器将根据由[method generate]或[method " "generate_from_path]方法生成的常规预览纹理自动生成较小的预览。\n" "默认情况下,它返回 [code]false[/code]。" #: doc/classes/EditorResourcePreviewGenerator.xml msgid "" "Returns [code]true[/code] if your generator supports the resource of type " "[code]type[/code]." msgstr "" "如果你的生成器支持类型[code]type[/code]的资源,返回 [code]true[/code]。" #: doc/classes/EditorSceneImporter.xml msgid "Imports scenes from third-parties' 3D files." msgstr "从第三方的3D文件中导入场景。" #: doc/classes/EditorSceneImporter.xml msgid "" "[EditorSceneImporter] allows to define an importer script for a third-party " "3D format.\n" "To use [EditorSceneImporter], register it using the [method EditorPlugin." "add_scene_import_plugin] method first." msgstr "" "[EditorSceneImporter] 可用于定义第三方 3D 格式的导入脚本。\n" "要使用 [EditorSceneImporter],请先使用 [method EditorPlugin." "add_scene_import_plugin] 注册。" #: modules/fbx/doc_classes/EditorSceneImporterFBX.xml msgid "FBX 3D asset importer." msgstr "FBX 3D 素材导入器。" #: modules/fbx/doc_classes/EditorSceneImporterFBX.xml msgid "" "This is an FBX 3D asset importer with full support for most FBX features.\n" "If exporting a FBX scene from Autodesk Maya, use these FBX export settings:\n" "[codeblock]\n" "- Smoothing Groups\n" "- Smooth Mesh\n" "- Triangluate (for meshes with blend shapes)\n" "- Bake Animation\n" "- Resample All\n" "- Deformed Models\n" "- Skins\n" "- Blend Shapes\n" "- Curve Filters\n" "- Constant Key Reducer\n" "- Auto Tangents Only\n" "- *Do not check* Constraints (as it will break the file)\n" "- Can check Embed Media (embeds textures into the exported FBX file)\n" " - Note that when importing embedded media, the texture and mesh will be a " "single immutable file.\n" " - You will have to re-export then re-import the FBX if the texture has " "changed.\n" "- Units: Centimeters\n" "- Up Axis: Y\n" "- Binary format in FBX 2017\n" "[/codeblock]" msgstr "" "这是一个 FBX 3D 素材导入器,完全支持大多数 FBX 功能。\n" "如果从 Autodesk Maya 导出一个 FBX 场景,请使用这些 FBX 导出设置:\n" "[codeblock]\n" "- Smoothing Groups 平滑化组\n" "- Smooth Mesh 平滑网格\n" "- Triangluate 三角(用于具有混合形状的网格)\n" "- Bake Animation 烘焙动画\n" "- Resample All 全部重采样\n" "- Deformed Models 变形的模型\n" "- Skins 蒙皮\n" "- Blend Shapes 混合形状\n" "- Curve Filters 曲线过滤器\n" "- Constant Key Reducer 恒定键值减少器\n" "- Auto Tangents Only 仅自动切线\n" "- *Do not check* Constraints (as it will break the file) *不要勾选*约束(因为" "会破坏文件)。\n" "- Can check Embed Media (embeds textures into the exported FBX file) 可以勾选" "嵌入媒介(将纹理嵌入到导出的FBX文件中)。\n" " - 注意,当导入嵌入媒介时,纹理和网格将是一个单一的不可更改的文件。\n" " - 如果纹理发生了变化,你将不得不重新导出然后重新导入FBX。\n" "- Units: Centimeters 单位:分米\n" "- Up Axis: Y 上轴:Y\n" "-Binary format in FBX 2017 二进制格式为2017 FBX\n" "[/codeblock]" #: modules/gltf/doc_classes/EditorSceneImporterGLTF.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [EditorSceneImporterGLTF] within a script will cause an error in an " "exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [EditorSceneImporterGLTF] 的引用在导出后的项" "目中会导致错误。" #: doc/classes/EditorScenePostImport.xml msgid "Post-processes scenes after import." msgstr "导入后对场景进行后处理。" #: doc/classes/EditorScenePostImport.xml msgid "" "Imported scenes can be automatically modified right after import by setting " "their [b]Custom Script[/b] Import property to a [code]tool[/code] script " "that inherits from this class.\n" "The [method post_import] callback receives the imported scene's root node " "and returns the modified version of the scene. Usage example:\n" "[codeblock]\n" "tool # Needed so it runs in editor\n" "extends EditorScenePostImport\n" "\n" "# This sample changes all node names\n" "\n" "# Called right after the scene is imported and gets the root node\n" "func post_import(scene):\n" " # Change all node names to \"modified_[oldnodename]\"\n" " iterate(scene)\n" " return scene # Remember to return the imported scene\n" "\n" "func iterate(node):\n" " if node != null:\n" " node.name = \"modified_\" + node.name\n" " for child in node.get_children():\n" " iterate(child)\n" "[/codeblock]" msgstr "" "导入的场景可以在导入后立即自动修改,方法是将其 [b]自定义脚本[/b] 导入属性设置" "为继承自该类的 [code]tool[/code] 脚本。\n" "[method post_import]回调接收导入场景的根节点,并返回场景的修改版本。使用示" "例。\n" "[codeblock]\n" "tool # Needed so it runs in editor\n" "extends EditorScenePostImport\n" "\n" "# This sample changes all node names\n" "\n" "# Called right after the scene is imported and gets the root node\n" "func post_import(scene):\n" " # Change all node names to \"modified_[oldnodename]\"\n" " iterate(scene)\n" " return scene # Remember to return the imported scene\n" "\n" "func iterate(node):\n" " if node != null:\n" " node.name = \"modified_\" + node.name\n" " for child in node.get_children():\n" " iterate(child)\n" "[/codeblock]" #: doc/classes/EditorScenePostImport.xml msgid "" "Returns the source file path which got imported (e.g. [code]res://scene.dae[/" "code])." msgstr "返回导入的源文件路径(如[code]res://scene.dae[/code])。" #: doc/classes/EditorScenePostImport.xml msgid "Returns the resource folder the imported scene file is located in." msgstr "返回导入的场景文件所在的资源文件夹。" #: doc/classes/EditorScenePostImport.xml msgid "" "Called after the scene was imported. This method must return the modified " "version of the scene." msgstr "在场景被导入后触发。本方法必须返回场景的修改版本。" #: doc/classes/EditorScript.xml msgid "Base script that can be used to add extension functions to the editor." msgstr "可用于为编辑器添加扩展功能的基础脚本。" #: doc/classes/EditorScript.xml msgid "" "Scripts extending this class and implementing its [method _run] method can " "be executed from the Script Editor's [b]File > Run[/b] menu option (or by " "pressing [code]Ctrl+Shift+X[/code]) while the editor is running. This is " "useful for adding custom in-editor functionality to Godot. For more complex " "additions, consider using [EditorPlugin]s instead.\n" "[b]Note:[/b] Extending scripts need to have [code]tool[/code] mode enabled.\n" "[b]Example script:[/b]\n" "[codeblock]\n" "tool\n" "extends EditorScript\n" "\n" "func _run():\n" " print(\"Hello from the Godot Editor!\")\n" "[/codeblock]\n" "[b]Note:[/b] The script is run in the Editor context, which means the output " "is visible in the console window started with the Editor (stdout) instead of " "the usual Godot [b]Output[/b] dock." msgstr "" "扩展该类并实现其 [method _run] 方法的脚本可以在编辑器运行时通过脚本编辑器的 " "[b]File > Run[/b] 菜单选项(或按 [code]Ctrl+Shift+X[/code])执行。这对于向 " "Godot添加自定义的编辑内功能很有用。对于更复杂的添加,可以考虑使用 " "[EditorPlugin] 代替。\n" "[b]注意:[/b]扩展脚本需要启用 [code]tool[/code] 工具模式。\n" "[b]示例脚本:[/b]\n" "[codeblock]\n" "tool\n" "extends EditorScript\n" "\n" "func _run():\n" " print(\"Hello from the Godot Editor!\")\n" "[/codeblock]\n" "[b]注意:[/b]脚本在编辑器上下文中运行,这意味着输出在与编辑器一起启动的控制台" "窗口(stdout),而不是通常的 Godot [b]输出[/b]面板 。" #: doc/classes/EditorScript.xml msgid "This method is executed by the Editor when [b]File > Run[/b] is used." msgstr "当使用[b]文件 > 运行[/b]时,此方法由编辑器执行。" #: doc/classes/EditorScript.xml msgid "" "Adds [code]node[/code] as a child of the root node in the editor context.\n" "[b]Warning:[/b] The implementation of this method is currently disabled." msgstr "" "将[code]node[/code]添加为编辑器上下文中根节点的子级。\n" "[b]警告:[/b]此方法的实现前处于禁用状态。" #: doc/classes/EditorScript.xml msgid "Returns the [EditorInterface] singleton instance." msgstr "返回[EditorInterface]单例的实例。" #: doc/classes/EditorScript.xml msgid "Returns the Editor's currently active scene." msgstr "返回编辑器的当前活动场景。" #: doc/classes/EditorScriptPicker.xml msgid "" "Godot editor's control for selecting the [code]script[/code] property of a " "[Node]." msgstr "" "Godot 编辑器的控件,用于选择节点 [Node] 的脚本 [code]script[/code] 属性。" #: doc/classes/EditorScriptPicker.xml msgid "" "Similar to [EditorResourcePicker] this [Control] node is used in the " "editor's Inspector dock, but only to edit the [code]script[/code] property " "of a [Node]. Default options for creating new resources of all possible " "subtypes are replaced with dedicated buttons that open the \"Attach Node " "Script\" dialog. Can be used with [EditorInspectorPlugin] to recreate the " "same behavior.\n" "[b]Note:[/b] You must set the [member script_owner] for the custom context " "menu items to work." msgstr "" "与 [EditorResourcePicker] 类似,这个 [Control] 节点在编辑器的检查器面板中使" "用,但只用于编辑 [Node] 的 [code]script[/code] 属性。创建包含所有可能子类型的" "新资源的默认选项 被替换为打开“附加节点脚本”对话框的专用按钮。可以与 " "[EditorInspectorPlugin] 一起使用以重新创建相同的行为。\n" "[b]注意:[/b]你必须设置 [member script_owner] 才能让自定义的上下文菜单项发挥" "作用。" #: doc/classes/EditorScriptPicker.xml msgid "The owner [Node] of the script property that holds the edited resource." msgstr "持有被编辑资源的脚本属性的所有者 [Node]。" #: doc/classes/EditorSelection.xml msgid "Manages the SceneTree selection in the editor." msgstr "管理编辑器中的SceneTree选择。" #: doc/classes/EditorSelection.xml msgid "" "This object manages the SceneTree selection in the editor.\n" "[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access " "the singleton using [method EditorInterface.get_selection]." msgstr "" "这个对象管理编辑器中的SceneTree选择。\n" "[b]注意:[/b]这个类不应该直接实例化。相反,使用[method EditorInterface." "get_selection]访问单例。" #: doc/classes/EditorSelection.xml msgid "" "Adds a node to the selection.\n" "[b]Note:[/b] The newly selected node will not be automatically edited in the " "inspector. If you want to edit a node, use [method EditorInterface." "edit_node]." msgstr "" "将一个节点添加到选择中。\n" "[b]注意:[/b]新选择的节点不会在检查器中自动被编辑。如果你想编辑一个节点,请使" "用 [method EditorInterface.edit_node]。" #: doc/classes/EditorSelection.xml msgid "Clear the selection." msgstr "清除选中项。" #: doc/classes/EditorSelection.xml msgid "Gets the list of selected nodes." msgstr "获取所选节点的列表。" #: doc/classes/EditorSelection.xml msgid "" "Gets the list of selected nodes, optimized for transform operations (i.e. " "moving them, rotating, etc). This list avoids situations where a node is " "selected and also child/grandchild." msgstr "" "获取所选节点的列表,针对变换操作(如移动、旋转等)进行优化。这个列表避免了节" "点被选中的情况,也避免了子/孙节点被选中的情况。" #: doc/classes/EditorSelection.xml msgid "Removes a node from the selection." msgstr "从选择中删除一个节点。" #: doc/classes/EditorSelection.xml msgid "Emitted when the selection changes." msgstr "更改选择时发出。" #: doc/classes/EditorSettings.xml msgid "Object that holds the project-independent editor settings." msgstr "保存与项目无关的编辑器设置的对象。" #: doc/classes/EditorSettings.xml msgid "" "Object that holds the project-independent editor settings. These settings " "are generally visible in the [b]Editor > Editor Settings[/b] menu.\n" "Property names use slash delimiters to distinguish sections. Setting values " "can be of any [Variant] type. It's recommended to use [code]snake_case[/" "code] for editor settings to be consistent with the Godot editor itself.\n" "Accessing the settings can be done using the following methods, such as:\n" "[codeblock]\n" "# `settings.set(\"some/property\", value)` also works as this class " "overrides `_set()` internally.\n" "settings.set_setting(\"some/property\",value)\n" "\n" "# `settings.get(\"some/property\", value)` also works as this class " "overrides `_get()` internally.\n" "settings.get_setting(\"some/property\")\n" "\n" "var list_of_settings = settings.get_property_list()\n" "[/codeblock]\n" "[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access " "the singleton using [method EditorInterface.get_editor_settings]." msgstr "" "保存与项目无关的编辑器设置的对象。这些设置通常在[b]编辑器 > 编辑器设置[/b]菜" "单中可见。\n" "属性名使用斜线分隔符来区分部分。设置值可以是任何 [Variant] 类型。建议使用 " "[code]snake_case[/code] 进行编辑器设置,以便与 Godot 编辑器本身保持一致。\n" "访问设置可以使用以下方法,例如。\n" "[codeblock]\n" "# `settings.set(\"some/property\", value)` 也行,因为这个类在内部覆盖了 " "`_set()`。\n" "settings.set_setting(\"some/property\",value)\n" "\n" "# `settings.get(\"some/property\", value)` 也行,因为这个类在内部覆盖了 " "`_get()`。\n" "settings.get_setting(\"some/property\")\n" "\n" "var list_of_settings = settings.get_property_list()\n" "[/codeblock]\n" "[b]注意:[/b]这个类不应该直接实例化。请换用 [method EditorInterface." "get_editor_settings] 访问单例。" #: doc/classes/EditorSettings.xml msgid "" "Adds a custom property info to a property. The dictionary must contain:\n" "- [code]name[/code]: [String] (the name of the property)\n" "- [code]type[/code]: [int] (see [enum Variant.Type])\n" "- optionally [code]hint[/code]: [int] (see [enum PropertyHint]) and " "[code]hint_string[/code]: [String]\n" "[b]Example:[/b]\n" "[codeblock]\n" "editor_settings.set(\"category/property_name\", 0)\n" "\n" "var property_info = {\n" " \"name\": \"category/property_name\",\n" " \"type\": TYPE_INT,\n" " \"hint\": PROPERTY_HINT_ENUM,\n" " \"hint_string\": \"one,two,three\"\n" "}\n" "\n" "editor_settings.add_property_info(property_info)\n" "[/codeblock]" msgstr "" "将自定义属性信息添加到属性。该词典必须包含:\n" "-[code]名称[/code]:[String](属性名称)\n" "-[code]类型[/code]:[int](请参阅[enum Variant.Type])\n" "-(可选)[code]提示[/code]:[int](请参阅[enum PropertyHint])和" "[code]hint_string[/code]:[String]\n" "[b]示例:[/b]\n" "[codeblock]\n" "editor_settings.set(\"category/property_name\", 0)\n" "\n" "var property_info = {\n" " \"name\": \"category/property_name\",\n" " \"type\": TYPE_INT,\n" " \"hint\": PROPERTY_HINT_ENUM,\n" " \"hint_string\": \"one,two,three\"\n" "}\n" "\n" "editor_settings.add_property_info(property_info)\n" "[/codeblock]" #: doc/classes/EditorSettings.xml msgid "Erases the setting whose name is specified by [code]property[/code]." msgstr "删除名称为指定[code]property[/code]的设置。" #: doc/classes/EditorSettings.xml msgid "Returns the list of favorite files and directories for this project." msgstr "返回本项目最收藏的文件和目录列表。" #: doc/classes/EditorSettings.xml msgid "" "Returns project-specific metadata for the [code]section[/code] and " "[code]key[/code] specified. If the metadata doesn't exist, [code]default[/" "code] will be returned instead. See also [method set_project_metadata]." msgstr "" "返回指定的[code]section[/code]和[code]key[/code]的特定项目元数据。如果元数据" "不存在,将返回 [code]default[/code]。另请参阅 [method set_project_metadata]。" #: doc/classes/EditorSettings.xml msgid "" "Returns the project-specific settings path. Projects all have a unique " "subdirectory inside the settings path where project-specific settings are " "saved." msgstr "" "返回项目特定设置的路径。项目在设置路径中都有一个唯一的子目录,保存项目的特定" "设置。" #: doc/classes/EditorSettings.xml msgid "" "Returns the list of recently visited folders in the file dialog for this " "project." msgstr "返回此项目文件对话框中最近访问的文件夹列表。" #: doc/classes/EditorSettings.xml msgid "" "Returns the value of the setting specified by [code]name[/code]. This is " "equivalent to using [method Object.get] on the EditorSettings instance." msgstr "" "返回 [code]name[/code] 指定的设置的值。这相当于在EditorSettings实例上使用" "[method Object.get]。" #: doc/classes/EditorSettings.xml msgid "" "Gets the global settings path for the engine. Inside this path, you can find " "some standard paths such as:\n" "[code]settings/tmp[/code] - Used for temporary storage of files\n" "[code]settings/templates[/code] - Where export templates are located" msgstr "" "获取引擎的全局设置路径。在此路径内,您可以找到一些标准路径,例如:\n" "[code]settings / tmp[/code]-用于文件的临时存储\n" "[code]settings/templates[/code]-导出模板所在的位置" #: doc/classes/EditorSettings.xml msgid "" "Returns [code]true[/code] if the setting specified by [code]name[/code] " "exists, [code]false[/code] otherwise." msgstr "" "如果由名称 [code]name[/code] 指定的设置存在,则返回 [code]true[/code],否则返" "回 [code]false[/code]。" #: doc/classes/EditorSettings.xml msgid "" "Returns [code]true[/code] if the setting specified by [code]name[/code] can " "have its value reverted to the default value, [code]false[/code] otherwise. " "When this method returns [code]true[/code], a Revert button will display " "next to the setting in the Editor Settings." msgstr "" "如果[code]name[/code]指定的设置可以将其值还原为默认值,则返回 [code]true[/" "code],否则返回 [code]false[/code]。当此方法返回 [code]true[/code] 时,编辑器" "设置中的设置旁边会显示一个还原按钮。" #: doc/classes/EditorSettings.xml msgid "" "Returns the default value of the setting specified by [code]name[/code]. " "This is the value that would be applied when clicking the Revert button in " "the Editor Settings." msgstr "" "返回 [code]name[/code] 指定的设置的默认值。当点击编辑器设置中的 \"还原 \"按钮" "时,该值将被应用。" #: doc/classes/EditorSettings.xml msgid "Sets the list of favorite files and directories for this project." msgstr "设置此项目为收藏的文件和目录列表。" #: doc/classes/EditorSettings.xml msgid "" "Sets the initial value of the setting specified by [code]name[/code] to " "[code]value[/code]. This is used to provide a value for the Revert button in " "the Editor Settings. If [code]update_current[/code] is true, the current " "value of the setting will be set to [code]value[/code] as well." msgstr "" "将 [code]name[/code] 指定的设置的初始值设置为 [code]value[/code]。这用于为编" "辑器设置中的“还原”按钮提供一个值。如果 [code]update_current[/code] 为真,则设" "置的当前值也会被设置为 [code]value[/code]。" #: doc/classes/EditorSettings.xml msgid "" "Sets project-specific metadata with the [code]section[/code], [code]key[/" "code] and [code]data[/code] specified. This metadata is stored outside the " "project folder and therefore won't be checked into version control. See also " "[method get_project_metadata]." msgstr "" "设置项目特定的元数据,并指定 [code]section[/code]、[code]key[/code] 和 " "[code]data[/code]。这个元数据被保存在项目文件夹之外,因此不会被检查到版本控制" "中。参阅 [method get_project_metadata]。" #: doc/classes/EditorSettings.xml msgid "" "Sets the list of recently visited folders in the file dialog for this " "project." msgstr "在文件对话框中设置本项目最近访问过的文件夹列表。" #: doc/classes/EditorSettings.xml msgid "" "Sets the [code]value[/code] of the setting specified by [code]name[/code]. " "This is equivalent to using [method Object.set] on the EditorSettings " "instance." msgstr "" "设置 [code]name[/code] 指定的设置的 [code]value[/code]。这相当于在" "EditorSettings实例上使用[method Object.set]。" #: doc/classes/EditorSettings.xml msgid "Emitted after any editor setting has changed." msgstr "在编辑器设置改变后触发。" #: doc/classes/EditorSettings.xml msgid "" "Emitted after any editor setting has changed. It's used by various editor " "plugins to update their visuals on theme changes or logic on configuration " "changes." msgstr "" "在编辑器设置改变后触发。它被各种编辑器插件用于在主题变化时更新其视觉效果或在" "配置变化时更新逻辑。" #: doc/classes/EditorSpatialGizmo.xml msgid "Custom gizmo for editing Spatial objects." msgstr "用于编辑空间对象的自定义小工具。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Custom gizmo that is used for providing custom visualization and editing " "(handles) for 3D Spatial objects. See [EditorSpatialGizmoPlugin] for more " "information." msgstr "" "自定义小工具,用于为 3D Spatial 对象提供自定义可视化和编辑(手柄)。更多信息" "请参阅 [EditorSpatialGizmoPlugin]。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Adds the specified [code]segments[/code] to the gizmo's collision shape for " "picking. Call this function during [method redraw]." msgstr "" "将指定的[code]segments[/code]添加到gizmo的碰撞形状中,以便挑选。在[method " "redraw]时调用此函数。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Adds collision triangles to the gizmo for picking. A [TriangleMesh] can be " "generated from a regular [Mesh] too. Call this function during [method " "redraw]." msgstr "" "将碰撞三角形添加到小工具中,供挑选。也可以从普通的[Mesh]生成[TriangleMesh]。" "在[method redraw]时调用此函数。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Adds a list of handles (points) which can be used to deform the object being " "edited.\n" "There are virtual functions which will be called upon editing of these " "handles. Call this function during [method redraw]." msgstr "" "添加一个句柄(点)列表,可以用来对编辑的对象进行变形。\n" "有一些虚函数将在编辑这些句柄时被调用。在 [method redraw]时调用这个函数。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Adds lines to the gizmo (as sets of 2 points), with a given material. The " "lines are used for visualizing the gizmo. Call this function during [method " "redraw]." msgstr "" "用给定的材质在小工具上添加线条到gizmo (作为2个点的集合)。线条用于可视化" "gizmo。在[method redraw]时调用此函数。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Adds a mesh to the gizmo with the specified [code]billboard[/code] state, " "[code]skeleton[/code] and [code]material[/code]. If [code]billboard[/code] " "is [code]true[/code], the mesh will rotate to always face the camera. Call " "this function during [method redraw]." msgstr "" "以指定的 [code]billboard[/code] 状态、[code]skeleton[/code] 和 " "[code]materia[/code] 添加网格到小工具。如果 [code]billboard[/code] 为 " "[code]true[/code],则网格将旋转为始终面向相机。在 [method redraw] 时调用此函" "数。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Adds an unscaled billboard for visualization. Call this function during " "[method redraw]." msgstr "添加一个未缩放的广告牌以实现可视化。在[method redraw]时调用此函数。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Removes everything in the gizmo including meshes, collisions and handles." msgstr "移除小工具中的一切,包括网格、碰撞和句柄。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Commit a handle being edited (handles must have been previously added by " "[method add_handles]).\n" "If the [code]cancel[/code] parameter is [code]true[/code], an option to " "restore the edited value to the original is provided." msgstr "" "提交一个正在编辑的句柄(句柄必须是之前通过[method add_handles]添加的)。\n" "如果[code]cancel[/code]参数是[code]true[/code],则提供了一个将编辑后的值恢复" "到原始值的选项。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Gets the name of an edited handle (handles must have been previously added " "by [method add_handles]).\n" "Handles can be named for reference to the user when editing." msgstr "" "获取已编辑的句柄的名称(句柄必须是之前通过[method add_handles]添加的)。\n" "句柄的名称可以在编辑时被命名作为用户参考。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Gets actual value of a handle. This value can be anything and used for " "eventually undoing the motion when calling [method commit_handle]." msgstr "" "获取一个句柄的实际值,这个值可以是任何东西,用于在调用[method commit_handle]" "时最终撤销动作。这个值可以是任何东西,用于在调用[method commit_handle]时最终" "撤销动作。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Returns the [EditorSpatialGizmoPlugin] that owns this gizmo. It's useful to " "retrieve materials using [method EditorSpatialGizmoPlugin.get_material]." msgstr "" "返回拥有此小工具的 [EditorSpatialGizmoPlugin] 。使用 [method " "EditorSpatialGizmoPlugin.get_material] 检索材质很有用。" #: doc/classes/EditorSpatialGizmo.xml msgid "Returns the Spatial node associated with this gizmo." msgstr "返回与此小工具相关联的 Spatial 节点。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Returns [code]true[/code] if the handle at index [code]index[/code] is " "highlighted by being hovered with the mouse." msgstr "" "如果鼠标悬停索引为 [code]index[/code] 的句柄高亮,则返回 [code]true[/code]。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "This function is called when the [Spatial] this gizmo refers to changes (the " "[method Spatial.update_gizmo] is called)." msgstr "" "当这个工具所指 [Spatial] 的变化时([method Spatial.update_gizmo] 函数被调" "用)。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "This function is used when the user drags a gizmo handle (previously added " "with [method add_handles]) in screen coordinates.\n" "The [Camera] is also provided so screen coordinates can be converted to " "raycasts." msgstr "" "当用户在屏幕坐标中拖动一个 gizmo 工具手柄时(之前用 [method add_handles] 添加" "的),就会使用这个函数。\n" "还提供了相机 [Camera],以便将屏幕坐标转换为射线投影。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Sets the gizmo's hidden state. If [code]true[/code], the gizmo will be " "hidden. If [code]false[/code], it will be shown." msgstr "" "设置工具的隐藏状态。如果[code]true[/code],则小控件将被隐藏。如果" "[code]false[/code],将显示它。" #: doc/classes/EditorSpatialGizmo.xml msgid "" "Sets the reference [Spatial] node for the gizmo. [code]node[/code] must " "inherit from [Spatial]." msgstr "" "设置工具的参考 [Spatial] 节点。 [code]node[/code]必须继承自 [Spatial]。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "Used by the editor to define Spatial gizmo types." msgstr "由编辑部用于定义空间小工具的类型。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "[EditorSpatialGizmoPlugin] allows you to define a new type of Gizmo. There " "are two main ways to do so: extending [EditorSpatialGizmoPlugin] for the " "simpler gizmos, or creating a new [EditorSpatialGizmo] type. See the " "tutorial in the documentation for more info.\n" "To use [EditorSpatialGizmoPlugin], register it using the [method " "EditorPlugin.add_spatial_gizmo_plugin] method first." msgstr "" "[EditorSpatialGizmoPlugin] 可用于定义新的控制器类型。这样做的主要方法有两种:" "比较简单的控制器可以扩展 [EditorSpatialGizmoPlugin],或者可以创建新的 " "[EditorSpatialGizmo] 类型。有关更多信息,请参阅文档中的教程。\n" "要使用 [EditorSpatialGizmoPlugin],请先用 [method EditorPlugin." "add_spatial_gizmo_plugin] 注册。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Adds a new material to the internal material list for the plugin. It can " "then be accessed with [method get_material]. Should not be overridden." msgstr "" "将新材质添加到插件的内部插件列表中。然后可以使用[method get_material]访问它。" "不会该被覆盖。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to define whether the gizmo can be hidden or not. " "Returns [code]true[/code] if not overridden." msgstr "" "重写此方法以定义是否可以隐藏Gizmo。如果未覆盖,则返回 [code]true[/code]。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to commit gizmo handles. Called for this plugin's " "active gizmos." msgstr "重写此方法以提交Gizmo句柄。调用此插件的活动辅助工具。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to return a custom [EditorSpatialGizmo] for the spatial " "nodes of your choice, return [code]null[/code] for the rest of nodes. See " "also [method has_gizmo]." msgstr "" "重写此方法可为您选择的空间节点返回自定义 [EditorSpatialGizmo],为其余节点返" "回 [code]null[/code]。另请参阅 [method has_gizmo]。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Creates a handle material with its variants (selected and/or editable) and " "adds them to the internal material list. They can then be accessed with " "[method get_material] and used in [method EditorSpatialGizmo.add_handles]. " "Should not be overridden.\n" "You can optionally provide a texture to use instead of the default icon." msgstr "" "创建一个手柄材质及其变体 (选定的和/或可编辑的),并将它们添加到内部材质列" "表。然后可以用 [method get_material] 访问它们,并在 [method " "EditorSpatialGizmo.add_handles] 中使用。不应该被重写。\n" "你可以选择性地提供一个纹理来代替默认的图标。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Creates an icon material with its variants (selected and/or editable) and " "adds them to the internal material list. They can then be accessed with " "[method get_material] and used in [method EditorSpatialGizmo." "add_unscaled_billboard]. Should not be overridden." msgstr "" "创建一个图标材质及其变体 (选定的和/或可编辑的),并将它们添加到内部材质列" "表。然后可以用 [method get_material] 访问它们,并在 [method " "EditorSpatialGizmo.add_unscaled_billboard] 中使用。不应该被重写。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Creates an unshaded material with its variants (selected and/or editable) " "and adds them to the internal material list. They can then be accessed with " "[method get_material] and used in [method EditorSpatialGizmo.add_mesh] and " "[method EditorSpatialGizmo.add_lines]. Should not be overridden." msgstr "" "创建一个没有阴影的材质及其变体 (选定的和/或可编辑的),并将它们添加到内部材" "质列表。然后可以用 [method get_material] 访问它们,并在 [method " "EditorSpatialGizmo.add_mesh] 和 [method EditorSpatialGizmo.add_lines] 中使" "用。不应该被重写。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to provide gizmo's handle names. Called for this " "plugin's active gizmos." msgstr "重写此方法以提供Gizmo的句柄名称。调用此插件的活动工具。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Gets actual value of a handle from gizmo. Called for this plugin's active " "gizmos." msgstr "从Gizmo获取句柄的实际值。调用此插件的活动工具。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Gets material from the internal list of materials. If an " "[EditorSpatialGizmo] is provided, it will try to get the corresponding " "variant (selected and/or editable)." msgstr "" "从内部材质列表中获取材质。如果提供了一个 [EditorSpatialGizmo] ,它将尝试获取" "相应的变体 (选定的和/或可编辑的)。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to provide the name that will appear in the gizmo " "visibility menu." msgstr "重写此方法以提供将出现在工具可见性菜单中的名称。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to set the gizmo's priority. Higher values correspond " "to higher priority. If a gizmo with higher priority conflicts with another " "gizmo, only the gizmo with higher priority will be used.\n" "All built-in editor gizmos return a priority of [code]-1[/code]. If not " "overridden, this method will return [code]0[/code], which means custom " "gizmos will automatically override built-in gizmos." msgstr "" "重写此方法可以设置工具的优先级。值越高,优先级越高。如果具有较高优先级的工具" "与另一个工具发生冲突,则仅使用具有较高优先级的工具。\n" "所有内置编辑器小控件均返回 [code]-1[/code]优先级。如果未重写,则此方法将返回 " "[code]0[/code],这意味着自定义控件将自动覆盖内置控件。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to define which Spatial nodes have a gizmo from this " "plugin. Whenever a [Spatial] node is added to a scene this method is called, " "if it returns [code]true[/code] the node gets a generic [EditorSpatialGizmo] " "assigned and is added to this plugin's list of active gizmos." msgstr "" "覆盖这个方法来定义哪些空间节点有这个插件的 gizmo。每当一个 [Spatial] 节点被添" "加到一个场景中时,这个方法就会被调用,如果它返回 [code]true[/code],该节点就" "会被分配一个通用的 [EditorSpatialGizmo],并被添加到这个插件的激活 Gizmos列表" "中。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Gets whether a handle is highlighted or not. Called for this plugin's active " "gizmos." msgstr "获取句柄是否高亮显示。调用此插件的活动工具。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Override this method to define whether a Spatial with this gizmo should be " "selectable even when the gizmo is hidden." msgstr "覆盖此方法,以定义具有此工具的空间是否应该在工具被隐藏时也可以被选择。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Callback to redraw the provided gizmo. Called for this plugin's active " "gizmos." msgstr "回调以重新绘制提供的工具。调用此插件的活动工具。" #: doc/classes/EditorSpatialGizmoPlugin.xml msgid "" "Update the value of a handle after it has been updated. Called for this " "plugin's active gizmos." msgstr "更新句柄后更新其值。调用此插件的活动工具。" #: doc/classes/EditorSpinSlider.xml msgid "Godot editor's control for editing numeric values." msgstr "Godot编辑器用于编辑数值的控件。" #: doc/classes/EditorSpinSlider.xml msgid "" "This [Control] node is used in the editor's Inspector dock to allow editing " "of numeric values. Can be used with [EditorInspectorPlugin] to recreate the " "same behavior." msgstr "" "这个 [Control] 节点在编辑器的检查器面板中使用,允许编辑数值。可以与 " "[EditorInspectorPlugin] 一起使用,以重新创建相同的行为。" #: doc/classes/EditorSpinSlider.xml msgid "If [code]true[/code], the slider is hidden." msgstr "如果为 [code]true[/code],则隐藏滑动条。" #: doc/classes/EditorVCSInterface.xml msgid "" "Version Control System (VCS) interface, which reads and writes to the local " "VCS in use." msgstr "" "版本控制系统(Version Control System,VCS)接口,可对正在使用的本地 VCS 进行" "读写。" #: doc/classes/EditorVCSInterface.xml msgid "" "Defines the API that the editor uses to extract information from the " "underlying VCS. The implementation of this API is included in VCS plugins, " "which are scripts that inherit [EditorVCSInterface] and are attached (on " "demand) to the singleton instance of [EditorVCSInterface]. Instead of " "performing the task themselves, all the virtual functions listed below are " "calling the internally overridden functions in the VCS plugins to provide a " "plug-n-play experience. A custom VCS plugin is supposed to inherit from " "[EditorVCSInterface] and override these virtual functions." msgstr "" "定义编辑器使用的 API,负责从底层 VCS 提取信息。这个 API 的实现包含在 VCS 插件" "中,插件是继承了 [EditorVCSInterface] 的脚本,会(按需)附加到 " "[EditorVCSInterface] 单例上。以下列出的所有虚函数都不会亲自执行操作,而是会去" "调用 VCS 插件中内部覆盖的函数,带来即插即用的体验。自定义 VCS 插件应当继承 " "[EditorVCSInterface] 并覆盖这些虚函数。" #: doc/classes/EditorVCSInterface.xml msgid "Checks out a [code]branch_name[/code] in the VCS." msgstr "检出 VCS 中的 [code]branch_name[/code] 分支。" #: doc/classes/EditorVCSInterface.xml msgid "" "Commits the currently staged changes and applies the commit [code]msg[/code] " "to the resulting commit." msgstr "提交当前暂存的修改,并对提交应用提交信息 [code]msg[/code]。" #: doc/classes/EditorVCSInterface.xml msgid "Creates a new branch named [code]branch_name[/code] in the VCS." msgstr "在 VCS 中新建名为 [code]branch_name[/code] 的分支。" #: doc/classes/EditorVCSInterface.xml msgid "" "Creates a new remote destination with name [code]remote_name[/code] and " "points it to [code]remote_url[/code]. This can be both an HTTPS remote or an " "SSH remote." msgstr "" "新建远程仓库目标,命名为 [code]remote_name[/code] 并指向 [code]remote_url[/" "code]。既可以是 HTTPS 远程仓库,也可以是 SSH 远程仓库。" #: doc/classes/EditorVCSInterface.xml msgid "Discards the changes made in file present at [code]file_path[/code]." msgstr "丢弃对位于 [code]file_path[/code] 的文件进行的修改。" #: doc/classes/EditorVCSInterface.xml msgid "" "Fetches new changes from the remote, but doesn't write changes to the " "current working directory. Equivalent to [code]git fetch[/code]." msgstr "" "从远程仓库中抓取新修改,但不将修改写入当前工作目录。与 [code]git fetch[/" "code] 等效。" #: doc/classes/EditorVCSInterface.xml msgid "" "Gets an instance of an [Array] of [String]s containing available branch " "names in the VCS." msgstr "获取 [String] 字符串的 [Array] 数组实例,包含在 VCS 中可用的分支名称。" #: doc/classes/EditorVCSInterface.xml msgid "Gets the current branch name defined in the VCS." msgstr "获取 VCS 中定义的当前分支名称。" #: doc/classes/EditorVCSInterface.xml msgid "" "Returns an [Array] of [Dictionary] items (see [method create_diff_file], " "[method create_diff_hunk], [method create_diff_line], [method " "add_line_diffs_into_diff_hunk] and [method add_diff_hunks_into_diff_file]), " "each containing information about a diff. If [code]identifier[/code] is a " "file path, returns a file diff, and if it is a commit identifier, then " "returns a commit diff." msgstr "" "返回 [Dictionary] 字典项的 [Array] 数组(请参阅 [method create_diff_file]、" "[method create_diff_hunk]、[method create_diff_line]、[method " "add_line_diffs_into_diff_hunk]、[method add_diff_hunks_into_diff_file]),每" "一项都包含一个差异的信息。如果 [code]identifier[/code] 是文件路径,则返回文件" "差异,如果是提交标识符,则返回提交差异。" #: doc/classes/EditorVCSInterface.xml msgid "" "Returns an [Array] of [Dictionary] items (see [method create_diff_hunk]), " "each containing a line diff between a file at [code]file_path[/code] and the " "[code]text[/code] which is passed in." msgstr "" "返回 [Dictionary] 字典项的 [Array] 数组(请参阅 [method create_diff_hunk])," "每一项都包含位于 [code]file_path[/code] 的文件与传入的 [code]text[/code] 之间" "的单行差异。" #: doc/classes/EditorVCSInterface.xml msgid "" "Returns an [Array] of [Dictionary] items (see [method create_status_file]), " "each containing the status data of every modified file in the project folder." msgstr "" "返回 [Dictionary] 字典项的 [Array] 数组(请参阅 [method " "create_status_file]),每一项都包含项目文件夹中每个已修改的文件的状态数据。" #: doc/classes/EditorVCSInterface.xml msgid "" "Returns an [Array] of [Dictionary] items (see [method create_commit]), each " "containing the data for a past commit." msgstr "" "返回 [Dictionary] 字典项的 [Array] 数组(请参阅 [method create_commit]),每" "一项都包含一个过去提交的数据。" #: doc/classes/EditorVCSInterface.xml msgid "" "Returns an [Array] of [String]s, each containing the name of a remote " "configured in the VCS." msgstr "" "返回 [String] 字符串的 [Array] 数组,每一个都包含 VCS 中配置的一个远程仓库的" "名称。" #: doc/classes/EditorVCSInterface.xml msgid "Returns the name of the underlying VCS provider." msgstr "返回底层 VCS 提供方的名称。" #: doc/classes/EditorVCSInterface.xml msgid "" "Initializes the VCS plugin when called from the editor. Returns whether or " "not the plugin was successfully initialized. A VCS project is initialized at " "[code]project_path[/code]." msgstr "" "从编辑器中调用时初始化该 VCS 插件。返回该插件是否成功初始化。会在 " "[code]project_path[/code] 初始化 VCS 项目。" #: doc/classes/EditorVCSInterface.xml msgid "Pulls changes from the remote. This can give rise to merge conflicts." msgstr "从远程仓库拉取修改。可能带来合并冲突。" #: doc/classes/EditorVCSInterface.xml msgid "" "Pushes changes to the [code]remote[/code]. Optionally, if [code]force[/code] " "is set to true, a force push will override the change history already " "present on the remote." msgstr "" "将修改推送至远程仓库 [code]remote[/code]。另外可以将 [code]force[/code] 设为" "真,会进行强制推送,覆盖远程仓库中现有的修改历史。" #: doc/classes/EditorVCSInterface.xml msgid "Remove a branch from the local VCS." msgstr "从本地 VCS 中移除一个分支。" #: doc/classes/EditorVCSInterface.xml msgid "Remove a remote from the local VCS." msgstr "从本地 VCS 中移除一个远程仓库。" #: doc/classes/EditorVCSInterface.xml msgid "" "Set user credentials in the underlying VCS. [code]username[/code] and " "[code]password[/code] are used only during HTTPS authentication unless not " "already mentioned in the remote URL. [code]ssh_public_key_path[/code], " "[code]ssh_private_key_path[/code], and [code]ssh_passphrase[/code] are only " "used during SSH authentication." msgstr "" "在底层 VCS 中设置用户认证信息。用户名 [code]username[/code] 和密码 " "[code]password[/code] 只会在进行 HTTPS 认证且没有在远程仓库 URL 中给出时使" "用。SSH 公钥路径 [code]ssh_public_key_path[/code]、SSH 私钥路径 " "[code]ssh_private_key_path[/code]、SSH 密码 [code]ssh_passphrase[/code] 只会" "在进行 SSH 认证时使用。" #: doc/classes/EditorVCSInterface.xml msgid "" "Shuts down VCS plugin instance. Called when the user either closes the " "editor or shuts down the VCS plugin through the editor UI." msgstr "" "关闭 VCS 插件实例。会在用户关闭编辑器或通过编辑器 UI 关闭该 VCS 插件时调用。" #: doc/classes/EditorVCSInterface.xml msgid "Stages the file present at [code]file_path[/code] to the staged area." msgstr "将位于 [code]file_path[/code] 的文件暂存到暂存区。" #: doc/classes/EditorVCSInterface.xml msgid "" "Unstages the file present at [code]file_path[/code] from the staged area to " "the unstaged area." msgstr "将位于 [code]file_path[/code] 的文件从暂存区撤销到未暂存区。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to add an array of [code]diff_hunks[/code] into a " "[code]diff_file[/code]." msgstr "" "将差异块数组 [code]diff_hunks[/code] 加入差异文件 [code]diff_file[/code] 的辅" "助函数。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to add an array of [code]line_diffs[/code] into a " "[code]diff_hunk[/code]." msgstr "" "将行差异数组 [code]diff_hunks[/code] 加入差异块 [code]diff_hunk[/code] 的辅助" "函数。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to create a commit [Dictionary] item. [code]msg[/code] is " "the commit message of the commit. [code]author[/code] is a single human-" "readable string containing all the author's details, e.g. the email and name " "configured in the VCS. [code]id[/code] is the identifier of the commit, in " "whichever format your VCS may provide an identifier to commits. " "[code]unix_timestamp[/code] is the UTC Unix timestamp of when the commit was " "created. [code]offset_minutes[/code] is the timezone offset in minutes, " "recorded from the system timezone where the commit was created." msgstr "" "创建提交 [Dictionary] 项目的辅助函数。[code]msg[/code] 为该提交的提交消息。" "[code]author[/code] 为包含所有作者详情的人类可读的字符串,例如 VCS 中配置的邮" "箱和名称。[code]id[/code] 为该提交的标识符,使用你的 VCS 为提交所提供的标识符" "的格式。[code]unix_timestamp[/code] 为该提交创建时的 UTC Unix 时间戳。" "[code]offset_minutes[/code] 为该提交创建时,当前系统时区的偏移量,单位为分" "钟。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to create a [code]Dictionary[/code] for storing old and new " "diff file paths." msgstr "创建用于保存新旧文件路径差异的 [code]Dictionary[/code] 的辅助函数。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to create a [code]Dictionary[/code] for storing diff hunk " "data. [code]old_start[/code] is the starting line number in old file. " "[code]new_start[/code] is the starting line number in new file. " "[code]old_lines[/code] is the number of lines in the old file. " "[code]new_lines[/code] is the number of lines in the new file." msgstr "" "创建用于保存差异块数据的 [code]Dictionary[/code] 的辅助函数。" "[code]old_start[/code] 是旧文件中的起始行号。[code]new_start[/code] 是新文件" "中的起始行号。[code]old_lines[/code] 是旧文件中的行数。[code]new_lines[/" "code] 是新文件中的行数。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to create a [code]Dictionary[/code] for storing a line diff. " "[code]new_line_no[/code] is the line number in the new file (can be " "[code]-1[/code] if the line is deleted). [code]old_line_no[/code] is the " "line number in the old file (can be [code]-1[/code] if the line is added). " "[code]content[/code] is the diff text. [code]status[/code] is a single " "character string which stores the line origin." msgstr "" "创建用于保存行差异的 [code]Dictionary[/code] 的辅助函数。[code]new_line_no[/" "code] 是新文件中的行号(该行被删除时可为 [code]-1[/code])。" "[code]old_line_no[/code] 是旧文件中的行号(该行为新增时可为 [code]-1[/" "code])。[code]content[/code] 为差异文本。[code]status[/code] 为保存该行原点" "的单字符字符串。" #: doc/classes/EditorVCSInterface.xml msgid "" "Helper function to create a [code]Dictionary[/code] used by editor to read " "the status of a file." msgstr "创建编辑器用于读取文件状态的 [code]Dictionary[/code] 的辅助函数。" #: doc/classes/EditorVCSInterface.xml msgid "Pops up an error message in the edior." msgstr "在编辑器中弹出错误消息。" #: doc/classes/EditorVCSInterface.xml msgid "A new file has been added." msgstr "加入了新文件。" #: doc/classes/EditorVCSInterface.xml msgid "An earlier added file has been modified." msgstr "先前加入的文件被修改。" #: doc/classes/EditorVCSInterface.xml msgid "An earlier added file has been renamed." msgstr "先前加入的文件被改名。" #: doc/classes/EditorVCSInterface.xml msgid "An earlier added file has been deleted." msgstr "先前加入的文件被删除。" #: doc/classes/EditorVCSInterface.xml msgid "An earlier added file has been typechanged." msgstr "先前加入的文件被修改类型。" #: doc/classes/EditorVCSInterface.xml msgid "A file is left unmerged." msgstr "文件未合并。" #: doc/classes/EditorVCSInterface.xml msgid "A commit is encountered from the commit area." msgstr "在提交区域遇到了提交。" #: doc/classes/EditorVCSInterface.xml msgid "A file is encountered from the staged area." msgstr "在暂存区域遇到了文件。" #: doc/classes/EditorVCSInterface.xml msgid "A file is encountered from the unstaged area." msgstr "在未暂存区域遇到了文件。" #: doc/classes/EncodedObjectAsID.xml msgid "Holds a reference to an [Object]'s instance ID." msgstr "保存对 [Object] 实例 ID 的引用。" #: doc/classes/EncodedObjectAsID.xml msgid "" "Utility class which holds a reference to the internal identifier of an " "[Object] instance, as given by [method Object.get_instance_id]. This ID can " "then be used to retrieve the object instance with [method @GDScript." "instance_from_id].\n" "This class is used internally by the editor inspector and script debugger, " "but can also be used in plugins to pass and display objects as their IDs." msgstr "" "实用类,它拥有对[Object]实例的内部标识符的引用,该标识符由[method Object." "get_instance_id]给出。这个ID可以通过[method @GDScript.instance_from_id]来检索" "对象实例。\n" "这个类在内部被编辑器检查器和脚本调试器使用,但也可以在插件中使用,以传递和显" "示对象作为它们的ID。" #: doc/classes/EncodedObjectAsID.xml msgid "" "The [Object] identifier stored in this [EncodedObjectAsID] instance. The " "object instance can be retrieved with [method @GDScript.instance_from_id]." msgstr "" "存储在这个[EncodedObjectAsID]实例中的[Object]标识符。对象实例可以用[method " "@GDScript.instance_from_id]检索。" #: doc/classes/Engine.xml msgid "Access to engine properties." msgstr "访问引擎属性。" #: doc/classes/Engine.xml msgid "" "The [Engine] singleton allows you to query and modify the project's run-time " "parameters, such as frames per second, time scale, and others." msgstr "" "[Engine]单例使您可以查询和修改项目的运行时参数,例如每秒帧数,时间范围等。" #: doc/classes/Engine.xml msgid "" "Returns engine author information in a Dictionary.\n" "[code]lead_developers[/code] - Array of Strings, lead developer names\n" "[code]founders[/code] - Array of Strings, founder names\n" "[code]project_managers[/code] - Array of Strings, project manager names\n" "[code]developers[/code] - Array of Strings, developer names" msgstr "" "返回一个字典中的引擎作者信息。\n" "[code]lead_developers[/code] - 字符串的数组,主要开发者的名字\n" "[code]founders[/code] - 创始人姓名的字符串数组\n" "[code]project_managers[/code] - 项目经理姓名的字符串数组\n" "[code]developers[/code] - 开发者名称的字符串数组" #: doc/classes/Engine.xml msgid "" "Returns an Array of copyright information Dictionaries.\n" "[code]name[/code] - String, component name\n" "[code]parts[/code] - Array of Dictionaries {[code]files[/code], " "[code]copyright[/code], [code]license[/code]} describing subsections of the " "component" msgstr "" "返回一个版权信息字典数组。\n" "[code]name[/code] - 字符串,组件名称。\n" "[code]partic[/code] - 描述组件子部分的字典数组 {[code]files[/code], " "[code]copyright[/code], [code]license[/code]}" #: doc/classes/Engine.xml msgid "" "Returns a Dictionary of Arrays of donor names.\n" "{[code]platinum_sponsors[/code], [code]gold_sponsors[/code], " "[code]silver_sponsors[/code], [code]bronze_sponsors[/code], " "[code]mini_sponsors[/code], [code]gold_donors[/code], [code]silver_donors[/" "code], [code]bronze_donors[/code]}" msgstr "" "返回捐赠者姓名数组的字典。\n" "{[code]platinum_sponsors[/code], [code]gold_sponsors[/code], " "[code]silver_sponsors[/code], [code]bronze_sponsors[/code], " "[code]mini_sponsors[/code], [code]gold_donors[/code], [code]silver_donors[/" "code], [code]bronze_donors[/code]}" #: doc/classes/Engine.xml msgid "" "Returns the total number of frames drawn. On headless platforms, or if the " "render loop is disabled with [code]--disable-render-loop[/code] via command " "line, [method get_frames_drawn] always returns [code]0[/code]. See [method " "get_idle_frames]." msgstr "" "返回绘制的总帧数。在精简平台上,或者如果通过命令行使用 [code]--disable-" "render-loop[/code] 禁用渲染循环,[method get_frames_drawn] 总是返回 [code]0[/" "code]。参阅[method get_idle_frames]。" #: doc/classes/Engine.xml msgid "Returns the frames per second of the running game." msgstr "返回运行游戏的每秒帧数。" #: doc/classes/Engine.xml msgid "" "Returns the total number of frames passed since engine initialization which " "is advanced on each [b]idle frame[/b], regardless of whether the render loop " "is enabled. See also [method get_frames_drawn] and [method " "get_physics_frames].\n" "[method get_idle_frames] can be used to run expensive logic less often " "without relying on a [Timer]:\n" "[codeblock]\n" "func _process(_delta):\n" " if Engine.get_idle_frames() % 2 == 0:\n" " pass # Run expensive logic only once every 2 idle (render) frames " "here.\n" "[/codeblock]" msgstr "" "返回自引擎初始化以来的总帧数,在每个[b]空闲帧[/b]都会进行,无论渲染循环是否被" "启用。参阅 [method get_frames_drawn] 和 [method get_physics_frames]。\n" "[method get_idle_frames] 可以用来减少运行高消耗逻辑的次数,而不需要依靠 " "[Timer]。\n" "[codeblock]\n" "func _process(_delta):\n" " if Engine.get_idle_frames() % 2 == 0:\n" " pass # 将昂贵的逻辑放在这里,每 2 个空闲(渲染)帧运行一次。\n" "[/codeblock]" #: doc/classes/Engine.xml msgid "" "Returns Dictionary of licenses used by Godot and included third party " "components." msgstr "返回 Godot 所使用的许可证的 Dictionary 字典列表,其中包括第三方组件。" #: doc/classes/Engine.xml msgid "Returns Godot license text." msgstr "返回Godot许可证文本。" #: doc/classes/Engine.xml msgid "Returns the main loop object (see [MainLoop] and [SceneTree])." msgstr "返回主循环对象(请参阅[MainLoop]和[SceneTree])。" #: doc/classes/Engine.xml msgid "" "Returns the total number of frames passed since engine initialization which " "is advanced on each [b]physics frame[/b]. See also [method " "get_idle_frames].\n" "[method get_physics_frames] can be used to run expensive logic less often " "without relying on a [Timer]:\n" "[codeblock]\n" "func _physics_process(_delta):\n" " if Engine.get_physics_frames() % 2 == 0:\n" " pass # Run expensive logic only once every 2 physics frames here.\n" "[/codeblock]" msgstr "" "返回自引擎初始化以来通过的总帧数,该帧数在每个[b]物理帧[/b]上进行。参阅 " "[method get_idle_frames]。\n" "[method get_physics_frames] 可以用来减少运行高消耗逻辑的次数,而不需要依靠 " "[Timer]。\n" "[codeblock]\n" "func _physics_process(_delta):\n" " if Engine.get_physics_frames() % 2 == 0:\n" " pass # 将昂贵的逻辑放在这里,每 2 个物理帧运行一次。\n" "[/codeblock]" #: doc/classes/Engine.xml msgid "" "Returns the fraction through the current physics tick we are at the time of " "rendering the frame. This can be used to implement fixed timestep " "interpolation." msgstr "返回渲染帧时当前物理周期中的分数。可用于实现固定的时间步插值。" #: doc/classes/Engine.xml msgid "" "Returns a global singleton with given [code]name[/code]. Often used for " "plugins, e.g. [code]GodotPayment[/code] on Android." msgstr "" "返回具有给定[code]name[/code]的全局单例。通常用于插件,例如Android上的" "[code]GodotPayment[/code]。" #: doc/classes/Engine.xml msgid "" "Returns the current engine version information in a Dictionary.\n" "[code]major[/code] - Holds the major version number as an int\n" "[code]minor[/code] - Holds the minor version number as an int\n" "[code]patch[/code] - Holds the patch version number as an int\n" "[code]hex[/code] - Holds the full version number encoded as a " "hexadecimal int with one byte (2 places) per number (see example below)\n" "[code]status[/code] - Holds the status (e.g. \"beta\", \"rc1\", " "\"rc2\", ... \"stable\") as a String\n" "[code]build[/code] - Holds the build name (e.g. \"custom_build\") as a " "String\n" "[code]hash[/code] - Holds the full Git commit hash as a String\n" "[code]year[/code] - Holds the year the version was released in as an " "int\n" "[code]string[/code] - [code]major[/code] + [code]minor[/code] + " "[code]patch[/code] + [code]status[/code] + [code]build[/code] in a single " "String\n" "The [code]hex[/code] value is encoded as follows, from left to right: one " "byte for the major, one byte for the minor, one byte for the patch version. " "For example, \"3.1.12\" would be [code]0x03010C[/code]. [b]Note:[/b] It's " "still an int internally, and printing it will give you its decimal " "representation, which is not particularly meaningful. Use hexadecimal " "literals for easy version comparisons from code:\n" "[codeblock]\n" "if Engine.get_version_info().hex >= 0x030200:\n" " # Do things specific to version 3.2 or later\n" "else:\n" " # Do things specific to versions before 3.2\n" "[/codeblock]" msgstr "" "在字典中返回当前的引擎版本信息。\n" "[code]major[/code] - 将主版本号作为一个 int 来保存。\n" "[code]minor[/code] - 将小版本号作为一个 int 来保存。\n" "[code]patch[/code] - 将补丁版本号作为一个 int 来保存。\n" "[code]hex[/code] - 保存以十六进制 int 编码的完整版本号,每个(2 位)数占一个" "字节(见下例)\n" "[code]status[/code] - 以字符串形式保存状态(例如 " "\"beta\"、\"rc1\"、\"rc2\"、……\"stable\")\n" "[code]build[/code] - 将 build 名称(例如 \"custom_build\")作为一个字符串保" "存。\n" "[code]hash[/code] - 以字符串形式保存完整的 Git 提交哈希值。\n" "[code]year[/code] - 将版本发布的年份作为一个 int 值来保存。\n" "[code]string[/code] - [code]major[/code] + [code]minor[/code] + [code]patch[/" "code] + [code]status[/code] + [code]build[/code]在一个字符串中。\n" "[code]hex[/code] 十六进制值的编码如下,从左到右:一个字节代表主要版本,一个字" "节代表次要版本,一个字节代表补丁版本。例如,\"3.1.12\" 就是 [code]0x03010C[/" "code]。[b]注意:[/b]内部还是一个 int,打印出来会给你它的十进制表示法,意义不" "是特别大。使用十六进制的字数,方便从代码中进行版本比较。\n" "[codeblock]\n" "if Engine.get_version_info().hex >= 0x030200:\n" " # 针对 3.2 及以后版本进行操作\n" "else:\n" " # 针对 3.2 之前版本进行操作\n" "[/codeblock]" #: doc/classes/Engine.xml msgid "" "Returns [code]true[/code] if a singleton with given [code]name[/code] exists " "in global scope." msgstr "" "如果全局范围内存在具有给定[code]name[/code]的单例,则返回 [code]true[/code]。" #: doc/classes/Engine.xml msgid "" "Returns [code]true[/code] if the game is inside the fixed process and " "physics phase of the game loop." msgstr "如果游戏在游戏循环的固定过程和物理阶段内,返回 [code]true[/code]。" #: doc/classes/Engine.xml msgid "" "If [code]true[/code], the script is currently running inside the editor. " "This is useful for [code]tool[/code] scripts to conditionally draw editor " "helpers, or prevent accidentally running \"game\" code that would affect the " "scene state while in the editor:\n" "[codeblock]\n" "if Engine.editor_hint:\n" " draw_gizmos()\n" "else:\n" " simulate_physics()\n" "[/codeblock]\n" "See [url=$DOCS_URL/tutorials/plugins/running_code_in_the_editor.html]Running " "code in the editor[/url] in the documentation for more information.\n" "[b]Note:[/b] To detect whether the script is run from an editor [i]build[/i] " "(e.g. when pressing [code]F5[/code]), use [method OS.has_feature] with the " "[code]\"editor\"[/code] argument instead. [code]OS.has_feature(\"editor\")[/" "code] will evaluate to [code]true[/code] both when the code is running in " "the editor and when running the project from the editor, but it will " "evaluate to [code]false[/code] when the code is run from an exported project." msgstr "" "为 [code]true[/code] 时表示该脚本目前正在编辑器内运行。这对 [code]tool[/" "code] 脚本很有用,可以在特定条件下绘制编辑器辅助内容,或者防止在编辑器中意外" "地运行会影响场景状态的“游戏”代码。\n" "[codeblock]\n" "if Engine.editor_hint:\n" " draw_gizmos()\n" "else:\n" " simulate_physics()\n" "[/codeblock]\n" "更多信息请参阅文档[url=$DOCS_URL/tutorials/plugins/" "running_code_in_the_editor.html]《在编辑器中运行代码》[/url]。\n" "[b]注意:[/b]要检测脚本是否从编辑器[i]构建[/i]中运行(例如按 [code]F5[/code] " "时),请使用带有 [code]\"editor\"[/code] 参数的 [method OS.has_feature] 代" "替。[code]OS.has_feature(\"editor\")[/code] 当代码在编辑器中运行和从编辑器中" "运行项目时都会评估为 [code]true[/code],但当代码从导出的项目中运行时它会评估" "为 [code]false[/code]。" #: doc/classes/Engine.xml msgid "" "The number of fixed iterations per second. This controls how often physics " "simulation and [method Node._physics_process] methods are run. This value " "should generally always be set to [code]60[/code] or above, as Godot doesn't " "interpolate the physics step. As a result, values lower than [code]60[/code] " "will look stuttery. This value can be increased to make input more reactive " "or work around collision tunneling issues, but keep in mind doing so will " "increase CPU usage. See also [member target_fps] and [member ProjectSettings." "physics/common/physics_fps].\n" "[b]Note:[/b] Only 8 physics ticks may be simulated per rendered frame at " "most. If more than 8 physics ticks have to be simulated per rendered frame " "to keep up with rendering, the game will appear to slow down (even if " "[code]delta[/code] is used consistently in physics calculations). Therefore, " "it is recommended not to increase [member Engine.iterations_per_second] " "above 240. Otherwise, the game will slow down when the rendering framerate " "goes below 30 FPS." msgstr "" "每秒执行的固定迭代次数。用于控制物理模拟和 [method Node._physics_process] 的" "执行频率。通常应该总是将其设成大于等于 [code]60[/code] 的值,因为 Godot 不会" "进行物理步骤的插值。因此,如果值小于 [code]60[/code] 就会看起来卡顿。提高该值" "可以让输入变得更加灵敏、也可以绕过碰撞隧道问题,但请记得这么做也会提升 CPU 的" "占用率。另请参阅 [member target_fps] 和 [member ProjectSettings.physics/" "common/physics_fps]。\n" "[b]注意:[/b]每个渲染帧最多只能模拟 8 个物理周期。如果为了追赶渲染,需要在每" "个渲染帧中模拟多于 8 个物理周期,游戏看上去会是降速的(即便在物理计算中始终使" "用 [code]delta[/code])。因此,建议不要将 [member Engine." "iterations_per_second] 设为大于 240 的值。否则,渲染帧率低于 30 FPS 时游戏就" "会低速运行。" #: doc/classes/Engine.xml msgid "" "Controls how much physics ticks are synchronized with real time. For 0 or " "less, the ticks are synchronized. Such values are recommended for network " "games, where clock synchronization matters. Higher values cause higher " "deviation of the in-game clock and real clock but smooth out framerate " "jitters. The default value of 0.5 should be fine for most; values above 2 " "could cause the game to react to dropped frames with a noticeable delay and " "are not recommended.\n" "[b]Note:[/b] For best results, when using a custom physics interpolation " "solution, the physics jitter fix should be disabled by setting [member " "physics_jitter_fix] to [code]0[/code]." msgstr "" "控制物理周期与实际时间的同步程度。如果小于等于 0,则周期是同步的。这样的值建" "议用于网络游戏,因为时钟的同步性很重要。较高的值会导致游戏中的时钟和真实时钟" "之间的偏差较大,但可以平滑帧速率的抖动。默认值0.5对大多数人来说应该是良好的;" "超过2的值可能导致游戏对掉帧的反应有明显的延迟,因此不推荐使用。\n" "[b]注意:[/b]为了获得最佳效果,当使用自定义物理插值这种解决方案时,应通过将 " "[member physics_jitter_fix] 设置为 [code]0[/code] 来禁用物理抖动修复。" #: doc/classes/Engine.xml msgid "" "If [code]false[/code], stops printing error and warning messages to the " "console and editor Output log. This can be used to hide error and warning " "messages during unit test suite runs. This property is equivalent to the " "[member ProjectSettings.application/run/disable_stderr] project setting.\n" "[b]Warning:[/b] If you set this to [code]false[/code] anywhere in the " "project, important error messages may be hidden even if they are emitted " "from other scripts. If this is set to [code]false[/code] in a [code]tool[/" "code] script, this will also impact the editor itself. Do [i]not[/i] report " "bugs before ensuring error messages are enabled (as they are by default).\n" "[b]Note:[/b] This property does not impact the editor's Errors tab when " "running a project from the editor." msgstr "" "如果为 [code]false[/code],则停止打印错误和警告信息到控制台和编辑器输出日志。" "这可以用来在单元测试套件运行期间隐藏错误和警告信息。这个属性等同于 [member " "ProjectSettings.application/run/disable_stderr] 项目设置。\n" "[b]警告:[/b]如果你在项目的任意位置将其设置为 [code]false[/code],重要的错误" "信息可能会被隐藏,即使它们是由其他脚本触发。如果在 [code]tool[/code] 脚本中把" "这个设置为 [code]false[/code],这也会影响到编辑器本身。在确保错误信息被启用之" "前,[i]不[/i]报告错误(默认情况下)。\n" "[b]注意:[/b]当从编辑器运行一个项目时,这个属性不影响编辑器的错误选项卡。" #: doc/classes/Engine.xml msgid "" "The desired frames per second. If the hardware cannot keep up, this setting " "may not be respected. A value of 0 means no limit." msgstr "" "所需的每秒帧数。如果硬件无法跟上,则可能不遵守此设置。值为0表示没有限制。" #: doc/classes/Engine.xml msgid "" "Controls how fast or slow the in-game clock ticks versus the real life one. " "It defaults to 1.0. A value of 2.0 means the game moves twice as fast as " "real life, whilst a value of 0.5 means the game moves at half the regular " "speed." msgstr "" "控制游戏中的时钟与现实生活中的时钟的快慢。默认值为 1.0。值为 2.0 意味着游戏的" "移动速度是现实生活的两倍,而值为 0.5 意味着游戏的移动速度是常规速度的一半。" #: doc/classes/Environment.xml msgid "" "Resource for environment nodes (like [WorldEnvironment]) that define " "multiple rendering options." msgstr "用于定义多个渲染选项的环境节点(如 [WorldEnvironment])的资源。" #: doc/classes/Environment.xml msgid "" "Resource for environment nodes (like [WorldEnvironment]) that define " "multiple environment operations (such as background [Sky] or [Color], " "ambient light, fog, depth-of-field...). These parameters affect the final " "render of the scene. The order of these operations is:\n" "- Depth of Field Blur\n" "- Glow\n" "- Tonemap (Auto Exposure)\n" "- Adjustments\n" "If the target [Viewport] is set to \"2D Without Sampling\", all post-" "processing effects will be unavailable. With \"3D Without Effects\", the " "following options will be unavailable:\n" "- Ssao\n" "- Ss Reflections\n" "This can be configured for the root Viewport with [member ProjectSettings." "rendering/quality/intended_usage/framebuffer_allocation], or for specific " "Viewports via the [member Viewport.usage] property.\n" "Note that [member ProjectSettings.rendering/quality/intended_usage/" "framebuffer_allocation] has a mobile platform override to use \"3D Without " "Effects\" by default. It improves the performance on mobile devices, but at " "the same time affects the screen display on mobile devices." msgstr "" "环境节点(如 [WorldEnvironment])的资源,这些节点定义了多个环境操作(如背景 " "[Sky] 或 [Color]、环境光、雾、景深……)。这些参数会影响场景的最终渲染。这些操" "作的顺序是:\n" "- 景深模糊\n" "- 辉光\n" "- 色调映射(自动曝光)\n" "- 调整\n" "如果目标 [Viewport] 被设为了“2D Without Sampling”,则所有的后处理特效都不可" "用。如果是 “3D Without Effect”,则以下选项不可用:\n" "- Ssao(屏幕空间环境光遮蔽)\n" "- Ss Reflections(屏幕空间反射)\n" "根 Viewport 的预期使用方法可以通过 [member ProjectSettings.rendering/quality/" "intended_usage/framebuffer_allocation] 调整,其他 Viewport 通过 [member " "Viewport.usage] 调整。\n" "请注意,[member ProjectSettings.rendering/quality/intended_usage/" "framebuffer_allocation] 的移动平台覆盖项默认使用“3D Without Effects”。这样可" "以提升移动设备上的性能,但同时会影响移动设备上的屏幕显示。" #: doc/classes/Environment.xml doc/classes/WorldEnvironment.xml msgid "Environment and post-processing" msgstr "环境和后期处理" #: doc/classes/Environment.xml msgid "Light transport in game engines" msgstr "游戏引擎中的光传递" #: doc/classes/Environment.xml doc/classes/Material.xml doc/classes/Mesh.xml #: doc/classes/MeshInstance.xml doc/classes/WorldEnvironment.xml msgid "3D Material Testers Demo" msgstr "3D 材质测试演示" #: doc/classes/Environment.xml msgid "" "Returns [code]true[/code] if the glow level [code]idx[/code] is specified, " "[code]false[/code] otherwise." msgstr "" "如果指定了辉光等级 [code]idx[/code],返回 [code]true[/code],否则返回 " "[code]false[/code]。" #: doc/classes/Environment.xml msgid "" "Enables or disables the glow level at index [code]idx[/code]. Each level " "relies on the previous level. This means that enabling higher glow levels " "will slow down the glow effect rendering, even if previous levels aren't " "enabled." msgstr "" "启用或禁用索引 [code]idx[/code] 处的辉光等级。每个级别都依赖于前一个级别。这" "意味着启用较高的辉光等级会减慢辉光效果的渲染速度,即使之前的等级没有启用。" #: doc/classes/Environment.xml msgid "" "The global brightness value of the rendered scene. Effective only if " "[code]adjustment_enabled[/code] is [code]true[/code]." msgstr "" "渲染场景的全局亮度值。只有当 [code]adjust_enabled[/code] 为 [code]true[/" "code] 时才有效。" #: doc/classes/Environment.xml msgid "" "Applies the provided [Texture] resource to affect the global color aspect of " "the rendered scene. Effective only if [code]adjustment_enabled[/code] is " "[code]true[/code]." msgstr "" "应用所提供的 [Texture] 资源来影响渲染场景的全局颜色表现。只有在 " "[code]adjustment_enabled[/code] 为 [code]true[/code] 时才有效。" #: doc/classes/Environment.xml msgid "" "The global contrast value of the rendered scene (default value is 1). " "Effective only if [code]adjustment_enabled[/code] is [code]true[/code]." msgstr "" "渲染场景的全局对比度值(默认值为1)。只有当[code]adjust_enabled[/code]为 " "[code]true[/code] 时才有效。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], enables the [code]adjustment_*[/code] properties " "provided by this resource. If [code]false[/code], modifications to the " "[code]adjustment_*[/code] properties will have no effect on the rendered " "scene." msgstr "" "如果 [code]true[/code],则启用此资源提供的 [code]adjusting_*[/code] 属性。如" "果[code]false[/code],对[code]adjustment_*[/code]属性的修改将不会对渲染的场景" "产生影响。" #: doc/classes/Environment.xml msgid "" "The global color saturation value of the rendered scene (default value is " "1). Effective only if [code]adjustment_enabled[/code] is [code]true[/code]." msgstr "" "渲染场景的全局色彩饱和度值,默认值为1。只有在[code]adjustment_enabled[/code]" "为 [code]true[/code] 时才有效。" #: doc/classes/Environment.xml msgid "The ambient light's [Color]." msgstr "环境光的颜色。" #: doc/classes/Environment.xml msgid "" "The ambient light's energy. The higher the value, the stronger the light." msgstr "环境光的能量。值越高,光照越强。" #: doc/classes/Environment.xml msgid "" "Defines the amount of light that the sky brings on the scene. A value of " "[code]0.0[/code] means that the sky's light emission has no effect on the " "scene illumination, thus all ambient illumination is provided by the ambient " "light. On the contrary, a value of [code]1.0[/code] means that [i]all[/i] " "the light that affects the scene is provided by the sky, thus the ambient " "light parameter has no effect on the scene.\n" "[b]Note:[/b] [member ambient_light_sky_contribution] is internally clamped " "between [code]0.0[/code] and [code]1.0[/code] (inclusive)." msgstr "" "定义天空给场景带来的光照量。值为 [code]0.0[/code] 表示天空的发光对场景照明没" "有影响,因此所有的环境照明都由环境光提供。相反,值为 [code]1.0[/code] 表示[i]" "所有[/i]影响场景的光线都由天空提供,因此环境光参数对场景没有影响。\n" "[b]注意:[/b]内部会将 [member ambient_light_sky_contribution] 限制在 " "[code]0.0[/code] 到 [code]1.0[/code] 之间(闭区间)。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], enables the tonemapping auto exposure mode of the " "scene renderer. If [code]true[/code], the renderer will automatically " "determine the exposure setting to adapt to the scene's illumination and the " "observed light." msgstr "" "如果[code]true[/code],启用场景渲染器的色调映射自动曝光模式。如果[code]true[/" "code],渲染器将自动确定曝光设置,以适应场景的照明和观察到的光线。" #: doc/classes/Environment.xml msgid "The maximum luminance value for the auto exposure." msgstr "自动曝光的最大亮度值。" #: doc/classes/Environment.xml msgid "The minimum luminance value for the auto exposure." msgstr "自动曝光的最小亮度值。" #: doc/classes/Environment.xml msgid "" "The scale of the auto exposure effect. Affects the intensity of auto " "exposure." msgstr "自动曝光效果的比例。影响自动曝光的强度。" #: doc/classes/Environment.xml msgid "" "The speed of the auto exposure effect. Affects the time needed for the " "camera to perform auto exposure." msgstr "自动曝光效果的速度。影响相机执行自动曝光所需的时间。" #: doc/classes/Environment.xml msgid "The ID of the camera feed to show in the background." msgstr "在背景中显示的相机源的ID。" #: doc/classes/Environment.xml msgid "" "The maximum layer ID to display. Only effective when using the [constant " "BG_CANVAS] background mode." msgstr "要显示的最大图层ID。只有在使用 [constant BG_CANVAS] 背景模式时有效。" #: doc/classes/Environment.xml msgid "" "The [Color] displayed for clear areas of the scene. Only effective when " "using the [constant BG_COLOR] or [constant BG_COLOR_SKY] background modes)." msgstr "" "场景中清除区域显示的[Color]。仅在使用[constant BG_COLOR]或[constant " "BG_COLOR_SKY]背景模式时有效。" #: doc/classes/Environment.xml msgid "The power of the light emitted by the background." msgstr "背景发出的光的功率。" #: doc/classes/Environment.xml msgid "The background mode. See [enum BGMode] for possible values." msgstr "背景模式。请参阅[enum BGMode]了解可能的值。" #: doc/classes/Environment.xml msgid "The [Sky] resource defined as background." msgstr "[Sky] 天空资源定义为背景。" #: doc/classes/Environment.xml msgid "The [Sky] resource's custom field of view." msgstr "[Sky] 天空资源的自定义视野。" #: doc/classes/Environment.xml msgid "The [Sky] resource's rotation expressed as a [Basis]." msgstr "以 [Basis] 表示的 [Sky] 天空资源的旋转。" #: doc/classes/Environment.xml msgid "The [Sky] resource's rotation expressed as Euler angles in radians." msgstr "[Sky] 资源旋转的欧拉角,以弧度单位。" #: doc/classes/Environment.xml msgid "The [Sky] resource's rotation expressed as Euler angles in degrees." msgstr "[Sky] 天空资源旋转的欧拉角,单位为度。" #: doc/classes/Environment.xml msgid "The amount of far blur for the depth-of-field effect." msgstr "用于景深效果的远处模糊数量。" #: doc/classes/Environment.xml msgid "" "The distance from the camera where the far blur effect affects the rendering." msgstr "远景模糊效果影响渲染的距离。" #: doc/classes/Environment.xml msgid "If [code]true[/code], enables the depth-of-field far blur effect." msgstr "如果[code]true[/code],启用景深远景模糊效果。" #: doc/classes/Environment.xml msgid "" "The depth-of-field far blur's quality. Higher values can mitigate the " "visible banding effect seen at higher strengths, but are much slower." msgstr "" "景深远处模糊的质量。较高的数值可以减轻在较高强度下看到的可见带状效应,但速度" "要慢得多。" #: doc/classes/Environment.xml msgid "The length of the transition between the no-blur area and far blur." msgstr "无模糊区域和远模糊区域之间的过渡长度。" #: doc/classes/Environment.xml msgid "The amount of near blur for the depth-of-field effect." msgstr "用于景深效果的近似模糊的数量。" #: doc/classes/Environment.xml msgid "" "Distance from the camera where the near blur effect affects the rendering." msgstr "近似模糊效果影响渲染的地方与相机的距离。" #: doc/classes/Environment.xml msgid "If [code]true[/code], enables the depth-of-field near blur effect." msgstr "如果[code]true[/code],启用景深近模糊效果。" #: doc/classes/Environment.xml msgid "" "The depth-of-field near blur's quality. Higher values can mitigate the " "visible banding effect seen at higher strengths, but are much slower." msgstr "" "景深近模糊的质量。较高的数值可以减轻在较高强度下看到的可见带状效应,但速度要" "慢得多。" #: doc/classes/Environment.xml msgid "The length of the transition between the near blur and no-blur area." msgstr "近模糊和无模糊区域之间的过渡长度。" #: doc/classes/Environment.xml msgid "The fog's [Color]." msgstr "雾的[Color]。" #: doc/classes/Environment.xml msgid "The fog's depth starting distance from the camera." msgstr "雾的深度开始距离相机的距离。" #: doc/classes/Environment.xml msgid "" "The fog depth's intensity curve. A number of presets are available in the " "[b]Inspector[/b] by right-clicking the curve." msgstr "" "雾深的强度曲线。在[b]检查器[/b]中,通过右键点击曲线,可以获得一些预设。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], the depth fog effect is enabled. When enabled, fog " "will appear in the distance (relative to the camera)." msgstr "" "如果为 [code]true[/code],则启用深度雾效果。启用后,雾将出现在远处(相对于相" "机)。" #: doc/classes/Environment.xml msgid "" "The fog's depth end distance from the camera. If this value is set to 0, it " "will be equal to the current camera's [member Camera.far] value." msgstr "" "雾的深度终点与摄像机的距离。如果此值被设置为0,则等于当前摄像机的[member " "Camera.far]值。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], fog effects are enabled. [member fog_height_enabled] " "and/or [member fog_depth_enabled] must be set to [code]true[/code] to " "actually display fog." msgstr "" "如果[code]true[/code],则启用雾化效果。必须将[member fog_height_enabled]和/或" "[member fog_depth_enabled]设置为 [code]true[/code],才能实际显示雾气。" #: doc/classes/Environment.xml msgid "" "The height fog's intensity. A number of presets are available in the " "[b]Inspector[/b] by right-clicking the curve." msgstr "高度雾的强度。在[b]检查器[/b]中,通过右键点击曲线。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], the height fog effect is enabled. When enabled, fog " "will appear in a defined height range, regardless of the distance from the " "camera. This can be used to simulate \"deep water\" effects with a lower " "performance cost compared to a dedicated shader." msgstr "" "如果为 [code]true[/code],则启用高度雾化效果。启用后,无论与相机的距离有多" "远,雾气都会出现在规定的高度范围内。这可以用来模拟 \"深水 \"效果,与专用着色" "器相比,性能成本更低。" #: doc/classes/Environment.xml msgid "" "The Y coordinate where the height fog will be the most intense. If this " "value is greater than [member fog_height_min], fog will be displayed from " "bottom to top. Otherwise, it will be displayed from top to bottom." msgstr "" "雾气高度最强的Y坐标。如果这个值大于[member fog_height_min],雾气将从下往上显" "示。否则,将从上到下显示。" #: doc/classes/Environment.xml msgid "" "The Y coordinate where the height fog will be the least intense. If this " "value is greater than [member fog_height_max], fog will be displayed from " "top to bottom. Otherwise, it will be displayed from bottom to top." msgstr "" "雾气高度最弱的Y坐标。如果这个值大于[member fog_height_max],雾气将从上到下显" "示。否则,将从下往上显示。" #: doc/classes/Environment.xml msgid "" "The intensity of the depth fog color transition when looking towards the " "sun. The sun's direction is determined automatically using the " "DirectionalLight node in the scene." msgstr "" "朝着太阳看时,深度雾颜色过渡的强度。太阳的方向是通过场景中的平行光节点自动确" "定的。" #: doc/classes/Environment.xml msgid "The depth fog's [Color] when looking towards the sun." msgstr "朝太阳看时,深雾的[Color]。" #: doc/classes/Environment.xml msgid "" "The intensity of the fog light transmittance effect. Amount of light that " "the fog transmits." msgstr "雾光透射效果的强弱。雾的透光量。" #: doc/classes/Environment.xml msgid "" "Enables fog's light transmission effect. If [code]true[/code], light will be " "more visible in the fog to simulate light scattering as in real life." msgstr "" "启用雾的透光效果。如果[code]true[/code],光线在雾中会更加明显,以模拟现实生活" "中的光散射。" #: doc/classes/Environment.xml msgid "" "Smooths out the blockiness created by sampling higher levels, at the cost of " "performance.\n" "[b]Note:[/b] When using the GLES2 renderer, this is only available if the " "GPU supports the [code]GL_EXT_gpu_shader4[/code] extension." msgstr "" "以牺牲性能为代价,消除由更高级别采样产生的块状效应。\n" "[b]注意:[/b]使用 GLES2渲染器时,只有GPU支持 [code]GL_EXT_gpu_shader4[/code] " "扩展时才可用。" #: doc/classes/Environment.xml msgid "The glow blending mode." msgstr "辉光混合模式。" #: doc/classes/Environment.xml msgid "" "The bloom's intensity. If set to a value higher than [code]0[/code], this " "will make glow visible in areas darker than the [member glow_hdr_threshold]." msgstr "" "泛光的强度。如果设置为大于 [code]0[/code] 的值,则将在比 [member " "glow_hdr_threshold] 成员更暗的区域中显示辉光。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], the glow effect is enabled.\n" "[b]Note:[/b] Only effective if [member ProjectSettings.rendering/quality/" "intended_usage/framebuffer_allocation] is [b]3D[/b] ([i]not[/i] [b]3D " "Without Effects[/b]). On mobile, [member ProjectSettings.rendering/quality/" "intended_usage/framebuffer_allocation] defaults to [b]3D Without Effects[/b] " "by default, so its [code].mobile[/code] override needs to be changed to " "[b]3D[/b].\n" "[b]Note:[/b] When using GLES3 on mobile, HDR rendering is disabled by " "default for performance reasons. This means glow will only be visible if " "[member glow_hdr_threshold] is decreased below [code]1.0[/code] or if " "[member glow_bloom] is increased above [code]0.0[/code]. Also consider " "increasing [member glow_intensity] to [code]1.5[/code]. If you want glow to " "behave on mobile like it does on desktop (at a performance cost), enable " "[member ProjectSettings.rendering/quality/depth/hdr]'s [code].mobile[/code] " "override." msgstr "" "为 [code]true[/code] 时,启用辉光效果。\n" "[b]注意:[/b]仅在 [member ProjectSettings.rendering/quality/intended_usage/" "framebuffer_allocation] 为 [b]3D[/b]([i]不是[/i] [b]3D Without Effects[/b])" "时有效。在移动平台,[member ProjectSettings.rendering/quality/intended_usage/" "framebuffer_allocation] 默认为 [b]3D Without Effects[/b],因此需要将 [code]." "mobile[/code] 覆盖项改为 [b]3D[/b]。\n" "[b]注意:[/b]在移动平台上使用 GLES3 时,因为性能原因默认禁用了 HDR 渲染。也就" "是说辉光效果只会在 [member glow_hdr_threshold] 低于 [code]1.0[/code] 或者 " "[member glow_bloom] 大于 [code]0.0[/code] 时可见。也可以考虑将 [member " "glow_intensity] 增加到 [code]1.5[/code]。如果想要让移动平台上的辉光效果与桌面" "平台一致(以牺牲性能为代价),可以启用 [member ProjectSettings.rendering/" "quality/depth/hdr] 的 [code].mobile[/code] 覆盖项。" #: doc/classes/Environment.xml msgid "" "The higher threshold of the HDR glow. Areas brighter than this threshold " "will be clamped for the purposes of the glow effect." msgstr "" "HDR 辉光的较高阈值。比这个阈值更亮的区域将被限制,以达到辉光效果的目的。" #: doc/classes/Environment.xml msgid "The bleed scale of the HDR glow." msgstr "HDR 辉光的逸出缩放。" #: doc/classes/Environment.xml msgid "" "The lower threshold of the HDR glow. When using the GLES2 renderer (which " "doesn't support HDR), this needs to be below [code]1.0[/code] for glow to be " "visible. A value of [code]0.9[/code] works well in this case." msgstr "" "HDR 辉光的下限。当使用(不支持 HDR 的)GLES2 渲染器时,需要低于 [code]1.0[/" "code] 才能看到辉光。在这种情况下,值 [code]0.9[/code] 的效果很好。" #: doc/classes/Environment.xml msgid "" "Takes more samples during downsample pass of glow. This ensures that single " "pixels are captured by glow which makes the glow look smoother and more " "stable during movement. However, it is very expensive and makes the glow " "post process take twice as long." msgstr "" "在辉光的下采样过程中获取更多的样本。这可以确保辉光捕捉到单个像素,使辉光在移" "动过程中看起来更平滑、更稳定。然而,它非常吃性能,使辉光的后期处理需要两倍的" "时间。" #: doc/classes/Environment.xml msgid "" "The glow intensity. When using the GLES2 renderer, this should be increased " "to 1.5 to compensate for the lack of HDR rendering." msgstr "" "辉光强度。使用 GLES2 渲染器时,应将其增加到 1.5 以弥补 HDR 渲染的不足。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], the 1st level of glow is enabled. This is the most " "\"local\" level (least blurry)." msgstr "" "如果为 [code]true[/code],则启用第 1 级辉光。这是最“局部”的级别(最不模糊)。" #: doc/classes/Environment.xml msgid "If [code]true[/code], the 2th level of glow is enabled." msgstr "如果为 [code]true[/code],则启用第 2 级辉光。" #: doc/classes/Environment.xml msgid "If [code]true[/code], the 3th level of glow is enabled." msgstr "如果为 [code]true[/code],则启用第 3 级辉光。" #: doc/classes/Environment.xml msgid "If [code]true[/code], the 4th level of glow is enabled." msgstr "如果为 [code]true[/code],则启用第 4 级辉光。" #: doc/classes/Environment.xml msgid "If [code]true[/code], the 5th level of glow is enabled." msgstr "如果为 [code]true[/code],则启用第 5 级辉光。" #: doc/classes/Environment.xml msgid "If [code]true[/code], the 6th level of glow is enabled." msgstr "如果为 [code]true[/code],则启用第 6 级辉光。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], the 7th level of glow is enabled. This is the most " "\"global\" level (blurriest)." msgstr "" "如果为 [code]true[/code],则启用第 7 级辉光。这是最“全局”的级别(最模糊)。" #: doc/classes/Environment.xml msgid "" "The glow strength. When using the GLES2 renderer, this should be increased " "to 1.3 to compensate for the lack of HDR rendering." msgstr "" "辉光强度。当使用 GLES2 渲染器时,应将其提高到 1.3,以弥补 HDR 渲染的不足。" #: doc/classes/Environment.xml msgid "The depth tolerance for screen-space reflections." msgstr "屏幕空间反射的深度公差。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], screen-space reflections are enabled. Screen-space " "reflections are more accurate than reflections from [GIProbe]s or " "[ReflectionProbe]s, but are slower and can't reflect surfaces occluded by " "others." msgstr "" "如果为 [code]true[/code],则启用屏幕空间反射。屏幕空间反射比 [GIProbe] 或 " "[ReflectionProbe] 的反射更精确,但速度较慢,而且不能反射被其他物体遮挡的表" "面。" #: doc/classes/Environment.xml msgid "" "The fade-in distance for screen-space reflections. Affects the area from the " "reflected material to the screen-space reflection)." msgstr "屏幕空间反射的淡入距离。影响从反射材质到屏幕空间反射的区域。" #: doc/classes/Environment.xml msgid "" "The fade-out distance for screen-space reflections. Affects the area from " "the screen-space reflection to the \"global\" reflection." msgstr "屏幕空间反射的淡出距离。影响从屏幕空间反射到“全局”反射的区域。" #: doc/classes/Environment.xml msgid "" "The maximum number of steps for screen-space reflections. Higher values are " "slower." msgstr "屏幕空间反射的最大步数。数值越高,速度越慢。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], screen-space reflections will take the material " "roughness into account." msgstr "如果 [code]true[/code],屏幕空间反射将考虑材质粗糙度。" #: doc/classes/Environment.xml msgid "" "The screen-space ambient occlusion intensity on materials that have an AO " "texture defined. Values higher than [code]0[/code] will make the SSAO effect " "visible in areas darkened by AO textures." msgstr "" "定义了AO纹理的材质的屏幕空间环境遮挡强度。高于[code]0[/code]的值将使SSAO效果" "在AO纹理变暗的区域可见。" #: doc/classes/Environment.xml msgid "" "The screen-space ambient occlusion bias. This should be kept high enough to " "prevent \"smooth\" curves from being affected by ambient occlusion." msgstr "" "屏幕空间环境光遮蔽偏差。该值应保持在足够高的水平,以防止“平滑”曲线受到环境光" "遮蔽的影响。" #: doc/classes/Environment.xml msgid "" "The screen-space ambient occlusion blur quality. See [enum SSAOBlur] for " "possible values." msgstr "屏幕空间环境光遮蔽质量。可能的值请参阅 [enum SSAOBlur]。" #: doc/classes/Environment.xml msgid "The screen-space ambient occlusion color." msgstr "屏幕空间环境光遮蔽颜色。" #: doc/classes/Environment.xml msgid "The screen-space ambient occlusion edge sharpness." msgstr "屏幕空间环境光遮蔽边缘锐度。" #: doc/classes/Environment.xml msgid "" "If [code]true[/code], the screen-space ambient occlusion effect is enabled. " "This darkens objects' corners and cavities to simulate ambient light not " "reaching the entire object as in real life. This works well for small, " "dynamic objects, but baked lighting or ambient occlusion textures will do a " "better job at displaying ambient occlusion on large static objects. This is " "a costly effect and should be disabled first when running into performance " "issues." msgstr "" "如果[code]true[/code],启用屏幕空间环境光遮蔽效果。这将使物体的角落和空洞变" "暗,以模拟现实生活中环境光无法到达整个物体。这对于小型的动态物体来说效果很" "好,但在大型静态物体上,烘焙的照明或环境光遮蔽纹理会更好地显示环境光遮蔽。这" "是一个昂贵的效果,当遇到性能问题时,应该首先禁用。" #: doc/classes/Environment.xml msgid "" "The primary screen-space ambient occlusion intensity. See also [member " "ssao_radius]." msgstr "主要的屏幕空间环境光遮蔽强度。参阅[member ssao_radius]。" #: doc/classes/Environment.xml msgid "" "The secondary screen-space ambient occlusion intensity. See also [member " "ssao_radius2]." msgstr "主要的屏幕空间环境光遮蔽强度。参阅 [member ssao_radius]。" #: doc/classes/Environment.xml msgid "" "The screen-space ambient occlusion intensity in direct light. In real life, " "ambient occlusion only applies to indirect light, which means its effects " "can't be seen in direct light. Values higher than [code]0[/code] will make " "the SSAO effect visible in direct light." msgstr "" "直射光下的屏幕空间环境光遮蔽强度。在现实生活中,环境遮挡只适用于间接光,也就" "是说在直射光下无法看到其效果。高于[code]0[/code]的数值将使SSAO效果在直射光下" "可见。" #: doc/classes/Environment.xml msgid "" "The screen-space ambient occlusion quality. Higher qualities will make " "better use of small objects for ambient occlusion, but are slower." msgstr "" "屏幕空间的环境光遮蔽质量。更高的质量将更好地利用小物体进行环境光遮蔽,但速度" "较慢。" #: doc/classes/Environment.xml msgid "The primary screen-space ambient occlusion radius." msgstr "主屏空间环境光遮蔽半径。" #: doc/classes/Environment.xml msgid "" "The secondary screen-space ambient occlusion radius. If set to a value " "higher than [code]0[/code], enables the secondary screen-space ambient " "occlusion effect which can be used to improve the effect's appearance (at " "the cost of performance)." msgstr "" "次要屏幕空间环境光遮蔽半径。如果设置为高于[code]0[/code]的值,则启用次要屏幕" "空间的环境光遮蔽效果,可以用来改善效果表现,但以性能为代价。" #: doc/classes/Environment.xml msgid "The default exposure used for tonemapping." msgstr "用于色调映射的默认曝光。" #: doc/classes/Environment.xml msgid "" "The tonemapping mode to use. Tonemapping is the process that \"converts\" " "HDR values to be suitable for rendering on a LDR display. (Godot doesn't " "support rendering on HDR displays yet.)" msgstr "" "要使用的色调映射模式。色调映射是“转换”HDR 值以适合在 LDR 显示器上呈现的过程。" "(Godot 尚不支持在 HDR 显示器上进行渲染。)" #: doc/classes/Environment.xml msgid "" "The white reference value for tonemapping. Only effective if the [member " "tonemap_mode] isn't set to [constant TONE_MAPPER_LINEAR]." msgstr "" "调色映射的白色参考值。只有当 [member tonemap_mode] 没有设置为 [constant " "TONE_MAPPER_LINEAR] 时才有效。" #: doc/classes/Environment.xml msgid "" "Keeps on screen every pixel drawn in the background. Only select this mode " "if you really need to keep the old data. On modern GPUs it will generally " "not be faster than clearing the background, and can be significantly slower, " "particularly on mobile.\n" "It can only be safely used in fully-interior scenes (no visible sky or sky " "reflections). If enabled in a scene where the background is visible, \"ghost " "trail\" artifacts will be visible when moving the camera." msgstr "" "在屏幕上保留背景中绘制的每个像素。请只在你真的需要保留旧数据时选择这个模式。" "在现代 GPU 上一般并不会比清除背景更快,反而可能造成显著减速,尤其在移动设备" "上。\n" "只能在完全室内场景中安全使用(没有可见的天空或天空反射)。如果在背景可见的场" "景中启用,当移动相机时,“鬼影踪迹”伪影将可见。" #: doc/classes/Environment.xml msgid "" "Clears the background using the clear color defined in [member " "ProjectSettings.rendering/environment/default_clear_color]." msgstr "" "使用[member ProjectSettings.rendering/environment/default_clear_color]中定义" "的底色清除背景。" #: doc/classes/Environment.xml msgid "Clears the background using a custom clear color." msgstr "使用自定义的底色清除背景。" #: doc/classes/Environment.xml msgid "Displays a user-defined sky in the background." msgstr "在背景中显示用户自定义的天空。" #: doc/classes/Environment.xml msgid "" "Clears the background using a custom clear color and allows defining a sky " "for shading and reflection. This mode is slightly faster than [constant " "BG_SKY] and should be preferred in scenes where reflections can be visible, " "but the sky itself never is (e.g. top-down camera)." msgstr "" "使用自定义的透明颜色清除背景,并允许定义天空的阴影和反射。这种模式比" "[constant BG_SKY]稍快,应是在可以看到反射,但天空本身不可见的场景中的首选,例" "如,自上而下的相机。" #: doc/classes/Environment.xml msgid "Displays a [CanvasLayer] in the background." msgstr "在背景中显示[CanvasLayer]。" #: doc/classes/Environment.xml msgid "Displays a camera feed in the background." msgstr "在背景中显示相机源。" #: doc/classes/Environment.xml msgid "Represents the size of the [enum BGMode] enum." msgstr "表示[enum BGMode]枚举的大小。" #: doc/classes/Environment.xml msgid "" "Additive glow blending mode. Mostly used for particles, glows (bloom), lens " "flare, bright sources." msgstr "添加辉光混合模式。主要用于粒子、辉光(泛光)、镜头眩光、亮源。" #: doc/classes/Environment.xml msgid "" "Screen glow blending mode. Increases brightness, used frequently with bloom." msgstr "滤色辉光混合模式。增加亮度,经常与泛光一起使用。" #: doc/classes/Environment.xml msgid "" "Soft light glow blending mode. Modifies contrast, exposes shadows and " "highlights (vivid bloom)." msgstr "柔光辉光混合模式。修改对比度,曝光阴影和高光(高质量泛光)。" #: doc/classes/Environment.xml msgid "" "Replace glow blending mode. Replaces all pixels' color by the glow value. " "This can be used to simulate a full-screen blur effect by tweaking the glow " "parameters to match the original image's brightness." msgstr "" "替换辉光混合模式。用辉光值替换所有像素的颜色。这可以通过调整辉光参数来模拟全" "屏模糊效果,使其与原始图像的亮度相匹配。" #: doc/classes/Environment.xml msgid "" "Linear tonemapper operator. Reads the linear data and passes it on " "unmodified. This can cause bright lighting to look blown out, with " "noticeable clipping in the output colors." msgstr "" "线性色调映射运算子。读取线性数据并将其原样传递。较亮的光照会导致过曝、输出的" "颜色中会有可见的截断。" #: doc/classes/Environment.xml msgid "" "Reinhardt tonemapper operator. Performs a variation on rendered pixels' " "colors by this formula: [code]color = color / (1 + color)[/code]. This " "avoids clipping bright highlights, but the resulting image can look a bit " "dull." msgstr "" "Reinhardt 色调映射运算子。对渲染后的像素颜色进行调整,使用的是这个公式:" "[code]color = color / (1 + color)[/code]。可以避免对高光的截断,但最终的图像" "可能看上去有些寡淡。" #: doc/classes/Environment.xml msgid "" "Filmic tonemapper operator. This avoids clipping bright highlights, with a " "resulting image that usually looks more vivid than [constant " "TONE_MAPPER_REINHARDT]." msgstr "" "电影级色调映射器运算子。可以避免对高光处的截断,最终图像通常比 [constant " "TONE_MAPPER_REINHARDT] 更鲜艳。" #: doc/classes/Environment.xml msgid "" "Use the legacy Godot version of the Academy Color Encoding System " "tonemapper. Unlike [constant TONE_MAPPER_ACES_FITTED], this version of ACES " "does not handle bright lighting in a physically accurate way. ACES typically " "has a more contrasted output compared to [constant TONE_MAPPER_REINHARDT] " "and [constant TONE_MAPPER_FILMIC].\n" "[b]Note:[/b] This tonemapping operator will be removed in Godot 4.0 in favor " "of the more accurate [constant TONE_MAPPER_ACES_FITTED]." msgstr "" "使用旧有的 Godot 版本的学院色彩编码系统(Academy Color Encoding System)色调" "映射器。与 [constant TONE_MAPPER_ACES_FITTED] 不同,这个版本的 ACES 对较亮的" "光照的处理从物理角度看并不精确。ACES 的输出在对比度方面通常比 [constant " "TONE_MAPPER_REINHARDT] 和 [constant TONE_MAPPER_FILMIC] 更高。\n" "[b]注意:[/b]Godot 4.0 中会移除这个色调映射运算子,使用更精确的 [constant " "TONE_MAPPER_ACES_FITTED]。" #: doc/classes/Environment.xml msgid "" "Use the Academy Color Encoding System tonemapper. ACES is slightly more " "expensive than other options, but it handles bright lighting in a more " "realistic fashion by desaturating it as it becomes brighter. ACES typically " "has a more contrasted output compared to [constant TONE_MAPPER_REINHARDT] " "and [constant TONE_MAPPER_FILMIC]." msgstr "" "使用学院色彩编码系统(Academy Color Encoding System)色调映射器。与其他选项相" "比,ACES 的消耗略高,但对于较亮的光照的处理更真实,越亮饱和度越低。ACES 的输" "出在对比度方面通常比 [constant TONE_MAPPER_REINHARDT] 和 [constant " "TONE_MAPPER_FILMIC] 更高。" #: doc/classes/Environment.xml msgid "Low depth-of-field blur quality (fastest)." msgstr "低质量景深模糊(最快)。" #: doc/classes/Environment.xml msgid "Medium depth-of-field blur quality." msgstr "中等景深的模糊质量。" #: doc/classes/Environment.xml msgid "High depth-of-field blur quality (slowest)." msgstr "高质量景深模糊(最慢)。" #: doc/classes/Environment.xml msgid "No blur for the screen-space ambient occlusion effect (fastest)." msgstr "屏幕空间环境遮挡效果不模糊(最快)。" #: doc/classes/Environment.xml msgid "1×1 blur for the screen-space ambient occlusion effect." msgstr "1×1模糊的屏幕空间环境遮挡效果。" #: doc/classes/Environment.xml msgid "2×2 blur for the screen-space ambient occlusion effect." msgstr "2×2模糊的屏幕空间环境遮挡效果。" #: doc/classes/Environment.xml msgid "3×3 blur for the screen-space ambient occlusion effect (slowest)." msgstr "3×3模糊的屏幕空间环境遮挡效果(最慢)。" #: doc/classes/Environment.xml msgid "Low quality for the screen-space ambient occlusion effect (fastest)." msgstr "低质量的屏幕空间环境遮挡效果(最快)。" #: doc/classes/Environment.xml #, fuzzy msgid "Medium quality for the screen-space ambient occlusion effect." msgstr "低质量的屏幕空间环境遮挡效果。" #: doc/classes/Environment.xml #, fuzzy msgid "High quality for the screen-space ambient occlusion effect (slowest)." msgstr "低质量的屏幕空间环境遮挡效果(最慢)。" #: doc/classes/Expression.xml msgid "A class that stores an expression you can execute." msgstr "一个存储你可以执行的表达式的类。" #: doc/classes/Expression.xml msgid "" "An expression can be made of any arithmetic operation, built-in math " "function call, method call of a passed instance, or built-in type " "construction call.\n" "An example expression text using the built-in math functions could be " "[code]sqrt(pow(3,2) + pow(4,2))[/code].\n" "In the following example we use a [LineEdit] node to write our expression " "and show the result.\n" "[codeblock]\n" "onready var expression = Expression.new()\n" "\n" "func _ready():\n" " $LineEdit.connect(\"text_entered\", self, \"_on_text_entered\")\n" "\n" "func _on_text_entered(command):\n" " var error = expression.parse(command, [])\n" " if error != OK:\n" " print(expression.get_error_text())\n" " return\n" " var result = expression.execute([], null, true)\n" " if not expression.has_execute_failed():\n" " $LineEdit.text = str(result)\n" "[/codeblock]" msgstr "" "表达式可以由任何算术运算、内置数学函数调用、传递实例的方法调用或内置类型构造" "调用组成。\n" "一个使用内置数学函数的表达式文本示例可以是[code]sqrt(pow(3,2)+pow(4,2))[/" "code]。\n" "在下面的例子中,我们使用一个[LineEdit]节点来写我们的表达式并显示结果。\n" "[codeblock]\n" "onready var expression = Expression.new()\n" "\n" "func _ready():\n" " $LineEdit.connect(\"text_entered\", self, \"_on_text_entered\")\n" "\n" "func _on_text_entered(command):\n" " var error = expression.parse(command, [])\n" " if error != OK:\n" " print(expression.get_error_text())\n" " return\n" " var result = expression.execute([], null, true)\n" " if not expression.has_execute_failed():\n" " $LineEdit.text = str(result)\n" "[/codeblock]" #: doc/classes/Expression.xml msgid "" "Executes the expression that was previously parsed by [method parse] and " "returns the result. Before you use the returned object, you should check if " "the method failed by calling [method has_execute_failed].\n" "If you defined input variables in [method parse], you can specify their " "values in the inputs array, in the same order." msgstr "" "执行之前由[method parse]解析的表达式,并返回结果。在使用返回的对象之前,应该" "通过调用 [method has_execute_failed] 来检查方法是否失败。\n" "如果你在 [method parse] 中定义了输入变量,你可以在输入数组中以同样的顺序指定" "它们的值。" #: doc/classes/Expression.xml msgid "Returns the error text if [method parse] has failed." msgstr "如果[method parse]失败了,返回错误文本。" #: doc/classes/Expression.xml msgid "Returns [code]true[/code] if [method execute] has failed." msgstr "如果[method execute]失败,返回 [code]true[/code]。" #: doc/classes/Expression.xml msgid "" "Parses the expression and returns an [enum Error] code.\n" "You can optionally specify names of variables that may appear in the " "expression with [code]input_names[/code], so that you can bind them when it " "gets executed." msgstr "" "解析表达式并返回一个[enum Error]代码。\n" "你可以选择用[code]input_names[/code]指定可能出现在表达式中的变量名称,这样你" "就可以在表达式被执行时绑定它们。" #: doc/classes/ExternalTexture.xml msgid "Enable OpenGL ES external texture extension." msgstr "启用OpenGL ES外部纹理扩展。" #: doc/classes/ExternalTexture.xml msgid "" "Enable support for the OpenGL ES external texture extension as defined by " "[url=https://www.khronos.org/registry/OpenGL/extensions/OES/" "OES_EGL_image_external.txt]OES_EGL_image_external[/url].\n" "[b]Note:[/b] This is only supported for Android platforms." msgstr "" "启用对OpenGL ES外部纹理扩展的支持,如[url=https://www.khronos.org/registry/" "OpenGL/extensions/OES/OES_EGL_image_external.txt]OES_EGL_image_external[/url]" "所定义。\n" "[b]注意:[/b]这只支持Android平台。" #: doc/classes/ExternalTexture.xml msgid "Returns the external texture name." msgstr "返回外部纹理名称。" #: doc/classes/ExternalTexture.xml msgid "External texture size." msgstr "外部纹理大小。" #: doc/classes/File.xml msgid "Type to handle file reading and writing operations." msgstr "用于处理文件读写操作的类型。" #: doc/classes/File.xml msgid "" "File type. This is used to permanently store data into the user device's " "file system and to read from it. This can be used to store game save data or " "player configuration files, for example.\n" "Here's a sample on how to write and read from a file:\n" "[codeblock]\n" "func save(content):\n" " var file = File.new()\n" " file.open(\"user://save_game.dat\", File.WRITE)\n" " file.store_string(content)\n" " file.close()\n" "\n" "func load():\n" " var file = File.new()\n" " file.open(\"user://save_game.dat\", File.READ)\n" " var content = file.get_as_text()\n" " file.close()\n" " return content\n" "[/codeblock]\n" "In the example above, the file will be saved in the user data folder as " "specified in the [url=$DOCS_URL/tutorials/io/data_paths.html]Data paths[/" "url] documentation.\n" "[b]Note:[/b] To access project resources once exported, it is recommended to " "use [ResourceLoader] instead of the [File] API, as some files are converted " "to engine-specific formats and their original source files might not be " "present in the exported PCK package.\n" "[b]Note:[/b] Files are automatically closed only if the process exits " "\"normally\" (such as by clicking the window manager's close button or " "pressing [b]Alt + F4[/b]). If you stop the project execution by pressing " "[b]F8[/b] while the project is running, the file won't be closed as the game " "process will be killed. You can work around this by calling [method flush] " "at regular intervals." msgstr "" "文件类型。这用来将数据永久存储到用户设备的文件系统中,并可从中读取。例如,可" "以用来存储游戏保存数据或玩家配置文件。\n" "下面是一个关于如何读写文件的例子。\n" "[codeblock]\n" "func save(content):\n" " var file = File.new()\n" " file.open(\"user://save_game.dat\", File.WRITE)\n" " file.store_string(content)\n" " file.close()\n" "\n" "func load():\n" " var file = File.new()\n" " file.open(\"user://save_game.dat\", File.READ)\n" " var content = file.get_as_text()\n" " file.close()\n" " return content\n" "[/codeblock]\n" "在上面的例子中,文件将被保存在[url=$DOCS_URL/tutorials/io/data_paths.html]数" "据路径[/url]文件中指定的用户数据文件夹中。\n" "[b]注意:[/b]要在导出后访问项目资源,建议使用 [ResourceLoader] 而不是 [File] " "API,因为有些文件被转换为引擎特定的格式,其原始源文件可能不存在于导出的 PCK " "包中。\n" "[b]注意:[/b]只有在进程“正常”退出时,例如通过点击窗口管理器的关闭按钮或按 " "[b]Alt + F4[/b],文件才会自动关闭。如果你在项目运行时按 [b]F8[/b] 停止项目执" "行,文件将不会被关闭,因为游戏进程将被杀死。你可以通过定期调用 [method " "flush] 来解决这个问题。" #: doc/classes/File.xml msgid "File system" msgstr "文件系统" #: doc/classes/File.xml msgid "" "Closes the currently opened file and prevents subsequent read/write " "operations. Use [method flush] to persist the data to disk without closing " "the file." msgstr "" "关闭当前打开的文件,并阻止后续的读/写操作。使用 [method flush] 将数据持久化到" "磁盘,而不关闭文件。" #: doc/classes/File.xml msgid "" "Returns [code]true[/code] if the file cursor has already read past the end " "of the file.\n" "[b]Note:[/b] [code]eof_reached() == false[/code] cannot be used to check " "whether there is more data available. To loop while there is more data " "available, use:\n" "[codeblock]\n" "while file.get_position() < file.get_len():\n" " # Read data\n" "[/codeblock]" msgstr "" "如果文件光标已经读到了文件的末端,返回 [code]true[/code]。\n" "[b]注意:[/b][code]eof_reached() == false[/code] 不能用来检查是否有更多的数据" "可用。要在有更多数据可用时进行循环,请使用:\n" "[codeblock]\n" "while file.get_position() < file.get_len():\n" " # 读取数据\n" "[/codeblock]" #: doc/classes/File.xml msgid "" "Returns [code]true[/code] if the file exists in the given path.\n" "[b]Note:[/b] Many resources types are imported (e.g. textures or sound " "files), and their source asset will not be included in the exported game, as " "only the imported version is used. See [method ResourceLoader.exists] for an " "alternative approach that takes resource remapping into account." msgstr "" "如果文件存在于给定的路径中,返回 [code]true[/code]。\n" "[b]注意:[/b]许多资源类型导入后,例如纹理或声音文件,其源资产不会包含在导出的" "游戏中,因为只使用导入的版本。有关考虑资源重新映射的替代方法,请参阅 [method " "ResourceLoader.exists]。" #: doc/classes/File.xml msgid "" "Writes the file's buffer to disk. Flushing is automatically performed when " "the file is closed. This means you don't need to call [method flush] " "manually before closing a file using [method close]. Still, calling [method " "flush] can be used to ensure the data is safe even if the project crashes " "instead of being closed gracefully.\n" "[b]Note:[/b] Only call [method flush] when you actually need it. Otherwise, " "it will decrease performance due to constant disk writes." msgstr "" "将文件的缓冲区写入磁盘。关闭文件时会自动执行刷新。这意味着您不需要在使用 " "[method close] 关闭文件之前手动调用 [method flush]。尽管如此,即使项目崩溃而" "不是正常关闭,调用 [method flush] 仍可用于确保数据安全。\n" "[b]注意:[/b]只有在你真正需要的时候才调用 [method flush]。否则,它会由于不断" "的磁盘写入而降低性能。" #: doc/classes/File.xml msgid "" "Returns the next 16 bits from the file as an integer. See [method store_16] " "for details on what values can be stored and retrieved this way." msgstr "" "以整数形式返回文件中接下来的 16 位。请参阅 [method store_16],以获取有关可以" "通过这种方式存储和检索哪些值的详细信息。" #: doc/classes/File.xml msgid "" "Returns the next 32 bits from the file as an integer. See [method store_32] " "for details on what values can be stored and retrieved this way." msgstr "" "以整数形式返回文件中接下来的 32 位。请参阅[method store_32],以获取有关可以通" "过这种方式存储和检索哪些值的详细信息。" #: doc/classes/File.xml msgid "" "Returns the next 64 bits from the file as an integer. See [method store_64] " "for details on what values can be stored and retrieved this way." msgstr "" "以整数形式返回文件中接下来的 64 位。请参阅 [method store_64],以获取有关可以" "通过这种方式存储和检索哪些值的详细信息。" #: doc/classes/File.xml msgid "" "Returns the next 8 bits from the file as an integer. See [method store_8] " "for details on what values can be stored and retrieved this way." msgstr "" "以整数形式返回文件中接下来的 8 位。请参阅 [method store_8],详细了解哪些值可" "以通过这种方式存储和检索。" #: doc/classes/File.xml msgid "" "Returns the whole file as a [String].\n" "Text is interpreted as being UTF-8 encoded." msgstr "" "将整个文件作为 [String] 字符串返回。\n" "将按照 UTF-8 编码解析文本。" #: doc/classes/File.xml msgid "Returns next [code]len[/code] bytes of the file as a [PoolByteArray]." msgstr "将文件中接下来的 [code]len[/code] 个字节作为 [PoolByteArray] 返回。" #: doc/classes/File.xml msgid "" "Returns the next value of the file in CSV (Comma-Separated Values) format. " "You can pass a different delimiter [code]delim[/code] to use other than the " "default [code]\",\"[/code] (comma). This delimiter must be one-character " "long, and cannot be a double quotation mark.\n" "Text is interpreted as being UTF-8 encoded. Text values must be enclosed in " "double quotes if they include the delimiter character. Double quotes within " "a text value can be escaped by doubling their occurrence.\n" "For example, the following CSV lines are valid and will be properly parsed " "as two strings each:\n" "[codeblock]\n" "Alice,\"Hello, Bob!\"\n" "Bob,Alice! What a surprise!\n" "Alice,\"I thought you'd reply with \"\"Hello, world\"\".\"\n" "[/codeblock]\n" "Note how the second line can omit the enclosing quotes as it does not " "include the delimiter. However it [i]could[/i] very well use quotes, it was " "only written without for demonstration purposes. The third line must use " "[code]\"\"[/code] for each quotation mark that needs to be interpreted as " "such instead of the end of a text value." msgstr "" "以 CSV(逗号分隔值)格式返回文件的下一个值。您可以传递不同的分隔符 " "[code]delim[/code] 以使用默认 [code]\",\"[/code](逗号)以外的其他分隔符。此" "分隔符必须为一个字符长,并且不能是双引号。\n" "将按照 UTF-8 编码解析文本。如果文本值包含分隔符,则必须用双引号括起来。文本值" "中的双引号可以通过将它们的出现次数加倍来转义。\n" "例如,以下 CSV 行是有效的,每行将被正确解析为两个字符串:\n" "[codeblock]\n" "Alice,\"Hello, Bob!\"\n" "Bob,Alice! What a surprise!\n" "Alice,\"I thought you'd reply with \"\"Hello, world\"\".\"\n" "[/codeblock]\n" "请注意第二行如何省略封闭引号,因为它不包含分隔符。然而它[i]可以[/i]很好地使用" "引号,它只是为了演示目的而没有编写。第三行必须使用 [code]\"\"[/code] 来表示每" "个需要被解释为引号的引号,而不是文本值的结束。" #: doc/classes/File.xml msgid "Returns the next 64 bits from the file as a floating-point number." msgstr "将文件中接下来的 64 位作为浮点数返回。" #: doc/classes/File.xml msgid "" "Returns the last error that happened when trying to perform operations. " "Compare with the [code]ERR_FILE_*[/code] constants from [enum Error]." msgstr "" "返回试图执行操作时发生的最后一个错误。请与 [enum Error] 中的 " "[code]ERR_FILE_*[/code] 常量比较。" #: doc/classes/File.xml msgid "Returns the next 32 bits from the file as a floating-point number." msgstr "将文件中接下来的 32 位作为浮点数返回。" #: doc/classes/File.xml msgid "Returns the size of the file in bytes." msgstr "返回该文件的大小,单位为字节。" #: doc/classes/File.xml msgid "" "Returns the next line of the file as a [String].\n" "Text is interpreted as being UTF-8 encoded." msgstr "" "将文件中的下一行作为 [String] 字符串返回。\n" "将按照 UTF-8 编码解析文本。" #: doc/classes/File.xml msgid "" "Returns an MD5 String representing the file at the given path or an empty " "[String] on failure." msgstr "返回一个给定路径文件的MD5字符串,如果失败则返回一个空的[String]。" #: doc/classes/File.xml msgid "" "Returns the last time the [code]file[/code] was modified in unix timestamp " "format or returns a [String] \"ERROR IN [code]file[/code]\". This unix " "timestamp can be converted to datetime by using [method OS." "get_datetime_from_unix_time]." msgstr "" "返回unix格式的时间戳[code]file[/code]为文件的最后修改时间,或者返回一个" "[String]\"ERROR IN [code]file[/code]\"。这个unix时间戳可以通过使用[method OS." "get_datetime_from_unix_time]转换为数据时间。" #: doc/classes/File.xml msgid "" "Returns a [String] saved in Pascal format from the file.\n" "Text is interpreted as being UTF-8 encoded." msgstr "" "返回文件中按照 Pascal 格式保存的 [String] 字符串。\n" "将按照 UTF-8 编码解析文本。" #: doc/classes/File.xml msgid "Returns the path as a [String] for the current open file." msgstr "返回当前打开的文件的路径为[String]。" #: doc/classes/File.xml msgid "Returns the absolute path as a [String] for the current open file." msgstr "返回当前打开的文件的绝对路径为[String]。" #: doc/classes/File.xml msgid "Returns the file cursor's position." msgstr "返回文件光标的位置。" #: doc/classes/File.xml msgid "Returns the next bits from the file as a floating-point number." msgstr "将文件中接下来的若干位以浮点数形式返回。" #: doc/classes/File.xml msgid "" "Returns a SHA-256 [String] representing the file at the given path or an " "empty [String] on failure." msgstr "" "返回一个给定路径的文件的 SHA-256 字符串,如果失败则返回一个空的 [String]。" #: doc/classes/File.xml msgid "" "Returns the next [Variant] value from the file. If [code]allow_objects[/" "code] is [code]true[/code], decoding objects is allowed.\n" "[b]Warning:[/b] Deserialized objects can contain code which gets executed. " "Do not use this option if the serialized object comes from untrusted sources " "to avoid potential security threats such as remote code execution." msgstr "" "返回文件中的下一个 [Variant] 值。[code]allow_objects[/code] 为 [code]true[/" "code] 时允许对对象进行解码。\n" "[b]警告:[/b]反序列化得到的对象可能包含被执行的代码。如果序列化的对象来自不受" "信任的来源,请不要使用这个选项,以避免潜在的安全威胁,如远程代码执行。" #: doc/classes/File.xml msgid "Returns [code]true[/code] if the file is currently opened." msgstr "如果文件当前被打开,返回 [code]true[/code]。" #: doc/classes/File.xml msgid "Opens the file for writing or reading, depending on the flags." msgstr "打开文件进行写入或读取,取决于标志。" #: doc/classes/File.xml msgid "" "Opens a compressed file for reading or writing.\n" "[b]Note:[/b] [method open_compressed] can only read files that were saved by " "Godot, not third-party compression formats. See [url=https://github.com/" "godotengine/godot/issues/28999]GitHub issue #28999[/url] for a workaround." msgstr "" "打开压缩文件进行读取或写入。\n" "[b]注意:[/b][method open_compressed] 只能读取Godot保存的文件,不能读取第三方" "压缩格式。有关解决方法,请参阅 [url=https://github.com/godotengine/godot/" "issues/28999] GitHub 问题 #28999[/url]。" #: doc/classes/File.xml msgid "" "Opens an encrypted file in write or read mode. You need to pass a binary key " "to encrypt/decrypt it.\n" "[b]Note:[/b] The provided key must be 32 bytes long." msgstr "" "以写或读的模式打开一个加密文件。你需要传递一个二进制密钥来加密/解密它。\n" "[b]注意:[/b]提供的密钥必须是32字节长。" #: doc/classes/File.xml msgid "" "Opens an encrypted file in write or read mode. You need to pass a password " "to encrypt/decrypt it." msgstr "以写或读的方式打开一个加密的文件。你需要传递一个密码来加密/解密它。" #: doc/classes/File.xml msgid "" "Changes the file reading/writing cursor to the specified position (in bytes " "from the beginning of the file)." msgstr "将文件的读/写光标改变到指定的位置(从文件开始的字节数)。" #: doc/classes/File.xml msgid "" "Changes the file reading/writing cursor to the specified position (in bytes " "from the end of the file).\n" "[b]Note:[/b] This is an offset, so you should use negative numbers or the " "cursor will be at the end of the file." msgstr "" "将文件的读/写光标改变到指定的位置(从文件的末端算起,以字节为单位)。\n" "[b]注意:[/b]这是一个偏移量,所以你应该使用负数,否则光标会在文件的末端。" #: doc/classes/File.xml msgid "" "Stores an integer as 16 bits in the file.\n" "[b]Note:[/b] The [code]value[/code] should lie in the interval [code][0, " "2^16 - 1][/code]. Any other value will overflow and wrap around.\n" "To store a signed integer, use [method store_64] or store a signed integer " "from the interval [code][-2^15, 2^15 - 1][/code] (i.e. keeping one bit for " "the signedness) and compute its sign manually when reading. For example:\n" "[codeblock]\n" "const MAX_15B = 1 << 15\n" "const MAX_16B = 1 << 16\n" "\n" "func unsigned16_to_signed(unsigned):\n" " return (unsigned + MAX_15B) % MAX_16B - MAX_15B\n" "\n" "func _ready():\n" " var f = File.new()\n" " f.open(\"user://file.dat\", File.WRITE_READ)\n" " f.store_16(-42) # This wraps around and stores 65494 (2^16 - 42).\n" " f.store_16(121) # In bounds, will store 121.\n" " f.seek(0) # Go back to start to read the stored value.\n" " var read1 = f.get_16() # 65494\n" " var read2 = f.get_16() # 121\n" " var converted1 = unsigned16_to_signed(read1) # -42\n" " var converted2 = unsigned16_to_signed(read2) # 121\n" "[/codeblock]" msgstr "" "将一个整数以 16 位形式存储在文件中。\n" "[b]注意:[/b][code]value[/code] 应该位于 [code][0, 2^16 - 1][/code] 区间内。" "任何其他的值都会溢出并进行环绕。\n" "要存储有符号的整数,请使用 [method store_64] 或者从区间 [code][-2^15, 2^15 - " "1][/code] 中存储一个有符号的整数(即保留一位作为有符号),在读取时手动计算其" "符号。比如说\n" "[codeblock]\n" "const MAX_15B = 1 << 15\n" "const MAX_16B = 1 << 16\n" "\n" "func unsigned16_to_signed(unsigned):\n" " return (unsigned + MAX_15B) % MAX_16B - MAX_15B\n" "\n" "func _ready():\n" " var f = File.new()\n" " f.open(\"user://file.dat\", File.WRITE_READ)\n" " f.store_16(-42) # 会进行环绕,保存的是 65494 (2^16 - 42)。\n" " f.store_16(121) # 在范围内,会保存 121。\n" " f.seek(0) # 返回开头读取保存的值。\n" " var read1 = f.get_16() # 65494\n" " var read2 = f.get_16() # 121\n" " var converted1 = unsigned16_to_signed(read1) # -42\n" " var converted2 = unsigned16_to_signed(read2) # 121\n" "[/codeblock]" #: doc/classes/File.xml msgid "" "Stores an integer as 32 bits in the file.\n" "[b]Note:[/b] The [code]value[/code] should lie in the interval [code][0, " "2^32 - 1][/code]. Any other value will overflow and wrap around.\n" "To store a signed integer, use [method store_64], or convert it manually " "(see [method store_16] for an example)." msgstr "" "将一个整数以 32 位形式存储在文件中。\n" "[b]注意:[/b][code]value[/code] 应该位于 [code][0, 2^32 - 1][/code] 区间内。" "任何其他的值都会溢出并环绕。\n" "要存储有符号的整数,请使用 [method store_64],或者手动转换(见 [method " "store_16] 的例子)。" #: doc/classes/File.xml msgid "" "Stores an integer as 64 bits in the file.\n" "[b]Note:[/b] The [code]value[/code] must lie in the interval [code][-2^63, " "2^63 - 1][/code] (i.e. be a valid [int] value)." msgstr "" "将一个整数以 64 位形式存储在文件中。\n" "[b]注意:[/b][code]value[/code] 必须位于 [code][-2^63, 2^63 - 1][/code] 的区" "间内(即有效的 [int] 值)。" #: doc/classes/File.xml msgid "" "Stores an integer as 8 bits in the file.\n" "[b]Note:[/b] The [code]value[/code] should lie in the interval [code][0, 255]" "[/code]. Any other value will overflow and wrap around.\n" "To store a signed integer, use [method store_64], or convert it manually " "(see [method store_16] for an example)." msgstr "" "将一个整数以 8 位形式存储在文件中。\n" "[b]注意:[/b][code]value[/code] 应该位于 [code][0, 255][/code] 的区间内。任何" "其他的值都会溢出并环绕。\n" "要存储有符号的整数,请使用 [method store_64],或者手动转换(见 [method " "store_16] 的例子)。" #: doc/classes/File.xml msgid "Stores the given array of bytes in the file." msgstr "在文件中存储给定的字节数组。" #: doc/classes/File.xml msgid "" "Store the given [PoolStringArray] in the file as a line formatted in the CSV " "(Comma-Separated Values) format. You can pass a different delimiter " "[code]delim[/code] to use other than the default [code]\",\"[/code] (comma). " "This delimiter must be one-character long.\n" "Text will be encoded as UTF-8." msgstr "" "将给定的 [PoolStringArray] 作为 CSV(逗号分隔值)格式的行存储在文件中。您可以" "传递不同的分隔符 [code]delim[/code] 以使用默认 [code]\",\"[/code](逗号)以外" "的其他分隔符。此分隔符的长度必须为一个字符。\n" "将使用 UTF-8 编码文本。" #: doc/classes/File.xml msgid "Stores a floating-point number as 64 bits in the file." msgstr "将一个浮点数以 64 位形式存储在文件中。" #: doc/classes/File.xml msgid "Stores a floating-point number as 32 bits in the file." msgstr "将一个浮点数以 32 位形式存储在文件中。" #: doc/classes/File.xml msgid "" "Appends [code]line[/code] to the file followed by a line return character " "([code]\\n[/code]), encoding the text as UTF-8." msgstr "" "将 [code]line[/code] 附加到文件后跟一个行返回字符 ([code]\\n[/code]),将文本" "编码为 UTF-8。" #: doc/classes/File.xml msgid "" "Stores the given [String] as a line in the file in Pascal format (i.e. also " "store the length of the string).\n" "Text will be encoded as UTF-8." msgstr "" "将给定的[String]以Pascal格式存储在文件中(例如,也将字符串长度存储)。\n" "文本将被编码为UTF-8。" #: doc/classes/File.xml msgid "Stores a floating-point number in the file." msgstr "将浮点数存储在文件中。" #: doc/classes/File.xml msgid "" "Appends [code]string[/code] to the file without a line return, encoding the " "text as UTF-8.\n" "[b]Note:[/b] This method is intended to be used to write text files. The " "string is stored as a UTF-8 encoded buffer without string length or " "terminating zero, which means that it can't be loaded back easily. If you " "want to store a retrievable string in a binary file, consider using [method " "store_pascal_string] instead. For retrieving strings from a text file, you " "can use [code]get_buffer(length).get_string_from_utf8()[/code] (if you know " "the length) or [method get_as_text]." msgstr "" "将 [code]string[/code] 字符串追加到文件中,不带换行,文本将被编码为 UTF-8。\n" "[b]注意:[/b]本方法是为写入文本文件准备的。字符串会被存储为 UTF-8 编码的缓冲" "区,不带字符串长度或末尾零,所以无法轻易读回。如果你想要在二进制文件中存储可" "取回的字符串,请考虑换用 [method store_pascal_string]。要从文本文件中获取字符" "串,你可以使用 [code]get_buffer(length).get_string_from_utf8()[/code](需要已" "知长度)或 [method get_as_text]。" #: doc/classes/File.xml msgid "" "Stores any Variant value in the file. If [code]full_objects[/code] is " "[code]true[/code], encoding objects is allowed (and can potentially include " "code).\n" "[b]Note:[/b] Not all properties are included. Only properties that are " "configured with the [constant PROPERTY_USAGE_STORAGE] flag set will be " "serialized. You can add a new usage flag to a property by overriding the " "[method Object._get_property_list] method in your class. You can also check " "how property usage is configured by calling [method Object." "_get_property_list]. See [enum PropertyUsageFlags] for the possible usage " "flags." msgstr "" "在文件中存储任何 Variant 变量值。如果 [code]full_objects[/code] 是 " "[code]true[/code],则允许编码对象(并且可能包含代码)。\n" "[b]注意:[/b]并非所有属性都包括在内。只有使用 [constant " "PROPERTY_USAGE_STORAGE] 标志集配置的属性才会被序列化。您可以通过覆盖类中的 " "[method Object._get_property_list] 方法向属性添加新的使用标志。您还可以通过调" "用 [method Object._get_property_list] 来检查属性使用是如何配置的。有关可能的" "使用标志,请参阅 [enum PropertyUsageFlags]。" #: doc/classes/File.xml msgid "" "If [code]true[/code], the file is read with big-endian [url=https://en." "wikipedia.org/wiki/Endianness]endianness[/url]. If [code]false[/code], the " "file is read with little-endian endianness. If in doubt, leave this to " "[code]false[/code] as most files are written with little-endian endianness.\n" "[b]Note:[/b] [member endian_swap] is only about the file format, not the CPU " "type. The CPU endianness doesn't affect the default endianness for files " "written.\n" "[b]Note:[/b] This is always reset to [code]false[/code] whenever you open " "the file. Therefore, you must set [member endian_swap] [i]after[/i] opening " "the file, not before." msgstr "" "为 [code]true[/code] 时文件以大端[url=https://zh.wikipedia.org/wiki/" "%E5%AD%97%E8%8A%82%E5%BA%8F]字节序[/url]读取。为 [code]false[/code] 时文件以" "小端字节序读取。如果不确定,请将其保留为 [code]false[/code],因为大多数文件都" "是以小端字节序编写的。\n" "[b]注意:[/b][member endian_swap] 只是文件格式,与 CPU 类型无关。 CPU 字节序" "不会影响写入文件的默认字节序。\n" "[b]注意:[/b]每当您打开文件时,它总是重置为 [code]false[/code]。因此,必须在" "[i]打开文件之后[/i]设置 [member endian_swap],而不是之前。" #: doc/classes/File.xml msgid "" "Opens the file for read operations. The cursor is positioned at the " "beginning of the file." msgstr "打开文件进行读取操作。光标位于文件的开头。" #: doc/classes/File.xml msgid "" "Opens the file for write operations. The file is created if it does not " "exist, and truncated if it does." msgstr "打开文件进行写操作。如果文件不存在,则创建该文件,如果存在则截断。" #: doc/classes/File.xml msgid "" "Opens the file for read and write operations. Does not truncate the file. " "The cursor is positioned at the beginning of the file." msgstr "打开文件用于读写操作。不截断文件。光标位于文件的开头。" #: doc/classes/File.xml msgid "" "Opens the file for read and write operations. The file is created if it does " "not exist, and truncated if it does. The cursor is positioned at the " "beginning of the file." msgstr "" "打开文件进行读写操作。如果文件不存在,则创建该文件,如果存在则截断。光标位于" "文件的开头。" #: doc/classes/File.xml msgid "Uses the [url=http://fastlz.org/]FastLZ[/url] compression method." msgstr "使用 [url=http://fastlz.org/]FastLZ[/url] 压缩方法。" #: doc/classes/File.xml msgid "" "Uses the [url=https://en.wikipedia.org/wiki/DEFLATE]DEFLATE[/url] " "compression method." msgstr "" "使用 [url=https://en.wikipedia.org/wiki/DEFLATE]DEFLATE[/url] 压缩方法。" #: doc/classes/File.xml msgid "" "Uses the [url=https://facebook.github.io/zstd/]Zstandard[/url] compression " "method." msgstr "使用 [url=https://facebook.github.io/zstd/]Zstandard[/url] 压缩方法。" #: doc/classes/File.xml msgid "Uses the [url=https://www.gzip.org/]gzip[/url] compression method." msgstr "使用 [url=https://www.gzip.org/]gzip[/url] 压缩方法。" #: doc/classes/FileDialog.xml msgid "Dialog for selecting files or directories in the filesystem." msgstr "用于选择文件系统中的文件或目录的对话框。" #: doc/classes/FileDialog.xml msgid "" "FileDialog is a preset dialog used to choose files and directories in the " "filesystem. It supports filter masks. The FileDialog automatically sets its " "window title according to the [member mode]. If you want to use a custom " "title, disable this by setting [member mode_overrides_title] to [code]false[/" "code]." msgstr "" "FileDialog 是用于在文件系统中选择文件和目录的预设对话框。它支持过滤器掩码。文" "件对话框会根据 [member mode] 自动设置其窗口标题。如果您要使用自定义标题,请" "将 [member mode_overrides_title] 设置为 [code]false[/code] 来禁用此标题。" #: doc/classes/FileDialog.xml msgid "" "Adds [code]filter[/code] to the list of filters, which restricts what files " "can be picked.\n" "A [code]filter[/code] should be of the form [code]\"filename.extension ; " "Description\"[/code], where filename and extension can be [code]*[/code] to " "match any string. Filters starting with [code].[/code] (i.e. empty " "filenames) are not allowed.\n" "Example filters: [code]\"*.png ; PNG Images\"[/code], [code]\"project." "godot ; Godot Project\"[/code]." msgstr "" "将过滤器 [code]filter[/code] 加入过滤器列表,用于限制可选择的文件。\n" "[code]filter[/code] 应该是 [code]\"文件名.扩展名 ; 描述\"[/code] 的形式,文件" "名和扩展名都可以是 [code]*[/code],匹配任意字符串。不允许过滤器以 [code].[/" "code] 开头(即空文件名)。\n" "示例过滤器:[code]\"*.png ; PNG 图片\"[/code], [code]\"project.godot ; Godot " "项目\"[/code]。" #: doc/classes/FileDialog.xml msgid "Clear all the added filters in the dialog." msgstr "清除对话框中所有添加的过滤器。" #: doc/classes/FileDialog.xml msgid "Clear currently selected items in the dialog." msgstr "清除对话框中当前选择的项目。" #: doc/classes/FileDialog.xml msgid "" "Returns the LineEdit for the selected file.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回所选文件的 LineEdit。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果您希望隐" "藏它或其任何子项,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/FileDialog.xml msgid "" "Returns the vertical box container of the dialog, custom controls can be " "added to it.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回对话框的垂直框容器,可以向其中添加自定义控件。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果您希望隐" "藏它或其任何子项,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/FileDialog.xml msgid "Invalidate and update the current dialog content list." msgstr "使当前对话框内容列表无效并更新。" #: doc/classes/FileDialog.xml msgid "" "The file system access scope. See enum [code]Access[/code] constants.\n" "[b]Warning:[/b] Currently, in sandboxed environments such as HTML5 builds or " "sandboxed macOS apps, FileDialog cannot access the host file system. See " "[url=https://github.com/godotengine/godot-proposals/issues/1123]godot-" "proposals#1123[/url]." msgstr "" "文件系统的访问范围。见枚举 [code]Access[/code] 常量。\n" "[b]警告:[/b]目前,在沙盒环境下,如 HTML5 构建或沙盒的 macOS 应用程序," "FileDialog 不能访问主机文件系统。参见 [url=https://github.com/godotengine/" "godot-proposals/issues/1123]godot-proposals#1123[/url]。" #: doc/classes/FileDialog.xml msgid "The current working directory of the file dialog." msgstr "文件对话框的当前工作目录。" #: doc/classes/FileDialog.xml msgid "The currently selected file of the file dialog." msgstr "文件对话框的当前选定的文件。" #: doc/classes/FileDialog.xml msgid "The currently selected file path of the file dialog." msgstr "当前选择的文件对话框的文件路径。" #: doc/classes/FileDialog.xml msgid "" "The available file type filters. For example, this shows only [code].png[/" "code] and [code].gd[/code] files: [code]set_filters(PoolStringArray([\"*." "png ; PNG Images\",\"*.gd ; GDScript Files\"]))[/code]. Multiple file types " "can also be specified in a single filter. [code]\"*.png, *.jpg, *.jpeg ; " "Supported Images\"[/code] will show both PNG and JPEG files when selected." msgstr "" "可用的文件类型过滤器。例如,这仅显示 [code].png[/code] 和 [code].gd[/code] 文" "件: [code]set_filters(PoolStringArray([\"*.png ; PNG Images\", \"*.gd ; " "GDScript Files\" ]))[/code]。单个过滤器中也可以指定多个文件类型。选中 " "[code]\"*.png, *.jpg, *.jpeg ; Supported Images\"[/code] 后会 PNG 和 JPEG 文" "件都会显示。" #: doc/classes/FileDialog.xml msgid "" "The dialog's open or save mode, which affects the selection behavior. See " "enum [code]Mode[/code] constants." msgstr "" "对话框的打开或保存模式,这会影响选择行为。请参阅枚举 [code]Mode[/code] 常量。" #: doc/classes/FileDialog.xml msgid "" "If [code]true[/code], changing the [code]Mode[/code] property will set the " "window title accordingly (e.g. setting mode to [constant MODE_OPEN_FILE] " "will change the window title to \"Open a File\")." msgstr "" "如果 [code]true[/code],更改 [code]Mode[/code] 属性将相应地设置窗口标题(例" "如,将模式设置为 [constant MODE_OPEN_FILE] 会将窗口标题更改为“打开文件”)。" #: doc/classes/FileDialog.xml msgid "If [code]true[/code], the dialog will show hidden files." msgstr "如果[code]true[/code],对话框将显示出隐藏文件。" #: doc/classes/FileDialog.xml msgid "Emitted when the user selects a directory." msgstr "当用户选择一个目录时触发的。" #: doc/classes/FileDialog.xml msgid "" "Emitted when the user selects a file by double-clicking it or pressing the " "[b]OK[/b] button." msgstr "当用户通过双击文件或按[b]确定[/b]按钮选择一个文件时触发。" #: doc/classes/FileDialog.xml msgid "Emitted when the user selects multiple files." msgstr "当用户选择多个文件时触发。" #: doc/classes/FileDialog.xml msgid "The dialog allows selecting one, and only one file." msgstr "该对话框只允许选择一个文件。" #: doc/classes/FileDialog.xml msgid "The dialog allows selecting multiple files." msgstr "该对话框允许选择多个文件。" #: doc/classes/FileDialog.xml msgid "" "The dialog only allows selecting a directory, disallowing the selection of " "any file." msgstr "该对话框只允许选择一个目录,不允许选择任何文件。" #: doc/classes/FileDialog.xml msgid "The dialog allows selecting one file or directory." msgstr "该对话框允许选择一个文件或目录。" #: doc/classes/FileDialog.xml msgid "The dialog will warn when a file exists." msgstr "当文件存在时,对话框会发出警告。" #: doc/classes/FileDialog.xml msgid "" "The dialog only allows accessing files under the [Resource] path " "([code]res://[/code])." msgstr "该对话框只允许访问[Resource]路径下的文件([code]res://[/code])。" #: doc/classes/FileDialog.xml msgid "" "The dialog only allows accessing files under user data path ([code]user://[/" "code])." msgstr "该对话框只允许访问用户数据路径([code]user://[/code])下的文件。" #: doc/classes/FileDialog.xml msgid "The dialog allows accessing files on the whole file system." msgstr "该对话框允许访问文件系统上的文件。" #: doc/classes/FileDialog.xml msgid "The color modulation applied to the file icon." msgstr "应用于文件图标的颜色调制。" #: doc/classes/FileDialog.xml msgid "" "The color tint for disabled files (when the [FileDialog] is used in open " "folder mode)." msgstr "禁用文件的色调(当[FileDialog]在打开文件夹模式下使用时)。" #: doc/classes/FileDialog.xml msgid "The color modulation applied to the folder icon." msgstr "应用于文件夹图标的颜色调制。" #: doc/classes/FileDialog.xml msgid "Custom icon for files." msgstr "文件的自定义图标。" #: doc/classes/FileDialog.xml msgid "Custom icon for folders." msgstr "文件夹的自定义图标。" #: doc/classes/FileDialog.xml msgid "Custom icon for the parent folder arrow." msgstr "父文件夹箭头的自定义图标。" #: doc/classes/FileDialog.xml msgid "Custom icon for the reload button." msgstr "重新加载按钮的自定义图标。" #: doc/classes/FileDialog.xml msgid "Custom icon for the toggle hidden button." msgstr "切换隐藏按钮的自定义图标。" #: doc/classes/float.xml msgid "Float built-in type." msgstr "浮点数内置类型。" #: doc/classes/float.xml msgid "" "The [float] built-in type is a 64-bit double-precision floating-point " "number, equivalent to [code]double[/code] in C++. This type has 14 reliable " "decimal digits of precision. The [float] type can be stored in [Variant], " "which is the generic type used by the engine. The maximum value of [float] " "is approximately [code]1.79769e308[/code], and the minimum is approximately " "[code]-1.79769e308[/code].\n" "Most methods and properties in the engine use 32-bit single-precision " "floating-point numbers instead, equivalent to [code]float[/code] in C++, " "which have 6 reliable decimal digits of precision. For data structures such " "as [Vector2] and [Vector3], Godot uses 32-bit floating-point numbers.\n" "Math done using the [float] type is not guaranteed to be exact or " "deterministic, and will often result in small errors. You should usually use " "the [method @GDScript.is_equal_approx] and [method @GDScript.is_zero_approx] " "methods instead of [code]==[/code] to compare [float] values for equality." msgstr "" "[float] 内置类型是 64 位双精度浮点数,相当于 C++ 中的 [code]double[/code]。这" "个类型有 14 个可靠的十进制小数位精度。可以把 [float] 类型存储在引擎所使用的通" "用类型 [Variant] 中。[float] 的最大值约为 [code]1.79769e308[/code],最小值约" "为 [code]-1.79769e308[/code]。\n" "不过引擎中的大多数方法和属性使用的都是 32 位单精度浮点数,相当于 C++ 中的 " "[code]float[/code],有 6 位可靠的十进制小数位精度。Godot 在 [Vector2] 和 " "[Vector3] 等数据结构中使用 32 位浮点数。\n" "使用 [float] 类型进行的数学运算无法保证精确或确定,经常会产生较小的误差。你通" "常应该使用 [method @GDScript.is_equal_approx] 和 [method @GDScript." "is_zero_approx] 方法来比较两个 [float] 的值是否相等,不应该用 [code]==[/" "code]。" #: doc/classes/float.xml msgid "Wikipedia: Double-precision floating-point format" msgstr "维基百科:双精度浮点数格式" #: doc/classes/float.xml msgid "Wikipedia: Single-precision floating-point format" msgstr "维基百科:单精度浮点数格式" #: doc/classes/float.xml msgid "" "Cast a [bool] value to a floating-point value, [code]float(true)[/code] will " "be equal to 1.0 and [code]float(false)[/code] will be equal to 0.0." msgstr "" "将 [bool] 值转换为浮点值,[code]float(true)[/code] 将等于 1.0," "[code]float(false)[/code] 将等于 0.0。" #: doc/classes/float.xml msgid "" "Cast an [int] value to a floating-point value, [code]float(1)[/code] will be " "equal to 1.0." msgstr "将 [int] 值转换为浮点值,[code]float(1)[/code] 将等于 1.0。" #: doc/classes/float.xml msgid "" "Cast a [String] value to a floating-point value. This method accepts float " "value strings like [code]\"1.23\"[/code] and exponential notation strings " "for its parameter so calling [code]float(\"1e3\")[/code] will return 1000.0 " "and calling [code]float(\"1e-3\")[/code] will return 0.001. Calling this " "method with an invalid float string will return 0. This method stops parsing " "at the first invalid character and will return the parsed result so far, so " "calling [code]float(\"1a3\")[/code] will return 1 while calling " "[code]float(\"1e3a2\")[/code] will return 1000.0." msgstr "" "将 [String] 值转换为浮点值。这个方法的参数接受类似 [code]\"1.23\"[/code] 的浮" "点数字符串,以及指数符号字符串,所以调用 [code]float(\"1e3\")[/code] 将返回 " "1000.0,调用 [code]float(\"1e-3\")[/code] 将返回 0.001。使用无效的浮点数字符" "串调用这个方法将返回 0。该方法会在第一个无效字符处停止解析并返回到目前为止的" "解析结果,因此调用 [code]float(\"1a3\")[/code] 将返回1,而调用 " "[code]float(\"1e3a2\")[/code] 将返回 1000.0。" #: doc/classes/FlowContainer.xml msgid "Base class for flow containers." msgstr "流式容器的基类。" #: doc/classes/FlowContainer.xml msgid "" "Arranges child [Control] nodes vertically or horizontally in a left-to-right " "or top-to-bottom flow.\n" "A line is filled with [Control] nodes until no more fit on the same line, " "similar to text in an autowrapped label." msgstr "" "将子 [Control] 节点垂直或水平排列,按照从左到右或从上到下的顺序换行。\n" "同一行中无法再容纳更多 [Control] 节点时会另起一行,与自动换行标签中的文本类" "似。" #: doc/classes/FlowContainer.xml msgid "Returns the current line count." msgstr "返回当前的行数。" #: doc/classes/Font.xml msgid "Internationalized font and text drawing support." msgstr "国际化的字体和文本绘制支持。" #: doc/classes/Font.xml msgid "" "Font contains a Unicode-compatible character set, as well as the ability to " "draw it with variable width, ascent, descent and kerning. For creating fonts " "from TTF files (or other font formats), see the editor support for fonts.\n" "[b]Note:[/b] If a [DynamicFont] doesn't contain a character used in a " "string, the character in question will be replaced with codepoint " "[code]0xfffd[/code] if it's available in the [DynamicFont]. If this " "replacement character isn't available in the DynamicFont, the character will " "be hidden without displaying any replacement character in the string.\n" "[b]Note:[/b] If a [BitmapFont] doesn't contain a character used in a string, " "the character in question will be hidden without displaying any replacement " "character in the string.\n" "[b]Note:[/b] Unicode characters after [code]0xffff[/code] (such as most " "emoji) are [i]not[/i] supported on Windows. They will display as unknown " "characters instead. This will be resolved in Godot 4.0." msgstr "" "字体包含一个与 Unicode 兼容的字符集,并且提供使用不同宽度(width)、升部" "(ascent)、降部(descent) 和字偶距(kerning)进行绘制的能力。关于从 TTF 文" "件(或其他字体格式)创建字体,请参见编辑器对字体的支持。\n" "[b]注意:[/b]当 [DynamicFont] 中不包含字符串中所使用的某个字符时,将使用码位 " "[code]0xfffd[/code] 去替换该字符,如果这个替换字符在 DynamicFont 中也不可用," "该字符将被隐藏,不在字符串中显示任何替换字符。\n" "[b]注意:[/b]当 [BitmapFont] 中不包含字符串中所使用的某个字符,该字符将被隐" "藏,不在字符串中显示任何替换字符。\n" "[b]注意:[/b]Windows 上[i]不支持[/i] [code]0xffff[/code] 之后的 Unicode 字符" "(如大多数表情符号)。它们将显示为未知字符。这个问题将在 Godot 4.0 中得到解" "决。" #: doc/classes/Font.xml msgid "" "Draw [code]string[/code] into a canvas item using the font at a given " "position, with [code]modulate[/code] color, and optionally clipping the " "width. [code]position[/code] specifies the baseline, not the top. To draw " "from the top, [i]ascent[/i] must be added to the Y axis.\n" "See also [method CanvasItem.draw_string]." msgstr "" "在给定位置使用字体将[code]string[/code]绘制到画布项目中,并使用" "[code]modulate[/code]颜色,并可以选择裁剪宽度。 [code]position[/code]指定基" "线,而不是顶部。要从顶部绘制,必须在 Y 轴上添加[i]升部[/i]。\n" "另请参阅 [method CanvasItem.draw_string]。" #: doc/classes/Font.xml msgid "" "Draw character [code]char[/code] into a canvas item using the font at a " "given position, with [code]modulate[/code] color, and optionally kerning if " "[code]next[/code] is passed. clipping the width. [code]position[/code] " "specifies the baseline, not the top. To draw from the top, [i]ascent[/i] " "must be added to the Y axis. The width used by the character is returned, " "making this function useful for drawing strings character by character." msgstr "" "使用字体在画布项目的指定位置绘制字符 [code]char[/code],使用的颜色是 " "[code]modulate[/code],并且会根据宽度做裁剪,如果传入了 [code]next[/code] 还" "会利用到字偶距。[code]position[/code] 指定的是基线,而不是顶部。要从顶部绘" "制,必须在 Y 轴上加上[i]字体的升部大小[/i]。该函数返回的是字符所使用的宽度," "因此用来逐字符绘制字符串非常方便。" #: doc/classes/Font.xml msgid "Returns the font ascent (number of pixels above the baseline)." msgstr "返回字体的上升幅度(超出基线的像素数)。" #: doc/classes/Font.xml msgid "" "Returns outline contours of the glyph as a [code]Dictionary[/code] with the " "following contents:\n" "[code]points[/code] - [PoolVector3Array], containing outline points. " "[code]x[/code] and [code]y[/code] are point coordinates. [code]z[/code] is " "the type of the point, using the [enum ContourPointTag] values.\n" "[code]contours[/code] - [PoolIntArray], containing indices the end " "points of each contour.\n" "[code]orientation[/code] - [bool], contour orientation. If [code]true[/" "code], clockwise contours must be filled." msgstr "" "返回该字形的描边轮廓,是包含下列内容的 [code]Dictionary[/code]:\n" "[code]points[/code] - [PoolVector3Array],包含轮廓点。[code]x[/code] " "和 [code]y[/code] 是点的坐标。[code]z[/code] 是该点的类型,使用的是 [enum " "ContourPointTag] 中的值。\n" "[code]contours[/code] - [PoolIntArray],包含各个轮廓点的索引。\n" "[code]orientation[/code] - [bool],轮廓朝向。为 [code]true[/code] 时必须填" "充顺时针轮廓。" #: doc/classes/Font.xml msgid "" "Returns the size of a character, optionally taking kerning into account if " "the next character is provided. Note that the height returned is the font " "height (see [method get_height]) and has no relation to the glyph height." msgstr "" "返回指定字符的大小,如果提供了下一个字符,还会将字偶距考虑在内。注意,返回的" "高度是字体高度(见 [method get_height]),与该字形的高度没有关系。" #: doc/classes/Font.xml msgid "Returns resource id of the cache texture containing the char." msgstr "返回包含该字符的缓存纹理的资源 ID。" #: doc/classes/Font.xml msgid "Returns size of the cache texture containing the char." msgstr "返回包含该字符的缓存纹理的大小。" #: doc/classes/Font.xml msgid "Returns char offset from the baseline." msgstr "返回相对于基线的字符偏移。" #: doc/classes/Font.xml msgid "Returns size of the char." msgstr "返回该字符的大小。" #: doc/classes/Font.xml msgid "Returns rectangle in the cache texture containing the char." msgstr "返回包含该字符的缓存纹理的矩形区域。" #: doc/classes/Font.xml msgid "Returns the font descent (number of pixels below the baseline)." msgstr "返回字体的减少量(低于基线的像素数)。" #: doc/classes/Font.xml msgid "Returns the total font height (ascent plus descent) in pixels." msgstr "返回总体字体的高度(增加和减少),单位是像素。" #: doc/classes/Font.xml msgid "" "Returns the size of a string, taking kerning and advance into account. Note " "that the height returned is the font height (see [method get_height]) and " "has no relation to the string." msgstr "" "返回指定字符串的大小,并考虑到字偶距和前进量。注意,返回的高度是字体高度(见 " "[method get_height]),与该字符串没有关系。" #: doc/classes/Font.xml msgid "" "Returns the size that the string would have with word wrapping enabled with " "a fixed [code]width[/code]." msgstr "返回字符串在启用固定宽度 [code]width[/code] 的自动换行后的大小。" #: doc/classes/Font.xml msgid "Returns [code]true[/code] if the font has an outline." msgstr "如果字体有轮廓,则返回 [code]true[/code]。" #: doc/classes/Font.xml msgid "" "After editing a font (changing size, ascent, char rects, etc.). Call this " "function to propagate changes to controls that might use it." msgstr "" "在编辑一个字体后(改变大小、升部、字框等)。调用这个函数,将变化传播给可能使" "用它的控件。" #: doc/classes/Font.xml msgid "Contour point is on the curve." msgstr "轮廓点在曲线上。" #: doc/classes/Font.xml msgid "" "Contour point isn't on the curve, but serves as a control point for a conic " "(quadratic) Bézier arc." msgstr "轮廓点不在曲线上,而是作为圆锥(二次)贝塞尔曲线的控制点。" #: doc/classes/Font.xml msgid "" "Contour point isn't on the curve, but serves as a control point for a cubic " "Bézier arc." msgstr "轮廓点不在曲线上,而是作为三次贝塞尔曲线的控制点。" #: doc/classes/FuncRef.xml msgid "Reference to a function in an object." msgstr "对一个对象中的一个函数的引用。" #: doc/classes/FuncRef.xml msgid "" "In GDScript, functions are not [i]first-class objects[/i]. This means it is " "impossible to store them directly as variables, return them from another " "function, or pass them as arguments.\n" "However, by creating a [FuncRef] using the [method @GDScript.funcref] " "function, a reference to a function in a given object can be created, passed " "around and called." msgstr "" "在GDScript中,函数不是[i]第一类对象[/i]。这意味着不可能将它们直接作为变量存" "储,从另一个函数中返回,或将它们作为参数传递。\n" "然而,通过使用[method @GDScript.funcref]函数创建一个[FuncRef],可以创建、传递" "和调用给定对象中的一个函数的引用。" #: doc/classes/FuncRef.xml msgid "" "Calls the referenced function previously set in [member function] or [method " "@GDScript.funcref]." msgstr "" "调用以前设置在 [member function] 或 [method @GDScript.funcref] 中的引用函数。" #: doc/classes/FuncRef.xml msgid "" "Calls the referenced function previously set in [member function] or [method " "@GDScript.funcref]. Contrarily to [method call_func], this method does not " "support a variable number of arguments but expects all parameters to be " "passed via a single [Array]." msgstr "" "调用先前在 [member function] 或 [method @GDScript.funcref] 中设置的引用函数。" "与 [method call_func] 相反,此方法不支持可变数量的参数,但希望所有参数都通过" "单个数组形式 [Array] 传递。" #: doc/classes/FuncRef.xml msgid "Returns whether the object still exists and has the function assigned." msgstr "返回该对象是否仍然存在并被分配了该函数。" #: doc/classes/FuncRef.xml msgid "" "The object containing the referenced function. This object must be of a type " "actually inheriting from [Object], not a built-in type such as [int], " "[Vector2] or [Dictionary]." msgstr "" "包含被引用函数的对象。这个对象必须是实际继承自[Object]的类型,而不是像[int]、" "[Vector2]或[Dictionary]这样的内置类型。" #: doc/classes/FuncRef.xml msgid "The name of the referenced function." msgstr "被引用函数的名称。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "An external library containing functions or script classes to use in Godot." msgstr "一个包含函数或脚本类的外部库,可以在Godot中使用。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "A GDNative library can implement [NativeScript]s, global functions to call " "with the [GDNative] class, or low-level engine extensions through interfaces " "such as [ARVRInterfaceGDNative]. The library must be compiled for each " "platform and architecture that the project will run on." msgstr "" "GDNative 库可以实现 [NativeScript]、用 [GDNative] 类调用的全局函数或通过 " "[ARVRInterfaceGDNative] 等接口实现的低级引擎扩展。该库必须为项目将要运行的每" "个平台和架构进行编译。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "Returns paths to all dependency libraries for the current platform and " "architecture." msgstr "返回当前平台和架构的所有依赖库的路径。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "Returns the path to the dynamic library file for the current platform and " "architecture." msgstr "返回当前平台和架构的动态库文件的路径。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "This resource in INI-style [ConfigFile] format, as in [code].gdnlib[/code] " "files." msgstr "" "该资源为 INI 风格的 [ConfigFile] 格式,如 [code].gdnlib[/code] 文件中。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "If [code]true[/code], Godot loads only one copy of the library and each " "script that references the library will share static data like static or " "global variables.\n" "If [code]false[/code], Godot loads a separate copy of the library into " "memory for each script that references it." msgstr "" "为 [code]true[/code] 时 Godot 只加载一个库的副本,每个引用该库的脚本将共享静" "态数据,如静态变量或全局变量。\n" "为 [code]false[/code] 时 Godot 会为每个引用它的脚本加载一个单独的库副本到内" "存。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "If [code]true[/code], the editor will temporarily unload the library " "whenever the user switches away from the editor window, allowing the user to " "recompile the library without restarting Godot.\n" "[b]Note:[/b] If the library defines tool scripts that run inside the editor, " "[code]reloadable[/code] must be [code]false[/code]. Otherwise, the editor " "will attempt to unload the tool scripts while they're in use and crash." msgstr "" "如果[code]true[/code],每当用户离开编辑器窗口时,编辑器会暂时卸载库,允许用户" "重新编译库,而不需要重新启动Godot。\n" "[b]注意:[/b]如果库定义了在编辑器内运行的工具脚本,[code]reloadable[/code]必" "须是[code]false[/code]。否则,编辑器会在工具脚本正在使用的时候尝试卸载它们时" "而崩溃。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "If [code]true[/code], Godot loads the library at startup rather than the " "first time a script uses the library, calling [code]{prefix}" "gdnative_singleton[/code] after initializing the library (where [code]" "{prefix}[/code] is the value of [member symbol_prefix]). The library remains " "loaded as long as Godot is running.\n" "[b]Note:[/b] A singleton library cannot be [member reloadable]." msgstr "" "如果[code]true[/code],Godot会在启动时加载库,而不是在脚本第一次使用库时,在" "初始化库后调用[code]{prefix}gdnative_singleton[/code](其中[code]{prefix}[/" "code]是[member symbol_prefix]的值)。只要Godot在运行,该库就一直被加载。\n" "[b]注意:[/b]单例库不能是[member reloadable]。" #: modules/gdnative/doc_classes/GDNativeLibrary.xml msgid "" "The prefix this library's entry point functions begin with. For example, a " "GDNativeLibrary would declare its [code]gdnative_init[/code] function as " "[code]godot_gdnative_init[/code] by default.\n" "On platforms that require statically linking libraries (currently only iOS), " "each library must have a different [code]symbol_prefix[/code]." msgstr "" "这个库的入口点函数开始的前缀。例如,一个 GDNativeLibrary 默认将其 " "[code]gdnative_init[/code] 函数声明为 [code]godot_gdnative_init[/code] 。\n" "在需要静态链接库的平台上(目前只有iOS),每个库必须有一个不同的" "[code]symbol_prefix[/code]。" #: modules/gdscript/doc_classes/GDScript.xml msgid "A script implemented in the GDScript programming language." msgstr "一个用 GDScript 编程语言实现的脚本。" #: modules/gdscript/doc_classes/GDScript.xml msgid "" "A script implemented in the GDScript programming language. The script " "extends the functionality of all objects that instance it.\n" "[method new] creates a new instance of the script. [method Object." "set_script] extends an existing object, if that object's class matches one " "of the script's base classes." msgstr "" "用GDScript编程语言实现的脚本。该脚本扩展了实例化该对象后其所有对象的功能。\n" "[method new] 创建脚本的新实例。如果一个对象的类与脚本的基类之一匹配,则 " "[method Object.set_script] 会扩展该对象。" #: modules/gdscript/doc_classes/GDScript.xml msgid "Returns byte code for the script source code." msgstr "返回脚本源代码的字节(byte)码。" #: modules/gdscript/doc_classes/GDScript.xml msgid "" "Returns a new instance of the script.\n" "For example:\n" "[codeblock]\n" "var MyClass = load(\"myclass.gd\")\n" "var instance = MyClass.new()\n" "assert(instance.get_script() == MyClass)\n" "[/codeblock]" msgstr "" "返回该脚本的一个新实例化对象。\n" "举例:\n" "[codeblock]\n" "var MyClass = load(\"myclass.gd\")\n" "var instance = MyClass.new()\n" "assert(instance.get_script() == MyClass)\n" "[/codeblock]" #: modules/gdscript/doc_classes/GDScriptFunctionState.xml msgid "State of a function call after yielding." msgstr "一个函数在调用后失效的状态。" #: modules/gdscript/doc_classes/GDScriptFunctionState.xml msgid "" "Calling [method @GDScript.yield] within a function will cause that function " "to yield and return its current state as an object of this type. The yielded " "function call can then be resumed later by calling [method resume] on this " "state object." msgstr "" "在函数中调用 [method @GDScript.yield] 将导致该函数作为此类型的对象让步并返回" "其当前状态。然后可以通过在此状态对象上调用 [method resume] 来使让步的函数恢复" "调用。" #: modules/gdscript/doc_classes/GDScriptFunctionState.xml msgid "" "Check whether the function call may be resumed. This is not the case if the " "function state was already resumed.\n" "If [code]extended_check[/code] is enabled, it also checks if the associated " "script and object still exist. The extended check is done in debug mode as " "part of [method GDScriptFunctionState.resume], but you can use this if you " "know you may be trying to resume without knowing for sure the object and/or " "script have survived up to that point." msgstr "" "检查函数调用是否可以被恢复。如果函数状态已经被恢复,则不存在这种情况。\n" "如果[code]extended_check[/code]被启用,它还会检查相关的脚本和对象是否仍然存" "在。扩展检查是在调试模式下作为[method GDScriptFunctionState.resume]的一部分进" "行的,但是如果你知道你可能在不确定对象和/或脚本已经存活到那个点的情况下尝试恢" "复,你可以使用这个。" #: modules/gdscript/doc_classes/GDScriptFunctionState.xml msgid "" "Resume execution of the yielded function call.\n" "If handed an argument, return the argument from the [method @GDScript.yield] " "call in the yielded function call. You can pass e.g. an [Array] to hand " "multiple arguments.\n" "This function returns what the resumed function call returns, possibly " "another function state if yielded again." msgstr "" "继续执行让步的函数调用。\n" "如果传递了一个参数,则从产生的函数调用中的 [method @GDScript.yield] 调用返回" "参数。你可以通过例如一个 [Array] 来处理多个参数。 \n" "此函数返回接续的函数调用后返回的内容,如果再次恢复调用,可能是另一个函数状" "态。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The generic 6-degrees-of-freedom joint can implement a variety of joint " "types by locking certain axes' rotation or translation." msgstr "通用的6度自由度关节可以通过锁定某些轴的旋转或平移来实现各种关节类型。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The first 3 DOF axes are linear axes, which represent translation of Bodies, " "and the latter 3 DOF axes represent the angular motion. Each axis can be " "either locked, or limited." msgstr "" "前3个DOF轴是线性轴,代表物体的平移,后3个DOF轴代表角运动。每个轴可以被锁定," "也可以被限制。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of rotational damping across the X axis.\n" "The lower, the longer an impulse from one side takes to travel to the other " "side." msgstr "" "X轴上的旋转阻尼量。\n" "越低,来自一侧的冲力到达另一侧的时间越长。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], rotation across the X axis is limited." msgstr "如果为 [code]true[/code],则跨越 X 轴的旋转将受到限制。" #: doc/classes/Generic6DOFJoint.xml msgid "" "When rotating across the X axis, this error tolerance factor defines how " "much the correction gets slowed down. The lower, the slower." msgstr "" "当在X轴上旋转时,这个误差容限系数定义了修正的速度被减慢的程度。值越低,旋转越" "慢。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum amount of force that can occur, when rotating around the X axis." msgstr "绕X轴旋转时所能产生的最大力。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The minimum rotation in negative direction to break loose and rotate around " "the X axis." msgstr "负方向的最小旋转,以挣脱并围绕X轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of rotational restitution across the X axis. The lower, the more " "restitution occurs." msgstr "X轴上的旋转恢复量。值越低,恢复量越大。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed of all rotations across the X axis." msgstr "跨越X轴的所有旋转的速度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The minimum rotation in positive direction to break loose and rotate around " "the X axis." msgstr "正方向的最小旋转,以挣脱并绕X轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of rotational damping across the Y axis. The lower, the more " "dampening occurs." msgstr "Y轴上的旋转阻尼量。值越低,旋转的阻尼就越大。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], rotation across the Y axis is limited." msgstr "如果为 [code]true[/code],则跨越 Y 轴的旋转将受到限制。" #: doc/classes/Generic6DOFJoint.xml msgid "" "When rotating across the Y axis, this error tolerance factor defines how " "much the correction gets slowed down. The lower, the slower." msgstr "" "当在Y轴上旋转时,这个误差容限系数定义了修正的速度被减慢的程度。值越低,旋转越" "慢。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum amount of force that can occur, when rotating around the Y axis." msgstr "围绕Y轴旋转时,可能发生的最大力。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The minimum rotation in negative direction to break loose and rotate around " "the Y axis." msgstr "负方向的最小旋转,以挣脱并围绕Y轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of rotational restitution across the Y axis. The lower, the more " "restitution occurs." msgstr "跨越Y轴的旋转恢复量。越低,发生的恢复量越大。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed of all rotations across the Y axis." msgstr "跨越Y轴的所有旋转的速度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The minimum rotation in positive direction to break loose and rotate around " "the Y axis." msgstr "正方向的最小旋转,以挣脱并绕Y轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of rotational damping across the Z axis. The lower, the more " "dampening occurs." msgstr "跨越Z轴的旋转阻尼量。值越低,阻尼就越多。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], rotation across the Z axis is limited." msgstr "如果为 [code]true[/code],则跨越 Z 轴的旋转将受到限制。" #: doc/classes/Generic6DOFJoint.xml msgid "" "When rotating across the Z axis, this error tolerance factor defines how " "much the correction gets slowed down. The lower, the slower." msgstr "" "当在Z轴上旋转时,这个误差容限系数定义了修正的速度被减慢的程度。值越低,旋转越" "慢。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum amount of force that can occur, when rotating around the Z axis." msgstr "围绕Z轴旋转时,可能发生的最角度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The minimum rotation in negative direction to break loose and rotate around " "the Z axis." msgstr "负方向的最小旋转,以挣脱并围绕Z轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of rotational restitution across the Z axis. The lower, the more " "restitution occurs." msgstr "跨越Z轴的旋转恢复量。越低,发生的恢复量越大。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed of all rotations across the Z axis." msgstr "跨越Z轴的所有旋转的速度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The minimum rotation in positive direction to break loose and rotate around " "the Z axis." msgstr "正方向的最小旋转,并绕Z轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], a rotating motor at the X axis is enabled." msgstr "如果为 [code]true[/code],则启用 X 轴的旋转马达。" #: doc/classes/Generic6DOFJoint.xml msgid "Maximum acceleration for the motor at the X axis." msgstr "在X轴旋转的最大加速度。" #: doc/classes/Generic6DOFJoint.xml msgid "Target speed for the motor at the X axis." msgstr "X轴上电机的目标速度。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], a rotating motor at the Y axis is enabled." msgstr "如果为 [code]true[/code],则启用 Y 轴的旋转马达。" #: doc/classes/Generic6DOFJoint.xml msgid "Maximum acceleration for the motor at the Y axis." msgstr "电机在X轴的最大加速度。" #: doc/classes/Generic6DOFJoint.xml msgid "Target speed for the motor at the Y axis." msgstr "电机在Y轴的目标速度。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], a rotating motor at the Z axis is enabled." msgstr "如果为 [code]true[/code],则启用 Z 轴的旋转马达。" #: doc/classes/Generic6DOFJoint.xml msgid "Maximum acceleration for the motor at the Z axis." msgstr "电机在Z轴的最大加速度。" #: doc/classes/Generic6DOFJoint.xml msgid "Target speed for the motor at the Z axis." msgstr "Z轴上电机的目标速度。" #: doc/classes/Generic6DOFJoint.xml msgid "The amount of damping that happens at the X motion." msgstr "发生在X运动的阻尼量。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], the linear motion across the X axis is limited." msgstr "如果为 [code]true[/code],则跨越 X 轴的线性运动将受到限制。" #: doc/classes/Generic6DOFJoint.xml msgid "The minimum difference between the pivot points' X axis." msgstr "轴心点的 X 轴之间的最小差异。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of restitution on the X axis movement. The lower, the more " "momentum gets lost." msgstr "X轴运动的恢复量。越低,动量损失越大。" #: doc/classes/Generic6DOFJoint.xml msgid "" "A factor applied to the movement across the X axis. The lower, the slower " "the movement." msgstr "应用于X轴上移动的一个系数。值越低,移动的就越慢。" #: doc/classes/Generic6DOFJoint.xml msgid "The maximum difference between the pivot points' X axis." msgstr "轴心点的 X 轴之间的最大差异。" #: doc/classes/Generic6DOFJoint.xml msgid "The amount of damping that happens at the Y motion." msgstr "发生在Y运动的阻尼量。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], the linear motion across the Y axis is limited." msgstr "如果为 [code]true[/code],则跨越 Y 轴的线性运动将受到限制。" #: doc/classes/Generic6DOFJoint.xml msgid "The minimum difference between the pivot points' Y axis." msgstr "轴心点的 Y 轴之间的最小差异。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of restitution on the Y axis movement. The lower, the more " "momentum gets lost." msgstr "Y轴运动的恢复量。值越低,动量损失越大。" #: doc/classes/Generic6DOFJoint.xml msgid "" "A factor applied to the movement across the Y axis. The lower, the slower " "the movement." msgstr "应用于Y轴上移动的一个系数。值越低,移动的就越慢。" #: doc/classes/Generic6DOFJoint.xml msgid "The maximum difference between the pivot points' Y axis." msgstr "轴心点的 Y 轴之间的最大差异。" #: doc/classes/Generic6DOFJoint.xml msgid "The amount of damping that happens at the Z motion." msgstr "发生在Z运动的阻尼量。" #: doc/classes/Generic6DOFJoint.xml msgid "If [code]true[/code], the linear motion across the Z axis is limited." msgstr "如果为 [code]true[/code],则跨越 Z 轴的线性运动将受到限制。" #: doc/classes/Generic6DOFJoint.xml msgid "The minimum difference between the pivot points' Z axis." msgstr "轴心点的 Z 轴之间的最小差异。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of restitution on the Z axis movement. The lower, the more " "momentum gets lost." msgstr "Y轴运动的恢复量。越低,动量损失越大。" #: doc/classes/Generic6DOFJoint.xml msgid "" "A factor applied to the movement across the Z axis. The lower, the slower " "the movement." msgstr "适用于跨Z轴移动的一个系数。值越低,移动的就越慢。" #: doc/classes/Generic6DOFJoint.xml msgid "The maximum difference between the pivot points' Z axis." msgstr "轴心点的 Z 轴之间的最大差异。" #: doc/classes/Generic6DOFJoint.xml msgid "" "If [code]true[/code], then there is a linear motor on the X axis. It will " "attempt to reach the target velocity while staying within the force limits." msgstr "" "如果为 [code]true[/code],则 X 轴上存在线性马达。它将试图达到目标速度,同时保" "持在力的限度内。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum force the linear motor can apply on the X axis while trying to " "reach the target velocity." msgstr "当尝试达到目标速度时,线性马达可以在X轴上应用的最大力。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed that the linear motor will attempt to reach on the X axis." msgstr "线性马达在X轴上尝试达到的速度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "If [code]true[/code], then there is a linear motor on the Y axis. It will " "attempt to reach the target velocity while staying within the force limits." msgstr "" "如果为 [code]true[/code],则 Y 轴上存在线性马达。它将试图达到目标速度,同时保" "持在力的限度内。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum force the linear motor can apply on the Y axis while trying to " "reach the target velocity." msgstr "直线电机在试图达到目标速度时可施加在Y轴上的最大力。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed that the linear motor will attempt to reach on the Y axis." msgstr "线性马达在Y轴上将会达到的速度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "If [code]true[/code], then there is a linear motor on the Z axis. It will " "attempt to reach the target velocity while staying within the force limits." msgstr "" "如果为 [code]true[/code],则 Z 轴上存在线性马达。它将试图达到目标速度,同时保" "持在力的限度内。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum force the linear motor can apply on the Z axis while trying to " "reach the target velocity." msgstr "当试图达到目标速度时,线性马达可以在X轴上应用的最大力。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed that the linear motor will attempt to reach on the Z axis." msgstr "线性马达在Z轴上试图达到的速度。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "The minimum difference between the pivot points' axes." msgstr "轴心点的轴之间的最小差异。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "The maximum difference between the pivot points' axes." msgstr "轴心点的轴之间的最大差异。" #: doc/classes/Generic6DOFJoint.xml msgid "" "A factor applied to the movement across the axes. The lower, the slower the " "movement." msgstr "适用于跨轴移动的一个系数。值越低,移动的就越慢。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The amount of restitution on the axes' movement. The lower, the more " "momentum gets lost." msgstr "轴的运动的恢复量。值越低,动量损失越大。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "" "The amount of damping that happens at the linear motion across the axes." msgstr "发生在跨轴线性运动的阻尼量。" #: doc/classes/Generic6DOFJoint.xml msgid "The velocity the linear motor will try to reach." msgstr "线性马达将尝试达到的速度。" #: doc/classes/Generic6DOFJoint.xml msgid "" "The maximum force the linear motor will apply while trying to reach the " "velocity target." msgstr "线性马达在试图达到速度目标时将施加的最大力。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "" "The minimum rotation in negative direction to break loose and rotate around " "the axes." msgstr "负方向的最小旋转,以脱离和绕轴旋转。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "" "The minimum rotation in positive direction to break loose and rotate around " "the axes." msgstr "正方向的最小旋转,以挣脱和绕轴旋转。" #: doc/classes/Generic6DOFJoint.xml msgid "The speed of all rotations across the axes." msgstr "所有跨轴旋转的速度。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "" "The amount of rotational damping across the axes. The lower, the more " "dampening occurs." msgstr "跨越Z轴的旋转阻尼量。值越低,发生的阻尼就越多。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "" "The amount of rotational restitution across the axes. The lower, the more " "restitution occurs." msgstr "在各轴上的旋转恢复量。值越低,发生的恢复量越大。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "" "The maximum amount of force that can occur, when rotating around the axes." msgstr "围绕Z轴旋转时,可能发生的最大力。" #: doc/classes/Generic6DOFJoint.xml msgid "" "When rotating across the axes, this error tolerance factor defines how much " "the correction gets slowed down. The lower, the slower." msgstr "" "当跨轴旋转时,这个误差容限系数定义了修正的速度被减慢的程度。值越低,旋转越" "慢。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "Target speed for the motor at the axes." msgstr "轴上电机的目标速度。" #: doc/classes/Generic6DOFJoint.xml doc/classes/PhysicsServer.xml msgid "Maximum acceleration for the motor at the axes." msgstr "马达在轴上的最大加速度。" #: doc/classes/Generic6DOFJoint.xml msgid "If enabled, linear motion is possible within the given limits." msgstr "如果启用,在给定范围内可以进行线性运动。" #: doc/classes/Generic6DOFJoint.xml msgid "If enabled, rotational motion is possible within the given limits." msgstr "如果启用,在给定的限度内可以进行旋转运动。" #: doc/classes/Generic6DOFJoint.xml msgid "If enabled, there is a rotational motor across these axes." msgstr "如果启用,则存在跨这些轴的旋转马达。" #: doc/classes/Generic6DOFJoint.xml msgid "If enabled, there is a linear motor across these axes." msgstr "如果启用,则存在跨这些轴的线性马达。" #: doc/classes/Generic6DOFJoint.xml doc/classes/HingeJoint.xml msgid "Represents the size of the [enum Flag] enum." msgstr "表示[enum Flag]枚举的大小。" #: doc/classes/Geometry.xml msgid "Helper node to calculate generic geometry operations." msgstr "用于计算通用几何操作的辅助节点。" #: doc/classes/Geometry.xml msgid "" "Geometry provides users with a set of helper functions to create geometric " "shapes, compute intersections between shapes, and process various other " "geometric operations." msgstr "" "Geometry 为用户提供了一组辅助函数,用于创建几何形状、计算形状之间的交点以及处" "理各种其他几何操作。" #: doc/classes/Geometry.xml msgid "" "Returns an array with 6 [Plane]s that describe the sides of a box centered " "at the origin. The box size is defined by [code]extents[/code], which " "represents one (positive) corner of the box (i.e. half its actual size)." msgstr "" "返回一个包含6个[Plane]的数组,描述以原点为中心的盒子的边。盒子的大小由" "[code]extents[/code]定义,它代表盒子的一个(正)角(即其实际大小的一半)。" #: doc/classes/Geometry.xml msgid "" "Returns an array of [Plane]s closely bounding a faceted capsule centered at " "the origin with radius [code]radius[/code] and height [code]height[/code]. " "The parameter [code]sides[/code] defines how many planes will be generated " "for the side part of the capsule, whereas [code]lats[/code] gives the number " "of latitudinal steps at the bottom and top of the capsule. The parameter " "[code]axis[/code] describes the axis along which the capsule is oriented (0 " "for X, 1 for Y, 2 for Z)." msgstr "" "返回一个[Plane]数组,该数组紧密地绑定着一个以原点为中心,半径为[code]radius[/" "code],高度为[code]height[/code]的面状胶囊。参数[code]side[/code]定义了将为胶" "囊的侧面部分生成多少个平面,而[code]lats[/code]则给出了胶囊底部和顶部的纬向阶" "梯数。参数[code]axis[/code]描述了胶囊的方向轴(0为X,1为Y,2为Z)。" #: doc/classes/Geometry.xml msgid "" "Returns an array of [Plane]s closely bounding a faceted cylinder centered at " "the origin with radius [code]radius[/code] and height [code]height[/code]. " "The parameter [code]sides[/code] defines how many planes will be generated " "for the round part of the cylinder. The parameter [code]axis[/code] " "describes the axis along which the cylinder is oriented (0 for X, 1 for Y, 2 " "for Z)." msgstr "" "返回一个[Plane]数组,该数组紧密绑定以原点为中心的切面圆柱体,其半径为" "[code]radius[/code],高度为[code]height[/code]。参数[code]side[/code]定义了将" "为圆柱体的圆形部分生成多少个平面。参数[code]axis[/code]描述了圆柱体的方向轴" "(0代表X,1代表Y,2代表Z)。" #: doc/classes/Geometry.xml msgid "" "Clips the polygon defined by the points in [code]points[/code] against the " "[code]plane[/code] and returns the points of the clipped polygon." msgstr "" "将[code]point[/code]中的点所定义的多边形与[code]plane[/code]进行对比,并返回" "被剪切的多边形的点。" #: doc/classes/Geometry.xml msgid "" "Clips [code]polygon_a[/code] against [code]polygon_b[/code] and returns an " "array of clipped polygons. This performs [constant OPERATION_DIFFERENCE] " "between polygons. Returns an empty array if [code]polygon_b[/code] " "completely overlaps [code]polygon_a[/code].\n" "If [code]polygon_b[/code] is enclosed by [code]polygon_a[/code], returns an " "outer polygon (boundary) and inner polygon (hole) which could be " "distinguished by calling [method is_polygon_clockwise]." msgstr "" "将[code]polygon_a[/code]与[code]polygon_b[/code]进行对比,并返回一个被剪切的" "多边形数组。这在多边形之间执行[constant OPERATION_DIFFERENCE]。如果" "[code]polygon_b[/code]与[code]polygon_a[/code]完全重合,则返回一个空数组。\n" "如果[code]polygon_b[/code]被[code]polygon_a[/code]包围,返回一个外部多边形" "(边界)和内部多边形(孔),可以通过调用[method is_polygon_clockwise]来区分。" #: doc/classes/Geometry.xml msgid "" "Clips [code]polyline[/code] against [code]polygon[/code] and returns an " "array of clipped polylines. This performs [constant OPERATION_DIFFERENCE] " "between the polyline and the polygon. This operation can be thought of as " "cutting a line with a closed shape." msgstr "" "将[code]polyline[/code]与[code]polygon[/code]相对应,并返回一个折线数组。在折" "线和多边形之间执行[constant OPERATION_DIFFERENCE]。这个操作可以被认为是用一个" "封闭的形状切割一条线。" #: doc/classes/Geometry.xml msgid "" "Given an array of [Vector2]s, returns the convex hull as a list of points in " "counterclockwise order. The last point is the same as the first one." msgstr "" "给出一个[Vector2]s的数组,以逆时针的顺序返回凸面的点的列表。最后一个点与第一" "个点相同。" #: doc/classes/Geometry.xml msgid "" "Mutually excludes common area defined by intersection of [code]polygon_a[/" "code] and [code]polygon_b[/code] (see [method intersect_polygons_2d]) and " "returns an array of excluded polygons. This performs [constant " "OPERATION_XOR] between polygons. In other words, returns all but common area " "between polygons.\n" "The operation may result in an outer polygon (boundary) and inner polygon " "(hole) produced which could be distinguished by calling [method " "is_polygon_clockwise]." msgstr "" "相互排除由 [code]polygon_a[/code] 和 [code]polygon_b[/code](见 [method " "intersect_polygons_2d])的交叉点定义的公共区域,并返回一个排除的多边形数组。" "这在多边形之间执行了 [constant OPERATION_XOR]。换句话说,返回多边形之间除公共" "区域外的所有区域。\n" "该操作可能会产生一个外部多边形(边界)和内部多边形(孔),可以通过调用 " "[method is_polygon_clockwise] 来区分。" #: doc/classes/Geometry.xml msgid "" "Returns the 3D point on the 3D segment ([code]s1[/code], [code]s2[/code]) " "that is closest to [code]point[/code]. The returned point will always be " "inside the specified segment." msgstr "" "返回3D部份([code]s1[/code], [code]s2[/code])上离[code]point[/code]最近的3D" "点。返回的点将总是在指定的部份内。" #: doc/classes/Geometry.xml msgid "" "Returns the 2D point on the 2D segment ([code]s1[/code], [code]s2[/code]) " "that is closest to [code]point[/code]. The returned point will always be " "inside the specified segment." msgstr "" "返回2D段([code]s1[/code], [code]s2[/code])上最接近[code]point[/code]的2D" "点。返回的点将总是在指定的线段内。" #: doc/classes/Geometry.xml msgid "" "Returns the 3D point on the 3D line defined by ([code]s1[/code], [code]s2[/" "code]) that is closest to [code]point[/code]. The returned point can be " "inside the segment ([code]s1[/code], [code]s2[/code]) or outside of it, i.e. " "somewhere on the line extending from the segment." msgstr "" "返回由([code]s1[/code], [code]s2[/code])定义的 3D 直线上最接近 " "[code]point[/code]的 3D 点。返回的点可以在线段内([code]s1[/code], [code]s2[/" "code]),也可以在线段外,即在线段延伸的某处。" #: doc/classes/Geometry.xml msgid "" "Returns the 2D point on the 2D line defined by ([code]s1[/code], [code]s2[/" "code]) that is closest to [code]point[/code]. The returned point can be " "inside the segment ([code]s1[/code], [code]s2[/code]) or outside of it, i.e. " "somewhere on the line extending from the segment." msgstr "" "返回由([code]s1[/code], [code]s2[/code])定义的二维线上最接近[code]point[/" "code]的二维点。返回的点可以在线段([code]s1[/code], [code]s2[/code])内,也可" "以在线段外,即在从线段延伸出来的某处。" #: doc/classes/Geometry.xml msgid "" "Given the two 3D segments ([code]p1[/code], [code]p2[/code]) and ([code]q1[/" "code], [code]q2[/code]), finds those two points on the two segments that are " "closest to each other. Returns a [PoolVector3Array] that contains this point " "on ([code]p1[/code], [code]p2[/code]) as well the accompanying point on " "([code]q1[/code], [code]q2[/code])." msgstr "" "给定两个 3D 线段 ([code]p1[/code],[code]p2[/code]) 和 ([code]q1[/code]," "[code]q2[/code]),到这两个线段上最接近的两个点。返回一个 [PoolVector3Array]," "其中包含 ([code]p1[/code],[code]p2[/code]) 上的这个点以及 ([code]q1[/code]," "[code]q2[/code]) 上的伴随点." #: doc/classes/Geometry.xml msgid "" "Given the two 2D segments ([code]p1[/code], [code]q1[/code]) and ([code]p2[/" "code], [code]q2[/code]), finds those two points on the two segments that are " "closest to each other. Returns a [PoolVector2Array] that contains this point " "on ([code]p1[/code], [code]q1[/code]) as well the accompanying point on " "([code]p2[/code], [code]q2[/code])." msgstr "" "给定两个 2D 线段 ([code]p1[/code],[code]q1[/code]) 和 ([code]p2[/code]," "[code]q2[/code]),找到这两个线段上最接近的两个点。返回一个 " "[PoolVector2Array],其中包含 ([code]p1[/code],[code]q1[/code]) 上的这个点以" "及 ([code]p2[/code], [code]q2[/code]) 上的伴随点." #: doc/classes/Geometry.xml msgid "Used internally by the engine." msgstr "由引擎内部使用。" #: doc/classes/Geometry.xml msgid "" "Intersects [code]polygon_a[/code] with [code]polygon_b[/code] and returns an " "array of intersected polygons. This performs [constant " "OPERATION_INTERSECTION] between polygons. In other words, returns common " "area shared by polygons. Returns an empty array if no intersection occurs.\n" "The operation may result in an outer polygon (boundary) and inner polygon " "(hole) produced which could be distinguished by calling [method " "is_polygon_clockwise]." msgstr "" "将[code]polygon_a[/code]与[code]polygon_b[/code]相交并返回相交的多边形数组。" "这在多边形之间执行[constant OPERATION_INTERSECTION]。换句话说,返回多边形共享" "的公共区域。如果没有发生相交,则返回一个空数组。\n" "该操作可能导致产生外部多边形(边界)和内部多边形(孔),可以通过调用[method " "is_polygon_clockwise]来区分。" #: doc/classes/Geometry.xml msgid "" "Intersects [code]polyline[/code] with [code]polygon[/code] and returns an " "array of intersected polylines. This performs [constant " "OPERATION_INTERSECTION] between the polyline and the polygon. This operation " "can be thought of as chopping a line with a closed shape." msgstr "" "将[code]polyline[/code]与[code]polygon[/code]相交,并返回相交的折线数组。这在" "折线和多边形之间执行了[constant OPERATION_INTERSECTION]。这个操作可以被认为是" "用一个封闭的形状砍断一条线。" #: doc/classes/Geometry.xml msgid "" "Returns [code]true[/code] if [code]point[/code] is inside the circle or if " "it's located exactly [i]on[/i] the circle's boundary, otherwise returns " "[code]false[/code]." msgstr "" "返回 [code]true[/code] 时,[code]point[/code]位于圆的内部或者[i]正好[/i]位于" "圆的边界上,否则将返回 [code]false[/code]。" #: doc/classes/Geometry.xml msgid "" "Returns [code]true[/code] if [code]point[/code] is inside [code]polygon[/" "code] or if it's located exactly [i]on[/i] polygon's boundary, otherwise " "returns [code]false[/code]." msgstr "" "返回 [code]true[/code] 时,[code]point[/code]位于多边形[code]polygon[/code]的" "内部或者[i]正好[/i]位于多边形的边界上,否则将返回 [code]false[/code]。" #: doc/classes/Geometry.xml msgid "" "Returns [code]true[/code] if [code]polygon[/code]'s vertices are ordered in " "clockwise order, otherwise returns [code]false[/code]." msgstr "" "如果多边形 [code]polygon[/code] 的顶点按顺时针顺序排序,则返回 [code]true[/" "code],否则返回 [code]false[/code]。" #: doc/classes/Geometry.xml msgid "" "Checks if the two lines ([code]from_a[/code], [code]dir_a[/code]) and " "([code]from_b[/code], [code]dir_b[/code]) intersect. If yes, return the " "point of intersection as [Vector2]. If no intersection takes place, returns " "[code]null[/code].\n" "[b]Note:[/b] The lines are specified using direction vectors, not end points." msgstr "" "检查两条直线([code]from_a[/code], [code]dir_a[/code]) 和 ([code]from_b[/" "code], [code]dir_b[/code]) 是否相交。如果相交,则返回 [Vector2] 形式的相交" "点。如果不相交,则返回 [code]null[/code]。\n" "[b]注意:[/b]直线是使用方向向量而不是终点指定的。" #: doc/classes/Geometry.xml msgid "" "Given an array of [Vector2]s representing tiles, builds an atlas. The " "returned dictionary has two keys: [code]points[/code] is a vector of " "[Vector2] that specifies the positions of each tile, [code]size[/code] " "contains the overall size of the whole atlas as [Vector2]." msgstr "" "给定表示图块的[Vector2]数组,构建一个地图集。返回的字典有两个键:" "[code]points[/code]是[Vector2]的向量,用于指定每个图块的位置,[code]size[/" "code]包含整个图集的整体大小,作为[Vector2]。" #: doc/classes/Geometry.xml msgid "" "Merges (combines) [code]polygon_a[/code] and [code]polygon_b[/code] and " "returns an array of merged polygons. This performs [constant " "OPERATION_UNION] between polygons.\n" "The operation may result in an outer polygon (boundary) and multiple inner " "polygons (holes) produced which could be distinguished by calling [method " "is_polygon_clockwise]." msgstr "" "合并(结合)[code]polygon_a[/code] 和 [code]polygon_b[/code],并返回一个合并" "的多边形数组。在多边形之间执行 [constant OPERATION_UNION]。\n" "该操作可能会产生一个外部多边形(边界)和内部多边形(孔),可以通过调用 " "[method is_polygon_clockwise] 来区分。" #: doc/classes/Geometry.xml msgid "" "Inflates or deflates [code]polygon[/code] by [code]delta[/code] units " "(pixels). If [code]delta[/code] is positive, makes the polygon grow outward. " "If [code]delta[/code] is negative, shrinks the polygon inward. Returns an " "array of polygons because inflating/deflating may result in multiple " "discrete polygons. Returns an empty array if [code]delta[/code] is negative " "and the absolute value of it approximately exceeds the minimum bounding " "rectangle dimensions of the polygon.\n" "Each polygon's vertices will be rounded as determined by [code]join_type[/" "code], see [enum PolyJoinType].\n" "The operation may result in an outer polygon (boundary) and inner polygon " "(hole) produced which could be distinguished by calling [method " "is_polygon_clockwise].\n" "[b]Note:[/b] To translate the polygon's vertices specifically, use the " "[method Transform2D.xform] method:\n" "[codeblock]\n" "var polygon = PoolVector2Array([Vector2(0, 0), Vector2(100, 0), Vector2(100, " "100), Vector2(0, 100)])\n" "var offset = Vector2(50, 50)\n" "polygon = Transform2D(0, offset).xform(polygon)\n" "print(polygon) # prints [Vector2(50, 50), Vector2(150, 50), Vector2(150, " "150), Vector2(50, 150)]\n" "[/codeblock]" msgstr "" "通过 [code]delta[/code] 单位(像素)膨胀或缩小多边形 [code]polygon[/code]。如" "果 [code]delta[/code] 是正数,使多边形向外增长。如果 [code]delta[/code] 是负" "数,则使多边形向内收缩。返回一个多边形数组,因为膨胀或缩小可能导致多个离散的" "多边形。如果 [code]delta[/code] 为负数,并且其绝对值大约超过了多边形的最小边" "界矩形尺寸,则返回一个空数组。\n" "每个多边形的顶点将按照 [code]join_type[/code] 确定的方式进行圆角处理,见 " "[enum PolyJoinType]。\n" "该操作可能会产生一个外部多边形(边界)和内部多边形(孔),可以通过调用 " "[method is_polygon_clockwise]来区分。\n" "[b]注意:[/b]要具体平移多边形的顶点,请使用 [method Transform2D.xform] 方" "法。\n" "[codeblock]\n" "var polygon = PoolVector2Array([ Vector2(0, 0), Vector2(100, 0), " "Vector2(100, 100), Vector2(0, 100) ] )\n" "var offset = Vector2(50, 50)\n" "polygon = Transform2D(0, offset).xform(polygon)\n" "print(polygon) #打印出 [Vector2(50, 50), Vector2(150, 50), Vector2(150, " "150), Vector2(50, 150)] 。\n" "[/codeblock]" #: doc/classes/Geometry.xml msgid "" "Inflates or deflates [code]polyline[/code] by [code]delta[/code] units " "(pixels), producing polygons. If [code]delta[/code] is positive, makes the " "polyline grow outward. Returns an array of polygons because inflating/" "deflating may result in multiple discrete polygons. If [code]delta[/code] is " "negative, returns an empty array.\n" "Each polygon's vertices will be rounded as determined by [code]join_type[/" "code], see [enum PolyJoinType].\n" "Each polygon's endpoints will be rounded as determined by [code]end_type[/" "code], see [enum PolyEndType].\n" "The operation may result in an outer polygon (boundary) and inner polygon " "(hole) produced which could be distinguished by calling [method " "is_polygon_clockwise]." msgstr "" "通过[code]delta[/code]单位(像素)对[code]多边形线polyline[/code]进行充气或放" "气,产生多边形。如果[code]delta[/code]为正数,则使多段线向外增长。返回一个多" "边形数组,因为充气/放气可能导致多个离散的多边形。如果[code]delta[/code]为负" "数,返回一个空数组。\n" "每个多边形的顶点将由[code]join_type[/code]决定,见[enum PolyJoinType]。\n" "每个多边形的端点将由[code]end_type[/code]决定,见[enum PolyEndType]。\n" "该操作可能会产生一个外部多边形(边界)和内部多边形(孔),可以通过调用" "[method is_polygon_clockwise]来区分。" #: doc/classes/Geometry.xml msgid "" "Returns if [code]point[/code] is inside the triangle specified by [code]a[/" "code], [code]b[/code] and [code]c[/code]." msgstr "" "如果[code]点point[/code]在[code]a[/code]、[code]b[/code]和[code]c[/code]所指" "定的三角形内,则返回。" #: doc/classes/Geometry.xml msgid "" "Tests if the 3D ray starting at [code]from[/code] with the direction of " "[code]dir[/code] intersects the triangle specified by [code]a[/code], " "[code]b[/code] and [code]c[/code]. If yes, returns the point of intersection " "as [Vector3]. If no intersection takes place, an empty [Variant] is returned." msgstr "" "测试从[code]from[/code]开始,方向为[code]dir[/code]的3D射线是否与[code]a[/" "code]、[code]b[/code]和[code]c[/code]指定的三角形相交。如果是,返回相交点为" "[Vector3]。如果没有发生相交,将返回一个空的[Variant]。" #: doc/classes/Geometry.xml msgid "" "Given the 2D segment ([code]segment_from[/code], [code]segment_to[/code]), " "returns the position on the segment (as a number between 0 and 1) at which " "the segment hits the circle that is located at position " "[code]circle_position[/code] and has radius [code]circle_radius[/code]. If " "the segment does not intersect the circle, -1 is returned (this is also the " "case if the line extending the segment would intersect the circle, but the " "segment does not)." msgstr "" "给出2D线段([code]segment_from[/code],[code]segment_to[/code]),返回线段上" "与圆心为 [code]circle_position[/code] 、半径为 [code]circle_radius[/code] 圆" "的相交位置(以0到1之间的数字)。如果线段没有与圆相交,则返回-1(如果延伸线段" "的线段与圆相交,但线段没有相交,也是这种情况)。" #: doc/classes/Geometry.xml msgid "" "Given a convex hull defined though the [Plane]s in the array [code]planes[/" "code], tests if the segment ([code]from[/code], [code]to[/code]) intersects " "with that hull. If an intersection is found, returns a [PoolVector3Array] " "containing the point the intersection and the hull's normal. If no " "intersecion is found, an the returned array is empty." msgstr "" "给定一个通过数组 [code]planes[/code] 中的 [Plane]s 定义的凸面体,测试线段" "([code]from[/code],[code]to[/code])是否与该面体相交。如果找到相交点,返回" "一个[PoolVector3Array],包含相交点和凸面体的法线。如果没有找到相交点,返回的" "数组为空。" #: doc/classes/Geometry.xml msgid "" "Checks if the segment ([code]from[/code], [code]to[/code]) intersects the " "cylinder with height [code]height[/code] that is centered at the origin and " "has radius [code]radius[/code]. If no, returns an empty [PoolVector3Array]. " "If an intersection takes place, the returned array contains the point of " "intersection and the cylinder's normal at the point of intersection." msgstr "" "检查线段([code]from[/code],[code]to[/code])是否与高度 [code]height[/code] " "的圆柱体相交,圆柱体以原点为中心,半径为 [code]radius[/code]。如果没有,返回" "一个空的 [PoolVector3Array]。如果发生了相交,返回的数组包含相交点和圆柱体在相" "交点的法线。" #: doc/classes/Geometry.xml msgid "" "Checks if the two segments ([code]from_a[/code], [code]to_a[/code]) and " "([code]from_b[/code], [code]to_b[/code]) intersect. If yes, return the point " "of intersection as [Vector2]. If no intersection takes place, returns " "[code]null[/code]." msgstr "" "检查两条线段 ([code]from_a[/code], [code]to_a[/code]) 和 ([code]from_b[/" "code], [code]to_b[/code]) 是否相交。如果相交,则返回 [Vector2] 形式的相交点。" "如果不相交,则返回 [code]null[/code]。" #: doc/classes/Geometry.xml msgid "" "Checks if the segment ([code]from[/code], [code]to[/code]) intersects the " "sphere that is located at [code]sphere_position[/code] and has radius " "[code]sphere_radius[/code]. If no, returns an empty [PoolVector3Array]. If " "yes, returns a [PoolVector3Array] containing the point of intersection and " "the sphere's normal at the point of intersection." msgstr "" "检查线段([code]from[/code],[code]to[/code])是否与球心为 " "[code]sphere_position[/code]、半径为 [code]sphere_radius[/code] 的球体相交。" "如果没有,返回一个空的 [PoolVector3Array]。如果相交,返回一个包含交点和交点处" "球体法线的 [PoolVector3Array]。" #: doc/classes/Geometry.xml msgid "" "Tests if the segment ([code]from[/code], [code]to[/code]) intersects the " "triangle [code]a[/code], [code]b[/code], [code]c[/code]. If yes, returns the " "point of intersection as [Vector3]. If no intersection takes place, an empty " "[Variant] is returned." msgstr "" "测试段([code]from[/code],[code]to[/code])是否与三角形[code]a[/code]," "[code]b[/code],[code]c[/code]相交。如果是,返回相交点为[Vector3]。如果没有发" "生相交,则返回一个空的[Variant]。" #: doc/classes/Geometry.xml msgid "" "Triangulates the area specified by discrete set of [code]points[/code] such " "that no point is inside the circumcircle of any resulting triangle. Returns " "a [PoolIntArray] where each triangle consists of three consecutive point " "indices into [code]points[/code] (i.e. the returned array will have [code]n " "* 3[/code] elements, with [code]n[/code] being the number of found " "triangles). If the triangulation did not succeed, an empty [PoolIntArray] is " "returned." msgstr "" "对由离散的 [code]point[/code] 点集合指定的区域进行三角化,使得任何点都不在任" "何结果三角形的外接圆内。返回一个 [PoolIntArray],其中每个三角形由 " "[code]point[/code] 点的三个连续的点索引组成(即返回的数组将有 [code]n * 3[/" "code] 元素,[code]n[/code] 是找到的三角形的数量)。如果三角化没有成功,将返回" "一个空的 [PoolIntArray]。" #: doc/classes/Geometry.xml msgid "" "Triangulates the polygon specified by the points in [code]polygon[/code]. " "Returns a [PoolIntArray] where each triangle consists of three consecutive " "point indices into [code]polygon[/code] (i.e. the returned array will have " "[code]n * 3[/code] elements, with [code]n[/code] being the number of found " "triangles). Output triangles will always be counter clockwise, and the " "contour will be flipped if it's clockwise. If the triangulation did not " "succeed, an empty [PoolIntArray] is returned." msgstr "" "对多边形 [code]polygon[/code] 中的点指定的多边形进行三角化。返回一个 " "[PoolIntArray],其中每个三角形由 [code]polygon[/code] 中三个连续的点索引组成" "(即返回的数组将有 [code]n * 3[/code] 个元素,[code]n[/code] 是找到的三角形的" "数量)。输出的三角始终是逆时针的,如果为顺时针则会将轮廓翻转。如果三角化没有" "成功,将返回一个空的 [PoolIntArray]。" #: doc/classes/Geometry.xml msgid "" "Create regions where either subject or clip polygons (or both) are filled." msgstr "创建区域,其中主体或剪辑多边形(或两者)被填充。" #: doc/classes/Geometry.xml msgid "" "Create regions where subject polygons are filled except where clip polygons " "are filled." msgstr "创建主体多边形被填充的区域,但剪辑多边形被填充的区域除外。" #: doc/classes/Geometry.xml msgid "Create regions where both subject and clip polygons are filled." msgstr "创建主体和剪辑多边形都被填充的区域。" #: doc/classes/Geometry.xml msgid "" "Create regions where either subject or clip polygons are filled but not " "where both are filled." msgstr "创建主体或剪辑多边形被填充的区域,但不是两者都被填充的区域。" #: doc/classes/Geometry.xml msgid "" "Squaring is applied uniformally at all convex edge joins at [code]1 * delta[/" "code]." msgstr "在[code]1 * delta[/code]的所有凸边连接处均匀地应用平方。" #: doc/classes/Geometry.xml msgid "" "While flattened paths can never perfectly trace an arc, they are " "approximated by a series of arc chords." msgstr "" "虽然扁平化路径不可能完美地追踪一个弧线,但它们可以通过一系列弧弦来近似。" #: doc/classes/Geometry.xml msgid "" "There's a necessary limit to mitered joins since offsetting edges that join " "at very acute angles will produce excessively long and narrow \"spikes\". " "For any given edge join, when miter offsetting would exceed that maximum " "distance, \"square\" joining is applied." msgstr "" "对斜接有一个必要的限制,因为以非常尖锐的角度连接的边缘偏移会产生过长和过窄的 " "\"尖刺\"。对于任何给定的边缘连接,当斜接偏移会超过最大距离时,就采用 \"方形 " "\"连接。" #: doc/classes/Geometry.xml msgid "" "Endpoints are joined using the [enum PolyJoinType] value and the path filled " "as a polygon." msgstr "端点使用[enum PolyJoinType]值连接,路径被填充为多边形。" #: doc/classes/Geometry.xml msgid "" "Endpoints are joined using the [enum PolyJoinType] value and the path filled " "as a polyline." msgstr "端点使用[enum PolyJoinType]值连接,路径被填充为多边形线。" #: doc/classes/Geometry.xml msgid "Endpoints are squared off with no extension." msgstr "端点是方形的,没有延伸。" #: doc/classes/Geometry.xml msgid "Endpoints are squared off and extended by [code]delta[/code] units." msgstr "端点被平方化并扩展了[code]delta[/code]单位。" #: doc/classes/Geometry.xml msgid "Endpoints are rounded off and extended by [code]delta[/code] units." msgstr "端点被四舍五入,并以[code]delta[/code]为单位进行扩展。" #: doc/classes/GeometryInstance.xml msgid "Base node for geometry-based visual instances." msgstr "基于几何图形的视觉实例的基础节点。" #: doc/classes/GeometryInstance.xml msgid "" "Base node for geometry-based visual instances. Shares some common " "functionality like visibility and custom materials." msgstr "" "基于几何图形的视觉实例的基础节点。分享一些共同的机制,如可见性和自定义材质。" #: doc/classes/GeometryInstance.xml msgid "" "Returns the [enum GeometryInstance.Flags] that have been set for this object." msgstr "返回为此对象设置的[enum GeometryInstance.Flags] 。" #: doc/classes/GeometryInstance.xml msgid "" "Overrides the bounding box of this node with a custom one. To remove it, set " "an [AABB] with all fields set to zero." msgstr "" "用一个自定义的包围盒覆盖这个节点的包围盒。设置一个[AABB],去删除它,所有字段" "设置为零。" #: doc/classes/GeometryInstance.xml msgid "" "Sets the [enum GeometryInstance.Flags] specified. See [enum GeometryInstance." "Flags] for options." msgstr "" "设置指定的[enum GeometryInstance.Flags]。参阅[enum GeometryInstance.Flags]选" "项。" #: doc/classes/GeometryInstance.xml msgid "" "The selected shadow casting flag. See [enum ShadowCastingSetting] for " "possible values." msgstr "" "选择的阴影投射标志。转到 [enum ShadowCastingSetting] 来查看该属性可能的值。" #: doc/classes/GeometryInstance.xml msgid "" "The extra distance added to the GeometryInstance's bounding box ([AABB]) to " "increase its cull box." msgstr "添加到 GeometryInstance 的包围盒([AABB])的额外距离,以增加其剔除盒。" #: doc/classes/GeometryInstance.xml msgid "" "When disabled, the mesh will be taken into account when computing indirect " "lighting, but the resulting lightmap will not be saved. Useful for emissive " "only materials or shadow casters." msgstr "" "当禁用时,计算间接光照时将考虑网格,但产生的光照贴图不会被保存。适用于仅有发" "光材质或阴影投射器。" #: doc/classes/GeometryInstance.xml msgid "" "Scale factor for the generated baked lightmap. Useful for adding detail to " "certain mesh instances." msgstr "生成的烘焙光照贴图的缩放系数。对增加某些网格实例的细节很有用。" #: doc/classes/GeometryInstance.xml msgid "" "The GeometryInstance's max LOD distance.\n" "[b]Note:[/b] This property currently has no effect." msgstr "" "GeometryInstance3D的最大LOD距离。\n" "[b]注意:[/b]这个属性目前没有任何作用。" #: doc/classes/GeometryInstance.xml msgid "" "The GeometryInstance's max LOD margin.\n" "[b]Note:[/b] This property currently has no effect." msgstr "" "GeometryInstance3D的最大LOD 边距。\n" "[b]注意:[/b]这个属性目前没有任何作用。" #: doc/classes/GeometryInstance.xml msgid "" "The GeometryInstance's min LOD distance.\n" "[b]Note:[/b] This property currently has no effect." msgstr "" "GeometryInstance3D的最小LOD距离。\n" "[b]注意:[/b]这个属性目前没有任何作用。" #: doc/classes/GeometryInstance.xml msgid "" "The GeometryInstance's min LOD margin.\n" "[b]Note:[/b] This property currently has no effect." msgstr "" "GeometryInstance3D的最小LOD 边距。\n" "[b]注意:[/b]这个属性目前没有任何作用。" #: doc/classes/GeometryInstance.xml msgid "" "The material overlay for the whole geometry.\n" "If a material is assigned to this property, it will be rendered on top of " "any other active material for all the surfaces." msgstr "" "整个几何体的材质覆盖层。\n" "如果一个材质被分配给这个属性,它将会被渲染在所有表面的任何其他活动材质之上。" #: doc/classes/GeometryInstance.xml msgid "" "The material override for the whole geometry.\n" "If a material is assigned to this property, it will be used instead of any " "material set in any material slot of the mesh." msgstr "" "整个几何体的材质覆盖。\n" "如果一个材质被分配给这个属性,它将会被用来代替在网格的任何材质槽中设置的任何" "材质。" #: doc/classes/GeometryInstance.xml msgid "" "If [code]true[/code], this GeometryInstance will be used when baking lights " "using a [GIProbe] or [BakedLightmap]." msgstr "" "如果 [code]true[/code],则在使用 [GIProbe] 或 [BakedLightmap] 烘焙灯光时将使" "用此 GeometryInstance。" #: doc/classes/GeometryInstance.xml msgid "The generated lightmap texture will have the original size." msgstr "生成的光照贴图纹理将具有原始大小。" #: doc/classes/GeometryInstance.xml msgid "The generated lightmap texture will be twice as large, on each axis." msgstr "生成的光照贴图纹理将是每个轴上的 2 倍。" #: doc/classes/GeometryInstance.xml msgid "The generated lightmap texture will be 4 times as large, on each axis." msgstr "生成的光照贴图纹理将是每个轴上的 4 倍。" #: doc/classes/GeometryInstance.xml msgid "The generated lightmap texture will be 8 times as large, on each axis." msgstr "生成的光照贴图纹理将是每个轴上的 8 倍。" #: doc/classes/GeometryInstance.xml msgid "Will not cast any shadows." msgstr "将不会投射任何阴影。" #: doc/classes/GeometryInstance.xml msgid "" "Will cast shadows from all visible faces in the GeometryInstance.\n" "Will take culling into account, so faces not being rendered will not be " "taken into account when shadow casting." msgstr "" "将从GeometryInstance中的所有可见面投射阴影。\n" "将考虑剔除,所以在投射阴影时,没有被渲染的面将不会被考虑在内。" #: doc/classes/GeometryInstance.xml msgid "" "Will cast shadows from all visible faces in the GeometryInstance.\n" "Will not take culling into account, so all faces will be taken into account " "when shadow casting." msgstr "" "将从GeometryInstance中的所有可见面投射阴影。\n" "不会考虑剔除,所以在投射阴影时,所有的面都会被考虑在内。" #: doc/classes/GeometryInstance.xml msgid "" "Will only show the shadows casted from this object.\n" "In other words, the actual mesh will not be visible, only the shadows casted " "from the mesh will be." msgstr "" "只显示从这个物体投射出来的阴影。\n" "换句话说,实际的网格将不可见,只有网格投影可见。" #: doc/classes/GeometryInstance.xml msgid "" "Will allow the GeometryInstance to be used when baking lights using a " "[GIProbe] or [BakedLightmap]." msgstr "" "将允许在使用[GIProbe]或[BakedLightmap]进行灯光烘焙时使用GeometryInstance几何" "实例。" #: doc/classes/GeometryInstance.xml msgid "" "Unused in this class, exposed for consistency with [enum VisualServer." "InstanceFlags]." msgstr "在此类中未使用,公开以与 [enum VisualServer.InstanceFlags] 保持一致。" #: doc/classes/GIProbe.xml msgid "Real-time global illumination (GI) probe." msgstr "实时全局光照(GI)探测。" #: doc/classes/GIProbe.xml msgid "" "[GIProbe]s are used to provide high-quality real-time indirect light to " "scenes. They precompute the effect of objects that emit light and the effect " "of static geometry to simulate the behavior of complex light in real-time. " "[GIProbe]s need to be baked before using, however, once baked, dynamic " "objects will receive light from them. Further, lights can be fully dynamic " "or baked.\n" "Having [GIProbe]s in a scene can be expensive, the quality of the probe can " "be turned down in exchange for better performance in the [ProjectSettings] " "using [member ProjectSettings.rendering/quality/voxel_cone_tracing/" "high_quality].\n" "[b]Procedural generation:[/b] [GIProbe] can be baked in an exported project, " "which makes it suitable for procedurally generated or user-built levels as " "long as all the geometry is generated in advance.\n" "[b]Performance:[/b] [GIProbe] is relatively demanding on the GPU and is not " "suited to low-end hardware such as integrated graphics (consider " "[BakedLightmap] instead). To provide a fallback for low-end hardware, " "consider adding an option to disable [GIProbe] in your project's options " "menus. A [GIProbe] node can be disabled by hiding it.\n" "[b]Note:[/b] Meshes should have sufficiently thick walls to avoid light " "leaks (avoid one-sided walls). For interior levels, enclose your level " "geometry in a sufficiently large box and bridge the loops to close the mesh. " "To further prevent light leaks, you can also strategically place temporary " "[MeshInstance] nodes with [member GeometryInstance.use_in_baked_light] " "enabled. These temporary nodes can then be hidden after baking the [GIProbe] " "node.\n" "[b]Note:[/b] Due to a renderer limitation, emissive [ShaderMaterial]s cannot " "emit light when used in a [GIProbe]. Only emissive [SpatialMaterial]s can " "emit light in a [GIProbe]." msgstr "" "[GIProbe] 可以为场景提供高质量的实时间接光照。它们预先计算发光物体和静态几何" "体的效果,以实时模拟复杂光线的行为。[GIProbe] 在使用前需要进行烘焙,而后,一" "旦烘焙,动态物体就会从它们那里接收光线。此外,灯光可以是完全动态的,也可以是" "烘焙的。\n" "在场景中使用 [GIProbe] 会很消耗资源,可以在 [ProjectSettings] 中使用 [member " "ProjectSettings.rendering/quality/voxel_cone_tracing/high_quality] 来降低探针" "的质量,换取更好的性能。\n" "[b]程序式生成:[/b][GIProbe] 在导出后的项目中也可以进行烘焙,因此它适合程序式" "生成或者用户构建的关卡,只需保证所有几何体都是预先生成的即可。\n" "[b]性能:[/b][GIProbe] 相对更耗 GPU,不适合在集成显卡等低端硬件上使用,可考虑" "换用 [BakedLightmap]。要为低端硬件提供备选方案,可考虑在你项目的选项菜单中添" "加禁用 [GIProbe] 的选项。隐藏 [GIProbe] 节点即可将其禁用。\n" "[b]注意:[/b]网格应该有足够厚的墙以避免漏光(避免单面墙)。对于内部关卡,将你" "的关卡几何体包围在一个足够大的盒子里,并将环路联接起来以关闭网格。\n" "[b]注意:[/b]由于渲染器的限制,在 [GIProbe] 中使用发光的 [ShaderMaterial] 时" "不能发光。只有发光的 [SpatialMaterial] 可以在 [GIProbe] 中发射光线。" #: doc/classes/GIProbe.xml msgid "GI probes" msgstr "GI 探针" #: doc/classes/GIProbe.xml msgid "" "Bakes the effect from all [GeometryInstance]s marked with [member " "GeometryInstance.use_in_baked_light] and [Light]s marked with either " "[constant Light.BAKE_INDIRECT] or [constant Light.BAKE_ALL]. If " "[code]create_visual_debug[/code] is [code]true[/code], after baking the " "light, this will generate a [MultiMesh] that has a cube representing each " "solid cell with each cube colored to the cell's albedo color. This can be " "used to visualize the [GIProbe]'s data and debug any issues that may be " "occurring.\n" "[b]Note:[/b] [method bake] works from the editor and in exported projects. " "This makes it suitable for procedurally generated or user-built levels. " "Baking a [GIProbe] generally takes from 5 to 20 seconds in most scenes. " "Reducing [member subdiv] can speed up baking.\n" "[b]Note:[/b] [GeometryInstance]s and [Light]s must be fully ready before " "[method bake] is called. If you are procedurally creating those and some " "meshes or lights are missing from your baked [GIProbe], use " "[code]call_deferred(\"bake\")[/code] instead of calling [method bake] " "directly." msgstr "" "烘焙所有标有 [member GeometryInstance.use_in_baked_light] 的 " "[GeometryInstance] 和标有 [constant Light.BAKE_INDIRECT] 或 [constant Light." "BAKE_ALL] 的 [Light] 的效果。如果[code]create_visual_debug[/code]是" "[code]true[/code],在烘焙光线后,这将生成一个[MultiMesh],其中有一个立方体代" "表每个实体单元,每个立方体的颜色与该单元的反照率颜色一致。这可以用来可视化 " "[GIProbe] 的数据,以调试任何可能发生的问题。\n" "[b]注意:[/b][method bake] 在编辑器和导出后的项目中都是有效的。因此适用于程序" "化生成或者用户构建的关卡。在多数场景中,烘焙 [GIProbe] 通常需要花费 5 到 20 " "秒。减少 [member subdiv] 可以加速烘焙。\n" "[b]注意:[/b]调用 [method bake] 前 [GeometryInstance] 和 [Light] 必须完全就" "绪。如果这些是使用程序创建的,并且烘焙后的 [GIProbe] 中缺少某些网格和灯光,请" "使用 [code]call_deferred(\"bake\")[/code],不要直接调用 [method bake]。" #: doc/classes/GIProbe.xml msgid "Calls [method bake] with [code]create_visual_debug[/code] enabled." msgstr "在启用 [code]create_visual_debug[/code] 的情况下调用 [method bake] 。" #: doc/classes/GIProbe.xml msgid "" "Offsets the lookup of the light contribution from the [GIProbe]. This can be " "used to avoid self-shadowing, but may introduce light leaking at higher " "values. This and [member normal_bias] should be played around with to " "minimize self-shadowing and light leaking.\n" "[b]Note:[/b] [code]bias[/code] should usually be above 1.0 as that is the " "size of the voxels." msgstr "" "从 [GIProbe] 偏移光贡献的查找。这可用于避免自阴影,但可能会在较高的值下引入漏" "光。这个和 [member normal_bias] 应该使用,以尽量减少自阴影和漏光。\n" "[b]注意:[/b][code]bias[/code] 通常应该在 1.0 以上,因为这是体素的大小。" #: doc/classes/GIProbe.xml msgid "" "[i]Deprecated.[/i] This property has been deprecated due to known bugs and " "no longer has any effect when enabled." msgstr "[i]已废弃[/i]由于已知的错误,这个属性已被废弃,启用后不再有任何效果。" #: doc/classes/GIProbe.xml msgid "The [GIProbeData] resource that holds the data for this [GIProbe]." msgstr "持有此 [GIProbe] 的数据的 [GIProbeData] 资源。" #: doc/classes/GIProbe.xml msgid "" "The maximum brightness that the [GIProbe] will recognize. Brightness will be " "scaled within this range." msgstr "[GIProbe] 能识别的最大亮度。亮度将在此范围内缩放。" #: doc/classes/GIProbe.xml msgid "" "Energy multiplier. Makes the lighting contribution from the [GIProbe] " "brighter." msgstr "能量倍数。使 [GIProbe] 的照明贡献更亮。" #: doc/classes/GIProbe.xml msgid "" "The size of the area covered by the [GIProbe]. If you make the extents " "larger without increasing the subdivisions with [member subdiv], the size of " "each cell will increase and result in lower detailed lighting." msgstr "" "[GIProbe] 所覆盖区域的大小。如果你让外延变大,而没有用 [member subdiv] 增加细" "分,每个单元的大小将增加,并导致低细节照明。" #: doc/classes/GIProbe.xml msgid "" "If [code]true[/code], ignores the sky contribution when calculating lighting." msgstr "如果为 [code]true[/code],在计算照明时忽略天空的贡献。" #: doc/classes/GIProbe.xml msgid "" "Offsets the lookup into the [GIProbe] based on the object's normal " "direction. Can be used to reduce some self-shadowing artifacts." msgstr "" "根据物体的法线方向,对 [GIProbe] 的查找进行偏移。可以用来减少一些自阴影的假" "象。" #: doc/classes/GIProbe.xml msgid "" "How much light propagates through the probe internally. A higher value " "allows light to spread further." msgstr "光在探针内部传播的程度。一个较高的值可以使光传播得更远。" #: doc/classes/GIProbe.xml msgid "" "Number of times to subdivide the grid that the [GIProbe] operates on. A " "higher number results in finer detail and thus higher visual quality, while " "lower numbers result in better performance." msgstr "" "对 [GIProbe] 所操作的网格进行细分的次数。数字越大,细节就越精细,因而视觉质量" "就越高,而数字越小,性能就越好。" #: doc/classes/GIProbe.xml msgid "" "Use 64 subdivisions. This is the lowest quality setting, but the fastest. " "Use it if you can, but especially use it on lower-end hardware." msgstr "" "使用64分区,这是最低的质量设置,但也是最快的。如果你能使用它,特别是在低端硬" "件上使用它。" #: doc/classes/GIProbe.xml msgid "Use 128 subdivisions. This is the default quality setting." msgstr "使用128个分区。这是默认的质量设置。" #: doc/classes/GIProbe.xml msgid "Use 256 subdivisions." msgstr "使用256个分区。" #: doc/classes/GIProbe.xml msgid "" "Use 512 subdivisions. This is the highest quality setting, but the slowest. " "On lower-end hardware, this could cause the GPU to stall." msgstr "" "使用 512 个分区。这是最高的质量设置,但也是最慢的。在低端硬件上,这可能会导" "致 GPU 停顿。" #: doc/classes/GIProbe.xml msgid "Represents the size of the [enum Subdiv] enum." msgstr "代表 [enum Subdiv] 举的大小。" #: modules/gltf/doc_classes/GLTFAccessor.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFAccessor] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFAccessor] 的引用在导出后的项目中会导致错" "误。" #: modules/gltf/doc_classes/GLTFAnimation.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFAnimation] within a script will cause an error in an exported " "project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFAnimation] 的引用在导出后的项目中会导致" "错误。" #: modules/gltf/doc_classes/GLTFBufferView.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFBufferView] within a script will cause an error in an exported " "project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFBufferView] 的引用在导出后的项目中会导致" "错误。" #: modules/gltf/doc_classes/GLTFCamera.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFCamera] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFCamera] 的引用在导出后的项目中会导致错" "误。" #: modules/gltf/doc_classes/GLTFDocument.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFDocument] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFDocument] 的引用在导出后的项目中会导致错" "误。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFLight] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFLight] 的引用在导出后的项目中会导致错" "误。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "The [Color] of the light. Defaults to white. A black color causes the light " "to have no effect." msgstr "灯的[Color]。默认为白色。黑色会导致灯光无效。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "The inner angle of the cone in a spotlight. Must be less than or equal to " "the outer cone angle.\n" "Within this angle, the light is at full brightness. Between the inner and " "outer cone angles, there is a transition from full brightness to zero " "brightness. When creating a Godot [SpotLight], the ratio between the inner " "and outer cone angles is used to calculate the attenuation of the light." msgstr "" "聚光灯中圆锥体的内角。必须小于或等于外锥角。\n" "在这个角度内,光线处于全亮状态。在内锥角和外锥角之间,有一个从全亮到零亮度的" "过渡。当创建Godot [SpotLight]时,内锥角和外锥角之间的比率被用来计算光的衰减。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "The intensity of the light. This is expressed in candelas (lumens per " "steradian) for point and spot lights, and lux (lumens per m²) for " "directional lights. When creating a Godot light, this value is converted to " "a unitless multiplier." msgstr "" "光的强度。对于点光和聚光,用烛光(流明/立体光)表示;对于平行光,用勒克斯(流" "明/平方米)表示。在创建 Godot 灯光时,这个值会被转换为无单位的乘数。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "The outer angle of the cone in a spotlight. Must be greater than or equal to " "the inner angle.\n" "At this angle, the light drops off to zero brightness. Between the inner and " "outer cone angles, there is a transition from full brightness to zero " "brightness. If this angle is a half turn, then the spotlight emits in all " "directions. When creating a Godot [SpotLight], the outer cone angle is used " "as the angle of the spotlight." msgstr "" "聚光灯下圆锥体的外角。必须大于或等于内角。\n" "在这个角度,光线会下降到零亮度。在内锥角和外锥角之间,有一个从全亮到零亮度的" "过渡。如果这个角度是一个半圆,那么聚光灯就会向所有方向发射。创建Godot " "[SpotLight]时,外锥角被用作聚光灯的角度。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "The range of the light, beyond which the light has no effect. GLTF lights " "with no range defined behave like physical lights (which have infinite " "range). When creating a Godot light, the range is clamped to 4096." msgstr "" "灯光的范围,超过这个范围灯光无效。没有定义范围的GLTF灯光的行为与无限范围的物" "理灯光一样。当创建Godot灯光时,范围限制在4096。" #: modules/gltf/doc_classes/GLTFLight.xml msgid "" "The type of the light. The values accepted by Godot are \"point\", \"spot\", " "and \"directional\", which correspond to Godot's [OmniLight], [SpotLight], " "and [DirectionalLight] respectively." msgstr "" "灯光的类型。Godot接受的值是 \"point\"、\"spot\"和 \"directional\",分别对应于" "Godot的[OmniLight]、[SpotLight]和[DirectionalLight]。" #: modules/gltf/doc_classes/GLTFMesh.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFMesh] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFMesh] 的引用在导出后的项目中会导致错误。" #: modules/gltf/doc_classes/GLTFNode.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFNode] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFNode] 的引用在导出后的项目中会导致错误。" #: modules/gltf/doc_classes/GLTFSkeleton.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFSkeleton] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFSkeleton] 的引用在导出后的项目中会导致错" "误。" #: modules/gltf/doc_classes/GLTFSpecGloss.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFSpecGloss] within a script will cause an error in an exported " "project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFSpecGloss] 的引用在导出后的项目中会导致" "错误。" #: modules/gltf/doc_classes/GLTFState.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFState] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFState] 的引用在导出后的项目中会导致错" "误。" #: modules/gltf/doc_classes/GLTFTexture.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [GLTFTexture] within a script will cause an error in an exported project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [GLTFTexture] 的引用在导出后的项目中会导致错" "误。" #: modules/mono/doc_classes/GodotSharp.xml msgid "Bridge between Godot and the Mono runtime (Mono-enabled builds only)." msgstr "Godot和Mono运行时之间的桥梁(仅支持Mono的构建)。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "This class is a bridge between Godot and the Mono runtime. It exposes " "several low-level operations and is only available in Mono-enabled Godot " "builds.\n" "See also [CSharpScript]." msgstr "" "该类是连接Godot和Mono运行时的桥梁。它暴露了一些低级别的操作,只在支持Mono的" "Godot构建中可用。\n" "参阅[CSharpScript] 。" #: modules/mono/doc_classes/GodotSharp.xml msgid "Attaches the current thread to the Mono runtime." msgstr "将当前线程连接到Mono运行时。" #: modules/mono/doc_classes/GodotSharp.xml msgid "Detaches the current thread from the Mono runtime." msgstr "将当前线程从Mono运行时中分离出来。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "Returns the current MonoDomain ID.\n" "[b]Note:[/b] The Mono runtime must be initialized for this method to work " "(use [method is_runtime_initialized] to check). If the Mono runtime isn't " "initialized at the time this method is called, the engine will crash." msgstr "" "返回当前的MonoDomain ID。\n" "[b]注意:[/b]Mono运行时必须被初始化,这个方法才能工作(使用 [method " "is_runtime_initialized] 来检查)。如果在调用这个方法的时候,Mono运行时没有被" "初始化,引擎将崩溃。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "Returns the scripts MonoDomain's ID. This will be the same MonoDomain ID as " "[method get_domain_id], unless the scripts domain isn't loaded.\n" "[b]Note:[/b] The Mono runtime must be initialized for this method to work " "(use [method is_runtime_initialized] to check). If the Mono runtime isn't " "initialized at the time this method is called, the engine will crash." msgstr "" "返回scripts MonoDomain的ID。这将是与 [method get_domain_id] 相同的MonoDomain " "ID,除非scripts domain没有被加载。\n" "[b]注意:[/b]Mono运行时必须被初始化,这个方法才能工作(使用 [method " "is_runtime_initialized] 来检查)。如果在调用这个方法的时候,Mono运行时没有被" "初始化,引擎将会崩溃。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "Returns [code]true[/code] if the domain is being finalized, [code]false[/" "code] otherwise." msgstr "" "如果域正在被最终确定,返回 [code]true[/code] ,否则返回 [code]false[/code] 。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "Returns [code]true[/code] if the Mono runtime is initialized, [code]false[/" "code] otherwise." msgstr "" "如果Mono运行时被初始化,返回 [code]true[/code] ,否则返回 [code]false[/" "code] 。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "Returns [code]true[/code] if the Mono runtime is shutting down, [code]false[/" "code] otherwise." msgstr "" "如果Mono运行时正在关闭,返回 [code]true[/code] ,否则返回 [code]false[/" "code] 。" #: modules/mono/doc_classes/GodotSharp.xml msgid "" "Returns [code]true[/code] if the scripts domain is loaded, [code]false[/" "code] otherwise." msgstr "" "如果脚本域被加载,返回 [code]true[/code] ,否则返回 [code]false[/code] 。" #: doc/classes/Gradient.xml msgid "" "A color interpolator resource which can be used to generate colors between " "user-defined color points." msgstr "颜色插值器资源,可用于在用户定义的颜色点之间生成颜色。" #: doc/classes/Gradient.xml msgid "" "Given a set of colors, this resource will interpolate them in order. This " "means that if you have color 1, color 2 and color 3, the ramp will " "interpolate from color 1 to color 2 and from color 2 to color 3. The ramp " "will initially have 2 colors (black and white), one (black) at ramp lower " "offset 0 and the other (white) at the ramp higher offset 1." msgstr "" "给定一组颜色,这个资源将依次两两插值。这意味着,如果你有颜色 1、颜色 2和颜色 " "3,渐变将从颜色 1 插值到颜色2、从颜色 2 插值到颜色 3。渐变最初有两种颜色(黑" "色和白色),一种(黑色)位于渐变较低的偏移量 0 处,另一种(白色)位于渐变较高" "的偏移量 1 处。" #: doc/classes/Gradient.xml msgid "" "Adds the specified color to the end of the ramp, with the specified offset." msgstr "将指定的颜色添加到渐变的末端,并有指定的偏移量。" #: doc/classes/Gradient.xml msgid "Returns the color of the ramp color at index [code]point[/code]." msgstr "返回索引 [code]point[/code] 处渐变色的颜色。" #: doc/classes/Gradient.xml msgid "Returns the offset of the ramp color at index [code]point[/code]." msgstr "返回索引 [code]point[/code] 处渐变色的偏移。" #: doc/classes/Gradient.xml msgid "Returns the number of colors in the ramp." msgstr "返回渐变中的颜色数量。" #: doc/classes/Gradient.xml msgid "Returns the interpolated color specified by [code]offset[/code]." msgstr "返回由偏移 [code]offset[/code] 指定的插值颜色。" #: doc/classes/Gradient.xml msgid "Removes the color at the index [code]point[/code]." msgstr "移除索引 [code]point[/code] 处的颜色。" #: doc/classes/Gradient.xml msgid "Sets the color of the ramp color at index [code]point[/code]." msgstr "设置索引 [code]point[/code] 处渐变色的颜色。" #: doc/classes/Gradient.xml msgid "Sets the offset for the ramp color at index [code]point[/code]." msgstr "设置索引 [code]point[/code] 处渐变色的偏移。" #: doc/classes/Gradient.xml msgid "Gradient's colors returned as a [PoolColorArray]." msgstr "渐变的颜色,以 [PoolColorArray] 返回。" #: doc/classes/Gradient.xml msgid "" "Defines how the colors between points of the gradient are interpolated. See " "[enum InterpolationMode] for available modes." msgstr "" "定义如何在渐变点之间对颜色进行插值。可用的模式见 [enum InterpolationMode]。" #: doc/classes/Gradient.xml msgid "Gradient's offsets returned as a [PoolRealArray]." msgstr "渐变的偏移量,以 [PoolRealArray] 返回。" #: doc/classes/Gradient.xml msgid "" "Constant interpolation, color changes abruptly at each point and stays " "uniform between. This might cause visible aliasing when used for a gradient " "texture in some cases." msgstr "" "常量插值,颜色会在每个点上突变,在点和点之间保持一致。在某些情况下用于渐变纹" "理时,可能会造成明显的锯齿。" #: doc/classes/GradientTexture.xml msgid "Gradient-filled texture." msgstr "渐变填充纹理。" #: doc/classes/GradientTexture.xml msgid "" "GradientTexture uses a [Gradient] to fill the texture data. The gradient " "will be filled from left to right using colors obtained from the gradient. " "This means the texture does not necessarily represent an exact copy of the " "gradient, but instead an interpolation of samples obtained from the gradient " "at fixed steps (see [member width])." msgstr "" "GradientTexture使用[Gradient]来填充纹理数据。渐变将使用从中获得的颜色从左到右" "填充。这意味着纹理不一定代表渐变的精确副本,而是以固定的步长从渐变中获得的样" "本的插值,见[member width]。" #: doc/classes/GradientTexture.xml msgid "The [Gradient] that will be used to fill the texture." msgstr "将用于填充纹理的[Gradient]。" #: doc/classes/GradientTexture.xml msgid "The number of color samples that will be obtained from the [Gradient]." msgstr "将从[Gradient]中获得的颜色样本的数量。" #: doc/classes/GradientTexture2D.xml msgid "Gradient-filled 2D texture." msgstr "使用渐变填充的 2D 纹理。" #: doc/classes/GradientTexture2D.xml msgid "" "The texture uses a [Gradient] to fill the texture data in 2D space. The " "gradient is filled according to the specified [member fill] and [member " "repeat] types using colors obtained from the gradient. The texture does not " "necessarily represent an exact copy of the gradient, but instead an " "interpolation of samples obtained from the gradient at fixed steps (see " "[member width] and [member height])." msgstr "" "该纹理使用 [Gradient] 渐变来填充 2D 空间纹理数据。渐变会根据 [member fill] " "和 [member repeat] 类型,使用从渐变中获取的颜色进行填充。该纹理未必精确表示该" "渐变,可以是从该渐变上按照固定步长进行采样后再进行插值(请参阅 [member " "width] 和 [member height])。" #: doc/classes/GradientTexture2D.xml msgid "" "The gradient fill type, one of the [enum Fill] values. The texture is filled " "by interpolating colors starting from [member fill_from] to [member fill_to] " "offsets." msgstr "" "渐变填充类型,是 [enum Fill] 中的某个值。该纹理使用的是位于 [member " "fill_from] 到 [member fill_to] 偏移量的颜色,对它们进行插值填充。" #: doc/classes/GradientTexture2D.xml msgid "" "The initial offset used to fill the texture specified in UV coordinates." msgstr "用于填充纹理的初始偏移量,使用 UV 坐标。" #: doc/classes/GradientTexture2D.xml msgid "The final offset used to fill the texture specified in UV coordinates." msgstr "用于填充纹理的结束偏移量,使用 UV 坐标。" #: doc/classes/GradientTexture2D.xml msgid "The [Gradient] used to fill the texture." msgstr "用于填充纹理的 [Gradient]。" #: doc/classes/GradientTexture2D.xml msgid "" "The number of vertical color samples that will be obtained from the " "[Gradient], which also represents the texture's height." msgstr "从 [Gradient] 上获取的垂直颜色采样数,也表示纹理的高度。" #: doc/classes/GradientTexture2D.xml msgid "" "The gradient repeat type, one of the [enum Repeat] values. The texture is " "filled starting from [member fill_from] to [member fill_to] offsets by " "default, but the gradient fill can be repeated to cover the entire texture." msgstr "" "渐变重复类型,是 [enum Repeat] 中的某个值。该纹理默认从偏移量 [member " "fill_from] 到 [member fill_to] 填充,但渐变填充可以重复,从而覆盖整个纹理。" #: doc/classes/GradientTexture2D.xml msgid "" "If [code]true[/code], the generated texture will support high dynamic range " "([constant Image.FORMAT_RGBAF] format). This allows for glow effects to work " "if [member Environment.glow_enabled] is [code]true[/code]. If [code]false[/" "code], the generated texture will use low dynamic range; overbright colors " "will be clamped ([constant Image.FORMAT_RGBA8] format)." msgstr "" "如果为 [code]true[/code],则生成的纹理会支持高动态范围([constant Image." "FORMAT_RGBAF] 格式)。可以在 [member Environment.glow_enabled] 为 " "[code]true[/code] 时实现辉光效果。如果为 [code]false[/code],则生成的纹理会使" "用低动态范围;过亮的颜色会被钳制([constant Image.FORMAT_RGBA8] 格式)。" #: doc/classes/GradientTexture2D.xml msgid "" "The number of horizontal color samples that will be obtained from the " "[Gradient], which also represents the texture's width." msgstr "从 [Gradient] 上获取的水平颜色采样数,也表示纹理的宽度。" #: doc/classes/GradientTexture2D.xml msgid "The colors are linearly interpolated in a straight line." msgstr "颜色按照直线进行线性插值。" #: doc/classes/GradientTexture2D.xml msgid "The colors are linearly interpolated in a circular pattern." msgstr "颜色按照圆形模式进行线性插值。" #: doc/classes/GradientTexture2D.xml msgid "" "The gradient fill is restricted to the range defined by [member fill_from] " "to [member fill_to] offsets." msgstr "" "渐变填充限制在由 [member fill_from] 到 [member fill_to] 的偏移量范围内。" #: doc/classes/GradientTexture2D.xml msgid "" "The texture is filled starting from [member fill_from] to [member fill_to] " "offsets, repeating the same pattern in both directions." msgstr "" "纹理的填充从偏移量 [member fill_from] 开始到 [member fill_to],两个方向都按照" "相同的模式重复。" #: doc/classes/GradientTexture2D.xml msgid "" "The texture is filled starting from [member fill_from] to [member fill_to] " "offsets, mirroring the pattern in both directions." msgstr "" "纹理的填充从偏移量 [member fill_from] 开始到 [member fill_to],两个方向都按照" "相同的模式镜像重复。" #: doc/classes/GraphEdit.xml msgid "" "GraphEdit is an area capable of showing various GraphNodes. It manages " "connection events between them." msgstr "" "GraphEdit 是一个能够显示各种 GraphNode 的区域。它管理着它们之间的连接事件。" #: doc/classes/GraphEdit.xml msgid "" "GraphEdit manages the showing of GraphNodes it contains, as well as " "connections and disconnections between them. Signals are sent for each of " "these two events. Disconnection between GraphNode slots is disabled by " "default.\n" "It is greatly advised to enable low-processor usage mode (see [member OS." "low_processor_usage_mode]) when using GraphEdits." msgstr "" "图形编辑 GraphEdit 管理它所包含的图形节点 GraphNode 的显示,以及它们之间的连" "接和断开。这两个事件都会发送信号。GraphNode 插槽之间的断开连接默认是禁用" "的。\n" "在使用 GraphEdit 时,我们强烈建议启用低处理器使用模式(见 [member OS." "low_processor_usage_mode])。" #: doc/classes/GraphEdit.xml msgid "" "Makes possible the connection between two different slot types. The type is " "defined with the [method GraphNode.set_slot] method." msgstr "" "使得两个不同插槽型之间的连接成为可能。该类型是通过 [method GraphNode." "set_slot] 方法定义的。" #: doc/classes/GraphEdit.xml msgid "" "Makes possible to disconnect nodes when dragging from the slot at the left " "if it has the specified type." msgstr "使得从左边的槽中拖动节点时,如果它有指定的类型,可以断开节点的连接。" #: doc/classes/GraphEdit.xml msgid "" "Makes possible to disconnect nodes when dragging from the slot at the right " "if it has the specified type." msgstr "使得从右边的槽中拖动节点时,如果它有指定的类型,可以断开节点的连接。" #: doc/classes/GraphEdit.xml msgid "Removes all connections between nodes." msgstr "移除节点之间的所有连接。" #: doc/classes/GraphEdit.xml msgid "" "Create a connection between the [code]from_port[/code] slot of the " "[code]from[/code] GraphNode and the [code]to_port[/code] slot of the " "[code]to[/code] GraphNode. If the connection already exists, no connection " "is created." msgstr "" "在 [code]from[/code] GraphNode 的 [code]from_port[/code] 槽和 [code]to[/" "code] GraphNode 的 [code]to_port[/code] 槽之间创建一个连接。如果该连接已经存" "在,则不创建连接。" #: doc/classes/GraphEdit.xml msgid "" "Removes the connection between the [code]from_port[/code] slot of the " "[code]from[/code] GraphNode and the [code]to_port[/code] slot of the " "[code]to[/code] GraphNode. If the connection does not exist, no connection " "is removed." msgstr "" "删除 [code]from[/code] GraphNode 的 [code]from_port[/code] 插槽与 [code]to[/" "code] GraphNode 的 [code]to_port[/code] 插槽之间的连接。如果连接不存在,则不" "会删除任何连接。" #: doc/classes/GraphEdit.xml msgid "" "Returns an Array containing the list of connections. A connection consists " "in a structure of the form [code]{ from_port: 0, from: \"GraphNode name 0\", " "to_port: 1, to: \"GraphNode name 1\" }[/code]." msgstr "" "返回一个包含连接列表的数组。一个连接包括一个结构,其形式为 [code]" "{ from_port:0, from: \"GraphNode name 0\", to_port:1, to:\"GraphNode name " "1\" }[/code]。" #: doc/classes/GraphEdit.xml msgid "" "Gets the [HBoxContainer] that contains the zooming and grid snap controls in " "the top left of the graph. You can use this method to reposition the toolbar " "or to add your own custom controls to it.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "获取包含图形左上角的缩放和网格捕捉控件的 [HBoxContainer]。你可以使用此方法重" "新定位工具栏或向其添加自定义控件。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果你希望隐" "藏它或其任何子项,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/GraphEdit.xml msgid "" "Returns [code]true[/code] if the [code]from_port[/code] slot of the " "[code]from[/code] GraphNode is connected to the [code]to_port[/code] slot of " "the [code]to[/code] GraphNode." msgstr "" "如果 [code]from[/code] GraphNode 的 [code]from_port[/code] 槽与 [code]to[/" "code] GraphNode 的 [code]to_port[/code] 槽相连,则返回 [code]true[/code]。" #: doc/classes/GraphEdit.xml msgid "Returns whether it's possible to connect slots of the specified types." msgstr "返回是否有可能连接指定类型的插槽。" #: doc/classes/GraphEdit.xml msgid "" "Makes it not possible to connect between two different slot types. The type " "is defined with the [method GraphNode.set_slot] method." msgstr "" "使得两个不同槽型之间的连接成为不可能。该类型是通过[method GraphNode.set_slot]" "方法定义的。" #: doc/classes/GraphEdit.xml msgid "" "Removes the possibility to disconnect nodes when dragging from the slot at " "the left if it has the specified type." msgstr "当节点具有指定的类型,可以从左边的槽中拖动时删除断开节点的功能。" #: doc/classes/GraphEdit.xml msgid "" "Removes the possibility to disconnect nodes when dragging from the slot at " "the right if it has the specified type." msgstr "当节点具有指定的类型,可以从左边的槽中拖动时删除断开节点的功能。" #: doc/classes/GraphEdit.xml msgid "" "Sets the coloration of the connection between [code]from[/code]'s " "[code]from_port[/code] and [code]to[/code]'s [code]to_port[/code] with the " "color provided in the [code]activity[/code] theme property." msgstr "" "将[code]from[/code]的[code]from_port[/code]和[code]to[/code]的[code]to_port[/" "code]之间的连接的颜色纹理设置为当前正在使用[code]activity[/code]的主题中的颜" "色。" #: doc/classes/GraphEdit.xml msgid "Sets the specified [code]node[/code] as the one selected." msgstr "选中一个特定的节点[code]node[/code]." #: doc/classes/GraphEdit.xml msgid "If [code]true[/code], the minimap is visible." msgstr "如果[code]true[/code],小图是可见的。" #: doc/classes/GraphEdit.xml msgid "The opacity of the minimap rectangle." msgstr "小图矩形的不透明度。" #: doc/classes/GraphEdit.xml msgid "" "The size of the minimap rectangle. The map itself is based on the size of " "the grid area and is scaled to fit this rectangle." msgstr "小图矩形的大小。地图自身基于网格区域的大小,并被缩放以适应这个矩形。" #: doc/classes/GraphEdit.xml msgid "" "If [code]true[/code], enables disconnection of existing connections in the " "GraphEdit by dragging the right end." msgstr "" "如果[code]true[/code],通过拖动右端,可以断开图形编辑GraphEdit中现有的连接。" #: doc/classes/GraphEdit.xml msgid "The scroll offset." msgstr "滚动偏移量。" #: doc/classes/GraphEdit.xml msgid "" "If [code]true[/code], makes a label with the current zoom level visible. The " "zoom value is displayed in percents." msgstr "" "如果[code]true[/code],则使当前缩放级别的标签可见。缩放值以百分比显示。" #: doc/classes/GraphEdit.xml msgid "The snapping distance in pixels." msgstr "吸附距离(以像素为单位)。" #: doc/classes/GraphEdit.xml msgid "If [code]true[/code], enables snapping." msgstr "如果为 [code]true[/code],启用自动吸附。" #: doc/classes/GraphEdit.xml msgid "The current zoom value." msgstr "当前缩放值。" #: doc/classes/GraphEdit.xml msgid "The upper zoom limit." msgstr "缩放上限。" #: doc/classes/GraphEdit.xml msgid "The lower zoom limit." msgstr "缩放下限。" #: doc/classes/GraphEdit.xml msgid "The step of each zoom level." msgstr "每个缩放级别的步长。" #: doc/classes/GraphEdit.xml msgid "Emitted at the beginning of a GraphNode movement." msgstr "在图形节点GraphNode移动开始时发出。" #: doc/classes/GraphEdit.xml msgid "Emitted at the end of a GraphNode movement." msgstr "在图形节点GraphNode移动结束时发出。" #: doc/classes/GraphEdit.xml msgid "" "Emitted when user dragging connection from input port into empty space of " "the graph." msgstr "当用户连接输入端口到图形的空位时发出。" #: doc/classes/GraphEdit.xml msgid "" "Emitted to the GraphEdit when the connection between the [code]from_slot[/" "code] slot of the [code]from[/code] GraphNode and the [code]to_slot[/code] " "slot of the [code]to[/code] GraphNode is attempted to be created." msgstr "" "当试图创建[code]来自from[/code]图形节点GraphNode1的[code]from_slot[/code]槽和" "[code]to[/code]图形节点GraphNode2的[code]to_slot[/code]槽之间的连接时,会向图" "形编辑GraphEdit发出。" #: doc/classes/GraphEdit.xml msgid "" "Emitted when user dragging connection from output port into empty space of " "the graph." msgstr "当用户将输出端口连接到图形的空位时发出。" #: doc/classes/GraphEdit.xml msgid "Emitted when the user presses [code]Ctrl + C[/code]." msgstr "当用户按[code]Ctrl + C[/code]时触发。" #: doc/classes/GraphEdit.xml msgid "" "Emitted when a GraphNode is attempted to be removed from the GraphEdit. " "Provides a list of node names to be removed (all selected nodes, excluding " "nodes without closing button)." msgstr "" "当有 GraphNode 尝试从该 GraphEdit 中移除时触发。提供要移除的节点名称列表(所" "有选中的节点,除去不包含关闭按钮的节点)。" #: doc/classes/GraphEdit.xml msgid "" "Emitted to the GraphEdit when the connection between [code]from_slot[/code] " "slot of [code]from[/code] GraphNode and [code]to_slot[/code] slot of " "[code]to[/code] GraphNode is attempted to be removed." msgstr "" "当试图移除 [code]from[/code] 图形节点GraphNode1的 [code]from_slot[/code]槽和" "[code]to[/code] 图形节点GraphNode 的[code]to_slot[/code] 槽之间的连接时,会发" "送到图形编辑GraphEdit。" #: doc/classes/GraphEdit.xml msgid "" "Emitted when a GraphNode is attempted to be duplicated in the GraphEdit." msgstr "当图形节点GraphNode试图在图形编辑GraphEdit中被复制时发出的。" #: doc/classes/GraphEdit.xml msgid "Emitted when a GraphNode is selected." msgstr "当图形节点GraphNode被选择时发出。" #: doc/classes/GraphEdit.xml msgid "Emitted when the user presses [code]Ctrl + V[/code]." msgstr "当用户按下[code]Ctrl + V[/code]时触发。" #: doc/classes/GraphEdit.xml msgid "" "Emitted when a popup is requested. Happens on right-clicking in the " "GraphEdit. [code]position[/code] is the position of the mouse pointer when " "the signal is sent." msgstr "" "当请求弹出窗口时发出。在图形编辑GraphEdit中右键单击时发生。坐标" "[code]position[/code] 是发送信号时鼠标指针的位置。" #: doc/classes/GraphEdit.xml msgid "" "Emitted when the scroll offset is changed by the user. It will not be " "emitted when changed in code." msgstr "当用户改变滚动偏移量时发出。在代码中改变滚动偏移量时,它不会被触发。" #: doc/classes/GraphEdit.xml msgid "Color of major grid lines." msgstr "主网格线条颜色。" #: doc/classes/GraphEdit.xml msgid "Color of minor grid lines." msgstr "次要网格线的颜色。" #: doc/classes/GraphEdit.xml msgid "The fill color of the selection rectangle." msgstr "选定的矩形的填充颜色。" #: doc/classes/GraphEdit.xml msgid "The outline color of the selection rectangle." msgstr "选择的矩形的轮廓颜色。" #: doc/classes/GraphEdit.xml msgid "" "The horizontal range within which a port can be grabbed (on both sides)." msgstr "一个端口可以被抓取的水平范围(两侧)。" #: doc/classes/GraphEdit.xml msgid "The vertical range within which a port can be grabbed (on both sides)." msgstr "一个端口可以被抓取的垂直范围(两侧)。" #: doc/classes/GraphEdit.xml msgid "The icon for the zoom out button." msgstr "缩小按钮的图标。" #: doc/classes/GraphEdit.xml msgid "The icon for the zoom in button." msgstr "放大按钮的图标。" #: doc/classes/GraphEdit.xml msgid "The icon for the zoom reset button." msgstr "缩放重置按钮的图标。" #: doc/classes/GraphEdit.xml msgid "The icon for the snap toggle button." msgstr "吸附动按钮的图标。" #: doc/classes/GraphEdit.xml msgid "The background drawn under the grid." msgstr "绘制在网格下方的背景。" #: doc/classes/GraphNode.xml msgid "" "A GraphNode is a container with potentially several input and output slots " "allowing connections between GraphNodes. Slots can have different, " "incompatible types." msgstr "" "GraphNode 是一种可能包含若干输入输出槽的容器,GraphNode 之间能够通过槽位相" "连。槽位的类型可以互不相同、互不兼容。" #: doc/classes/GraphNode.xml msgid "" "A GraphNode is a container. Each GraphNode can have several input and output " "slots, sometimes referred to as ports, allowing connections between " "GraphNodes. To add a slot to GraphNode, add any [Control]-derived child node " "to it.\n" "After adding at least one child to GraphNode new sections will be " "automatically created in the Inspector called 'Slot'. When 'Slot' is " "expanded you will see list with index number for each slot. You can click on " "each of them to expand further.\n" "In the Inspector you can enable (show) or disable (hide) slots. By default, " "all slots are disabled so you may not see any slots on your GraphNode " "initially. You can assign a type to each slot. Only slots of the same type " "will be able to connect to each other. You can also assign colors to slots. " "A tuple of input and output slots is defined for each GUI element included " "in the GraphNode. Input connections are on the left and output connections " "are on the right side of GraphNode. Only enabled slots are counted as " "connections." msgstr "" "GraphNode 是一种容器。每个 GraphNode 都可以有若干个输入和输出槽,有时被称为端" "口,能够让 GraphNode 之间相连。向 GraphNode 添加任何派生自 [Control] 的子节点" "后,才能添加槽位。\n" "在为 GraphNode 添加至少一个子节点后,将在检查器中自动创建名为“Slot”的新部分。" "展开“Slot”后,你会看到带有每个槽索引号的列表。你可以点击它们来进一步展开。\n" "在检查器中,你可以启用(显示)或禁用(隐藏)插槽。默认情况下,所有槽都是禁用" "的,所以你最初可能看不到 GraphNode 上的任何槽。你可以给每个插槽指定一个类型。" "只有相同类型的插槽才能够相互连接。你还可以给插槽指定颜色。为 GraphNode 中的每" "个 GUI 元素定义了一个输入和输出槽的元组。输入连接在 GraphNode 的左边,输出连" "接在右边。只有启用的插槽才被算作连接。" #: doc/classes/GraphNode.xml msgid "Disables all input and output slots of the GraphNode." msgstr "禁用 GraphNode 的所有输入和输出槽。" #: doc/classes/GraphNode.xml msgid "Disables input and output slot whose index is [code]idx[/code]." msgstr "禁用索引为 [code]idx[/code] 的输入和输出槽。" #: doc/classes/GraphNode.xml msgid "Returns the [Color] of the input connection [code]idx[/code]." msgstr "返回输入连接 [code]idx[/code] 的颜色 [Color]。" #: doc/classes/GraphNode.xml msgid "" "Returns the number of enabled input slots (connections) to the GraphNode." msgstr "返回 GraphNode 的启用输入槽(连接)的数量。" #: doc/classes/GraphNode.xml msgid "Returns the position of the input connection [code]idx[/code]." msgstr "返回输入连接 [code]idx[/code] 的位置。" #: doc/classes/GraphNode.xml msgid "Returns the type of the input connection [code]idx[/code]." msgstr "返回输入连接的类型 [code]idx[/code]。" #: doc/classes/GraphNode.xml msgid "Returns the [Color] of the output connection [code]idx[/code]." msgstr "返回输出连接 [code]idx[/code] 的颜色 [Color]。" #: doc/classes/GraphNode.xml msgid "" "Returns the number of enabled output slots (connections) of the GraphNode." msgstr "返回 GraphNode 的启用输出槽(连接)的数量。" #: doc/classes/GraphNode.xml msgid "Returns the position of the output connection [code]idx[/code]." msgstr "返回输出连接 [code]idx[/code] 的位置。" #: doc/classes/GraphNode.xml msgid "Returns the type of the output connection [code]idx[/code]." msgstr "返回输出连接的类型 [code]idx[/code]。" #: doc/classes/GraphNode.xml msgid "Returns the left (input) [Color] of the slot [code]idx[/code]." msgstr "返回槽[code]idx[/code]的左边(输入)颜色[Color]。" #: doc/classes/GraphNode.xml msgid "Returns the right (output) [Color] of the slot [code]idx[/code]." msgstr "返回槽[code]idx[/code]的右边(输出)颜色[Color]。" #: doc/classes/GraphNode.xml msgid "Returns the left (input) type of the slot [code]idx[/code]." msgstr "返回槽[code]idx[/code]的左边(输入)类型。" #: doc/classes/GraphNode.xml msgid "Returns the right (output) type of the slot [code]idx[/code]." msgstr "返回槽[code]idx[/code]的右边(输出)类型。" #: doc/classes/GraphNode.xml msgid "" "Returns [code]true[/code] if left (input) side of the slot [code]idx[/code] " "is enabled." msgstr "如果插槽[code]idx[/code]的左侧(输入)被启用,返回 [code]true[/code]。" #: doc/classes/GraphNode.xml msgid "" "Returns [code]true[/code] if right (output) side of the slot [code]idx[/" "code] is enabled." msgstr "如果插槽[code]idx[/code]的右侧(输出)被启用,返回 [code]true[/code]。" #: doc/classes/GraphNode.xml msgid "" "Sets properties of the slot with ID [code]idx[/code].\n" "If [code]enable_left[/code]/[code]right[/code], a port will appear and the " "slot will be able to be connected from this side.\n" "[code]type_left[/code]/[code]right[/code] is an arbitrary type of the port. " "Only ports with the same type values can be connected.\n" "[code]color_left[/code]/[code]right[/code] is the tint of the port's icon on " "this side.\n" "[code]custom_left[/code]/[code]right[/code] is a custom texture for this " "side's port.\n" "[b]Note:[/b] This method only sets properties of the slot. To create the " "slot, add a [Control]-derived child to the GraphNode.\n" "Individual properties can be set using one of the [code]set_slot_*[/code] " "methods. You must enable at least one side of the slot to do so." msgstr "" "设置ID为[code]idx[/code]的插槽的属性。\n" "如果[code]enable_left[/code]/[code]right[/code],就会出现一个端口,该插槽就可" "以从这一侧连接。\n" "[code]type_left[/code]/[code]right[/code]是端口的一个任意类型。只有具有相同类" "型值的端口才能被连接。\n" "[code]color_left[/code]/[code]right[/code]是端口在这一侧的图标的色调。\n" "[code]custom_left[/code]/[code]right[/code]是这一侧的端口的自定义纹理。\n" "[b]注意:[/b]这个方法只设置槽的属性。要创建槽,需要在GraphNode中添加一个" "[Control]的派生类。\n" "可以使用[code]set_slot_*[/code]方法之一来设置单个属性。你必须至少启用插槽的一" "边才能这样做。" #: doc/classes/GraphNode.xml msgid "" "Sets the [Color] of the left (input) side of the slot [code]idx[/code] to " "[code]color_left[/code]." msgstr "" "将插槽[code]idx[/code]左侧(输入)的颜色[Color]设置为[code]color_left[/" "code]。" #: doc/classes/GraphNode.xml msgid "" "Sets the [Color] of the right (output) side of the slot [code]idx[/code] to " "[code]color_right[/code]." msgstr "" "将插槽[code]idx[/code]的右侧(输出)的颜色[Color]设置为[code]color_right[/" "code]。" #: doc/classes/GraphNode.xml msgid "" "Toggles the left (input) side of the slot [code]idx[/code]. If " "[code]enable_left[/code] is [code]true[/code], a port will appear on the " "left side and the slot will be able to be connected from this side." msgstr "" "切换插槽的左侧(输入)[code]idx[/code]。\t如果[code]enable_left[/code]为 " "[code]true[/code],左边将出现一个端口,插槽将能够从这一边连接。" #: doc/classes/GraphNode.xml msgid "" "Toggles the right (output) side of the slot [code]idx[/code]. If " "[code]enable_right[/code] is [code]true[/code], a port will appear on the " "right side and the slot will be able to be connected from this side." msgstr "" "切换插槽的右侧(输出)[code]idx[/code]。如果[code]enable_right[/code]为 " "[code]true[/code],右侧将出现一个端口,插槽将能够从这一侧连接。" #: doc/classes/GraphNode.xml msgid "" "Sets the left (input) type of the slot [code]idx[/code] to [code]type_left[/" "code]." msgstr "将插槽[code]idx[/code]的左侧(输入)类型设置为[code]type_left[/code]。" #: doc/classes/GraphNode.xml msgid "" "Sets the right (output) type of the slot [code]idx[/code] to " "[code]type_right[/code]." msgstr "将插槽[code]idx[/code]的右(输出)类型设置为[code]type_right[/code]。" #: doc/classes/GraphNode.xml msgid "If [code]true[/code], the GraphNode is a comment node." msgstr "如果启用[code]true[/code],则GraphNode就是一个注释节点。" #: doc/classes/GraphNode.xml msgid "" "The offset of the GraphNode, relative to the scroll offset of the " "[GraphEdit].\n" "[b]Note:[/b] You cannot use position directly, as [GraphEdit] is a " "[Container]." msgstr "" "图形节点 GraphNode 的偏移量,与 [GraphEdit] 的滚动偏移量相关。\n" "[b]注意:[/b]由于 [GraphEdit] 是 [Container],因此不能直接使用位置。" #: doc/classes/GraphNode.xml msgid "Sets the overlay shown above the GraphNode. See [enum Overlay]." msgstr "设置在图形节点GraphNode上方显示的叠加层。参阅[enum Overlay]。" #: doc/classes/GraphNode.xml msgid "" "If [code]true[/code], the user can resize the GraphNode.\n" "[b]Note:[/b] Dragging the handle will only emit the [signal resize_request] " "signal, the GraphNode needs to be resized manually." msgstr "" "如果[code]true[/code],用户可以调整图形节点GraphNode的大小。\n" "[b]注意:[/b]拖动手柄只会发出 [signal resize_request] 信号,图形节点GraphNode" "需要手动调整大小。" #: doc/classes/GraphNode.xml msgid "If [code]true[/code], the GraphNode is selected." msgstr "如果[code]true[/code],图形节点GraphNode被选中。" #: doc/classes/GraphNode.xml msgid "" "If [code]true[/code], the close button will be visible.\n" "[b]Note:[/b] Pressing it will only emit the [signal close_request] signal, " "the GraphNode needs to be removed manually." msgstr "" "如果[code]true[/code],则关闭按钮将可见。\n" "[b]注意:[/b]按下它只会发出[signal close_request]信号,需要手动删除图形节点" "GraphNode。" #: doc/classes/GraphNode.xml msgid "The text displayed in the GraphNode's title bar." msgstr "显示在图形节点GraphNode标题栏中的文本。" #: doc/classes/GraphNode.xml msgid "" "Emitted when the GraphNode is requested to be closed. Happens on clicking " "the close button (see [member show_close])." msgstr "" "当图形节点GraphNode被请求关闭时发出。在点击关闭按钮时发生(见[member " "show_close])。" #: doc/classes/GraphNode.xml msgid "Emitted when the GraphNode is dragged." msgstr "当图形节点GraphNode被拖动时发出。" #: doc/classes/GraphNode.xml msgid "Emitted when the GraphNode is moved." msgstr "当图形节点GraphNode被移动时触发。" #: doc/classes/GraphNode.xml msgid "" "Emitted when the GraphNode is requested to be displayed over other ones. " "Happens on focusing (clicking into) the GraphNode." msgstr "" "当图形节点GraphNode被要求显示在其他节点之上时触发。在GraphNode获得焦点时触" "发,即鼠标点击进入。" #: doc/classes/GraphNode.xml msgid "" "Emitted when the GraphNode is requested to be resized. Happens on dragging " "the resizer handle (see [member resizable])." msgstr "" "当图形节点GraphNode被要求调整大小时发出。在拖动调整器手柄时发生(见[member " "resizable])。" #: doc/classes/GraphNode.xml msgid "Emitted when any GraphNode's slot is updated." msgstr "当任何图形节点的插槽更新时发出。" #: doc/classes/GraphNode.xml msgid "No overlay is shown." msgstr "没有显示覆盖层。" #: doc/classes/GraphNode.xml msgid "Show overlay set in the [code]breakpoint[/code] theme property." msgstr "显示在[code]breakpoint[/code]主题属性中设置的覆盖层。" #: doc/classes/GraphNode.xml msgid "Show overlay set in the [code]position[/code] theme property." msgstr "显示在主题坐标[code]position[/code]属性中设置的叠加层。" #: doc/classes/GraphNode.xml msgid "The color modulation applied to the close button icon." msgstr "应用于关闭按钮图标的颜色调制(modulation)。" #: doc/classes/GraphNode.xml msgid "The color modulation applied to the resizer icon." msgstr "应用于调整尺寸大小图标的颜色调制。" #: doc/classes/GraphNode.xml msgid "Color of the title text." msgstr "标题文字的颜色。" #: doc/classes/GraphNode.xml doc/classes/WindowDialog.xml msgid "The vertical offset of the close button." msgstr "关闭按钮的垂直偏移量。" #: doc/classes/GraphNode.xml msgid "Horizontal offset for the ports." msgstr "端口的水平偏移量。" #: doc/classes/GraphNode.xml msgid "The vertical distance between ports." msgstr "端口之间的垂直距离。" #: doc/classes/GraphNode.xml msgid "Vertical offset of the title text." msgstr "标题文本的垂直偏移量。" #: doc/classes/GraphNode.xml msgid "Font used for the title text." msgstr "对标题文本应用的字体。" #: doc/classes/GraphNode.xml msgid "" "The icon for the close button, visible when [member show_close] is enabled." msgstr "关闭按钮的图标会在启用[member show_close]时可见。" #: doc/classes/GraphNode.xml msgid "The icon used for representing ports." msgstr "该图标用于表示端口。" #: doc/classes/GraphNode.xml msgid "The icon used for resizer, visible when [member resizable] is enabled." msgstr "用于调整大小的图标,在 [member resizable]被启用时可见。" #: doc/classes/GraphNode.xml msgid "" "The background used when [member overlay] is set to [constant " "OVERLAY_BREAKPOINT]." msgstr "当[member overlay]被设置为[constant OVERLAY_BREAKPOINT]时使用的背景。" #: doc/classes/GraphNode.xml msgid "The [StyleBox] used when [member comment] is enabled." msgstr "当启用[member comment]时使用的[StyleBox]。" #: doc/classes/GraphNode.xml msgid "" "The [StyleBox] used when [member comment] is enabled and the [GraphNode] is " "focused." msgstr "当[member comment]被启用,且[GraphNode]获得焦点时使用的[StyleBox]。" #: doc/classes/GraphNode.xml msgid "The default background for [GraphNode]." msgstr "[GraphNode] 的默认背景。" #: doc/classes/GraphNode.xml msgid "" "The background used when [member overlay] is set to [constant " "OVERLAY_POSITION]." msgstr "当 [member overlay] 设置为 [constant OVERLAY_POSITION] 时使用的背景。" #: doc/classes/GraphNode.xml msgid "The background used when the [GraphNode] is selected." msgstr "[GraphNode] 被选中时使用的背景。" #: doc/classes/GridContainer.xml msgid "" "Grid container used to arrange Control-derived children in a grid like " "layout." msgstr "网格容器,用于将派生自 Control 的子节点按照类似网格的形式排列。" #: doc/classes/GridContainer.xml msgid "" "GridContainer will arrange its Control-derived children in a grid like " "structure, the grid columns are specified using the [member columns] " "property and the number of rows will be equal to the number of children in " "the container divided by the number of columns. For example, if the " "container has 5 children, and 2 columns, there will be 3 rows in the " "container.\n" "Notice that grid layout will preserve the columns and rows for every size of " "the container, and that empty columns will be expanded automatically.\n" "[b]Note:[/b] GridContainer only works with child nodes inheriting from " "Control. It won't rearrange child nodes inheriting from Node2D." msgstr "" "GridContainer 将把它的 Control 派生的子节点排布在一个类似网格的结构中,网格的" "列数由 [member columns] 属性指定,行数等于容器中子节点的数量除以列数。例如," "如果容器有 5 个子节点、2 列,那么容器中就会有 3 行。\n" "请注意,网格布局将保留每个大小的容器的列和行,并且空列将自动扩展。\n" "[b]注意:[/b]GridContainer 只对继承自 Control 的子节点生效。它不会重新排列继" "承自 Node2D 的子节点。" #: doc/classes/GridContainer.xml msgid "" "The number of columns in the [GridContainer]. If modified, [GridContainer] " "reorders its Control-derived children to accommodate the new layout." msgstr "" "[GridContainer] 中的列数。修改后,[GridContainer] 会重新排列其派生自 Control " "的子节点,以适应新的布局。" #: doc/classes/GridContainer.xml doc/classes/HFlowContainer.xml #: doc/classes/VFlowContainer.xml msgid "The horizontal separation of children nodes." msgstr "子节点的水平分隔量。" #: doc/classes/GridContainer.xml doc/classes/HFlowContainer.xml #: doc/classes/VFlowContainer.xml msgid "The vertical separation of children nodes." msgstr "子节点的垂直分隔量。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Node for 3D tile-based maps." msgstr "基于 3D 图块地图的节点。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "GridMap lets you place meshes on a grid interactively. It works both from " "the editor and from scripts, which can help you create in-game level " "editors.\n" "GridMaps use a [MeshLibrary] which contains a list of tiles. Each tile is a " "mesh with materials plus optional collision and navigation shapes.\n" "A GridMap contains a collection of cells. Each grid cell refers to a tile in " "the [MeshLibrary]. All cells in the map have the same dimensions.\n" "Internally, a GridMap is split into a sparse collection of octants for " "efficient rendering and physics processing. Every octant has the same " "dimensions and can contain several cells.\n" "[b]Note:[/b] GridMap doesn't extend [VisualInstance] and therefore can't be " "hidden or cull masked based on [member VisualInstance.layers]. If you make a " "light not affect the first layer, the whole GridMap won't be lit by the " "light in question." msgstr "" "GridMap 允许你以交互方式将模型网格(Mesh)放置在位置网格(Grid)上。它既可以" "在编辑器中进行,也可以从脚本中进行,这可以帮助你在游戏中创建关卡编辑器。\n" "GridMaps 使用 [MeshLibrary],其中包含了一个图块的列表。每一个图块都是一个带有" "材质的网格,加上可选的碰撞和导航形状。\n" "GridMap 包含一个单元格的集合。每个网格单元指的是 [MeshLibrary] 中的一个图块。" "地图中的所有单元都有相同的尺寸。\n" "在内部,GridMap 被分割成一个松散的八边形集合,以便有效地进行渲染和物理处理。" "每个八角形都有相同的尺寸,可以包含多个单元。\n" "[b]注意:[/b]GridMap 没有扩展 [VisualInstance],因此无法根据 [member " "VisualInstance.layers] 进行隐藏或剔除遮挡。如果你让灯光不影响第一层,整个 " "GridMap 就都不会被相关的灯光照亮。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Using gridmaps" msgstr "使用网格地图" #: modules/gridmap/doc_classes/GridMap.xml msgid "Clear all cells." msgstr "清除所有单元格。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Returns an array of [ArrayMesh]es and [Transform] references of all bake " "meshes that exist within the current GridMap." msgstr "" "返回当前 GridMap 中存在的所有烘焙网格的 [ArrayMesh] 和 [Transform] 引用的数" "组。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The [MeshLibrary] item index located at the grid-based X, Y and Z " "coordinates. If the cell is empty, [constant INVALID_CELL_ITEM] will be " "returned." msgstr "" "[MeshLibrary] 项目索引位于基于网格的 X、Y 和 Z 坐标处。如果单元格为空,则返" "回 [constant INVALID_CELL_ITEM]。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The orientation of the cell at the grid-based X, Y and Z coordinates. -1 is " "returned if the cell is empty." msgstr "单元格在基于网格的 X、Y 和 Z 坐标处的方向。如果单元格为空,则返回 -1。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Returns an individual bit on the [member collision_layer]." msgstr "返回 [member collision_layer] 上的一个单独比特位。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Returns an individual bit on the [member collision_mask]." msgstr "返回 [member collision_mask] 上的一个单独比特位。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Returns an array of [Transform] and [Mesh] references corresponding to the " "non-empty cells in the grid. The transforms are specified in world space." msgstr "" "返回对应于网格中非空单元格的 [Transform] 和 [Mesh] 引用数组。变换在世界空间中" "指定。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Returns an array of [Vector3] with the non-empty cell coordinates in the " "grid map." msgstr "返回一个包含网格中非空单元格坐标的 [Vector3] 数组。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Returns an array of all cells with the given item index specified in " "[code]item[/code]." msgstr "返回所有具有 [code]item[/code] 中指定的项目索引的单元格的数组。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Returns the position of a grid cell in the GridMap's local coordinate space." msgstr "返回一个网格单元在 GridMap 本地坐标空间中的位置。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Sets the mesh index for the cell referenced by its grid-based X, Y and Z " "coordinates.\n" "A negative item index such as [constant INVALID_CELL_ITEM] will clear the " "cell.\n" "Optionally, the item's orientation can be passed. For valid orientation " "values, see [method Basis.get_orthogonal_index]." msgstr "" "设置由基于网格的 X、Y 和 Z 坐标引用的单元格的网格索引。\n" "负的项目索引将清除单元格,例如 [constant INVALID_CELL_ITEM]。\n" "或者,可以传递项目的方向。相关有效的方向值,请参阅 [method Basis." "get_orthogonal_index]。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Sets an individual bit on the [member collision_layer]." msgstr "在 [member collision_layer] 上设置单独的比特位。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Sets an individual bit on the [member collision_mask]." msgstr "在 [member collision_mask] 上设置单独的比特位。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Returns the coordinates of the grid cell containing the given point.\n" "[code]pos[/code] should be in the GridMap's local coordinate space." msgstr "" "返回包含给定点的网格单元的坐标。\n" "[code]pos[/code] 应该使用 GridMap 的本地坐标空间。" #: modules/gridmap/doc_classes/GridMap.xml msgid "If [code]true[/code], grid items are centered on the X axis." msgstr "如果为 [code]true[/code],则网格项以 X 轴为中心。" #: modules/gridmap/doc_classes/GridMap.xml msgid "If [code]true[/code], grid items are centered on the Y axis." msgstr "如果为 [code]true[/code],则网格项以 Y 轴为中心。" #: modules/gridmap/doc_classes/GridMap.xml msgid "If [code]true[/code], grid items are centered on the Z axis." msgstr "如果为 [code]true[/code],则网格项以 Z 轴为中心。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The size of each octant measured in number of cells. This applies to all " "three axis." msgstr "每个八分圆的大小以单元格的数量衡量。适用于全部三个轴。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The scale of the cell items.\n" "This does not affect the size of the grid cells themselves, only the items " "in them. This can be used to make cell items overlap their neighbors." msgstr "" "单元格项目的比例。\n" "这不会影响网格单元本身的大小,只会影响其中的项目。这可用于使单元格项目与其邻" "居重叠。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The dimensions of the grid's cells.\n" "This does not affect the size of the meshes. See [member cell_scale]." msgstr "" "网格单元的尺寸。\n" "这并不影响网格的尺寸大小。参阅 [member cell_scale]。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The physics layers this GridMap is in.\n" "GridMaps act as static bodies, meaning they aren't affected by gravity or " "other forces. They only affect other physics bodies that collide with them." msgstr "" "这个 GridMap 所处的物理层。\n" "GridMap 作为静态体,意味着它们不会受到重力或是其他力的影响。它们只会受到其他" "与它们碰撞的物理体的影响。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "The physics layers this GridMap detects collisions in. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "此 GridMap 检测碰撞的物理层。更多信息请参阅文档[url=$DOCS_URL/tutorials/" "physics/physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》" "[/url]。" #: modules/gridmap/doc_classes/GridMap.xml msgid "The assigned [MeshLibrary]." msgstr "指定的 [MeshLibrary]。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Overrides the default friction and bounce physics properties for the whole " "[GridMap]." msgstr "覆盖整个 [GridMap] 的默认摩擦力和反弹物理属性。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Controls whether this GridMap will be baked in a [BakedLightmap] or not." msgstr "控制此 GridMap 是否会在 [BakedLightmap] 中烘焙。" #: modules/gridmap/doc_classes/GridMap.xml msgid "Emitted when [member cell_size] changes." msgstr "当 [member cell_size] 改变时触发。" #: modules/gridmap/doc_classes/GridMap.xml msgid "" "Invalid cell item that can be used in [method set_cell_item] to clear cells " "(or represent an empty cell in [method get_cell_item])." msgstr "" "可以在 [method set_cell_item] 中清除单元格(或在 [method get_cell_item] 中重" "新代表一个空的单元格)的无效单元格。" #: doc/classes/GrooveJoint2D.xml msgid "Groove constraint for 2D physics." msgstr "2D 物理的沟槽约束。" #: doc/classes/GrooveJoint2D.xml msgid "" "Groove constraint for 2D physics. This is useful for making a body \"slide\" " "through a segment placed in another." msgstr "" "2D 物理的沟槽约束。这对于使一个物体“滑过”放置在另一个物体上的区段很有用。" #: doc/classes/GrooveJoint2D.xml msgid "" "The body B's initial anchor position defined by the joint's origin and a " "local offset [member initial_offset] along the joint's Y axis (along the " "groove)." msgstr "" "这个物体B的初始锚点位置,由关键的原点和沿关节Y轴(沿着沟槽)的局部偏移 " "[member initial_offset] 定义。" #: doc/classes/GrooveJoint2D.xml msgid "" "The groove's length. The groove is from the joint's origin towards [member " "length] along the joint's local Y axis." msgstr "沟槽的长度。沟槽是从关键原点沿着关节局部 Y 轴朝向 [member length] 。" #: doc/classes/HashingContext.xml msgid "Context to compute cryptographic hashes over multiple iterations." msgstr "在多次迭代中计算加密哈希的上下文。" #: doc/classes/HashingContext.xml msgid "" "The HashingContext class provides an interface for computing cryptographic " "hashes over multiple iterations. This is useful for example when computing " "hashes of big files (so you don't have to load them all in memory), network " "streams, and data streams in general (so you don't have to hold buffers).\n" "The [enum HashType] enum shows the supported hashing algorithms.\n" "[codeblock]\n" "const CHUNK_SIZE = 1024\n" "\n" "func hash_file(path):\n" " var ctx = HashingContext.new()\n" " var file = File.new()\n" " # Start a SHA-256 context.\n" " ctx.start(HashingContext.HASH_SHA256)\n" " # Check that file exists.\n" " if not file.file_exists(path):\n" " return\n" " # Open the file to hash.\n" " file.open(path, File.READ)\n" " # Update the context after reading each chunk.\n" " while not file.eof_reached():\n" " ctx.update(file.get_buffer(CHUNK_SIZE))\n" " # Get the computed hash.\n" " var res = ctx.finish()\n" " # Print the result as hex string and array.\n" " printt(res.hex_encode(), Array(res))\n" "[/codeblock]" msgstr "" "HashingContext 类为计算多次迭代的加密哈希值提供接口。例如,当计算大文件的哈希" "值(你不必在内存中加载它们)、网络流和一般的数据流(你不必持有缓冲区)时,这" "很有用。\n" "[enum HashType] 枚举显示了支持的哈希算法。\n" "[codeblock]\n" "const CHUNK_SIZE = 1024\n" "\n" "func hash_file(path):\n" " var ctx = HashingContext.new()\n" " var file = File.new()\n" " # 开始一个 SHA-256 context。\n" " ctx.start(HashingContext.HASH_SHA256)\n" " # 检查文件是否存在。\n" " if not file.file_exists(path):\n" " return\n" " # 打开文件的哈希。\n" " file.open(path, File.READ)\n" " # 在读取每一区块后,更新上下文。\n" " while not file.eof_reached():\n" " ctx.update(file.get_buffer(CHUNK_SIZE))\n" " # 获取计算的哈希值。\n" " var res = ctx.finish()\n" " # 以十六进制字符串和数组的形式打印结果。\n" " printt(res.hex_encode(), Array(res))\n" "[/codeblock]" #: doc/classes/HashingContext.xml msgid "Closes the current context, and return the computed hash." msgstr "关闭当前上下文,并返回计算出的哈希值。" #: doc/classes/HashingContext.xml msgid "" "Starts a new hash computation of the given [code]type[/code] (e.g. [constant " "HASH_SHA256] to start computation of a SHA-256)." msgstr "" "开始对给定的 [code]type[/code] (例如 [constant HASH_SHA256] 进行新的哈希计" "算, 以开始计算 SHA-256) 。" #: doc/classes/HashingContext.xml msgid "Updates the computation with the given [code]chunk[/code] of data." msgstr "使用给定的 [code]chunk[/code] 数据更新计算。" #: doc/classes/HashingContext.xml msgid "Hashing algorithm: MD5." msgstr "哈希算法:MD5。" #: doc/classes/HashingContext.xml msgid "Hashing algorithm: SHA-1." msgstr "哈希算法:SHA-1。" #: doc/classes/HashingContext.xml msgid "Hashing algorithm: SHA-256." msgstr "哈希算法:SHA-256。" #: doc/classes/HBoxContainer.xml msgid "Horizontal box container." msgstr "水平盒式容器。" #: doc/classes/HBoxContainer.xml msgid "Horizontal box container. See [BoxContainer]." msgstr "水平盒式容器。请参阅 [BoxContainer]。" #: doc/classes/HBoxContainer.xml msgid "The horizontal space between the [HBoxContainer]'s elements." msgstr "[HBoxContainer] 的元素之间的水平间隙。" #: doc/classes/HeightMapShape.xml msgid "Height map shape for 3D physics." msgstr "3D 物理的高度图形状。" #: doc/classes/HeightMapShape.xml msgid "" "Height map shape resource, which can be added to a [PhysicsBody] or [Area]." msgstr "高度图形状资源,可以添加到 [PhysicsBody] 或 [Area] 中。" #: doc/classes/HeightMapShape.xml msgid "" "Height map data, pool array must be of [member map_width] * [member " "map_depth] size." msgstr "" "高度图数据,池数组的大小必须是 [member map_width] * [member map_depth]。" #: doc/classes/HeightMapShape.xml msgid "" "Number of vertices in the depth of the height map. Changing this will resize " "the [member map_data]." msgstr "高度图深度的顶点数。更改此设置将调整 [member map_data] 的大小。" #: doc/classes/HeightMapShape.xml msgid "" "Number of vertices in the width of the height map. Changing this will resize " "the [member map_data]." msgstr "高度图宽度的顶点数。更改此设置将调整 [member map_data] 的大小。" #: doc/classes/HFlowContainer.xml msgid "Horizontal flow container." msgstr "水平流式容器。" #: doc/classes/HFlowContainer.xml msgid "Horizontal version of [FlowContainer]." msgstr "[FlowContainer] 的水平版本。" #: doc/classes/HingeJoint.xml msgid "A hinge between two 3D PhysicsBodies." msgstr "两个 3D PhysicsBody 之间的铰链。" #: doc/classes/HingeJoint.xml msgid "" "A HingeJoint normally uses the Z axis of body A as the hinge axis, another " "axis can be specified when adding it manually though. See also " "[Generic6DOFJoint]." msgstr "" "HingeJoint(铰链关节)通常使用物体 A 的 Z 轴作为铰链轴,但手动添加时可以指定" "另一个轴。请参阅 [Generic6DOFJoint]。" #: doc/classes/HingeJoint.xml doc/classes/Label3D.xml #: doc/classes/SpriteBase3D.xml msgid "Returns the value of the specified flag." msgstr "返回指定标志的值。" #: doc/classes/HingeJoint.xml doc/classes/ParticlesMaterial.xml #: doc/classes/PinJoint.xml msgid "Returns the value of the specified parameter." msgstr "返回指定参数的值。" #: doc/classes/HingeJoint.xml msgid "If [code]true[/code], enables the specified flag." msgstr "如果为 [code]true[/code],启用指定的标志。" #: doc/classes/HingeJoint.xml doc/classes/PinJoint.xml msgid "Sets the value of the specified parameter." msgstr "设置指定参数的值。" #: doc/classes/HingeJoint.xml doc/classes/PhysicsServer.xml msgid "" "The speed with which the rotation across the axis perpendicular to the hinge " "gets corrected." msgstr "垂直于铰链的轴线上的旋转得到纠正的速度。" #: doc/classes/HingeJoint.xml msgid "" "If [code]true[/code], the hinges maximum and minimum rotation, defined by " "[member angular_limit/lower] and [member angular_limit/upper] has effects." msgstr "" "如果为 [code]true[/code],则会对由[member angular_limit/lower]和[member " "angular_limit/upper]定义的铰链最大和最小旋转量产生影响。" #: doc/classes/HingeJoint.xml msgid "" "The minimum rotation. Only active if [member angular_limit/enable] is " "[code]true[/code]." msgstr "" "最小的旋转量。只有在[member angular_limit/enable]为 [code]true[/code] 时才有" "效。" #: doc/classes/HingeJoint.xml doc/classes/PhysicsServer.xml msgid "The lower this value, the more the rotation gets slowed down." msgstr "该值越低,旋转速度越慢。" #: doc/classes/HingeJoint.xml msgid "" "The maximum rotation. Only active if [member angular_limit/enable] is " "[code]true[/code]." msgstr "" "最大的旋转量。只有在[member angular_limit/enable]为 [code]true[/code] 时才有" "效。" #: doc/classes/HingeJoint.xml msgid "When activated, a motor turns the hinge." msgstr "激活后,电机会使铰链转动。" #: doc/classes/HingeJoint.xml doc/classes/PhysicsServer.xml msgid "Maximum acceleration for the motor." msgstr "马达的最大加速度。" #: doc/classes/HingeJoint.xml doc/classes/PhysicsServer.xml msgid "Target speed for the motor." msgstr "目标马达的目标速度。" #: doc/classes/HingeJoint.xml doc/classes/PhysicsServer.xml msgid "" "The speed with which the two bodies get pulled together when they move in " "different directions." msgstr "两个物体向不同方向移动时被拉回到一起的速度。" #: doc/classes/HMACContext.xml msgid "Used to create an HMAC for a message using a key." msgstr "用来为一个使用密钥的信息创建 HMAC。" #: doc/classes/HMACContext.xml msgid "" "The HMACContext class is useful for advanced HMAC use cases, such as " "streaming the message as it supports creating the message over time rather " "than providing it all at once.\n" "[codeblock]\n" "extends Node\n" "var ctx = HMACContext.new()\n" "\n" "func _ready():\n" " var key = \"supersecret\".to_utf8()\n" " var err = ctx.start(HashingContext.HASH_SHA256, key)\n" " assert(err == OK)\n" " var msg1 = \"this is \".to_utf8()\n" " var msg2 = \"super duper secret\".to_utf8()\n" " err = ctx.update(msg1)\n" " assert(err == OK)\n" " err = ctx.update(msg2)\n" " assert(err == OK)\n" " var hmac = ctx.finish()\n" " print(hmac.hex_encode())\n" "[/codeblock]\n" "And in C# we can use the following.\n" "[codeblock]\n" "using Godot;\n" "using System;\n" "using System.Diagnostics;\n" "\n" "public class CryptoNode : Node\n" "{\n" " private HMACContext ctx = new HMACContext();\n" " public override void _Ready()\n" " {\n" " PoolByteArray key = String(\"supersecret\").to_utf8();\n" " Error err = ctx.Start(HashingContext.HASH_SHA256, key);\n" " GD.Assert(err == OK);\n" " PoolByteArray msg1 = String(\"this is \").to_utf8();\n" " PoolByteArray msg2 = String(\"super duper secret\").to_utf8();\n" " err = ctx.Update(msg1);\n" " GD.Assert(err == OK);\n" " err = ctx.Update(msg2);\n" " GD.Assert(err == OK);\n" " PoolByteArray hmac = ctx.Finish();\n" " GD.Print(hmac.HexEncode());\n" " }\n" "}\n" "[/codeblock]\n" "[b]Note:[/b] Not available in HTML5 exports." msgstr "" "HMACContext 类对于高级的 HMAC 用例非常有用,例如流式消息,因为它支持在一段时" "间内创建消息,而不是一次性提供。\n" "[codeblock]\n" "extends Node\n" "var ctx = HMACContext.new()\n" "\n" "func _ready():\n" " var key = \"supersecret\".to_utf8()\n" " var err = ctx.start(HashingContext.HASH_SHA256, key)\n" " assert(err == OK)\n" " var msg1 = \"this is \".to_utf8()\n" " var msg2 = \"super duper secret\".to_utf8()\n" " err = ctx.update(msg1)\n" " assert(err == OK)\n" " err = ctx.update(msg2)\n" " assert(err == OK)\n" " var hmac = ctx.finish()\n" " print(hmac.hex_encode())\n" "[/codeblock]\n" "而在 C# 中,我们可以使用下面的方法。\n" "[codeblock]\n" "using Godot;\n" "using System;\n" "using System.Diagnostics;\n" "\n" "public class CryptoNode : Node\n" "{\n" " private HMACContext ctx = new HMACContext();\n" " public override void _Ready()\n" " {\n" " PoolByteArray key = String(\"supersecret\").to_utf8();\n" " Error err = ctx.Start(HashingContext.HASH_SHA256, key);\n" " GD.Assert(err == OK);\n" " PoolByteArray msg1 = String(\"this is \").to_utf8();\n" " PoolByteArray msg2 = String(\"super duper secret\").to_utf8();\n" " err = ctx.Update(msg1);\n" " GD.Assert(err == OK);\n" " err = ctx.Update(msg2);\n" " GD.Assert(err == OK);\n" " PoolByteArray hmac = ctx.Finish();\n" " GD.Print(hmac.HexEncode());\n" " }\n" "}\n" "[/codeblock]\n" "[b]注意:[/b]在 HTML5 导出中不可用。" #: doc/classes/HMACContext.xml msgid "" "Returns the resulting HMAC. If the HMAC failed, an empty [PoolByteArray] is " "returned." msgstr "返回生成的 HMAC。如果 HMAC 失败,将返回一个空的 [PoolByteArray]。" #: doc/classes/HMACContext.xml msgid "" "Initializes the HMACContext. This method cannot be called again on the same " "HMACContext until [method finish] has been called." msgstr "" "初始化 HMACContext。在 [method finish] 被调用之前,不能在同一个 HMACContext " "上再次调用此方法。" #: doc/classes/HMACContext.xml msgid "" "Updates the message to be HMACed. This can be called multiple times before " "[method finish] is called to append [code]data[/code] to the message, but " "cannot be called until [method start] has been called." msgstr "" "更新要进行 HMAC 的消息。在调用 [method finish] 将 [code]data[/code] 追加到消" "息中之前,可以多次调用,但在调用 [method start] 之前不能调用。" #: doc/classes/HScrollBar.xml msgid "Horizontal scroll bar." msgstr "水平滚动条。" #: doc/classes/HScrollBar.xml msgid "" "Horizontal version of [ScrollBar], which goes from left (min) to right (max)." msgstr "[ScrollBar] 的水平版本,滚动条从左(最小)到右(最大)。" #: doc/classes/HScrollBar.xml msgid "" "Icon used as a button to scroll the [ScrollBar] left. Supports custom step " "using the [member ScrollBar.custom_step] property." msgstr "" "作为按钮使用的图标,它用于使 [ScrollBar] 向左滚动。滚动步长由 [member " "ScrollBar.custom_step] 属性值自定义。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Displayed when the mouse cursor hovers over the decrement button." msgstr "当鼠标指针悬停在递减按钮上时显示。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Displayed when the decrement button is being pressed." msgstr "在按下递减按钮时显示。" #: doc/classes/HScrollBar.xml msgid "" "Icon used as a button to scroll the [ScrollBar] right. Supports custom step " "using the [member ScrollBar.custom_step] property." msgstr "" "作为按钮使用的图标,它用于使 [ScrollBar] 向右滚动。滚动步长由 [member " "ScrollBar.custom_step] 属性值自定义。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Displayed when the mouse cursor hovers over the increment button." msgstr "当鼠标指针悬停在增量按钮上时显示。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Displayed when the increment button is being pressed." msgstr "在按下增量按钮时显示。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "" "Used as texture for the grabber, the draggable element representing current " "scroll." msgstr "用作拖动条的纹理,表示当前的可拖动元素。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Used when the mouse hovers over the grabber." msgstr "当鼠标悬停在拖动条上时使用。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Used when the grabber is being dragged." msgstr "在拖动条被拖动时使用。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Used as background of this [ScrollBar]." msgstr "用作此 [ScrollBar] 的背景。" #: doc/classes/HScrollBar.xml doc/classes/VScrollBar.xml msgid "Used as background when the [ScrollBar] has the GUI focus." msgstr "当 [ScrollBar] 具有 GUI 焦点时用作背景。" #: doc/classes/HSeparator.xml msgid "Horizontal separator." msgstr "水平分隔符。" #: doc/classes/HSeparator.xml msgid "" "Horizontal separator. See [Separator]. Even though it looks horizontal, it " "is used to separate objects vertically." msgstr "" "水平分离器。见 [Separator]。尽管它看起来是水平的,但被用于垂直分隔对象。" #: doc/classes/HSeparator.xml msgid "" "The height of the area covered by the separator. Effectively works like a " "minimum height." msgstr "分隔符覆盖区域的高度。如同最小高度一样有效地工作。" #: doc/classes/HSeparator.xml msgid "The style for the separator line. Works best with [StyleBoxLine]." msgstr "分隔符的样式。与 [StyleBoxLine] 配合使用效果更佳。" #: doc/classes/HSlider.xml msgid "Horizontal slider." msgstr "水平滑动条。" #: doc/classes/HSlider.xml msgid "" "Horizontal slider. See [Slider]. This one goes from left (min) to right " "(max).\n" "[b]Note:[/b] The [signal Range.changed] and [signal Range.value_changed] " "signals are part of the [Range] class which this class inherits from." msgstr "" "水平滑动条。请参阅 [Slider]。这个控件是从左(最小)滑到右(最大)的。\n" "[b]注意:[/b][signal Range.changed] 和 [signal Range.value_changed] 信号是 " "[Range] 类的一部分,该类继承自它。" #: doc/classes/HSlider.xml doc/classes/VSlider.xml msgid "The texture for the grabber (the draggable element)." msgstr "用作拖动条的纹理(可拖动的元素)。" #: doc/classes/HSlider.xml doc/classes/VSlider.xml msgid "The texture for the grabber when it's disabled." msgstr "抓取器禁用时的材质。" #: doc/classes/HSlider.xml doc/classes/VSlider.xml msgid "The texture for the grabber when it's focused." msgstr "抓取器获得焦点时的材质。" #: doc/classes/HSlider.xml doc/classes/VSlider.xml msgid "" "The texture for the ticks, visible when [member Slider.tick_count] is " "greater than 0." msgstr "刻度的纹理。当 [member Slider.tick_count] 大于 0 时可见。" #: doc/classes/HSlider.xml msgid "The background of the area to the left of the grabber." msgstr "抓取器左侧区域的背景。" #: doc/classes/HSlider.xml msgid "" "The background for the whole slider. Determines the height of the " "[code]grabber_area[/code]." msgstr "整个滑动条的背景。受 [code]grabber_area[/code] 高度的影响。" #: doc/classes/HSplitContainer.xml msgid "Horizontal split container." msgstr "水平拆分容器。" #: doc/classes/HSplitContainer.xml msgid "" "Horizontal split container. See [SplitContainer]. This goes from left to " "right." msgstr "水平拆分容器。参阅[SplitContainer]。从左到右。" #: doc/classes/HSplitContainer.xml doc/classes/VSplitContainer.xml msgid "" "Boolean value. If 1 ([code]true[/code]), the grabber will hide automatically " "when it isn't under the cursor. If 0 ([code]false[/code]), it's always " "visible." msgstr "" "布尔值。如果1 ([code]true[/code]),抓取器将在不在光标下时自动隐藏。如果0 " "([code]false[/code]),抓取器总是可见。" #: doc/classes/HSplitContainer.xml doc/classes/VSplitContainer.xml msgid "The space between sides of the container." msgstr "容器两侧之间的空间。" #: doc/classes/HSplitContainer.xml doc/classes/VSplitContainer.xml msgid "The icon used for the grabber drawn in the middle area." msgstr "在中间区域绘制的抓取图标。" #: doc/classes/HTTPClient.xml msgid "Low-level hyper-text transfer protocol client." msgstr "低级别的超文本传输协议客户端。" #: doc/classes/HTTPClient.xml msgid "" "Hyper-text transfer protocol client (sometimes called \"User Agent\"). Used " "to make HTTP requests to download web content, upload files and other data " "or to communicate with various services, among other use cases. [b]See the " "[HTTPRequest] node for a higher-level alternative.[/b]\n" "[b]Note:[/b] This client only needs to connect to a host once (see [method " "connect_to_host]) to send multiple requests. Because of this, methods that " "take URLs usually take just the part after the host instead of the full URL, " "as the client is already connected to a host. See [method request] for a " "full example and to get started.\n" "A [HTTPClient] should be reused between multiple requests or to connect to " "different hosts instead of creating one client per request. Supports SSL and " "SSL server certificate verification. HTTP status codes in the 2xx range " "indicate success, 3xx redirection (i.e. \"try again, but over here\"), 4xx " "something was wrong with the request, and 5xx something went wrong on the " "server's side.\n" "For more information on HTTP, see https://developer.mozilla.org/en-US/docs/" "Web/HTTP (or read RFC 2616 to get it straight from the source: https://tools." "ietf.org/html/rfc2616).\n" "[b]Note:[/b] When performing HTTP requests from a project exported to HTML5, " "keep in mind the remote server may not allow requests from foreign origins " "due to [url=https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS]CORS[/" "url]. If you host the server in question, you should modify its backend to " "allow requests from foreign origins by adding the [code]Access-Control-Allow-" "Origin: *[/code] HTTP header.\n" "[b]Note:[/b] SSL/TLS support is currently limited to TLS 1.0, TLS 1.1, and " "TLS 1.2. Attempting to connect to a TLS 1.3-only server will return an " "error.\n" "[b]Warning:[/b] SSL/TLS certificate revocation and certificate pinning are " "currently not supported. Revoked certificates are accepted as long as they " "are otherwise valid. If this is a concern, you may want to use automatically " "managed certificates with a short validity period." msgstr "" "超文本传输协议客户端,有时称为“用户代理”。用于发出 HTTP 请求,以下载网络内" "容、上传文件和其他数据,或与各种服务进行通信,以及其他情况。[b]更高级的替代方" "案请参阅 [HTTPRequest] 节点[/b] 。\n" "[b]注意:[/b]这个客户端只需要连接主机一次就可以发送多个请求,参阅 [method " "connect_to_host]。因此,获取 URL 的方法通常只获取主机后面的部分,而不是完整" "的 URL,因为客户端已经连接到了一个主机。参阅 [method request]以获得完整的例" "子,并开始使用。\n" "[HTTPClient] 应该在多个请求中重复使用,或者连接到不同的主机,而不是每个请求创" "建一个客户端。它支持 SSL 和 SSL 服务器证书验证。HTTP 状态代码在 2xx 范围内表" "示成功,3xx 表示重定向,即“请在这里重试”,4xx 表示请求出了问题,5xx 表示服务" "器端出了问题。\n" "关于 HTTP 的更多信息,请参阅 https://developer.mozilla.org/en-US/docs/Web/" "HTTP,或者阅读 RFC 2616,直接从源头上了解:https://tools.ietf.org/html/" "rfc2616。\n" "[b]注意:[/b]当从导出到 HTML5 的项目中执行 HTTP 请求时,请记住远程服务器可能" "由于 [url=https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS]CORS[/url] " "而不允许来自站外的请求。如果是你托管的服务器,应该修改其后台,为其添加 " "[code]Access-Control-Allow-Origin:*[/code] HTTP 头。\n" "[b]注意:[/b]SSL/TLS 支持目前仅限于 TLS 1.0、TLS 1.1 和 TLS 1.2。试图连接到一" "个只有 TLS 1.3 的服务器将返回一个错误。\n" "[b]警告:[/b]目前不支持 SSL/TLS 证书撤销和证书绑定。撤销的证书只要在其他方面" "是有效的,就可以接受。如果这是个问题,你可能想使用自动管理的有效期短的证书。" #: doc/classes/HTTPClient.xml msgid "Closes the current connection, allowing reuse of this [HTTPClient]." msgstr "关闭当前连接,允许重用此[HTTPClient]。" #: doc/classes/HTTPClient.xml msgid "" "Connects to a host. This needs to be done before any requests are sent.\n" "The host should not have http:// prepended but will strip the protocol " "identifier if provided.\n" "If no [code]port[/code] is specified (or [code]-1[/code] is used), it is " "automatically set to 80 for HTTP and 443 for HTTPS (if [code]use_ssl[/code] " "is enabled).\n" "[code]verify_host[/code] will check the SSL identity of the host if set to " "[code]true[/code]." msgstr "" "连接到主机。需要在发送任何请求前执行。\n" "主机不应该带有 http:// 前缀,如果有的话协议标识符会被剥离。\n" "如果未指定 [code]port[/code](或者使用的是 [code]-1[/code]),默认 HTTP 会使" "用 80,HTTPS(启用了 [code]use_ssl[/code])会使用 443。\n" "[code]verify_host[/code] 设为 [code]true[/code] 时会检查主机的 SSL 身份。" #: doc/classes/HTTPClient.xml msgid "" "Returns the response's body length.\n" "[b]Note:[/b] Some Web servers may not send a body length. In this case, the " "value returned will be [code]-1[/code]. If using chunked transfer encoding, " "the body length will also be [code]-1[/code]." msgstr "" "返回响应体长度。\n" "[b]注意:[/b]部分 Web 服务器可能不发送响应体长度,此时返回值将为 [code]-1[/" "code]。如果使用分块传输编码,响应体的长度也将为 [code]-1[/code]。" #: doc/classes/HTTPClient.xml msgid "Returns the response's HTTP status code." msgstr "返回响应的 HTTP 状态码。" #: doc/classes/HTTPClient.xml msgid "Returns the response headers." msgstr "返回响应报头。" #: doc/classes/HTTPClient.xml msgid "" "Returns all response headers as a Dictionary of structure [code]{ \"key\": " "\"value1; value2\" }[/code] where the case-sensitivity of the keys and " "values is kept like the server delivers it. A value is a simple String, this " "string can have more than one value where \"; \" is used as separator.\n" "[b]Example:[/b]\n" "[codeblock]\n" "{\n" " \"content-length\": 12,\n" " \"Content-Type\": \"application/json; charset=UTF-8\",\n" "}\n" "[/codeblock]" msgstr "" "返回所有响应报头,是 [code]{ \"报头字段名称\": \"字段取值1; 字段取值2\" }[/" "code] 格式的字典,字典的键和值均保持服务器所发送的大小写。字段取值为简单的 " "String,该字符串可能包含多个值,使用“; ”分隔。\n" "[b]示例:[/b]\n" "[codeblock]\n" "{\n" " \"content-length\": 12,\n" " \"Content-Type\": \"application/json; charset=UTF-8\",\n" "}\n" "[/codeblock]" #: doc/classes/HTTPClient.xml msgid "" "Returns a [enum Status] constant. Need to call [method poll] in order to get " "status updates." msgstr "返回 [enum Status] 常量。需要调用 [method poll]]才能更新状态。" #: doc/classes/HTTPClient.xml msgid "If [code]true[/code], this [HTTPClient] has a response available." msgstr "为 [code]true[/code] 时,则该 [HTTPClient] 有可用的响应。" #: doc/classes/HTTPClient.xml msgid "If [code]true[/code], this [HTTPClient] has a response that is chunked." msgstr "为 [code]true[/code] 时,则该 [HTTPClient] 有分块的响应。" #: doc/classes/HTTPClient.xml msgid "" "This needs to be called in order to have any request processed. Check " "results with [method get_status]." msgstr "调用此方法才能对请求进行处理。使用 [method get_status] 获取检查。" #: doc/classes/HTTPClient.xml msgid "" "Generates a GET/POST application/x-www-form-urlencoded style query string " "from a provided dictionary, e.g.:\n" "[codeblock]\n" "var fields = {\"username\": \"user\", \"password\": \"pass\"}\n" "var query_string = http_client.query_string_from_dict(fields)\n" "# Returns \"username=user&password=pass\"\n" "[/codeblock]\n" "Furthermore, if a key has a [code]null[/code] value, only the key itself is " "added, without equal sign and value. If the value is an array, for each " "value in it a pair with the same key is added.\n" "[codeblock]\n" "var fields = {\"single\": 123, \"not_valued\": null, \"multiple\": [22, 33, " "44]}\n" "var query_string = http_client.query_string_from_dict(fields)\n" "# Returns \"single=123¬_valued&multiple=22&multiple=33&multiple=44\"\n" "[/codeblock]" msgstr "" "根据所提供的字典生成 GET/POST application/x-www-form-urlencoded 风格的请求字" "符串,例如:\n" "[codeblock]\n" "var fields = {\"username\": \"user\", \"password\": \"pass\"}\n" "var query_string = http_client.query_string_from_dict(fields)\n" "# 返回 \"username=user&password=pass\"\n" "[/codeblock]\n" "此外,如果字典中的某个键对应 [code]null[/code] 值,那个只会加入该键本身,没有" "等号和值。如果值是数组,会为每个元素添加一组使用相同的键的条目。\n" "[codeblock]\n" "var fields = {\"single\": 123, \"not_valued\": null, \"multiple\": [22, 33, " "44]}\n" "var query_string = http_client.query_string_from_dict(fields)\n" "# 返回 \"single=123¬_valued&multiple=22&multiple=33&multiple=44\"\n" "[/codeblock]" #: doc/classes/HTTPClient.xml msgid "Reads one chunk from the response." msgstr "从响应中读取一块数据。" #: doc/classes/HTTPClient.xml msgid "" "Sends a request to the connected host.\n" "The URL parameter is usually just the part after the host, so for " "[code]http://somehost.com/index.php[/code], it is [code]/index.php[/code]. " "When sending requests to an HTTP proxy server, it should be an absolute URL. " "For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also " "allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the " "authority component ([code]host:port[/code]).\n" "Headers are HTTP request headers. For available HTTP methods, see [enum " "Method].\n" "To create a POST request with query strings to push to the server, do:\n" "[codeblock]\n" "var fields = {\"username\" : \"user\", \"password\" : \"pass\"}\n" "var query_string = http_client.query_string_from_dict(fields)\n" "var headers = [\"Content-Type: application/x-www-form-urlencoded\", " "\"Content-Length: \" + str(query_string.length())]\n" "var result = http_client.request(http_client.METHOD_POST, \"/index.php\", " "headers, query_string)\n" "[/codeblock]\n" "[b]Note:[/b] The [code]request_data[/code] parameter is ignored if " "[code]method[/code] is [constant HTTPClient.METHOD_GET]. This is because GET " "methods can't contain request data. As a workaround, you can pass request " "data as a query string in the URL. See [method String.http_escape] for an " "example." msgstr "" "向连接的服务器发送请求。\n" "URL 参数仅为主机名后面的部分,即请求 [code]http://somehost.com/index.php[/" "code] 应该填写 [code]index.php[/code]。向 HTTP 代理服务器发送请求时应为绝对 " "URL。进行 [constant HTTPClient.METHOD_OPTIONS] 请求时,还允许使用 [code]*[/" "code]。进行 [constant HTTPClient.METHOD_CONNECT] 请求时,应为身份组件([code]" "主机:端口[/code])。\n" "Headers 参数是 HTTP 请求的报头。HTTP 方法可以查看 [enum Method]。\n" "如果要创建向服务器发送查询字符串的 POST 请求,应该这样做:\n" "[codeblock]\n" "var fields = {\"username\" : \"user\", \"password\" : \"pass\"}\n" "var query_string = http_client.query_string_from_dict(fields)\n" "var headers = [\"Content-Type: application/x-www-form-urlencoded\", " "\"Content-Length: \" + str(query_string.length())]\n" "var result = http_client.request(http_client.METHOD_POST, \"index.php\", " "headers, query_string)\n" "[/codeblock]\n" "[b]注意:[/b][code]method[/code] 为 [constant HTTPClient.METHOD_GET] 时会忽" "略 [code]request_data[/code] 参数。这是因为 GET 方法不能包含请求数据。作为变" "通,可以把请求数据通过 URL 的请求字符串传递。例子见 [method String." "http_escape]。" #: doc/classes/HTTPClient.xml msgid "" "Sends a raw request to the connected host.\n" "The URL parameter is usually just the part after the host, so for " "[code]http://somehost.com/index.php[/code], it is [code]/index.php[/code]. " "When sending requests to an HTTP proxy server, it should be an absolute URL. " "For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also " "allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the " "authority component ([code]host:port[/code]).\n" "Headers are HTTP request headers. For available HTTP methods, see [enum " "Method].\n" "Sends the body data raw, as a byte array and does not encode it in any way." msgstr "" "向连接的主机发送原始请求。\n" "URL参数通常只是主机后面的部分,所以对于[code]http://somehost.com/index.php[/" "code],它是[code]/index.php[/code]。当向HTTP代理服务器发送请求时,它应该是一" "个绝对的URL。对于[constant HTTPClient.METHOD_OPTIONS]请求,允许[code]*[/" "code]。对于[constant HTTPClient.METHOD_CONNECT]请求,应该是标准组件," "[code]host:port[/code]。\n" "头信息是HTTP请求头信息。关于可用的HTTP方法,参阅[enum Method]。\n" "以字节数组的形式发送原始正文数据,不以任何方式进行编码。" #: doc/classes/HTTPClient.xml doc/classes/HTTPRequest.xml msgid "" "Sets the proxy server for HTTP requests.\n" "The proxy server is unset if [code]host[/code] is empty or [code]port[/code] " "is -1." msgstr "" "设置 HTTP 请求使用的代理服务器。\n" "如果 [code]host[/code] 为空或者 [code]port[/code] 为 -1,则会取消设置代理服务" "器。" #: doc/classes/HTTPClient.xml doc/classes/HTTPRequest.xml msgid "" "Sets the proxy server for HTTPS requests.\n" "The proxy server is unset if [code]host[/code] is empty or [code]port[/code] " "is -1." msgstr "" "设置 HTTPS 请求使用的代理服务器。\n" "如果 [code]host[/code] 为空或者 [code]port[/code] 为 -1,则会取消设置代理服务" "器。" #: doc/classes/HTTPClient.xml msgid "" "If [code]true[/code], execution will block until all data is read from the " "response." msgstr "为 [code]true[/code] 时,执行会阻塞至从响应中读取所有数据为止。" #: doc/classes/HTTPClient.xml msgid "The connection to use for this client." msgstr "该客户端所使用的连接。" #: doc/classes/HTTPClient.xml msgid "" "The size of the buffer used and maximum bytes to read per iteration. See " "[method read_response_body_chunk]." msgstr "" "使用的缓冲区大小,即每次迭代读取的最大字节数。见 [method " "read_response_body_chunk]。" #: doc/classes/HTTPClient.xml msgid "" "HTTP GET method. The GET method requests a representation of the specified " "resource. Requests using GET should only retrieve data." msgstr "" "HTTP GET 方法。GET 方法用于请求指定资源的某种表示。使用 GET 的请求应该只进行" "数据的获取。" #: doc/classes/HTTPClient.xml msgid "" "HTTP HEAD method. The HEAD method asks for a response identical to that of a " "GET request, but without the response body. This is useful to request " "metadata like HTTP headers or to check if a resource exists." msgstr "" "HTTP HEAD 方法。HEAD 方法请求的是和 GET 请求一样的相应,但不包含响应体。用来" "请求元数据很方便,比如可以通过请求 HTTP 报头来判断资源是否存在。" #: doc/classes/HTTPClient.xml msgid "" "HTTP POST method. The POST method is used to submit an entity to the " "specified resource, often causing a change in state or side effects on the " "server. This is often used for forms and submitting data or uploading files." msgstr "" "HTTP POST 方法。POST 方法用于将实体提交给指定的资源,经常会造成服务器端状态的" "更改或者其他副作用。常用于提交表单和其他数据,或者上传文件。" #: doc/classes/HTTPClient.xml msgid "" "HTTP PUT method. The PUT method asks to replace all current representations " "of the target resource with the request payload. (You can think of POST as " "\"create or update\" and PUT as \"update\", although many services tend to " "not make a clear distinction or change their meaning)." msgstr "" "HTTP PUT 方法。PUT 方法的目的是使用请求负载替换目标资源的所有当前表示。(可以" "把 POST 理解为“创建或更新”,把 PUT 理解为“更小”,不过很多服务在这两者的含义之" "间并不作明显的区别)。" #: doc/classes/HTTPClient.xml msgid "" "HTTP DELETE method. The DELETE method requests to delete the specified " "resource." msgstr "HTTP DELETE 方法。DELETE 方法请求删除指定的资源。" #: doc/classes/HTTPClient.xml msgid "" "HTTP OPTIONS method. The OPTIONS method asks for a description of the " "communication options for the target resource. Rarely used." msgstr "" "HTTP OPTIONS 方法。OPTIONS 方法的目的是获取目标资源的通讯选项。很少使用。" #: doc/classes/HTTPClient.xml msgid "" "HTTP TRACE method. The TRACE method performs a message loop-back test along " "the path to the target resource. Returns the entire HTTP request received in " "the response body. Rarely used." msgstr "" "HTTP TRACE 方法。TRACE 方法会沿目标资源的路径做消息回环测试。返回的响应体中会" "包含完整的 HTTP 请求。很少使用。" #: doc/classes/HTTPClient.xml msgid "" "HTTP CONNECT method. The CONNECT method establishes a tunnel to the server " "identified by the target resource. Rarely used." msgstr "" "HTTP CONNECT 方法。CONNECT 方法会与目标资源所表示的服务器建立隧道。很少使用。" #: doc/classes/HTTPClient.xml msgid "" "HTTP PATCH method. The PATCH method is used to apply partial modifications " "to a resource." msgstr "HTTP PATCH 方法。PATCH 方法用于对资源进行部分修改。" #: doc/classes/HTTPClient.xml msgid "Represents the size of the [enum Method] enum." msgstr "表示 [enum Method] 枚举的大小。" #: doc/classes/HTTPClient.xml msgid "Status: Disconnected from the server." msgstr "状态:与服务器断开连接。" #: doc/classes/HTTPClient.xml msgid "Status: Currently resolving the hostname for the given URL into an IP." msgstr "状态:正在根据 URL 的主机名解析 IP。" #: doc/classes/HTTPClient.xml msgid "Status: DNS failure: Can't resolve the hostname for the given URL." msgstr "状态:DNS 失败:无法解析指定 URL 的主机名。" #: doc/classes/HTTPClient.xml msgid "Status: Currently connecting to server." msgstr "状态:正在连接到服务器。" #: doc/classes/HTTPClient.xml msgid "Status: Can't connect to the server." msgstr "状态:无法连接到服务器。" #: doc/classes/HTTPClient.xml msgid "Status: Connection established." msgstr "状态:连接已建立。" #: doc/classes/HTTPClient.xml msgid "Status: Currently sending request." msgstr "状态:正在发送请求。" #: doc/classes/HTTPClient.xml msgid "Status: HTTP body received." msgstr "状态:已获取 HTTP 响应体。" #: doc/classes/HTTPClient.xml msgid "Status: Error in HTTP connection." msgstr "状态:HTTP 连接出错。" #: doc/classes/HTTPClient.xml msgid "Status: Error in SSL handshake." msgstr "状态:SSL 握手出错。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]100 Continue[/code]. Interim response that indicates " "everything so far is OK and that the client should continue with the request " "(or ignore this status if already finished)." msgstr "" "HTTP 状态码 [code]100 Continue[/code]。是表示目前为止一切正常的中间响应,客户" "端应该继续请求(如果已经请求完就可以直接忽略这个状态)。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]101 Switching Protocol[/code]. Sent in response to an " "[code]Upgrade[/code] request header by the client. Indicates the protocol " "the server is switching to." msgstr "" "HTTP 状态码 [code]101 Switching Protocol[/code]。针对客户 [code]Upgrade[/" "code] 请求的响应,表示服务器所转换到的协议。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]102 Processing[/code] (WebDAV). Indicates that the " "server has received and is processing the request, but no response is " "available yet." msgstr "" "HTTP 状态码 [code]102 Processing[/code](WebDAV)。表示服务器已收到请求并且正" "在处理,尚未生成响应。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]200 OK[/code]. The request has succeeded. Default " "response for successful requests. Meaning varies depending on the request. " "GET: The resource has been fetched and is transmitted in the message body. " "HEAD: The entity headers are in the message body. POST: The resource " "describing the result of the action is transmitted in the message body. " "TRACE: The message body contains the request message as received by the " "server." msgstr "" "HTTP 状态码 [code]200 OK[/code]。请求已成功,是成功请求的默认响应,根据请求的" "不同表示的含义也不同。GET:已获取资源并通过消息体发送。HEAD:实体报头在消息体" "中。POST:描述操作结果的资源已通过消息体发送。TRACE:消息体包含服务器所收到的" "请求消息。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]201 Created[/code]. The request has succeeded and a " "new resource has been created as a result of it. This is typically the " "response sent after a PUT request." msgstr "" "HTTP 状态码 [code]201 Created[/code]。请求成功,并且创建了新资源。通常是针对 " "PUT 请求的响应." #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]202 Accepted[/code]. The request has been received " "but not yet acted upon. It is non-committal, meaning that there is no way in " "HTTP to later send an asynchronous response indicating the outcome of " "processing the request. It is intended for cases where another process or " "server handles the request, or for batch processing." msgstr "" "HTTP 状态码 [code]202 Accepted[/code]。请求已收到,但尚未处理。HTTP 协议中无" "法实现在完成对请求的处理后异步地把请求发回来。这个响应的使用场景应该是会有其" "他进程或者服务器去处理这个请求,或者会进行批量处理。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]203 Non-Authoritative Information[/code]. This " "response code means returned meta-information set is not exact set as " "available from the origin server, but collected from a local or a third " "party copy. Except this condition, 200 OK response should be preferred " "instead of this response." msgstr "" "HTTP 状态码 [code]203 Non-Authoritative Information[/code]。该响应状态码表示" "返回的元消息与原始服务器所返回的不一致,而是从本地或者第三方副本中收集而来。" "除了特殊情况,应该优先选用 200 OK 响应所返回的内容。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]204 No Content[/code]. There is no content to send " "for this request, but the headers may be useful. The user-agent may update " "its cached headers for this resource with the new ones." msgstr "" "HTTP 状态码 [code]204 No Content[/code]。本请求无响应内容,但报头可能有用。用" "户代理可能会根据该资源更新缓存报头。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]205 Reset Content[/code]. The server has fulfilled " "the request and desires that the client resets the \"document view\" that " "caused the request to be sent to its original state as received from the " "origin server." msgstr "" "HTTP 状态码 [code]205 Reset Content[/code]。服务器已完成对请求的处理,并要求" "客户端将导致该请求的“文档视图”重置回原始状态。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]206 Partial Content[/code]. This response code is " "used because of a range header sent by the client to separate download into " "multiple streams." msgstr "" "HTTP 状态码 [code]206 Partial Content[/code]。客户端如果发送范围(Range)报头" "就会收到该响应码,用于将下载拆分成多个数据流。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]207 Multi-Status[/code] (WebDAV). A Multi-Status " "response conveys information about multiple resources in situations where " "multiple status codes might be appropriate." msgstr "" "HTTP 状态码 [code]207 Multi-Status[/code](WebDAV)。关于多个资源的多状态响" "应,适用于需要返回多个状态码的情况。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]208 Already Reported[/code] (WebDAV). Used inside a " "DAV: propstat response element to avoid enumerating the internal members of " "multiple bindings to the same collection repeatedly." msgstr "" "HTTP 状态码 [code]208 Already Reported[/code](WebDAV)。在 DAV: propstat 相" "应元素内部使用,可以防止重复遍历同一合集中不同绑定的内部成员。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]226 IM Used[/code] (WebDAV). The server has fulfilled " "a GET request for the resource, and the response is a representation of the " "result of one or more instance-manipulations applied to the current instance." msgstr "" "HTTP 状态码 [code]226 IM Used[/code](WebDAV)。服务器完成了对该资源的 GET 请" "求,所响应的资源表示,是针对当前实例进行若干共同修改的结果。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]300 Multiple Choice[/code]. The request has more than " "one possible responses and there is no standardized way to choose one of the " "responses. User-agent or user should choose one of them." msgstr "" "HTTP 状态码 [code]300 Multiple Choice[/code]。请求有多个可能的响应,并且没有" "从中挑选其一的标准方法。用户代理或者用户应该自行挑选。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]301 Moved Permanently[/code]. Redirection. This " "response code means the URI of requested resource has been changed. The new " "URI is usually included in the response." msgstr "" "HTTP 状态码 [code]301 Moved Permanently[/code]。重定向。该响应码表示所请求资" "源的 URI 已改变。新的 URI 通常包含在响应中。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]302 Found[/code]. Temporary redirection. This " "response code means the URI of requested resource has been changed " "temporarily. New changes in the URI might be made in the future. Therefore, " "this same URI should be used by the client in future requests." msgstr "" "HTTP 状态码 [code]302 Found[/code]。临时重定向。该响应码表示所请求资源的 URI " "已临时改变。该 URI 将来还可能发生变,因此后续的请求应该仍然使用相同的 URI。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]303 See Other[/code]. The server is redirecting the " "user agent to a different resource, as indicated by a URI in the Location " "header field, which is intended to provide an indirect response to the " "original request." msgstr "" "HTTP 状态码 [code]303 See Other[/code]。服务器将用户代理重定向到另一个资源," "资源由 Location 报头中的 URI 指定。用于提供针对原始请求的间接响应。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]304 Not Modified[/code]. A conditional GET or HEAD " "request has been received and would have resulted in a 200 OK response if it " "were not for the fact that the condition evaluated to [code]false[/code]." msgstr "" "HTTP 状态码 [code]304 Not Modified[/code]。收到了条件 GET 或者 HEAD,并且要不" "是因为该条件为 [code]false[/code] 就会返回 200 OK 响应。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]305 Use Proxy[/code]. [i]Deprecated. Do not use.[/i]" msgstr "HTTP 状态码 [code]305 Use Proxy[/code]。[i]已废弃,勿用。[/i]" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]306 Switch Proxy[/code]. [i]Deprecated. Do not use.[/" "i]" msgstr "HTTP 状态码[code]306 Switch Proxy[/code]。[i]已废弃,勿用。[/i]" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]307 Temporary Redirect[/code]. The target resource " "resides temporarily under a different URI and the user agent MUST NOT change " "the request method if it performs an automatic redirection to that URI." msgstr "" "HTTP 状态码 [code]307 Temporary Redirect[/code]。目标资源暂时位于不同的 URI," "用户代理如果要自动重定向到该 URI,就一定不能更改所使用的请求方法。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]308 Permanent Redirect[/code]. The target resource " "has been assigned a new permanent URI and any future references to this " "resource ought to use one of the enclosed URIs." msgstr "" "HTTP 状态码 [code]308 Permanent Redirect[/code]。目标资源已被赋予全新的永久 " "URI,后续针对该资源的请求应当使用所提供的 URI。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]400 Bad Request[/code]. The request was invalid. The " "server cannot or will not process the request due to something that is " "perceived to be a client error (e.g., malformed request syntax, invalid " "request message framing, invalid request contents, or deceptive request " "routing)." msgstr "" "HTTP 状态码 [code]400 Bad Request[/code]。请求无效。服务器认为客户端出错,所" "以无法或者拒绝处理该请求(例如:请求语法错误、请求消息帧无效、请求内容无效、" "请求路由可疑)。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]401 Unauthorized[/code]. Credentials required. The " "request has not been applied because it lacks valid authentication " "credentials for the target resource." msgstr "" "HTTP 状态码 [code]401 Unauthorized[/code]。需要提供认证信息。未执行请求,原因" "是缺少针对目标资源的授权认证信息。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]402 Payment Required[/code]. This response code is " "reserved for future use. Initial aim for creating this code was using it for " "digital payment systems, however this is not currently used." msgstr "" "HTTP 状态码 [code]402 Payment Required[/code]。该响应码是为将来使用保留的,本" "意是供数字支付系统使用,但目前尚未有所使用。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]403 Forbidden[/code]. The client does not have access " "rights to the content, i.e. they are unauthorized, so server is rejecting to " "give proper response. Unlike [code]401[/code], the client's identity is " "known to the server." msgstr "" "HTTP 状态码 [code]403 Forbidden[/code]。客户端没有该内容的访问权限,即未授" "权,服务器拒绝给出正确响应。与 [code]401[/code] 不同,服务器已收到客户端的身" "份信息。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]404 Not Found[/code]. The server can not find " "requested resource. Either the URL is not recognized or the endpoint is " "valid but the resource itself does not exist. May also be sent instead of " "403 to hide existence of a resource if the client is not authorized." msgstr "" "HTTP 状态码 [code]404 Not Found[/code]。服务器无法找到所请求的资源。可能是无" "法识别 URL,也可能是 URL 有效但资源本身不存在。也有可能在客户端未提供认证信息" "时代替 403 返回,从而达到隐藏资源存在性的目的。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]405 Method Not Allowed[/code]. The request's HTTP " "method is known by the server but has been disabled and cannot be used. For " "example, an API may forbid DELETE-ing a resource. The two mandatory methods, " "GET and HEAD, must never be disabled and should not return this error code." msgstr "" "HTTP 状态码 [code]405 Method Not Allowed[/code]。服务器理解请求所使用的 HTTP " "方法,但该方法已被禁止使用。例如:API 可能禁止 DELETE 资源。GET 和 HEAD 这两" "个方法是必须的,所以不能被禁用,也不应该返回该错误码。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]406 Not Acceptable[/code]. The target resource does " "not have a current representation that would be acceptable to the user " "agent, according to the proactive negotiation header fields received in the " "request. Used when negotiation content." msgstr "" "HTTP 状态码 [code]406 Not Acceptable[/code]。根据请求中主动注明的交涉报头字" "段,目标资源没有用户代理所能接受的表示。用于内容交涉过程。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]407 Proxy Authentication Required[/code]. Similar to " "401 Unauthorized, but it indicates that the client needs to authenticate " "itself in order to use a proxy." msgstr "" "HTTP 状态码 [code]407 Proxy Authentication Required[/code]。类似于 401 " "Unauthorized,表示客户端需要在提供认证信息后使用代理。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]408 Request Timeout[/code]. The server did not " "receive a complete request message within the time that it was prepared to " "wait." msgstr "" "HTTP 状态码 [code]408 Request Timeout[/code]。服务器在其准备等待的时间段内未" "获取完整的请求信息。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]409 Conflict[/code]. The request could not be " "completed due to a conflict with the current state of the target resource. " "This code is used in situations where the user might be able to resolve the " "conflict and resubmit the request." msgstr "" "HTTP 状态码 [code]409 Conflict[/code]。请求无法完成,原因与是目标资源的当前状" "态存在冲突。该代码的使用场景应该是用户也许能够解决冲突并重新提交请求。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]410 Gone[/code]. The target resource is no longer " "available at the origin server and this condition is likely permanent." msgstr "" "HTTP 状态码 [code]410 Gone[/code]。目标资源在原始服务器上已不复存在,并且可能" "永远如此。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]411 Length Required[/code]. The server refuses to " "accept the request without a defined Content-Length header." msgstr "" "HTTP 状态码 [code]411 Length Required[/code]。服务器拒绝接受没有定义 Content-" "Length 报头的请求。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]412 Precondition Failed[/code]. One or more " "conditions given in the request header fields evaluated to [code]false[/" "code] when tested on the server." msgstr "" "HTTP 状态码 [code]412 Percondition Failed[/code]。请求报头中给出的若干条件在" "服务器上检查为 [code]false[/code]。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]413 Entity Too Large[/code]. The server is refusing " "to process a request because the request payload is larger than the server " "is willing or able to process." msgstr "" "HTTP 状态码 [code]413 Entity Too Large[/code]。服务器拒绝处理请求,因为请求的" "负载超过了服务器所允许或者所能够处理的上限。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]414 Request-URI Too Long[/code]. The server is " "refusing to service the request because the request-target is longer than " "the server is willing to interpret." msgstr "" "HTTP 状态码 [code]414 Request-URI Too Long[/code]。服务器拒绝为请求提供服务," "因为请求目标的长度超过了服务器所愿意解析的上限。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]415 Unsupported Media Type[/code]. The origin server " "is refusing to service the request because the payload is in a format not " "supported by this method on the target resource." msgstr "" "HTTP 状态码 [code]415 Unsupported Media Type[/code]。原始服务器拒绝为请求提供" "服务,因为负载所使用的格式目标资源的该方法不支持。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]416 Requested Range Not Satisfiable[/code]. None of " "the ranges in the request's Range header field overlap the current extent of " "the selected resource or the set of ranges requested has been rejected due " "to invalid ranges or an excessive request of small or overlapping ranges." msgstr "" "HTTP 状态码 [code]416 Requested Range Not Satisfiable[/code]。请求的 Range 报" "头中指定的所有范围都与所选资源的有效范围不重合,或者拒绝处理该范围的集合。拒" "绝的可能原因是存在无效的范围,或者存在过多细小或者重叠的范围。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]417 Expectation Failed[/code]. The expectation given " "in the request's Expect header field could not be met by at least one of the " "inbound servers." msgstr "" "HTTP 状态码 [code]417 Expectation Failed[/code]。请求的 Expect 报头中给出的预" "期无法被任何内部服务器满足。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]418 I'm A Teapot[/code]. Any attempt to brew coffee " "with a teapot should result in the error code \"418 I'm a teapot\". The " "resulting entity body MAY be short and stout." msgstr "" "HTTP 状态码 [code]418 I'm A Teapot[/code]。想要尝试用茶壶煮咖啡就会得到错误" "码“418 因为我是个茶壶”,得到的实体大概又矮又胖。这个错误是对1998年愚人节玩笑" "的超文本咖啡壶控制协议的引用。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]421 Misdirected Request[/code]. The request was " "directed at a server that is not able to produce a response. This can be " "sent by a server that is not configured to produce responses for the " "combination of scheme and authority that are included in the request URI." msgstr "" "HTTP 状态码 [code]421 Misdirected Request[/code]。请求被重定向到了一台无法生" "成响应的服务器。如果一台服务器没有针对请求 URI 的协议类型和主机身份配置响应," "就有可能返回这个代码。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]422 Unprocessable Entity[/code] (WebDAV). The server " "understands the content type of the request entity (hence a 415 Unsupported " "Media Type status code is inappropriate), and the syntax of the request " "entity is correct (thus a 400 Bad Request status code is inappropriate) but " "was unable to process the contained instructions." msgstr "" "HTTP 状态码 [code]422 Unprocessable Entity[/code](WebDAV)。服务器能够理解请" "求实体的内容类型(所以不适用 415 Unsupported Media Type 状态码),请求实体的" "语法也是正确的(所以不适用 400 Bad Request 状态码),但仍然无法执行请求中所包" "含的指令。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]423 Locked[/code] (WebDAV). The source or destination " "resource of a method is locked." msgstr "" "HTTP 状态码 [code]423 Locked[/code](WebDAV)。方法的来源资源或目标资源被锁" "定。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]424 Failed Dependency[/code] (WebDAV). The method " "could not be performed on the resource because the requested action depended " "on another action and that action failed." msgstr "" "HTTP 状态码 [code]424 Failed Dependency[/code](WebDAV)。无法在该资源上执行" "该方法,因为请求的操作依赖于另一个操作,而那个操作失败了。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]426 Upgrade Required[/code]. The server refuses to " "perform the request using the current protocol but might be willing to do so " "after the client upgrades to a different protocol." msgstr "" "HTTP 状态码 [code]426 Upgrade Required[/code]。服务器拒绝以当前协议执行请求," "但客户端升级到另一个协议之后可能会愿意执行。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]428 Precondition Required[/code]. The origin server " "requires the request to be conditional." msgstr "" "HTTP 状态码 [code]428 Precondition Required[/code]。原始服务器要求进行条件请" "求。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]429 Too Many Requests[/code]. The user has sent too " "many requests in a given amount of time (see \"rate limiting\"). Back off " "and increase time between requests or try again later." msgstr "" "HTTP 状态码 [code]429 Too Many Requests[/code]。用户在指定时间段中(见“限" "流”)发送了过多的请求。静默一段时间后增加请求之间的时间间隔,稍后再试。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]431 Request Header Fields Too Large[/code]. The " "server is unwilling to process the request because its header fields are too " "large. The request MAY be resubmitted after reducing the size of the request " "header fields." msgstr "" "HTTP 状态码 [code]431 Request Header Fields Too Large[/code]。服务器拒绝处理" "请求,因为报头字段过大。请求可以在减小报头字段后重新提交。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]451 Response Unavailable For Legal Reasons[/code]. " "The server is denying access to the resource as a consequence of a legal " "demand." msgstr "" "HTTP 状态码 [code]451 Response Unavailable For Legal Reasons[/code]。服务器因" "法律要求而拒绝访问该资源。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]500 Internal Server Error[/code]. The server " "encountered an unexpected condition that prevented it from fulfilling the " "request." msgstr "" "HTTP 状态码 [code]500 Internal Server Error[/code]。服务器遭遇预料之外的情" "况,无法完成请求。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]501 Not Implemented[/code]. The server does not " "support the functionality required to fulfill the request." msgstr "" "HTTP 状态码 [code]501 Not Implemented[/code]。服务器不支持完成请求所需的功" "能。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]502 Bad Gateway[/code]. The server, while acting as a " "gateway or proxy, received an invalid response from an inbound server it " "accessed while attempting to fulfill the request. Usually returned by load " "balancers or proxies." msgstr "" "HTTP 状态码 [code]502 Bad Gateway[/code]。网关或代理服务器尝试使用内部服务器" "处理请求,但从该服务器收到了无效的响应。通常由负载均衡器或者代理服务器返回。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]503 Service Unavailable[/code]. The server is " "currently unable to handle the request due to a temporary overload or " "scheduled maintenance, which will likely be alleviated after some delay. Try " "again later." msgstr "" "HTTP 状态码 [code]503 Service Unavailable[/code]。服务器目前无法处理请求,原" "因是暂时过载或者处于定期维护状态,可能在一段延迟后就能恢复,请稍后再试。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]504 Gateway Timeout[/code]. The server, while acting " "as a gateway or proxy, did not receive a timely response from an upstream " "server it needed to access in order to complete the request. Usually " "returned by load balancers or proxies." msgstr "" "HTTP 状态码 [code]504 Gateway Timeout[/code]。网关或代理服务器尝试使用上游服" "务器处理请求,但无法在指定时间内从该服务器收到响应。通常由负载均衡器或者代理" "服务器返回。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]505 HTTP Version Not Supported[/code]. The server " "does not support, or refuses to support, the major version of HTTP that was " "used in the request message." msgstr "" "HTTP 状态码 [code]505 HTTP Version Not Supported[/code]。服务器不支持或者拒绝" "支持请求消息所使用的 HTTP 主版本。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]506 Variant Also Negotiates[/code]. The server has an " "internal configuration error: the chosen variant resource is configured to " "engage in transparent content negotiation itself, and is therefore not a " "proper end point in the negotiation process." msgstr "" "HTTP 状态码 [code]506 Variant Also Negotiates[/code]。服务器存在内部配置错" "误:所选的可变资源被配置为参与自身的透明内容交涉,因此不是交涉过程中的正确端" "点。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]507 Insufficient Storage[/code]. The method could not " "be performed on the resource because the server is unable to store the " "representation needed to successfully complete the request." msgstr "" "HTTP 状态码 [code]507 Insufficient Storage[/code]。无法在该资源上执行该方法," "因为服务器无法保存成功完成请求所需的表示。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]508 Loop Detected[/code]. The server terminated an " "operation because it encountered an infinite loop while processing a request " "with \"Depth: infinity\". This status indicates that the entire operation " "failed." msgstr "" "HTTP 状态码 [code]508 Loop Detected[/code]。服务器在处理“Depth: infinity”请求" "时遇到了死循环并终止了操作。该状态表示该操作整体失败。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]510 Not Extended[/code]. The policy for accessing the " "resource has not been met in the request. The server should send back all " "the information necessary for the client to issue an extended request." msgstr "" "HTTP 状态码 [code]510 Not Extended[/code]。请求未满足访问该资源的策略。服务器" "应当将所需信息返回给客户端,以便其提交后续请求。" #: doc/classes/HTTPClient.xml msgid "" "HTTP status code [code]511 Network Authentication Required[/code]. The " "client needs to authenticate to gain network access." msgstr "" "HTTP 状态码 [code]511 Network Authentication Required[/code]。客户端需要身份" "认证才能访问网络。" #: doc/classes/HTTPRequest.xml msgid "A node with the ability to send HTTP(S) requests." msgstr "具有发送 HTTP(S) 请求能力的节点。" #: doc/classes/HTTPRequest.xml msgid "" "A node with the ability to send HTTP requests. Uses [HTTPClient] " "internally.\n" "Can be used to make HTTP requests, i.e. download or upload files or web " "content via HTTP.\n" "[b]Warning:[/b] See the notes and warnings on [HTTPClient] for limitations, " "especially regarding SSL security.\n" "[b]Example of contacting a REST API and printing one of its returned fields:" "[/b]\n" "[codeblock]\n" "func _ready():\n" " # Create an HTTP request node and connect its completion signal.\n" " var http_request = HTTPRequest.new()\n" " add_child(http_request)\n" " http_request.connect(\"request_completed\", self, " "\"_http_request_completed\")\n" "\n" " # Perform a GET request. The URL below returns JSON as of writing.\n" " var error = http_request.request(\"https://httpbin.org/get\")\n" " if error != OK:\n" " push_error(\"An error occurred in the HTTP request.\")\n" "\n" " # Perform a POST request. The URL below returns JSON as of writing.\n" " # Note: Don't make simultaneous requests using a single HTTPRequest " "node.\n" " # The snippet below is provided for reference only.\n" " var body = {\"name\": \"Godette\"}\n" " error = http_request.request(\"https://httpbin.org/post\", [], true, " "HTTPClient.METHOD_POST, body)\n" " if error != OK:\n" " push_error(\"An error occurred in the HTTP request.\")\n" "\n" "\n" "# Called when the HTTP request is completed.\n" "func _http_request_completed(result, response_code, headers, body):\n" " var response = parse_json(body.get_string_from_utf8())\n" "\n" " # Will print the user agent string used by the HTTPRequest node (as " "recognized by httpbin.org).\n" " print(response.headers[\"User-Agent\"])\n" "[/codeblock]\n" "[b]Example of loading and displaying an image using HTTPRequest:[/b]\n" "[codeblock]\n" "func _ready():\n" " # Create an HTTP request node and connect its completion signal.\n" " var http_request = HTTPRequest.new()\n" " add_child(http_request)\n" " http_request.connect(\"request_completed\", self, " "\"_http_request_completed\")\n" "\n" " # Perform the HTTP request. The URL below returns a PNG image as of " "writing.\n" " var error = http_request.request(\"https://via.placeholder.com/512\")\n" " if error != OK:\n" " push_error(\"An error occurred in the HTTP request.\")\n" "\n" "\n" "# Called when the HTTP request is completed.\n" "func _http_request_completed(result, response_code, headers, body):\n" " var image = Image.new()\n" " var error = image.load_png_from_buffer(body)\n" " if error != OK:\n" " push_error(\"Couldn't load the image.\")\n" "\n" " var texture = ImageTexture.new()\n" " texture.create_from_image(image)\n" "\n" " # Display the image in a TextureRect node.\n" " var texture_rect = TextureRect.new()\n" " add_child(texture_rect)\n" " texture_rect.texture = texture\n" "[/codeblock]" msgstr "" "具有发送 HTTP 请求能力的节点。内部使用 [HTTPClient]。\n" "可以用来进行 HTTP 请求,即通过 HTTP 下载或上传文件或网络内容。\n" "[b]警告:[/b]请参阅 [HTTPClient] 的注释和警告了解其局限性,特别是关于 SSL 的" "安全性。\n" "[b]连接 REST API 并打印某个返回字段的例子:[/b]\n" "[codeblock]\n" "func _ready():\n" " # 创建 HTTP 请求节点并连接完成信号。\n" " var http_request = HTTPRequest.new()\n" " add_child(http_request)\n" " http_request.connect(\"request_completed\", self, " "\"_http_request_completed\")\n" "\n" " # 执行 GET 请求。截止到文档编写时,下面的 URL 会返回 JSON。\n" " var error = http_request.request(\"https://httpbin.org/get\")\n" " if error != OK:\n" " push_error(\"HTTP 请求发生了错误。\")\n" "\n" " # 执行 POST 请求。截止到文档编写时,下面的 URL 会返回 JSON。\n" " # 注意:请勿使用单个 HTTPRequest 节点进行连续请求。\n" " # 下面的代码段仅供参考。\n" " var body = {\"name\": \"Godette\"}\n" " error = http_request.request(\"https://httpbin.org/post\", [], true, " "HTTPClient.METHOD_POST, body)\n" " if error != OK:\n" " push_error(\"HTTP 请求发生了错误。\")\n" "\n" "\n" "# 将在 HTTP 请求完成时调用。\n" "func _http_request_completed(result, response_code, headers, body):\n" " var response = parse_json(body.get_string_from_utf8())\n" "\n" " # 会输出 HTTPRequest 节点所使用的用户代理字符串(httpbin.org 获取到的内" "容)。\n" " print(response.headers[\"User-Agent\"])\n" "[/codeblock]\n" "[b]使用 HTTPRequest 加载和显示图片的例子:[/b]\n" "[codeblock]\n" "func _ready():\n" " # 创建 HTTP 请求节点并连接完成信号。\n" " var http_request = HTTPRequest.new()\n" " add_child(http_request)\n" " http_request.connect(\"request_completed\", self, " "\"_http_request_completed\")\n" "\n" " # 执行 HTTP 请求。截止到文档编写时,下面的 URL 会返回 PNG 图片。\n" " var error = http_request.request(\"https://via.placeholder.com/512\")\n" " if error != OK:\n" " push_error(\"HTTP 请求发生了错误。\")\n" "\n" "\n" "# 将在 HTTP 请求完成时调用。\n" "func _http_request_completed(result, response_code, headers, body):\n" " var image = Image.new()\n" " var error = image.load_png_from_buffer(body)\n" " if error != OK:\n" " push_error(\"无法加载图片。\")\n" "\n" " var texture = ImageTexture.new()\n" " texture.create_from_image(image)\n" "\n" " # 将图片显示到 TextureRect 节点上。\n" " var texture_rect = TextureRect.new()\n" " add_child(texture_rect)\n" " texture_rect.texture = texture\n" "[/codeblock]" #: doc/classes/HTTPRequest.xml msgid "Cancels the current request." msgstr "取消当前请求。" #: doc/classes/HTTPRequest.xml msgid "" "Returns the response body length.\n" "[b]Note:[/b] Some Web servers may not send a body length. In this case, the " "value returned will be [code]-1[/code]. If using chunked transfer encoding, " "the body length will also be [code]-1[/code]." msgstr "" "返回响应体长度。\n" "[b]注意:[/b]部分 Web 服务器可能不发送响应体长度,此时返回值将为 [code]-1[/" "code]。如果使用分块传输编码,响应体的长度也将为 [code]-1[/code]。" #: doc/classes/HTTPRequest.xml msgid "Returns the amount of bytes this HTTPRequest downloaded." msgstr "返回该 HTTPRequest 已下载的字节数。" #: doc/classes/HTTPRequest.xml msgid "" "Returns the current status of the underlying [HTTPClient]. See [enum " "HTTPClient.Status]." msgstr "返回内部 [HTTPClient] 的当前状态。见 [enum HTTPClient.Status]。" #: doc/classes/HTTPRequest.xml msgid "" "Creates request on the underlying [HTTPClient]. If there is no configuration " "errors, it tries to connect using [method HTTPClient.connect_to_host] and " "passes parameters onto [method HTTPClient.request].\n" "Returns [constant OK] if request is successfully created. (Does not imply " "that the server has responded), [constant ERR_UNCONFIGURED] if not in the " "tree, [constant ERR_BUSY] if still processing previous request, [constant " "ERR_INVALID_PARAMETER] if given string is not a valid URL format, or " "[constant ERR_CANT_CONNECT] if not using thread and the [HTTPClient] cannot " "connect to host.\n" "[b]Note:[/b] When [code]method[/code] is [constant HTTPClient.METHOD_GET], " "the payload sent via [code]request_data[/code] might be ignored by the " "server or even cause the server to reject the request (check [url=https://" "datatracker.ietf.org/doc/html/rfc7231#section-4.3.1]RFC 7231 section 4.3.1[/" "url] for more details). As a workaround, you can send data as a query string " "in the URL. See [method String.http_escape] for an example." msgstr "" "在底层的 [HTTPClient] 上创建请求。如果没有配置错误,它会尝试使用 [method " "HTTPClient.connect_to_host] 连接并将参数传递给 [method HTTPClient." "request]。\n" "如果请求创建成功,则返回 [constant OK]。 (并不意味着服务器已响应)," "[constant ERR_UNCONFIGURED] 如果不在树中,[constant ERR_BUSY] 如果仍在处理先" "前的请求,[constant ERR_INVALID_PARAMETER] 如果给定的字符串不是有效的 URL 格" "式,或 [constant ERR_CANT_CONNECT]如果不使用线程并且 [HTTPClient] 无法连接到" "主机。\n" "[b]注意:[/b]当[code]method[/code]为[constant HTTPClient.METHOD_GET]时,通过" "[code]request_data[/code]发送的payload可能会被服务器忽略甚至导致服务器拒绝请" "求,参阅 [url=https://datatracker.ietf.org/doc/html/" "rfc7231#section-4.3.1]RFC 7231 第 4.3.1 节[/url] 了解更多。作为一种解决方法," "你可以将数据作为 URL 中的查询字符串发送。参阅 [method String.http_escape] 示" "例。" #: doc/classes/HTTPRequest.xml msgid "" "Creates request on the underlying [HTTPClient] using a raw array of bytes " "for the request body. If there is no configuration errors, it tries to " "connect using [method HTTPClient.connect_to_host] and passes parameters onto " "[method HTTPClient.request].\n" "Returns [constant OK] if request is successfully created. (Does not imply " "that the server has responded), [constant ERR_UNCONFIGURED] if not in the " "tree, [constant ERR_BUSY] if still processing previous request, [constant " "ERR_INVALID_PARAMETER] if given string is not a valid URL format, or " "[constant ERR_CANT_CONNECT] if not using thread and the [HTTPClient] cannot " "connect to host." msgstr "" "在底层的[HTTPClient]上创建请求,使用一个原始字节数组作为请求主体。如果没有配" "置错误,它会尝试使用 [method HTTPClient.connect_to_host] 连接并将参数传递给 " "[method HTTPClient.request]。\n" "如果请求创建成功,则返回 [constant OK]。 (并不意味着服务器已响应)," "[constant ERR_UNCONFIGURED] 如果不在树中,[constant ERR_BUSY] 如果仍在处理先" "前的请求,[constant ERR_INVALID_PARAMETER] 如果给定的字符串不是有效的 URL 格" "式,或 [constant ERR_CANT_CONNECT]如果不使用线程并且 [HTTPClient] 无法连接到" "主机。" #: doc/classes/HTTPRequest.xml msgid "" "Maximum allowed size for response bodies ([code]-1[/code] means no limit). " "When only small files are expected, this can be used to prevent disallow " "receiving files that are too large, preventing potential denial of service " "attacks." msgstr "" "允许的响应体大小上限([code]-1[/code] 表示无限制)。只想要较小的文件时,可用" "于拒绝接收太大的文件,防止可能的拒绝服务攻击。" #: doc/classes/HTTPRequest.xml msgid "" "The size of the buffer used and maximum bytes to read per iteration. See " "[member HTTPClient.read_chunk_size].\n" "Set this to a lower value (e.g. 4096 for 4 KiB) when downloading small files " "to decrease memory usage at the cost of download speeds." msgstr "" "使用的缓冲区大小和每次迭代读取的最大字节数。参阅 [member HTTPClient." "read_chunk_size]。\n" "下载小文件时将其设置为较低的值,以降低内存使用量,但会降低下载速度,例如 " "4096 表示 4 KiB。" #: doc/classes/HTTPRequest.xml msgid "" "The file to download into. If set to a non-empty string, the request output " "will be written to the file located at the path. If a file already exists at " "the specified location, it will be overwritten as soon as body data begins " "to be received.\n" "[b]Note:[/b] Folders are not automatically created when the file is created. " "If [member download_file] points to a subfolder, it's recommended to create " "the necessary folders beforehand using [method Directory.make_dir_recursive] " "to ensure the file can be written." msgstr "" "下载到的文件。设为非空字符串时,请求的输出会被写入位于该路径的文件中。如果在" "指定的位置已存在文件,一旦开始接收响应体数据,该文件就会被覆盖。\n" "[b]注意:[/b]创建该文件时,不会自动创建文件夹。如果 [member download_file] 指" "向子文件夹,建议提前使用 [method Directory.make_dir_recursive] 创建好必要的文" "件夹,确保能够写入文件。" #: doc/classes/HTTPRequest.xml msgid "" "Maximum number of allowed redirects. This is used to prevent endless " "redirect loops." msgstr "允许的最大重定向数。用于防止无限重定向循环。" #: doc/classes/HTTPRequest.xml msgid "" "If set to a value greater than [code]0.0[/code], the HTTP request will time " "out after [code]timeout[/code] seconds have passed and the request is not " "[i]completed[/i] yet. For small HTTP requests such as REST API usage, set " "[member timeout] to a value greater than [code]0.0[/code] to prevent the " "application from getting stuck if the request fails to get a response in a " "timely manner. For file downloads, leave this to [code]0.0[/code] to prevent " "the download from failing if it takes too much time." msgstr "" "如果设为大于 [code]0.0[/code] 的值,在经过 [code]timeout[/code] 秒仍未[i]完成" "[/i]请求时,该 HTTP 请求就会超时。对于 REST API 等较小的 HTTP 请求,将 " "[member timeout] 设为大于 [code]0.0[/code] 的值可以定时防止应用程序在失败时陷" "入长时间的无响应状态。下载文件时请保持 [code]0.0[/code],防止在需要花费较长时" "间下载时导致下载失败。" #: doc/classes/HTTPRequest.xml msgid "If [code]true[/code], multithreading is used to improve performance." msgstr "为 [code]true[/code] 时,将启用多线程提高性能。" #: doc/classes/HTTPRequest.xml msgid "Emitted when a request is completed." msgstr "请求完成时触发。" #: doc/classes/HTTPRequest.xml msgid "Request successful." msgstr "请求成功。" #: doc/classes/HTTPRequest.xml msgid "Request failed while connecting." msgstr "连接时请求失败。" #: doc/classes/HTTPRequest.xml msgid "Request failed while resolving." msgstr "解析时请求失败。" #: doc/classes/HTTPRequest.xml msgid "Request failed due to connection (read/write) error." msgstr "因连接(读写)错误而失败。" #: doc/classes/HTTPRequest.xml msgid "Request failed on SSL handshake." msgstr "SSL 握手时请求失败。" #: doc/classes/HTTPRequest.xml msgid "Request does not have a response (yet)." msgstr "请求(目前还)没有获得相应。" #: doc/classes/HTTPRequest.xml msgid "Request exceeded its maximum size limit, see [member body_size_limit]." msgstr "请求超出了大小上限,见 [member body_size_limit]。" #: doc/classes/HTTPRequest.xml msgid "Request failed (currently unused)." msgstr "请求失败(目前未使用)。" #: doc/classes/HTTPRequest.xml msgid "HTTPRequest couldn't open the download file." msgstr "HTTPRequest 无法打开下载文件。" #: doc/classes/HTTPRequest.xml msgid "HTTPRequest couldn't write to the download file." msgstr "HTTPRequest 无法写入下载文件。" #: doc/classes/HTTPRequest.xml msgid "Request reached its maximum redirect limit, see [member max_redirects]." msgstr "请求超出了重定向次数上限,见 [member max_redirects]。" #: doc/classes/Image.xml msgid "Image datatype." msgstr "图像数据类型。" #: doc/classes/Image.xml msgid "" "Native image datatype. Contains image data which can be converted to an " "[ImageTexture] and provides commonly used [i]image processing[/i] methods. " "The maximum width and height for an [Image] are [constant MAX_WIDTH] and " "[constant MAX_HEIGHT].\n" "An [Image] cannot be assigned to a [code]texture[/code] property of an " "object directly (such as [Sprite]), and has to be converted manually to an " "[ImageTexture] first.\n" "[b]Note:[/b] The maximum image size is 16384×16384 pixels due to graphics " "hardware limitations. Larger images may fail to import." msgstr "" "本地图像数据类型。包含可转换为 [ImageTexture] 的图像数据,并提供常用的[i]图像" "处理[/i]方法。 [Image] 的最大宽度和高度是 [constant MAX_WIDTH] 和 [constant " "MAX_HEIGHT]。\n" "[Image] 不能直接分配给对象的 [code]texture[/code] 属性,例如 [Sprite],必须先" "手动转换为 [ImageTexture]。\n" "[b]注意:[/b]由于图形硬件限制,最大图像尺寸为 16384×16384 像素。较大的图像可" "能无法导入。" #: doc/classes/Image.xml doc/classes/ImageTexture.xml msgid "Importing images" msgstr "导入图像" #: doc/classes/Image.xml msgid "" "Alpha-blends [code]src_rect[/code] from [code]src[/code] image to this image " "at coordinates [code]dest[/code], clipped accordingly to both image bounds. " "This image and [code]src[/code] image [b]must[/b] have the same format. " "[code]src_rect[/code] with not positive size is treated as empty." msgstr "" "将源图像 [code]src[/code] 上的矩形区域 [code]src_rect[/code] 复制到本图像从坐" "标 [code]dst[/code] 起的区域,会根据两者的图像区域进行裁剪。这张图像和 " "[code]src[/code] 图像的格式[b]必须[/b]一致。[code]src_rect[/code] 的大小如果" "非正,则会作为空矩形处理。" #: doc/classes/Image.xml msgid "" "Alpha-blends [code]src_rect[/code] from [code]src[/code] image to this image " "using [code]mask[/code] image at coordinates [code]dst[/code], clipped " "accordingly to both image bounds. Alpha channels are required for both " "[code]src[/code] and [code]mask[/code]. [code]dst[/code] pixels and " "[code]src[/code] pixels will blend if the corresponding mask pixel's alpha " "value is not 0. This image and [code]src[/code] image [b]must[/b] have the " "same format. [code]src[/code] image and [code]mask[/code] image [b]must[/b] " "have the same size (width and height) but they can have different formats. " "[code]src_rect[/code] with not positive size is treated as empty." msgstr "" "将源图像 [code]src[/code] 上的矩形区域 [code]src_rect[/code] 与本图像从坐标 " "[code]dst[/code] 起的区域根据遮罩图像 [code]mask[/code] 进行 Alpha 混合,会根" "据两者的图像区域进行裁剪。[code]src[/code] 和 [code]mask[/code] 都需要有 " "Alpha 通道。如果某个遮罩像素的 Alpha 值非 0,在 [code]dst[/code] 和 " "[code]src[/code] 上对应的像素就会进行混合。这张图像与 [code]src[/code] 图像的" "格式[b]必须[/b]一致。[code]src[/code] 图像和 [code]mask[/code] 图像的大小(宽" "度和高度)[b]必须[/b]相同,格式可以不同。[code]src_rect[/code] 的大小如果非" "正,则会作为空矩形处理。" #: doc/classes/Image.xml msgid "" "Copies [code]src_rect[/code] from [code]src[/code] image to this image at " "coordinates [code]dst[/code], clipped accordingly to both image bounds. This " "image and [code]src[/code] image [b]must[/b] have the same format. " "[code]src_rect[/code] with not positive size is treated as empty." msgstr "" "将源图像 [code]src[/code] 上的矩形区域 [code]src_rect[/code] 复制到本图像从坐" "标 [code]dst[/code] 起的区域,会根据两者的图像区域进行裁剪。这张图像和 " "[code]src[/code] 图像的格式[b]必须[/b]一致。[code]src_rect[/code] 的大小如果" "非正,则会作为空矩形处理。" #: doc/classes/Image.xml msgid "" "Blits [code]src_rect[/code] area from [code]src[/code] image to this image " "at the coordinates given by [code]dst[/code], clipped accordingly to both " "image bounds. [code]src[/code] pixel is copied onto [code]dst[/code] if the " "corresponding [code]mask[/code] pixel's alpha value is not 0. This image and " "[code]src[/code] image [b]must[/b] have the same format. [code]src[/code] " "image and [code]mask[/code] image [b]must[/b] have the same size (width and " "height) but they can have different formats. [code]src_rect[/code] with not " "positive size is treated as empty." msgstr "" "将源图像 [code]src[/code] 上的矩形区域 [code]src_rect[/code] 复制到本图像从坐" "标 [code]dst[/code] 起的区域,会根据两者的图像区域进行裁剪。如果遮罩图 " "[code]mask[/code] 上某个像素的 Alpha 值非 0,就会把 [code]src[/code] 上对应的" "像素复制到 [code]dst[/code] 上。这张图像和 [code]src[/code] 图像的格式[b]必须" "[/b]一致。[code]src[/code] 图像和 [code]mask[/code] 图像的大小(宽度和高度)" "[b]必须[/b]相同,格式可以不同。[code]src_rect[/code] 的大小如果非正,则会作为" "空矩形处理。" #: doc/classes/Image.xml msgid "" "Converts a bumpmap to a normalmap. A bumpmap provides a height offset per-" "pixel, while a normalmap provides a normal direction per pixel." msgstr "" "将凹凸贴图转换为法线贴图。凹凸贴图提供每个像素的高度偏移,而法线贴图提供每个" "像素的法线方向。" #: doc/classes/Image.xml msgid "Removes the image's mipmaps." msgstr "删除图像的多级渐远纹理。" #: doc/classes/Image.xml msgid "" "Compresses the image to use less memory. Can not directly access pixel data " "while the image is compressed. Returns error if the chosen compression mode " "is not available. See [enum CompressMode] and [enum CompressSource] " "constants." msgstr "" "压缩图像以减少内存的使用。当图像被压缩时,不能直接访问像素数据。如果选择的压" "缩模式不可用,则返回错误。参阅 [enum CompressMode] 和 [enum CompressSource] " "常量。" #: doc/classes/Image.xml msgid "Converts the image's format. See [enum Format] constants." msgstr "转换图像的格式。请参阅 [enum Format] 常量。" #: doc/classes/Image.xml msgid "Copies [code]src[/code] image to this image." msgstr "将源图像 [code]src[/code] 复制到本图像。" #: doc/classes/Image.xml msgid "" "Creates an empty image of given size and format. See [enum Format] " "constants. If [code]use_mipmaps[/code] is [code]true[/code] then generate " "mipmaps for this image. See the [method generate_mipmaps]." msgstr "" "创建一个给定大小和格式的空图像。见 [enum Format] 常量。[code]use_mipmaps[/" "code] 为 [code]true[/code] 时会为这个图像生成多级渐远纹理。请参阅 [method " "generate_mipmaps]。" #: doc/classes/Image.xml msgid "" "Creates a new image of given size and format. See [enum Format] constants. " "Fills the image with the given raw data. If [code]use_mipmaps[/code] is " "[code]true[/code] then loads mipmaps for this image from [code]data[/code]. " "See [method generate_mipmaps]." msgstr "" "创建一个给定大小和格式的新图像。参阅 [enum Format] 常量。用给定的原始数据填充" "图像。[code]use_mipmaps[/code] 为 [code]true[/code] 时会为该图像从 " "[code]data[/code] 加载多级渐远纹理。请参阅 [method generate_mipmaps]。" #: doc/classes/Image.xml msgid "" "Crops the image to the given [code]width[/code] and [code]height[/code]. If " "the specified size is larger than the current size, the extra area is filled " "with black pixels." msgstr "" "将图像裁剪成给定的宽度 [code]width[/code] 和高度 [code]height[/code]。如果指" "定的尺寸大于当前尺寸,多出的区域将被填充为黑色。" #: doc/classes/Image.xml msgid "" "Decompresses the image if it is compressed. Returns an error if decompress " "function is not available." msgstr "如果图像被压缩,则解压缩图像。如果解压缩功能不可用,则返回错误。" #: doc/classes/Image.xml msgid "" "Returns [constant ALPHA_BLEND] if the image has data for alpha values. " "Returns [constant ALPHA_BIT] if all the alpha values are stored in a single " "bit. Returns [constant ALPHA_NONE] if no data for alpha values is found." msgstr "" "如果图像有 Alpha 值的数据,则返回 [constant ALPHA_BLEND]。如果所有的 Alpha 值" "都存储在一个位上,则返回 [constant ALPHA_BIT]。如果没有找到 Alpha 值的数据," "则返回 [constant ALPHA_NONE]。" #: doc/classes/Image.xml msgid "" "Stretches the image and enlarges it by a factor of 2. No interpolation is " "done." msgstr "拉伸图像并将其放大2倍,不进行插值。" #: doc/classes/Image.xml msgid "Fills the image with [code]color[/code]." msgstr "使用颜色 [code]color[/code] 填充图像。" #: doc/classes/Image.xml msgid "Fills [code]rect[/code] with [code]color[/code]." msgstr "使用颜色 [code]color[/code] 填充矩形 [code]rect[/code]。" #: doc/classes/Image.xml msgid "Blends low-alpha pixels with nearby pixels." msgstr "将 Alpha 较低的像素与附近像素混合。" #: doc/classes/Image.xml msgid "Flips the image horizontally." msgstr "水平翻转图像。" #: doc/classes/Image.xml msgid "Flips the image vertically." msgstr "垂直翻转图像。" #: doc/classes/Image.xml msgid "" "Generates mipmaps for the image. Mipmaps are precalculated lower-resolution " "copies of the image that are automatically used if the image needs to be " "scaled down when rendered. They help improve image quality and performance " "when rendering. This method returns an error if the image is compressed, in " "a custom format, or if the image's width/height is [code]0[/code].\n" "[b]Note:[/b] Mipmap generation is done on the CPU, is single-threaded and is " "[i]always[/i] done on the main thread. This means generating mipmaps will " "result in noticeable stuttering during gameplay, even if [method " "generate_mipmaps] is called from a [Thread]." msgstr "" "为图像生成多级渐远纹理。多级渐远纹理是预先计算好的图像的低分辨率副本,如果图" "像在渲染时需要缩小,就会自动使用。其有助于提高图像质量和渲染时的性能。如果图" "像被压缩,或采用自定义格式,或图像的宽度或高度为 [code]0[/code],则此方法返回" "错误。\n" "[b]注意:[/b]多级渐远纹理的生成是在 CPU 上完成的,是单线程的,并且[i]总是[/i]" "在主线程上完成。这意味着在游戏过程中生成多级渐远纹理会导致明显的卡顿,即使从 " "[Thread] 调用[method generate_mipmaps]。" #: doc/classes/Image.xml msgid "Returns a copy of the image's raw data." msgstr "返回图像原始数据的副本。" #: doc/classes/Image.xml msgid "Returns the image's format. See [enum Format] constants." msgstr "返回图像的格式。参阅 [enum Format] 常量。" #: doc/classes/Image.xml msgid "Returns the image's height." msgstr "返回图像的高度。" #: doc/classes/Image.xml msgid "" "Returns the offset where the image's mipmap with index [code]mipmap[/code] " "is stored in the [code]data[/code] dictionary." msgstr "" "返回存储在图像 [code]data[/code] 字典中索引为 [code]mipmap[/code] 的偏移量。" #: doc/classes/Image.xml msgid "" "Returns the color of the pixel at [code](x, y)[/code] if the image is " "locked. If the image is unlocked, it always returns a [Color] with the value " "[code](0, 0, 0, 1.0)[/code]. This is the same as [method get_pixelv], but " "two integer arguments instead of a Vector2 argument." msgstr "" "如果图像被锁定,则返回 [code](x, y)[/code] 处像素的颜色。如果图像被解锁,它总" "是返回 [code](0, 0, 0, 1.0)[/code] 值的 [Color]。这与 [method get_pixelv] 相" "同,但有两个整数参数而不是 Vector2 参数。" #: doc/classes/Image.xml msgid "" "Returns the color of the pixel at [code]src[/code] if the image is locked. " "If the image is unlocked, it always returns a [Color] with the value [code]" "(0, 0, 0, 1.0)[/code]. This is the same as [method get_pixel], but with a " "Vector2 argument instead of two integer arguments." msgstr "" "如果图像已锁定,返回 [code]src[/code] 处的像素的颜色。如果图像未被锁定,它总" "是返回值为 [code](0, 0, 0, 1.0)[/code] 的 [Color]。这与 [method get_pixel] 相" "同,只是用一个 Vector2 参数代替了两个整数参数。" #: doc/classes/Image.xml msgid "" "Returns a new image that is a copy of the image's area specified with " "[code]rect[/code]." msgstr "返回一个新图像,它是用 [code]rect[/code] 所截取图像区域的副本。" #: doc/classes/Image.xml msgid "Returns the image's size (width and height)." msgstr "返回图像的大小(宽度和高度)。" #: doc/classes/Image.xml msgid "" "Returns a [Rect2] enclosing the visible portion of the image, considering " "each pixel with a non-zero alpha channel as visible." msgstr "" "返回一个包围图像可见部分的 [Rect2] 矩形,像素的 Alpha 通道值非零时视为可见。" #: doc/classes/Image.xml msgid "Returns the image's width." msgstr "返回图像的宽度。" #: doc/classes/Image.xml msgid "Returns [code]true[/code] if the image has generated mipmaps." msgstr "如果图像已经生成多级渐远纹理,则返回 [code]true[/code]。" #: doc/classes/Image.xml msgid "Returns [code]true[/code] if the image is compressed." msgstr "如果图像被压缩,返回 [code]true[/code]。" #: doc/classes/Image.xml msgid "Returns [code]true[/code] if the image has no data." msgstr "如果图像没有数据,返回 [code]true[/code]。" #: doc/classes/Image.xml msgid "" "Returns [code]true[/code] if all the image's pixels have an alpha value of " "0. Returns [code]false[/code] if any pixel has an alpha value higher than 0." msgstr "" "如果图像中所有像素的 Alpha 都是 0,则返回 [code]true[/code]。如果有任何像素" "的 Alpha 高于 0,则返回 [code]false[/code]。" #: doc/classes/Image.xml msgid "" "Loads an image from file [code]path[/code]. See [url=$DOCS_URL/tutorials/" "assets_pipeline/importing_images.html#supported-image-formats]Supported " "image formats[/url] for a list of supported image formats and limitations.\n" "[b]Warning:[/b] This method should only be used in the editor or in cases " "when you need to load external images at run-time, such as images located at " "the [code]user://[/code] directory, and may not work in exported projects.\n" "See also [ImageTexture] description for usage examples." msgstr "" "从文件 [code]path[/code] 加载图像。请参阅[url=$DOCS_URL/tutorials/" "assets_pipeline/importing_images.html#supported-image-formats]支持的图像格式" "[/url],了解支持的图像格式和限制。\n" "[b]警告:[/b]这个方法只能在编辑器中使用,或者在运行时需要加载外部图像的情况下" "使用,比如位于 [code]user://[/code] 目录下的图像,在导出的项目中可能无法工" "作。\n" "有关使用实例,请参阅 [ImageTexture] 描述。" #: doc/classes/Image.xml msgid "" "Loads an image from the binary contents of a BMP file.\n" "[b]Note:[/b] Godot's BMP module doesn't support 16-bit per pixel images. " "Only 1-bit, 4-bit, 8-bit, 24-bit, and 32-bit per pixel images are supported." msgstr "" "从 BMP 文件的二进制内容中加载图像。\n" "[b]注意:[/b]Godot 的 BMP 模块不支持 16 位像素的图像。只支持 1 位、4 位、8 " "位、24 位和 32 位像素的图像。" #: doc/classes/Image.xml msgid "Loads an image from the binary contents of a JPEG file." msgstr "从 JPEG 文件的二进制内容加载图像。" #: doc/classes/Image.xml msgid "Loads an image from the binary contents of a PNG file." msgstr "从 PNG 文件的二进制内容加载图像。" #: doc/classes/Image.xml msgid "Loads an image from the binary contents of a TGA file." msgstr "从 TGA 文件的二进制内容加载图像。" #: doc/classes/Image.xml msgid "Loads an image from the binary contents of a WebP file." msgstr "从 WebP 文件的二进制内容加载图像。" #: doc/classes/Image.xml msgid "" "Locks the data for reading and writing access. Sends an error to the console " "if the image is not locked when reading or writing a pixel." msgstr "" "锁定数据的读写访问。如果在读或写像素时,图像没有被锁定,则向控制台发送一个错" "误。" #: doc/classes/Image.xml msgid "" "Converts the image's data to represent coordinates on a 3D plane. This is " "used when the image represents a normalmap. A normalmap can add lots of " "detail to a 3D surface without increasing the polygon count." msgstr "" "转换图像的数据以表示 3D 平面上的坐标。当图像表示法线贴图时使用。法线贴图可以" "在不增加多边形数量的情况下向 3D 表面添加大量细节。" #: doc/classes/Image.xml msgid "" "Multiplies color values with alpha values. Resulting color values for a " "pixel are [code](color * alpha)/256[/code]." msgstr "" "将颜色值与 Alpha 值相乘。一个像素的结果颜色值是 [code](color * alpha)/256[/" "code]。" #: doc/classes/Image.xml msgid "" "Resizes the image to the given [code]width[/code] and [code]height[/code]. " "New pixels are calculated using the [code]interpolation[/code] mode defined " "via [enum Interpolation] constants." msgstr "" "将图像大小调整到给定的宽 [code]width[/code] 和高 [code]height[/code]。新像素" "的计算通过 [enum Interpolation] 常量定义的 [code]interpolation[/code] 插值模" "式进行。" #: doc/classes/Image.xml msgid "" "Resizes the image to the nearest power of 2 for the width and height. If " "[code]square[/code] is [code]true[/code] then set width and height to be the " "same. New pixels are calculated using the [code]interpolation[/code] mode " "defined via [enum Interpolation] constants." msgstr "" "将图像的宽度和高度调整到最接近的 2 的幂。如果 [code]square[/code] 为 " "[code]true[/code],那么设置宽度和高度为相同。新像素的计算通过 [enum " "Interpolation] 常量定义的 [code]interpolation[/code] 插值模式进行。" #: doc/classes/Image.xml msgid "" "Converts a standard RGBE (Red Green Blue Exponent) image to an sRGB image." msgstr "将标准 RGBE(红绿蓝指数)图像转换为 sRGB 图像。" #: doc/classes/Image.xml msgid "" "Saves the image as an EXR file to [code]path[/code]. If [code]grayscale[/" "code] is [code]true[/code] and the image has only one channel, it will be " "saved explicitly as monochrome rather than one red channel. This function " "will return [constant ERR_UNAVAILABLE] if Godot was compiled without the " "TinyEXR module.\n" "[b]Note:[/b] The TinyEXR module is disabled in non-editor builds, which " "means [method save_exr] will return [constant ERR_UNAVAILABLE] when it is " "called from an exported project." msgstr "" "将图像作为EXR文件保存到[code]path[/code]。如果[code]grayscale[/code]是" "[code]true[/code]并且图像只有一个通道,它将被明确地保存为单色而不是红色通道。" "如果Godot在编译时没有TinyEXR模块,这个函数将返回[constant " "ERR_UNAVAILABLE]。\n" "[b]注意:[/b]TinyEXR模块在非编辑器构建中被禁用,这意味着[method save_exr]从导" "出的项目中调用时将返回[constant ERR_UNAVAILABLE]。" #: doc/classes/Image.xml msgid "Saves the image as a PNG file to [code]path[/code]." msgstr "将图像作为 PNG 文件保存到 [code]path[/code]。" #: doc/classes/Image.xml msgid "" "Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. " "Example:\n" "[codeblock]\n" "var img = Image.new()\n" "img.create(img_width, img_height, false, Image.FORMAT_RGBA8)\n" "img.lock()\n" "img.set_pixel(x, y, color) # Works\n" "img.unlock()\n" "img.set_pixel(x, y, color) # Does not have an effect\n" "[/codeblock]" msgstr "" "如果图像被锁定,设置[code](x, y)[/code]处像素的[Color]。例子:\n" "[codeblock]\n" "var img = Image.new()\n" "img.create(img_width, img_height, false, Image.FORMAT_RGBA8)\n" "img.lock()\n" "img.set_pixel(x, y, color) # Works\n" "img.unlock()\n" "img.set_pixel(x, y, color) # Does not have an effect\n" "[/codeblock]" #: doc/classes/Image.xml msgid "" "Sets the [Color] of the pixel at [code](dst.x, dst.y)[/code] if the image is " "locked. Note that the [code]dst[/code] values must be integers. Example:\n" "[codeblock]\n" "var img = Image.new()\n" "img.create(img_width, img_height, false, Image.FORMAT_RGBA8)\n" "img.lock()\n" "img.set_pixelv(Vector2(x, y), color) # Works\n" "img.unlock()\n" "img.set_pixelv(Vector2(x, y), color) # Does not have an effect\n" "[/codeblock]" msgstr "" "如果图像被锁定,设置[code](dst.x, dst.y)[/code]处的像素的[Color]。注意," "[code]dst[/code]值必须是整数。例:\n" "[codeblock]\n" "var img = Image.new()\n" "img.create(img_width, img_height, false, Image.FORMAT_RGBA8)\n" "img.lock()\n" "img.set_pixelv(Vector2(x, y), color) # Works\n" "img.unlock()\n" "img.set_pixelv(Vector2(x, y), color) # Does not have an effect\n" "[/codeblock]" #: doc/classes/Image.xml msgid "Shrinks the image by a factor of 2." msgstr "将图像缩小2倍。" #: doc/classes/Image.xml msgid "Converts the raw data from the sRGB colorspace to a linear scale." msgstr "将原始数据从 sRGB 色彩空间转换为线性比例。" #: doc/classes/Image.xml msgid "Unlocks the data and prevents changes." msgstr "解锁数据并防止更改。" #: doc/classes/Image.xml msgid "" "Holds all the image's color data in a given format. See [enum Format] " "constants." msgstr "以给定的格式保存图像的所有颜色数据。参阅 [enum Format] 常量。" #: doc/classes/Image.xml msgid "The maximal width allowed for [Image] resources." msgstr "[Image] 资源允许的最大宽度。" #: doc/classes/Image.xml msgid "The maximal height allowed for [Image] resources." msgstr "[Image] 资源允许的最大高度。" #: doc/classes/Image.xml msgid "Texture format with a single 8-bit depth representing luminance." msgstr "纹理格式,具有代表亮度的单一8位深度。" #: doc/classes/Image.xml msgid "" "OpenGL texture format with two values, luminance and alpha each stored with " "8 bits." msgstr "OpenGL 纹理格式,具有两个值,亮度和 Alpha,都以 8 位存储。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]RED[/code] with a single component and a " "bitdepth of 8.\n" "[b]Note:[/b] When using the GLES2 backend, this uses the alpha channel " "instead of the red channel for storage." msgstr "" "OpenGL 纹理格式 [code]RED[/code],具有单个分量和 8 位深度。\n" "[b]注意:[/b]当使用 GLES2 后端时,它使用 Alpha 通道而不是红色通道进行存储。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]RG[/code] with two components and a bitdepth of " "8 for each." msgstr "OpenGL 纹理格式 [code]RG[/code],具有两个部分,每个部分的位深度为 8。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]RGB[/code] with three components, each with a " "bitdepth of 8.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "OpenGL 纹理格式 [code]RGB[/code] 具有三个部分,每个分量部分的位深度为 8。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]RGBA[/code] with four components, each with a " "bitdepth of 8.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "OpenGL 纹理格式 [code]RGBA[/code] 有四个部分,每个分量部分的位深度为 8。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]RGBA[/code] with four components, each with a " "bitdepth of 4." msgstr "" "OpenGL 纹理格式 [code]RGBA[/code] 有四个部分,每个分量部分的位深度为 4。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RGB5_A1[/code] where 5 bits of depth for each " "component of RGB and one bit for alpha." msgstr "" "OpenGL 纹理格式 [code]GL_RGB5_A1[/code],其中 RGB 每个分量的深度为 5 位," "Alpha 为 1 位。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_R32F[/code] where there's one component, a 32-" "bit floating-point value." msgstr "OpenGL 纹理格式 [code]GL_R32F[/code],其中有一个分量,是32 位浮点值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RG32F[/code] where there are two components, " "each a 32-bit floating-point values." msgstr "" "OpenGL 纹理格式 [code]GL_RG32F[/code] 这里有两个部分,每个部分是一个 32 位浮" "点值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RGB32F[/code] where there are three " "components, each a 32-bit floating-point values." msgstr "" "OpenGL纹理格式[code]GL_RGB32F[/code],其中有三个部分,每个部分都是32位浮点" "值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RGBA32F[/code] where there are four " "components, each a 32-bit floating-point values." msgstr "" "OpenGL纹理格式[code]GL_RGBA32F[/code],其中有四个部分,每个部分都是32位浮点" "值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_R32F[/code] where there's one component, a 16-" "bit \"half-precision\" floating-point value." msgstr "" "OpenGL 纹理格式 [code]GL_R32F[/code],其中有一个分量,即 16 位“半精度”浮点" "值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RG32F[/code] where there are two components, " "each a 16-bit \"half-precision\" floating-point value." msgstr "" "OpenGL 纹理格式 [code]GL_RG32F[/code],其中有两个部分,每个部分都是 16 位“半" "精度”浮点值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RGB32F[/code] where there are three " "components, each a 16-bit \"half-precision\" floating-point value." msgstr "" "OpenGL 纹理格式 [code]GL_RGB32F[/code],其中有三个部分,每个部分都是 16 位“半" "精度”浮点值。" #: doc/classes/Image.xml msgid "" "OpenGL texture format [code]GL_RGBA32F[/code] where there are four " "components, each a 16-bit \"half-precision\" floating-point value." msgstr "" "OpenGL 纹理格式 [code]GL_RGBA32F[/code],其中有四个部分,每个都是 16 位“半精" "度”浮点值。" #: doc/classes/Image.xml msgid "" "A special OpenGL texture format where the three color components have 9 bits " "of precision and all three share a single 5-bit exponent." msgstr "" "一种特殊的 OpenGL 纹理格式,其中三个颜色成分的精度为 9 位,所有三个成分共享一" "个 5 比特位的指数。" #: doc/classes/Image.xml msgid "" "The [url=https://en.wikipedia.org/wiki/S3_Texture_Compression]S3TC[/url] " "texture format that uses Block Compression 1, and is the smallest variation " "of S3TC, only providing 1 bit of alpha and color data being premultiplied " "with alpha.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "[url=https://en.wikipedia.org/wiki/S3_Texture_Compression]S3TC[/url] 纹理格式" "使用块压缩 1,并且是 S3TC 的最小变化,仅提供 1 位的 Alpha 和颜色数据 预乘以 " "Alpha。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "The [url=https://en.wikipedia.org/wiki/S3_Texture_Compression]S3TC[/url] " "texture format that uses Block Compression 2, and color data is interpreted " "as not having been premultiplied by alpha. Well suited for images with sharp " "alpha transitions between translucent and opaque areas.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "使用块压缩 2 的 [url=https://en.wikipedia.org/wiki/" "S3_Texture_Compression]S3TC[/url] 贴图格式,并且颜色数据被解析为没有与 Alpha " "预先相乘。非常适用于具有 半透明和不透明区域之间的清晰的 Alpha 过渡。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "The [url=https://en.wikipedia.org/wiki/S3_Texture_Compression]S3TC[/url] " "texture format also known as Block Compression 3 or BC3 that contains 64 " "bits of alpha channel data followed by 64 bits of DXT1-encoded color data. " "Color data is not premultiplied by alpha, same as DXT3. DXT5 generally " "produces superior results for transparent gradients compared to DXT3.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "[url=https://en.wikipedia.org/wiki/S3_Texture_Compression]S3TC[/url] 纹理格式" "也称为块压缩 3 或 BC3,其中包含 64 位的 Alpha 通道数据,后跟 64 位的 DXT1 编" "码颜色数据。颜色数据不会与 DXT3 预先乘以 Alpha。与 DXT3 相比,DXT5 对于透明渐" "变通常会产生更好的结果。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "Texture format that uses [url=https://www.khronos.org/opengl/wiki/" "Red_Green_Texture_Compression]Red Green Texture Compression[/url], " "normalizing the red channel data using the same compression algorithm that " "DXT5 uses for the alpha channel." msgstr "" "使用[url=https://www.khronos.org/opengl/wiki/Red_Green_Texture_Compression]红" "绿贴图压缩[/url]的贴图格式,使用与 DXT5 用于 Alpha 通道相同的压缩算法对红色通" "道数据进行归一化。" #: doc/classes/Image.xml msgid "" "Texture format that uses [url=https://www.khronos.org/opengl/wiki/" "Red_Green_Texture_Compression]Red Green Texture Compression[/url], " "normalizing the red and green channel data using the same compression " "algorithm that DXT5 uses for the alpha channel." msgstr "" "使用[url=https://www.khronos.org/opengl/wiki/Red_Green_Texture_Compression]红" "绿贴图压缩[/url]的贴图格式,使用与 DXT5 用于 Alpha 的压缩算法相同的红绿数据通" "道。" #: doc/classes/Image.xml msgid "" "Texture format that uses [url=https://www.khronos.org/opengl/wiki/" "BPTC_Texture_Compression]BPTC[/url] compression with unsigned normalized " "RGBA components.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "使用 [url=https://www.khronos.org/opengl/wiki/BPTC_Texture_Compression]BPTC压" "缩[/url] 和无符号归一化RGBA分量的贴图格式.\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "Texture format that uses [url=https://www.khronos.org/opengl/wiki/" "BPTC_Texture_Compression]BPTC[/url] compression with signed floating-point " "RGB components." msgstr "" "使用 [url=https://www.khronos.org/opengl/wiki/BPTC_Texture_Compression]BPTC[/" "url] 压缩和有符号浮点RGB分量的贴图格式." #: doc/classes/Image.xml msgid "" "Texture format that uses [url=https://www.khronos.org/opengl/wiki/" "BPTC_Texture_Compression]BPTC[/url] compression with unsigned floating-point " "RGB components." msgstr "" "使用[url=https://www.khronos.org/opengl/wiki/BPTC_Texture_Compression]BPTC[/" "url] 压缩和无符号浮点RGB分量的贴图格式." #: doc/classes/Image.xml msgid "" "Texture format used on PowerVR-supported mobile platforms, uses 2-bit color " "depth with no alpha. More information can be found [url=https://en.wikipedia." "org/wiki/PVRTC]here[/url].\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "PowerVR 支持的移动平台上使用的贴图格式,使用 2 位颜色深度,没有 Alpha。更多信" "息可以在[url=https://en.wikipedia.org/wiki/PVRTC]这里[/url]找到。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "Same as [url=https://en.wikipedia.org/wiki/PVRTC]PVRTC2[/url], but with an " "alpha component." msgstr "" "与 [url=https://en.wikipedia.org/wiki/PVRTC]PVRTC2[/url] 相同,但带有 Alpha " "分量。" #: doc/classes/Image.xml msgid "" "Similar to [url=https://en.wikipedia.org/wiki/PVRTC]PVRTC2[/url], but with 4-" "bit color depth and no alpha." msgstr "" "与 [url=https://en.wikipedia.org/wiki/PVRTC]PVRTC2[/url] 类似,但具有 4 位色" "深且不带 Alpha。" #: doc/classes/Image.xml msgid "" "Same as [url=https://en.wikipedia.org/wiki/PVRTC]PVRTC4[/url], but with an " "alpha component." msgstr "" "与 [url=https://en.wikipedia.org/wiki/PVRTC]PVRTC4[/url] 相同,但带有 Alpha " "分量。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC1]Ericsson Texture Compression format 1[/" "url], also referred to as \"ETC1\", and is part of the OpenGL ES graphics " "standard. This format cannot store an alpha channel." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#ETC1]爱立信纹" "理压缩格式 1[/url],又称“ETC1”,是 OpenGL ES 图形标准的一部分。这种格式无法存" "储 Alpha 通道。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]R11_EAC[/code] variant), which provides one channel of " "unsigned data." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]R11_EAC[/code] 变体),它提供一个无符号数据" "通道。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]SIGNED_R11_EAC[/code] variant), which provides one " "channel of signed data." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]SIGNED_R11_EAC[/code] 变体),它提供一个有" "符号数据通道。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]RG11_EAC[/code] variant), which provides two channels " "of unsigned data." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]RG11_EAC[/code] 变体),它提供一个无符号数" "据通道。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]SIGNED_RG11_EAC[/code] variant), which provides two " "channels of signed data." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]SIGNED_RG11_EAC[/code] 变体),它提供两个有" "符号数据通道。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]RGB8[/code] variant), which is a follow-up of ETC1 and " "compresses RGB888 data.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]RGB8[/code] 变体),它是 ETC1 的后续版本," "可压缩 RGB888 数据。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]RGBA8[/code]variant), which compresses RGBA8888 data " "with full alpha support.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]RGBA8[/code] 变体),它可以压缩 RGBA8888 数" "据,完全支持 Alpha。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "" "[url=https://en.wikipedia.org/wiki/" "Ericsson_Texture_Compression#ETC2_and_EAC]Ericsson Texture Compression " "format 2[/url] ([code]RGB8_PUNCHTHROUGH_ALPHA1[/code] variant), which " "compresses RGBA data to make alpha either fully transparent or fully " "opaque.\n" "[b]Note:[/b] When creating an [ImageTexture], an sRGB to linear color space " "conversion is performed." msgstr "" "[url=https://zh.wikipedia.org/zh-cn/" "%E7%88%B1%E7%AB%8B%E4%BF%A1%E7%BA%B9%E7%90%86%E5%8E%8B%E7%BC%A9#[3]ETC2%E5%92%8CEAC]" "爱立信纹理压缩格式 2[/url]([code]RGB8_PUNCHTHROUGH_ALPHA1[/code] 变体),它" "可以压缩 RGBA 数据,使 Alpha 完全透明或完全不透明。\n" "[b]注意:[/b]创建 [ImageTexture] 时,会执行 sRGB 到线性色彩空间的转换。" #: doc/classes/Image.xml msgid "Represents the size of the [enum Format] enum." msgstr "表示 [enum Format] 枚举的大小。" #: doc/classes/Image.xml msgid "" "Performs nearest-neighbor interpolation. If the image is resized, it will be " "pixelated." msgstr "执行最近邻插值.如果调整图像大小,它将被像素化." #: doc/classes/Image.xml msgid "" "Performs bilinear interpolation. If the image is resized, it will be blurry. " "This mode is faster than [constant INTERPOLATE_CUBIC], but it results in " "lower quality." msgstr "" "执行双线性插值。如果调整图像大小,则图像将模糊。此模式比 [constant " "INTERPOLATE_CUBIC] 更快,但质量较低。" #: doc/classes/Image.xml msgid "" "Performs cubic interpolation. If the image is resized, it will be blurry. " "This mode often gives better results compared to [constant " "INTERPOLATE_BILINEAR], at the cost of being slower." msgstr "" "执行三次插值.如果调整图像大小,则图像将模糊.与[constant INTERPOLATE_BILINEAR]" "相比,此模式通常会产生更好的结果,但代价是速度较慢." #: doc/classes/Image.xml msgid "" "Performs bilinear separately on the two most-suited mipmap levels, then " "linearly interpolates between them.\n" "It's slower than [constant INTERPOLATE_BILINEAR], but produces higher-" "quality results with far fewer aliasing artifacts.\n" "If the image does not have mipmaps, they will be generated and used " "internally, but no mipmaps will be generated on the resulting image.\n" "[b]Note:[/b] If you intend to scale multiple copies of the original image, " "it's better to call [method generate_mipmaps]] on it in advance, to avoid " "wasting processing power in generating them again and again.\n" "On the other hand, if the image already has mipmaps, they will be used, and " "a new set will be generated for the resulting image." msgstr "" "在两个最适合的多级渐远纹理级别上分别执行双线性采样,然后在采样结果之间进行线" "性插值。\n" "它比 [constant INTERPOLATE_BILINEAR] 慢,但能产生更高质量的效果,减少锯齿伪" "影。\n" "如果图像没有多级渐远纹理,它们将被生成并在内部使用,但不会在生成的图像之上生" "成多级渐远纹理。\n" "[b]注意:[/b]如果你打算缩放原始图像的多个副本,最好事先对其调用 [method " "generate_mipmaps],以避免在生成它们时反复浪费处理能力。\n" "另一方面,如果图像已经有了多级渐远纹理,其将被使用,并为生成的图像生成新的一" "组。" #: doc/classes/Image.xml msgid "" "Performs Lanczos interpolation. This is the slowest image resizing mode, but " "it typically gives the best results, especially when downscalng images." msgstr "" "执行Lanczos插值.这是最慢的图像调整大小模式,但通常可以提供最佳效果,尤其是在缩" "小图像时." #: doc/classes/Image.xml msgid "Image does not have alpha." msgstr "图片没有Alpha通道." #: doc/classes/Image.xml msgid "Image stores alpha in a single bit." msgstr "图像将Alpha存储在单个bit中." #: doc/classes/Image.xml msgid "Image uses alpha." msgstr "图像使用阿尔法。" #: doc/classes/Image.xml msgid "Use S3TC compression." msgstr "使用S3TC压缩。" #: doc/classes/Image.xml msgid "Use PVRTC2 compression." msgstr "使用PVRTC2压缩。" #: doc/classes/Image.xml msgid "Use PVRTC4 compression." msgstr "使用PVRTC4压缩。" #: doc/classes/Image.xml msgid "Use ETC compression." msgstr "使用ETC压缩。" #: doc/classes/Image.xml msgid "Use ETC2 compression." msgstr "使用 ETC2 压缩。" #: doc/classes/Image.xml msgid "" "Source texture (before compression) is a regular texture. Default for all " "textures." msgstr "原始纹理(在压缩前)是常规纹理。所有纹理的默认值。" #: doc/classes/Image.xml msgid "Source texture (before compression) is in sRGB space." msgstr "原始纹理(在压缩前)使用 sRGB 空间。" #: doc/classes/Image.xml msgid "" "Source texture (before compression) is a normal texture (e.g. it can be " "compressed into two channels)." msgstr "原始纹理(在压缩前)是法线纹理(例如,可以压缩为两个通道)。" #: doc/classes/Image.xml msgid "Source texture (before compression) is a [TextureLayered]." msgstr "原始纹理(在压缩前)是 [TextureLayered]。" #: doc/classes/ImageTexture.xml msgid "A [Texture] based on an [Image]." msgstr "基于 [Image] 图片的 [Texture] 纹理。" #: doc/classes/ImageTexture.xml msgid "" "A [Texture] based on an [Image]. For an image to be displayed, an " "[ImageTexture] has to be created from it using the [method " "create_from_image] method:\n" "[codeblock]\n" "var texture = ImageTexture.new()\n" "var image = Image.new()\n" "image.load(\"res://icon.png\")\n" "texture.create_from_image(image)\n" "$Sprite.texture = texture\n" "[/codeblock]\n" "This way, textures can be created at run-time by loading images both from " "within the editor and externally.\n" "[b]Warning:[/b] Prefer to load imported textures with [method @GDScript." "load] over loading them from within the filesystem dynamically with [method " "Image.load], as it may not work in exported projects:\n" "[codeblock]\n" "var texture = load(\"res://icon.png\")\n" "$Sprite.texture = texture\n" "[/codeblock]\n" "This is because images have to be imported as [StreamTexture] first to be " "loaded with [method @GDScript.load]. If you'd still like to load an image " "file just like any other [Resource], import it as an [Image] resource " "instead, and then load it normally using the [method @GDScript.load] " "method.\n" "But do note that the image data can still be retrieved from an imported " "texture as well using the [method Texture.get_data] method, which returns a " "copy of the data:\n" "[codeblock]\n" "var texture = load(\"res://icon.png\")\n" "var image : Image = texture.get_data()\n" "[/codeblock]\n" "An [ImageTexture] is not meant to be operated from within the editor " "interface directly, and is mostly useful for rendering images on screen " "dynamically via code. If you need to generate images procedurally from " "within the editor, consider saving and importing images as custom texture " "resources implementing a new [EditorImportPlugin].\n" "[b]Note:[/b] The maximum texture size is 16384×16384 pixels due to graphics " "hardware limitations." msgstr "" "基于图片的纹理,要显示一个图片,必须使用 [method create_from_image] 方法来创" "建一个 [ImageTexture] 图片纹理数据:\n" "[codeblock]\n" "var texture = ImageTexture.new()\n" "var image = Image.new()\n" "image.load(\"res://icon.png\")\n" "texture.create_from_image(image)\n" "$Sprite.texture = texture\n" "[/codeblock]\n" "通过这种方式,可以在运行时通过从编辑器内部和外部加载图像来创建纹理。\n" "[b]警告:[/b]最好用 [method @GDScript.load] 加载导入的纹理,而不是使用 " "[method Image.load] 从文件系统中动态加载它们,因为它可能无法在导出的项目中工" "作:\n" "[codeblock]\n" "var texture = load(\"res://icon.png\")\n" "$Sprite.texture = texture\n" "[/codeblock]\n" "这是因为图像必须首先作为 [StreamTexture] 导入才能使用 [method @GDScript." "load] 加载。如果您仍然想像任何其他 [Resource] 一样加载图像文件,请将其作为 " "[Image] 资源导入,然后使用 [method @GDScript.load] 方法正常加载它。\n" "但请注意,仍然可以使用 [method Texture.get_data] 方法从导入的纹理中检索图像数" "据,该方法返回数据的副本:\n" "[codeblock]\n" "var texture = load(\"res://icon.png\")\n" "var image : Image = texture.get_data()\n" "[/codeblock]\n" "[ImageTexture] 不是直接在编辑器界面中操作的,主要用于通过代码在屏幕上动态渲染" "图像。如果您需要在编辑器中按程序生成图像,请考虑将图像保存和导入为自定义纹理" "资源,以实现新的 [EditorImportPlugin]。\n" "[b]注意:[/b]由于图形硬件限制,最大纹理尺寸为 16384×16384 像素。" #: doc/classes/ImageTexture.xml msgid "" "Create a new [ImageTexture] with [code]width[/code] and [code]height[/" "code].\n" "[code]format[/code] is a value from [enum Image.Format], [code]flags[/code] " "is any combination of [enum Texture.Flags]." msgstr "" "创建具有 [code]width[/code] 和 [code]height[/code] 的新 [ImageTexture]。\n" "[code]format[/code] 是 [enum Image.Format] 中的一个值,[code]flags[/code] 是 " "[enum Texture.Flags] 的任意组合。" #: doc/classes/ImageTexture.xml msgid "" "Initializes the texture by allocating and setting the data from an [Image] " "with [code]flags[/code] from [enum Texture.Flags]. An sRGB to linear color " "space conversion can take place, according to [enum Image.Format]." msgstr "" "通过使用 [enum Texture.Flags] 中的 [code]flags[/code] 分配和设置来自 [Image] " "的数据来初始化纹理。根据 [enum Image.Format],可以进行 sRGB 到线性颜色空间的" "转换。" #: doc/classes/ImageTexture.xml msgid "Returns the format of the texture, one of [enum Image.Format]." msgstr "返回纹理的格式,[enum Image.Format] 之一。" #: doc/classes/ImageTexture.xml msgid "" "Loads an image from a file path and creates a texture from it.\n" "[b]Note:[/b] This method is deprecated and will be removed in Godot 4.0, use " "[method Image.load] and [method create_from_image] instead." msgstr "" "从文件路径加载图像,并从中创建一个纹理图片。\n" "[b]注意:[/b]该方法已被废弃,并将在 Godot 4.0 中删除,请使用 [method Image." "load] 和 [method create_from_image] 代替。" #: doc/classes/ImageTexture.xml msgid "" "Replaces the texture's data with a new [Image].\n" "[b]Note:[/b] The texture has to be initialized first with the [method " "create_from_image] method before it can be updated. The new image " "dimensions, format, and mipmaps configuration should match the existing " "texture's image configuration, otherwise it has to be re-created with the " "[method create_from_image] method.\n" "Use this method over [method create_from_image] if you need to update the " "texture frequently, which is faster than allocating additional memory for a " "new texture each time." msgstr "" "用新的 [Image] 替换纹理的数据。\n" "[b]注意:[/b]纹理必须先用 [method create_from_image] 方法初始化,然后才能更" "新。新的图像尺寸、格式和多级渐远纹理配置应与现有纹理的图像配置相匹配,否则必" "须使用 [method create_from_image] 方法重新创建。\n" "如果需要频繁更新纹理,请在 [method create_from_image] 上使用此方法,这比每次" "为新纹理分配额外内存要快。" #: doc/classes/ImageTexture.xml doc/classes/VisualServer.xml msgid "Resizes the texture to the specified dimensions." msgstr "将纹理的大小调整为指定的尺寸。" #: doc/classes/ImageTexture.xml msgid "The storage quality for [constant STORAGE_COMPRESS_LOSSY]." msgstr "[constant STORAGE_COMPRESS_LOSSY] 的存储质量。" #: doc/classes/ImageTexture.xml msgid "The storage type (raw, lossy, or compressed)." msgstr "存储类型(原始、有损、压缩)。" #: doc/classes/ImageTexture.xml msgid "[Image] data is stored raw and unaltered." msgstr "[Image] 图像的原始储存数据。" #: doc/classes/ImageTexture.xml msgid "" "[Image] data is compressed with a lossy algorithm. You can set the storage " "quality with [member lossy_quality]." msgstr "" "[Image] 数据是用有损算法压缩的。 你可以用 [member lossy_quality] 设置存储质" "量。" #: doc/classes/ImageTexture.xml msgid "[Image] data is compressed with a lossless algorithm." msgstr "[Image] 数据是用无损算法压缩的。" #: doc/classes/ImmediateGeometry.xml msgid "Draws simple geometry from code." msgstr "通过代码绘制简单的几何图形。" #: doc/classes/ImmediateGeometry.xml msgid "" "Draws simple geometry from code. Uses a drawing mode similar to OpenGL 1.x.\n" "See also [ArrayMesh], [MeshDataTool] and [SurfaceTool] for procedural " "geometry generation.\n" "[b]Note:[/b] ImmediateGeometry3D is best suited to small amounts of mesh " "data that change every frame. It will be slow when handling large amounts of " "mesh data. If mesh data doesn't change often, use [ArrayMesh], " "[MeshDataTool] or [SurfaceTool] instead.\n" "[b]Note:[/b] Godot uses clockwise [url=https://learnopengl.com/Advanced-" "OpenGL/Face-culling]winding order[/url] for front faces of triangle " "primitive modes.\n" "[b]Note:[/b] In case of missing points when handling large amounts of mesh " "data, try increasing its buffer size limit under [member ProjectSettings." "rendering/limits/buffers/immediate_buffer_size_kb]." msgstr "" "从代码中绘制简单的几何图形。使用类似于 OpenGL 1.x 的绘制模式。\n" "请参阅 [ArrayMesh]、[MeshDataTool] 和 [SurfaceTool],了解程序式几何体的生" "成。\n" "[b]注意:[/b]ImmediateGeometry3D 最适合处理每一帧变化的少量网格数据。当处理大" "量的网格数据时,它将会很慢。如果网格数据不经常变化,请使用 [ArrayMesh]、" "[MeshDataTool] 或 [SurfaceTool] 代替。\n" "[b]注意:[/b]Godot 对三角形图元模式的正面使用顺时针[url=https://learnopengl." "com/Advanced-OpenGL/Face-culling]缠绕顺序[/url]。\n" "[b]注意:[/b]在处理大量网格数据时,如果出现漏点,可以尝试在 [member " "ProjectSettings.rendering/limits/buffers/immediate_buffer_size_kb] 增加其缓冲" "区大小限制。" #: doc/classes/ImmediateGeometry.xml msgid "" "Simple helper to draw an UV sphere with given latitude, longitude and radius." msgstr "用于绘制给定经纬度和半径的UV球体的简单辅助工具。" #: doc/classes/ImmediateGeometry.xml msgid "" "Adds a vertex in local coordinate space with the currently set color/uv/etc." msgstr "使用当前设置的颜色/uv等,在局部坐标空间中添加一个顶点。" #: doc/classes/ImmediateGeometry.xml msgid "" "Begin drawing (and optionally pass a texture override). When done call " "[method end]. For more information on how this works, search for " "[code]glBegin()[/code] and [code]glEnd()[/code] references.\n" "For the type of primitive, see the [enum Mesh.PrimitiveType] enum." msgstr "" "开始绘制(可选纹理重写)。当调用结束[method end]。对此如何实现的更多信息,请" "搜索 [code]glBegin()[/code] 和 [code]glEnd()[/code] 参考资料。\n" "图元的类型请参阅 [enum Mesh.PrimitiveType] 枚举。" #: doc/classes/ImmediateGeometry.xml msgid "Clears everything that was drawn using begin/end." msgstr "清除使用begin/end绘制的一切内容。" #: doc/classes/ImmediateGeometry.xml msgid "Ends a drawing context and displays the results." msgstr "结束正在绘制的context并显示其结果。" #: doc/classes/ImmediateGeometry.xml msgid "The current drawing color." msgstr "当前绘图颜色。" #: doc/classes/ImmediateGeometry.xml msgid "The next vertex's normal." msgstr "下一个顶点的法线。" #: doc/classes/ImmediateGeometry.xml msgid "The next vertex's tangent (and binormal facing)." msgstr "下一个顶点的切线(和副法线的方向)。" #: doc/classes/ImmediateGeometry.xml msgid "The next vertex's UV." msgstr "下一个顶点的 UV。" #: doc/classes/ImmediateGeometry.xml msgid "The next vertex's second layer UV." msgstr "下一个顶点的第二层UV。" #: doc/classes/Input.xml msgid "A singleton that deals with inputs." msgstr "处理输入的单例。" #: doc/classes/Input.xml msgid "" "A singleton that deals with inputs. This includes key presses, mouse buttons " "and movement, joypads, and input actions. Actions and their events can be " "set in the [b]Input Map[/b] tab in the [b]Project > Project Settings[/b], or " "with the [InputMap] class." msgstr "" "处理输入的单例。这包括按键、鼠标点击和移动、游戏手柄和输入动作。可以在[b]项" "目 > 项目设置[/b]的[b]输入映射[/b]选项卡中或使用 [InputMap] 类设置操作及其事" "件。" #: doc/classes/Input.xml msgid "Inputs tutorial index" msgstr "输入教程索引" #: doc/classes/Input.xml msgid "" "This will simulate pressing the specified action.\n" "The strength can be used for non-boolean actions, it's ranged between 0 and " "1 representing the intensity of the given action.\n" "[b]Note:[/b] This method will not cause any [method Node._input] calls. It " "is intended to be used with [method is_action_pressed] and [method " "is_action_just_pressed]. If you want to simulate [code]_input[/code], use " "[method parse_input_event] instead." msgstr "" "这将模拟按下指定的按键动作。\n" "强度可以用于非布尔运算的动作,它的范围在0到1之间,代表给定动作的力度。\n" "[b]注意:[/b]这个方法不会引起任何[method Node._input]调用。它旨在与[method " "is_action_pressed]和[method is_action_just_pressed]一起使用。如果你想模拟" "[code]_input[/code],请使用[method parse_input_event]代替。" #: doc/classes/Input.xml msgid "If the specified action is already pressed, this will release it." msgstr "如果已按下指定操作,那么将释放它。" #: doc/classes/Input.xml msgid "" "Adds a new mapping entry (in SDL2 format) to the mapping database. " "Optionally update already connected devices." msgstr "在映射数据库中添加新的映射条目(SDL2 格式)。可选更新已连接的设备。" #: doc/classes/Input.xml msgid "" "Sends all input events which are in the current buffer to the game loop. " "These events may have been buffered as a result of accumulated input " "([method set_use_accumulated_input]) or agile input flushing ([member " "ProjectSettings.input_devices/buffering/agile_event_flushing]).\n" "The engine will already do this itself at key execution points (at least " "once per frame). However, this can be useful in advanced cases where you " "want precise control over the timing of event handling." msgstr "" "将当前缓冲区内的所有输入事件发送给游戏循环。这些事件可能是由于累积输入" "([method set_use_accumulated_input])或敏捷输入刷新([member " "ProjectSettings.input_devices/buffering/agile_event_flushing])而被缓冲的结" "果。\n" "引擎已经会在关键的执行点执行此操作,至少每帧一次。然而,在你想要精确控制事件" "处理时间的高级情况下,这可能是有用的。" #: doc/classes/Input.xml msgid "" "Returns the acceleration of the device's accelerometer sensor, if the device " "has one. Otherwise, the method returns [constant Vector3.ZERO].\n" "Note this method returns an empty [Vector3] when running from the editor " "even when your device has an accelerometer. You must export your project to " "a supported device to read values from the accelerometer.\n" "[b]Note:[/b] This method only works on iOS, Android, and UWP. On other " "platforms, it always returns [constant Vector3.ZERO]. On Android the unit of " "measurement for each axis is m/s² while on iOS and UWP it's a multiple of " "the Earth's gravitational acceleration [code]g[/code] (~9.81 m/s²)." msgstr "" "如果设备有加速度传感器,则返回设备的加速度。否则,该方法返回[constant " "Vector3.ZERO]。\n" "请注意,即使你的设备有一个加速度计,当从编辑器运行时,该方法也会返回一个空的" "[Vector3]。你必须将项目导出到一个支持的设备上,以便从加速度计上读取数值。\n" "[b]注意:[/b]这个方法只在iOS、Android和UWP上工作。在其他平台上,它总是返回" "[constant Vector3.ZERO]。在Android上,每个轴的测量单位是m/s²,而在iOS和UWP" "上,它是地球重力加速度的倍数[code]g[/code](~9.81 m/s²)。" #: doc/classes/Input.xml msgid "" "Returns a value between 0 and 1 representing the raw intensity of the given " "action, ignoring the action's deadzone. In most cases, you should use " "[method get_action_strength] instead.\n" "If [code]exact[/code] is [code]false[/code], it ignores additional input " "modifiers for [InputEventKey] and [InputEventMouseButton] events, and the " "direction for [InputEventJoypadMotion] events." msgstr "" "返回介于 0 和 1 之间的值,代表给定动作的原始强度,忽略动作的死区。在大多数情" "况下,你应该使用 [method get_action_strength] 来代替。\n" "如果 [code]exact[/code] 是 [code]false[/code],它将忽略 [InputEventKey] 和 " "[InputEventMouseButton] 事件的额外输入修饰符,以及 [InputEventJoypadMotion] " "事件的方向。" #: doc/classes/Input.xml msgid "" "Returns a value between 0 and 1 representing the intensity of the given " "action. In a joypad, for example, the further away the axis (analog sticks " "or L2, R2 triggers) is from the dead zone, the closer the value will be to " "1. If the action is mapped to a control that has no axis as the keyboard, " "the value returned will be 0 or 1.\n" "If [code]exact[/code] is [code]false[/code], it ignores additional input " "modifiers for [InputEventKey] and [InputEventMouseButton] events, and the " "direction for [InputEventJoypadMotion] events." msgstr "" "返回介于 0 和 1 之间的值,代表给定动作的强度。例如,在一个操纵板上,轴(模拟" "杆或 L2、R2 触发器)离死区越远,数值就越接近 1。如果动作被映射到一个没有轴作" "为键盘的控件上,返回的数值将是 0 或 1。\n" "如果 [code]exact[/code] 是 [code]false[/code],它将忽略 [InputEventKey] 和 " "[InputEventMouseButton] 事件的额外输入修饰符,以及 [InputEventJoypadMotion] " "事件的方向。" #: doc/classes/Input.xml msgid "" "Get axis input by specifying two actions, one negative and one positive.\n" "This is a shorthand for writing [code]Input." "get_action_strength(\"positive_action\") - Input." "get_action_strength(\"negative_action\")[/code]." msgstr "" "通过指定两个动作来获取轴的输入,一个是负的,一个是正的。\n" "这是写[code]Input.get_action_strength(\"positive_action\")-Input." "get_action_strength(\"negative_action\")[/code]的简写。" #: doc/classes/Input.xml msgid "" "Returns an [Array] containing the device IDs of all currently connected " "joypads." msgstr "返回一个 [Array],包含当前所有连接手柄的设备 ID。" #: doc/classes/Input.xml msgid "Returns the currently assigned cursor shape (see [enum CursorShape])." msgstr "返回当前指定的光标形状(参阅 [enum CursorShape])。" #: doc/classes/Input.xml msgid "" "Returns the gravity of the device's accelerometer sensor, if the device has " "one. Otherwise, the method returns [constant Vector3.ZERO].\n" "[b]Note:[/b] This method only works on Android and iOS. On other platforms, " "it always returns [constant Vector3.ZERO]. On Android the unit of " "measurement for each axis is m/s² while on iOS it's a multiple of the " "Earth's gravitational acceleration [code]g[/code] (~9.81 m/s²)." msgstr "" "如果设备有加速度传感器,则返回设备的重力。否则,该方法返回[constant Vector3." "ZERO]。\n" "[b]注意:[/b]这个方法只在Android和iOS上工作。在其他平台上,它总是返回" "[constant Vector3.ZERO]。在Android上,每个轴的测量单位是m/s²,而在iOS上,它是" "地球重力加速度的倍数[code]g[/code](~9.81 m/s²)。" #: doc/classes/Input.xml msgid "" "Returns the rotation rate in rad/s around a device's X, Y, and Z axes of the " "gyroscope sensor, if the device has one. Otherwise, the method returns " "[constant Vector3.ZERO].\n" "[b]Note:[/b] This method only works on Android and iOS. On other platforms, " "it always returns [constant Vector3.ZERO]." msgstr "" "如果设备有陀螺仪传感器,则返回围绕设备X、Y、Z轴的旋转速率,单位为rad/s。否" "则,该方法返回[constant Vector3.ZERO]。\n" "[b]注意:[/b]这个方法只在Android和iOS上工作。在其他平台上,总是返回[constant " "Vector3.ZERO]。" #: doc/classes/Input.xml msgid "" "Returns the current value of the joypad axis at given index (see [enum " "JoystickList])." msgstr "返回给定索引的游戏手柄轴的当前值,参阅[enum JoystickList]。" #: doc/classes/Input.xml msgid "Returns the index of the provided axis name." msgstr "返回提供的轴名称的索引。" #: doc/classes/Input.xml msgid "" "Receives a [enum JoystickList] axis and returns its equivalent name as a " "string." msgstr "接收一个 [enum JoystickList] 轴,并以字符串形式返回其对应的名称。" #: doc/classes/Input.xml msgid "Returns the index of the provided button name." msgstr "返回所提供的按钮名称的索引。" #: doc/classes/Input.xml msgid "" "Receives a gamepad button from [enum JoystickList] and returns its " "equivalent name as a string." msgstr "" "从[enum JoystickList]中接收游戏手柄按钮,并将其对应的名称作为一个字符串返回。" #: doc/classes/Input.xml msgid "" "Returns a SDL2-compatible device GUID on platforms that use gamepad " "remapping. Returns [code]\"Default Gamepad\"[/code] otherwise." msgstr "" "在使用游戏手柄重映射的平台上返回一个SDL2兼容的设备GUID。否则返回 " "[code]\"Default Gamepad\"[/code]默认游戏手柄。" #: doc/classes/Input.xml msgid "Returns the name of the joypad at the specified device index." msgstr "返回指定设备索引处的手柄名称。" #: doc/classes/Input.xml msgid "Returns the duration of the current vibration effect in seconds." msgstr "以秒为单位返回当前振动效果的持续时间。" #: doc/classes/Input.xml msgid "" "Returns the strength of the joypad vibration: x is the strength of the weak " "motor, and y is the strength of the strong motor." msgstr "返回手柄振动的强度:x 是弱马达的强度,y 是强马达的强度。" #: doc/classes/Input.xml msgid "" "Returns the mouse speed for the last time the cursor was moved, and this " "until the next frame where the mouse moves. This means that even if the " "mouse is not moving, this function will still return the value of the last " "motion." msgstr "" "返回光标最后一次被移动时的鼠标速度,并且这个速度保持不变,直到鼠标发生了移动" "的下一帧。这意味着,即使鼠标没有移动,这个函数仍然会返回最后一次运动的值。" #: doc/classes/Input.xml msgid "" "Returns the magnetic field strength in micro-Tesla for all axes of the " "device's magnetometer sensor, if the device has one. Otherwise, the method " "returns [constant Vector3.ZERO].\n" "[b]Note:[/b] This method only works on Android, iOS and UWP. On other " "platforms, it always returns [constant Vector3.ZERO]." msgstr "" "如果设备有磁力传感器,则返回设备所有轴的磁场强度,微特斯拉。否则,该方法返回" "[constant Vector3.ZERO]。\n" "[b]注意:[/b]这个方法只在Android、iOS和UWP上有效。在其他平台上,总是返回" "[constant Vector3.ZERO]。" #: doc/classes/Input.xml msgid "" "Returns mouse buttons as a bitmask. If multiple mouse buttons are pressed at " "the same time, the bits are added together." msgstr "" "将鼠标按键作为一个比特掩码返回。如果多个鼠标按钮同时被按下,这些位会被加在一" "起。" #: doc/classes/Input.xml msgid "Returns the mouse mode. See the constants for more information." msgstr "返回鼠标模式。有关更多信息,请参阅常量。" #: doc/classes/Input.xml msgid "" "Gets an input vector by specifying four actions for the positive and " "negative X and Y axes.\n" "This method is useful when getting vector input, such as from a joystick, " "directional pad, arrows, or WASD. The vector has its length limited to 1 and " "has a circular deadzone, which is useful for using vector input as " "movement.\n" "By default, the deadzone is automatically calculated from the average of the " "action deadzones. However, you can override the deadzone to be whatever you " "want (on the range of 0 to 1)." msgstr "" "通过指定正负 X 和 Y 轴的四个动作来获取输入向量。\n" "这个方法在获取向量输入时很有用,比如从操纵杆、方向盘、箭头或 WASD。向量的长度" "被限制为 1,并且有一个圆形的死区,这对于使用向量输入进行运动很有用。\n" "默认情况下,死区根据动作死区的平均值自动计算。然而,你可以把死区覆盖为任何你" "想要的值(在 0 到 1 的范围内)。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] when the user starts pressing the action event, " "meaning it's [code]true[/code] only on the frame that the user pressed down " "the button.\n" "This is useful for code that needs to run only once when an action is " "pressed, instead of every frame while it's pressed.\n" "If [code]exact[/code] is [code]false[/code], it ignores additional input " "modifiers for [InputEventKey] and [InputEventMouseButton] events, and the " "direction for [InputEventJoypadMotion] events.\n" "[b]Note:[/b] Due to keyboard ghosting, [method is_action_just_pressed] may " "return [code]false[/code] even if one of the action's keys is pressed. See " "[url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input " "examples[/url] in the documentation for more information." msgstr "" "当用户开始按下动作事件时,返回 [code]true[/code],也就是说,只有在用户按下按" "钮的那一帧才是 [code]true[/code]。\n" "这对那些只需要在动作被按下时运行一次的代码中很有用,而不是在按下时每一帧都要" "运行。\n" "如果 [code]exact[/code] 是 [code]false[/code],它将忽略 [InputEventKey] 和 " "[InputEventMouseButton] 事件的额外输入修饰符,以及 [InputEventJoypadMotion] " "事件的方向。\n" "[b]注意:[/b]由于键盘冲突,[method is_action_just_pressed] 可能会在动作的某个" "键按下时也返回 [code]false[/code]。详情请参阅文档[url=$DOCS_URL/tutorials/" "inputs/input_examples.html#keyboard-events]《输入示例》[/url]。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] when the user stops pressing the action event, " "meaning it's [code]true[/code] only on the frame that the user released the " "button.\n" "If [code]exact[/code] is [code]false[/code], it ignores additional input " "modifiers for [InputEventKey] and [InputEventMouseButton] events, and the " "direction for [InputEventJoypadMotion] events." msgstr "" "当用户停止按下动作事件时,返回 [code]true[/code],也就是说,只有在用户释放按" "钮的那一帧才是 [code]true[/code]。\n" "如果 [code]exact[/code] 是 [code]false[/code],它将忽略 [InputEventKey] 和 " "[InputEventMouseButton] 事件的额外输入修饰符,以及 [InputEventJoypadMotion] " "事件的方向。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] if you are pressing the action event. Note that if " "an action has multiple buttons assigned and more than one of them is " "pressed, releasing one button will release the action, even if some other " "button assigned to this action is still pressed.\n" "If [code]exact[/code] is [code]false[/code], it ignores additional input " "modifiers for [InputEventKey] and [InputEventMouseButton] events, and the " "direction for [InputEventJoypadMotion] events.\n" "[b]Note:[/b] Due to keyboard ghosting, [method is_action_pressed] may return " "[code]false[/code] even if one of the action's keys is pressed. See " "[url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input " "examples[/url] in the documentation for more information." msgstr "" "如果你正在按下动作事件,返回 [code]true[/code]。请注意,如果一个动作有多个分" "配的按钮,并且不止一个被按下,释放一个按钮将释放这个动作,即使其他分配给这个" "动作的按钮仍然被按下。\n" "如果 [code]exact[/code] 是 [code]false[/code],它将忽略 [InputEventKey] 和 " "[InputEventMouseButton] 事件的额外输入修饰符,以及 [InputEventJoypadMotion] " "事件的方向。\n" "[b]注意:[/b]由于键盘冲突,[method is_action_pressed] 可能会在动作的某个键按" "下时也返回 [code]false[/code]。详情请参阅文档[url=$DOCS_URL/tutorials/inputs/" "input_examples.html#keyboard-events]《输入示例》[/url]。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] if you are pressing the joypad button (see [enum " "JoystickList])." msgstr "" "如果你正在按下手柄按钮,则返回 [code]true[/code],参阅[enum JoystickList]。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] if the system knows the specified device. This " "means that it sets all button and axis indices exactly as defined in [enum " "JoystickList]. Unknown joypads are not expected to match these constants, " "but you can still retrieve events from them." msgstr "" "如果系统知道指定的设备,则返回 [code]true[/code]。这意味着它将完全按照 [enum " "JoystickList] 中的定义设置所有按钮和轴的索引。未知的操纵杆可能不会与这些常量" "相匹配,但你仍然可以从中检索事件。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] if you are pressing the key in the current " "keyboard layout. You can pass a [enum KeyList] constant.\n" "[method is_key_pressed] is only recommended over [method " "is_physical_key_pressed] in non-game applications. This ensures that " "shortcut keys behave as expected depending on the user's keyboard layout, as " "keyboard shortcuts are generally dependent on the keyboard layout in non-" "game applications. If in doubt, use [method is_physical_key_pressed].\n" "[b]Note:[/b] Due to keyboard ghosting, [method is_key_pressed] may return " "[code]false[/code] even if one of the action's keys is pressed. See " "[url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input " "examples[/url] in the documentation for more information." msgstr "" "如果你正在按当前键盘布局中的这个键,则返回 [code]true[/code]。可以传 [enum " "KeyList] 常量。\n" "只有非游戏应用程序中才推荐 [method is_key_pressed] 而不是 [method " "is_physical_key_pressed]。可以确保快捷键的行为与用户的键盘布局有关,因为非游" "戏应用程序的键盘快捷键通常与键盘布局有关。如果有疑问,就请使用 [method " "is_physical_key_pressed]。\n" "[b]注意:[/b]由于键盘冲突,[method is_key_pressed] 可能会在动作的某个键按下时" "也返回 [code]false[/code]。详情请参阅文档[url=$DOCS_URL/tutorials/inputs/" "input_examples.html#keyboard-events]《输入示例》[/url]。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] if you are pressing the mouse button specified " "with [enum ButtonList]." msgstr "" "如果你正在按压由 [enum ButtonList] 指定的鼠标按键,则返回 [code]true[/code]。" #: doc/classes/Input.xml msgid "" "Returns [code]true[/code] if you are pressing the key in the physical " "location on the 101/102-key US QWERTY keyboard. You can pass a [enum " "KeyList] constant.\n" "[method is_physical_key_pressed] is recommended over [method is_key_pressed] " "for in-game actions, as it will make W/A/S/D layouts work regardless of the " "user's keyboard layout. [method is_physical_key_pressed] will also ensure " "that the top row number keys work on any keyboard layout. If in doubt, use " "[method is_physical_key_pressed].\n" "[b]Note:[/b] Due to keyboard ghosting, [method is_physical_key_pressed] may " "return [code]false[/code] even if one of the action's keys is pressed. See " "[url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input " "examples[/url] in the documentation for more information." msgstr "" "如果你正在按 101/102 键美式 QWERTY 键盘中这个键的物理位置,则返回 " "[code]true[/code]。可以传 [enum KeyList] 常量。\n" "游戏内的动作推荐 [method is_physical_key_pressed] 而不是 [method " "is_key_pressed],因为可以让 W/A/S/D 布局无论用户使用什么键盘布局都可用。" "[method is_physical_key_pressed] 还可以保证顶部的数字键在任何键盘布局中都可" "用。如果有疑问,就请使用 [method is_physical_key_pressed]。\n" "[b]注意:[/b]由于键盘冲突,[method is_physical_key_pressed] 可能会在动作的某" "个键按下时也返回 [code]false[/code]。详情请参阅文档[url=$DOCS_URL/tutorials/" "inputs/input_examples.html#keyboard-events]《输入示例》[/url]。" #: doc/classes/Input.xml msgid "" "Notifies the [Input] singleton that a connection has changed, to update the " "state for the [code]device[/code] index.\n" "This is used internally and should not have to be called from user scripts. " "See [signal joy_connection_changed] for the signal emitted when this is " "triggered internally." msgstr "" "通知 [Input] 单例连接已更改,以更新 [code]device[/code] 索引的状态。\n" "这是内部使用的,不应从用户脚本中调用。有关内部触发的信号,请参阅 [signal " "joy_connection_changed]。" #: doc/classes/Input.xml msgid "" "Feeds an [InputEvent] to the game. Can be used to artificially trigger input " "events from code. Also generates [method Node._input] calls.\n" "Example:\n" "[codeblock]\n" "var a = InputEventAction.new()\n" "a.action = \"ui_cancel\"\n" "a.pressed = true\n" "Input.parse_input_event(a)\n" "[/codeblock]" msgstr "" "向游戏提供 [InputEvent]。可用于从代码人为触发输入事件。也会产生 [method Node." "_input] 调用。\n" "示例:\n" "[codeblock]\n" "var a = InputEventAction.new()\n" "a.action = \"ui_cancel\"\n" "a.pressed = true\n" "Input.parse_input_event(a)\n" "[/codeblock]" #: doc/classes/Input.xml msgid "" "Removes all mappings from the internal database that match the given GUID." msgstr "从内部数据库中删除与给定GUID匹配的所有映射." #: doc/classes/Input.xml msgid "" "Sets the acceleration value of the accelerometer sensor. Can be used for " "debugging on devices without a hardware sensor, for example in an editor on " "a PC.\n" "[b]Note:[/b] This value can be immediately overwritten by the hardware " "sensor value on Android and iOS." msgstr "" "设置加速度传感器的加速度值。可以用于在没有硬件传感器的设备上进行调试,例如在" "PC上的编辑器中。\n" "[b]注意:[/b]这个值在Android和iOS上可立即被硬件传感器的值所覆盖。" #: doc/classes/Input.xml msgid "" "Sets a custom mouse cursor image, which is only visible inside the game " "window. The hotspot can also be specified. Passing [code]null[/code] to the " "image parameter resets to the system cursor. See [enum CursorShape] for the " "list of shapes.\n" "[code]image[/code]'s size must be lower than 256×256.\n" "[code]hotspot[/code] must be within [code]image[/code]'s size.\n" "[b]Note:[/b] [AnimatedTexture]s aren't supported as custom mouse cursors. If " "using an [AnimatedTexture], only the first frame will be displayed.\n" "[b]Note:[/b] Only images imported with the [b]Lossless[/b], [b]Lossy[/b] or " "[b]Uncompressed[/b] compression modes are supported. The [b]Video RAM[/b] " "compression mode can't be used for custom cursors." msgstr "" "设置一个自定义鼠标光标图像,该图像仅当游戏窗口内可见。还可以指定热点。将" "[code]null[/code]传递给image参数将重置为系统光标。有关详细信息,请参阅 [enum " "CursorShape] 形状列表。\n" "[code]image[/code]的大小必须小于256×256。\n" "[code]hotspot[/code]的大小必须在[code]image[/code]的范围内。\n" "[b]注意:[/b]不支持AnimatedTexture作为自定义鼠标光标。如果使用" "[AnimatedTexture],将仅显示第一帧。\n" "[b]注意:[/b]仅支持以[b]无损[/b],[b]有损[/b]或[b]未压缩[/b]压缩模式导入的图" "像。[b]Video RAM[/b]压缩模式不能用于自定义光标。" #: doc/classes/Input.xml msgid "" "Sets the default cursor shape to be used in the viewport instead of " "[constant CURSOR_ARROW].\n" "[b]Note:[/b] If you want to change the default cursor shape for [Control]'s " "nodes, use [member Control.mouse_default_cursor_shape] instead.\n" "[b]Note:[/b] This method generates an [InputEventMouseMotion] to update " "cursor immediately." msgstr "" "设置视窗中使用的默认光标形状,而不是 [constant CURSOR_ARROW]。\n" "[b]注意:[/b]如果要更改 [Control] 节点的默认光标形状,请改用 [member Control." "mouse_default_cursor_shape]。\n" "[b]注意:[/b]这个方法会生成一个 [InputEventMouseMotion] 以立即更新光标。" #: doc/classes/Input.xml msgid "" "Sets the gravity value of the accelerometer sensor. Can be used for " "debugging on devices without a hardware sensor, for example in an editor on " "a PC.\n" "[b]Note:[/b] This value can be immediately overwritten by the hardware " "sensor value on Android and iOS." msgstr "" "设置加速度传感器的重力值。可用于在没有硬件传感器的设备上进行调试,例如在 PC " "上的编辑器中。\n" "[b]注意:[/b]这个值在 Android 和 iOS 上可立即被硬件传感器的值覆盖。" #: doc/classes/Input.xml msgid "" "Sets the value of the rotation rate of the gyroscope sensor. Can be used for " "debugging on devices without a hardware sensor, for example in an editor on " "a PC.\n" "[b]Note:[/b] This value can be immediately overwritten by the hardware " "sensor value on Android and iOS." msgstr "" "设置陀螺仪传感器的旋转速率值。可用于在没有硬件传感器的设备上进行调试,例如在 " "PC 上的编辑器中。\n" "[b]注意:[/b]在 Android 和 iOS 上,这个值可立即被硬件传感器的值所覆盖。" #: doc/classes/Input.xml msgid "" "Sets the value of the magnetic field of the magnetometer sensor. Can be used " "for debugging on devices without a hardware sensor, for example in an editor " "on a PC.\n" "[b]Note:[/b] This value can be immediately overwritten by the hardware " "sensor value on Android and iOS." msgstr "" "设置磁力传感器的磁场值。可用于在没有硬件传感器的设备上进行调试,例如在 PC 上" "的编辑器中。\n" "[b]注意:[/b]在 Android 和 iOS 上,这个值可立即被硬件传感器的值所覆盖。" #: doc/classes/Input.xml msgid "Sets the mouse mode. See the constants for more information." msgstr "设置鼠标模式。有关更多信息,请参阅常量。" #: doc/classes/Input.xml msgid "" "Enables or disables the accumulation of similar input events sent by the " "operating system. When input accumulation is enabled, all input events " "generated during a frame will be merged and emitted when the frame is done " "rendering. Therefore, this limits the number of input method calls per " "second to the rendering FPS.\n" "Input accumulation is enabled by default. It can be disabled to get slightly " "more precise/reactive input at the cost of increased CPU usage. In " "applications where drawing freehand lines is required, input accumulation " "should generally be disabled while the user is drawing the line to get " "results that closely follow the actual input." msgstr "" "启用或禁用操作系统发送的类似输入事件的累积。当启用输入累积时,在一帧中产生的" "所有输入事件将被合并,并在该帧完成渲染时发出。因此,这限制了每秒的输入方法调" "用次数,使之与渲染FPS相一致。\n" "输入累加在默认情况下是启用的。它可以被禁用,将以增加CPU使用率为代价,获得稍微" "更精确及更灵敏的输入。在需要自由绘制线条的应用中,一般应用在用户绘制线条时禁" "用输入累加,以获得紧跟实际输入的结果。" #: doc/classes/Input.xml msgid "" "Starts to vibrate the joypad. Joypads usually come with two rumble motors, a " "strong and a weak one. [code]weak_magnitude[/code] is the strength of the " "weak motor (between 0 and 1) and [code]strong_magnitude[/code] is the " "strength of the strong motor (between 0 and 1). [code]duration[/code] is the " "duration of the effect in seconds (a duration of 0 will try to play the " "vibration indefinitely).\n" "[b]Note:[/b] Not every hardware is compatible with long effect durations; it " "is recommended to restart an effect if it has to be played for more than a " "few seconds." msgstr "" "开始振动游戏手柄。手柄通常带有两个隆隆声电机,一强一弱。 " "[code]weak_magnitude[/code] 弱震级是弱电机的强度(0 到 1 之间)," "[code]strong_magnitude[/code] 强震级是强电机的强度(0 到 1 之间)。 " "[code]duration[/code] 是效果的持续时间(以秒为单位)(持续时间为 0 将尝试无限" "期地播放振动)。\n" "[b]注意:[/b]并非所有硬件都兼容长效果持续时间;如果必须播放超过几秒钟的效果," "建议重新启动效果。" #: doc/classes/Input.xml msgid "Stops the vibration of the joypad." msgstr "停止游戏手柄的振动。" #: doc/classes/Input.xml msgid "" "Vibrate Android and iOS devices.\n" "[b]Note:[/b] For Android, it requires enabling the [code]VIBRATE[/code] " "permission in the export preset.\n" "[b]Note:[/b] For iOS, specifying the duration is supported in iOS 13 and " "later." msgstr "" "振动 Android 和 iOS 设备。\n" "[b]注意:[/b]Android 需要导出设置中的 [code]VIBRATE[/code] 权限。 iOS 不支持" "持续时间。\n" "[b]注意:[/b]在 iOS 平台上,iOS 13 及之后的版本才支持指定持续时间。" #: doc/classes/Input.xml msgid "" "Sets the mouse position to the specified vector, provided in pixels and " "relative to an origin at the upper left corner of the game window.\n" "Mouse position is clipped to the limits of the screen resolution, or to the " "limits of the game window if [enum MouseMode] is set to [constant " "MOUSE_MODE_CONFINED]." msgstr "" "将鼠标位置设为指定的向量,单位为像素,以游戏窗口的左上角作为原点。\n" "鼠标位置会被限制在屏幕分辨率内,如果 [enum MouseMode] 为 [constant " "MOUSE_MODE_CONFINED] 时则是限制在游戏窗口内。" #: doc/classes/Input.xml msgid "Emitted when a joypad device has been connected or disconnected." msgstr "连接或断开游戏手柄设备时触发。" #: doc/classes/Input.xml msgid "Makes the mouse cursor visible if it is hidden." msgstr "如果鼠标光标处于隐藏状态,则使其可见。" #: doc/classes/Input.xml msgid "Makes the mouse cursor hidden if it is visible." msgstr "如果鼠标光标是可见的,则使其隐藏。" #: doc/classes/Input.xml msgid "" "Captures the mouse. The mouse will be hidden and its position locked at the " "center of the screen.\n" "[b]Note:[/b] If you want to process the mouse's movement in this mode, you " "need to use [member InputEventMouseMotion.relative]." msgstr "" "捕获鼠标。鼠标将被隐藏,其位置被锁定在屏幕的中心。\n" "[b]注意:[/b]如果你想在这种模式下处理鼠标的移动,需要使用 [member " "InputEventMouseMotion.relative]。" #: doc/classes/Input.xml msgid "Makes the mouse cursor visible but confines it to the game window." msgstr "使鼠标光标可见,并将其限制在游戏窗口中。" #: doc/classes/Input.xml msgid "Arrow cursor. Standard, default pointing cursor." msgstr "箭头光标。标准,默认指向光标。" #: doc/classes/Input.xml msgid "" "I-beam cursor. Usually used to show where the text cursor will appear when " "the mouse is clicked." msgstr "I 形光标。通常用于指示点击鼠标后文本光标的位置。" #: doc/classes/Input.xml msgid "" "Pointing hand cursor. Usually used to indicate the pointer is over a link or " "other interactable item." msgstr "指向手形光标。通常用在指示链接或其他可交互项上。" #: doc/classes/Input.xml msgid "" "Cross cursor. Typically appears over regions in which a drawing operation " "can be performed or for selections." msgstr "十字光标。通常出现在可以执行绘制操作或进行选择的区域上方。" #: doc/classes/Input.xml msgid "" "Wait cursor. Indicates that the application is busy performing an operation. " "This cursor shape denotes that the application isn't usable during the " "operation (e.g. something is blocking its main thread)." msgstr "" "等待光标。表示应用程序正忙于执行操作。此光标形状表示应用程序在操作过程中不可" "用(例如,有东西阻塞了主线程)。" #: doc/classes/Input.xml msgid "" "Busy cursor. Indicates that the application is busy performing an operation. " "This cursor shape denotes that the application is still usable during the " "operation." msgstr "" "忙碌光标。表示应用程序正忙于执行一项操作。这种光标形状表示应用程序在操作过程" "中仍然可以使用。" #: doc/classes/Input.xml msgid "Drag cursor. Usually displayed when dragging something." msgstr "拖动光标。通常在拖动东西时显示。" #: doc/classes/Input.xml msgid "" "Can drop cursor. Usually displayed when dragging something to indicate that " "it can be dropped at the current position." msgstr "可以放下的光标。通常在拖动东西时显示,表示可以在当前位置放下。" #: doc/classes/Input.xml msgid "" "Forbidden cursor. Indicates that the current action is forbidden (for " "example, when dragging something) or that the control at a position is " "disabled." msgstr "" "禁止的光标。表示当前操作是被禁止的(例如,拖动东西时)或某个位置的控件被禁" "用。" #: doc/classes/Input.xml msgid "" "Vertical resize mouse cursor. A double-headed vertical arrow. It tells the " "user they can resize the window or the panel vertically." msgstr "" "垂直调整大小的光标。一个双头的垂直箭头。它告诉用户他们可以垂直地调整窗口或面" "板的大小。" #: doc/classes/Input.xml msgid "" "Horizontal resize mouse cursor. A double-headed horizontal arrow. It tells " "the user they can resize the window or the panel horizontally." msgstr "" "水平调整尺寸的光标。一个双头的水平箭头。它告诉用户他们可以水平调整窗口或面板" "的大小。" #: doc/classes/Input.xml msgid "" "Window resize mouse cursor. The cursor is a double-headed arrow that goes " "from the bottom left to the top right. It tells the user they can resize the " "window or the panel both horizontally and vertically." msgstr "" "窗口调整大小的光标。该光标是一个双头箭头,从左下方到右上方。它告诉用户他们可" "以在水平和垂直方向上调整窗口或面板的大小。" #: doc/classes/Input.xml msgid "" "Window resize mouse cursor. The cursor is a double-headed arrow that goes " "from the top left to the bottom right, the opposite of [constant " "CURSOR_BDIAGSIZE]. It tells the user they can resize the window or the panel " "both horizontally and vertically." msgstr "" "窗口调整大小的光标。是一个双头的箭头,从左上角到右下角,与[constant " "CURSOR_BDIAGSIZE]相反。它告诉用户他们可以在水平和垂直方向上调整窗口或面板的大" "小。" #: doc/classes/Input.xml msgid "Move cursor. Indicates that something can be moved." msgstr "移动光标。表示那些东西可以移动。" #: doc/classes/Input.xml msgid "" "Vertical split mouse cursor. On Windows, it's the same as [constant " "CURSOR_VSIZE]." msgstr "垂直拆分鼠标光标。在 Windows 上,它与 [constant CURSOR_VSIZE] 相同。" #: doc/classes/Input.xml msgid "" "Horizontal split mouse cursor. On Windows, it's the same as [constant " "CURSOR_HSIZE]." msgstr "水平分割的鼠标光标。在Windows上,它与[constant CURSOR_HSIZE]相同。" #: doc/classes/Input.xml msgid "Help cursor. Usually a question mark." msgstr "帮助光标。通常是一个问号。" #: doc/classes/InputEvent.xml msgid "Generic input event." msgstr "通用输入事件。" #: doc/classes/InputEvent.xml msgid "Base class of all sort of input event. See [method Node._input]." msgstr "各种输入事件的基类。请参阅 [method Node._input]。" #: doc/classes/InputEvent.xml msgid "InputEvent" msgstr "InputEvent" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if the given input event and this input event can " "be added together (only for events of type [InputEventMouseMotion]).\n" "The given input event's position, global position and speed will be copied. " "The resulting [code]relative[/code] is a sum of both events. Both events' " "modifiers have to be identical." msgstr "" "如果给定的输入事件和这个输入事件可以相加,则返回 [code]true[/code](只针对 " "[InputEventMouseMotion] 类型的事件)。\n" "给定输入事件的位置、全局位置和速度将被复制。产生的 [code]relative[/code] 是两" "个事件的总和。两个事件的修饰符必须是相同的。" #: doc/classes/InputEvent.xml msgid "Returns a [String] representation of the event." msgstr "返回事件的 [String] 字符串表示。" #: doc/classes/InputEvent.xml msgid "" "Returns a value between 0.0 and 1.0 depending on the given actions' state. " "Useful for getting the value of events of type [InputEventJoypadMotion].\n" "If [code]exact_match[/code] is [code]false[/code], it ignores additional " "input modifiers for [InputEventKey] and [InputEventMouseButton] events, and " "the direction for [InputEventJoypadMotion] events." msgstr "" "根据给定的动作的状态,返回 0.0 到 1.0 之间的值。对于获取 " "[InputEventJoypadMotion] 类型的事件值时,很有用。\n" "如果 [code]exact_match[/code] 是 [code]false[/code],它将忽略 " "[InputEventKey] 和 [InputEventMouseButton] 事件的额外输入修饰符,以及 " "[InputEventJoypadMotion] 事件的方向。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if this input event matches a pre-defined action " "of any type.\n" "If [code]exact_match[/code] is [code]false[/code], it ignores additional " "input modifiers for [InputEventKey] and [InputEventMouseButton] events, and " "the direction for [InputEventJoypadMotion] events." msgstr "" "如果这个输入事件与任何类型的预定义动作匹配,则返回 [code]true[/code]。\n" "如果 [code]exact_match[/code] 是 [code]false[/code],它将忽略 " "[InputEventKey] 和 [InputEventMouseButton] 事件的额外输入修饰符,以及 " "[InputEventJoypadMotion] 事件的方向。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if the given action is being pressed (and is not " "an echo event for [InputEventKey] events, unless [code]allow_echo[/code] is " "[code]true[/code]). Not relevant for events of type [InputEventMouseMotion] " "or [InputEventScreenDrag].\n" "If [code]exact_match[/code] is [code]false[/code], it ignores additional " "input modifiers for [InputEventKey] and [InputEventMouseButton] events, and " "the direction for [InputEventJoypadMotion] events.\n" "[b]Note:[/b] Due to keyboard ghosting, [method is_action_pressed] may return " "[code]false[/code] even if one of the action's keys is pressed. See " "[url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input " "examples[/url] in the documentation for more information." msgstr "" "如果给定的动作被按下,则返回 [code]true[/code],并且不是 [InputEventKey] 事件" "的回显事件,除非 [code]allow_echo[/code] 是 [code]true[/code]。与 " "[InputEventMouseMotion] 或 [InputEventScreenDrag] 类型的事件无关。\n" "如果 [code]exact_match[/code] 是 [code]false[/code],它将忽略 " "[InputEventKey] 和 [InputEventMouseButton] 事件的额外输入修饰符,以及 " "[InputEventJoypadMotion] 事件的方向。\n" "[b]注意:[/b]由于键盘冲突,[method is_action_pressed] 可能会在动作的某个键按" "下时也返回 [code]false[/code]。详情请参阅文档[url=$DOCS_URL/tutorials/inputs/" "input_examples.html#keyboard-events]《输入示例》[/url]。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if the given action is released (i.e. not " "pressed). Not relevant for events of type [InputEventMouseMotion] or " "[InputEventScreenDrag].\n" "If [code]exact_match[/code] is [code]false[/code], it ignores additional " "input modifiers for [InputEventKey] and [InputEventMouseButton] events, and " "the direction for [InputEventJoypadMotion] events." msgstr "" "如果给定的动作被释放,即未被按下,则返回 [code]true[/code]。与 " "[InputEventMouseMotion] 或 [InputEventScreenDrag] 类型的事件无关。\n" "如果 [code]exact_match[/code] 是 [code]false[/code],它将忽略 " "[InputEventKey] 和 [InputEventMouseButton] 事件的额外入修饰符,以及 " "[InputEventJoypadMotion] 事件的方向。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if this input event's type is one that can be " "assigned to an input action." msgstr "" "如果这个输入事件的类型是可以分配给输入动作的类型,则返回 [code]true[/code]。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if this input event is an echo event (only for " "events of type [InputEventKey])." msgstr "" "如果这个输入事件是回显事件(仅适用于 [InputEventKey] 类型的事件),则返回 " "[code]true[/code]。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if this input event is pressed. Not relevant for " "events of type [InputEventMouseMotion] or [InputEventScreenDrag].\n" "[b]Note:[/b] Due to keyboard ghosting, [method is_action_pressed] may return " "[code]false[/code] even if one of the action's keys is pressed. See " "[url=$DOCS_URL/tutorials/inputs/input_examples.html#keyboard-events]Input " "examples[/url] in the documentation for more information." msgstr "" "如果这个输入事件被按下,则返回 [code]true[/code]。与 [InputEventMouseMotion] " "或 [InputEventScreenDrag] 类型的事件无关。\n" "[b]注意:[/b]由于键盘冲突,[method is_action_pressed] 可能会在动作的某个键按" "下时也返回 [code]false[/code]。详情请参阅文档[url=$DOCS_URL/tutorials/inputs/" "input_examples.html#keyboard-events]《输入示例》[/url]。" #: doc/classes/InputEvent.xml msgid "" "Returns [code]true[/code] if the specified [code]event[/code] matches this " "event. Only valid for action events i.e key ([InputEventKey]), button " "([InputEventMouseButton] or [InputEventJoypadButton]), axis " "[InputEventJoypadMotion] or action ([InputEventAction]) events.\n" "If [code]exact_match[/code] is [code]false[/code], it ignores additional " "input modifiers for [InputEventKey] and [InputEventMouseButton] events, and " "the direction for [InputEventJoypadMotion] events." msgstr "" "如果指定的 [code]event[/code] 与此事件匹配,则返回 [code]true[/code]。仅对动" "作事件有效,即键 ([InputEventKey])、按钮 ([InputEventMouseButton] 或 " "[InputEventJoypadButton])、轴 [InputEventJoypadMotion] 或动作 " "([InputEventAction]) 事件。\n" "如果 [code]exact_match[/code] 是 [code]false[/code],它会忽略 " "[InputEventKey] 和 [InputEventMouseButton] 事件的额外输入修饰符,以及 " "[InputEventJoypadMotion] 事件的方向。" #: doc/classes/InputEvent.xml msgid "" "Returns a copy of the given input event which has been offset by " "[code]local_ofs[/code] and transformed by [code]xform[/code]. Relevant for " "events of type [InputEventMouseButton], [InputEventMouseMotion], " "[InputEventScreenTouch], [InputEventScreenDrag], [InputEventMagnifyGesture] " "and [InputEventPanGesture]." msgstr "" "返回给定输入事件的副本,该事件已由 [code]local_ofs[/code] 偏移并由 " "[code]xform[/code] 变换。与 [InputEventMouseButton]、" "[InputEventMouseMotion]、[InputEventScreenTouch]、[InputEventScreenDrag]、" "[InputEventMagnifyGesture] 和 [InputEventPanGesture] 类型的事件相关。" #: doc/classes/InputEvent.xml msgid "" "The event's device ID.\n" "[b]Note:[/b] This device ID will always be [code]-1[/code] for emulated " "mouse input from a touchscreen. This can be used to distinguish emulated " "mouse input from physical mouse input." msgstr "" "该事件的设备 ID。\n" "[b]注意:[/b]对于来自触摸屏的模拟鼠标输入,该设备 ID 将总是 [code]-1[/code]。" "可用于区分模拟鼠标输入和物理鼠标输入。" #: doc/classes/InputEventAction.xml msgid "Input event type for actions." msgstr "动作的输入事件类型。" #: doc/classes/InputEventAction.xml msgid "" "Contains a generic action which can be targeted from several types of " "inputs. Actions can be created from the [b]Input Map[/b] tab in the " "[b]Project > Project Settings[/b] menu. See [method Node._input]." msgstr "" "包含一个通用动作,可以由不同类型的输入触发。动作可以在[b]项目 > 项目设置[/b]" "菜单中的[b]键位映射[/b]选项卡中创建。请参阅 [method Node._input]。" #: doc/classes/InputEventAction.xml msgid "InputEvent: Actions" msgstr "InputEvent:动作" #: doc/classes/InputEventAction.xml msgid "The action's name. Actions are accessed via this [String]." msgstr "动作的名称。动作可以通过此 [String] 访问。" #: doc/classes/InputEventAction.xml msgid "" "If [code]true[/code], the action's state is pressed. If [code]false[/code], " "the action's state is released." msgstr "" "为 [code]true[/code] 时该动作处于被按下的状态。为 [code]false[/code] 时该动作" "处于被释放状态。" #: doc/classes/InputEventAction.xml msgid "" "The action's strength between 0 and 1. This value is considered as equal to " "0 if pressed is [code]false[/code]. The event strength allows faking analog " "joypad motion events, by specifying how strongly the joypad axis is bent or " "pressed." msgstr "" "动作的强度,介于 0 和 1 之间。当 pressed 为 [code]false[/code] 时,该值被视为" "等于 0。通过将事件强度设置为手柄轴的弯曲或按压强度,可以仿造模拟手柄的移动事" "件。" #: doc/classes/InputEventGesture.xml msgid "Base class for touch control gestures." msgstr "触摸控制手势的基类。" #: doc/classes/InputEventGesture.xml msgid "" "The local gesture position relative to the [Viewport]. If used in [method " "Control._gui_input], the position is relative to the current [Control] that " "received this gesture." msgstr "" "相对于[Viewport]的本地手势位置。如果在[method Control._gui_input]中使用,位置" "是相对于当前接收该手势的控件[Control]而言的。" #: doc/classes/InputEventJoypadButton.xml msgid "Input event for gamepad buttons." msgstr "游戏手柄按钮的输入事件。" #: doc/classes/InputEventJoypadButton.xml msgid "" "Input event type for gamepad buttons. For gamepad analog sticks and " "joysticks, see [InputEventJoypadMotion]." msgstr "" "游戏手柄按钮的输入事件类型。对于游戏手柄模拟摇杆和操纵杆,请参阅 " "[InputEventJoypadMotion]。" #: doc/classes/InputEventJoypadButton.xml msgid "Button identifier. One of the [enum JoystickList] button constants." msgstr "按钮标识符。 [enum JoystickList] 按钮常量之一。" #: doc/classes/InputEventJoypadButton.xml msgid "" "If [code]true[/code], the button's state is pressed. If [code]false[/code], " "the button's state is released." msgstr "" "如果 [code]true[/code],按钮的状态被按下。如果[code]false[/code],按钮的状态" "被释放。" #: doc/classes/InputEventJoypadButton.xml msgid "" "Represents the pressure the user puts on the button with his finger, if the " "controller supports it. Ranges from [code]0[/code] to [code]1[/code]." msgstr "" "如果控制器支持,则表示用户用手指在按钮上施加的压力。范围从 [code]0[/code] 到 " "[code]1[/code]。" #: doc/classes/InputEventJoypadMotion.xml msgid "" "Input event type for gamepad joysticks and other motions. For buttons, see " "[code]InputEventJoypadButton[/code]." msgstr "" "用于游戏板操纵杆和其他动作的输入事件类型。对于按钮,见" "[code]InputEventJoypadButton[/code]。" #: doc/classes/InputEventJoypadMotion.xml msgid "" "Stores information about joystick motions. One [InputEventJoypadMotion] " "represents one axis at a time." msgstr "存储关于操纵杆运动的信息。一个[InputEventJoypadMotion]一次代表一个轴。" #: doc/classes/InputEventJoypadMotion.xml msgid "Axis identifier. Use one of the [enum JoystickList] axis constants." msgstr "轴标识符。使用 [enum JoystickList] 轴常量之一。" #: doc/classes/InputEventJoypadMotion.xml msgid "" "Current position of the joystick on the given axis. The value ranges from " "[code]-1.0[/code] to [code]1.0[/code]. A value of [code]0[/code] means the " "axis is in its resting position." msgstr "" "操纵杆在给定轴上的当前位置。该值范围从[code]-1.0[/code]到[code]1.0[/code]。值" "为[code]0[/code]意味着轴处于静止位置。" #: doc/classes/InputEventKey.xml msgid "Input event type for keyboard events." msgstr "键盘事件的输入事件类型。" #: doc/classes/InputEventKey.xml msgid "" "Stores key presses on the keyboard. Supports key presses, key releases and " "[member echo] events." msgstr "存储键盘上的按键。支持按键、按键释放和[member echo]回显事件。" #: doc/classes/InputEventKey.xml msgid "" "Returns the physical scancode combined with modifier keys such as " "[code]Shift[/code] or [code]Alt[/code]. See also [InputEventWithModifiers].\n" "To get a human-readable representation of the [InputEventKey] with " "modifiers, use [code]OS.get_scancode_string(event." "get_physical_scancode_with_modifiers())[/code] where [code]event[/code] is " "the [InputEventKey]." msgstr "" "返回与修改键组合的物理扫描码,例如 [code]Shift[/code] 或 [code]Alt[/code]。请" "参阅 [InputEventWithModifiers]。\n" "要获得带有修饰符的 [InputEventKey] 的人类可读表示,请使用 [code]OS." "get_scancode_string(event.get_physical_scancode_with_modifiers())[/code] 其" "中 [code]event[/code] 是 [InputEventKey]。" #: doc/classes/InputEventKey.xml msgid "" "Returns the scancode combined with modifier keys such as [code]Shift[/code] " "or [code]Alt[/code]. See also [InputEventWithModifiers].\n" "To get a human-readable representation of the [InputEventKey] with " "modifiers, use [code]OS.get_scancode_string(event." "get_scancode_with_modifiers())[/code] where [code]event[/code] is the " "[InputEventKey]." msgstr "" "返回与 [code]Shift[/code] 或 [code]Alt[/code] 等修饰键组合的扫描码。请参阅 " "[InputEventWithModifiers]。\n" "要获得带有修饰符的 [InputEventKey] 的人类可读表示,请使用 [code]OS." "get_scancode_string(event.get_scancode_with_modifiers())[/code] 其中 " "[code]event[/code] 是 [InputEventKey]。" #: doc/classes/InputEventKey.xml msgid "" "If [code]true[/code], the key was already pressed before this event. It " "means the user is holding the key down." msgstr "" "如果 [code]true[/code],则该键在此事件之前已被按下。这意味着用户正在按住该" "键。" #: doc/classes/InputEventKey.xml msgid "" "Key physical scancode, which corresponds to one of the [enum KeyList] " "constants. Represent the physical location of a key on the 101/102-key US " "QWERTY keyboard.\n" "To get a human-readable representation of the [InputEventKey], use [code]OS." "get_scancode_string(event.physical_scancode)[/code] where [code]event[/code] " "is the [InputEventKey]." msgstr "" "键的物理扫描码,对应于 [enum KeyList] 常量之一。表示 101/102 键美国 QWERTY 键" "盘上按键的物理位置。\n" "要获得 [InputEventKey] 的人类可读表示,请使用 [code]OS." "get_scancode_string(event.physical_scancode)[/code] 其中 [code]event[/code] " "是 [InputEventKey]。" #: doc/classes/InputEventKey.xml msgid "" "If [code]true[/code], the key's state is pressed. If [code]false[/code], the " "key's state is released." msgstr "" "如果[code]true[/code],按键的状态是被按下。如果[code]false[/code],该键的状态" "被释放。" #: doc/classes/InputEventKey.xml msgid "" "The key scancode, which corresponds to one of the [enum KeyList] constants. " "Represent key in the current keyboard layout.\n" "To get a human-readable representation of the [InputEventKey], use [code]OS." "get_scancode_string(event.scancode)[/code] where [code]event[/code] is the " "[InputEventKey]." msgstr "" "该按键的扫描码,对应于 [enum KeyList] 常量之一。表示当前键盘布局中的键。\n" "要获得 [InputEventKey] 的人类可读表示,请使用 [code]OS." "get_scancode_string(event.scancode)[/code] 其中 [code]event[/code] 是 " "[InputEventKey]。" #: doc/classes/InputEventKey.xml msgid "" "The key Unicode identifier (when relevant). Unicode identifiers for the " "composite characters and complex scripts may not be available unless IME " "input mode is active. See [method OS.set_ime_active] for more information." msgstr "" "按键的 Unicode 标识符(如果相关)。除非 IME 输入模式处于激活状态,否则复合字" "符和复杂文字的 Unicode 标识符可能无法使用。更多信息参阅 [method OS." "set_ime_active]。" #: doc/classes/InputEventMIDI.xml msgid "Input event for MIDI inputs." msgstr "MIDI 输入的输入事件。" #: doc/classes/InputEventMIDI.xml msgid "" "InputEventMIDI allows receiving input events from MIDI devices such as a " "piano. MIDI stands for Musical Instrument Digital Interface.\n" "MIDI signals can be sent over a 5-pin MIDI connector or over USB, if your " "device supports both be sure to check the settings in the device to see " "which output it's using.\n" "To receive input events from MIDI devices, you need to call [method OS." "open_midi_inputs]. You can check which devices are detected using [method OS." "get_connected_midi_inputs].\n" "Note that Godot does not currently support MIDI output, so there is no way " "to emit MIDI signals from Godot. Only MIDI input works." msgstr "" "InputEventMIDI 可以实现从钢琴等 MIDI 设备接收输入事件。MIDI 是 Musical " "Instrument Digital Interface 的缩写,即音乐数字接口。\n" "MIDI 信号可以通过 5 针 MIDI 接头或 UDB 传输,如果你的设备两者都支持,请确认该" "设备的设置中正在使用的是哪一种输出。\n" "要从 MIDI 设备接收输入事件,你需要调用 [method OS.open_midi_inputs]。你可以使" "用 [method OS.get_connected_midi_inputs] 查看检测到的设备。\n" "请注意 Godot 目前不支持 MIDI 输出,因此无法从 Godot 中发出 MIDI 信号。只能进" "行 MIDI 输入。" #: doc/classes/InputEventMIDI.xml msgid "MIDI Message Status Byte List" msgstr "MIDI 消息状态字节列表" #: doc/classes/InputEventMIDI.xml msgid "Wikipedia General MIDI Instrument List" msgstr "维基百科通用 MIDI 乐器列表" #: doc/classes/InputEventMIDI.xml msgid "Wikipedia Piano Key Frequencies List" msgstr "维基百科钢琴琴键频率列表" #: doc/classes/InputEventMIDI.xml msgid "" "The MIDI channel of this input event. There are 16 channels, so this value " "ranges from 0 to 15. MIDI channel 9 is reserved for the use with percussion " "instruments, the rest of the channels are for non-percussion instruments." msgstr "" "这个输入事件的 MIDI 通道。总共有 16 个通道,所以这个值的范围是 0 到 15。MIDI " "通道 9 是为打击乐器保留的,其余通道供非打击乐器使用。" #: doc/classes/InputEventMIDI.xml msgid "" "If the message is [code]MIDI_MESSAGE_CONTROL_CHANGE[/code], this indicates " "the controller number, otherwise this is zero. Controllers include devices " "such as pedals and levers." msgstr "" "如果消息是 [code]MIDI_MESSAGE_CONTROL_CHANGE[/code],则表示控制器号,否则为" "零。控制器包含踏板、推杆等设备。" #: doc/classes/InputEventMIDI.xml msgid "" "If the message is [code]MIDI_MESSAGE_CONTROL_CHANGE[/code], this indicates " "the controller value, otherwise this is zero. Controllers include devices " "such as pedals and levers." msgstr "" "如果消息是 [code]MIDI_MESSAGE_CONTROL_CHANGE[/code],则表示控制器值,否则为" "零。控制器包含踏板、推杆等设备。" #: doc/classes/InputEventMIDI.xml msgid "" "The instrument of this input event. This value ranges from 0 to 127. Refer " "to the instrument list on the General MIDI wikipedia article to see a list " "of instruments, except that this value is 0-index, so subtract one from " "every number on that chart. A standard piano will have an instrument number " "of 0." msgstr "" "这个输入事件的乐器。这个值的范围是 0 到 127。乐器列表请参考维基百科的 " "General MIDI 文中的乐器列表,不过这个值是从 0 开始的,所以请把那张表中的数字" "都减一。标准钢琴的乐器号为 0。" #: doc/classes/InputEventMIDI.xml msgid "" "Returns a value indicating the type of message for this MIDI signal. This is " "a member of the [enum @GlobalScope.MidiMessageList] enum.\n" "For MIDI messages between 0x80 and 0xEF, only the left half of the bits are " "returned as this value, as the other part is the channel (ex: 0x94 becomes " "0x9). For MIDI messages from 0xF0 to 0xFF, the value is returned as-is.\n" "Notes will return [code]MIDI_MESSAGE_NOTE_ON[/code] when activated, but they " "might not always return [code]MIDI_MESSAGE_NOTE_OFF[/code] when deactivated, " "therefore your code should treat the input as stopped if some period of time " "has passed.\n" "For more information, see the MIDI message status byte list chart linked " "above." msgstr "" "返回表示这个 MIDI 信号类型的值,是 [enum @GlobalScope.MidiMessageList] 枚举的" "成员。\n" "对于在 0x80 和 0xEF 之间的 MIDI 消息,这个值返回的是左半部分的比特位,另一半" "是通道(例:0x94 会变成 0x9)。对于在 0xF0 到 0xFF 之间的 MIDI 消息,这个值是" "原样返回的。\n" "激活音符时会返回 [code]MIDI_MESSAGE_NOTE_ON[/code],但失活时并不一定会返回 " "[code]MIDI_MESSAGE_NOTE_OFF[/code],因此你的代码应该在经过一段时间后将输入处" "理为停止。\n" "更多消息请参阅上面链接的 MIDI 消息状态字节列表。" #: doc/classes/InputEventMIDI.xml msgid "" "The pitch index number of this MIDI signal. This value ranges from 0 to 127. " "On a piano, middle C is 60, and A440 is 69, see the \"MIDI note\" column of " "the piano key frequency chart on Wikipedia for more information." msgstr "" "这个 MIDI 信号的音高索引号。这个值的范围为 0 到 127。在钢琴上,中央 C 是 60," "而 A440 是 69,更多信息请参阅维基百科钢琴琴键频率表的“MIDI 音符”列。" #: doc/classes/InputEventMIDI.xml msgid "" "The pressure of the MIDI signal. This value ranges from 0 to 127. For many " "devices, this value is always zero." msgstr "MIDI 信号的压力。这个值在 0 到 127 之间。对于很多设备,这个值总是 0。" #: doc/classes/InputEventMIDI.xml msgid "" "The velocity of the MIDI signal. This value ranges from 0 to 127. For a " "piano, this corresponds to how quickly the key was pressed, and is rarely " "above about 110 in practice." msgstr "" "MIDI 信号的速度。这个值在 0 到 127 之间。对于钢琴,这对应的是按键有多块,实际" "很少超过 110。" #: doc/classes/InputEventMouse.xml msgid "Base input event type for mouse events." msgstr "鼠标事件的基本输入事件类型。" #: doc/classes/InputEventMouse.xml msgid "Stores general mouse events information." msgstr "存储一般的鼠标事件信息。" #: doc/classes/InputEventMouse.xml msgid "" "The mouse button mask identifier, one of or a bitwise combination of the " "[enum ButtonList] button masks." msgstr "鼠标按钮掩码标识符,是[enum ButtonList] 按钮掩码之一或按位组合。" #: doc/classes/InputEventMouse.xml msgid "" "When received in [method Node._input] or [method Node._unhandled_input], " "returns the mouse's position in the root [Viewport] using the coordinate " "system of the root [Viewport].\n" "When received in [method Control._gui_input], returns the mouse's position " "in the [CanvasLayer] that the [Control] is in using the coordinate system of " "the [CanvasLayer]." msgstr "" "在 [method Node._input] 或 [method Node._unhandled_input] 中获取时,返回根 " "[Viewport] 中鼠标的位置,使用根 [Viewport] 的坐标系。\n" "在 [method Control._gui_input] 中获取时,返回该 [Control] 所在的 " "[CanvasLayer] 中鼠标的位置,使用该 [CanvasLayer] 的坐标系。" #: doc/classes/InputEventMouse.xml msgid "" "When received in [method Node._input] or [method Node._unhandled_input], " "returns the mouse's position in the [Viewport] this [Node] is in using the " "coordinate system of this [Viewport].\n" "When received in [method Control._gui_input], returns the mouse's position " "in the [Control] using the local coordinate system of the [Control]." msgstr "" "在 [method Node._input] 或 [method Node._unhandled_input] 中获取时,返回该 " "[Node] 所在 [Viewport] 中鼠标的位置,使用该 [Viewport] 的坐标系。\n" "在 [method Control._gui_input] 中获取时,返回该 [Control] 中鼠标的位置,使用" "该 [Control] 的坐标系。" #: doc/classes/InputEventMouseButton.xml msgid "Input event type for mouse button events." msgstr "鼠标按钮事件的输入事件类型。" #: doc/classes/InputEventMouseButton.xml msgid "Contains mouse click information. See [method Node._input]." msgstr "包含鼠标点击信息。见[method Node._input]。" #: doc/classes/InputEventMouseButton.xml msgid "" "The mouse button identifier, one of the [enum ButtonList] button or button " "wheel constants." msgstr "鼠标按钮标识符,是[enum ButtonList] 按钮或按钮滚轮常量之一。" #: doc/classes/InputEventMouseButton.xml msgid "If [code]true[/code], the mouse button's state is a double-click." msgstr "如果[code]true[/code],鼠标按钮的状态是双击。" #: doc/classes/InputEventMouseButton.xml msgid "" "The amount (or delta) of the event. When used for high-precision scroll " "events, this indicates the scroll amount (vertical or horizontal). This is " "only supported on some platforms; the reported sensitivity varies depending " "on the platform. May be [code]0[/code] if not supported." msgstr "" "事件的数量(或delta)。当用于高精度滚动事件时,这表示滚动量(垂直或水平)。这" "只在一些平台上被支持;报告的灵敏度因平台不同而不同。如果不支持,可能是" "[code]0[/code]。" #: doc/classes/InputEventMouseButton.xml msgid "" "If [code]true[/code], the mouse button's state is pressed. If [code]false[/" "code], the mouse button's state is released." msgstr "" "如果[code]true[/code],鼠标按键的状态为按下。如果[code]false[/code],鼠标按钮" "的状态被释放。" #: doc/classes/InputEventMouseMotion.xml msgid "Input event type for mouse motion events." msgstr "鼠标移动事件的输入事件类型。" #: doc/classes/InputEventMouseMotion.xml msgid "" "Contains mouse and pen motion information. Supports relative, absolute " "positions and speed. See [method Node._input].\n" "[b]Note:[/b] By default, this event is only emitted once per frame rendered " "at most. If you need more precise input reporting, call [method Input." "set_use_accumulated_input] with [code]false[/code] to make events emitted as " "often as possible. If you use InputEventMouseMotion to draw lines, consider " "implementing [url=https://en.wikipedia.org/wiki/" "Bresenham%27s_line_algorithm]Bresenham's line algorithm[/url] as well to " "avoid visible gaps in lines if the user is moving the mouse quickly." msgstr "" "包含鼠标和笔的运动信息。支持相对、绝对位置和速度。请参阅 [method Node." "_input]。\n" "[b]注意:[/b]默认情况下,这个事件最多只能在每一帧渲染中发出一次。如果你需要更" "精确的输入报告,请用 [code]false[/code] 调用 [method Input." "set_use_accumulated_input] 来使事件尽可能频繁地发射。如果你使用 " "InputEventMouseMotion 来画线,请考虑同时实现 [url=https://en.wikipedia.org/" "wiki/Bresenham%27s_line_algorithm]Bresenham 的线条算法[/url],以避免在用户快" "速移动鼠标时出现可见的线条空隙。" #: doc/classes/InputEventMouseMotion.xml msgid "Mouse and input coordinates" msgstr "鼠标和输入坐标" #: doc/classes/InputEventMouseMotion.xml msgid "" "Represents the pressure the user puts on the pen. Ranges from [code]0.0[/" "code] to [code]1.0[/code]." msgstr "表示用户对笔施加的压力。范围从 [code]0.0[/code] 到 [code]1.0[/code] 。" #: doc/classes/InputEventMouseMotion.xml msgid "" "The mouse position relative to the previous position (position at the last " "frame).\n" "[b]Note:[/b] Since [InputEventMouseMotion] is only emitted when the mouse " "moves, the last event won't have a relative position of [code]Vector2(0, 0)[/" "code] when the user stops moving the mouse." msgstr "" "鼠标相对于前一个位置的位置(上一帧的位置)。\n" "[b]注意:[/b]因为[InputEventMouseMotion]只在鼠标移动时发出,当用户停止移动鼠" "标时,最后一个事件的相对位置不会是[code]Vector2(0, 0)[/code]。" #: doc/classes/InputEventMouseMotion.xml msgid "The mouse speed in pixels per second." msgstr "鼠标速度以像素/秒为单位。" #: doc/classes/InputEventMouseMotion.xml msgid "" "Represents the angles of tilt of the pen. Positive X-coordinate value " "indicates a tilt to the right. Positive Y-coordinate value indicates a tilt " "toward the user. Ranges from [code]-1.0[/code] to [code]1.0[/code] for both " "axes." msgstr "" "代表笔的倾斜角度。正的X坐标值表示向右倾斜。正的Y坐标值表示向用户自身倾斜。两" "个轴的范围是[code]-1.0[/code]到[code]1.0[/code]。" #: doc/classes/InputEventScreenDrag.xml msgid "" "Input event type for screen drag events. Only available on mobile devices." msgstr "屏幕拖动事件的输入事件类型。仅适用于移动设备。" #: doc/classes/InputEventScreenDrag.xml msgid "Contains screen drag information. See [method Node._input]." msgstr "包含屏幕拖动信息。见[method Node._input]。" #: doc/classes/InputEventScreenDrag.xml msgid "The drag event index in the case of a multi-drag event." msgstr "多次拖动事件中的拖动事件索引。" #: doc/classes/InputEventScreenDrag.xml msgid "The drag position." msgstr "拖拽的位置。" #: doc/classes/InputEventScreenDrag.xml msgid "" "The drag position relative to the previous position (position at the last " "frame)." msgstr "相对于之前位置(上一帧时的位置)的拖拽位置。" #: doc/classes/InputEventScreenDrag.xml msgid "The drag speed." msgstr "拖动速度。" #: doc/classes/InputEventScreenTouch.xml msgid "" "Input event type for screen touch events.\n" "(only available on mobile devices)" msgstr "" "用于屏幕触摸事件的输入事件类型。\n" "(仅适用于移动设备)" #: doc/classes/InputEventScreenTouch.xml msgid "" "Stores multi-touch press/release information. Supports touch press, touch " "release and [member index] for multi-touch count and order." msgstr "" "存储多点触摸的按压/释放信息。支持触摸按压、触摸释放和[member index]的多点触摸" "计数和顺序。" #: doc/classes/InputEventScreenTouch.xml msgid "" "The touch index in the case of a multi-touch event. One index = one finger." msgstr "在多点触摸事件中的触摸指数。一个索引=一个手指。" #: doc/classes/InputEventScreenTouch.xml msgid "The touch position." msgstr "触摸位置。" #: doc/classes/InputEventScreenTouch.xml msgid "" "If [code]true[/code], the touch's state is pressed. If [code]false[/code], " "the touch's state is released." msgstr "" "如果[code]true[/code],触摸的状态为按下。如果[code]false[/code],触摸的状态被" "释放。" #: doc/classes/InputEventWithModifiers.xml msgid "Base class for keys events with modifiers." msgstr "带有修饰符的键事件的基类。" #: doc/classes/InputEventWithModifiers.xml msgid "" "Contains keys events information with modifiers support like [code]Shift[/" "code] or [code]Alt[/code]. See [method Node._input]." msgstr "" "包含具有修饰符支持的按键事件信息,如 [code]Shift[/code] 或 [code]Alt[/code]。" "见[method Node._input]。" #: doc/classes/InputEventWithModifiers.xml msgid "State of the [code]Alt[/code] modifier." msgstr "[code]Alt[/code] 修饰符的状态。" #: doc/classes/InputEventWithModifiers.xml msgid "State of the [code]Command[/code] modifier." msgstr "[code]Command[/code] 修饰符的状态。" #: doc/classes/InputEventWithModifiers.xml msgid "State of the [code]Ctrl[/code] modifier." msgstr "[code]Ctrl[/code] 修饰符的状态。" #: doc/classes/InputEventWithModifiers.xml msgid "State of the [code]Meta[/code] modifier." msgstr "[code]Meta[/code] 修饰符的状态。" #: doc/classes/InputEventWithModifiers.xml msgid "State of the [code]Shift[/code] modifier." msgstr "[code]Shift[/code] 修饰符的状态。" #: doc/classes/InputMap.xml msgid "Singleton that manages [InputEventAction]." msgstr "管理 [InputEventAction] 的单例。" #: doc/classes/InputMap.xml msgid "" "Manages all [InputEventAction] which can be created/modified from the " "project settings menu [b]Project > Project Settings > Input Map[/b] or in " "code with [method add_action] and [method action_add_event]. See [method " "Node._input]." msgstr "" "管理所有的 [InputEventAction],可以通过项目设置菜单[b]项目 > 项目设置 > 键位" "映射[/b]或在代码中用 [method add_action] 和 [method action_add_event] 创建/修" "改。请参阅 [method Node._input]。" #: doc/classes/InputMap.xml msgid "" "Adds an [InputEvent] to an action. This [InputEvent] will trigger the action." msgstr "给一个动作添加一个[InputEvent]。这个[InputEvent]将触发这个动作。" #: doc/classes/InputMap.xml msgid "Removes an [InputEvent] from an action." msgstr "从一个动作中删除一个[InputEvent]。" #: doc/classes/InputMap.xml msgid "Removes all events from an action." msgstr "从动作中删除所有事件。" #: doc/classes/InputMap.xml msgid "Returns a deadzone value for the action." msgstr "返回该操作的死区值。" #: doc/classes/InputMap.xml msgid "" "Returns [code]true[/code] if the action has the given [InputEvent] " "associated with it." msgstr "如果该动作有给定的[InputEvent]与之相关,则返回 [code]true[/code]。" #: doc/classes/InputMap.xml msgid "Sets a deadzone value for the action." msgstr "为该动作设置死区值。" #: doc/classes/InputMap.xml msgid "" "Adds an empty action to the [InputMap] with a configurable [code]deadzone[/" "code].\n" "An [InputEvent] can then be added to this action with [method " "action_add_event]." msgstr "" "在[InputMap]上添加一个空的动作,有一个可配置的死区[code]deadzone[/code]。\n" "然后可以用[method action_add_event]给这个动作添加一个[InputEvent]。" #: doc/classes/InputMap.xml msgid "Removes an action from the [InputMap]." msgstr "从[InputMap]中删除一个动作。" #: doc/classes/InputMap.xml msgid "" "Returns [code]true[/code] if the given event is part of an existing action. " "This method ignores keyboard modifiers if the given [InputEvent] is not " "pressed (for proper release detection). See [method action_has_event] if you " "don't want this behavior.\n" "If [code]exact_match[/code] is [code]false[/code], it ignores additional " "input modifiers for [InputEventKey] and [InputEventMouseButton] events, and " "the direction for [InputEventJoypadMotion] events." msgstr "" "如果给定的事件是现有动作的一部分,返回 [code]true[/code]。如果给定的 " "[InputEvent] 没有被按下,这个方法会忽略键盘(为了正确地检测释放)。如果你不想" "要这种行为,请参阅 [method action_has_event]。\n" "如果 [code]exact_match[/code] 是 [code]false[/code],它会忽略 " "[InputEventKey] 和 [InputEventMouseButton] 事件的额外输入修饰符,以及 " "[InputEventJoypadMotion] 事件的方向。" #: doc/classes/InputMap.xml msgid "" "Returns an array of [InputEvent]s associated with a given action.\n" "[b]Note:[/b] When used in the editor (e.g. a tool script or [EditorPlugin]), " "this method will return events for the editor action. If you want to access " "your project's input binds from the editor, read the [code]input/*[/code] " "settings from [ProjectSettings]." msgstr "" "返回与给定动作关联的 [InputEvent] 的数组。\n" "[b]注意:[/b]在编辑器中使用时(例如在工具脚本或 [EditorPlugin] 中使用),这个" "方法返回的是编辑器动作对应的事件。如果你想要在编辑器中访问你的项目的输入绑" "定,请读取 [ProjectSettings] 的 [code]input/*[/code] 设置。" #: doc/classes/InputMap.xml msgid "Returns an array of all actions in the [InputMap]." msgstr "返回[InputMap]中所有动作的数组。" #: doc/classes/InputMap.xml msgid "" "Returns [code]true[/code] if the [InputMap] has a registered action with the " "given name." msgstr "如果[InputMap]有一个给定名称的注册动作,返回 [code]true[/code]。" #: doc/classes/InputMap.xml msgid "" "Clears all [InputEventAction] in the [InputMap] and load it anew from " "[ProjectSettings]." msgstr "" "清除[InputMap]中的所有[InputEventAction],并从[ProjectSettings]项目设置中重新" "加载它。" #: doc/classes/InstancePlaceholder.xml msgid "Placeholder for the root [Node] of a [PackedScene]." msgstr "[PackedScene] 根 [Node] 的占位符。" #: doc/classes/InstancePlaceholder.xml msgid "" "Turning on the option [b]Load As Placeholder[/b] for an instanced scene in " "the editor causes it to be replaced by an InstancePlaceholder when running " "the game. This makes it possible to delay actually loading the scene until " "calling [method replace_by_instance]. This is useful to avoid loading large " "scenes all at once by loading parts of it selectively.\n" "The InstancePlaceholder does not have a transform. This causes any child " "nodes to be positioned relatively to the Viewport from point (0,0), rather " "than their parent as displayed in the editor. Replacing the placeholder with " "a scene with a transform will transform children relatively to their parent " "again." msgstr "" "在编辑器中为实例化的场景打开[b]加载为占位符[/b]选项会导致在运行游戏时将其替换" "为 InstancePlaceholder。这样就可以将场景的实际加载推迟到调用 [method " "replace_by_instance] 时。这对于通过选择性加载部分场景来避免一次性加载大场景很" "有用。\n" "InstancePlaceholder 不具备变换属性。因此任何子节点都会相对于 Viewport 从 (0, " "0) 点开始定位,而不是在编辑器中显示的父节点。用一个具有变换属性的场景来替换占" "位符,将使子节点再次相对于它们的父节点进行变换。" #: doc/classes/InstancePlaceholder.xml msgid "" "Not thread-safe. Use [method Object.call_deferred] if calling from a thread." msgstr "不是线程安全的。如果从线程调用,请使用 [method Object.call_deferred]。" #: doc/classes/InstancePlaceholder.xml msgid "" "Gets the path to the [PackedScene] resource file that is loaded by default " "when calling [method replace_by_instance]. Not thread-safe. Use [method " "Object.call_deferred] if calling from a thread." msgstr "" "获取调用 [method replace_by_instance] 时默认加载的 [PackedScene] 资源文件的路" "径。不是线程安全的。如果从线程调用,请使用[method Object.call_deferred]。" #: doc/classes/InstancePlaceholder.xml msgid "" "Replaces this placeholder by the scene handed as an argument, or the " "original scene if no argument is given. As for all resources, the scene is " "loaded only if it's not loaded already. By manually loading the scene " "beforehand, delays caused by this function can be avoided." msgstr "" "用作为参数的场景替换这个占位符,如果没有给出参数,则用原始场景替换。与所有资" "源相同,只有当场景还没有被加载时才会被加载。通过事先手动加载场景,可以避免由" "这个函数引起的延迟。" #: doc/classes/int.xml msgid "Integer built-in type." msgstr "整数内置类型。" #: doc/classes/int.xml msgid "" "Signed 64-bit integer type.\n" "It can take values in the interval [code][-2^63, 2^63 - 1][/code], i.e. " "[code][-9223372036854775808, 9223372036854775807][/code]. Exceeding those " "bounds will wrap around.\n" "[int] is a [Variant] type, and will thus be used when assigning an integer " "value to a [Variant]. It can also be enforced with the [code]: int[/code] " "type hint.\n" "[codeblock]\n" "var my_variant = 0 # int, value 0.\n" "my_variant += 4.2 # float, value 4.2.\n" "var my_int: int = 1 # int, value 1.\n" "my_int = 4.2 # int, value 4, the right value is implicitly cast to int.\n" "my_int = int(\"6.7\") # int, value 6, the String is explicitly cast with " "int.\n" "\n" "var max_int = 9223372036854775807\n" "print(max_int) # 9223372036854775807, OK.\n" "max_int += 1\n" "print(max_int) # -9223372036854775808, we overflowed and wrapped around.\n" "[/codeblock]" msgstr "" "有符号的 64 位整数类型。\n" "它可以在 [code][-2^63, 2^63 - 1][/code] 区间内取值,即 [code]" "[-9223372036854775808, 9223372036854775807][/code]。超过这个界限将从头/尾环绕" "循环。\n" "[int] 是 [Variant] 的一种类型,因此会在为 [Variant] 赋整数值时使用。也可以通" "过 [code]: int[/code] 类型提示来强制使用。\n" "[codeblock]\n" "var my_variant = 0 # int,值为 0。\n" "my_variant += 4.2 # float,值为 4.2。\n" "var my_int: int = 1 # int,值为 1。\n" "my_int = 4.2 # int,值为 4,右侧的值被隐式转换为 int。\n" "my_int = int(\"6.7\") # int,值为 6,该 String 被显式转换为 int。\n" "\n" "var max_int = 9223372036854775807\n" "print(max_int) # 9223372036854775807,没问题。\n" "max_int += 1\n" "print(max_int) # -9223372036854775808,值溢出了,并进行了环绕。\n" "[/codeblock]" #: doc/classes/int.xml msgid "" "Cast a [bool] value to an integer value, [code]int(true)[/code] will be " "equals to 1 and [code]int(false)[/code] will be equals to 0." msgstr "" "将 [bool] 值转换成整数值,[code]int(true)[/code] 将等于 1,[code]int(false)[/" "code] 将等于 0。" #: doc/classes/int.xml msgid "" "Cast a float value to an integer value, this method simply removes the " "number fractions (i.e. rounds [code]from[/code] towards zero), so for " "example [code]int(2.7)[/code] will be equals to 2, [code]int(0.1)[/code] " "will be equals to 0 and [code]int(-2.7)[/code] will be equals to -2. This " "operation is also called truncation." msgstr "" "将浮点值转换为整数值,此方法只是删除数字的小数部分(即,将 [code]from[/code] " "向零舍入),因此例如 [code]int(2.7)[/code] 将等于 2,[code]int(0.1)[/code] 将" "等于 0,而 [code]int(-2.7)[/code] 将等于 -2。此操作也称为截断。" #: doc/classes/int.xml msgid "" "Cast a [String] value to an integer value, this method is an integer parser " "from a string, so calling this method with an invalid integer string will " "return 0, a valid string will be something like [code]'1.7'[/code]. This " "method will ignore all non-number characters, so calling [code]int('1e3')[/" "code] will return 13." msgstr "" "将一个[String]字符串值转换成一个整数值,这个方法是一个来自字符串的整数解析" "器,所以用一个无效的整数字符串调用这个方法将返回0,一个有效的字符串将是像" "[code]'1.7'[/code]这样。这个方法将忽略所有非数字字符,所以调用" "[code]int('1e3')[/code]将返回13。" #: doc/classes/InterpolatedCamera.xml msgid "[i]Deprecated.[/i] Camera which moves toward another node." msgstr "[i] 已弃用。 [/i] 向另一个节点移动的相机。" #: doc/classes/InterpolatedCamera.xml msgid "" "[i]Deprecated (will be removed in Godot 4.0).[/i] InterpolatedCamera is a " "[Camera] which smoothly moves to match a target node's position and " "rotation.\n" "If it is not [member enabled] or does not have a valid target set, " "InterpolatedCamera acts like a normal Camera." msgstr "" "[i]已经弃用(将在Godot 4.0 中删除)。[/i]插值相机是一种[Camera],可以平稳地移" "动,以匹配目标节点的位置和旋转。\n" "如果它不是[member enabled]或没有有效的目标集,InterpolatedCamera 的行为就像一" "个正常的相机。" #: doc/classes/InterpolatedCamera.xml msgid "Sets the node to move toward and orient with." msgstr "设置要移动和定向的节点。" #: doc/classes/InterpolatedCamera.xml msgid "" "If [code]true[/code], and a target is set, the camera will move " "automatically." msgstr "如果[code]true[/code],并且设置了目标,相机将自动移动。" #: doc/classes/InterpolatedCamera.xml msgid "" "How quickly the camera moves toward its target. Higher values will result in " "tighter camera motion." msgstr "相机向其目标移动的速度。较高的值将导致相机的运动更紧密。" #: doc/classes/InterpolatedCamera.xml msgid "The target's [NodePath]." msgstr "目标的[NodePath]。" #: doc/classes/IntervalTweener.xml msgid "Creates an idle interval in a [SceneTreeTween] animation." msgstr "在 [SceneTreeTween] 动画中创建空闲间隔。" #: doc/classes/IntervalTweener.xml msgid "" "[IntervalTweener] is used to make delays in a tweening sequence. See [method " "SceneTreeTween.tween_interval] for more usage information.\n" "[b]Note:[/b] [method SceneTreeTween.tween_interval] is the only correct way " "to create [IntervalTweener]. Any [IntervalTweener] created manually will not " "function correctly." msgstr "" "[IntervalTweener] 可用于在补间序列中制作延迟。更多用法信息请参阅 [method " "SceneTreeTween.tween_interval]。\n" "[b]注意:[/b]创建 [IntervalTweener] 的唯一正确方法是 [method SceneTreeTween." "tween_interval]。任何手动创建的 [IntervalTweener] 都无法正常工作。" #: doc/classes/IP.xml msgid "Internet protocol (IP) support functions such as DNS resolution." msgstr "网际协议(IP)支持函数,如 DNS 解析。" #: doc/classes/IP.xml msgid "" "IP contains support functions for the Internet Protocol (IP). TCP/IP support " "is in different classes (see [StreamPeerTCP] and [TCP_Server]). IP provides " "DNS hostname resolution support, both blocking and threaded." msgstr "" "IP 包含网际协议(IP)的支持函数。TCP/IP 的支持在其他类中(请参阅 " "[StreamPeerTCP] 和 [TCP_Server])。IP 提供 DNS 主机名解析支持,包括阻塞式和线" "程式。" #: doc/classes/IP.xml msgid "" "Removes all of a [code]hostname[/code]'s cached references. If no " "[code]hostname[/code] is given, all cached IP addresses are removed." msgstr "" "移除所有[code]hostname[/code]主机名的缓存引用。如果没有给出[code]hostname[/" "code],所有缓存的IP地址将被删除。" #: doc/classes/IP.xml msgid "" "Removes a given item [code]id[/code] from the queue. This should be used to " "free a queue after it has completed to enable more queries to happen." msgstr "" "从队列中删除一个给定的项目[code]id[/code]。这应该被用来在队列完成后释放队列," "以便进行更多的查询。" #: doc/classes/IP.xml msgid "Returns all the user's current IPv4 and IPv6 addresses as an array." msgstr "以数组形式返回所有用户的当前IPv4和IPv6地址。" #: doc/classes/IP.xml msgid "" "Returns all network adapters as an array.\n" "Each adapter is a dictionary of the form:\n" "[codeblock]\n" "{\n" " \"index\": \"1\", # Interface index.\n" " \"name\": \"eth0\", # Interface name.\n" " \"friendly\": \"Ethernet One\", # A friendly name (might be empty).\n" " \"addresses\": [\"192.168.1.101\"], # An array of IP addresses " "associated to this interface.\n" "}\n" "[/codeblock]" msgstr "" "以数组形式返回所有网络适配器(network adapters)。\n" "每个适配器是一个形式的字典。\n" "[codeblock]\n" "{\n" " \"index\":\"1\", # 接口索引。\n" " \"name\":\"eth0\", # 接口名称。\n" " \"friendly\":\"Ethernet One\", # 一个友好的名字(可能是空的)。\n" " \"address\":[\"192.168.1.101\"], # 一个与此接口相关的IP地址数组。\n" "}\n" "[/codeblock]" #: doc/classes/IP.xml msgid "" "Returns a queued hostname's IP address, given its queue [code]id[/code]. " "Returns an empty string on error or if resolution hasn't happened yet (see " "[method get_resolve_item_status])." msgstr "" "给定队列 [code]id[/code],返回排队主机名的 IP 地址。出现错误或解析尚未发生时" "返回一个空字符串(参阅 [method get_resolve_item_status])。" #: doc/classes/IP.xml msgid "" "Return resolved addresses, or an empty array if an error happened or " "resolution didn't happen yet (see [method get_resolve_item_status])." msgstr "" "如果发生错误或尚未发生解析,则返回已解析的地址或空数组(请参阅 [method " "get_resolve_item_status])。" #: doc/classes/IP.xml msgid "" "Returns a queued hostname's status as a [enum ResolverStatus] constant, " "given its queue [code]id[/code]." msgstr "" "给定队列 [code]id[/code],以 [enum ResolverStatus] 常量的形式返回排队主机名的" "状态。" #: doc/classes/IP.xml msgid "" "Returns a given hostname's IPv4 or IPv6 address when resolved (blocking-type " "method). The address type returned depends on the [enum Type] constant given " "as [code]ip_type[/code]." msgstr "" "在解析时返回一个给定的主机名的IPv4或IPv6地址(阻塞类型方法)。返回的地址类型" "取决于作为[code]ip_type[/code]的[enum Type]常量。" #: doc/classes/IP.xml msgid "" "Resolves a given hostname in a blocking way. Addresses are returned as an " "[Array] of IPv4 or IPv6 depending on [code]ip_type[/code]." msgstr "" "以阻塞方式解析给定的主机名。地址作为 IPv4 或 IPv6 的 [Array] 数组返回,具体取" "决于 [code]ip_type[/code]。" #: doc/classes/IP.xml msgid "" "Creates a queue item to resolve a hostname to an IPv4 or IPv6 address " "depending on the [enum Type] constant given as [code]ip_type[/code]. Returns " "the queue ID if successful, or [constant RESOLVER_INVALID_ID] on error." msgstr "" "创建一个队列项目,根据 [enum Type] 常量 [code]ip_type[/code],将主机名解析为 " "IPv4 或 IPv6 地址。如果成功,则返回队列 ID,否则返回 [constant " "RESOLVER_INVALID_ID]。" #: doc/classes/IP.xml msgid "DNS hostname resolver status: No status." msgstr "DNS 主机名解析器状态:无状态。" #: doc/classes/IP.xml msgid "DNS hostname resolver status: Waiting." msgstr "DNS 主机名解析器状态:正在等待。" #: doc/classes/IP.xml msgid "DNS hostname resolver status: Done." msgstr "DNS 主机名解析器状态:完成。" #: doc/classes/IP.xml msgid "DNS hostname resolver status: Error." msgstr "DNS 主机名解析器状态:错误。" #: doc/classes/IP.xml msgid "" "Maximum number of concurrent DNS resolver queries allowed, [constant " "RESOLVER_INVALID_ID] is returned if exceeded." msgstr "" "允许的最大并发DNS解析器查询数量,如果超过,则返回[constant " "RESOLVER_INVALID_ID]。" #: doc/classes/IP.xml msgid "" "Invalid ID constant. Returned if [constant RESOLVER_MAX_QUERIES] is exceeded." msgstr "无效的 ID 常量。在超过 [constant RESOLVER_MAX_QUERIES] 时返回。" #: doc/classes/IP.xml msgid "Address type: None." msgstr "地址类型:无。" #: doc/classes/IP.xml msgid "Address type: Internet protocol version 4 (IPv4)." msgstr "地址类型:网际协议版本 4(IPv4)。" #: doc/classes/IP.xml msgid "Address type: Internet protocol version 6 (IPv6)." msgstr "地址类型:网际协议版本 6(IPv6)。" #: doc/classes/IP.xml msgid "Address type: Any." msgstr "地址类型:任意。" #: doc/classes/ItemList.xml msgid "" "Control that provides a list of selectable items (and/or icons) in a single " "column, or optionally in multiple columns." msgstr "提供可选中项目(和/或图标)列表的控件,既可以是单列,也可以是多列。" #: doc/classes/ItemList.xml msgid "" "This control provides a selectable list of items that may be in a single (or " "multiple columns) with option of text, icons, or both text and icon. " "Tooltips are supported and may be different for every item in the list.\n" "Selectable items in the list may be selected or deselected and multiple " "selection may be enabled. Selection with right mouse button may also be " "enabled to allow use of popup context menus. Items may also be \"activated\" " "by double-clicking them or by pressing Enter.\n" "Item text only supports single-line strings, newline characters (e.g. " "[code]\\n[/code]) in the string won't produce a newline. Text wrapping is " "enabled in [constant ICON_MODE_TOP] mode, but column's width is adjusted to " "fully fit its content by default. You need to set [member " "fixed_column_width] greater than zero to wrap the text." msgstr "" "此控件提供了一个可选择的项目列表,该列表可以是单列(或多列),可以单独选择文" "本、图标或同时选择文本和图标。支持工具提示,列表中的每个项目都可以是不同" "的。\n" "列表中可选择的项目可以被选择或取消选择,并且可以启用多重选择。用鼠标右键选择" "也可以被启用,以允许使用弹出式上下文菜单。项目也可以通过双击它们或按Enter回车" "键来 \"激活\"。\n" "项目文本只支持单行字符串,字符串中的换行字符(例如[code]\\n[/code])不会产生" "换行。在[constant ICON_MODE_TOP]模式下,文本自适应(warp)是启用的,但默认情况" "下会调整列的宽度以完全适合其内容。你需要设置[member fixed_column_width]大于0" "来包住文本。" #: doc/classes/ItemList.xml msgid "Adds an item to the item list with no text, only an icon." msgstr "将一个没有文本的项目添加到项目列表中,只有一个图标。" #: doc/classes/ItemList.xml msgid "" "Adds an item to the item list with specified text. Specify an [code]icon[/" "code], or use [code]null[/code] as the [code]icon[/code] for a list item " "with no icon.\n" "If selectable is [code]true[/code], the list item will be selectable." msgstr "" "将一个项目添加到项目列表中,并指定文本。指定一个图标[code]icon[/code],或者图" "标[code]icon[/code]使用空[code]null[/code]作为没有图标的列表项。\n" "如果可选择填[code]true[/code],列表项将是可选择的。" #: doc/classes/ItemList.xml msgid "Removes all items from the list." msgstr "移除列表中的所有项目。" #: doc/classes/ItemList.xml msgid "" "Ensure current selection is visible, adjusting the scroll position as " "necessary." msgstr "确保当前选择可见,根据需要调整滚动位置。" #: doc/classes/ItemList.xml msgid "" "Returns the item index at the given [code]position[/code].\n" "When there is no item at that point, -1 will be returned if [code]exact[/" "code] is [code]true[/code], and the closest item index will be returned " "otherwise." msgstr "" "在给定的位置 [code]position[/code] 返回项目索引。\n" "当此时没有项目时,如果精确 [code]exact[/code] 是真 [code]true[/code],则将返" "回 -1,否则将返回最近的项目索引。" #: doc/classes/ItemList.xml msgid "Returns the number of items currently in the list." msgstr "返回当前列表中的项目数。" #: doc/classes/ItemList.xml msgid "" "Returns the custom background color of the item specified by [code]idx[/" "code] index." msgstr "返回由[code]idx[/code]索引指定的项目的自定义背景颜色。" #: doc/classes/ItemList.xml msgid "" "Returns the custom foreground color of the item specified by [code]idx[/" "code] index." msgstr "返回由[code]idx[/code]索引指定项目的自定义前景颜色。" #: doc/classes/ItemList.xml msgid "Returns the icon associated with the specified index." msgstr "返回与指定索引相关的图标。" #: doc/classes/ItemList.xml msgid "Returns a [Color] modulating item's icon at the specified index." msgstr "返回指定索引处的[Color]颜色调制(modulating) 项的图标。" #: doc/classes/ItemList.xml msgid "" "Returns the region of item's icon used. The whole icon will be used if the " "region has no area." msgstr "返回项目图标的使用区域。如果该区域大小为0,整个图标将被使用。" #: doc/classes/ItemList.xml msgid "Returns the metadata value of the specified index." msgstr "返回指定索引的元数据值。" #: doc/classes/ItemList.xml msgid "Returns the text associated with the specified index." msgstr "返回与指定索引关联的文本。" #: doc/classes/ItemList.xml msgid "Returns the tooltip hint associated with the specified index." msgstr "返回与指定索引关联的工具提示。" #: doc/classes/ItemList.xml msgid "Returns an array with the indexes of the selected items." msgstr "返回一个包含所选项目索引的数组。" #: doc/classes/ItemList.xml doc/classes/RichTextLabel.xml msgid "" "Returns the vertical scrollbar.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回垂直滚动条。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果您希望隐" "藏它或其任何子项,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/ItemList.xml msgid "Returns [code]true[/code] if one or more items are selected." msgstr "选中了一个或多个项目时,返回 [code]true[/code]。" #: doc/classes/ItemList.xml msgid "" "Returns [code]true[/code] if the item at the specified index is disabled." msgstr "索引所对应的项目被禁用时,返回 [code]true[/code]。" #: doc/classes/ItemList.xml msgid "" "Returns [code]true[/code] if the item icon will be drawn transposed, i.e. " "the X and Y axes are swapped." msgstr "项目图标被转置绘制,即 X 和 Y 轴互换时,返回 [code]true[/code]。" #: doc/classes/ItemList.xml msgid "" "Returns [code]true[/code] if the item at the specified index is selectable." msgstr "索引所对应的项目可以被选中时,返回 [code]true[/code]。" #: doc/classes/ItemList.xml msgid "" "Returns [code]true[/code] if the tooltip is enabled for specified item index." msgstr "索引所对应的项目已启用工具提示时,返回 [code]true[/code]。" #: doc/classes/ItemList.xml msgid "" "Returns [code]true[/code] if the item at the specified index is currently " "selected." msgstr "索引所对应的项目被选中时,返回 [code]true[/code]。" #: doc/classes/ItemList.xml msgid "Moves item from index [code]from_idx[/code] to [code]to_idx[/code]." msgstr "将项目从索引 [code]from_idx[/code] 移到 [code]to_idx[/code]。" #: doc/classes/ItemList.xml msgid "Removes the item specified by [code]idx[/code] index from the list." msgstr "从列表中删除 [code]idx[/code] 索引指定的项目。" #: doc/classes/ItemList.xml msgid "" "Select the item at the specified index.\n" "[b]Note:[/b] This method does not trigger the item selection signal." msgstr "" "选择指定索引处的项目。\n" "[b]注意:[/b]此方法不触发项目选择信号。" #: doc/classes/ItemList.xml msgid "" "Sets the background color of the item specified by [code]idx[/code] index to " "the specified [Color]." msgstr "将[code]idx[/code]索引指定的项目的背景色设置为指定的颜色[Color]。" #: doc/classes/ItemList.xml msgid "" "Sets the foreground color of the item specified by [code]idx[/code] index to " "the specified [Color]." msgstr "将[code]idx[/code]索引指定项目的前景颜色设置为指定的颜色[Color]。" #: doc/classes/ItemList.xml msgid "" "Disables (or enables) the item at the specified index.\n" "Disabled items cannot be selected and do not trigger activation signals " "(when double-clicking or pressing Enter)." msgstr "" "禁用(或启用)指定索引上的项目。\n" "禁用的项目不能被选中,也不会触发激活信号(当双击或按Enter回车键)。" #: doc/classes/ItemList.xml msgid "" "Sets (or replaces) the icon's [Texture] associated with the specified index." msgstr "设置(或替换)与指定索引相关的图标的纹理[Texture]。" #: doc/classes/ItemList.xml msgid "" "Sets a modulating [Color] of the item associated with the specified index." msgstr "设置与指定索引相关的项目的调制颜色[Color]。" #: doc/classes/ItemList.xml msgid "" "Sets the region of item's icon used. The whole icon will be used if the " "region has no area." msgstr "设置项目图标的使用区域。如果该区域大小为 0, 将使用整个图标。" #: doc/classes/ItemList.xml msgid "Sets whether the item icon will be drawn transposed." msgstr "设置项目图标是否将被转置绘制。" #: doc/classes/ItemList.xml msgid "" "Sets a value (of any type) to be stored with the item associated with the " "specified index." msgstr "设置与指定索引相关的项目存储的值(任何类型的值)。" #: doc/classes/ItemList.xml msgid "" "Allows or disallows selection of the item associated with the specified " "index." msgstr "允许或禁止选择与指定索引关联的项目。" #: doc/classes/ItemList.xml msgid "Sets text of the item associated with the specified index." msgstr "设置与指定索引相关的项目的文本。" #: doc/classes/ItemList.xml msgid "Sets the tooltip hint for the item associated with the specified index." msgstr "设置与指定索引相关的项目的工具提示。" #: doc/classes/ItemList.xml msgid "Sets whether the tooltip hint is enabled for specified item index." msgstr "设置是否为指定的项目索引启用工具提示。" #: doc/classes/ItemList.xml msgid "Sorts items in the list by their text." msgstr "按文本对列表中的项目进行排序。" #: doc/classes/ItemList.xml msgid "Ensures the item associated with the specified index is not selected." msgstr "确保与指定索引相关的项目不被选中。" #: doc/classes/ItemList.xml msgid "Ensures there are no items selected." msgstr "确保没有选择任何项目。" #: doc/classes/ItemList.xml msgid "" "If [code]true[/code], the currently selected item can be selected again." msgstr "如果为 [code]true[/code],则可以再次选择当前选中的项目。" #: doc/classes/ItemList.xml msgid "If [code]true[/code], right mouse button click can select items." msgstr "如果为 [code]true[/code],点击鼠标右键可以选中项目。" #: doc/classes/ItemList.xml msgid "" "If [code]true[/code], the control will automatically resize the height to " "fit its content." msgstr "如果为 [code]true[/code],控件将自动调整高度以适合其内容。" #: doc/classes/ItemList.xml msgid "" "The width all columns will be adjusted to.\n" "A value of zero disables the adjustment, each item will have a width equal " "to the width of its content and the columns will have an uneven width." msgstr "" "所有列的宽度将调整为。\n" "零值禁用调整,每个项目的宽度将等于其内容的宽度,列的宽度将不均匀。" #: doc/classes/ItemList.xml msgid "" "The size all icons will be adjusted to.\n" "If either X or Y component is not greater than zero, icon size won't be " "affected." msgstr "" "所有图标将被调整到的尺寸。\n" "如果X或Y分量不大于0,图标的大小将不会受到影响。" #: doc/classes/ItemList.xml msgid "" "The icon position, whether above or to the left of the text. See the [enum " "IconMode] constants." msgstr "图标的位置,是在文本的上方还是在文本的左边。参阅[enum IconMode]常量。" #: doc/classes/ItemList.xml msgid "" "The scale of icon applied after [member fixed_icon_size] and transposing " "takes effect." msgstr "在[member fixed_icon_size]和转置生效后应用的图标比例。" #: doc/classes/ItemList.xml msgid "" "Maximum columns the list will have.\n" "If greater than zero, the content will be split among the specified " "columns.\n" "A value of zero means unlimited columns, i.e. all items will be put in the " "same row." msgstr "" "列表将具有的最大列。\n" "如果大于零,内容将被拆分为指定列。\n" "零值意味着无限列,即所有项目将放在同一行中。" #: doc/classes/ItemList.xml msgid "" "Maximum lines of text allowed in each item. Space will be reserved even when " "there is not enough lines of text to display.\n" "[b]Note:[/b] This property takes effect only when [member icon_mode] is " "[constant ICON_MODE_TOP]. To make the text wrap, [member fixed_column_width] " "should be greater than zero." msgstr "" "每个子项中允许的最大文本行数。即使没有足够的文本行数来显示,也会保留空间。\n" "[b]注意:[/b]这个属性只有在 [member icon_mode] 是 [constant ICON_MODE_TOP] 时" "才会生效。要使文本自动换行,[member fixed_column_width]应大于零。" #: doc/classes/ItemList.xml msgid "" "Whether all columns will have the same width.\n" "If [code]true[/code], the width is equal to the largest column width of all " "columns." msgstr "" "是否所有列的宽度相同。\n" "如果为 [code]true[/code],则宽度等于所有列的最大列宽度。" #: doc/classes/ItemList.xml msgid "" "Allows single or multiple item selection. See the [enum SelectMode] " "constants." msgstr "允许单选或多选。参阅[enum SelectMode]常量。" #: doc/classes/ItemList.xml msgid "" "Triggered when specified list item is activated via double-clicking or by " "pressing Enter." msgstr "当指定的列表项目通过双击或按Enter激活时触发。" #: doc/classes/ItemList.xml msgid "" "Triggered when specified list item has been selected via right mouse " "clicking.\n" "The click position is also provided to allow appropriate popup of context " "menus at the correct location.\n" "[member allow_rmb_select] must be enabled." msgstr "" "当指定的列表项目通过鼠标右键被选中时,会被触发。\n" "还提供了单击位置,以便在正确的位置恰当地弹出上下文菜单。\n" "必须启用 [member allow_rmb_select] 。" #: doc/classes/ItemList.xml msgid "" "Triggered when specified item has been selected.\n" "[member allow_reselect] must be enabled to reselect an item." msgstr "" "选择指定项目时触发。\n" "[member allow_reselect] 必须启用才能重新选择项目。" #: doc/classes/ItemList.xml msgid "" "Triggered when a multiple selection is altered on a list allowing multiple " "selection." msgstr "在允许多选的列表上更改多选时触发。" #: doc/classes/ItemList.xml msgid "" "Triggered when a left mouse click is issued within the rect of the list but " "on empty space." msgstr "当鼠标左键在列表的矩形(rect)范围内但在空白处单击时,会被触发。" #: doc/classes/ItemList.xml msgid "" "Triggered when a right mouse click is issued within the rect of the list but " "on empty space.\n" "[member allow_rmb_select] must be enabled." msgstr "" "当在列表的矩形(rect)范围内但在空白处单击鼠标右键时被触发。\n" "[member allow_rmb_select]必须被启用。" #: doc/classes/ItemList.xml msgid "Icon is drawn above the text." msgstr "图标绘制在文本上方。" #: doc/classes/ItemList.xml msgid "Icon is drawn to the left of the text." msgstr "图标绘制在文本的左侧。" #: doc/classes/ItemList.xml msgid "Only allow selecting a single item." msgstr "仅允许选择单个项目。" #: doc/classes/ItemList.xml msgid "Allows selecting multiple items by holding Ctrl or Shift." msgstr "允许通过按住Ctrl或Shift选择多个项目。" #: doc/classes/ItemList.xml doc/classes/Tree.xml msgid "Default text [Color] of the item." msgstr "项目的默认文本颜色 [Color]。" #: doc/classes/ItemList.xml doc/classes/Tree.xml msgid "Text [Color] used when the item is selected." msgstr "选择项目时使用的文本颜色[Color]。" #: doc/classes/ItemList.xml msgid "" "[Color] of the guideline. The guideline is a line drawn between each row of " "items." msgstr "指导线的颜色[Color]。指导线是在每行项目之间画的一条线。" #: doc/classes/ItemList.xml msgid "The horizontal spacing between items." msgstr "项目菜单之间的水平间距。" #: doc/classes/ItemList.xml msgid "The spacing between item's icon and text." msgstr "项目菜单的图标和文本之间的间距。" #: doc/classes/ItemList.xml msgid "The vertical spacing between each line of text." msgstr "每行文字之间的行距。" #: doc/classes/ItemList.xml msgid "The vertical spacing between items." msgstr "项目菜单之间的垂直间距。" #: doc/classes/ItemList.xml doc/classes/Tree.xml msgid "[Font] of the item's text." msgstr "项目文本的字体 [Font] 。" #: doc/classes/ItemList.xml msgid "" "Default [StyleBox] for the [ItemList], i.e. used when the control is not " "being focused." msgstr "[ItemList] 的默认样式盒 [StyleBox],即在控件未获得焦点时使用。" #: doc/classes/ItemList.xml msgid "[StyleBox] used when the [ItemList] is being focused." msgstr "当[ItemList]被聚焦时使用的样式盒[StyleBox]。" #: doc/classes/ItemList.xml msgid "[StyleBox] used for the cursor, when the [ItemList] is being focused." msgstr "当[ItemList]被聚焦时,用于光标的样式盒[StyleBox]。" #: doc/classes/ItemList.xml msgid "" "[StyleBox] used for the cursor, when the [ItemList] is not being focused." msgstr "当[ItemList]没有被聚焦时,用于光标的样式盒[StyleBox]。" #: doc/classes/ItemList.xml msgid "" "[StyleBox] for the selected items, used when the [ItemList] is not being " "focused." msgstr "所选项的样式盒[StyleBox],当[ItemList]没有获得焦点时使用。" #: doc/classes/ItemList.xml msgid "" "[StyleBox] for the selected items, used when the [ItemList] is being focused." msgstr "所选项的样式盒[StyleBox],当[ItemList]没有获得焦点时使用。" #: doc/classes/JavaScript.xml msgid "" "Singleton that connects the engine with the browser's JavaScript context in " "HTML5 export." msgstr "在 HTML5 导出中将引擎与浏览器的 JavaScript 上下文连接的单例。" #: doc/classes/JavaScript.xml msgid "" "The JavaScript singleton is implemented only in the HTML5 export. It's used " "to access the browser's JavaScript context. This allows interaction with " "embedding pages or calling third-party JavaScript APIs.\n" "[b]Note:[/b] This singleton can be disabled at build-time to improve " "security. By default, the JavaScript singleton is enabled. Official export " "templates also have the JavaScript singleton enabled. See [url=$DOCS_URL/" "development/compiling/compiling_for_web.html]Compiling for the Web[/url] in " "the documentation for more information." msgstr "" "JavaScript 单例仅在 HTML5 导出中实现。它用于访问浏览器的 JavaScript 上下文。" "这允许与嵌入页面交互或调用第三方 JavaScript API。\n" "[b]注意:[/b]可以在构建时禁用此单例以提高安全性。默认情况下,启用 JavaScript " "单例。官方导出模板也启用了 JavaScript 单例。有关详细信息,请参阅文档中的 " "[url=$DOCS_URL/development/compiling/compiling_for_web.html]《为 Web 平台编" "译》[/url]。" #: doc/classes/JavaScript.xml msgid "" "Creates a reference to a script function that can be used as a callback by " "JavaScript. The reference must be kept until the callback happens, or it " "won't be called at all. See [JavaScriptObject] for usage." msgstr "" "创建脚本函数的引用,可以被JavaScript用作回调。这个引用必须保持到回调发生为" "止,否则它就不会被调用。使用方法参阅[JavaScriptObject]。" #: doc/classes/JavaScript.xml msgid "" "Creates a new JavaScript object using the [code]new[/code] constructor. The " "[code]object[/code] must a valid property of the JavaScript [code]window[/" "code]. See [JavaScriptObject] for usage." msgstr "" "使用[code]new[/code]构造函数创建新的JavaScript对象。[code]object[/code]必须是" "JavaScript[code]window[/code]的有效属性。使用方法参阅[JavaScriptObject]。" #: doc/classes/JavaScript.xml msgid "" "Prompts the user to download a file containing the specified [code]buffer[/" "code]. The file will have the given [code]name[/code] and [code]mime[/code] " "type.\n" "[b]Note:[/b] The browser may override the [url=https://en.wikipedia.org/wiki/" "Media_type]MIME type[/url] provided based on the file [code]name[/code]'s " "extension.\n" "[b]Note:[/b] Browsers might block the download if [method download_buffer] " "is not being called from a user interaction (e.g. button click).\n" "[b]Note:[/b] Browsers might ask the user for permission or block the " "download if multiple download requests are made in a quick succession." msgstr "" "提示用户下载一个包含指定[code]buffer[/code]缓冲区的文件。该文件将具有给定的" "[code]name[/code]和[code]mime[/code]类型。\n" "[b]注意:[/b]浏览器可能会根据文件[code]name[/code]的扩展名,覆盖所提供的" "[url=https://en.wikipedia.org/wiki/Media_type]MIME类型[/url]。\n" "[b]注意:[/b]如果[method download_buffer]不是由用户交互调用,如点击按钮,浏览" "器可能会阻止下载。\n" "[b]注意:[/b]如果快速连续提出多个下载请求,浏览器可能会要求用户同意或阻止下" "载。" #: doc/classes/JavaScript.xml msgid "" "Execute the string [code]code[/code] as JavaScript code within the browser " "window. This is a call to the actual global JavaScript function [code]eval()" "[/code].\n" "If [code]use_global_execution_context[/code] is [code]true[/code], the code " "will be evaluated in the global execution context. Otherwise, it is " "evaluated in the execution context of a function within the engine's runtime " "environment." msgstr "" "在浏览器窗口中执行字符串[code]code[/code]作为JavaScript代码。这是对实际的全局" "JavaScript函数[code]eval()[/code]的调用。\n" "如果[code]use_global_execution_context[/code]是[code]true[/code],代码将在全" "局执行环境中被求值。否则,它将在引擎运行时环境中函数的执行上下文中进行求值。" #: doc/classes/JavaScript.xml msgid "" "Returns an interface to a JavaScript object that can be used by scripts. The " "[code]interface[/code] must be a valid property of the JavaScript " "[code]window[/code]. The callback must accept a single [Array] argument, " "which will contain the JavaScript [code]arguments[/code]. See " "[JavaScriptObject] for usage." msgstr "" "返回可以被脚本使用的JavaScript对象的接口。这个[code]interface[/code]必须是" "JavaScript[code]window[/code]的一个有效属性。回调必须接受一个[Array]参数,它" "将包含JavaScript [code]arguments[/code]。参阅[JavaScriptObject]的用法。" #: doc/classes/JavaScript.xml msgid "" "Returns [code]true[/code] if a new version of the progressive web app is " "waiting to be activated.\n" "[b]Note:[/b] Only relevant when exported as a Progressive Web App." msgstr "" "如果该渐进式网络应用程序有新版本等待激活,则返回 [code]true[/code]。\n" "[b]注意:[/b]只在导出为渐进式网络应用程序(Progressive Web App)时相关。" #: doc/classes/JavaScript.xml msgid "" "Performs the live update of the progressive web app. Forcing the new version " "to be installed and the page to be reloaded.\n" "[b]Note:[/b] Your application will be [b]reloaded in all browser tabs[/b].\n" "[b]Note:[/b] Only relevant when exported as a Progressive Web App and " "[method pwa_needs_update] returns [code]true[/code]." msgstr "" "执行该渐进式网络应用程序的在线更新。强制安装新版本并重新载入该页面。\n" "[b]注意:[/b]你的应用程序将[b]在所有浏览器标签页中重新载入[/b]。\n" "[b]注意:[/b]只在导出为渐进式网络应用程序(Progressive Web App)且 [method " "pwa_needs_update] 返回 [code]true[/code] 时相关。" #: doc/classes/JavaScript.xml msgid "" "Emitted when an update for this progressive web app has been detected but is " "waiting to be activated because a previous version is active. See [method " "pwa_update] to force the update to take place immediately." msgstr "" "在检测到该渐进式网络应用程序的更新,但因为存在活动的较早版本而等待激活时触" "发。要强制立即执行更新,请参阅 [method pwa_update]。" #: doc/classes/JavaScriptObject.xml msgid "A wrapper class for native JavaScript objects." msgstr "原生 JavaScript 对象的封装类。" #: doc/classes/JavaScriptObject.xml msgid "" "JavaScriptObject is used to interact with JavaScript objects retrieved or " "created via [method JavaScript.get_interface], [method JavaScript." "create_object], or [method JavaScript.create_callback].\n" "Example:\n" "[codeblock]\n" "extends Node\n" "\n" "var _my_js_callback = JavaScript.create_callback(self, \"myCallback\") # " "This reference must be kept\n" "var console = JavaScript.get_interface(\"console\")\n" "\n" "func _init():\n" " var buf = JavaScript.create_object(\"ArrayBuffer\", 10) # new " "ArrayBuffer(10)\n" " print(buf) # prints [JavaScriptObject:OBJECT_ID]\n" " var uint8arr = JavaScript.create_object(\"Uint8Array\", buf) # new " "Uint8Array(buf)\n" " uint8arr[1] = 255\n" " prints(uint8arr[1], uint8arr.byteLength) # prints 255 10\n" " console.log(uint8arr) # prints in browser console \"Uint8Array(10) [ 0, " "255, 0, 0, 0, 0, 0, 0, 0, 0 ]\"\n" "\n" " # Equivalent of JavaScript: Array.from(uint8arr).forEach(myCallback)\n" " JavaScript.get_interface(\"Array\").from(uint8arr)." "forEach(_my_js_callback)\n" "\n" "func myCallback(args):\n" " # Will be called with the parameters passed to the \"forEach\" callback\n" " # [0, 0, [JavaScriptObject:1173]]\n" " # [255, 1, [JavaScriptObject:1173]]\n" " # ...\n" " # [0, 9, [JavaScriptObject:1180]]\n" " print(args)\n" "[/codeblock]\n" "[b]Note:[/b] Only available in the HTML5 platform." msgstr "" "JavaScriptObject用于与通过[method JavaScript.get_interface]、[method " "JavaScript.create_object]或[method JavaScript.create_callback]检索或创建的" "JavaScript对象交互。\n" "例:\n" "[codeblock]\n" "extends Node\n" "\n" "var _my_js_callback = JavaScript.create_callback(self, \"myCallback\") # " "This reference must be kept\n" "var console = JavaScript.get_interface(\"console\")\n" "\n" "func _init():\n" " var buf = JavaScript.create_object(\"ArrayBuffer\", 10) # new " "ArrayBuffer(10)\n" " print(buf) # prints [JavaScriptObject:OBJECT_ID]\n" " var uint8arr = JavaScript.create_object(\"Uint8Array\", buf) # new " "Uint8Array(buf)\n" " uint8arr[1] = 255\n" " prints(uint8arr[1], uint8arr.byteLength) # prints 255 10\n" " console.log(uint8arr) # prints in browser console \"Uint8Array(10) [ 0, " "255, 0, 0, 0, 0, 0, 0, 0, 0 ]\"\n" "\n" " # Equivalent of JavaScript: Array.from(uint8arr).forEach(myCallback)\n" " JavaScript.get_interface(\"Array\").from(uint8arr)." "forEach(_my_js_callback)\n" "\n" "func myCallback(args):\n" " # Will be called with the parameters passed to the \"forEach\" callback\n" " # [0, 0, [JavaScriptObject:1173]]\n" " # [255, 1, [JavaScriptObject:1173]]\n" " # ...\n" " # [0, 9, [JavaScriptObject:1180]]\n" " print(args)\n" "[/codeblock]\n" "[b]注意:[/b]只在HTML5平台上可用。" #: doc/classes/JNISingleton.xml msgid "" "Singleton that connects the engine with Android plugins to interface with " "native Android code." msgstr "将引擎与 Android 插件连接起来以与原生 Android 代码交互的单例。" #: doc/classes/JNISingleton.xml msgid "" "The JNISingleton is implemented only in the Android export. It's used to " "call methods and connect signals from an Android plugin written in Java or " "Kotlin. Methods and signals can be called and connected to the JNISingleton " "as if it is a Node. See [url=https://en.wikipedia.org/wiki/" "Java_Native_Interface]Java Native Interface - Wikipedia[/url] for more " "information." msgstr "" "JNISingleton 仅在 Android 导出中实现。它用于从用 Java 或 Kotlin 编写的 " "Android 插件调用方法、连接信号。方法和信号可以被调用并连接到 JNISingleton,就" "好像它是一个 Node 一样。有关更多信息,请参阅 [url=https://zh.wikipedia.org/" "zh-cn/Java%E6%9C%AC%E5%9C%B0%E6%8E%A5%E5%8F%A3]Java 本地接口 - 维基百科[/" "url]。" #: doc/classes/JNISingleton.xml msgid "Creating Android plugins" msgstr "创建 Android 插件" #: doc/classes/Joint.xml msgid "Base class for all 3D joints." msgstr "所有3D关节的基类。" #: doc/classes/Joint.xml msgid "" "Joints are used to bind together two physics bodies. They have a solver " "priority and can define if the bodies of the two attached nodes should be " "able to collide with each other." msgstr "" "关节用于将两个物理体结合在一起。它们具有解算器优先级,可以定义两个附加节点的" "主体是否能够相互碰撞。" #: doc/classes/Joint.xml doc/classes/RigidBody.xml doc/classes/VehicleBody.xml #: doc/classes/VehicleWheel.xml msgid "3D Truck Town Demo" msgstr "3D 货车镇演示" #: doc/classes/Joint.xml msgid "" "If [code]true[/code], the two bodies of the nodes are not able to collide " "with each other." msgstr "如果 [code]true[/code],则节点的两个主体无法相互碰撞。" #: doc/classes/Joint.xml msgid "The node attached to the first side (A) of the joint." msgstr "连接到关节第一侧(A)的节点。" #: doc/classes/Joint.xml msgid "The node attached to the second side (B) of the joint." msgstr "连接到关节第二侧(B)的节点。" #: doc/classes/Joint.xml msgid "" "The priority used to define which solver is executed first for multiple " "joints. The lower the value, the higher the priority." msgstr "" "用于定义哪个解算器在多个关节中被首先执行的优先级。数值越低,优先级越高。" #: doc/classes/Joint2D.xml msgid "Base node for all joint constraints in 2D physics." msgstr "2D 物理中所有关节约束的基础节点。" #: doc/classes/Joint2D.xml msgid "" "Base node for all joint constraints in 2D physics. Joints take 2 bodies and " "apply a custom constraint." msgstr "2D 物理中所有关节约束的基础节点。关节采用 2 个实体并应用自定义约束。" #: doc/classes/Joint2D.xml msgid "" "When [member node_a] and [member node_b] move in different directions the " "[code]bias[/code] controls how fast the joint pulls them back to their " "original position. The lower the [code]bias[/code] the more the two bodies " "can pull on the joint." msgstr "" "当 [member node_a] 和 [member node_b] 向不同方向移动时,[code]bias[/code] 控" "制关节将它们拉回原始位置的所需时间。 [code]bias[/code] 越低,两个物体在关节上" "受到的拉力越大。" #: doc/classes/Joint2D.xml msgid "" "If [code]true[/code], [member node_a] and [member node_b] can not collide." msgstr "如果为 [code]true[/code],[member node_a]和[member node_b]不能碰撞。" #: doc/classes/Joint2D.xml msgid "The first body attached to the joint. Must derive from [PhysicsBody2D]." msgstr "连接到关节的第一个实体。必须继承自 [PhysicsBody2D] 。" #: doc/classes/Joint2D.xml msgid "" "The second body attached to the joint. Must derive from [PhysicsBody2D]." msgstr "连接到关节的第二实体。必须继承自 [PhysicsBody2D]。" #: doc/classes/JSON.xml msgid "Helper class for parsing JSON data." msgstr "用于解析 JSON 数据的辅助类。" #: doc/classes/JSON.xml msgid "" "Helper class for parsing JSON data. For usage example and other important " "hints, see [JSONParseResult]." msgstr "" "用于解析 JSON 数据的辅助类。关于使用实例和其他重要提示,请参阅 " "[JSONParseResult]。" #: doc/classes/JSON.xml msgid "" "Parses a JSON-encoded string and returns a [JSONParseResult] containing the " "result." msgstr "解析 JSON 编码的字符串并返回包含结果的 [JSONParseResult]。" #: doc/classes/JSON.xml msgid "" "Converts a [Variant] var to JSON text and returns the result. Useful for " "serializing data to store or send over the network.\n" "[b]Note:[/b] The JSON specification does not define integer or float types, " "but only a [i]number[/i] type. Therefore, converting a Variant to JSON text " "will convert all numerical values to [float] types.\n" "The [code]indent[/code] parameter controls if and how something is indented, " "the string used for this parameter will be used where there should be an " "indent in the output, even spaces like [code]\" \"[/code] will work. " "[code]\\t[/code] and [code]\\n[/code] can also be used for a tab indent, or " "to make a newline for each indent respectively.\n" "[b]Example output:[/b]\n" "[codeblock]\n" "## JSON.print(my_dictionary)\n" "{\"name\":\"my_dictionary\",\"version\":\"1.0.0\",\"entities\":[{\"name\":" "\"entity_0\",\"value\":\"value_0\"},{\"name\":\"entity_1\",\"value\":" "\"value_1\"}]}\n" "\n" "## JSON.print(my_dictionary, \"\\t\")\n" "{\n" " \"name\": \"my_dictionary\",\n" " \"version\": \"1.0.0\",\n" " \"entities\": [\n" " {\n" " \"name\": \"entity_0\",\n" " \"value\": \"value_0\"\n" " },\n" " {\n" " \"name\": \"entity_1\",\n" " \"value\": \"value_1\"\n" " }\n" " ]\n" "}\n" "\n" "## JSON.print(my_dictionary, \"...\")\n" "{\n" "...\"name\": \"my_dictionary\",\n" "...\"version\": \"1.0.0\",\n" "...\"entities\": [\n" "......{\n" ".........\"name\": \"entity_0\",\n" ".........\"value\": \"value_0\"\n" "......},\n" "......{\n" ".........\"name\": \"entity_1\",\n" ".........\"value\": \"value_1\"\n" "......}\n" "...]\n" "}\n" "[/codeblock]" msgstr "" "将 [Variant] 变量转换为 JSON 文本并返回结果。可用于将数据进行序列化保存或通过" "网络发送。\n" "[b]注意:[/b]JSON 规范没有定义整数和浮点数类型,只有一个[i]数字[/i]类型。因" "此,将 Variant 转换为 JSON 文本会将所有数字值转换为 [float] 类型。\n" "参数 [code]indent[/code] 控制是否以及如何缩进,输出时需要进行一级缩进时会使用" "该字符串参数,甚至可以使用空格 [code]\" \"[/code]。也可以使用 [code]\\t[/" "code] 和 [code]\\n[/code] 来进行制表符缩进,或者将每次缩进转换为换行。\n" "[b]示例输出:[/b]\n" "[codeblock]\n" "## JSON.print(my_dictionary)\n" "{\"name\":\"my_dictionary\",\"version\":\"1.0.0\",\"entities\":[{\"name\":" "\"entity_0\",\"value\":\"value_0\"},{\"name\":\"entity_1\",\"value\":" "\"value_1\"}]}\n" "\n" "## JSON.print(my_dictionary, \"\\t\")\n" "{\n" " \"name\": \"my_dictionary\",\n" " \"version\": \"1.0.0\",\n" " \"entities\": [\n" " {\n" " \"name\": \"entity_0\",\n" " \"value\": \"value_0\"\n" " },\n" " {\n" " \"name\": \"entity_1\",\n" " \"value\": \"value_1\"\n" " }\n" " ]\n" "}\n" "\n" "## JSON.print(my_dictionary, \"...\")\n" "{\n" "...\"name\": \"my_dictionary\",\n" "...\"version\": \"1.0.0\",\n" "...\"entities\": [\n" "......{\n" ".........\"name\": \"entity_0\",\n" ".........\"value\": \"value_0\"\n" "......},\n" "......{\n" ".........\"name\": \"entity_1\",\n" ".........\"value\": \"value_1\"\n" "......}\n" "...]\n" "}\n" "[/codeblock]" #: doc/classes/JSONParseResult.xml msgid "Data class wrapper for decoded JSON." msgstr "解码 JSON 得到的数据类封装。" #: doc/classes/JSONParseResult.xml msgid "" "Returned by [method JSON.parse], [JSONParseResult] contains the decoded JSON " "or error information if the JSON source wasn't successfully parsed. You can " "check if the JSON source was successfully parsed with [code]if json_result." "error == OK[/code]." msgstr "" "由 [method JSON.parse] 返回,[JSONParseResult] 包含解码得到的 JSON,如果未成" "功解析 JSON 源则为错误信息。你可以用 [code]if json_result.error == OK[/code] " "检查 JSON 源是否被成功解析。" #: doc/classes/JSONParseResult.xml msgid "" "The error type if the JSON source was not successfully parsed. See the [enum " "Error] constants." msgstr "未成功解析 JSON 源时的错误类型。请参阅 [enum Error] 常量。" #: doc/classes/JSONParseResult.xml msgid "" "The line number where the error occurred if the JSON source was not " "successfully parsed." msgstr "如果 JSON 源没有被成功解析,返回发生错误的行号。" #: doc/classes/JSONParseResult.xml msgid "" "The error message if the JSON source was not successfully parsed. See the " "[enum Error] constants." msgstr "未成功解析 JSON 源时的错误消息。请参阅 [enum Error] 常量。" #: doc/classes/JSONParseResult.xml msgid "" "A [Variant] containing the parsed JSON. Use [method @GDScript.typeof] or the " "[code]is[/code] keyword to check if it is what you expect. For example, if " "the JSON source starts with curly braces ([code]{}[/code]), a [Dictionary] " "will be returned. If the JSON source starts with brackets ([code][][/code]), " "an [Array] will be returned.\n" "[b]Note:[/b] The JSON specification does not define integer or float types, " "but only a [i]number[/i] type. Therefore, parsing a JSON text will convert " "all numerical values to [float] types.\n" "[b]Note:[/b] JSON objects do not preserve key order like Godot dictionaries, " "thus, you should not rely on keys being in a certain order if a dictionary " "is constructed from JSON. In contrast, JSON arrays retain the order of their " "elements:\n" "[codeblock]\n" "var p = JSON.parse('[\"hello\", \"world\", \"!\"]')\n" "if typeof(p.result) == TYPE_ARRAY:\n" " print(p.result[0]) # Prints \"hello\"\n" "else:\n" " push_error(\"Unexpected results.\")\n" "[/codeblock]" msgstr "" "包含解析过 JSON 的变量 [Variant]。使用 [method @GDScript.typeof] 或 " "[code]is[/code] 关键字来检查它是否是你期望的。例如,如果 JSON 源以花括号开始" "([code]{}[/code]),将返回一个字典 [Dictionary]。如果 JSON 源以方括号开始" "([code][][/code]),将返回一个数组 [Array]。\n" "[b]注意:[/b]JSON 规范没有定义整数或浮点数类型,只有一个[i]数字[/i]类型。因" "此,解析 JSON 文本将把所有的数字值转换为 [float] 类型。\n" "[b]注意:[/b]JSON 对象不像 Godot 字典那样保留键的顺序,因此,如果一个字典是" "由 JSON 构建的,你不应该依赖键是按一定顺序的。与此相反,JSON 数组保留其元素的" "顺序。\n" "[codeblock]\n" "var p = JSON.parse('[\"hello\", \"world\", \"!\"]' )\n" "if typeof(p.result) == TYPE_ARRAY:\n" " print(p.result[0]) # 打印 \"hello\"\n" "else:\n" " push_error(\"出乎意料的结果。\")\n" "[/codeblock]" #: doc/classes/JSONRPC.xml msgid "A helper to handle dictionaries which look like JSONRPC documents." msgstr "用于处理看起来像 JSONRPC 文档的字典的辅助类。" #: doc/classes/JSONRPC.xml msgid "" "[url=https://www.jsonrpc.org/]JSON-RPC[/url] is a standard which wraps a " "method call in a [JSON] object. The object has a particular structure and " "identifies which method is called, the parameters to that function, and " "carries an ID to keep track of responses. This class implements that " "standard on top of [Dictionary]; you will have to convert between a " "[Dictionary] and [JSON] with other functions." msgstr "" "[url=https://www.jsonrpc.org/]JSON-RPC[/url]是一个标准,它将一个方法调用包装" "在一个[JSON]对象中。该对象有一个特定的结构,并标识出哪个方法被调用,该函数的" "参数,并携带一个ID来跟踪响应。这个类在[Dictionary]之上实现了该标准;你必须用" "其他函数在[Dictionary]和[JSON]之间进行转换。" #: doc/classes/JSONRPC.xml msgid "" "Returns a dictionary in the form of a JSON-RPC notification. Notifications " "are one-shot messages which do not expect a response.\n" "- [code]method[/code]: Name of the method being called.\n" "- [code]params[/code]: An array or dictionary of parameters being passed to " "the method." msgstr "" "返回JSON-RPC通知形式的字典。通知是一次性的信息,不需要有响应。\n" "- [code]method[/code]:被调用的方法的名称。\n" "- [code]params[/code]:传递给该方法的参数的数组或字典。" #: doc/classes/JSONRPC.xml msgid "" "Returns a dictionary in the form of a JSON-RPC request. Requests are sent to " "a server with the expectation of a response. The ID field is used for the " "server to specify which exact request it is responding to.\n" "- [code]method[/code]: Name of the method being called.\n" "- [code]params[/code]: An array or dictionary of parameters being passed to " "the method.\n" "- [code]id[/code]: Uniquely identifies this request. The server is expected " "to send a response with the same ID." msgstr "" "以JSON-RPC请求的形式返回字典。请求被发送到服务器,并期望得到响应。ID 字段用于" "服务器指定它正在响应的确切请求。\n" "- [code]method[/code]:被调用的方法的名称。\n" "- [code]params[/code]:传递给该方法的参数的数组或字典。\n" "- [code]id[/code]:唯一标识此请求。服务器应发送具有相同 ID 的响应。" #: doc/classes/JSONRPC.xml msgid "" "When a server has received and processed a request, it is expected to send a " "response. If you did not want a response then you need to have sent a " "Notification instead.\n" "- [code]result[/code]: The return value of the function which was called.\n" "- [code]id[/code]: The ID of the request this response is targeted to." msgstr "" "当服务器接收并处理请求时,它应该发送响应。如果你不想要回复,那么你需要发送通" "知。\n" "- [code]result[/code]:被调用函数的返回值。\n" "- [code]id[/code]:此响应针对的请求的 ID。" #: doc/classes/JSONRPC.xml msgid "" "Creates a response which indicates a previous reply has failed in some way.\n" "- [code]code[/code]: The error code corresponding to what kind of error this " "is. See the [enum ErrorCode] constants.\n" "- [code]message[/code]: A custom message about this error.\n" "- [code]id[/code]: The request this error is a response to." msgstr "" "创建响应,指示先前的回复以某种方式失败。\n" "- [code]code[/code]:这是哪种错误对应的错误代码。参阅 [enum ErrorCode] 常" "量。\n" "- [code]message[/code]:关于此错误的自定义消息。\n" "- [code]id[/code]:这个错误是对请求的响应。" #: doc/classes/JSONRPC.xml msgid "" "Given a Dictionary which takes the form of a JSON-RPC request: unpack the " "request and run it. Methods are resolved by looking at the field called " "\"method\" and looking for an equivalently named function in the JSONRPC " "object. If one is found that method is called.\n" "To add new supported methods extend the JSONRPC class and call [method " "process_action] on your subclass.\n" "[code]action[/code]: The action to be run, as a Dictionary in the form of a " "JSON-RPC request or notification." msgstr "" "给定采用 JSON-RPC 请求形式的字典:解压请求并运行它。通过查看名为 \"method\" " "的字段并在 JSONRPC 对象中查找等效命名的函数来解析方法。如果找到,则调用该方" "法。\n" "要添加新的受支持方法,请扩展 JSONRPC 类并在你的子类上调用 [method " "process_action]。\n" "[code]action[/code]:要运行的动作,作为 JSON-RPC 请求或通知形式的字典。" #: doc/classes/JSONRPC.xml msgid "" "A method call was requested but no function of that name existed in the " "JSONRPC subclass." msgstr "请求了方法调用,但 JSONRPC 子类中不存在该名称的函数。" #: doc/classes/KinematicBody.xml msgid "Kinematic body 3D node." msgstr "3D 运动学物体节点。" #: doc/classes/KinematicBody.xml msgid "" "Kinematic bodies are special types of bodies that are meant to be user-" "controlled. They are not affected by physics at all; to other types of " "bodies, such as a character or a rigid body, these are the same as a static " "body. However, they have two main uses:\n" "[b]Simulated motion:[/b] When these bodies are moved manually, either from " "code or from an [AnimationPlayer] (with [member AnimationPlayer." "playback_process_mode] set to \"physics\"), the physics will automatically " "compute an estimate of their linear and angular velocity. This makes them " "very useful for moving platforms or other AnimationPlayer-controlled objects " "(like a door, a bridge that opens, etc).\n" "[b]Kinematic characters:[/b] KinematicBody also has an API for moving " "objects (the [method move_and_collide] and [method move_and_slide] methods) " "while performing collision tests. This makes them really useful to implement " "characters that collide against a world, but don't require advanced physics." msgstr "" "运动体是特殊类型的物体,指在让用户控制。它们完全不受物理影响;对于其他类型的" "物体,如角色或刚体,它们与静态体是一样的。然而,它们有两个主要用途。\n" "[b]模拟运动:[/b]当这些物体被手动移动时,无论是从代码还是从 [AnimationPlayer]" "(将 [member AnimationPlayer.playback_process_mode] 设置为“physics”),物理将" "自动估算其线性和角速度。这使得它们对于移动平台或其他 AnimationPlayer 控制的物" "体非常有用,比如门、能打开的桥等。\n" "[b]运动学角色:[/b]除了可以执行碰撞检测之外,KinematicBody 也有用于移动对象" "的 API([method move_and_collide] 和 [method move_and_slide] 方法)。这使得它" "们在实现对世界进行碰撞,但不需要高级物理的角色时非常有用。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "Kinematic character (2D)" msgstr "运动学角色(2D)" #: doc/classes/KinematicBody.xml msgid "" "Returns [code]true[/code] if the specified [code]axis[/code] is locked. See " "also [member move_lock_x], [member move_lock_y] and [member move_lock_z]." msgstr "" "如果指定的轴 [code]axis[/code] 被锁定,则返回 [code]true[/code]。请参阅 " "[member move_lock_x]、[member move_lock_y]、[member move_lock_z]。" #: doc/classes/KinematicBody.xml msgid "" "Returns the floor's collision angle at the last collision point according to " "[code]up_direction[/code], which is [code]Vector3.UP[/code] by default. This " "value is always positive and only valid after calling [method " "move_and_slide] and when [method is_on_floor] returns [code]true[/code]." msgstr "" "根据[code]up_direction[/code]返回最后一个碰撞点的地板碰撞角度,默认为" "[code]Vector3.UP[/code]。此值始终为正值,并且仅在调用 [method " "move_and_slide] 后且当 [method is_on_floor] 返回 [code]true[/code] 时有效。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Returns the surface normal of the floor at the last collision point. Only " "valid after calling [method move_and_slide] or [method " "move_and_slide_with_snap] and when [method is_on_floor] returns [code]true[/" "code]." msgstr "" "返回最后一个碰撞点的地板的表面法线。只有在调用[method move_and_slide]或" "[method move_and_slide_with_snap]后,以及[method is_on_floor]返回 " "[code]true[/code] 时才有效。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Returns the linear velocity of the floor at the last collision point. Only " "valid after calling [method move_and_slide] or [method " "move_and_slide_with_snap] and when [method is_on_floor] returns [code]true[/" "code]." msgstr "" "返回最后一个碰撞点地板的线速度。仅在调用 [method move_and_slide] 或 [method " "move_and_slide_with_snap] 且 [method is_on_floor] 返回 [code]true[/code] 后有" "效。" #: doc/classes/KinematicBody.xml msgid "" "Returns a [KinematicCollision], which contains information about the latest " "collision that occurred during the last call to [method move_and_slide]." msgstr "" "返回 [KinematicCollision],其中包含有关上次调用 [method move_and_slide] 期间" "发生的最新碰撞的信息。" #: doc/classes/KinematicBody.xml msgid "" "Returns a [KinematicCollision], which contains information about a collision " "that occurred during the last call to [method move_and_slide] or [method " "move_and_slide_with_snap]. Since the body can collide several times in a " "single call to [method move_and_slide], you must specify the index of the " "collision in the range 0 to ([method get_slide_count] - 1)." msgstr "" "返回 [KinematicCollision],其中包含有关上次调用 [method move_and_slide] 或 " "[method move_and_slide_with_snap] 期间发生的碰撞的信息。由于物体可以在一次调" "用 [method move_and_slide] 时发生多次碰撞,因此你必须在 0 到 ([method " "get_slide_count] - 1) 范围内指定碰撞的索引。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Returns the number of times the body collided and changed direction during " "the last call to [method move_and_slide] or [method " "move_and_slide_with_snap]." msgstr "" "返回上次调用 [method move_and_slide] 或 [method move_and_slide_with_snap] 期" "间物体发生碰撞和改变方向的次数。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Returns [code]true[/code] if the body collided with the ceiling on the last " "call of [method move_and_slide] or [method move_and_slide_with_snap]. " "Otherwise, returns [code]false[/code]." msgstr "" "如果在最后一次调用 [method move_and_slide] 或 [method " "move_and_slide_with_snap] 时物体与天花板发生碰撞,则返回 [code]true[/code]。" "否则,返回 [code]false[/code]。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Returns [code]true[/code] if the body collided with the floor on the last " "call of [method move_and_slide] or [method move_and_slide_with_snap]. " "Otherwise, returns [code]false[/code]." msgstr "" "如果在最后一次调用 [method move_and_slide] 或 [method " "move_and_slide_with_snap] 时物体与地板发生碰撞,则返回 [code]true[/code]。否" "则,返回 [code]false[/code]。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Returns [code]true[/code] if the body collided with a wall on the last call " "of [method move_and_slide] or [method move_and_slide_with_snap]. Otherwise, " "returns [code]false[/code]." msgstr "" "如果在最后一次调用 [method move_and_slide] 或 [method " "move_and_slide_with_snap] 时物体与墙壁发生碰撞,则返回 [code]true[/code]。否" "则,返回 [code]false[/code]。" #: doc/classes/KinematicBody.xml msgid "" "Moves the body along the vector [code]rel_vec[/code]. The body will stop if " "it collides. Returns a [KinematicCollision], which contains information " "about the collision when stopped, or when touching another body along the " "motion.\n" "If [code]test_only[/code] is [code]true[/code], the body does not move but " "the would-be collision information is given." msgstr "" "沿向量 [code]rel_vec[/code] 移动物体。如果发生碰撞,物体会停止。停止或在运动" "时与另一物体相接触时,返回包含碰撞相关信息的 [KinematicCollision]。\n" "如果 [code]test_only[/code] 为 [code]true[/code],则物体不会移动,但会给出可" "能发生的碰撞信息。" #: doc/classes/KinematicBody.xml msgid "" "Moves the body along a vector. If the body collides with another, it will " "slide along the other body rather than stop immediately. If the other body " "is a [KinematicBody] or [RigidBody], it will also be affected by the motion " "of the other body. You can use this to make moving and rotating platforms, " "or to make nodes push other nodes.\n" "This method should be used in [method Node._physics_process] (or in a method " "called by [method Node._physics_process]), as it uses the physics step's " "[code]delta[/code] value automatically in calculations. Otherwise, the " "simulation will run at an incorrect speed.\n" "[code]linear_velocity[/code] is the velocity vector (typically meters per " "second). Unlike in [method move_and_collide], you should [i]not[/i] multiply " "it by [code]delta[/code] — the physics engine handles applying the " "velocity.\n" "[code]up_direction[/code] is the up direction, used to determine what is a " "wall and what is a floor or a ceiling. If set to the default value of " "[code]Vector3(0, 0, 0)[/code], everything is considered a wall.\n" "If [code]stop_on_slope[/code] is [code]true[/code], body will not slide on " "slopes when you include gravity in [code]linear_velocity[/code] and the body " "is standing still.\n" "If the body collides, it will change direction a maximum of " "[code]max_slides[/code] times before it stops.\n" "[code]floor_max_angle[/code] is the maximum angle (in radians) where a slope " "is still considered a floor (or a ceiling), rather than a wall. The default " "value equals 45 degrees.\n" "If [code]infinite_inertia[/code] is [code]true[/code], body will be able to " "push [RigidBody] nodes, but it won't also detect any collisions with them. " "If [code]false[/code], it will interact with [RigidBody] nodes like with " "[StaticBody].\n" "Returns the [code]linear_velocity[/code] vector, rotated and/or scaled if a " "slide collision occurred. To get detailed information about collisions that " "occurred, use [method get_slide_collision].\n" "When the body touches a moving platform, the platform's velocity is " "automatically added to the body motion. If a collision occurs due to the " "platform's motion, it will always be first in the slide collisions." msgstr "" "沿着向量移动物体。如果这个物体与另一个物体相撞,它将沿着另一个物体滑动,而不" "是立即停止。如果另一个物体是[KinematicBody]或[RigidBody],它也会被另一个物体" "的运动所影响。你可以用它来制作移动和旋转的平台,或者让节点推动其他节点。\n" "这个方法应该在 [method Node._physics_process] 中使用,或者在被 [method Node." "_physics_process] 调用的方法中使用,因为它在计算时,自动使用物理步骤的 " "[code]delta[/code] 值。否则,模拟将以不正确的速度运行。\n" "[code]linear_velocity[/code] 是速度向量,通常是米/秒。与 [method " "move_and_collide] 不同的是,你[i]不应该[/i]把它乘以 [code]delta[/code]——物理" "引擎会处理应用速度。\n" "[code]up_direction[/code] 是向上的方向,用来确定什么是墙,什么是地板或天花" "板。如果设置为默认值 [code]Vector3(0, 0, 0)[/code],一切都被认为是墙。\n" "如果[code]stop_on_slope[/code]是[code]true[/code],当你在 " "[code]linear_velocity[/code] 中包含重力并且物体静止时,物体将不会在斜坡上滑" "动。\n" "如果物体发生碰撞,它最多会改变方向 [code]max_slides[/code] 次才会停止。\n" "[code]floor_max_angle[/code] 是一个最大的角度(弧度),在这个角度下,一个斜坡" "仍然被认为是地板或天花板,而不是墙壁。默认值等于45度。\n" "如果 [code]infinite_inertia[/code] 是 [code]true[/code],物体将能够推动 " "[RigidBody] 节点,但它也不会检测到任何与它们的碰撞。如果 [code]false[/code]," "它将与 [RigidBody] 节点像 [StaticBody] 一样交互。\n" "返回 [code]linear_velocity[/code] 向量,如果发生滑动碰撞,则返回的向量是经过" "了旋转和/或缩放的。要获得发生碰撞的详细信息,请使用 [method " "get_slide_collision]。\n" "当物体接触到一个移动的平台时,平台的速度会自动加入到物体的运动中。如果由于平" "台的运动而发生碰撞,它将始终是滑动碰撞中的第一个。" #: doc/classes/KinematicBody.xml msgid "" "Moves the body while keeping it attached to slopes. Similar to [method " "move_and_slide].\n" "As long as the [code]snap[/code] vector is in contact with the ground, the " "body will remain attached to the surface. This means you must disable snap " "in order to jump, for example. You can do this by setting [code]snap[/code] " "to [code](0, 0, 0)[/code] or by using [method move_and_slide] instead." msgstr "" "移动物体,其同时保持与斜坡的连接。类似于 [method move_and_slide]。\n" "只要 [code]snap[/code] 向量与地面接触,物体就会一直吸附在地面上。例如,这意味" "着你必须禁用 snap 才能进行跳跃。可以通过将 [code]snap[/code] 设置为 [code]" "(0, 0, 0)[/code] 来实现,也可以用 [method move_and_slide] 代替。" #: doc/classes/KinematicBody.xml msgid "" "Locks or unlocks the specified [code]axis[/code] depending on the value of " "[code]lock[/code]. See also [member move_lock_x], [member move_lock_y] and " "[member move_lock_z]." msgstr "" "根据[code]lock[/code]的值,锁定或解锁指定的[code]axis[/code]。参阅[member " "move_lock_x]、[member move_lock_y]和[member move_lock_z]。" #: doc/classes/KinematicBody.xml msgid "" "Checks for collisions without moving the body. Virtually sets the node's " "position, scale and rotation to that of the given [Transform], then tries to " "move the body along the vector [code]rel_vec[/code]. Returns [code]true[/" "code] if a collision would stop the body from moving along the whole path.\n" "Use [method move_and_collide] instead for detecting collision with touching " "bodies." msgstr "" "在不移动物体的情况下检查碰撞情况。假装将节点的位置、缩放和旋转设置为给定的 " "[Transform],然后尝试沿着向量 [code]rel_vec[/code] 移动物体。如果物体在沿着完" "整路径移动过程中会发生碰撞停止,则返回 [code]true[/code]。\n" "要检测物体接触而产生的碰撞,请使用 [method move_and_collide]。" #: doc/classes/KinematicBody.xml msgid "Lock the body's X axis movement." msgstr "锁定物体的X轴运动。" #: doc/classes/KinematicBody.xml msgid "Lock the body's Y axis movement." msgstr "锁定物体的Y轴运动。" #: doc/classes/KinematicBody.xml msgid "Lock the body's Z axis movement." msgstr "锁定物体的Z轴运动。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Extra margin used for collision recovery in motion functions (see [method " "move_and_collide], [method move_and_slide], [method " "move_and_slide_with_snap]).\n" "If the body is at least this close to another body, it will consider them to " "be colliding and will be pushed away before performing the actual motion.\n" "A higher value means it's more flexible for detecting collision, which helps " "with consistently detecting walls and floors.\n" "A lower value forces the collision algorithm to use more exact detection, so " "it can be used in cases that specifically require precision, e.g at very low " "scale to avoid visible jittering, or for stability with a stack of kinematic " "bodies." msgstr "" "在运动函数中用于碰撞恢复的额外边距,参阅 [method move_and_collide]、[method " "move_and_slide]、[method move_and_slide_with_snap]。\n" "如果物体离另一个物体至少这么近,它就会认为它们正在发生碰撞,并在执行实际运动" "之前被推开。\n" "一个较高的值意味着它在检测碰撞时更加灵活,这有助于持续检测墙壁和地板。\n" "一个较低的值迫使碰撞算法使用更精确的检测,所以它可以用于特别需要精确性的情" "况,例如在非常低的比例下避免可见的抖动,或者用于运动体堆叠的稳定性。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "If [code]true[/code], the body's movement will be synchronized to the " "physics frame. This is useful when animating movement via [AnimationPlayer], " "for example on moving platforms. Do [b]not[/b] use together with [method " "move_and_slide] or [method move_and_collide] functions." msgstr "" "如果为 [code]true[/code],则物体的运动将与物理帧同步。当通过[AnimationPlayer]" "为运动设置动画时,例如在移动平台上,这个功能很有用。请[b]不要[/b]与 [method " "move_and_slide] 或 [method move_and_collide] 函数一起使用。" #: doc/classes/KinematicBody.xml msgid "" "Lock the body's X axis movement. Deprecated alias for [member " "axis_lock_motion_x]." msgstr "锁定物体的X轴运动。已被废弃的[member axis_lock_motion_x]的别名。" #: doc/classes/KinematicBody.xml msgid "" "Lock the body's Y axis movement. Deprecated alias for [member " "axis_lock_motion_y]." msgstr "锁定物体的Y轴运动。已被废弃的[member axis_lock_motion_y]的别名。" #: doc/classes/KinematicBody.xml msgid "" "Lock the body's Z axis movement. Deprecated alias for [member " "axis_lock_motion_z]." msgstr "锁定物体的Z轴运动。已被废弃的[member axis_lock_motion_z]的别名。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Sets the behavior to apply when you leave a moving platform. By default, to " "be physically accurate, when you leave the last platform velocity is " "applied. See [enum MovingPlatformApplyVelocityOnLeave] constants for " "available behavior." msgstr "" "设置离开移动平台时要应用的行为。为了达到物理准确,默认会应用你离开的最后一个" "平台的速度。可用的行为请参阅 [enum MovingPlatformApplyVelocityOnLeave] 常量。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "Add the last platform velocity when you leave a moving platform." msgstr "离开移动平台时,追加最后一个平台的速度。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "" "Add the last platform velocity when you leave a moving platform, but any " "downward motion is ignored. It's useful to keep full jump height even when " "the platform is moving down." msgstr "" "离开移动平台时,追加最后一个平台的速度,但忽略向下的运动。可以用来在平台向下" "移动时也保持完整的跳跃高度。" #: doc/classes/KinematicBody.xml doc/classes/KinematicBody2D.xml msgid "Do nothing when leaving a platform." msgstr "离开平台时什么也不做。" #: doc/classes/KinematicBody2D.xml msgid "Kinematic body 2D node." msgstr "2D 运动体节点。" #: doc/classes/KinematicBody2D.xml msgid "" "Kinematic bodies are special types of bodies that are meant to be user-" "controlled. They are not affected by physics at all; to other types of " "bodies, such as a character or a rigid body, these are the same as a static " "body. However, they have two main uses:\n" "[b]Simulated motion:[/b] When these bodies are moved manually, either from " "code or from an [AnimationPlayer] (with [member AnimationPlayer." "playback_process_mode] set to \"physics\"), the physics will automatically " "compute an estimate of their linear and angular velocity. This makes them " "very useful for moving platforms or other AnimationPlayer-controlled objects " "(like a door, a bridge that opens, etc).\n" "[b]Kinematic characters:[/b] KinematicBody2D also has an API for moving " "objects (the [method move_and_collide] and [method move_and_slide] methods) " "while performing collision tests. This makes them really useful to implement " "characters that collide against a world, but don't require advanced physics." msgstr "" "运动体是特殊类型的物体,旨在让用户控制。它们完全不受物理影响;对于其他类型的" "物体,如角色或刚体,它们与静态体一样。然而,它们有两个主要用途:\n" "[b]模拟运动:[/b]当这些物体被手动移动时,无论是从代码还是从" "[AnimationPlayer],将[member AnimationPlayer.playback_process_mode]设置为 " "\"physics\",物理将自动计算其线性和角速度的估值。这使得它们对于移动平台或其他" "AnimationPlayer控制的物体非常有用,比如一扇门、一座能打开的桥等。\n" "[b]运动型角色:[/b] KinematicBody2D也有一个API用于移动物体([method " "move_and_collide]和[method move_and_slide]方法),同时进行碰撞测试。这使得它" "们在实现对世界进行碰撞,但不需要高级物理的角色时非常有用。" #: doc/classes/KinematicBody2D.xml msgid "Using KinematicBody2D" msgstr "使用 KinematicBody2D" #: doc/classes/KinematicBody2D.xml msgid "" "Returns the floor's collision angle at the last collision point according to " "[code]up_direction[/code], which is [code]Vector2.UP[/code] by default. This " "value is always positive and only valid after calling [method " "move_and_slide] and when [method is_on_floor] returns [code]true[/code]." msgstr "" "根据[code]up_direction[/code]返回最后一个碰撞点的地板碰撞角度,默认为" "[code]Vector2.UP[/code]。此值始终为正值,并且仅在调用 [method " "move_and_slide] 后且当 [method is_on_floor] 返回 [code]true[/code] 时有效。" #: doc/classes/KinematicBody2D.xml msgid "" "Returns a [KinematicCollision2D], which contains information about the " "latest collision that occurred during the last call to [method " "move_and_slide]." msgstr "" "返回[KinematicCollision2D],它包含在最后一次调用[method move_and_slide]时发生" "的最新碰撞信息。" #: doc/classes/KinematicBody2D.xml msgid "" "Returns a [KinematicCollision2D], which contains information about a " "collision that occurred during the last call to [method move_and_slide] or " "[method move_and_slide_with_snap]. Since the body can collide several times " "in a single call to [method move_and_slide], you must specify the index of " "the collision in the range 0 to ([method get_slide_count] - 1).\n" "[b]Example usage:[/b]\n" "[codeblock]\n" "for i in get_slide_count():\n" " var collision = get_slide_collision(i)\n" " print(\"Collided with: \", collision.collider.name)\n" "[/codeblock]" msgstr "" "返回 [KinematicCollision2D],其中包含有关上次调用 [method move_and_slide] 或 " "[method move_and_slide_with_snap] 期间发生的碰撞的信息。由于物体可以在一次调" "用 [method move_and_slide] 时发生多次碰撞,因此你必须在 0 到 ([method " "get_slide_count] - 1) 范围内指定碰撞的索引。\n" "[b]用法示例:[/b]\n" "[codeblock]\n" "for i in get_slide_count():\n" " var collision = get_slide_collision(i)\n" " print(\"Collided with: \", collision.collider.name)\n" "[/codeblock]" #: doc/classes/KinematicBody2D.xml msgid "" "Moves the body along the vector [code]rel_vec[/code]. The body will stop if " "it collides. Returns a [KinematicCollision2D], which contains information " "about the collision when stopped, or when touching another body along the " "motion.\n" "If [code]test_only[/code] is [code]true[/code], the body does not move but " "the would-be collision information is given." msgstr "" "沿着向量 [code]rel_vec[/code] 移动物体。如果发生碰撞,物体将停止。停止或在运" "动时与另一物体相接触时,返回包含碰撞相关信息的 [KinematicCollision]。\n" "如果 [code]test_only[/code] 为 [code]true[/code],则物体不会移动,但会给出可" "能发生的碰撞信息。" #: doc/classes/KinematicBody2D.xml msgid "" "Moves the body along a vector. If the body collides with another, it will " "slide along the other body rather than stop immediately. If the other body " "is a [KinematicBody2D] or [RigidBody2D], it will also be affected by the " "motion of the other body. You can use this to make moving and rotating " "platforms, or to make nodes push other nodes.\n" "This method should be used in [method Node._physics_process] (or in a method " "called by [method Node._physics_process]), as it uses the physics step's " "[code]delta[/code] value automatically in calculations. Otherwise, the " "simulation will run at an incorrect speed.\n" "[code]linear_velocity[/code] is the velocity vector in pixels per second. " "Unlike in [method move_and_collide], you should [i]not[/i] multiply it by " "[code]delta[/code] — the physics engine handles applying the velocity.\n" "[code]up_direction[/code] is the up direction, used to determine what is a " "wall and what is a floor or a ceiling. If set to the default value of " "[code]Vector2(0, 0)[/code], everything is considered a wall. This is useful " "for topdown games.\n" "If [code]stop_on_slope[/code] is [code]true[/code], body will not slide on " "slopes when you include gravity in [code]linear_velocity[/code] and the body " "is standing still.\n" "If the body collides, it will change direction a maximum of " "[code]max_slides[/code] times before it stops.\n" "[code]floor_max_angle[/code] is the maximum angle (in radians) where a slope " "is still considered a floor (or a ceiling), rather than a wall. The default " "value equals 45 degrees.\n" "If [code]infinite_inertia[/code] is [code]true[/code], body will be able to " "push [RigidBody2D] nodes, but it won't also detect any collisions with them. " "If [code]false[/code], it will interact with [RigidBody2D] nodes like with " "[StaticBody2D].\n" "Returns the [code]linear_velocity[/code] vector, rotated and/or scaled if a " "slide collision occurred. To get detailed information about collisions that " "occurred, use [method get_slide_collision].\n" "When the body touches a moving platform, the platform's velocity is " "automatically added to the body motion. If a collision occurs due to the " "platform's motion, it will always be first in the slide collisions." msgstr "" "沿着向量移动物体。如果这个物体与另一个物体相撞,它将沿着另一个物体滑动,而不" "是立即停止。如果另一个物体是 [KinematicBody2D] 或 [RigidBody2D],它也会被另一" "个物体的运动所影响。你可以用它来制作移动和旋转的平台,或者让节点推动其他节" "点。\n" "这个方法应该在 [method Node._physics_process] 中使用,或者在被 [method Node." "_physics_process] 调用的方法中使用,因为它在计算时自动使用物理步骤的 " "[code]delta[/code] 值。否则,模拟将以不正确的速度运行。\n" "[code]linear_velocity[/code] 是速度向量,单位是像素每秒。与 [method " "move_and_collide] 不同的是,你[i]不应该[/i]将它乘以 [code]delta[/code]——物理" "引擎会处理应用速度。\n" "[code]up_direction[/code] 是向上的方向,用来确定什么是墙,什么是地板或天花" "板。如果设置为默认值 [code]Vector2(0, 0)[/code],一切都被认为是墙。这对于俯视" "角的游戏很有用。\n" "如果 [code]stop_on_slope[/code] 是 [code]true[/code],当你在 " "[code]linear_velocity[/code] 中包含重力并且物体静止时,物体就不会在斜坡上滑" "动。\n" "如果物体发生碰撞,它最多会改变方向 [code]max_slides[/code] 次才会停止。\n" "[code]floor_max_angle[/code] 是一个最大的角度(弧度),在这个角度下,一个斜坡" "仍然被认为是地板或天花板,而不是墙。默认值等于45度。\n" "如果 [code]infinite_inertia[/code] 是 [code]true[/code],物体将能够推动 " "[RigidBody2D] 节点,但它也不会检测到任何与它们的碰撞。如果 [code]false[/" "code],它将与 [RigidBody2D] 节点像 [StaticBody2D] 一样交互。\n" "返回 [code]linear_velocity[/code] 向量,如果发生滑动碰撞,则返回的向量是经过" "了旋转和/或缩放的。要获得发生碰撞的详细信息,请使用 [method " "get_slide_collision]。\n" "当物体接触到一个移动的平台时,平台的速度会自动加入到物体的运动中。如果由于平" "台的运动而发生碰撞,它将始终是滑动碰撞中的第一个。" #: doc/classes/KinematicBody2D.xml msgid "" "Moves the body while keeping it attached to slopes. Similar to [method " "move_and_slide].\n" "As long as the [code]snap[/code] vector is in contact with the ground, the " "body will remain attached to the surface. This means you must disable snap " "in order to jump, for example. You can do this by setting [code]snap[/code] " "to [code](0, 0)[/code] or by using [method move_and_slide] instead." msgstr "" "移动物体,同时使其保持附着在斜坡上。类似于 [method move_and_slide]。\n" "只要 [code]snap[/code] 向量与地面接触,物体就会保持附着在表面上。例如,这意味" "着您必须禁用吸附才能进行跳跃。您可以通过将 [code]snap[/code] 设置为 [code]" "(0, 0)[/code] 来实现,或者用 [method move_and_slide] 代替。" #: doc/classes/KinematicBody2D.xml msgid "" "Checks for collisions without moving the body. Virtually sets the node's " "position, scale and rotation to that of the given [Transform2D], then tries " "to move the body along the vector [code]rel_vec[/code]. Returns [code]true[/" "code] if a collision would stop the body from moving along the whole path.\n" "Use [method move_and_collide] instead for detecting collision with touching " "bodies." msgstr "" "在不移动物体的情况下检查碰撞情况。假装将节点的位置、缩放和旋转设置为给定的 " "[Transform2D],然后尝试沿着向量 [code]rel_vec[/code] 移动物体。如果物体在沿着" "完整路径移动过程中会发生碰撞停止,则返回 [code]true[/code]。\n" "要检测物体接触而产生的碰撞,请使用 [method move_and_collide]。" #: doc/classes/KinematicCollision.xml msgid "Collision data for [KinematicBody] collisions." msgstr "[KinematicBody] 碰撞的碰撞数据。" #: doc/classes/KinematicCollision.xml msgid "" "Contains collision data for [KinematicBody] collisions. When a " "[KinematicBody] is moved using [method KinematicBody.move_and_collide], it " "stops if it detects a collision with another body. If a collision is " "detected, a KinematicCollision object is returned.\n" "This object contains information about the collision, including the " "colliding object, the remaining motion, and the collision position. This " "information can be used to calculate a collision response." msgstr "" "包含[KinematicBody]碰撞的碰撞数据。当[KinematicBody]使用[method " "KinematicBody.move_and_collide]移动时,如果它检测到与另一个物体的碰撞就会停" "止。如果检测到碰撞,将返回一个KinematicCollision对象。\n" "这个对象包含关于碰撞的信息,包括碰撞的物体、剩余的运动和碰撞的位置。这些信息" "可以用来计算碰撞响应。" #: doc/classes/KinematicCollision.xml msgid "" "The collision angle according to [code]up_direction[/code], which is " "[code]Vector3.UP[/code] by default. This value is always positive." msgstr "" "根据[code]up_direction[/code]的碰撞角度,默认为[code]Vector3.UP[/code]。这个" "值总是为正。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The colliding body." msgstr "碰撞体。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "" "The colliding body's unique instance ID. See [method Object.get_instance_id]." msgstr "碰撞体的唯一实例ID。参阅[method Object.get_instance_id]。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The colliding body's metadata. See [Object]." msgstr "碰撞体的元数据。参阅[Object]。" #: doc/classes/KinematicCollision.xml msgid "The colliding body's [RID] used by the [PhysicsServer]." msgstr "[PhysicsServer] 使用的碰撞体的 [RID]。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The colliding body's shape." msgstr "碰撞体的形状。" #: doc/classes/KinematicCollision.xml msgid "The colliding shape's index. See [CollisionObject]." msgstr "碰撞形状的索引。参阅[CollisionObject]。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The colliding object's velocity." msgstr "碰撞对象的速度。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The moving object's colliding shape." msgstr "移动对象的碰撞形状。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The colliding body's shape's normal at the point of collision." msgstr "碰撞体的形状在碰撞点的法线。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The point of collision, in global coordinates." msgstr "碰撞点,以全局坐标表示。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The moving object's remaining movement vector." msgstr "移动物体的剩余运动向量。" #: doc/classes/KinematicCollision.xml doc/classes/KinematicCollision2D.xml msgid "The distance the moving object traveled before collision." msgstr "运动物体在碰撞前行进的距离。" #: doc/classes/KinematicCollision2D.xml msgid "Collision data for [KinematicBody2D] collisions." msgstr "[KinematicBody2D] 动态物体2D碰撞器碰撞的数据。" #: doc/classes/KinematicCollision2D.xml msgid "" "Contains collision data for [KinematicBody2D] collisions. When a " "[KinematicBody2D] is moved using [method KinematicBody2D.move_and_collide], " "it stops if it detects a collision with another body. If a collision is " "detected, a KinematicCollision2D object is returned.\n" "This object contains information about the collision, including the " "colliding object, the remaining motion, and the collision position. This " "information can be used to calculate a collision response." msgstr "" "包含[KinematicBody2D]碰撞的碰撞数据。当使用 [method KinematicBody2D." "move_and_collide] 移动[KinematicBody2D]时,如果检测到与另一个物体的碰撞,它将" "停止。如果检测到碰撞,则返回KinematicCollision2D对象。\n" "该对象包含有关碰撞的信息,包括碰撞对象,剩余运动和碰撞坐标。该信息可用于计算" "碰撞响应。" #: doc/classes/KinematicCollision2D.xml msgid "" "The collision angle according to [code]up_direction[/code], which is " "[code]Vector2.UP[/code] by default. This value is always positive." msgstr "" "根据[code]up_direction[/code]的碰撞角度,默认为[code]Vector2.UP[/code]。这个" "值总是为正。" #: doc/classes/KinematicCollision2D.xml msgid "The colliding body's [RID] used by the [Physics2DServer]." msgstr "[Physics2DServer] 使用的碰撞体的 [RID]。" #: doc/classes/KinematicCollision2D.xml msgid "The colliding shape's index. See [CollisionObject2D]." msgstr "碰撞形状的索引。参阅[CollisionObject2D]。" #: doc/classes/Label.xml msgid "" "Displays plain text in a line or wrapped inside a rectangle. For formatted " "text, use [RichTextLabel]." msgstr "" "在一行中显示纯文本,或在一个矩形内包裹。对于格式化的文本,使用" "[RichTextLabel]。" #: doc/classes/Label.xml msgid "" "Label displays plain text on the screen. It gives you control over the " "horizontal and vertical alignment and can wrap the text inside the node's " "bounding rectangle. It doesn't support bold, italics, or other formatting. " "For that, use [RichTextLabel] instead.\n" "[b]Note:[/b] Contrarily to most other [Control]s, Label's [member Control." "mouse_filter] defaults to [constant Control.MOUSE_FILTER_IGNORE] (i.e. it " "doesn't react to mouse input events). This implies that a label won't " "display any configured [member Control.hint_tooltip], unless you change its " "mouse filter.\n" "[b]Note:[/b] Unicode characters after [code]0xffff[/code] (such as most " "emoji) are [i]not[/i] supported on Windows. They will display as unknown " "characters instead. This will be resolved in Godot 4.0." msgstr "" "标签在屏幕上显示纯文本。可以控制水平和垂直的对齐方式,并且可以将文本包裹在节" "点的边界矩形内。它不支持粗体、斜体等格式。如果需要使用,请改用 " "[RichTextLabel]。\n" "[b]注意:[/b]与大多数其他 [Control] 不同,Label 的 [member Control." "mouse_filter] 默认为 [constant Control.MOUSE_FILTER_IGNORE](即不响应鼠标输入" "事件)。这意味着标签不会显示任何已配置的 [member Control.hint_tooltip],除非" "更改其鼠标过滤器。\n" "[b]注意:[/b]Windows 上[i]不支持[/i] [code]0xffff[/code] 之后的 Unicode 字" "符,例如大多数表情符号,它们将显示为未知字符。将在 Godot 4.0 中解决。" #: doc/classes/Label.xml msgid "Returns the amount of lines of text the Label has." msgstr "返回该 Label 的文本行数。" #: doc/classes/Label.xml msgid "Returns the font size in pixels." msgstr "返回字体大小,单位是像素。" #: doc/classes/Label.xml msgid "" "Returns the total number of printable characters in the text (excluding " "spaces and newlines)." msgstr "返回文本中可打印的字符总数,不包括空格和换行符。" #: doc/classes/Label.xml msgid "" "Returns the number of lines shown. Useful if the [Label]'s height cannot " "currently display all lines." msgstr "返回显示的行数。如果 [Label] 的高度目前无法显示所有的行数,将会有用。" #: doc/classes/Label.xml msgid "" "Controls the text's horizontal align. Supports left, center, right, and " "fill, or justify. Set it to one of the [enum Align] constants." msgstr "" "控制文本的水平对齐。支持左对齐、居中对齐、右对齐和填充,或者两端对齐。把它设" "置为[enum Align]常量之一。" #: doc/classes/Label.xml msgid "" "If [code]true[/code], wraps the text inside the node's bounding rectangle. " "If you resize the node, it will change its height automatically to show all " "the text." msgstr "" "如果为 [code]true[/code],文本将在节点的边界矩形内自动换行。如果你调整节点的" "大小,它将自动改变其高度以显示所有的文本。" #: doc/classes/Label.xml msgid "" "If [code]true[/code], the Label only shows the text that fits inside its " "bounding rectangle and will clip text horizontally." msgstr "" "如果为 [code]true[/code],Label 将仅显示位于其边界矩形内部的文本,并将水平裁" "剪文本。" #: doc/classes/Label.xml msgid "" "The node ignores the first [code]lines_skipped[/code] lines before it starts " "to display text." msgstr "该节点在开始显示文本之前会忽略前 [code]lines_skipped[/code] 行。" #: doc/classes/Label.xml msgid "Limits the lines of text the node shows on screen." msgstr "限制节点在屏幕上显示的文本行数。" #: doc/classes/Label.xml msgid "" "Limits the amount of visible characters. If you set [code]percent_visible[/" "code] to 0.5, only up to half of the text's characters will display on " "screen. Useful to animate the text in a dialog box." msgstr "" "限制可见字符的数量。如果你把 [code]percent_visible[/code] 设置为 0.5,则屏幕" "上最多只能显示该文本中一半数量的字符。这在对话框中对文本进行动画处理很有用。" #: doc/classes/Label.xml doc/classes/Label3D.xml msgid "The text to display on screen." msgstr "要在屏幕上显示的文本。" #: doc/classes/Label.xml doc/classes/Label3D.xml doc/classes/TextMesh.xml msgid "If [code]true[/code], all the text displays as UPPERCASE." msgstr "如果为 [code]true[/code],所有文本都将显示为大写。" #: doc/classes/Label.xml msgid "" "Controls the text's vertical align. Supports top, center, bottom, and fill. " "Set it to one of the [enum VAlign] constants." msgstr "" "控制文本的垂直对齐。支持顶部、中心、底部和填充。参阅 [enum VAlign] 常量。" #: doc/classes/Label.xml msgid "Restricts the number of characters to display. Set to -1 to disable." msgstr "限制显示的字符数。设置为 -1 表示禁用限制。" #: doc/classes/Label.xml doc/classes/Label3D.xml doc/classes/TextMesh.xml msgid "Align rows to the left (default)." msgstr "将行左对齐,默认。" #: doc/classes/Label.xml doc/classes/Label3D.xml doc/classes/TextMesh.xml msgid "Align rows centered." msgstr "将行居中对齐。" #: doc/classes/Label.xml doc/classes/Label3D.xml doc/classes/TextMesh.xml msgid "Align rows to the right." msgstr "将行右对齐。" #: doc/classes/Label.xml doc/classes/Label3D.xml msgid "Expand row whitespaces to fit the width." msgstr "扩展行空白以适应宽度。" #: doc/classes/Label.xml doc/classes/Label3D.xml msgid "Align the whole text to the top." msgstr "将整个文本对齐到顶部。" #: doc/classes/Label.xml doc/classes/Label3D.xml msgid "Align the whole text to the center." msgstr "将整个文本居中对齐。" #: doc/classes/Label.xml doc/classes/Label3D.xml msgid "Align the whole text to the bottom." msgstr "将整个文本与底部对齐。" #: doc/classes/Label.xml doc/classes/Label3D.xml msgid "Align the whole text by spreading the rows." msgstr "通过展开行来对齐整个文本。" #: doc/classes/Label.xml msgid "Default text [Color] of the [Label]." msgstr "[Label]标签的默认文本颜色[Color]。" #: doc/classes/Label.xml msgid "[Color] of the text's shadow effect." msgstr "文本阴影效果的颜色[Color]。" #: doc/classes/Label.xml msgid "The tint of [Font]'s outline. See [member DynamicFont.outline_color]." msgstr "[Font]轮廓的色调。参阅[member DynamicFont.outline_color]。" #: doc/classes/Label.xml msgid "Vertical space between lines in multiline [Label]." msgstr "多行[Label]中各行之间的垂直空间。" #: doc/classes/Label.xml msgid "" "Boolean value. If set to 1 ([code]true[/code]), the shadow will be displayed " "around the whole text as an outline." msgstr "布尔值。如果设置为1,即[code]true[/code],整个文本周围显示阴影轮廓。" #: doc/classes/Label.xml msgid "The horizontal offset of the text's shadow." msgstr "文本阴影的水平偏移。" #: doc/classes/Label.xml msgid "The vertical offset of the text's shadow." msgstr "文本阴影的垂直偏移。" #: doc/classes/Label.xml msgid "[Font] used for the [Label]'s text." msgstr "用于标签[Label]文本的字体[Font]。" #: doc/classes/Label.xml msgid "Background [StyleBox] for the [Label]." msgstr "为[Label]设置背景样式[StyleBox]。" #: doc/classes/Label3D.xml msgid "Displays plain text in a 3D world." msgstr "在 3D 世界中显示普通文本。" #: doc/classes/Label3D.xml msgid "" "Label3D displays plain text in a 3D world. It gives you control over the " "horizontal and vertical alignment." msgstr "Label3D 在 3D 世界中显示普通文本。你可以控制水平和垂直对齐方式。" #: doc/classes/Label3D.xml msgid "" "Returns a [TriangleMesh] with the label's vertices following its current " "configuration (such as its [member pixel_size])." msgstr "" "返回使用该标签的顶点组成的 [TriangleMesh],遵循当前的配置(例如 [member " "pixel_size])。" #: doc/classes/Label3D.xml msgid "" "If [code]true[/code], the specified flag will be enabled. See [enum Label3D." "DrawFlags] for a list of flags." msgstr "" "如果为 [code]true[/code],会启用指定的标志。标志列表请参阅 [enum Label3D." "DrawFlags]。" #: doc/classes/Label3D.xml msgid "" "The alpha cutting mode to use for the sprite. See [enum AlphaCutMode] for " "possible values." msgstr "该精灵的 Alpha 裁剪模式。可能的取值请参阅 [enum AlphaCutMode]。" #: doc/classes/Label3D.xml doc/classes/SpatialMaterial.xml msgid "Threshold at which the alpha scissor will discard values." msgstr "alpha scissor 会丢弃数值的阈值。" #: doc/classes/Label3D.xml msgid "If [code]true[/code], wraps the text to the [member width]." msgstr "如果为 [code]true[/code],会按照 [member width] 将文本进行换行。" #: doc/classes/Label3D.xml msgid "" "The billboard mode to use for the label. See [enum SpatialMaterial." "BillboardMode] for possible values." msgstr "" "该标签所使用的公告板模式。可能的取值请参阅 [enum SpatialMaterial." "BillboardMode]。" #: doc/classes/Label3D.xml msgid "" "If [code]true[/code], text can be seen from the back as well, if " "[code]false[/code], it is invisible when looking at it from behind." msgstr "" "如果为 [code]true[/code],则从后面也可以看到文本,如果为 [code]false[/code]," "则从后面看它是不可见的。" #: doc/classes/Label3D.xml doc/classes/SpriteBase3D.xml msgid "" "If [code]true[/code], the label is rendered at the same size regardless of " "distance." msgstr "如果为 [code]true[/code],则无论距离远近,标签都以相同的尺寸呈现。" #: doc/classes/Label3D.xml msgid "[Font] used for the [Label3D]'s text." msgstr "该 [Label3D] 的文本所使用的 [Font]。" #: doc/classes/Label3D.xml msgid "" "Controls the text's horizontal alignment. Supports left, center, right. Set " "it to one of the [enum Align] constants." msgstr "" "控制文本的水平对齐。支持左对齐、居中、右对齐。请将其设置为 [enum Align] 常量" "之一。" #: doc/classes/Label3D.xml msgid "Vertical space between lines in multiline [Label3D]." msgstr "多行 [Label3D] 中各行之间的垂直空间。" #: doc/classes/Label3D.xml msgid "Text [Color] of the [Label3D]." msgstr "该 [Label3D] 的文本颜色 [Color]。" #: doc/classes/Label3D.xml doc/classes/SpatialMaterial.xml #: doc/classes/SpriteBase3D.xml msgid "" "If [code]true[/code], depth testing is disabled and the object will be drawn " "in render order." msgstr "如果[code]true[/code],深度测试被禁用,对象将按渲染顺序绘制。" #: doc/classes/Label3D.xml msgid "The text drawing offset (in pixels)." msgstr "文本绘制偏移(单位为像素)。" #: doc/classes/Label3D.xml msgid "The tint of [Font]'s outline." msgstr "对 [Font] 轮廓的染色。" #: doc/classes/Label3D.xml msgid "" "Sets the render priority for the text outline. Higher priority objects will " "be sorted in front of lower priority objects.\n" "[b]Node:[/b] This only applies if [member alpha_cut] is set to [constant " "ALPHA_CUT_DISABLED] (default value).\n" "[b]Note:[/b] This only applies to sorting of transparent objects. This will " "not impact how transparent objects are sorted relative to opaque objects. " "This is because opaque objects are not sorted, while transparent objects are " "sorted from back to front (subject to priority)." msgstr "" "设置文本轮廓的渲染优先级。优先级高的物体将被排序在优先级低的物体前面。\n" "[b]注意:[/b]仅在 [member alpha_cut] 为 [constant ALPHA_CUT_DISABLED](默认" "值)时适用。\n" "[b]注意:[/b]仅适用于透明物体的排序。这不会影响透明物体相对于不透明物体的排序" "方式。这是因为不透明对象不被排序,而透明对象则从后往前排序(取决于优先级)。" #: doc/classes/Label3D.xml msgid "The size of one pixel's width on the label to scale it in 3D." msgstr "标签上一个像素宽度的大小,以 3D 缩放。" #: doc/classes/Label3D.xml msgid "" "Sets the render priority for the text. Higher priority objects will be " "sorted in front of lower priority objects.\n" "[b]Node:[/b] This only applies if [member alpha_cut] is set to [constant " "ALPHA_CUT_DISABLED] (default value).\n" "[b]Note:[/b] This only applies to sorting of transparent objects. This will " "not impact how transparent objects are sorted relative to opaque objects. " "This is because opaque objects are not sorted, while transparent objects are " "sorted from back to front (subject to priority)." msgstr "" "设置文本的渲染优先级。优先级高的物体将被排序在优先级低的物体前面。\n" "[b]注意:[/b]仅在 [member alpha_cut] 为 [constant ALPHA_CUT_DISABLED](默认" "值)时适用。\n" "[b]注意:[/b]仅适用于透明物体的排序。这不会影响透明物体相对于不透明物体的排序" "方式。这是因为不透明对象不被排序,而透明对象则从后往前排序(取决于优先级)。" #: doc/classes/Label3D.xml msgid "" "If [code]true[/code], the [Light] in the [Environment] has effects on the " "label." msgstr "如果为 [code]true[/code],则 [Environment] 中的 [Light] 对标签有影响。" #: doc/classes/Label3D.xml msgid "" "Controls the text's vertical alignment. Supports top, center, bottom. Set it " "to one of the [enum VAlign] constants." msgstr "" "控制文本的垂直对齐。支持顶部、中心、底部。请将其设为 [enum VAlign] 常量之一。" #: doc/classes/Label3D.xml msgid "Text width (in pixels), used for autowrap and fill alignment." msgstr "文本宽度(单位为像素),用于自动换行和填充对齐。" #: doc/classes/Label3D.xml msgid "If set, lights in the environment affect the label." msgstr "如果打开,环境中的灯光会影响该标签。" #: doc/classes/Label3D.xml msgid "" "If set, text can be seen from the back as well. If not, the texture is " "invisible when looking at it from behind." msgstr "如果打开,从后面也可以看到文本,如果不打开,从后面看它是不可见的。" #: doc/classes/Label3D.xml doc/classes/SpatialMaterial.xml #: doc/classes/SpriteBase3D.xml msgid "" "Disables the depth test, so this object is drawn on top of all others. " "However, objects drawn after it in the draw order may cover it." msgstr "" "禁用深度测试,所以这个对象被画在所有其他对象的上面。但是,在绘制顺序中,在它" "之后绘制的对象可能会覆盖它。" #: doc/classes/Label3D.xml msgid "" "Label is scaled by depth so that it always appears the same size on screen." msgstr "标签会根据深度进行缩放,从而在屏幕上始终以相同的大小显示。" #: doc/classes/Label3D.xml doc/classes/SpriteBase3D.xml msgid "Represents the size of the [enum DrawFlags] enum." msgstr "代表[enum DrawFlags]枚举的大小。" #: doc/classes/Label3D.xml msgid "" "This mode performs standard alpha blending. It can display translucent " "areas, but transparency sorting issues may be visible when multiple " "transparent materials are overlapping." msgstr "" "这个模式会进行标准的 Alpha 混合。可以显示半透明区域,但透明材质存在重叠时可能" "会暴露透明度排序问题。" #: doc/classes/Label3D.xml msgid "" "This mode only allows fully transparent or fully opaque pixels. This mode is " "also known as [i]alpha testing[/i] or [i]1-bit transparency[/i].\n" "[b]Note:[/b] This mode might have issues with anti-aliased fonts and " "outlines, try adjusting [member alpha_scissor_threshold] or using SDF font.\n" "[b]Note:[/b] When using text with overlapping glyphs (e.g., cursive " "scripts), this mode might have transparency sorting issues between the main " "text and the outline." msgstr "" "这个模式只允许完全透明或者完全不透明的像素。这个模式也叫 [i]Alpha 测试[/i]或" "者[i]1位透明度[/i]。\n" "[b]注意:[/b]使用抗锯齿字体和轮廓时,这个模式可能会出现问题,请尝试调整 " "[member alpha_scissor_threshold] 或使用 SDF 字体。 \n" "[b]注意:[/b]文本中存在重叠的字形时(例如手写体),这个模式可能会造成主文本和" "轮廓的透明度排序问题。" #: doc/classes/Label3D.xml msgid "" "This mode draws fully opaque pixels in the depth prepass. This is slower " "than [constant ALPHA_CUT_DISABLED] or [constant ALPHA_CUT_DISCARD], but it " "allows displaying translucent areas and smooth edges while using proper " "sorting.\n" "[b]Note:[/b] When using text with overlapping glyphs (e.g., cursive " "scripts), this mode might have transparency sorting issues between the main " "text and the outline." msgstr "" "这个模式会在深度预处理时绘制完全不透明的像素。比 [constant " "ALPHA_CUT_DISABLED] 或 [constant ALPHA_CUT_DISCARD] 要慢,但能够对半透明区域" "和平滑边缘进行正确的排序。\n" "[b]注意:[/b]文本中存在重叠的字形时(例如手写体),这个模式可能会造成主文本和" "轮廓的透明度排序问题。" #: doc/classes/LargeTexture.xml msgid "" "[i]Deprecated.[/i] A [Texture] capable of storing many smaller textures with " "offsets." msgstr "[i]已弃用。[/i] 一种能够存储许多带有偏移量的较小纹理的 [Texture]。" #: doc/classes/LargeTexture.xml msgid "" "[i]Deprecated (will be removed in Godot 4.0).[/i] A [Texture] capable of " "storing many smaller textures with offsets.\n" "You can dynamically add pieces ([Texture]s) to this [LargeTexture] using " "different offsets." msgstr "" "[i] 已弃用(将在 Godot 4.0 中移除)。 [/i] 一种能够存储许多具有偏移量的较小纹" "理的 [Texture]。\n" "你可以使用不同的偏移量向此 [LargeTexture] 动态添加[Texture]片段。" #: doc/classes/LargeTexture.xml msgid "" "Adds [code]texture[/code] to this [LargeTexture], starting on offset " "[code]ofs[/code]." msgstr "" "将[code]texture[/code]添加到这个[LargeTexture],从偏移量[code]ofs[/code]开" "始。" #: doc/classes/LargeTexture.xml msgid "Clears the [LargeTexture]." msgstr "清除[LargeTexture]。" #: doc/classes/LargeTexture.xml msgid "Returns the number of pieces currently in this [LargeTexture]." msgstr "返回此[LargeTexture]中的片段数。" #: doc/classes/LargeTexture.xml msgid "Returns the offset of the piece with the index [code]idx[/code]." msgstr "返回索引为[code]idx[/code]的片段的偏移量。" #: doc/classes/LargeTexture.xml msgid "Returns the [Texture] of the piece with the index [code]idx[/code]." msgstr "返回索引为 [code]idx[/code] 的片段的 [Texture]。" #: doc/classes/LargeTexture.xml msgid "" "Sets the offset of the piece with the index [code]idx[/code] to [code]ofs[/" "code]." msgstr "将索引为[code]idx[/code]的片段的偏移量设置为[code]ofs[/code]。" #: doc/classes/LargeTexture.xml msgid "" "Sets the [Texture] of the piece with index [code]idx[/code] to " "[code]texture[/code]." msgstr "" "将索引为 [code]idx[/code] 的片段的 [Texture] 设置为 [code]texture[/code]。" #: doc/classes/LargeTexture.xml msgid "Sets the size of this [LargeTexture]." msgstr "设置此[LargeTexture]的大小。" #: doc/classes/Light.xml msgid "Provides a base class for different kinds of light nodes." msgstr "为不同类型的光节点提供基类。" #: doc/classes/Light.xml msgid "" "Light is the [i]abstract[/i] base class for light nodes. As it can't be " "instanced, it shouldn't be used directly. Other types of light nodes inherit " "from it. Light contains the common variables and parameters used for " "lighting." msgstr "" "Light 是灯光节点的[i]抽象[/i]基类。它不能被实例化,所以它不应该被直接使用。其" "他类型的灯光节点都是继承自它。灯光包含用于照明的常用变量和参数。" #: doc/classes/Light.xml doc/classes/SpotLight.xml msgid "3D lights and shadows" msgstr "3D 灯光和阴影" #: doc/classes/Light.xml msgid "Returns the value of the specified [enum Light.Param] parameter." msgstr "返回指定的 [enum Light.Param] 参数的值。" #: doc/classes/Light.xml msgid "Sets the value of the specified [enum Light.Param] parameter." msgstr "设置指定的 [enum Light.Param] 参数的值。" #: doc/classes/Light.xml msgid "" "If [code]true[/code], the light only appears in the editor and will not be " "visible at runtime." msgstr "如果 [code]true[/code],灯光只在编辑器中出现,在运行时将不可见。" #: doc/classes/Light.xml msgid "The light's bake mode. See [enum BakeMode]." msgstr "灯光的烘焙模式。参阅[enum BakeMode]。" #: doc/classes/Light.xml msgid "" "The light's color. An [i]overbright[/i] color can be used to achieve a " "result equivalent to increasing the light's [member light_energy]." msgstr "" "光的颜色。一个过亮[i]overbright[/i]颜色可用于实现等效于增加光的能量 [member " "light_energy] 的结果。" #: doc/classes/Light.xml msgid "The light will affect objects in the selected layers." msgstr "灯光将影响所选图层中的对象。" #: doc/classes/Light.xml msgid "" "The light's strength multiplier (this is not a physical unit). For " "[OmniLight] and [SpotLight], changing this value will only change the light " "color's intensity, not the light's radius." msgstr "" "光的强度乘数,注,这不是物理单位。对于 [OmniLight] 和 [SpotLight],更改此值只" "会更改灯光颜色的强度,而不会更改灯光的半径。" #: doc/classes/Light.xml msgid "" "Secondary multiplier used with indirect light (light bounces). This works on " "both [BakedLightmap] and [GIProbe]." msgstr "" "与间接光(光反射)一起使用的辅助倍增器。这适用于 [BakedLightmap] 和 " "[GIProbe]。" #: doc/classes/Light.xml msgid "" "If [code]true[/code], the light's effect is reversed, darkening areas and " "casting bright shadows." msgstr "" "如果为 [code]true[/code],则光线的效果会逆转,使区域变暗并投射明亮的阴影。" #: doc/classes/Light.xml msgid "" "The size of the light in Godot units. Only considered in baked lightmaps and " "only if [member light_bake_mode] is set to [constant BAKE_ALL]. Increasing " "this value will make the shadows appear blurrier. This can be used to " "simulate area lights to an extent." msgstr "" "灯光的大小,使用 Godot 的单位。只在烘焙的光照贴图中考虑,并且只在 [member " "light_bake_mode] 被设置为 [constant BAKE_ALL] 时考虑。增加这个值会使阴影看起" "来更模糊。这可以在一定程度上用于模拟区域灯光。" #: doc/classes/Light.xml msgid "" "The intensity of the specular blob in objects affected by the light. At " "[code]0[/code], the light becomes a pure diffuse light. When not baking " "emission, this can be used to avoid unrealistic reflections when placing " "lights above an emissive surface." msgstr "" "受灯光影响的对象中镜面反射斑点的强度。在 [code]0[/code] 处,灯光变成纯漫反射" "灯光。当不烘焙发射时,这可用于在发光表面上方放置灯光时避免不真实的反射。" #: doc/classes/Light.xml msgid "" "Used to adjust shadow appearance. Too small a value results in self-" "shadowing (\"shadow acne\"), while too large a value causes shadows to " "separate from casters (\"peter-panning\"). Adjust as needed." msgstr "" "用于调整阴影表现。值太小会导致自阴影(“阴影暗疮”),而值太大会导致阴影与之分" "离(“彼得平移”)。根据需要进行调整。" #: doc/classes/Light.xml msgid "The color of shadows cast by this light." msgstr "光线投射的阴影的颜色。" #: doc/classes/Light.xml msgid "" "Attempts to reduce [member shadow_bias] gap by rendering screen-space " "contact shadows. This has a performance impact, especially at higher " "values.\n" "[b]Note:[/b] Contact shadows can look broken, so leaving this property to " "[code]0.0[/code] is recommended." msgstr "" "通过渲染屏幕空间的接触阴影,尝试减小 [member shadow_bias] 带来的空隙。会影响" "性能,尤其是取值较高时。\n" "[b]注意:[/b]接触阴影可能会破坏视觉效果,所以建议将这个属性保持为 [code]0.0[/" "code]。" #: doc/classes/Light.xml msgid "If [code]true[/code], the light will cast shadows." msgstr "如果为 [code]true[/code],光线会投下阴影。" #: doc/classes/Light.xml msgid "" "If [code]true[/code], reverses the backface culling of the mesh. This can be " "useful when you have a flat mesh that has a light behind it. If you need to " "cast a shadow on both sides of the mesh, set the mesh to use double-sided " "shadows with [constant GeometryInstance.SHADOW_CASTING_SETTING_DOUBLE_SIDED]." msgstr "" "如果 [code]true[/code],则反转网格的背面剔除。当你有一个后面有灯的平面网格" "时,这会很有用。如果需要在网格的两侧投射阴影,请使用 [constant " "GeometryInstance.SHADOW_CASTING_SETTING_DOUBLE_SIDED] 将网格设置为使用双面阴" "影。" #: doc/classes/Light.xml msgid "Constant for accessing [member light_energy]." msgstr "用于访问 [member light_energy] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member light_indirect_energy]." msgstr "用于访问 [member light_indirect_energy] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member light_size]." msgstr "用于访问 [member light_size] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member light_specular]." msgstr "用于访问 [member light_specular] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member OmniLight.omni_range] or [member SpotLight." "spot_range]." msgstr "" "用于访问 [member OmniLight.omni_range] 或 [member SpotLight.spot_range] 的常" "量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member OmniLight.omni_attenuation] or [member " "SpotLight.spot_attenuation]." msgstr "" "用于访问 [member OmniLight.omni_attenuation] 或 [member SpotLight." "spot_attenuation] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member SpotLight.spot_angle]." msgstr "用于访问 [member SpotLight.spot_angle] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member SpotLight.spot_angle_attenuation]." msgstr "用于访问 [member SpotLight.spot_angle_attenuation] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member shadow_contact]." msgstr "用于访问 [member shadow_contact] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member DirectionalLight." "directional_shadow_max_distance]." msgstr "" "用于访问 [member DirectionalLight.directional_shadow_max_distance] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member DirectionalLight.directional_shadow_split_1]." msgstr "用于访问 [member DirectionalLight.directional_shadow_split_1] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member DirectionalLight.directional_shadow_split_2]." msgstr "用于访问 [member DirectionalLight.directional_shadow_split_2] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member DirectionalLight.directional_shadow_split_3]." msgstr "用于访问 [member DirectionalLight.directional_shadow_split_3] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member DirectionalLight." "directional_shadow_normal_bias]." msgstr "" "用于访问 [member DirectionalLight.directional_shadow_normal_bias] 的常量。" #: doc/classes/Light.xml msgid "Constant for accessing [member shadow_bias]." msgstr "用于访问 [member shadow_bias] 的常量。" #: doc/classes/Light.xml msgid "" "Constant for accessing [member DirectionalLight." "directional_shadow_bias_split_scale]." msgstr "" "用于访问 [member DirectionalLight.directional_shadow_bias_split_scale] 的常" "量。" #: doc/classes/Light.xml msgid "" "Light is ignored when baking.\n" "[b]Note:[/b] Hiding a light does [i]not[/i] affect baking." msgstr "" "烘焙时忽略灯光。\n" "[b]注意:[/b]隐藏灯光[i]不会[/i]影响烘焙。" #: doc/classes/Light.xml msgid "Only indirect lighting will be baked (default)." msgstr "只会烘焙间接照明(默认)。" #: doc/classes/Light.xml msgid "" "Both direct and indirect light will be baked.\n" "[b]Note:[/b] You should hide the light if you don't want it to appear twice " "(dynamic and baked)." msgstr "" "直接光和间接光都将被烘焙。\n" "[b]注意:[/b]如果不想让灯光出现两次(动态和烘焙),则应隐藏灯光。" #: doc/classes/Light2D.xml msgid "Casts light in a 2D environment." msgstr "在2D环境中投射光线。" #: doc/classes/Light2D.xml msgid "" "Casts light in a 2D environment. Light is defined by a (usually grayscale) " "texture, a color, an energy value, a mode (see constants), and various other " "parameters (range and shadows-related).\n" "[b]Note:[/b] Light2D can also be used as a mask." msgstr "" "在 2D 环境中投射光线。光线由一张纹理(通常是灰度)、一种颜色、一个能量值、一" "种模式(参阅常量)以及其他各种参数(与范围和阴影有关)来定义。\n" "[b]注意:[/b]Light2D 也可以作为遮罩使用。" #: doc/classes/Light2D.xml msgid "The Light2D's [Color]." msgstr "Light2D光的颜色 [Color]。" #: doc/classes/Light2D.xml msgid "If [code]true[/code], Light2D will only appear when editing the scene." msgstr "如果[code]true[/code],Light2D将只在编辑场景时出现。" #: doc/classes/Light2D.xml msgid "If [code]true[/code], Light2D will emit light." msgstr "如果 [code]true[/code],Light2D 会发光。" #: doc/classes/Light2D.xml msgid "" "The Light2D's energy value. The larger the value, the stronger the light." msgstr "Light2D的能量值。该值越大,光线就越强。" #: doc/classes/Light2D.xml msgid "The Light2D's mode. See [enum Mode] constants for values." msgstr "Light2D 的模式。取值参阅 [enum Mode] 常量。" #: doc/classes/Light2D.xml msgid "The offset of the Light2D's [code]texture[/code]." msgstr "Light2D 的 [code]texture[/code] 的偏移量。" #: doc/classes/Light2D.xml msgid "The height of the Light2D. Used with 2D normal mapping." msgstr "Light2D的高度。与2D法线贴图(normal mapping)一起使用。" #: doc/classes/Light2D.xml msgid "" "The layer mask. Only objects with a matching mask will be affected by the " "Light2D." msgstr "图层遮罩。只有具有匹配遮罩的对象才会受到Light2D的影响。" #: doc/classes/Light2D.xml msgid "Maximum layer value of objects that are affected by the Light2D." msgstr "受Light2D影响的对象的最大层数值。" #: doc/classes/Light2D.xml msgid "Minimum layer value of objects that are affected by the Light2D." msgstr "受 Light2D 影响的对象的最小层数值。" #: doc/classes/Light2D.xml msgid "" "Maximum [code]z[/code] value of objects that are affected by the Light2D." msgstr "受Light2D影响的物体的最大[code]z[/code]值。" #: doc/classes/Light2D.xml msgid "" "Minimum [code]z[/code] value of objects that are affected by the Light2D." msgstr "受Light2D影响的物体的最小[code]z[/code]值。" #: doc/classes/Light2D.xml msgid "Shadow buffer size." msgstr "阴影缓冲区大小。" #: doc/classes/Light2D.xml msgid "[Color] of shadows cast by the Light2D." msgstr "Light2D投下的影子的颜色[Color]。" #: doc/classes/Light2D.xml msgid "If [code]true[/code], the Light2D will cast shadows." msgstr "如果[code]true[/code],Light2D将投下阴影。" #: doc/classes/Light2D.xml msgid "Shadow filter type. See [enum ShadowFilter] for possible values." msgstr "阴影过滤器类型。相关可能的值,参阅[enum ShadowFilter] 阴影过滤器。" #: doc/classes/Light2D.xml msgid "Smoothing value for shadows." msgstr "阴影的平滑值。" #: doc/classes/Light2D.xml msgid "Smooth shadow gradient length." msgstr "平滑阴影渐变长度。" #: doc/classes/Light2D.xml msgid "" "The shadow mask. Used with [LightOccluder2D] to cast shadows. Only occluders " "with a matching light mask will cast shadows." msgstr "" "阴影遮罩。与[LightOccluder2D]一起使用来投射阴影。只有具有匹配的光线遮罩的遮挡" "物才会投射阴影。" #: doc/classes/Light2D.xml msgid "[Texture] used for the Light2D's appearance." msgstr "用于Light2D外观的[Texture]。" #: doc/classes/Light2D.xml msgid "The [code]texture[/code]'s scale factor." msgstr "[code]texture[/code] 的缩放系数。" #: doc/classes/Light2D.xml msgid "" "Adds the value of pixels corresponding to the Light2D to the values of " "pixels under it. This is the common behavior of a light." msgstr "将 Light2D 对应的像素值与其下方的像素值相加。这是灯的常见行为。" #: doc/classes/Light2D.xml msgid "" "Subtracts the value of pixels corresponding to the Light2D to the values of " "pixels under it, resulting in inversed light effect." msgstr "将Light2D对应的像素值减去其下方的像素值,产生反光效果。" #: doc/classes/Light2D.xml msgid "" "Mix the value of pixels corresponding to the Light2D to the values of pixels " "under it by linear interpolation." msgstr "通过线性插值将Light2D对应的像素值与其下方的像素值混合。" #: doc/classes/Light2D.xml msgid "" "The light texture of the Light2D is used as a mask, hiding or revealing " "parts of the screen underneath depending on the value of each pixel of the " "light (mask) texture." msgstr "" "Light2D的光线纹理被用作遮罩,根据光线遮罩纹理的每个像素的值,隐藏或显示屏幕下" "方的部分。" #: doc/classes/Light2D.xml msgid "No filter applies to the shadow map. See [member shadow_filter]." msgstr "没有过滤器适用于阴影贴图。参阅[member shadow_filter]。" #: doc/classes/Light2D.xml msgid "" "Percentage closer filtering (3 samples) applies to the shadow map. See " "[member shadow_filter]." msgstr "百分比接近过滤(3个样本)适用于阴影贴图。参阅[member shadow_filter]。" #: doc/classes/Light2D.xml msgid "" "Percentage closer filtering (5 samples) applies to the shadow map. See " "[member shadow_filter]." msgstr "百分比接近过滤(5个样本)适用于阴影贴图。参阅[member shadow_filter]。" #: doc/classes/Light2D.xml msgid "" "Percentage closer filtering (7 samples) applies to the shadow map. See " "[member shadow_filter]." msgstr "百分比接近过滤(7个样本)适用于阴影贴图。参阅[member shadow_filter]。" #: doc/classes/Light2D.xml msgid "" "Percentage closer filtering (9 samples) applies to the shadow map. See " "[member shadow_filter]." msgstr "百分比接近过滤(9个样本)适用于阴影贴图。参阅[member shadow_filter]。" #: doc/classes/Light2D.xml msgid "" "Percentage closer filtering (13 samples) applies to the shadow map. See " "[member shadow_filter]." msgstr "百分比接近过滤(13个样本)适用于阴影贴图。参阅[member shadow_filter]。" #: doc/classes/LightOccluder2D.xml msgid "Occludes light cast by a Light2D, casting shadows." msgstr "遮挡由Light2D投射的光线,投射阴影。" #: doc/classes/LightOccluder2D.xml msgid "" "Occludes light cast by a Light2D, casting shadows. The LightOccluder2D must " "be provided with an [OccluderPolygon2D] in order for the shadow to be " "computed." msgstr "" "遮挡Light2D投射的灯光,投射阴影。为了计算阴影,必须为LightOccluder2D提供" "[OccluderPolygon2D]。" #: doc/classes/LightOccluder2D.xml msgid "" "The LightOccluder2D's light mask. The LightOccluder2D will cast shadows only " "from Light2D(s) that have the same light mask(s)." msgstr "" "LightOccluder2D的灯光遮罩。LightOccluder2D将仅从具有相同灯光遮罩的Light2D投射" "阴影。" #: doc/classes/LightOccluder2D.xml msgid "The [OccluderPolygon2D] used to compute the shadow." msgstr "用于计算阴影的[OccluderPolygon2D]。" #: doc/classes/Line2D.xml msgid "A 2D line." msgstr "一条 2D 线。" #: doc/classes/Line2D.xml msgid "" "A line through several points in 2D space. Supports varying width and color " "over the line's length, texturing, and several cap/joint types.\n" "[b]Note:[/b] By default, Godot can only draw up to 4,096 polygon points at a " "time. To increase this limit, open the Project Settings and increase [member " "ProjectSettings.rendering/limits/buffers/canvas_polygon_buffer_size_kb] and " "[member ProjectSettings.rendering/limits/buffers/" "canvas_polygon_index_buffer_size_kb]." msgstr "" "在 2D 空间中通过几个点的线。支持宽度和颜色沿着线段长度变化,支持纹理及若干端" "点/交点类型。\n" "[b]注意:[/b]默认情况下,Godot 一次最多只能绘制 4,096 个多边形点。要增加这个" "限制,请打开项目设置,增加 [member ProjectSettings.rendering/limits/buffers/" "canvas_polygon_buffer_size_kb] 和 [member ProjectSettings.rendering/limits/" "buffers/canvas_polygon_index_buffer_size_kb]。" #: doc/classes/Line2D.xml msgid "" "Adds a point at the [code]position[/code]. Appends the point at the end of " "the line.\n" "If [code]at_position[/code] is given, the point is inserted before the point " "number [code]at_position[/code], moving that point (and every point after) " "after the inserted point. If [code]at_position[/code] is not given, or is an " "illegal value ([code]at_position < 0[/code] or [code]at_position >= [method " "get_point_count][/code]), the point will be appended at the end of the point " "list." msgstr "" "在 [code]position[/code] 添加点。将点追加到直线的末尾。\n" "如果给定了位置 [code]at_position[/code],则在位置 [code]at_position[/code] 之" "前插入该点,并将该点(以及之后的每个点)移动到插入点之后。如果未给出位置处的 " "[code]at_position[/code],或者是非法值([code]at_position < 0[/code] 或 " "[code]at_position >= [method get_point_count][/code]),则该点将追加到点列表" "的末尾。" #: doc/classes/Line2D.xml msgid "Removes all points from the line." msgstr "移除直线上的所有点。" #: doc/classes/Line2D.xml msgid "Returns the Line2D's amount of points." msgstr "返回该 Line2D 上点的数量。" #: doc/classes/Line2D.xml msgid "Returns point [code]i[/code]'s position." msgstr "返回点[code]i[/code]的位置。" #: doc/classes/Line2D.xml msgid "Removes the point at index [code]i[/code] from the line." msgstr "将索引[code]i[/code]处的点从直线中移除。" #: doc/classes/Line2D.xml msgid "" "Overwrites the position in point [code]i[/code] with the supplied " "[code]position[/code]." msgstr "用提供的[code]position[/code]位置覆盖索引[code]i[/code]处点的位置。" #: doc/classes/Line2D.xml msgid "" "If [code]true[/code], the line's border will attempt to perform antialiasing " "by drawing thin OpenGL smooth lines on the line's edges.\n" "[b]Note:[/b] Line2D is not accelerated by batching if [member antialiased] " "is [code]true[/code].\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent lines and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedLine2D node. That node relies on a texture with custom mipmaps to " "perform antialiasing. 2D batching is also still supported with those " "antialiased lines." msgstr "" "为 [code]true[/code] 时,会尝试对线段的边缘进行抗锯齿处理,方法是在边缘绘制一" "薄层 OpenGL 平滑线段。\n" "[b]注意:[/b]如果 [member antialiased] 为 [code]true[/code],那么 Line2D 就不" "会被分批加速。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedLine2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理进行" "的。这些抗锯齿线段仍然支持 2D 分批。" #: doc/classes/Line2D.xml msgid "" "Controls the style of the line's first point. Use [enum LineCapMode] " "constants." msgstr "控制直线的第一个点的样式。使用 [enum LineCapMode] 常量。" #: doc/classes/Line2D.xml msgid "The line's color. Will not be used if a gradient is set." msgstr "线条的颜色。如果设置了渐变,则不会生效。" #: doc/classes/Line2D.xml msgid "" "Controls the style of the line's last point. Use [enum LineCapMode] " "constants." msgstr "控制线条最后一点的样式。使用 [enum LineCapMode] 常量。" #: doc/classes/Line2D.xml msgid "" "The gradient is drawn through the whole line from start to finish. The " "default color will not be used if a gradient is set." msgstr "从头到尾贯穿整条线的渐变色。如果设置了渐变,则不会使用默认颜色。" #: doc/classes/Line2D.xml msgid "The style for the points between the start and the end." msgstr "起点和终点之间点的样式。" #: doc/classes/Line2D.xml msgid "" "The points that form the lines. The line is drawn between every point set in " "this array. Points are interpreted as local vectors." msgstr "构成线条的点。在此数组中设置的每个点之间绘制线。点被解释为局部向量。" #: doc/classes/Line2D.xml msgid "" "The smoothness of the rounded joints and caps. Higher values result in " "smoother corners, but are more demanding to render and update. This is only " "used if a cap or joint is set as round.\n" "[b]Note:[/b] The default value is tuned for lines with the default [member " "width]. For thin lines, this value should be reduced to a number between " "[code]2[/code] and [code]4[/code] to improve performance." msgstr "" "连接点及端点的圆角平滑度。取值越高,边角越平滑,不过渲染和更新的消耗也越大。" "只会在端点或连接点被设为圆角时使用。\n" "[b]注意:[/b]默认值针对的是使用默认 [member width] 的线条。针对更细的线条,应" "该将这个值减小到 [code]2[/code] 和 [code]4[/code] 之间,提升性能。" #: doc/classes/Line2D.xml msgid "" "The direction difference in radians between vector points. This value is " "only used if [member joint_mode] is set to [constant LINE_JOINT_SHARP]." msgstr "" "向量点之间的方向差,单位为弧度。仅当 [member joint_mode] 设置为 [constant " "LINE_JOINT_SHARP] 时,才使用此值。" #: doc/classes/Line2D.xml msgid "" "The texture used for the line's texture. Uses [code]texture_mode[/code] for " "drawing style." msgstr "用于线条纹理的纹理。使用[code]texture_mode[/code]作为绘图样式。" #: doc/classes/Line2D.xml msgid "" "The style to render the [code]texture[/code] on the line. Use [enum " "LineTextureMode] constants." msgstr "" "在线条上渲染 [code]texture[/code] 的样式。使用 [enum LineTextureMode] 常量。" #: doc/classes/Line2D.xml msgid "The line's width." msgstr "该线条的宽度。" #: doc/classes/Line2D.xml msgid "" "The line's width varies with the curve. The original width is simply " "multiply by the value of the Curve." msgstr "该线条的宽度随曲线变化。原始宽度只需乘以曲线的值即可。" #: doc/classes/Line2D.xml msgid "" "The line's joints will be pointy. If [code]sharp_limit[/code] is greater " "than the rotation of a joint, it becomes a bevel joint instead." msgstr "" "该线条的交点将是尖头。如果 [code]sharp_limit[/code] 大于交点的旋转,它将变为" "倒角交点。" #: doc/classes/Line2D.xml msgid "The line's joints will be bevelled/chamfered." msgstr "该线条的交点将为倒角/切角。" #: doc/classes/Line2D.xml msgid "The line's joints will be rounded." msgstr "该线条的交点将为圆角。" #: doc/classes/Line2D.xml msgid "Don't draw a line cap." msgstr "不绘制线条的端点。" #: doc/classes/Line2D.xml msgid "Draws the line cap as a box." msgstr "将线条端点绘制为矩形。" #: doc/classes/Line2D.xml msgid "Draws the line cap as a circle." msgstr "将线条端点绘制为圆形。" #: doc/classes/Line2D.xml msgid "" "Takes the left pixels of the texture and renders it over the whole line." msgstr "获取纹理的左侧像素并在整个线条上渲染它。" #: doc/classes/Line2D.xml msgid "" "Tiles the texture over the line. The texture must be imported with " "[b]Repeat[/b] enabled for it to work properly." msgstr "在线条上平铺纹理。导入纹理时必须启用 [b]Repeat[/b] 才能正常工作。" #: doc/classes/Line2D.xml msgid "" "Stretches the texture across the line. Import the texture with [b]Repeat[/b] " "disabled for best results." msgstr "沿线条拉伸纹理。导入禁用 [b]Repeat[/b] 的纹理以获得最佳效果。" #: doc/classes/LineEdit.xml msgid "Control that provides single-line string editing." msgstr "提供单行字符串编辑功能的控件。" #: doc/classes/LineEdit.xml msgid "" "LineEdit provides a single-line string editor, used for text fields.\n" "It features many built-in shortcuts which will always be available " "([code]Ctrl[/code] here maps to [code]Command[/code] on macOS):\n" "- Ctrl + C: Copy\n" "- Ctrl + X: Cut\n" "- Ctrl + V or Ctrl + Y: Paste/\"yank\"\n" "- Ctrl + Z: Undo\n" "- Ctrl + Shift + Z: Redo\n" "- Ctrl + U: Delete text from the cursor position to the beginning of the " "line\n" "- Ctrl + K: Delete text from the cursor position to the end of the line\n" "- Ctrl + A: Select all text\n" "- Up/Down arrow: Move the cursor to the beginning/end of the line\n" "On macOS, some extra keyboard shortcuts are available:\n" "- Ctrl + F: Like the right arrow key, move the cursor one character right\n" "- Ctrl + B: Like the left arrow key, move the cursor one character left\n" "- Ctrl + P: Like the up arrow key, move the cursor to the previous line\n" "- Ctrl + N: Like the down arrow key, move the cursor to the next line\n" "- Ctrl + D: Like the Delete key, delete the character on the right side of " "cursor\n" "- Ctrl + H: Like the Backspace key, delete the character on the left side of " "the cursor\n" "- Command + Left arrow: Like the Home key, move the cursor to the beginning " "of the line\n" "- Command + Right arrow: Like the End key, move the cursor to the end of the " "line" msgstr "" "LineEdit 提供了单行字符串编辑器,用于文本字段。\n" "它具有许多始终可用的内置快捷方式(在这里 [code]Ctrl[/code] 映射到 macOS 上的 " "[code]Command[/code]):\n" "- Ctrl + C:复制\n" "- Ctrl + X:剪切\n" "- Ctrl + V 或 Ctrl + Y:粘贴/\"拖拽\"\n" "- Ctrl + Z:撤消\n" "- Ctrl + Shift + Z:重做\n" "- Ctrl + U:删除从光标位置到行首的文本\n" "- Ctrl + K:删除从光标位置到行尾的文本\n" "- Ctrl + A:选择所有文本\n" "- Up/Down 箭头: :将光标移动到行的开头/结尾\n" "在 macOS 上,有一些额外的键盘快捷键可用:\n" "- Ctrl + F:像右箭头键一样,将光标向右移动一个字符\n" "- Ctrl + B:像左箭头键一样,将光标向左移动一个字符\n" "- Ctrl + P:像向上箭头键一样,将光标移动到上一行\n" "- Ctrl + N:像向下箭头键一样,将光标移动到下一行\n" "- Ctrl + D:像Delete键一样,删除光标右侧的字符\n" "- Ctrl + H:像退格键一样,删除光标左侧的字符\n" "- Command + 左箭头:像 Home 键一样,将光标移动到行首\n" "- Command + 右箭头:像 End 键一样,将光标移动到行尾" #: doc/classes/LineEdit.xml msgid "" "Adds [code]text[/code] after the cursor. If the resulting value is longer " "than [member max_length], nothing happens." msgstr "" "在光标后添加 [code]text[/code] 文本。如果最终值比 [member max_length] 长,则" "不会发生任何事情。" #: doc/classes/LineEdit.xml msgid "Erases the [LineEdit]'s [member text]." msgstr "擦除 [LineEdit] 的 [member text]。" #: doc/classes/LineEdit.xml msgid "" "Deletes one character at the cursor's current position (equivalent to " "pressing the [code]Delete[/code] key)." msgstr "在光标的当前位置删除一个字符(相当于按 [code]Delete[/code] 键)。" #: doc/classes/LineEdit.xml msgid "" "Deletes a section of the [member text] going from position " "[code]from_column[/code] to [code]to_column[/code]. Both parameters should " "be within the text's length." msgstr "" "删除 [member text] 中从起始列 [code]from_column[/code] 到结束列 " "[code]to_column[/code] 的部分。两个参数都应该在文本的长度之内。" #: doc/classes/LineEdit.xml doc/classes/RichTextLabel.xml msgid "Clears the current selection." msgstr "清除当前选择。" #: doc/classes/LineEdit.xml msgid "" "Returns the [PopupMenu] of this [LineEdit]. By default, this menu is " "displayed when right-clicking on the [LineEdit].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回这个 [LineEdit] 的 [PopupMenu]。默认情况下,这个菜单会在右键点击 " "[LineEdit] 时显示。\n" "[b]警告:[/b]这是一个必要的内部节点,移除和释放它可能会导致崩溃。如果你想隐藏" "它或它的任何子节点,请使用其的 [member CanvasItem.visible] 属性。" #: doc/classes/LineEdit.xml msgid "" "Returns the scroll offset due to [member caret_position], as a number of " "characters." msgstr "返回由 [member caret_position] 引起的滚动偏移,单位为字符数。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Returns the selection begin column." msgstr "返回选择的开始列。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Returns the selection end column." msgstr "返回选择结束列。" #: doc/classes/LineEdit.xml msgid "Returns [code]true[/code] if the user has selected text." msgstr "如果用户选中了文本,则返回 [code]true[/code]。" #: doc/classes/LineEdit.xml msgid "Executes a given action as defined in the [enum MenuItems] enum." msgstr "执行 [enum MenuItems] 枚举中定义的给定操作。" #: doc/classes/LineEdit.xml msgid "" "Selects characters inside [LineEdit] between [code]from[/code] and [code]to[/" "code]. By default, [code]from[/code] is at the beginning and [code]to[/code] " "at the end.\n" "[codeblock]\n" "text = \"Welcome\"\n" "select() # Will select \"Welcome\".\n" "select(4) # Will select \"ome\".\n" "select(2, 5) # Will select \"lco\".\n" "[/codeblock]" msgstr "" "选中 [LineEdit] 内位于 [code]from[/code] 和 [code]to[/code] 之间的字符。默认" "情况下,[code]from[/code] 位于开头,[code]to[/code] 位于结尾。\n" "[codeblock]\n" "text = \"Welcome\"\n" "select() # 将选中“Welcome”。\n" "select(4) # 将选中“ome”。\n" "select(2, 5) #将选中“lco”。\n" "[/codeblock]" #: doc/classes/LineEdit.xml msgid "Selects the whole [String]." msgstr "选中整个 [String]。" #: doc/classes/LineEdit.xml msgid "Text alignment as defined in the [enum Align] enum." msgstr "文本对齐方式,由 [enum Align] 枚举定义。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "If [code]true[/code], the caret (visual cursor) blinks." msgstr "如果为 [code]true[/code],插入符号(可视光标)将闪烁。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Duration (in seconds) of a caret's blinking cycle." msgstr "插入符号闪烁周期的持续时间(秒)。" #: doc/classes/LineEdit.xml msgid "" "The cursor's position inside the [LineEdit]. When set, the text may scroll " "to accommodate it." msgstr "光标在 [LineEdit] 中的位置。设置后,文本可以滚动以适应它。" #: doc/classes/LineEdit.xml msgid "" "If [code]true[/code], the [LineEdit] will show a clear button if [code]text[/" "code] is not empty, which can be used to clear the text quickly." msgstr "" "如果为 [code]true[/code],[LineEdit] 将在 [code]text[/code] 非空时显示一个按" "钮,可以用来快速清除文本。" #: doc/classes/LineEdit.xml msgid "If [code]true[/code], the context menu will appear when right-clicked." msgstr "如果为 [code]true[/code],右键单击将出现上下文菜单。" #: doc/classes/LineEdit.xml doc/classes/RichTextLabel.xml #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], the selected text will be deselected when focus is " "lost." msgstr "如果为 [code]true[/code],则在丢失焦点时会取消选中文本。" #: doc/classes/LineEdit.xml msgid "" "If [code]false[/code], existing text cannot be modified and new text cannot " "be added." msgstr "如果为 [code]false[/code],则不能修改现在的文本,也不能添加新文本。" #: doc/classes/LineEdit.xml msgid "" "If [code]true[/code], the [LineEdit] width will increase to stay longer than " "the [member text]. It will [b]not[/b] compress if the [member text] is " "shortened." msgstr "" "如果为 [code]true[/code],则 [LineEdit] 宽度将增加到比 [member text] 长。如" "果 [member text] 被缩短,它将[b]不[/b]压缩。" #: doc/classes/LineEdit.xml msgid "" "Maximum amount of characters that can be entered inside the [LineEdit]. If " "[code]0[/code], there is no limit.\n" "When a limit is defined, characters that would exceed [member max_length] " "are truncated. This happens both for existing [member text] contents when " "setting the max length, or for new text inserted in the [LineEdit], " "including pasting. If any input text is truncated, the [signal " "text_change_rejected] signal is emitted with the truncated substring as " "parameter.\n" "[b]Example:[/b]\n" "[codeblock]\n" "text = \"Hello world\"\n" "max_length = 5\n" "# `text` becomes \"Hello\".\n" "max_length = 10\n" "text += \" goodbye\"\n" "# `text` becomes \"Hello good\".\n" "# `text_change_rejected` is emitted with \"bye\" as parameter.\n" "[/codeblock]" msgstr "" "[LineEdit] 内可输入的最大字符数。如果为 [code]0[/code],则没有限制。\n" "定义了限制时,超过 [member max_length] 的字符会被截断。适用于设置最大长度时的" "现有 [member text] 内容,以及在 [LineEdit] 中插入的新文本,包括粘贴进来的文" "本。如果任何输入的文本被截断,将触发 [signal text_change_rejected] 信号,参数" "为被截断的子串。\n" "[b]示例:[/b]\n" "[codeblock]\n" "text = \"Hello world\"\n" "max_length = 5\n" "# `text` 变成 \"Hello\"。\n" "max_length = 10\n" "text += \" goodbye\"\n" "# `text` 变成 \"Hello good\"。\n" "# 触发 `text_change_rejected`,参数为 \"bye\"。\n" "[/codeblock]" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "" "If [code]false[/code], using middle mouse button to paste clipboard will be " "disabled.\n" "[b]Note:[/b] This method is only implemented on Linux." msgstr "" "如果为 [code]false[/code],将禁用鼠标中键粘贴剪贴板。\n" "[b]注意:[/b]这个方法只在 Linux 上实现。" #: doc/classes/LineEdit.xml msgid "" "Opacity of the [member placeholder_text]. From [code]0[/code] to [code]1[/" "code]." msgstr "" "[member placeholder_text] 的不透明度。值从 [code]0[/code] 到 [code]1[/code]。" #: doc/classes/LineEdit.xml msgid "" "Text shown when the [LineEdit] is empty. It is [b]not[/b] the [LineEdit]'s " "default value (see [member text])." msgstr "" "当 [LineEdit] 为空时显示的文本。它[b]不是[/b] [LineEdit] 的默认值(见 " "[member text])。" #: doc/classes/LineEdit.xml msgid "" "Sets the icon that will appear in the right end of the [LineEdit] if there's " "no [member text], or always, if [member clear_button_enabled] is set to " "[code]false[/code]." msgstr "" "设置 [LineEdit] 右端的图标,这个图标会在没有 [member text] 时出现,如果 " "[member clear_button_enabled] 为 [code]false[/code] 则始终可见。" #: doc/classes/LineEdit.xml msgid "" "If [code]true[/code], every character is replaced with the secret character " "(see [member secret_character])." msgstr "" "如果为 [code]true[/code],则每个字符都会被替换成密码字符(见 [member " "secret_character])。" #: doc/classes/LineEdit.xml msgid "" "The character to use to mask secret input (defaults to \"*\"). Only a single " "character can be used as the secret character." msgstr "用来作为密码输入的字符(默认为 \"*\")。只能用一个字符作为密码字符。" #: doc/classes/LineEdit.xml msgid "" "If [code]false[/code], it's impossible to select the text using mouse nor " "keyboard." msgstr "如果为 [code]false[/code],则无法用鼠标或键盘选择文本。" #: doc/classes/LineEdit.xml msgid "If [code]false[/code], using shortcuts will be disabled." msgstr "如果为 [code]false[/code],快捷键将被禁用。" #: doc/classes/LineEdit.xml msgid "" "String value of the [LineEdit].\n" "[b]Note:[/b] Changing text using this property won't emit the [signal " "text_changed] signal." msgstr "" "[LineEdit] 的字符串值。\n" "[b]注意:[/b]使用这个属性更改文本不会触发 [signal text_changed] 信号。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "" "If [code]true[/code], the native virtual keyboard is shown when focused on " "platforms that support it." msgstr "" "如果为 [code]true[/code],则在获得焦点时会在支持的平台上显示原生虚拟键盘。" #: doc/classes/LineEdit.xml msgid "" "Emitted when appending text that overflows the [member max_length]. The " "appended text is truncated to fit [member max_length], and the part that " "couldn't fit is passed as the [code]rejected_substring[/code] argument." msgstr "" "当追加的文本超过了 [member max_length] 时触发。追加后的文本会被截断以适应 " "[member max_length],超出的部分会被作为 [code]rejected_substring[/code] 参数" "传递。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Emitted when the text changes." msgstr "当文本更改时触发。" #: doc/classes/LineEdit.xml msgid "Emitted when the user presses [constant KEY_ENTER] on the [LineEdit]." msgstr "当用户在 [LineEdit] 上按 [constant KEY_ENTER] 时触发。" #: doc/classes/LineEdit.xml msgid "Aligns the text on the left-hand side of the [LineEdit]." msgstr "将 [LineEdit] 的文本左对齐。" #: doc/classes/LineEdit.xml msgid "Centers the text in the middle of the [LineEdit]." msgstr "将 [LineEdit] 的文本居中。" #: doc/classes/LineEdit.xml msgid "Aligns the text on the right-hand side of the [LineEdit]." msgstr "将 [LineEdit] 的文本右对齐。" #: doc/classes/LineEdit.xml msgid "Stretches whitespaces to fit the [LineEdit]'s width." msgstr "拉伸空白以适应 [LineEdit] 的宽度。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Cuts (copies and clears) the selected text." msgstr "剪切(复制并删除)选中的文本。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Copies the selected text." msgstr "复制选中的文本。" #: doc/classes/LineEdit.xml msgid "" "Pastes the clipboard text over the selected text (or at the cursor's " "position).\n" "Non-printable escape characters are automatically stripped from the OS " "clipboard via [method String.strip_escapes]." msgstr "" "将剪贴板文本粘贴到所选文本上(或光标所在位置)。\n" "不可打印的转义字符将通过 [method String.strip_escapes] 从操作系统剪贴板中自动" "剥离。" #: doc/classes/LineEdit.xml msgid "Erases the whole [LineEdit] text." msgstr "删除 [LineEdit] 中的全部文本。" #: doc/classes/LineEdit.xml msgid "Selects the whole [LineEdit] text." msgstr "选中 [LineEdit] 中的全部文本。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Undoes the previous action." msgstr "撤销之前的操作。" #: doc/classes/LineEdit.xml msgid "Reverse the last undo action." msgstr "反转最后一个撤销动作。" #: doc/classes/LineEdit.xml doc/classes/TextEdit.xml msgid "Represents the size of the [enum MenuItems] enum." msgstr "表示 [enum MenuItems] 枚举的大小。" #: doc/classes/LineEdit.xml msgid "Color used as default tint for the clear button." msgstr "用作清除按钮默认色调的颜色。" #: doc/classes/LineEdit.xml msgid "Color used for the clear button when it's pressed." msgstr "按下清除按钮时使用的颜色。" #: doc/classes/LineEdit.xml msgid "Color of the [LineEdit]'s visual cursor (caret)." msgstr "[LineEdit]可视光标(插入符号)的颜色。" #: doc/classes/LineEdit.xml msgid "Default font color." msgstr "默认字体颜色。" #: doc/classes/LineEdit.xml msgid "Font color for selected text (inside the selection rectangle)." msgstr "选定文本的字体颜色(在选择矩形内)。" #: doc/classes/LineEdit.xml msgid "Font color when editing is disabled." msgstr "禁用编辑时的字体颜色。" #: doc/classes/LineEdit.xml msgid "Color of the selection rectangle." msgstr "选择矩形的颜色。" #: doc/classes/LineEdit.xml msgid "" "Minimum horizontal space for the text (not counting the clear button and " "content margins). This value is measured in count of space characters (i.e. " "this amount of space characters can be displayed without scrolling)." msgstr "" "文本的最小水平空间(不包括清除按钮和内容边距)。该值以空格字符的计数来衡量(即无" "需滚动即可显示空格字符的数量)。" #: doc/classes/LineEdit.xml msgid "Font used for the text." msgstr "文本使用的字体。" #: doc/classes/LineEdit.xml msgid "Texture for the clear button. See [member clear_button_enabled]." msgstr "“清除”按钮的纹理。请参阅 [member clear_button_enabled]。" #: doc/classes/LineEdit.xml msgid "Background used when [LineEdit] has GUI focus." msgstr "当 [LineEdit] 具有 GUI 焦点时使用的背景。" #: doc/classes/LineEdit.xml msgid "Default background for the [LineEdit]." msgstr "[LineEdit] 的默认背景。" #: doc/classes/LineEdit.xml msgid "" "Background used when [LineEdit] is in read-only mode ([member editable] is " "set to [code]false[/code])." msgstr "" "[LineEdit] 处于只读模式时使用的背景([member editable] 设置为 [code]false[/" "code])。" #: doc/classes/LineShape2D.xml msgid "Line shape for 2D collisions." msgstr "2D 碰撞的线形形状。" #: doc/classes/LineShape2D.xml msgid "" "Line shape for 2D collisions. It works like a 2D plane and will not allow " "any physics body to go to the negative side. Not recommended for rigid " "bodies, and usually not recommended for static bodies either because it " "forces checks against it on every frame." msgstr "" "2D 碰撞的线形形状。它像 2D 平面一样工作,不允许任何物理体向负面运动。不建议刚" "性体使用,通常也不建议静态体使用,因为它会在每个框架上强制对其进行检查。" #: doc/classes/LineShape2D.xml msgid "The line's distance from the origin." msgstr "该直线与原点的距离。" #: doc/classes/LineShape2D.xml msgid "The line's normal." msgstr "该直线的法线。" #: doc/classes/LinkButton.xml msgid "Simple button used to represent a link to some resource." msgstr "简单的按钮,用于表示对某些资源的链接。" #: doc/classes/LinkButton.xml msgid "" "This kind of button is primarily used when the interaction with the button " "causes a context change (like linking to a web page).\n" "See also [BaseButton] which contains common properties and methods " "associated with this node." msgstr "" "这种按钮主要用于与按钮的交互引起上下文变化时(如链接到网页)。\n" "参阅 [BaseButton],它包含了该节点相关的常用属性和方法。" #: doc/classes/LinkButton.xml msgid "" "Determines when to show the underline. See [enum UnderlineMode] for options." msgstr "决定何时显示下划线。参阅 [enum UnderlineMode] 的选项。" #: doc/classes/LinkButton.xml msgid "The LinkButton will always show an underline at the bottom of its text." msgstr "LinkButton 将始终在其文本底部显示下划线。" #: doc/classes/LinkButton.xml msgid "" "The LinkButton will show an underline at the bottom of its text when the " "mouse cursor is over it." msgstr "LinkButton 将在鼠标光标悬停时,在文本底部显示下划线。" #: doc/classes/LinkButton.xml msgid "The LinkButton will never show an underline at the bottom of its text." msgstr "LinkButton 永远不会在其文本底部显示下划线。" #: doc/classes/LinkButton.xml msgid "Default text [Color] of the [LinkButton]." msgstr "[LinkButton] 默认的字体颜色 [Color]。" #: doc/classes/LinkButton.xml msgid "" "Text [Color] used when the [LinkButton] is focused. Only replaces the normal " "text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "当 [LinkButton] 获得焦点时使用的文本 [Color]。只替换按钮的正常文本颜色。禁" "用、悬停和按下状态优先于这个颜色。" #: doc/classes/LinkButton.xml msgid "Text [Color] used when the [LinkButton] is being hovered." msgstr "当 [LinkButton] 被悬停时使用的文本颜色 [Color]。" #: doc/classes/LinkButton.xml msgid "Text [Color] used when the [LinkButton] is being pressed." msgstr "当 [LinkButton] 被按下时使用的文本颜色 [Color]。" #: doc/classes/LinkButton.xml msgid "The vertical space between the baseline of text and the underline." msgstr "文本基线和下划线之间的垂直空间。" #: doc/classes/LinkButton.xml msgid "[Font] of the [LinkButton]'s text." msgstr "[LinkButton] 文本的字体 [Font]。" #: doc/classes/LinkButton.xml msgid "" "[StyleBox] used when the [LinkButton] is focused. It is displayed over the " "current [StyleBox], so using [StyleBoxEmpty] will just disable the focus " "visual effect." msgstr "" "当 [LinkButton] 被聚焦时使用的 [StyleBox]。它显示在当前的 [StyleBox]上,所以" "使用 [StyleBoxEmpty] 将只是禁用焦点的视觉效果。" #: doc/classes/Listener.xml doc/classes/Listener2D.xml msgid "Overrides the location sounds are heard from." msgstr "覆盖听到声音的位置。" #: doc/classes/Listener.xml msgid "" "Once added to the scene tree and enabled using [method make_current], this " "node will override the location sounds are heard from. This can be used to " "listen from a location different from the [Camera]." msgstr "" "添加到场景树并通过 [method make_current] 启用后,这个节点将覆盖听到声音的位" "置。可以用来从与 [Camera] 不同的位置聆听。" #: doc/classes/Listener.xml msgid "Disables the listener to use the current camera's listener instead." msgstr "禁用该监听器,用当前相机的监听器代替。" #: doc/classes/Listener.xml msgid "Returns the listener's global orthonormalized [Transform]." msgstr "返回该监听器的全局正交归一化 [Transform]。" #: doc/classes/Listener.xml msgid "" "Returns [code]true[/code] if the listener was made current using [method " "make_current], [code]false[/code] otherwise.\n" "[b]Note:[/b] There may be more than one Listener marked as \"current\" in " "the scene tree, but only the one that was made current last will be used." msgstr "" "如果使用 [method make_current] 方法将该监听器标记为了当前状态,则返回 " "[code]true[/code],否则返回 [code]false[/code]。\n" "[b]注意:[/b]场景树中可能有多个被标记为“当前”的 Listener,但只会使用最后变成" "当前的那个。" #: doc/classes/Listener.xml msgid "Enables the listener. This will override the current camera's listener." msgstr "启用该监听器。将覆盖当前相机的监听器。" #: doc/classes/Listener2D.xml msgid "" "Once added to the scene tree and enabled using [method make_current], this " "node will override the location sounds are heard from. Only one [Listener2D] " "can be current. Using [method make_current] will disable the previous " "[Listener2D].\n" "If there is no active [Listener2D] in the current [Viewport], center of the " "screen will be used as a hearing point for the audio. [Listener2D] needs to " "be inside [SceneTree] to function." msgstr "" "添加到场景树并通过 [method make_current] 启用后,这个节点将覆盖听到声音的位" "置。只有一个 [Listener2D] 可以是当前的。使用 [method make_current] 将禁用之前" "的 [Listener2D]。\n" "如果在当前的 [Viewport] 中没有已激活的 [Listener2D],屏幕中心将被用作音频的聆" "听点。[Listener2D] 需要在 [SceneTree] 内才能发挥作用。" #: doc/classes/Listener2D.xml msgid "" "Disables the [Listener2D]. If it's not set as current, this method will have " "no effect." msgstr "禁用该 [Listener2D]。如果未将其设置为当前,这个方法不会产生任何效果。" #: doc/classes/Listener2D.xml msgid "Returns [code]true[/code] if this [Listener2D] is currently active." msgstr "如果这个 [Listener2D] 当前处于激活状态,则返回 [code]true[/code]。" #: doc/classes/Listener2D.xml msgid "" "Makes the [Listener2D] active, setting it as the hearing point for the " "sounds. If there is already another active [Listener2D], it will be " "disabled.\n" "This method will have no effect if the [Listener2D] is not added to " "[SceneTree]." msgstr "" "激活该 [Listener2D],将其设置为声音的聆听点。如果已经有另一个激活的 " "[Listener2D],它将被禁用。\n" "如果 [Listener2D] 未添加到 [SceneTree]中,这个方法不会产生任何效果。" #: doc/classes/MainLoop.xml msgid "Abstract base class for the game's main loop." msgstr "游戏主循环的抽象基类。" #: doc/classes/MainLoop.xml msgid "" "[MainLoop] is the abstract base class for a Godot project's game loop. It is " "inherited by [SceneTree], which is the default game loop implementation used " "in Godot projects, though it is also possible to write and use one's own " "[MainLoop] subclass instead of the scene tree.\n" "Upon the application start, a [MainLoop] implementation must be provided to " "the OS; otherwise, the application will exit. This happens automatically " "(and a [SceneTree] is created) unless a main [Script] is provided from the " "command line (with e.g. [code]godot -s my_loop.gd[/code], which should then " "be a [MainLoop] implementation.\n" "Here is an example script implementing a simple [MainLoop]:\n" "[codeblock]\n" "extends MainLoop\n" "\n" "var time_elapsed = 0\n" "var keys_typed = []\n" "var quit = false\n" "\n" "func _initialize():\n" " print(\"Initialized:\")\n" " print(\" Starting time: %s\" % str(time_elapsed))\n" "\n" "func _idle(delta):\n" " time_elapsed += delta\n" " # Return true to end the main loop.\n" " return quit\n" "\n" "func _input_event(event):\n" " # Record keys.\n" " if event is InputEventKey and event.pressed and !event.echo:\n" " keys_typed.append(OS.get_scancode_string(event.scancode))\n" " # Quit on Escape press.\n" " if event.scancode == KEY_ESCAPE:\n" " quit = true\n" " # Quit on any mouse click.\n" " if event is InputEventMouseButton:\n" " quit = true\n" "\n" "func _finalize():\n" " print(\"Finalized:\")\n" " print(\" End time: %s\" % str(time_elapsed))\n" " print(\" Keys typed: %s\" % var2str(keys_typed))\n" "[/codeblock]" msgstr "" "[MainLoop] 是 Godot 项目中游戏循环的抽象基类。它被 [SceneTree] 继承,后者是 " "Godot 项目中使用的游戏循环的默认实现,不过也可以不使用场景树,自行编写并使用 " "[MainLoop] 的子类。\n" "在应用程序启动时,必须向操作系统提供一个 [MainLoop] 实现;否则,应用程序将退" "出。这个过程会自动发生(并会创建一个 [SceneTree]),除非从命令行提供了一个主 " "[Script](例如:[code]godot -s my_loop.gd[/code]),这个脚本应该实现 " "[MainLoop]。\n" "下面是实现简单 [MainLoop] 的脚本例子:\n" "[codeblock]\n" "extends MainLoop\n" "\n" "var time_elapsed = 0\n" "var keys_typed = []\n" "var quit = false\n" "\n" "func _initialize():\n" " print(\"初始化:\")\n" " print(\" 启动时间:%s\" % str(time_elapsed))\n" "\n" "func _idle(delta):\n" " time_elapsed += delta\n" " # 返回 true 会结束主循环。\n" " return quit\n" "\n" "func _input_event(event):\n" " # 记录按键。\n" " if event is InputEventKey and event.pressed and !event.echo:\n" " keys_typed.append(OS.get_scancode_string(event.scancode))\n" " # 按 ESC 退出。\n" " if event.scancode == KEY_ESCAPE:\n" " quit = true\n" " # 按任意鼠标按键退出。\n" " if event is InputEventMouseButton:\n" " quit = true\n" "\n" "func _finalize():\n" " print(\"完成:\")\n" " print(\" 结束时间:%s\" % str(time_elapsed))\n" " print(\" 按下按键:%s\" % var2str(keys_typed))\n" "[/codeblock]" #: doc/classes/MainLoop.xml msgid "" "Called when files are dragged from the OS file manager and dropped in the " "game window. The arguments are a list of file paths and the identifier of " "the screen where the drag originated." msgstr "" "当文件从操作系统的文件管理器中被拖到游戏窗口中时被调用。参数是一个文件路径列" "表和拖动屏幕的标识符。" #: doc/classes/MainLoop.xml msgid "Called before the program exits." msgstr "在程序退出前调用。" #: doc/classes/MainLoop.xml msgid "" "Called when the user performs an action in the system global menu (e.g. the " "Mac OS menu bar)." msgstr "当用户在系统全局菜单(如 Mac OS的菜单栏)中执行动作时被调用。" #: doc/classes/MainLoop.xml msgid "" "Called each idle frame with the time since the last idle frame as argument " "(in seconds). Equivalent to [method Node._process].\n" "If implemented, the method must return a boolean value. [code]true[/code] " "ends the main loop, while [code]false[/code] lets it proceed to the next " "frame." msgstr "" "在每个空闲帧中调用,参数为自上一个空闲帧以来的时间(以秒为单位)。相当于 " "[method Node._process]。\n" "如果实施,该方法必须返回一个布尔值。[code]true[/code] 会结束主循环,而 " "[code]false[/code] 会让它进入下一帧。" #: doc/classes/MainLoop.xml msgid "Called once during initialization." msgstr "在初始化时调用一次。" #: doc/classes/MainLoop.xml msgid "Called whenever an [InputEvent] is received by the main loop." msgstr "每当主循环接收到 [InputEvent] 时,就会调用。" #: doc/classes/MainLoop.xml msgid "" "Deprecated callback, does not do anything. Use [method _input_event] to " "parse text input. Will be removed in Godot 4.0." msgstr "" "已废弃的回调,不做任何事情。请使用 [method _input_event] 来解析文本输入。在 " "Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "" "Called each physics frame with the time since the last physics frame as " "argument ([code]delta[/code], in seconds). Equivalent to [method Node." "_physics_process].\n" "If implemented, the method must return a boolean value. [code]true[/code] " "ends the main loop, while [code]false[/code] lets it proceed to the next " "frame." msgstr "" "在每个物理帧中调用,并将自上一个物理帧以来的时间作为参数([code]delta[/" "code],单位为秒)。相当于 [method Node._physics_process]。\n" "如果实现,该方法必须返回一个布尔值。[code]true[/code] 会结束主循环,而 " "[code]false[/code] 会让它进入下一帧。" #: doc/classes/MainLoop.xml msgid "" "Should not be called manually, override [method _finalize] instead. Will be " "removed in Godot 4.0." msgstr "不应手动调用,请覆盖 [method _finalize]。在 Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "" "Should not be called manually, override [method _idle] instead. Will be " "removed in Godot 4.0." msgstr "不应手动调用,请覆盖 [method _idle]。在 Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "" "Should not be called manually, override [method _initialize] instead. Will " "be removed in Godot 4.0." msgstr "不应手动调用,请覆盖 [method _initialize]。在 Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "" "Should not be called manually, override [method _input_event] instead. Will " "be removed in Godot 4.0." msgstr "不应手动调用,请覆盖 [method _input_event]。在 Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "" "Should not be called manually, override [method _input_text] instead. Will " "be removed in Godot 4.0." msgstr "不应手动调用,请覆盖 [method _input_text]。在 Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "" "Should not be called manually, override [method _iteration] instead. Will be " "removed in Godot 4.0." msgstr "不应手动调用,请覆盖 [method _iteration]。在 Godot 4.0 中会被删除。" #: doc/classes/MainLoop.xml msgid "Emitted when a user responds to a permission request." msgstr "当用户对权限请求作出反应时发出。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the mouse enters the game window.\n" "Implemented on desktop and web platforms." msgstr "" "当鼠标进入游戏窗口时,从操作系统收到的通知。\n" "在桌面和 Web 平台上实现。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the mouse leaves the game window.\n" "Implemented on desktop and web platforms." msgstr "" "当鼠标离开游戏窗口时,从操作系统收到的通知。\n" "在桌面和 Web 平台上实现。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the game window is focused.\n" "Implemented on all platforms." msgstr "" "当游戏窗口获得焦点时,从操作系统收到的通知。\n" "在所有平台上实现。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the game window is unfocused.\n" "Implemented on all platforms." msgstr "" "当游戏窗口失去焦点时,从操作系统收到的通知。\n" "在所有平台上实现。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when a quit request is sent (e.g. closing " "the window with a \"Close\" button or Alt+F4).\n" "Implemented on desktop platforms." msgstr "" "当发出退出请求时,从操作系统收到的通知(例如用“关闭”按钮或 Alt+F4 关闭窗" "口)。\n" "在桌面平台上实现。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when a go back request is sent (e.g. " "pressing the \"Back\" button on Android).\n" "Specific to the Android platform." msgstr "" "当发出返回请求时,从操作系统收到的通知(例如在 Android 系统上按下“返回”按" "钮)。\n" "仅限 Android 平台。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when an unfocus request is sent (e.g. " "another OS window wants to take the focus).\n" "No supported platforms currently send this notification." msgstr "" "当发出取消焦点请求时,从操作系统收到的通知(例如另一个操作系统窗口想要获得焦" "点)。\n" "支持的平台目前都不会发送这个通知。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the application is exceeding its " "allocated memory.\n" "Specific to the iOS platform." msgstr "" "当应用程序超过其分配的内存时,从操作系统收到的通知。\n" "仅限 iOS 平台。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received when translations may have changed. Can be triggered " "by the user changing the locale. Can be used to respond to language changes, " "for example to change the UI strings on the fly. Useful when working with " "the built-in translation support, like [method Object.tr]." msgstr "" "当翻译可能发生变化时收到的通知。会在用户改变区域设置时触发。可以用来响应语言" "的变化,例如实时改变 UI 字符串。可配合内置的翻译支持使用,比如 [method " "Object.tr]。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when a request for \"About\" information " "is sent.\n" "Specific to the macOS platform." msgstr "" "当发出“关于”信息请求时,从操作系统收到的通知。\n" "仅限 macOS 平台。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from Godot's crash handler when the engine is about to " "crash.\n" "Implemented on desktop platforms if the crash handler is enabled." msgstr "" "当引擎即将崩溃时,从Godot的崩溃处理程序收到的通知。\n" "如果崩溃处理程序被启用,这只会在桌面平台上实现。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when an update of the Input Method Engine " "occurs (e.g. change of IME cursor position or composition string).\n" "Specific to the macOS platform." msgstr "" "当输入法引擎发生更新时,从操作系统收到的通知(例如,IME 光标位置或组成字符串" "的变化)。\n" "仅限 macOS 平台。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the app is resumed.\n" "Specific to the Android platform." msgstr "" "当应用恢复时,从操作系统收到的通知。\n" "仅限 Android 平台。" #: doc/classes/MainLoop.xml doc/classes/Node.xml msgid "" "Notification received from the OS when the app is paused.\n" "Specific to the Android platform." msgstr "" "当应用暂停时,从操作系统收到的通知。\n" "仅限 Android 平台。" #: doc/classes/MarginContainer.xml msgid "Simple margin container." msgstr "简单的边距容器。" #: doc/classes/MarginContainer.xml msgid "" "Adds a top, left, bottom, and right margin to all [Control] nodes that are " "direct children of the container. To control the [MarginContainer]'s margin, " "use the [code]margin_*[/code] theme properties listed below.\n" "[b]Note:[/b] Be careful, [Control] margin values are different than the " "constant margin values. If you want to change the custom margin values of " "the [MarginContainer] by code, you should use the following examples:\n" "[codeblock]\n" "# This code sample assumes the current script is extending MarginContainer.\n" "var margin_value = 100\n" "add_constant_override(\"margin_top\", margin_value)\n" "add_constant_override(\"margin_left\", margin_value)\n" "add_constant_override(\"margin_bottom\", margin_value)\n" "add_constant_override(\"margin_right\", margin_value)\n" "[/codeblock]" msgstr "" "为所有作为容器的直接子节点的 [Control] 节点添加顶部、左侧、底部和右侧的边距。" "要控制 [MarginContainer] 的边距,请使用下面列出的 [code]margin_*[/code] 主题" "属性。\n" "[b]注意:[/b]要小心,[Control] 的 margin 值与常量 margin 值不同。如果你想通过" "代码改变 [MarginContainer] 的自定义边距值,应该使用下面的例子:\n" "[codeblock]\n" "# 这个代码示例假定当前脚本扩展自 MarginContainer。\n" "var margin_value = 100\n" "add_constant_override(\"margin_top\", margin_value)\n" "add_constant_override(\"margin_left\", margin_value)\n" "add_constant_override(\"margin_bottom\", margin_value)\n" "add_constant_override(\"margin_right\", margin_value)\n" "[/codeblock]" #: doc/classes/MarginContainer.xml msgid "" "All direct children of [MarginContainer] will have a bottom margin of " "[code]margin_bottom[/code] pixels." msgstr "" "所有 [MarginContainer] 的直接子节点将有 [code]margin_bottom[/code] 像素的底边" "距。" #: doc/classes/MarginContainer.xml msgid "" "All direct children of [MarginContainer] will have a left margin of " "[code]margin_left[/code] pixels." msgstr "" "所有 [MarginContainer] 的直接子节点将有 [code]margin_left[/code] 像素的左边" "距。" #: doc/classes/MarginContainer.xml msgid "" "All direct children of [MarginContainer] will have a right margin of " "[code]margin_right[/code] pixels." msgstr "" "所有 [MarginContainer] 的直接子节点将有 [code]margin_right[/code] 像素的右边" "距。" #: doc/classes/MarginContainer.xml msgid "" "All direct children of [MarginContainer] will have a top margin of " "[code]margin_top[/code] pixels." msgstr "" "所有 [MarginContainer] 的直接子节点将有 [code]margin_top[/code] 像素的顶边" "距。" #: doc/classes/Marshalls.xml msgid "Data transformation (marshalling) and encoding helpers." msgstr "数据转换(marshalling)和编码辅助工具。" #: doc/classes/Marshalls.xml msgid "Provides data transformation and encoding utility functions." msgstr "提供进行数据转换和编码的实用函数。" #: doc/classes/Marshalls.xml msgid "" "Returns a decoded [PoolByteArray] corresponding to the Base64-encoded string " "[code]base64_str[/code]." msgstr "" "返回对应于 Base64 编码字符串 [code]base64_str[/code] 的解码的 " "[PoolByteArray]。" #: doc/classes/Marshalls.xml msgid "" "Returns a decoded string corresponding to the Base64-encoded string " "[code]base64_str[/code]." msgstr "" "返回与 Base64 编码的字符串 [code]base64_str[/code] 相对应的解码字符串。" #: doc/classes/Marshalls.xml msgid "" "Returns a decoded [Variant] corresponding to the Base64-encoded string " "[code]base64_str[/code]. If [code]allow_objects[/code] is [code]true[/code], " "decoding objects is allowed.\n" "[b]Warning:[/b] Deserialized objects can contain code which gets executed. " "Do not use this option if the serialized object comes from untrusted sources " "to avoid potential security threats such as remote code execution." msgstr "" "返回一个对应于Base64编码的字符串[code]base64_str[/code]的解码[Variant]。如果" "[code]allow_objects[/code]是[code]true[/code],则允许对对象进行解码。\n" "[b]警告:[/b]反序列化的对象可能包含会被执行的代码。如果序列化的对象来自不受信" "任的来源,请不要使用这个选项,以避免潜在的安全威胁,如远程代码执行。" #: doc/classes/Marshalls.xml msgid "Returns a Base64-encoded string of a given [PoolByteArray]." msgstr "返回给定 [PoolByteArray] 的 Base64 编码的字符串。" #: doc/classes/Marshalls.xml msgid "" "Returns a Base64-encoded string of the UTF-8 string [code]utf8_str[/code]." msgstr "返回 UTF-8 字符串 [code]utf8_str[/code] 的一个 Base64 编码的字符串。" #: doc/classes/Marshalls.xml msgid "" "Returns a Base64-encoded string of the [Variant] [code]variant[/code]. If " "[code]full_objects[/code] is [code]true[/code], encoding objects is allowed " "(and can potentially include code)." msgstr "" "返回经过 Base64 编码的 [Variant] [code]variant[/code] 的字符串。如果 " "[code]full_objects[/code] 为 [code]true[/code],则允许将对象进行编码(有可能" "包括代码)。" #: doc/classes/Material.xml msgid "Abstract base [Resource] for coloring and shading geometry." msgstr "用于为几何体上色(Coloring)和着色(Shading)的 [Resource] 抽象基类。" #: doc/classes/Material.xml msgid "" "Material is a base [Resource] used for coloring and shading geometry. All " "materials inherit from it and almost all [VisualInstance] derived nodes " "carry a Material. A few flags and parameters are shared between all material " "types and are configured here." msgstr "" "Material 是用于为几何体上色和着色的 [Resource] 基类。所有的材质都继承自它,几" "乎所有的 [VisualInstance] 派生节点都带有材质。有几个标志和参数在所有材质类型" "之间是共享的,并在这里进行配置。" #: doc/classes/Material.xml msgid "" "Sets the [Material] to be used for the next pass. This renders the object " "again using a different material.\n" "[b]Note:[/b] This only applies to [SpatialMaterial]s and [ShaderMaterial]s " "with type \"Spatial\"." msgstr "" "设置下一阶段使用的 [Material]。这将使用不同的材质再次渲染对象。\n" "[b]注意:[/b]仅适用于 [SpatialMaterial] 和“Spatial”类型的 [ShaderMaterial]。" #: doc/classes/Material.xml msgid "" "Sets the render priority for transparent objects in 3D scenes. Higher " "priority objects will be sorted in front of lower priority objects.\n" "[b]Note:[/b] This only applies to sorting of transparent objects. This will " "not impact how transparent objects are sorted relative to opaque objects. " "This is because opaque objects are not sorted, while transparent objects are " "sorted from back to front (subject to priority)." msgstr "" "设置 3D 场景中透明物体的渲染优先级。优先级高的物体将被排序在优先级低的物体前" "面。\n" "[b]注意:[/b]仅适用于透明物体的排序。这不会影响透明物体相对于不透明物体的排序" "方式。这是因为不透明对象不被排序,而透明对象则从后往前排序(取决于优先级)。" #: doc/classes/Material.xml msgid "Maximum value for the [member render_priority] parameter." msgstr "[member render_priority] 参数的最大值。" #: doc/classes/Material.xml msgid "Minimum value for the [member render_priority] parameter." msgstr "[member render_priority] 参数的最小值。" #: doc/classes/MenuButton.xml msgid "Special button that brings up a [PopupMenu] when clicked." msgstr "点击后会弹出 [PopupMenu] 的特殊按钮。" #: doc/classes/MenuButton.xml msgid "" "Special button that brings up a [PopupMenu] when clicked.\n" "New items can be created inside this [PopupMenu] using [code]get_popup()." "add_item(\"My Item Name\")[/code]. You can also create them directly from " "the editor. To do so, select the [MenuButton] node, then in the toolbar at " "the top of the 2D editor, click [b]Items[/b] then click [b]Add[/b] in the " "popup. You will be able to give each item new properties.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node." msgstr "" "点击后会弹出 [PopupMenu] 的特殊按钮。\n" "可以使用 [code]get_popup().add_item(\"菜单项目名称\")[/code] 在这个 " "[PopupMenu] 中创建新项目。你也可以直接从编辑器中创建它们。要做到这点,选择 " "[MenuButton] 节点,然后在 2D 编辑器顶部的工具栏中,点击[b]项目[/b],然后点击" "弹出窗口中的[b]添加[/b]。你将能够赋予每个项目新的属性。\n" "与该节点相关的常用属性和方法请参阅 [BaseButton]。" #: doc/classes/MenuButton.xml doc/classes/OptionButton.xml msgid "" "Returns the [PopupMenu] contained in this button.\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回这个按钮中包含的 [PopupMenu]。\n" "[b]警告:[/b]这是一个必需的内部节点,移除和释放它可能会导致崩溃。如果你想隐藏" "它或它的任何子节点,请使用其 [member CanvasItem.visible] 属性。" #: doc/classes/MenuButton.xml msgid "" "If [code]true[/code], shortcuts are disabled and cannot be used to trigger " "the button." msgstr "如果为 [code]true[/code],快捷方式将被禁用,无法用于触发按钮。" #: doc/classes/MenuButton.xml msgid "" "If [code]true[/code], when the cursor hovers above another [MenuButton] " "within the same parent which also has [code]switch_on_hover[/code] enabled, " "it will close the current [MenuButton] and open the other one." msgstr "" "如果为 [code]true[/code],当光标悬停在同一父级中也启用了 " "[code]switch_on_hover[/code] 的另一个 [MenuButton] 上方时,它将关闭当前的 " "[MenuButton] 并打开另一个。" #: doc/classes/MenuButton.xml msgid "Emitted when [PopupMenu] of this MenuButton is about to show." msgstr "当此 MenuButton 的 [PopupMenu] 即将显示时触发。" #: doc/classes/MenuButton.xml msgid "Default text [Color] of the [MenuButton]." msgstr "[MenuButton] 默认的字体 [Color] 颜色。" #: doc/classes/MenuButton.xml msgid "Text [Color] used when the [MenuButton] is disabled." msgstr "[MenuButton] 被禁用时的字体 [Color] 颜色。" #: doc/classes/MenuButton.xml msgid "" "Text [Color] used when the [MenuButton] is focused. Only replaces the normal " "text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "当 [MenuButton] 获得焦点时使用的文本 [Color]。只替换按钮的正常文本颜色。禁" "用、悬停和按下状态优先于这个颜色。" #: doc/classes/MenuButton.xml msgid "Text [Color] used when the [MenuButton] is being hovered." msgstr "当鼠标在 [MenuButton] 上悬停时使用的字体 [Color] 颜色。" #: doc/classes/MenuButton.xml msgid "Text [Color] used when the [MenuButton] is being pressed." msgstr "当 [MenuButton] 被按下时使用的字体 [Color] 颜色。" #: doc/classes/MenuButton.xml msgid "The horizontal space between [MenuButton]'s icon and text." msgstr "[MenuButton] 的文字和图标之间的水平间隙。" #: doc/classes/MenuButton.xml msgid "[Font] of the [MenuButton]'s text." msgstr "[MenuButton] 文本的 [Font]。" #: doc/classes/MenuButton.xml msgid "[StyleBox] used when the [MenuButton] is disabled." msgstr "当 [MenuButton] 被禁用时使用的 [StyleBox]。" #: doc/classes/MenuButton.xml msgid "" "[StyleBox] used when the [MenuButton] is focused. It is displayed over the " "current [StyleBox], so using [StyleBoxEmpty] will just disable the focus " "visual effect." msgstr "" "当 [MenuButton] 被聚焦时使用的 [StyleBox]。它显示在当前的 [StyleBox] 上,所以" "使用 [StyleBoxEmpty] 将只是禁用焦点的视觉效果。" #: doc/classes/MenuButton.xml msgid "[StyleBox] used when the [MenuButton] is being hovered." msgstr "当鼠标在 [MenuButton] 上悬停时使用的 [StyleBox] 样式盒。" #: doc/classes/MenuButton.xml msgid "Default [StyleBox] for the [MenuButton]." msgstr "[MenuButton]的默认[StyleBox]样式盒。" #: doc/classes/MenuButton.xml msgid "[StyleBox] used when the [MenuButton] is being pressed." msgstr "[MenuButton]被按下时的[StyleBox]样式盒。" #: doc/classes/Mesh.xml msgid "A [Resource] that contains vertex array-based geometry." msgstr "一种包含基于顶点数组的几何资源。" #: doc/classes/Mesh.xml msgid "" "Mesh is a type of [Resource] that contains vertex array-based geometry, " "divided in [i]surfaces[/i]. Each surface contains a completely separate " "array and a material used to draw it. Design wise, a mesh with multiple " "surfaces is preferred to a single surface, because objects created in 3D " "editing software commonly contain multiple materials." msgstr "" "网格是一种包含了基于顶点数组的几何资源。网格被分为各种[i]平面[/i],每一个平面" "包含了一个完整的、单独的顶点数组和材质用来绘制它。通过明智的设计,一个由多个" "面组成的网格胜过单个面的,这是因为在3D编辑软件中,一个物体通常包含多种材质。" #: doc/classes/Mesh.xml msgid "" "Calculate a [ConvexPolygonShape] from the mesh.\n" "If [code]clean[/code] is [code]true[/code] (default), duplicate and interior " "vertices are removed automatically. You can set it to [code]false[/code] to " "make the process faster if not needed.\n" "If [code]simplify[/code] is [code]true[/code], the geometry can be further " "simplified to reduce the amount of vertices. Disabled by default." msgstr "" "从网格中计算出 [ConvexPolygonShape] 。\n" "如果 [code]clean[/code] 是 [code]true[/code] (默认),重复的和内部的顶点会被" "自动移除。你可以把它设为 [code]false[/code] 来使这个过程更快,如果不需要的" "话。\n" "如果[code]simplify[/code]是[code]true[/code],可以进一步简化几何体以减少顶点" "的数量。默认情况下是禁用的。" #: doc/classes/Mesh.xml msgid "" "Calculate an outline mesh at a defined offset (margin) from the original " "mesh.\n" "[b]Note:[/b] This method typically returns the vertices in reverse order (e." "g. clockwise to counterclockwise)." msgstr "" "以一定的偏移量(边距),计算出该网格的外轮廓。\n" "[b]注意:[/b]这个方法实际上反序返回顶点(例如输入顺时针,返回逆时针)。" #: doc/classes/Mesh.xml msgid "Calculate a [ConcavePolygonShape] from the mesh." msgstr "从网格中计算出[ConcavePolygonShape]。" #: doc/classes/Mesh.xml msgid "Generate a [TriangleMesh] from the mesh." msgstr "从网格生成[TriangleMesh]。" #: doc/classes/Mesh.xml msgid "" "Returns the smallest [AABB] enclosing this mesh in local space. Not affected " "by [code]custom_aabb[/code]. See also [method VisualInstance." "get_transformed_aabb].\n" "[b]Note:[/b] This is only implemented for [ArrayMesh] and [PrimitiveMesh]." msgstr "" "返回局部空间中包围这个网格的最小的 [AABB]。不受 [code]custom_aabb[/code] 的影" "响。参阅 [method VisualInstance.get_transformed_aabb]。\n" "[b]注意:[/b]这只对 [ArrayMesh] 和 [PrimitiveMesh] 实现。" #: doc/classes/Mesh.xml msgid "" "Returns all the vertices that make up the faces of the mesh. Each three " "vertices represent one triangle." msgstr "返回所有在这个网格中,构成面的顶点。每三个顶点代表一个三角形。" #: doc/classes/Mesh.xml msgid "Returns the amount of surfaces that the [Mesh] holds." msgstr "返回该网格的面数。" #: doc/classes/Mesh.xml msgid "" "Returns the arrays for the vertices, normals, uvs, etc. that make up the " "requested surface (see [method ArrayMesh.add_surface_from_arrays])." msgstr "" "返回所有组成面所需的东西构成的数组的数组,例如顶点,法向,UV等。(参阅" "[method ArrayMesh.add_surface_from_arrays])。" #: doc/classes/Mesh.xml msgid "Returns the blend shape arrays for the requested surface." msgstr "返回所需面的混合形状数组。" #: doc/classes/Mesh.xml msgid "" "Returns a [Material] in a given surface. Surface is rendered using this " "material." msgstr "返回给定面的[Material]材质。面将由该材质来渲染。" #: doc/classes/Mesh.xml msgid "" "Sets a [Material] for a given surface. Surface will be rendered using this " "material." msgstr "设置给定面的[Material]材质。该面将会使用此材质渲染。" #: doc/classes/Mesh.xml msgid "" "Sets a hint to be used for lightmap resolution in [BakedLightmap]. Overrides " "[member BakedLightmap.default_texels_per_unit]." msgstr "" "设置提示,用于[BakedLightmap]中的光照贴图分辨率。重写[member BakedLightmap." "default_texels_per_unit]。" #: doc/classes/Mesh.xml msgid "Render array as points (one vertex equals one point)." msgstr "将顶点数组渲染为点阵(一个顶点对应一个点阵中的点)。" #: doc/classes/Mesh.xml msgid "Render array as lines (every two vertices a line is created)." msgstr "将顶点组渲染为线条(每两个顶点之间创建一条连线)。" #: doc/classes/Mesh.xml msgid "Render array as line strip." msgstr "将顶点组渲染为线条。" #: doc/classes/Mesh.xml msgid "Render array as line loop (like line strip, but closed)." msgstr "将数组渲染成线状环(像线条,但是封闭的)。" #: doc/classes/Mesh.xml msgid "Render array as triangles (every three vertices a triangle is created)." msgstr "将顶点组渲染为三角形(每三个相邻顶点创建一个三角形)。" #: doc/classes/Mesh.xml msgid "Render array as triangle strips." msgstr "将顶点组渲染为三角形线框。" #: doc/classes/Mesh.xml msgid "Render array as triangle fans." msgstr "将数组渲染成三角形扇形。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Blend shapes are normalized." msgstr "混合形状是被归一化了的。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Blend shapes are relative to base weight." msgstr "混合形状相对于基础的权重。" #: doc/classes/Mesh.xml msgid "" "Mesh array contains vertices. All meshes require a vertex array so this " "should always be present." msgstr "" "网格组包含许多顶点。每一个网格都需要一个顶点数组,所以这应该持久化储存。" #: doc/classes/Mesh.xml msgid "Mesh array contains normals." msgstr "网格组包含法线。" #: doc/classes/Mesh.xml msgid "Mesh array contains tangents." msgstr "网格组包含切向。" #: doc/classes/Mesh.xml msgid "Mesh array contains colors." msgstr "网格组包含颜色。" #: doc/classes/Mesh.xml msgid "Mesh array contains UVs." msgstr "网格组包含UV。" #: doc/classes/Mesh.xml msgid "Mesh array contains second UV." msgstr "网格组包含第二套UV。" #: doc/classes/Mesh.xml msgid "Mesh array contains bones." msgstr "网格组包含骨骼。" #: doc/classes/Mesh.xml msgid "Mesh array contains bone weights." msgstr "网格组包含骨骼权重。" #: doc/classes/Mesh.xml msgid "Mesh array uses indices." msgstr "网格组使用索引。" #: doc/classes/Mesh.xml msgid "" "Used internally to calculate other [code]ARRAY_COMPRESS_*[/code] enum " "values. Do not use." msgstr "内部用于计算其他[code]ARRAY_COMPRESS_*[/code]枚举值。不要使用。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed (half float) vertex array." msgstr "用于标记压缩(半精度浮点)顶点数组的标志。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed (half float) normal array." msgstr "曾经用于标记压缩(半精度浮点)法向数组的 Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed (half float) tangent array." msgstr "曾经用于标记压缩(半精度浮点)切向数组的Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed (half float) color array." msgstr "曾用于标记压缩(半精度浮点)颜色数组的Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed (half float) UV coordinates array." msgstr "曾用于标记压缩(半精度浮点)UV 坐标数组的 Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "" "Flag used to mark a compressed (half float) UV coordinates array for the " "second UV coordinates." msgstr "曾用于标记第二套UV坐标的压缩(半精度浮点)UV坐标数组的Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed bone array." msgstr "用于标记压缩骨骼数组的标志。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed (half float) weight array." msgstr "用于标记压缩(半精度浮点)权重数组的标志。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark a compressed index array." msgstr "曾用于标记压缩索引数组的Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark that the array contains 2D vertices." msgstr "曾用于标记包含2D顶点的数组的Flag。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "Flag used to mark that the array uses 16-bit bones instead of 8-bit." msgstr "用于标记数组使用16位骨骼而不是8位的标志。" #: doc/classes/Mesh.xml doc/classes/VisualServer.xml msgid "" "Flag used to mark that the array uses an octahedral representation of normal " "and tangent vectors rather than cartesian." msgstr "标志用于标记数组使用法线和切线向量的八面表示法,而不是笛卡尔式。" #: doc/classes/Mesh.xml msgid "" "Used to set flags [constant ARRAY_COMPRESS_VERTEX], [constant " "ARRAY_COMPRESS_NORMAL], [constant ARRAY_COMPRESS_TANGENT], [constant " "ARRAY_COMPRESS_COLOR], [constant ARRAY_COMPRESS_TEX_UV], [constant " "ARRAY_COMPRESS_TEX_UV2], [constant ARRAY_COMPRESS_WEIGHTS], and [constant " "ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION] quickly." msgstr "" "用于快速设置标志[constant ARRAY_COMPRESS_VERTEX], [constant " "ARRAY_COMPRESS_NORMAL], [constant ARRAY_COMPRESS_TANGENT], [constant " "ARRAY_COMPRESS_COLOR], [constant ARRAY_COMPRESS_TEX_UV], [constant " "ARRAY_COMPRESS_TEX_UV2] , [constant ARRAY_COMPRESS_WEIGHTS], 和[constant " "ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION] 。" #: doc/classes/Mesh.xml msgid "Array of vertices." msgstr "顶点数组。" #: doc/classes/Mesh.xml msgid "Array of normals." msgstr "法线数组。" #: doc/classes/Mesh.xml msgid "Array of tangents as an array of floats, 4 floats per tangent." msgstr "切向数组。每一个切向数据由四个float变量描述。" #: doc/classes/Mesh.xml msgid "Array of colors." msgstr "颜色数组。" #: doc/classes/Mesh.xml msgid "Array of UV coordinates." msgstr "UV 坐标数组。" #: doc/classes/Mesh.xml msgid "Array of second set of UV coordinates." msgstr "第二套UV坐标数组。" #: doc/classes/Mesh.xml msgid "Array of bone data." msgstr "骨骼数据的数组。" #: doc/classes/Mesh.xml msgid "Array of weights." msgstr "权重数组。" #: doc/classes/Mesh.xml msgid "Array of indices." msgstr "索引数组。" #: doc/classes/MeshDataTool.xml msgid "Helper tool to access and edit [Mesh] data." msgstr "用于帮助编辑和使用 [Mesh] 网格数据的工具。" #: doc/classes/MeshDataTool.xml msgid "" "MeshDataTool provides access to individual vertices in a [Mesh]. It allows " "users to read and edit vertex data of meshes. It also creates an array of " "faces and edges.\n" "To use MeshDataTool, load a mesh with [method create_from_surface]. When you " "are finished editing the data commit the data to a mesh with [method " "commit_to_surface].\n" "Below is an example of how MeshDataTool may be used.\n" "[codeblock]\n" "var mesh = ArrayMesh.new()\n" "mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, CubeMesh.new()." "get_mesh_arrays())\n" "var mdt = MeshDataTool.new()\n" "mdt.create_from_surface(mesh, 0)\n" "for i in range(mdt.get_vertex_count()):\n" " var vertex = mdt.get_vertex(i)\n" " # In this example we extend the mesh by one unit, which results in " "separated faces as it is flat shaded.\n" " vertex += mdt.get_vertex_normal(i)\n" " # Save your change.\n" " mdt.set_vertex(i, vertex)\n" "mesh.surface_remove(0)\n" "mdt.commit_to_surface(mesh)\n" "var mi = MeshInstance.new()\n" "mi.mesh = mesh\n" "add_child(mi)\n" "[/codeblock]\n" "See also [ArrayMesh], [ImmediateGeometry] and [SurfaceTool] for procedural " "geometry generation.\n" "[b]Note:[/b] Godot uses clockwise [url=https://learnopengl.com/Advanced-" "OpenGL/Face-culling]winding order[/url] for front faces of triangle " "primitive modes." msgstr "" "MeshDataTool 提供对 [Mesh] 中单个顶点的访问。它允许用户读取和编辑网格的顶点数" "据。还可以创建面和边的数组。\n" "要使用 MeshDataTool,请使用 [method create_from_surface] 加载网格。当完成编辑" "数据后,用 [method commit_to_surface] 将数据提交给 Mesh。\n" "下面是如何使用 MeshDataTool 的例子。\n" "[codeblock]\n" "var mesh = ArrayMesh.new()\n" "mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, CubeMesh.new()." "get_mesh_arrays())\n" "var mdt = MeshDataTool.new()\n" "mdt.create_from_surface(mesh, 0)\n" "for i in range(mdt.get_vertex_count()):\n" " var vertex = mdt.get_vertex(i)\n" " # 在这个例子中,我们将Mesh扩展了一个单元,这样就会产生分离的面,因为它是" "平面阴影。\n" " vertex += mdt.get_vertex_normal(i)\n" " # 保存你的改动。\n" " mdt.set_vertex(i, vertex)\n" "mesh.surface_remove(0)\n" "mdt.commit_to_surface(mesh)\n" "var mi = MeshInstance.new()\n" "mi.mesh = mesh\n" "add_child(mi)\n" "[/codeblock]\n" "参阅 [ArrayMesh]、[ImmediateGeometry] 和 [SurfaceTool] 的程序性几何体生成。\n" "[b]注意:[/b]Godot 对三角形图元模式的前端面使用顺时针[url=https://" "learnopengl.com/Advanced-OpenGL/Face-culling]缠绕顺序[/url]。" #: doc/classes/MeshDataTool.xml msgid "Clears all data currently in MeshDataTool." msgstr "将当前MeshDataTool中所有的数据全部清除。" #: doc/classes/MeshDataTool.xml msgid "Adds a new surface to specified [Mesh] with edited data." msgstr "使用编辑后的数据,向特定的[Mesh]中添加一个新的面。" #: doc/classes/MeshDataTool.xml msgid "" "Uses specified surface of given [Mesh] to populate data for MeshDataTool.\n" "Requires [Mesh] with primitive type [constant Mesh.PRIMITIVE_TRIANGLES]." msgstr "" "使用给定 [Mesh] 的指定表面来填充 MeshDataTool 的数据。\n" "要求 [Mesh] 具有基本类型 [constant Mesh.PRIMITIVE_TRIANGLES]。" #: doc/classes/MeshDataTool.xml msgid "Returns the number of edges in this [Mesh]." msgstr "返回这个[Mesh]的边数。" #: doc/classes/MeshDataTool.xml msgid "Returns array of faces that touch given edge." msgstr "返回与给定边相邻的面数组。" #: doc/classes/MeshDataTool.xml msgid "Returns meta information assigned to given edge." msgstr "返回给定边的元数据。" #: doc/classes/MeshDataTool.xml msgid "" "Returns index of specified vertex connected to given edge.\n" "Vertex argument can only be 0 or 1 because edges are comprised of two " "vertices." msgstr "" "返回连接到给定边的指定顶点的索引。\n" "顶点参数只能是0或1,因为边是由两个顶点组成的。" #: doc/classes/MeshDataTool.xml msgid "Returns the number of faces in this [Mesh]." msgstr "返回这个[Mesh]中的面数。" #: doc/classes/MeshDataTool.xml msgid "" "Returns specified edge associated with given face.\n" "Edge argument must be either 0, 1, or 2 because a face only has three edges." msgstr "" "返回与给定面关联的指定边。\n" "边参数必须是 0、1、2 之一,因为面只有 3 条边。" #: doc/classes/MeshDataTool.xml msgid "Returns the metadata associated with the given face." msgstr "返回与给定面关联的元数据。" #: doc/classes/MeshDataTool.xml msgid "Calculates and returns the face normal of the given face." msgstr "计算并返回给定面的面法线。" #: doc/classes/MeshDataTool.xml msgid "" "Returns the specified vertex of the given face.\n" "Vertex argument must be either 0, 1, or 2 because faces contain three " "vertices." msgstr "" "返回给定面的指定顶点。\n" "顶点参数必须是 0、1、2 之一,因为面包含 3 个顶点。" #: doc/classes/MeshDataTool.xml msgid "" "Returns the [Mesh]'s format. Format is an integer made up of [Mesh] format " "flags combined together. For example, a mesh containing both vertices and " "normals would return a format of [code]3[/code] because [constant ArrayMesh." "ARRAY_FORMAT_VERTEX] is [code]1[/code] and [constant ArrayMesh." "ARRAY_FORMAT_NORMAL] is [code]2[/code].\n" "See [enum ArrayMesh.ArrayFormat] for a list of format flags." msgstr "" "返回 [Mesh] 的格式,该格式是由 [Mesh] 格式标识组合而成的整数。例如,一个同时" "包含顶点和法线的网格将返回 [code]3[/code]格式,因为 [constant ArrayMesh." "ARRAY_FORMAT_VERTEX] = [code]1[/code],[constant ArrayMesh." "ARRAY_FORMAT_NORMAL] = [code]2[/code]。\n" "参阅 [enum ArrayMesh.ArrayFormat] 的格式标识列表。" #: doc/classes/MeshDataTool.xml msgid "Returns the material assigned to the [Mesh]." msgstr "返回分配给[Mesh]的材质。" #: doc/classes/MeshDataTool.xml msgid "Returns the vertex at given index." msgstr "返回给定索引处的顶点。" #: doc/classes/MeshDataTool.xml msgid "Returns the bones of the given vertex." msgstr "返回给定顶点的骨架。" #: doc/classes/MeshDataTool.xml msgid "Returns the color of the given vertex." msgstr "返回给定顶点的颜色。" #: doc/classes/MeshDataTool.xml msgid "Returns the total number of vertices in [Mesh]." msgstr "返回[Mesh]中顶点的总数。" #: doc/classes/MeshDataTool.xml msgid "Returns an array of edges that share the given vertex." msgstr "返回共享给定顶点的边的数组。" #: doc/classes/MeshDataTool.xml msgid "Returns an array of faces that share the given vertex." msgstr "返回共享给定顶点的面数组。" #: doc/classes/MeshDataTool.xml msgid "Returns the metadata associated with the given vertex." msgstr "返回与给定顶点关联的元数据。" #: doc/classes/MeshDataTool.xml msgid "Returns the normal of the given vertex." msgstr "返回给定顶点的法线。" #: doc/classes/MeshDataTool.xml msgid "Returns the tangent of the given vertex." msgstr "返回给定顶点的正切值。" #: doc/classes/MeshDataTool.xml msgid "Returns the UV of the given vertex." msgstr "返回给定顶点的UV。" #: doc/classes/MeshDataTool.xml msgid "Returns the UV2 of the given vertex." msgstr "返回给定顶点的UV2。" #: doc/classes/MeshDataTool.xml msgid "Returns bone weights of the given vertex." msgstr "返回给定顶点的骨骼权重。" #: doc/classes/MeshDataTool.xml msgid "Sets the metadata of the given edge." msgstr "设置给定边的元数据。" #: doc/classes/MeshDataTool.xml msgid "Sets the metadata of the given face." msgstr "设置给定面的元数据。" #: doc/classes/MeshDataTool.xml msgid "Sets the material to be used by newly-constructed [Mesh]." msgstr "设置新构建的[Mesh]使用的材质。" #: doc/classes/MeshDataTool.xml msgid "Sets the position of the given vertex." msgstr "设置给定顶点的位置。" #: doc/classes/MeshDataTool.xml msgid "Sets the bones of the given vertex." msgstr "设置给定顶点的骨架。" #: doc/classes/MeshDataTool.xml msgid "Sets the color of the given vertex." msgstr "设置给定顶点的颜色。" #: doc/classes/MeshDataTool.xml msgid "Sets the metadata associated with the given vertex." msgstr "设置与给定顶点关联的元数据。" #: doc/classes/MeshDataTool.xml msgid "Sets the normal of the given vertex." msgstr "设置给定顶点的法线。" #: doc/classes/MeshDataTool.xml msgid "Sets the tangent of the given vertex." msgstr "设置给定顶点的切线。" #: doc/classes/MeshDataTool.xml msgid "Sets the UV of the given vertex." msgstr "设置给定顶点的UV。" #: doc/classes/MeshDataTool.xml msgid "Sets the UV2 of the given vertex." msgstr "设置给定顶点的UV2。" #: doc/classes/MeshDataTool.xml msgid "Sets the bone weights of the given vertex." msgstr "设置给定顶点的骨骼权重。" #: doc/classes/MeshInstance.xml msgid "Node that instances meshes into a scenario." msgstr "网格实例与场景相结合的节点。" #: doc/classes/MeshInstance.xml msgid "" "MeshInstance is a node that takes a [Mesh] resource and adds it to the " "current scenario by creating an instance of it. This is the class most often " "used to get 3D geometry rendered and can be used to instance a single [Mesh] " "in many places. This allows to reuse geometry and save on resources. When a " "[Mesh] has to be instanced more than thousands of times at close proximity, " "consider using a [MultiMesh] in a [MultiMeshInstance] instead." msgstr "" "MeshInstance是一个节点,它获取[Mesh]资源并创建一个实例,将其添加到当前场景" "中。这是最常被用来渲染3D几何体的类,这可以在很多地方使用[Mesh]实例,它允许重" "复使用几何体并节省资源。当[Mesh]必须在很近的地方被实例化超过数千次时,可以考" "虑在[MultiMeshInstance]中使用[MultiMesh]来代替。" #: doc/classes/MeshInstance.xml msgid "" "This helper creates a [StaticBody] child node with a [ConvexPolygonShape] " "collision shape calculated from the mesh geometry. It's mainly used for " "testing.\n" "If [code]clean[/code] is [code]true[/code] (default), duplicate and interior " "vertices are removed automatically. You can set it to [code]false[/code] to " "make the process faster if not needed.\n" "If [code]simplify[/code] is [code]true[/code], the geometry can be further " "simplified to reduce the amount of vertices. Disabled by default." msgstr "" "这个助手创建[StaticBody]子节点,该节点具有从网格几何形状计算的" "[ConvexPolygonShape]碰撞形状。其主要用于测试。\n" "如果[code]clean[/code]是[code]true[/code](默认),重复的顶点和内部顶点会被自" "动移除。可以把它设置为 [code]false[/code],以便在不需要的情况下使这个过程更" "快。\n" "如果[code]simplify[/code]是[code]true[/code],可以进一步简化几何体以减少顶点" "的数量。默认情况下是禁用的。" #: doc/classes/MeshInstance.xml msgid "" "This helper creates a [MeshInstance] child node with gizmos at every vertex " "calculated from the mesh geometry. It's mainly used for testing." msgstr "" "这个辅助工具创建[MeshInstance]子节点,在每个顶点都有根据网格几何形状计算的辅" "助线框。其主要用于测试。" #: doc/classes/MeshInstance.xml msgid "" "This helper creates a [StaticBody] child node with multiple " "[ConvexPolygonShape] collision shapes calculated from the mesh geometry via " "convex decomposition. It's mainly used for testing." msgstr "" "这个助手创建[StaticBody]子节点,该节点具有多个[ConvexPolygonShape]碰撞形状," "这些碰撞形状是通过凸面分解从网格几何形状计算出来的。其主要用于测试。" #: doc/classes/MeshInstance.xml msgid "" "This helper creates a [StaticBody] child node with a [ConcavePolygonShape] " "collision shape calculated from the mesh geometry. It's mainly used for " "testing." msgstr "" "这个助手创建[StaticBody]子节点,其碰撞形状是由网格的几何形状计算出来的" "[ConcavePolygonShape],其主要用于测试。" #: doc/classes/MeshInstance.xml msgid "" "Returns the [Material] that will be used by the [Mesh] when drawing. This " "can return the [member GeometryInstance.material_override], the surface " "override [Material] defined in this [MeshInstance], or the surface " "[Material] defined in the [Mesh]. For example, if [member GeometryInstance." "material_override] is used, all surfaces will return the override material." msgstr "" "返回[Mesh]绘制时使用的[Material]。这可以返回[member GeometryInstance." "material_override],这个[MeshInstance]中定义的表面覆盖[Material],或者[Mesh]" "中定义的表面[Material]。例如,如果使用[member GeometryInstance." "material_override],所有的表面都会返回覆盖的材质。" #: doc/classes/MeshInstance.xml msgid "Returns the [Material] for a surface of the [Mesh] resource." msgstr "返回[Mesh]资源表面的[Material]。" #: doc/classes/MeshInstance.xml msgid "Returns the number of surface materials." msgstr "返回表面材质的数量。" #: doc/classes/MeshInstance.xml msgid "" "Returns [code]true[/code] if this [MeshInstance] can be merged with the " "specified [code]other_mesh_instance[/code], using the [method MeshInstance." "merge_meshes] function.\n" "In order to be mergeable, properties of the [MeshInstance] must match, and " "each surface must match, in terms of material, attributes and vertex format." msgstr "" "如果这个 [MeshInstance] 可以与指定的 [code]other_mesh_instance[/code] 通过 " "[method MeshInstance.merge_meshes] 函数合并,则返回 [code]true[/code]。\n" "只有属性匹配且各表面的材质、属性、顶点格式均匹配的 [MeshInstance] 才能相互合" "并。" #: doc/classes/MeshInstance.xml msgid "" "This function can merge together the data from several source " "[MeshInstance]s into a single destination [MeshInstance] (the MeshInstance " "the function is called from). This is primarily useful for improving " "performance by reducing the number of drawcalls and [Node]s.\n" "Merging should only be attempted for simple meshes that do not contain " "animation.\n" "The final vertices can either be returned in global space, or in local space " "relative to the destination [MeshInstance] global transform (the destination " "Node must be inside the [SceneTree] for local space to work).\n" "The function will make a final check for compatibility between the " "[MeshInstance]s by default, this should always be used unless you have " "previously checked for compatibility using [method MeshInstance." "is_mergeable_with]. If the compatibility check is omitted and the meshes are " "merged, you may see rendering errors.\n" "[b]Note:[/b] The requirements for similarity between meshes are quite " "stringent. They can be checked using the [method MeshInstance." "is_mergeable_with] function prior to calling [method MeshInstance." "merge_meshes].\n" "Also note that any initial data in the destination [MeshInstance] data will " "be discarded." msgstr "" "这个函数可以将若干 [MeshInstance] 的数据合并入单个目标 [MeshInstance](调用该" "函数的 MeshInstance)。主要用于减少绘制调用数和 [Node] 数量,从而提升性能。\n" "只应对不包含动画的简单网格尝试合并操作。\n" "最终返回的顶点,既可以使用全局坐标,也可以使用相对于目标 [MeshInstance] 全局" "变换的局部坐标(目标节点必须在 [SceneTree] 内才能正常使用局部坐标)。\n" "该函数默认会检查 [MeshInstance] 之间的兼容性,除非你之前已经使用 [method " "MeshInstance.is_mergeable_with] 检查过兼容性,否则应打开该检查。\n" "[b]注意:[/b]网格之间相似性的要求相当严格。可以在调用 [method MeshInstance." "merge_meshes] 前使用 [method MeshInstance.is_mergeable_with] 函数进行检查。\n" "另外请注意,目标 [MeshInstance] 中的任何初始数据都会被丢弃。" #: doc/classes/MeshInstance.xml msgid "Sets the [Material] for a surface of the [Mesh] resource." msgstr "为[Mesh]资源的表面设置[Material]。" #: doc/classes/MeshInstance.xml msgid "The [Mesh] resource for the instance." msgstr "该实例的[Mesh]资源。" #: doc/classes/MeshInstance.xml msgid "[NodePath] to the [Skeleton] associated with the instance." msgstr "与实例相关联 [NodePath] 的 [Skeleton]。" #: doc/classes/MeshInstance.xml msgid "Sets the skin to be used by this instance." msgstr "设置此实例要使用的蒙皮。" #: doc/classes/MeshInstance.xml msgid "" "If [code]true[/code], normals are transformed when software skinning is " "used. Set to [code]false[/code] when normals are not needed for better " "performance.\n" "See [member ProjectSettings.rendering/quality/skinning/" "software_skinning_fallback] for details about how software skinning is " "enabled." msgstr "" "如果为 [code]true[/code],当使用软件蒙皮时,法线会被变换。当不需要法线时,设" "置为 [code]false[/code] 以获得更好的性能。\n" "关于如何启用软件蒙皮的细节,参阅 [member ProjectSettings.rendering/quality/" "skinning/software_skinning_fallback]。" #: doc/classes/MeshInstance2D.xml msgid "Node used for displaying a [Mesh] in 2D." msgstr "用于在2D中显示[Mesh]的节点。" #: doc/classes/MeshInstance2D.xml msgid "" "Node used for displaying a [Mesh] in 2D. Can be constructed from an existing " "[Sprite] via a tool in the editor toolbar. Select \"Sprite\" then \"Convert " "to Mesh2D\", select settings in popup and press \"Create Mesh2D\"." msgstr "" "用于在2D中显示[Mesh]的节点。可以通过编辑器工具栏上的工具从现有的[Sprite]构" "建。选择 \"Sprite\",然后选择 \"转换为Mesh2D\",在弹出的窗口中选择设置并按下 " "\"创建Mesh2D\"。" #: doc/classes/MeshInstance2D.xml msgid "The [Mesh] that will be drawn by the [MeshInstance2D]." msgstr "[Mesh]将由[MeshInstance2D]绘制。" #: doc/classes/MeshInstance2D.xml doc/classes/MultiMeshInstance2D.xml msgid "" "The normal map that will be used if using the default [CanvasItemMaterial].\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y+, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "如果使用默认的 [CanvasItemMaterial],法线贴图将被使用。\n" "[b]注意:[/b]Godot 希望法线贴图使用 X+、Y+ 和 Z+ 坐标。请参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]该页[/url],了解流行" "引擎所期望的法线贴图坐标的比较。" #: doc/classes/MeshInstance2D.xml doc/classes/MultiMeshInstance2D.xml msgid "" "The [Texture] that will be used if using the default [CanvasItemMaterial]. " "Can be accessed as [code]TEXTURE[/code] in CanvasItem shader." msgstr "" "如果使用默认的[CanvasItemMaterial],就会使用[Texture]。可以在CanvasItem着色器" "中作为[code]TEXTURE[/code]访问。" #: doc/classes/MeshInstance2D.xml doc/classes/MultiMeshInstance2D.xml msgid "Emitted when the [member texture] is changed." msgstr "当[member texture]被改变时触发。" #: doc/classes/MeshLibrary.xml msgid "Library of meshes." msgstr "网格库。" #: doc/classes/MeshLibrary.xml msgid "" "A library of meshes. Contains a list of [Mesh] resources, each with a name " "and ID. Each item can also include collision and navigation shapes. This " "resource is used in [GridMap]." msgstr "" "网格库包含一个[Mesh]资源列表,每个资源都有一个名称和ID。每个项目还可以包括碰" "撞和导航形状。这个资源在[GridMap]中使用。" #: doc/classes/MeshLibrary.xml msgid "Clears the library." msgstr "清除库。" #: doc/classes/MeshLibrary.xml msgid "" "Creates a new item in the library with the given ID.\n" "You can get an unused ID from [method get_last_unused_item_id]." msgstr "" "使用给定的ID在库中创建一个新项。\n" "你可以从[method get_last_unused_item_id]获取一个未使用的ID。" #: doc/classes/MeshLibrary.xml msgid "Returns the first item with the given name." msgstr "返回第一个指定名称的 item。" #: doc/classes/MeshLibrary.xml msgid "Returns the list of item IDs in use." msgstr "返回正在使用的 item id列表。" #: doc/classes/MeshLibrary.xml msgid "Returns the item's mesh." msgstr "返回该 item 的网格模型。" #: doc/classes/MeshLibrary.xml msgid "Returns the transform applied to the item's mesh." msgstr "返回应用到项目网格的变换。" #: doc/classes/MeshLibrary.xml msgid "Returns the item's name." msgstr "返回项的名称。" #: doc/classes/MeshLibrary.xml msgid "Returns the item's navigation mesh." msgstr "返回该项的导航网格。" #: doc/classes/MeshLibrary.xml msgid "Returns the transform applied to the item's navigation mesh." msgstr "返回应用于该项导航网格的变换。" #: doc/classes/MeshLibrary.xml msgid "" "When running in the editor, returns a generated item preview (a 3D rendering " "in isometric perspective). When used in a running project, returns the " "manually-defined item preview which can be set using [method " "set_item_preview]. Returns an empty [Texture] if no preview was manually set " "in a running project." msgstr "" "当在编辑器中运行时,返回生成的项目预览(等距透视的3D渲染)。当在运行的项目中" "使用时,返回手动定义的项目预览,可以使用[method set_item_preview]来设置。如果" "在运行的项目中没有手动设置预览,返回空的[Texture]。" #: doc/classes/MeshLibrary.xml msgid "" "Returns an item's collision shapes.\n" "The array consists of each [Shape] followed by its [Transform]." msgstr "" "返回项目的碰撞形状。\n" "这个数组由每个[Shape]和它的[Transform]组成。" #: doc/classes/MeshLibrary.xml msgid "Gets an unused ID for a new item." msgstr "获取新项未使用的ID。" #: doc/classes/MeshLibrary.xml msgid "Removes the item." msgstr "删除项目。" #: doc/classes/MeshLibrary.xml msgid "Sets the item's mesh." msgstr "设置该项的网格。" #: doc/classes/MeshLibrary.xml msgid "Sets the transform to apply to the item's mesh." msgstr "设置要应用到项目网格的变换。" #: doc/classes/MeshLibrary.xml msgid "" "Sets the item's name.\n" "This name is shown in the editor. It can also be used to look up the item " "later using [method find_item_by_name]." msgstr "" "设置项的名称。\n" "该名称显示在编辑器中。稍后还可以使用[method find_item_by_name]来查找该项。" #: doc/classes/MeshLibrary.xml msgid "Sets the item's navigation mesh." msgstr "设置此项的导航网格。" #: doc/classes/MeshLibrary.xml msgid "Sets the transform to apply to the item's navigation mesh." msgstr "设置应用于该项的导航网格的变换。" #: doc/classes/MeshLibrary.xml msgid "Sets a texture to use as the item's preview icon in the editor." msgstr "在编辑器中设置要用作该项预览图标的纹理。" #: doc/classes/MeshLibrary.xml msgid "" "Sets an item's collision shapes.\n" "The array should consist of [Shape] objects, each followed by a [Transform] " "that will be applied to it. For shapes that should not have a transform, use " "[constant Transform.IDENTITY]." msgstr "" "设置项目的碰撞形状。\n" "数组应由 [Shape] 对象组成,每个对象之后都有应用于它的 [Transform]。对于不应有" "变换的形状,请使用 [constant Transform.IDENTITY]。" #: doc/classes/MeshTexture.xml msgid "Simple texture that uses a mesh to draw itself." msgstr "简单的纹理,使用一个网格来绘制自己。" #: doc/classes/MeshTexture.xml msgid "" "Simple texture that uses a mesh to draw itself. It's limited because flags " "can't be changed and region drawing is not supported." msgstr "" "简单的纹理,使用一个网格来绘制自己。它的应用场景有限,因为Flag不能更改,而且" "不支持区域绘制。" #: doc/classes/MeshTexture.xml msgid "Sets the base texture that the Mesh will use to draw." msgstr "设置网格用来绘制的基础纹理。" #: doc/classes/MeshTexture.xml msgid "Sets the size of the image, needed for reference." msgstr "设置图像的大小,需要参考。" #: doc/classes/MeshTexture.xml msgid "Sets the mesh used to draw. It must be a mesh using 2D vertices." msgstr "设置用于绘制的网格,该网格必须使用2D顶点。" #: doc/classes/MethodTweener.xml msgid "" "Interpolates an abstract value and supplies it to a method called over time." msgstr "对抽象值进行插值,并将其提供给一个持续调用的方法。" #: doc/classes/MethodTweener.xml msgid "" "[MethodTweener] is similar to a combination of [CallbackTweener] and " "[PropertyTweener]. It calls a method providing an interpolated value as a " "parameter. See [method SceneTreeTween.tween_method] for more usage " "information.\n" "[b]Note:[/b] [method SceneTreeTween.tween_method] is the only correct way to " "create [MethodTweener]. Any [MethodTweener] created manually will not " "function correctly." msgstr "" "[MethodTweener] 类似于 [CallbackTweener] 和 [PropertyTweener] 的组合,会将插" "值后的值作为调用方法时的参数。更多用法信息请参阅 [method SceneTreeTween." "tween_method]。\n" "[b]注意:[/b]创建 [MethodTweener] 的唯一正确方法是 [method SceneTreeTween." "tween_method]。任何手动创建的 [MethodTweener] 都无法正常工作。" #: doc/classes/MethodTweener.xml msgid "" "Sets the time in seconds after which the [MethodTweener] will start " "interpolating. By default there's no delay." msgstr "设置该 [MethodTweener] 开始插值的时间,单位为秒。默认无延迟。" #: doc/classes/MethodTweener.xml doc/classes/PropertyTweener.xml msgid "" "Sets the type of used easing from [enum Tween.EaseType]. If not set, the " "default easing is used from the [SceneTreeTween] that contains this Tweener." msgstr "" "设置所使用的缓动类型 [enum Tween.EaseType]。如果没有设置,则使用包含这个 " "Tweener 的 [SceneTreeTween] 的默认缓动类型。" #: doc/classes/MethodTweener.xml doc/classes/PropertyTweener.xml msgid "" "Sets the type of used transition from [enum Tween.TransitionType]. If not " "set, the default transition is used from the [SceneTreeTween] that contains " "this Tweener." msgstr "" "设置所使用的过渡类型 [enum Tween.TransitionType]。如果没有设置,则使用包含这" "个 Tweener 的 [SceneTreeTween] 的默认过渡类型。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "Generic mobile VR implementation." msgstr "通用移动VR实现。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "" "This is a generic mobile VR implementation where you need to provide details " "about the phone and HMD used. It does not rely on any existing framework. " "This is the most basic interface we have. For the best effect, you need a " "mobile phone with a gyroscope and accelerometer.\n" "Note that even though there is no positional tracking, the camera will " "assume the headset is at a height of 1.85 meters. You can change this by " "setting [member eye_height].\n" "You can initialise this interface as follows:\n" "[codeblock]\n" "var interface = ARVRServer.find_interface(\"Native mobile\")\n" "if interface and interface.initialize():\n" " get_viewport().arvr = true\n" "[/codeblock]" msgstr "" "这是通用的移动 VR 实现,你需要提供关于所使用的手机和 HMD 的细节。它不依赖于任" "何现有的框架。这是我们拥有的最基本的接口。为了达到最好的效果,你需要一个有陀" "螺仪和加速器的手机。\n" "请注意,即使没有位置跟踪,相机也会假定耳机处于 1.85 米的高度。你可以通过设置 " "[member eye_height] 来改变这一点。\n" "你可以按以下方式初始化这个接口:\n" "[codeblock]\n" "var interface = ARVRServer.find_interface(\"Native mobile\")\n" "if interface and interface.initialize():\n" " get_viewport().arvr = true\n" "[/codeblock]" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "" "The distance between the display and the lenses inside of the device in " "centimeters." msgstr "显示器与设备内部镜片之间的距离,单位为厘米。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "The width of the display in centimeters." msgstr "显示器的宽度,以厘米为单位。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "" "The height at which the camera is placed in relation to the ground (i.e. " "[ARVROrigin] node)." msgstr "摄像机相对于地面所处的高度,即[ARVROrigin]节点。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "" "The interocular distance, also known as the interpupillary distance. The " "distance between the pupils of the left and right eye." msgstr "眼间距离,也称为瞳孔间距离。左眼和右眼瞳孔之间的距离。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "" "The k1 lens factor is one of the two constants that define the strength of " "the lens used and directly influences the lens distortion effect." msgstr "k1镜头因子是定义所使用镜头强度的两个常量之一,并直接影响镜头失真效果。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "The k2 lens factor, see k1." msgstr "k2镜头因子,见k1。" #: modules/mobile_vr/doc_classes/MobileVRInterface.xml msgid "" "The oversample setting. Because of the lens distortion we have to render our " "buffers at a higher resolution then the screen can natively handle. A value " "between 1.5 and 2.0 often provides good results but at the cost of " "performance." msgstr "" "过采样设置。由于镜头失真,我们必须以比屏幕自然分辨率更高的质量渲染我们的缓冲" "区。介于1.5和2.0之间的值通常可以提供良好的结果,但会牺牲性能。" #: doc/classes/MultiMesh.xml msgid "Provides high-performance mesh instancing." msgstr "提供高性能的网格实例化。" #: doc/classes/MultiMesh.xml msgid "" "MultiMesh provides low-level mesh instancing. Drawing thousands of " "[MeshInstance] nodes can be slow, since each object is submitted to the GPU " "then drawn individually.\n" "MultiMesh is much faster as it can draw thousands of instances with a single " "draw call, resulting in less API overhead.\n" "As a drawback, if the instances are too far away from each other, " "performance may be reduced as every single instance will always render (they " "are spatially indexed as one, for the whole object).\n" "Since instances may have any behavior, the AABB used for visibility must be " "provided by the user." msgstr "" "MultiMesh提供了低级别的网格实例化功能。绘制数以千计的[MeshInstance]节点可能会" "很慢,因为每个对象都要提交给GPU然后单独绘制。\n" "MultiMesh要快得多,因为它可以通过一次绘制调用来绘制成千上万的实例,从而减少" "API的开销。\n" "缺点是,如果实例之间的距离太远,性能可能会降低,因为每一个实例总是会被渲染" "(它们在空间上被索引为整个对象)。\n" "由于实例可能具有任何行为,用于可见性的AABB必须由用户提供。" #: doc/classes/MultiMesh.xml msgid "" "Returns the visibility axis-aligned bounding box in local space. See also " "[method VisualInstance.get_transformed_aabb]." msgstr "" "返回局部空间中可见性轴对齐的包围框。请参阅 [method VisualInstance." "get_transformed_aabb]。" #: doc/classes/MultiMesh.xml msgid "Gets a specific instance's color." msgstr "获取一个特定实例的颜色。" #: doc/classes/MultiMesh.xml msgid "Returns the custom data that has been set for a specific instance." msgstr "返回已经为特定实例设置的自定义数据。" #: doc/classes/MultiMesh.xml msgid "Returns the [Transform] of a specific instance." msgstr "返回一个特定实例的[Transform]。" #: doc/classes/MultiMesh.xml msgid "Returns the [Transform2D] of a specific instance." msgstr "返回特定实例的 [Transform2D]。" #: doc/classes/MultiMesh.xml msgid "" "When using [i]physics interpolation[/i], this function allows you to prevent " "interpolation on an instance in the current physics tick.\n" "This allows you to move instances instantaneously, and should usually be " "used when initially placing an instance such as a bullet to prevent " "graphical glitches." msgstr "" "使用[i]物理插值[/i]时,这个函数可以让你在当前物理周期中阻止实例的插值。\n" "这样你就可以对实例进行即时移动,对子弹等实例进行初始定位时应该使用这个函数," "可以防止图像问题。" #: doc/classes/MultiMesh.xml msgid "" "Sets all data related to the instances in one go. This is especially useful " "when loading the data from disk or preparing the data from GDNative.\n" "All data is packed in one large float array. An array may look like this: " "Transform for instance 1, color data for instance 1, custom data for " "instance 1, transform for instance 2, color data for instance 2, etc...\n" "[Transform] is stored as 12 floats, [Transform2D] is stored as 8 floats, " "[code]COLOR_8BIT[/code] / [code]CUSTOM_DATA_8BIT[/code] is stored as 1 float " "(4 bytes as is) and [code]COLOR_FLOAT[/code] / [code]CUSTOM_DATA_FLOAT[/" "code] is stored as 4 floats." msgstr "" "一次性设置所有与实例相关的数据。这在从磁盘加载数据或从GDNative准备数据时特别" "有用。\n" "所有的数据都被打包在一个大的浮点数数组中。数组可能看起来像这样。实例1的变换," "实例1的颜色数据,实例1的自定义数据,实例2的变换,实例2的颜色数据,等等。\n" "[Transform]存储为12浮点数,[Transform2D]存储为8浮点数,[code]COLOR_8BIT[/" "code] / [code]CUSTOM_DATA_8BIT[/code]存储为1浮点数(原为4字节)," "[code]COLOR_FLOAT[/code] / [code]CUSTOM_DATA_FLOAT[/code] 存储为4浮点数。" #: doc/classes/MultiMesh.xml msgid "" "An alternative version of [method MultiMesh.set_as_bulk_array] which can be " "used with [i]physics interpolation[/i]. This method takes two arrays, and " "can set the data for the current and previous tick in one go. The renderer " "will automatically interpolate the data at each frame.\n" "This is useful for situations where the order of instances may change from " "physics tick to tick, such as particle systems.\n" "When the order of instances is coherent, the simpler [method MultiMesh." "set_as_bulk_array] can still be used with interpolation." msgstr "" "[method MultiMesh.set_as_bulk_array] 的备选版本,可用于[i]物理插值[/i]。这个" "方法接受两个数组,能够一次性设置当前周期和上一周期的数据。渲染器会自动在每一" "帧进行插值。\n" "可用于实例的顺序每个物理周期都会发生变化的情况,例如粒子系统。\n" "如果实例的顺序是连贯的,仍旧可以使用更简单的 [method MultiMesh." "set_as_bulk_array] 也可以进行插值。" #: doc/classes/MultiMesh.xml msgid "" "Sets the color of a specific instance by [i]multiplying[/i] the mesh's " "existing vertex colors.\n" "For the color to take effect, ensure that [member color_format] is non-" "[code]null[/code] on the [MultiMesh] and [member SpatialMaterial." "vertex_color_use_as_albedo] is [code]true[/code] on the material." msgstr "" "通过[i]乘以[/i]网格的现有顶点颜色来设置特定实例的颜色。\n" "为了使颜色生效,请确保[MultiMesh]上的[member color_format]不是[code]null[/" "code],并且[member SpatialMaterial.vertex_color_use_as_albedo]上的材质是" "[code]true[/code]。" #: doc/classes/MultiMesh.xml msgid "" "Sets custom data for a specific instance. Although [Color] is used, it is " "just a container for 4 floating point numbers. The format of the number can " "change depending on the [enum CustomDataFormat] used." msgstr "" "为特定的实例设置自定义数据。虽然使用了[Color],但它只是一个容纳4个浮点数的容" "器。数字的格式可以根据使用的[enum CustomDataFormat]来改变。" #: doc/classes/MultiMesh.xml msgid "Sets the [Transform] for a specific instance." msgstr "为特定实例设置 [Transform]。" #: doc/classes/MultiMesh.xml msgid "Sets the [Transform2D] for a specific instance." msgstr "为特定实例设置 [Transform2D]。" #: doc/classes/MultiMesh.xml msgid "Format of colors in color array that gets passed to shader." msgstr "传递给着色器的颜色数组中的颜色格式。" #: doc/classes/MultiMesh.xml msgid "Format of custom data in custom data array that gets passed to shader." msgstr "传递给着色器的自定义数据数组中的自定义数据格式。" #: doc/classes/MultiMesh.xml msgid "" "Number of instances that will get drawn. This clears and (re)sizes the " "buffers. By default, all instances are drawn but you can limit this with " "[member visible_instance_count]." msgstr "" "将被绘制的实例的数量。这将清除并(重新)调整缓冲区的大小。默认情况下,所有的" "实例都会被画出来,但你可以用[member visible_instance_count]来限制它。" #: doc/classes/MultiMesh.xml msgid "Mesh to be drawn." msgstr "将要绘制的网格。" #: doc/classes/MultiMesh.xml msgid "" "Choose whether to use an interpolation method that favors speed or quality.\n" "When using low physics tick rates (typically below 20) or high rates of " "object rotation, you may get better results from the high quality setting.\n" "[b]Note:[/b] Fast quality does not equate to low quality. Except in the " "special cases mentioned above, the quality should be comparable to high " "quality." msgstr "" "选择所使用的插值方法倾向于速度还是质量。\n" "使用较低的物理周期率(一般低于 20)或较高的对象旋转率时,使用高质量设置可能带" "来更好的效果。\n" "[b]注意:[/b]快速并不意味着低质。除了上面提到的特殊情况外,质量应该与高质量选" "项相当。" #: doc/classes/MultiMesh.xml msgid "Format of transform used to transform mesh, either 2D or 3D." msgstr "用于变换网格的变换格式,可以是2D或3D。" #: doc/classes/MultiMesh.xml msgid "" "Limits the number of instances drawn, -1 draws all instances. Changing this " "does not change the sizes of the buffers." msgstr "" "限制绘制的实例数量,-1会绘制所有的实例。改变这一点并不改变缓冲区的大小。" #: doc/classes/MultiMesh.xml msgid "Use this when using 2D transforms." msgstr "使用 2D 变换时使用此选项。" #: doc/classes/MultiMesh.xml msgid "Use this when using 3D transforms." msgstr "使用 3D 变换时使用此选项。" #: doc/classes/MultiMesh.xml msgid "Use when you are not using per-instance [Color]s." msgstr "当您不使用每个实例的 [Color] 时使用。" #: doc/classes/MultiMesh.xml msgid "" "Compress [Color] data into 8 bits when passing to shader. This uses less " "memory and can be faster, but the [Color] loses precision." msgstr "" "传递给着色器时将 [Color] 数据压缩为 8 位。这使用更少的内存并且可以更快,但 " "[Color] 会失去精度。" #: doc/classes/MultiMesh.xml msgid "" "The [Color] passed into [method set_instance_color] will use 4 floats. Use " "this for highest precision [Color]." msgstr "" "传递给 [method set_instance_color] 的 [Color] 将使用 4 个浮点数。使用它以获得" "最高精度 [Color]。" #: doc/classes/MultiMesh.xml msgid "Use when you are not using per-instance custom data." msgstr "当您不使用每个实例的自定义数据时使用。" #: doc/classes/MultiMesh.xml msgid "" "Compress custom_data into 8 bits when passing to shader. This uses less " "memory and can be faster, but loses precision and range. Floats packed into " "8 bits can only represent values between 0 and 1, numbers outside that range " "will be clamped." msgstr "" "传递给着色器时将 custom_data 压缩为 8 位。这使用更少的内存并且可以更快,但会" "失去精度和范围。 8 位浮点数只能表示 0 到 1 之间的值,超出该范围的数字将被限" "制。" #: doc/classes/MultiMesh.xml msgid "" "The [Color] passed into [method set_instance_custom_data] will use 4 floats. " "Use this for highest precision." msgstr "" "传递给 [method set_instance_custom_data] 的 [Color] 将使用 4 个浮点数。使用它" "以获得最高精度。" #: doc/classes/MultiMesh.xml msgid "" "Always interpolate using Basis lerping, which can produce warping artifacts " "in some situations." msgstr "总是使用 Basis 线性插值,某些情况下可能造成变形问题。" #: doc/classes/MultiMesh.xml msgid "" "Attempt to interpolate using Basis slerping (spherical linear interpolation) " "where possible, otherwise fall back to lerping." msgstr "尽可能尝试使用 Basis 球面线性插值,否则使用线性插值。" #: doc/classes/MultiMeshInstance.xml msgid "Node that instances a [MultiMesh]." msgstr "实例化 [MultiMesh] 的节点。" #: doc/classes/MultiMeshInstance.xml msgid "" "[MultiMeshInstance] is a specialized node to instance [GeometryInstance]s " "based on a [MultiMesh] resource.\n" "This is useful to optimize the rendering of a high amount of instances of a " "given mesh (for example trees in a forest or grass strands)." msgstr "" "[MultiMeshInstance]是特有的节点,用于基于[MultiMesh]资源的[GeometryInstance]" "的实例。\n" "这对于优化给定网格的大量实例的渲染是非常有用的(例如,森林中的树木或草丛)。" #: doc/classes/MultiMeshInstance.xml msgid "" "The [MultiMesh] resource that will be used and shared among all instances of " "the [MultiMeshInstance]." msgstr "在[MultiMeshInstance]的所有实例中使用和共享的[MultiMesh]资源。" #: doc/classes/MultiMeshInstance2D.xml msgid "Node that instances a [MultiMesh] in 2D." msgstr "在 2D 中实例化 [MultiMesh] 的节点。" #: doc/classes/MultiMeshInstance2D.xml msgid "" "[MultiMeshInstance2D] is a specialized node to instance a [MultiMesh] " "resource in 2D.\n" "Usage is the same as [MultiMeshInstance]." msgstr "" "[MultiMeshInstance2D]是特有的节点,用于实例化2D的[MultiMesh]资源。\n" "使用方法与[MultiMeshInstance]相同。" #: doc/classes/MultiMeshInstance2D.xml msgid "The [MultiMesh] that will be drawn by the [MultiMeshInstance2D]." msgstr "将由[MultiMeshInstance2D]绘制的[MultiMesh]。" #: doc/classes/MultiplayerAPI.xml msgid "High-level multiplayer API." msgstr "高级多人游戏API。" #: doc/classes/MultiplayerAPI.xml msgid "" "This class implements most of the logic behind the high-level multiplayer " "API. See also [NetworkedMultiplayerPeer].\n" "By default, [SceneTree] has a reference to this class that is used to " "provide multiplayer capabilities (i.e. RPC/RSET) across the whole scene.\n" "It is possible to override the MultiplayerAPI instance used by specific " "Nodes by setting the [member Node.custom_multiplayer] property, effectively " "allowing to run both client and server in the same scene.\n" "[b]Note:[/b] The high-level multiplayer API protocol is an implementation " "detail and isn't meant to be used by non-Godot servers. It may change " "without notice." msgstr "" "该类实现了高阶多人游戏API背后的大部分逻辑。参阅[NetworkedMultiplayerPeer]。\n" "默认情况下,[SceneTree]有对该类的引用,用于在整个场景中提供多人游戏功能(即" "RPC/RSET)。\n" "通过设置[member Node.custom_multiplayer]属性,可以重写特定节点使用的多人游戏" "API实例,从而有效地允许在同一场景中同时运行客户端和服务器。\n" "[b]注意:[/b]高阶的多人游戏API协议实现细节,并不意味着可以被非Godot服务器使" "用。它可能会改变,不做另行通知。" #: doc/classes/MultiplayerAPI.xml msgid "" "Clears the current MultiplayerAPI network state (you shouldn't call this " "unless you know what you are doing)." msgstr "" "清除当前的MultiplayerAPI网络状态(除非你知道自己在做什么,否则不应该调用这" "个)。" #: doc/classes/MultiplayerAPI.xml msgid "" "Returns the peer IDs of all connected peers of this MultiplayerAPI's [member " "network_peer]." msgstr "返回此MultiplayerAPI的[member network_peer]的所有连接的对等体的ID。" #: doc/classes/MultiplayerAPI.xml msgid "" "Returns the unique peer ID of this MultiplayerAPI's [member network_peer]." msgstr "返回该多人游戏API的[member network_peer]的唯一对等体ID。" #: doc/classes/MultiplayerAPI.xml msgid "" "Returns the sender's peer ID for the RPC currently being executed.\n" "[b]Note:[/b] If not inside an RPC this method will return 0." msgstr "" "返回当前正在执行的RPC的发送方的对等体ID。\n" "[b]注意:[/b]如果不在RPC内,这个方法将返回0。" #: doc/classes/MultiplayerAPI.xml doc/classes/SceneTree.xml msgid "Returns [code]true[/code] if there is a [member network_peer] set." msgstr "如果有一个[member network_peer]设置,返回 [code]true[/code]。" #: doc/classes/MultiplayerAPI.xml msgid "" "Returns [code]true[/code] if this MultiplayerAPI's [member network_peer] is " "in server mode (listening for connections)." msgstr "" "如果这个MultiplayerAPI的[member network_peer]处于服务器模式(监听连接),返" "回 [code]true[/code]。" #: doc/classes/MultiplayerAPI.xml msgid "" "Method used for polling the MultiplayerAPI. You only need to worry about " "this if you are using [member Node.custom_multiplayer] override or you set " "[member SceneTree.multiplayer_poll] to [code]false[/code]. By default, " "[SceneTree] will poll its MultiplayerAPI for you.\n" "[b]Note:[/b] This method results in RPCs and RSETs being called, so they " "will be executed in the same context of this function (e.g. [code]_process[/" "code], [code]physics[/code], [Thread])." msgstr "" "用于轮询多人游戏 API 的方法。只有当你使用 [member Node.custom_multiplayer] 覆" "盖或者你将 [member SceneTree.multiplayer_poll] 设置为 [code]false[/code] 时," "你才需要担心这个问题。默认情况下,[SceneTree] 将为你轮询其多人游戏 API。\n" "[b]注意:[/b]这个方法导致 RPC 和 RSET 被调用,所以它们将在这个函数的同一上下" "文中执行(例如 [code]_process[/code]、[code]physics[/code]、[Thread])。" #: doc/classes/MultiplayerAPI.xml msgid "" "Sends the given raw [code]bytes[/code] to a specific peer identified by " "[code]id[/code] (see [method NetworkedMultiplayerPeer.set_target_peer]). " "Default ID is [code]0[/code], i.e. broadcast to all peers." msgstr "" "将给定的原始字节 [code]bytes[/code]发送到由 [code]id[/code] 确定的特定对等体" "(见 [method NetworkedMultiplayerPeer.set_target_peer])。默认 ID 是 " "[code]0[/code],即向所有对等体广播。" #: doc/classes/MultiplayerAPI.xml msgid "" "If [code]true[/code] (or if the [member network_peer] has [member PacketPeer." "allow_object_decoding] set to [code]true[/code]), the MultiplayerAPI will " "allow encoding and decoding of object during RPCs/RSETs.\n" "[b]Warning:[/b] Deserialized objects can contain code which gets executed. " "Do not use this option if the serialized object comes from untrusted sources " "to avoid potential security threats such as remote code execution." msgstr "" "如果为 [code]true[/code](或者如果 [member network_peer] 的 [member " "PacketPeer.allow_object_decoding] 被设置为 [code]true[/code]),多人游戏 API " "将允许在 RPC/RSET 期间的对象进行编码和解码。\n" "[b]警告:[/b]反序列化的对象可能包含会被执行的代码。如果序列化的对象来自不受信" "任的来源,请不要使用这个选项,以避免潜在的安全威胁,如远程代码执行。" #: doc/classes/MultiplayerAPI.xml msgid "" "The peer object to handle the RPC system (effectively enabling networking " "when set). Depending on the peer itself, the MultiplayerAPI will become a " "network server (check with [method is_network_server]) and will set root " "node's network mode to master, or it will become a regular peer with root " "node set to puppet. All child nodes are set to inherit the network mode by " "default. Handling of networking-related events (connection, disconnection, " "new clients) is done by connecting to MultiplayerAPI's signals." msgstr "" "处理 RPC 系统的对等对象(设置后有效地启用网络)。根据对等体本身," "MultiplayerAPI 将成为网络服务器(检查 [method is_network_server])并将根节点" "的网络模式设置为 master,或者它将成为根节点设置为 puppet 的常规对等体。所有子" "节点默认设置为继承网络模式。与网络相关的事件(连接、断开连接、新客户端)的处" "理是通过连接到 MultiplayerAPI 的信号来完成的。" #: doc/classes/MultiplayerAPI.xml msgid "" "If [code]true[/code], the MultiplayerAPI's [member network_peer] refuses new " "incoming connections." msgstr "" "如果[code]true[/code],则MultiplayerAPI的[member network_peer]会拒绝新的传入" "连接。" #: doc/classes/MultiplayerAPI.xml msgid "" "The root node to use for RPCs. Instead of an absolute path, a relative path " "will be used to find the node upon which the RPC should be executed.\n" "This effectively allows to have different branches of the scene tree to be " "managed by different MultiplayerAPI, allowing for example to run both client " "and server in the same scene." msgstr "" "用于RPC的根节点。不使用绝对路径,而是使用相对路径来寻找应该执行RPC的节点。\n" "这有效地允许场景树的不同分支由不同的MultiplayerAPI管理,例如允许在同一个场景" "中同时运行客户端和服务器。" #: doc/classes/MultiplayerAPI.xml msgid "" "Emitted when this MultiplayerAPI's [member network_peer] successfully " "connected to a server. Only emitted on clients." msgstr "" "当这个MultiplayerAPI的[member network_peer]成功连接到一个服务器时触发该信号。" "这只在客户端触发。" #: doc/classes/MultiplayerAPI.xml msgid "" "Emitted when this MultiplayerAPI's [member network_peer] fails to establish " "a connection to a server. Only emitted on clients." msgstr "" "当这个MultiplayerAPI的[member network_peer]无法与服务器建立连接时触发。只在客" "户端触发。" #: doc/classes/MultiplayerAPI.xml msgid "" "Emitted when this MultiplayerAPI's [member network_peer] connects with a new " "peer. ID is the peer ID of the new peer. Clients get notified when other " "clients connect to the same server. Upon connecting to a server, a client " "also receives this signal for the server (with ID being 1)." msgstr "" "当此多人播放器的 [member network_peer] 与新对等连接时触发该信号。ID 是新peer" "的 peer ID。当其他客户端连接到同一服务器时,客户端会收到通知。连接到服务器" "后,客户端还会收到服务器的此信号(ID 为 1)。" #: doc/classes/MultiplayerAPI.xml msgid "" "Emitted when this MultiplayerAPI's [member network_peer] disconnects from a " "peer. Clients get notified when other clients disconnect from the same " "server." msgstr "" "当这个MultiplayerAPI的[member network_peer]与一个同伴断开连接时触发该信号。当" "其他客户端与同一服务器断开连接时,客户端会得到通知。" #: doc/classes/MultiplayerAPI.xml msgid "" "Emitted when this MultiplayerAPI's [member network_peer] receive a " "[code]packet[/code] with custom data (see [method send_bytes]). ID is the " "peer ID of the peer that sent the packet." msgstr "" "当这个MultiplayerAPI的[member network_peer]收到一个带有自定义数据的[code]数据" "包[/code](见[method send_bytes])时触发。ID是发送该数据包的对等体的ID。" #: doc/classes/MultiplayerAPI.xml msgid "" "Emitted when this MultiplayerAPI's [member network_peer] disconnects from " "server. Only emitted on clients." msgstr "" "当这个MultiplayerAPI的[member network_peer]与服务器断开连接时触发。只在客户端" "触发。" #: doc/classes/MultiplayerAPI.xml msgid "" "Used with [method Node.rpc_config] or [method Node.rset_config] to disable a " "method or property for all RPC calls, making it unavailable. Default for all " "methods." msgstr "" "与 [method Node.rpc_config] 或 [method Node.rset_config] 一起使用,可以在所" "有 RPC 调用中禁用某个方法或属性,使其不可用。所有方法的默认值。" #: doc/classes/MultiplayerAPI.xml msgid "" "Used with [method Node.rpc_config] or [method Node.rset_config] to set a " "method to be called or a property to be changed only on the remote end, not " "locally. Analogous to the [code]remote[/code] keyword. Calls and property " "changes are accepted from all remote peers, no matter if they are node's " "master or puppets." msgstr "" "与 [method Node.rpc_config] 或 [method Node.rset_config] 一起使用,用于设置只" "在远程端调用某个方法或改变某个属性,而不是在本地。类似于 [code]remote[/code] " "关键字。所有远程对等体的调用和属性改变都被接受,不管它们是节点的主控还是傀" "儡。" #: doc/classes/MultiplayerAPI.xml msgid "" "Used with [method Node.rpc_config] or [method Node.rset_config] to set a " "method to be called or a property to be changed only on the network master " "for this node. Analogous to the [code]master[/code] keyword. Only accepts " "calls or property changes from the node's network puppets, see [method Node." "set_network_master]." msgstr "" "与 [method Node.rpc_config] 或 [method Node.rset_config] 一起用于设置要调用的" "方法或仅在此节点的网络主机上更改的属性。类似于 [code]master[/code] 关键字。仅" "接受节点网络傀儡的方法调用或属性更改,请参阅 [method Node." "set_network_master]。" #: doc/classes/MultiplayerAPI.xml msgid "" "Used with [method Node.rpc_config] or [method Node.rset_config] to set a " "method to be called or a property to be changed only on puppets for this " "node. Analogous to the [code]puppet[/code] keyword. Only accepts calls or " "property changes from the node's network master, see [method Node." "set_network_master]." msgstr "" "与 [method Node.rpc_config] 或 [method Node.rset_config] 一起使用,以设置仅在" "此节点的傀儡上调用的方法或改变的属性。类似于 [code]puppet[/code] 关键字。只接" "受来自节点的网络主站的调用或属性更改,见 [method Node.set_network_master]。" #: doc/classes/MultiplayerAPI.xml msgid "" "[i]Deprecated.[/i] Use [constant RPC_MODE_PUPPET] instead. Analogous to the " "[code]slave[/code] keyword." msgstr "" "[i]已废弃。[/i] 使用[constant RPC_MODE_PUPPET]代替。类似于[code]slave[/code]" "关键字。" #: doc/classes/MultiplayerAPI.xml msgid "" "Behave like [constant RPC_MODE_REMOTE] but also make the call or property " "change locally. Analogous to the [code]remotesync[/code] keyword." msgstr "" "行为类似于[constant RPC_MODE_REMOTE],但也会使调用或属性在本地改变。类似于" "[code]remoteesync[/code]关键字。" #: doc/classes/MultiplayerAPI.xml msgid "" "[i]Deprecated.[/i] Use [constant RPC_MODE_REMOTESYNC] instead. Analogous to " "the [code]sync[/code] keyword." msgstr "" "[i]已废弃。[/i] 使用[constant RPC_MODE_REMOTESYNC]代替。类似于[code]sync[/" "code]关键字。" #: doc/classes/MultiplayerAPI.xml msgid "" "Behave like [constant RPC_MODE_MASTER] but also make the call or property " "change locally. Analogous to the [code]mastersync[/code] keyword." msgstr "" "类似于[constant RPC_MODE_MASTER],但也使方法调用或属性改变本地。类似于 " "[code]mastersync[/code] 关键字。" #: doc/classes/MultiplayerAPI.xml msgid "" "Behave like [constant RPC_MODE_PUPPET] but also make the call or property " "change locally. Analogous to the [code]puppetsync[/code] keyword." msgstr "" "行为类似于 [constant RPC_MODE_PUPPET],但也会使调用或属性在本地改变。类似于 " "[code]puppetsync[/code] 关键字。" #: doc/classes/Mutex.xml msgid "A synchronization mutex (mutual exclusion)." msgstr "一个同步互斥锁(相互排斥)。" #: doc/classes/Mutex.xml msgid "" "A synchronization mutex (mutual exclusion). This is used to synchronize " "multiple [Thread]s, and is equivalent to a binary [Semaphore]. It guarantees " "that only one thread can ever acquire the lock at a time. A mutex can be " "used to protect a critical section; however, be careful to avoid deadlocks." msgstr "" "一个同步互斥锁(mutex)。它用于同步多个[Thread],相当于一个二进制" "[Semaphore]。它保证每次只有一个线程可以获得锁。互斥锁可以用来保护临界区;但" "是,要注意避免死锁。" #: doc/classes/Mutex.xml msgid "" "Locks this [Mutex], blocks until it is unlocked by the current owner.\n" "[b]Note:[/b] This function returns without blocking if the thread already " "has ownership of the mutex." msgstr "" "锁定此 [Mutex],直到被当前所有者解锁为止。\n" "[b]注意:[/b]如果线程已经拥有互斥锁的所有权,该函数将无阻塞地返回。" #: doc/classes/Mutex.xml msgid "" "Tries locking this [Mutex], but does not block. Returns [constant OK] on " "success, [constant ERR_BUSY] otherwise.\n" "[b]Note:[/b] This function returns [constant OK] if the thread already has " "ownership of the mutex." msgstr "" "试图锁定此[Mutex],但并不阻塞。成功时返回[constant OK],否则返回[constant " "ERR_BUSY]。\n" "[b]注意:[/b]如果线程已经拥有了该Mutex的所有权,该函数返回[constant OK]。" #: doc/classes/Mutex.xml msgid "" "Unlocks this [Mutex], leaving it to other threads.\n" "[b]Note:[/b] If a thread called [method lock] or [method try_lock] multiple " "times while already having ownership of the mutex, it must also call [method " "unlock] the same number of times in order to unlock it correctly." msgstr "" "解锁这个 [Mutex],把它留给其他线程。\n" "[b]注意:[/b]如果一个线程在已经拥有互斥锁的情况下多次调用[method lock]或" "[method try_lock],它也必须调用相同次数的[method unlock]才能正确解锁." #: modules/gdnative/doc_classes/NativeScript.xml msgid "" "Returns the documentation string that was previously set with " "[code]godot_nativescript_set_class_documentation[/code]." msgstr "" "返回之前用[code]godot_nativescript_set_class_documentation[/code]设置的文档字" "符串。" #: modules/gdnative/doc_classes/NativeScript.xml msgid "" "Returns the documentation string that was previously set with " "[code]godot_nativescript_set_method_documentation[/code]." msgstr "" "返回之前用[code]godot_nativescript_set_method_documentation[/code]设置的文档" "字符串。" #: modules/gdnative/doc_classes/NativeScript.xml msgid "" "Returns the documentation string that was previously set with " "[code]godot_nativescript_set_property_documentation[/code]." msgstr "" "返回之前用[code]godot_nativescript_set_property_documentation[/code]设置的文" "档字符串。" #: modules/gdnative/doc_classes/NativeScript.xml msgid "" "Returns the documentation string that was previously set with " "[code]godot_nativescript_set_signal_documentation[/code]." msgstr "" "返回之前用[code]godot_nativescript_set_signal_documentation[/code]设置的文档" "字符串。" #: modules/gdnative/doc_classes/NativeScript.xml msgid "" "Constructs a new object of the base type with a script of this type already " "attached.\n" "[b]Note:[/b] Any arguments passed to this function will be ignored and not " "passed to the native constructor function. This will change with in a future " "API extension." msgstr "" "构建基础类型的新对象,并附加此类型的脚本。\n" "[b]注意:[/b]传递给这个函数的任何参数将被忽略,不会传递给局部构造函数。这将在" "未来的API扩展中改变。" #: doc/classes/Navigation.xml msgid "Mesh-based navigation and pathfinding node." msgstr "基于网格的导航和寻路节点。" #: doc/classes/Navigation.xml msgid "" "Provides navigation and pathfinding within a collection of " "[NavigationMesh]es. By default, these will be automatically collected from " "child [NavigationMeshInstance] nodes. In addition to basic pathfinding, this " "class also assists with aligning navigation agents with the meshes they are " "navigating on." msgstr "" "在 [NavigationMesh] 的集合中提供导航和寻路功能。默认情况下,这些将自动从子 " "[NavigationMeshInstance] 节点中收集。除了基本的寻路之外,这个类还能帮助导航代" "理与其所导航的网格对齐。" #: doc/classes/Navigation.xml doc/classes/NavigationMesh.xml #: doc/classes/NavigationServer.xml msgid "3D Navmesh Demo" msgstr "3D 导航网格演示" #: doc/classes/Navigation.xml doc/classes/Navigation2D.xml msgid "" "Returns the navigation point closest to the point given. Points are in local " "coordinate space." msgstr "返回最接近给定点的导航点。点位于局部坐标空间。" #: doc/classes/Navigation.xml msgid "" "Returns the surface normal at the navigation point closest to the point " "given. Useful for rotating a navigation agent according to the navigation " "mesh it moves on." msgstr "" "返回最接近给定点的导航点处的表面法线。用于根据导航代理移动的导航网格旋转导航" "代理。" #: doc/classes/Navigation.xml msgid "" "Returns the owner of the [NavigationMesh] which contains the navigation " "point closest to the point given. This is usually a [NavigationMeshInstance]." msgstr "" "返回包含最接近给定点的导航点的 [NavigationMesh] 的所有者。这通常是一个 " "[NavigationMeshInstance]。" #: doc/classes/Navigation.xml msgid "" "Returns the navigation point closest to the given line segment. When " "enabling [code]use_collision[/code], only considers intersection points " "between segment and navigation meshes. If multiple intersection points are " "found, the one closest to the segment start point is returned." msgstr "" "返回最接近给定线段的导航点。启用 [code]use_collision[/code] 时,仅考虑线段和" "导航网格之间的交点。如果找到多个交点,则返回最接近线段起点的交点。" #: doc/classes/Navigation.xml msgid "" "Returns the path between two given points. Points are in local coordinate " "space. If [code]optimize[/code] is [code]true[/code] (the default), the " "agent properties associated with each [NavigationMesh] (radius, height, " "etc.) are considered in the path calculation, otherwise they are ignored." msgstr "" "返回两个给定点之间的路径。点都是在局部坐标空间中的。如果 [code]optimize[/" "code] 为 [code]true[/code](默认),则计算路径时会考虑每个 [NavigationMesh] " "所关联的代理的属性(半径、高度等),否则会被忽略。" #: doc/classes/Navigation.xml msgid "The cell height to use for fields." msgstr "用于字段的 Y 轴单元的尺寸。" #: doc/classes/Navigation.xml doc/classes/NavigationMesh.xml msgid "The XZ plane cell size to use for fields." msgstr "用于字段的 XZ 平面单元尺寸。" #: doc/classes/Navigation.xml doc/classes/Navigation2D.xml msgid "" "This value is used to detect the near edges to connect compatible regions." msgstr "该值用于检测相近的边界,连接兼容的地区。" #: doc/classes/Navigation.xml msgid "" "Defines which direction is up. By default, this is [code](0, 1, 0)[/code], " "which is the world's \"up\" direction." msgstr "" "定义了向上的方向。默认情况下,这是[code](0,1,0)[/code],这是世界的“向上”方" "向。" #: doc/classes/Navigation2D.xml msgid "2D navigation and pathfinding node." msgstr "2D 导航和寻路节点。" #: doc/classes/Navigation2D.xml msgid "" "Navigation2D provides navigation and pathfinding within a 2D area, specified " "as a collection of [NavigationPolygon] resources. By default, these are " "automatically collected from child [NavigationPolygonInstance] nodes." msgstr "" "Navigation2D 在 2D 区域内提供导航和寻路,该区域以 [NavigationPolygon] 资源合" "集的形式指定。默认情况下,这些资源是自动从子项 [NavigationPolygonInstance] 节" "点中收集的。" #: doc/classes/Navigation2D.xml doc/classes/Navigation2DServer.xml #: doc/classes/NavigationPolygon.xml msgid "2D Navigation Demo" msgstr "2D 导航演示" #: doc/classes/Navigation2D.xml msgid "" "Returns the owner of the [NavigationPolygon] which contains the navigation " "point closest to the point given. This is usually a " "[NavigationPolygonInstance]." msgstr "" "返回包含最接近给定点的导航点的 [NavigationPolygon] 的所有者。这通常是一个 " "[NavigationPolygonInstance]。" #: doc/classes/Navigation2D.xml msgid "" "Returns the path between two given points. Points are in local coordinate " "space. If [code]optimize[/code] is [code]true[/code] (the default), the path " "is smoothed by merging path segments where possible." msgstr "" "返回两个给定点之间的路径。点是在局部坐标空间中的。如果 [code]optimize[/code] " "为 [code]true[/code](默认值),路径将尽可能地合并路径段,从而平滑。" #: doc/classes/Navigation2D.xml msgid "The XY plane cell size to use for fields." msgstr "用于字段的 XZ 平面单元尺寸。" #: doc/classes/Navigation2DServer.xml msgid "Server interface for low-level 2D navigation access." msgstr "访问底层 2D 导航的服务器接口。" #: doc/classes/Navigation2DServer.xml #, fuzzy msgid "" "Navigation2DServer is the server responsible for all 2D navigation. It " "handles several objects, namely maps, regions and agents.\n" "Maps are made up of regions, which are made of navigation polygons. " "Together, they define the navigable areas in the 2D world.\n" "[b]Note:[/b] Most NavigationServer changes take effect after the next " "physics frame and not immediately. This includes all changes made to maps, " "regions or agents by navigation related Nodes in the SceneTree or made " "through scripts.\n" "For two regions to be connected to each other, they must share a similar " "edge. An edge is considered connected to another if both of its two vertices " "are at a distance less than [member Navigation.edge_connection_margin] to " "the respective other edge's vertex.\n" "To use the collision avoidance system, you may use agents. You can set an " "agent's target velocity, then the servers will emit a callback with a " "modified velocity.\n" "[b]Note:[/b] The collision avoidance system ignores regions. Using the " "modified velocity as-is might lead to pushing and agent outside of a " "navigable area. This is a limitation of the collision avoidance system, any " "more complex situation may require the use of the physics engine.\n" "This server keeps tracks of any call and executes them during the sync " "phase. This means that you can request any change to the map, using any " "thread, without worrying." msgstr "" "Navigation2DServer 是负责所有 2D 导航的服务器,处理的对象有地图(map)、地区" "(region)、代理(agent)。\n" "地图是由地区组成的,地区又由导航多边形组成。它们一同构成了 2D 世界中的可导航" "区域。两个地区必须共有一条相似的边界(edge)才能相连。如果一条边界的两个顶点" "(vertex)与另一条边界的对应顶点的距离小于 [member Navigation." "edge_connection_margin],则认为这两条边界相连。\n" "要使用防撞系统,可以使用代理。你可以设置代理的目标速度,服务器就会使用修正后" "的速度触发回调。\n" "[b]注意:[/b]防撞系统会忽略地区。直接使用修正后的速度可能会将代理推到可导航区" "域之外。这是防撞系统的缺陷,更复杂的情况可能需要用到物理引擎。\n" "服务器会记录所有的调用,在同步阶段统一执行。这意味着你可以放心大胆地从任何线" "程中请求对地图进行任何修改。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Creates the agent." msgstr "创建代理。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Returns the navigation map [RID] the requested [code]agent[/code] is " "currently assigned to." msgstr "返回请求的代理 [code]agent[/code] 所关联的导航地图的 [RID]。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Returns [code]true[/code] if the map got changed the previous frame." msgstr "如果地图在上一帧发生了改变,则返回 [code]true[/code]。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Callback called at the end of the RVO process." msgstr "在 RVO 处理末尾调用的回调。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Puts the agent in the map." msgstr "将代理放入地图中。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Sets the maximum number of other agents the agent takes into account in the " "navigation. The larger this number, the longer the running time of the " "simulation. If the number is too low, the simulation will not be safe." msgstr "" "设置在导航中,该代理所考虑的其他代理的最大数量。这个数越大,模拟的运行时间越" "长。如果这个数太小,则模拟会不安全。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the maximum speed of the agent. Must be positive." msgstr "设置该代理的最大速度。必须为正数。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Sets the maximum distance to other agents this agent takes into account in " "the navigation. The larger this number, the longer the running time of the " "simulation. If the number is too low, the simulation will not be safe." msgstr "" "设置在导航中,该代理所考虑的其他代理的最大距离。这个数越大,模拟的运行时间越" "长。如果这个数太小,则模拟会不安全。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the position of the agent in world space." msgstr "设置该代理在世界空间中的位置。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the radius of the agent." msgstr "设置该代理的半径。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the new target velocity." msgstr "设置新的目标速度。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "The minimal amount of time for which the agent's velocities that are " "computed by the simulation are safe with respect to other agents. The larger " "this number, the sooner this agent will respond to the presence of other " "agents, but the less freedom this agent has in choosing its velocities. Must " "be positive." msgstr "" "考虑其他代理的前提下,该代理的速度的最短安全时间,这个速度是通过模拟得到的。" "这个数越大,该代理响应其他代理的速度越快,但该代理选择速度的自由度也越小。必" "须为正数。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the current velocity of the agent." msgstr "设置该代理的当前速度。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Destroys the given RID." msgstr "销毁给定的 RID。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Create a new map." msgstr "创建一张新地图。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Returns all navigation agents [RID]s that are currently assigned to the " "requested navigation [code]map[/code]." msgstr "返回所有与请求的导航地图 [code]map[/code] 关联的导航代理的 [RID]。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Returns the map cell size." msgstr "返回地图的单元格大小。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Returns the point closest to the provided [code]to_point[/code] on the " "navigation mesh surface." msgstr "返回在导航网格表面上与提供的 [code]to_point[/code] 距离最近的点。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Returns the owner region RID for the point returned by [method " "map_get_closest_point]." msgstr "返回由 [method map_get_closest_point] 返回的点的所有者地区的 RID。" #: doc/classes/Navigation2DServer.xml msgid "" "Returns the edge connection margin of the map. The edge connection margin is " "a distance used to connect two regions." msgstr "返回地图的边界连接边距。边界连接边距是用于连接两个地区的距离。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Returns the navigation path to reach the destination from the origin." msgstr "返回从原点到终点的导航路径。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Returns all navigation regions [RID]s that are currently assigned to the " "requested navigation [code]map[/code]." msgstr "返回所有与请求的导航地图 [code]map[/code] 关联的导航地区的 [RID]。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Returns [code]true[/code] if the map is active." msgstr "如果地图处于活动状态,则返回 [code]true[/code]。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the map active." msgstr "设置地图的激活态。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Set the map cell size used to weld the navigation mesh polygons." msgstr "设置用于焊接导航网格多边形的地图单元格大小。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Set the map edge connection margin used to weld the compatible region edges." msgstr "设置用于焊接兼容地区边界的地图边界连接边距。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Creates a new region." msgstr "创建一个新的地区。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "" "Returns the navigation map [RID] the requested [code]region[/code] is " "currently assigned to." msgstr "返回请求的导航地区 [code]region[/code] 所关联的导航地图的 [RID]。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the map for the region." msgstr "设置该地区的地图。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the navigation mesh for the region." msgstr "设置该地图的导航网格。" #: doc/classes/Navigation2DServer.xml doc/classes/NavigationServer.xml msgid "Sets the global transformation for the region." msgstr "设置该地区的全局变换。" #: doc/classes/NavigationAgent.xml msgid "3D agent used in navigation for collision avoidance." msgstr "在导航中用于防撞的 3D 代理。" #: doc/classes/NavigationAgent.xml msgid "" "3D agent that is used in navigation to reach a location while avoiding " "static and dynamic obstacles. The dynamic obstacles are avoided using RVO " "(Reciprocal Velocity Obstacles) collision avoidance. The agent needs " "navigation data to work correctly. This can be done by having the agent as a " "child of a [Navigation] node, or using [method set_navigation]. " "[NavigationAgent] is physics safe." msgstr "" "导航中使用的 3D 代理,可以在前往某个位置时躲避静态和动态障碍物。躲避动态障碍" "物使用的是 RVO(Reciprocal Velocity Obstacles,相对速度障碍物)防撞算法。代理" "需要导航数据才能正确工作。可以通过让代理成为 [Navigation] 节点的子项实现,也" "可以使用 [method set_navigation]。[NavigationAgent] 是物理安全的。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Returns the distance to the target location, using the agent's global " "position. The user must set the target location with [method " "set_target_location] in order for this to be accurate." msgstr "" "返回与目标位置的距离,使用的是代理的全局位置。用户必须使用 [method " "set_target_location] 设置目标位置,才能获得精确结果。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Returns the reachable final location in global coordinates. This can change " "if the navigation path is altered in any way. Because of this, it would be " "best to check this each frame." msgstr "" "返回可到达的最终位置的全局坐标。如果导航路径由于任何原因发生改变,这个位置也" "可能发生变化。因此,最好每一帧都检查一下。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "Returns the path from start to finish in global coordinates." msgstr "返回从起点到终点的路径,使用全局坐标。" #: doc/classes/NavigationAgent.xml msgid "" "Returns which index the agent is currently on in the navigation path's " "[PoolVector3Array]." msgstr "返回该代理当前位于导航路径 [PoolVector3Array] 中的哪个索引位置。" #: doc/classes/NavigationAgent.xml msgid "" "Returns the [Navigation] node that the agent is using for its navigation " "system." msgstr "返回该代理的导航系统所使用的 [Navigation] 节点。" #: doc/classes/NavigationAgent.xml msgid "" "Returns a [Vector3] in global coordinates, that can be moved to, making sure " "that there are no static objects in the way. If the agent does not have a " "navigation path, it will return the origin of the agent's parent." msgstr "" "返回可以移动至的 [Vector3] 全局坐标,确保中途没有静态物体阻挡。如果代理没有导" "航路径,则会返回代理父节点的原点。" #: doc/classes/NavigationAgent.xml msgid "Returns the [RID] of this agent on the [NavigationServer]." msgstr "返回这个代理在 [NavigationServer] 上的 [RID]。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Returns the user-defined target location (set with [method " "set_target_location])." msgstr "返回用户定义的目标位置(使用 [method set_target_location] 设置)。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Returns [code]true[/code] if the navigation path's final location has been " "reached." msgstr "如果到达了导航路径的终点位置,则返回 [code]true[/code]。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Returns [code]true[/code] if the target location is reachable. The target " "location is set using [method set_target_location]." msgstr "" "如果目标位置可达,则返回 [code]true[/code]。目标位置使用 [method " "set_target_location] 设置。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Returns [code]true[/code] if the target location is reached. The target " "location is set using [method set_target_location]. It may not always be " "possible to reach the target location. It should always be possible to reach " "the final location though. See [method get_final_location]." msgstr "" "如果已到达目标位置,则返回 [code]true[/code]。目标位置使用 [method " "set_target_location] 设置。目标位置并不总是可达。但终点位置应该总是可达的。请" "参阅 [method get_final_location]。" #: doc/classes/NavigationAgent.xml msgid "" "Sets the [Navigation] node used by the agent. Useful when you don't want to " "make the agent a child of a [Navigation] node." msgstr "" "设置代理所使用的 [Navigation] 节点。可以在你不想让代理作为 [Navigation] 节点" "的子节点时使用。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Sets the user desired final location. This will clear the current navigation " "path." msgstr "设置用户期望的终点位置。会将当前导航路径清空。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Sends the passed in velocity to the collision avoidance algorithm. It will " "adjust the velocity to avoid collisions. Once the adjustment to the velocity " "is complete, it will emit the [signal velocity_computed] signal." msgstr "" "将传入的速度发送给防撞算法。算法会为了防止撞击而调整速度。速度的调整完成后," "会触发 [signal velocity_computed] 信号。" #: doc/classes/NavigationAgent.xml msgid "The agent height offset to match the navigation mesh height." msgstr "代理的高度偏移量,用于匹配导航网格的高度。" #: doc/classes/NavigationAgent.xml msgid "" "If [code]true[/code] the agent is registered for an RVO avoidance callback " "on the [NavigationServer]. When [method set_velocity] is used and the " "processing is completed a [code]safe_velocity[/code] Vector3 is received " "with a signal connection to [signal velocity_computed]. Avoidance processing " "with many registered agents has a significant performance cost and should " "only be enabled on agents that currently require it." msgstr "" "为 [code]true[/code] 时,该代理会在 [NavigationServer] 上注册 RVO 避障回调。" "当使用了 [method set_velocity] 并且处理完成时,会通过与 [signal " "velocity_computed] 信号的连接收到安全速度 Vector3 [code]safe_velocity[/" "code]。为避障处理注册大量代理会对性能有显著影响,应该只在当前有需要的代理上启" "用。" #: doc/classes/NavigationAgent.xml msgid "" "Ignores collisions on the Y axis. Must be [code]true[/code] to move on a " "horizontal plane." msgstr "忽略 Y 轴上的碰撞。在水平面上移动时必须为 [code]true[/code]。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "The maximum number of neighbors for the agent to consider." msgstr "代理所需考虑的最大邻居数。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "The maximum speed that an agent can move." msgstr "代理所能达到的最大移动速度。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "The distance to search for other agents." msgstr "搜索其他代理的距离。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "The maximum distance the agent is allowed away from the ideal path to the " "final location. This can happen due to trying to avoid collisions. When the " "maximum distance is exceeded, it recalculates the ideal path." msgstr "" "允许代理偏离理想路径的最大距离。可能为了防撞而产生偏离。超出最大距离时,会重" "新计算理想路径。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "The radius of the agent." msgstr "代理的半径。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "The distance threshold before a target is considered to be reached. This " "will allow an agent to not have to hit a point on the path exactly, but in " "the area." msgstr "" "认为到达目标的距离阈值。可以让代理无需精准到达路径上的某个点,到达某个区域即" "可。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "The minimal amount of time for which this agent's velocities, that are " "computed with the collision avoidance algorithm, are safe with respect to " "other agents. The larger the number, the sooner the agent will respond to " "other agents, but the less freedom in choosing its velocities. Must be " "positive." msgstr "" "考虑其他代理的前提下,该代理的速度的最短安全时间,这个速度是由防撞算法计算而" "来的。这个数越大,该代理响应其他代理的速度越快,但选择速度的自由度也越小。必" "须为正数。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "Notifies when the final location is reached." msgstr "抵达终点位置时发出通知。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Notifies when the navigation path changes. This can be triggered by the " "navigation system or by the user changing the path." msgstr "" "导航路径改变时发出通知。可以由导航系统触发,也可以由用户对路径的修改触发。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Notifies when the player-defined target, set with [method " "set_target_location], is reached." msgstr "抵达由 [method set_target_location] 设置的玩家定义目标时发出通知。" #: doc/classes/NavigationAgent.xml doc/classes/NavigationAgent2D.xml msgid "" "Notifies when the collision avoidance velocity is calculated after a call to " "[method set_velocity]." msgstr "调用 [method set_velocity] 后,计算出防撞速度时发出通知。" #: doc/classes/NavigationAgent2D.xml msgid "2D agent used in navigation for collision avoidance." msgstr "在导航中用于防撞的 2D 代理。" #: doc/classes/NavigationAgent2D.xml msgid "" "2D agent that is used in navigation to reach a location while avoiding " "static and dynamic obstacles. The dynamic obstacles are avoided using RVO " "(Reciprocal Velocity Obstacles) collision avoidance. The agent needs " "navigation data to work correctly. This can be done by having the agent as a " "child of a [Navigation2D] node, or using [method set_navigation]. " "[NavigationAgent2D] is physics safe." msgstr "" "导航中使用的 2D 代理,可以在前往某个位置时躲避静态和动态障碍物。躲避动态障碍" "物使用的是 RVO(Reciprocal Velocity Obstacles,相对速度障碍物)防撞算法。代理" "需要导航数据才能正确工作。可以通过让代理成为 [Navigation2D] 节点的子项实现," "也可以使用 [method set_navigation]。[NavigationAgent2D] 是物理安全的。" #: doc/classes/NavigationAgent2D.xml msgid "" "Returns which index the agent is currently on in the navigation path's " "[PoolVector2Array]." msgstr "返回该代理当前位于导航路径 [PoolVector2Array] 中的哪个索引位置。" #: doc/classes/NavigationAgent2D.xml msgid "" "Returns the [Navigation2D] node that the agent is using for its navigation " "system." msgstr "返回该代理的导航系统所使用的 [Navigation2D] 节点。" #: doc/classes/NavigationAgent2D.xml msgid "" "Returns a [Vector2] in global coordinates, that can be moved to, making sure " "that there are no static objects in the way. If the agent does not have a " "navigation path, it will return the position of the agent's parent." msgstr "" "返回可以移动至的 [Vector2] 全局坐标,确保中途没有静态物体阻挡。如果代理没有导" "航路径,则会返回代理父节点的原点。" #: doc/classes/NavigationAgent2D.xml msgid "Returns the [RID] of this agent on the [Navigation2DServer]." msgstr "返回这个代理在 [Navigation2DServer] 上的 [RID]。" #: doc/classes/NavigationAgent2D.xml msgid "" "Sets the [Navigation2D] node used by the agent. Useful when you don't want " "to make the agent a child of a [Navigation2D] node." msgstr "" "设置代理所使用的 [Navigation2D] 节点。可以在你不想让代理作为 [Navigation2D] " "节点的子节点时使用。" #: doc/classes/NavigationAgent2D.xml msgid "" "If [code]true[/code] the agent is registered for an RVO avoidance callback " "on the [Navigation2DServer]. When [method set_velocity] is used and the " "processing is completed a [code]safe_velocity[/code] Vector2 is received " "with a signal connection to [signal velocity_computed]. Avoidance processing " "with many registered agents has a significant performance cost and should " "only be enabled on agents that currently require it." msgstr "" "为 [code]true[/code] 时,该代理会在 [Navigation2DServer] 上注册 RVO 避障回" "调。当使用了 [method set_velocity] 并且处理完成时,会通过与 [signal " "velocity_computed] 信号的连接收到安全速度 Vector2 [code]safe_velocity[/" "code]。为避障处理注册大量代理会对性能有显著影响,应该只在当前有需要的代理上启" "用。" #: doc/classes/NavigationMesh.xml msgid "A mesh to approximate the walkable areas and obstacles." msgstr "用于模拟可步行区域和障碍物的网格。" #: doc/classes/NavigationMesh.xml msgid "" "A navigation mesh is a collection of polygons that define which areas of an " "environment are traversable to aid agents in pathfinding through complicated " "spaces." msgstr "" "导航网格是多边形的集合,用于定义环境中的哪些区域是可遍历的,以帮助代理在复杂" "的空间中寻路。" #: doc/classes/NavigationMesh.xml doc/classes/NavigationPolygon.xml msgid "" "Adds a polygon using the indices of the vertices you get when calling " "[method get_vertices]." msgstr "使用调用[method get_vertices]得到的顶点的索引添加一个多边形。" #: doc/classes/NavigationMesh.xml msgid "" "Clears the array of polygons, but it doesn't clear the array of vertices." msgstr "清除多边形数组,但不清除顶点数组。" #: doc/classes/NavigationMesh.xml msgid "" "Initializes the navigation mesh by setting the vertices and indices " "according to a [Mesh]." msgstr "通过根据 [Mesh] 设置顶点和索引来初始化导航网格。" #: doc/classes/NavigationMesh.xml msgid "" "Returns whether the specified [code]bit[/code] of the [member geometry/" "collision_mask] is set." msgstr "返回[member geometry/collision_mask]的指定[code]bit[/code]是否被设置。" #: doc/classes/NavigationMesh.xml doc/classes/NavigationPolygon.xml msgid "" "Returns a [PoolIntArray] containing the indices of the vertices of a created " "polygon." msgstr "返回包含创建的多边形顶点索引的[PoolIntArray]。" #: doc/classes/NavigationMesh.xml msgid "Returns the number of polygons in the navigation mesh." msgstr "返回导航网格中的多边形数量。" #: doc/classes/NavigationMesh.xml msgid "" "Returns a [PoolVector3Array] containing all the vertices being used to " "create the polygons." msgstr "返回包含用于创建多边形的所有顶点的[PoolVector3Array]。" #: doc/classes/NavigationMesh.xml msgid "" "If [code]value[/code] is [code]true[/code], sets the specified [code]bit[/" "code] in the [member geometry/collision_mask].\n" "If [code]value[/code] is [code]false[/code], clears the specified [code]bit[/" "code] in the [member geometry/collision_mask]." msgstr "" "如果 [code]value[/code] 为 [code]true[/code],则在 [member geometry/" "collision_mask] 中设置指定的 [code]bit[/code]。\n" "如果 [code]value[/code] 为 [code]false[/code],则在 [member geometry/" "collision_mask] 中清除指定的 [code]bit[/code]。" #: doc/classes/NavigationMesh.xml doc/classes/NavigationPolygon.xml msgid "" "Sets the vertices that can be then indexed to create polygons with the " "[method add_polygon] method." msgstr "设置顶点,然后使用 [method add_polygon] 方法创建多边形。" #: doc/classes/NavigationMesh.xml msgid "" "The minimum floor to ceiling height that will still allow the floor area to " "be considered walkable.\n" "[b]Note:[/b] While baking, this value will be rounded up to the nearest " "multiple of [member cell/height]." msgstr "" "地板到天花板的最小高度,仍然允许被认为是可行走的地板。\n" "[b]注意:[/b]烘焙时,这个值会向上取整到最接近的 [member cell/height] 的倍数。" #: doc/classes/NavigationMesh.xml msgid "" "The minimum ledge height that is considered to still be traversable.\n" "[b]Note:[/b] While baking, this value will be rounded down to the nearest " "multiple of [member cell/height]." msgstr "" "被认为仍可穿越的最小墙壁高度。\n" "[b]注意:[/b]烘焙时,该值将向下舍入到最接近的 [member cell/height] 的倍数。" #: doc/classes/NavigationMesh.xml msgid "The maximum slope that is considered walkable, in degrees." msgstr "认为可行走的最大坡度,单位是度。" #: doc/classes/NavigationMesh.xml msgid "" "The distance to erode/shrink the walkable area of the heightfield away from " "obstructions.\n" "[b]Note:[/b] While baking, this value will be rounded up to the nearest " "multiple of [member cell/size]." msgstr "" "侵蚀/缩小远离障碍物的高度场的可行走区域距离。\n" "[b]注意:[/b]烘焙时,这个值会向上取整到最接近的 [member cell/size] 的倍数。" #: doc/classes/NavigationMesh.xml msgid "The Y axis cell size to use for fields." msgstr "用于字段Y轴单元的尺寸。" #: doc/classes/NavigationMesh.xml msgid "" "The sampling distance to use when generating the detail mesh, in cell unit." msgstr "生成细分网格时使用的采样距离,以单元为单位。" #: doc/classes/NavigationMesh.xml msgid "" "The maximum distance the detail mesh surface should deviate from " "heightfield, in cell unit." msgstr "细节网格表面应偏离高度场的最大距离,以单元格为单位。" #: doc/classes/NavigationMesh.xml msgid "" "The maximum distance a simplfied contour's border edges should deviate the " "original raw contour." msgstr "简化轮廓的边界边缘应偏离原始原始轮廓的最大距离。" #: doc/classes/NavigationMesh.xml msgid "" "The maximum allowed length for contour edges along the border of the mesh.\n" "[b]Note:[/b] While baking, this value will be rounded up to the nearest " "multiple of [member cell/size]." msgstr "" "沿网格边界的轮廓的最大允许长度。\n" "[b]注意:[/b]烘焙时,这个值会向上取整到最接近的[member cell/size]的倍数。" #: doc/classes/NavigationMesh.xml msgid "" "If [code]true[/code], marks walkable spans as not walkable if the clearance " "above the span is less than [member agent/height]." msgstr "" "如果为 [code]true[/code],如果跨度上方的间隙小于 [member agent/height],则将" "可行走范围标记为不可行走。" #: doc/classes/NavigationMesh.xml msgid "If [code]true[/code], marks spans that are ledges as non-walkable." msgstr "如果为 [code]true[/code],则标记边缘间的跨度为不可行走。" #: doc/classes/NavigationMesh.xml msgid "" "If [code]true[/code], marks non-walkable spans as walkable if their maximum " "is within [member agent/max_climb] of a walkable neighbor." msgstr "" "如果为 [code]true[/code],如果它们的最大值在可行走邻域的 [member agent/" "max_climb] 内,则将不可行走范围标记为可行走。" #: doc/classes/NavigationMesh.xml msgid "" "The physics layers to scan for static colliders.\n" "Only used when [member geometry/parsed_geometry_type] is [constant " "PARSED_GEOMETRY_STATIC_COLLIDERS] or [constant PARSED_GEOMETRY_BOTH]." msgstr "" "用于扫描静态碰撞的物理层。\n" "仅在 [member geometry/parsed_geometry_type]是[constant " "PARSED_GEOMETRY_STATIC_COLLIDERS] 或 [constant PARSED_GEOMETRY_BOTH] 时才使" "用。" #: doc/classes/NavigationMesh.xml msgid "" "Determines which type of nodes will be parsed as geometry. See [enum " "ParsedGeometryType] for possible values." msgstr "决定哪种类型的节点可解析为几何图形。参阅 [enum ParsedGeometryType]。" #: doc/classes/NavigationMesh.xml msgid "" "The source of the geometry used when baking. See [enum SourceGeometryMode] " "for possible values." msgstr "烘焙时使用的几何体的源。参阅 [enum SourceGeometryMode]。" #: doc/classes/NavigationMesh.xml msgid "" "The name of the group to scan for geometry.\n" "Only used when [member geometry/source_geometry_mode] is [constant " "SOURCE_GEOMETRY_GROUPS_WITH_CHILDREN] or [constant " "SOURCE_GEOMETRY_GROUPS_EXPLICIT]." msgstr "" "要扫描的几何体组的名称。\n" "只有当 [member geometry/source_geometry_mode]是[constant " "SOURCE_GEOMETRY_GROUPS_WITH_CHILDREN] 或 [constant " "SOURCE_GEOMETRY_GROUPS_EXPLICIT] 时才使用。" #: doc/classes/NavigationMesh.xml msgid "" "The maximum number of vertices allowed for polygons generated during the " "contour to polygon conversion process." msgstr "在轮廓到多边形转换过程中生成的多边形允许的最大顶点数。" #: doc/classes/NavigationMesh.xml msgid "" "Any regions with a size smaller than this will be merged with larger regions " "if possible.\n" "[b]Note:[/b] This value will be squared to calculate the number of cells. " "For example, a value of 20 will set the number of cells to 400." msgstr "" "如果可能的话,任何小于这个尺寸的区域将与较大的区域合并。\n" "[b]注意:[/b]这个值将被平方来计算单元格的数量。例如,一个20的值将把单元格的数" "量设为400。" #: doc/classes/NavigationMesh.xml msgid "" "The minimum size of a region for it to be created.\n" "[b]Note:[/b] This value will be squared to calculate the minimum number of " "cells allowed to form isolated island areas. For example, a value of 8 will " "set the number of cells to 64." msgstr "" "一个区域被创建的最小尺寸。\n" "[b]注意:[/b]该值将被平方,以计算出允许形成孤岛区域的最小单元数。例如,8的值" "将把单元格的数量设为64。" #: doc/classes/NavigationMesh.xml msgid "" "Partitioning algorithm for creating the navigation mesh polys. See [enum " "SamplePartitionType] for possible values." msgstr "创建导航网格多边形单元的分割算法。参阅 [enum SamplePartitionType]。" #: doc/classes/NavigationMesh.xml msgid "" "Watershed partitioning. Generally the best choice if you precompute the " "navigation mesh, use this if you have large open areas." msgstr "" "分水岭分区。如果您预先计算导航网格,通常是最佳选择,如果您有大的开放区域,请" "使用它。" #: doc/classes/NavigationMesh.xml msgid "" "Monotone partitioning. Use this if you want fast navigation mesh generation." msgstr "单调分区。如果您想要快速生成导航网格,请使用此选项。" #: doc/classes/NavigationMesh.xml msgid "" "Layer partitioning. Good choice to use for tiled navigation mesh with medium " "and small sized tiles." msgstr "层分区。用于具有中小型瓷砖的平铺导航网格的不错选择。" #: doc/classes/NavigationMesh.xml msgid "Represents the size of the [enum SamplePartitionType] enum." msgstr "表示 [enum SamplePartitionType] 枚举的大小。" #: doc/classes/NavigationMesh.xml msgid "" "Parses mesh instances as geometry. This includes [MeshInstance], [CSGShape], " "and [GridMap] nodes." msgstr "" "将网格实例解析为几何体。这包括 [MeshInstance]、[CSGShape] 和 [GridMap] 节点。" #: doc/classes/NavigationMesh.xml msgid "" "Parses [StaticBody] colliders as geometry. The collider should be in any of " "the layers specified by [member geometry/collision_mask]." msgstr "" "将 [StaticBody] 碰撞器解析为几何体。碰撞器应位于 [member geometry/" "collision_mask] 指定的任何层中。" #: doc/classes/NavigationMesh.xml msgid "" "Both [constant PARSED_GEOMETRY_MESH_INSTANCES] and [constant " "PARSED_GEOMETRY_STATIC_COLLIDERS]." msgstr "" "[constant PARSED_GEOMETRY_MESH_INSTANCES] 和 [constant " "PARSED_GEOMETRY_STATIC_COLLIDERS]." #: doc/classes/NavigationMesh.xml msgid "Represents the size of the [enum ParsedGeometryType] enum." msgstr "表示 [enum ParsedGeometryType] 枚举的大小。" #: doc/classes/NavigationMesh.xml msgid "" "Scans the child nodes of [NavigationMeshInstance] recursively for geometry." msgstr "递归扫描 [NavigationMeshInstance] 的子节点以获取几何体。" #: doc/classes/NavigationMesh.xml msgid "" "Scans nodes in a group and their child nodes recursively for geometry. The " "group is specified by [member geometry/source_group_name]." msgstr "" "以递归方式扫描组中的节点及其子节点以获取几何图形。该组由 [member geometry/" "source_group_name] 指定。" #: doc/classes/NavigationMesh.xml msgid "" "Uses nodes in a group for geometry. The group is specified by [member " "geometry/source_group_name]." msgstr "" "使用一个组中的节点进行几何运算。该组由 [member geometry/source_group_name] 指" "定。" #: doc/classes/NavigationMesh.xml msgid "Represents the size of the [enum SourceGeometryMode] enum." msgstr "表示 [enum SourceGeometryMode] 枚举的大小。" #: doc/classes/NavigationMeshGenerator.xml msgid "Helper class for creating and clearing navigation meshes." msgstr "对导航网格进行创建和清理的辅助类。" #: doc/classes/NavigationMeshGenerator.xml msgid "" "This class is responsible for creating and clearing 3D navigation meshes " "used as [NavigationMesh] resources inside [NavigationMeshInstance]. The " "[NavigationMeshGenerator] has very limited to no use for 2D as the " "navigation mesh baking process expects 3D node types and 3D source geometry " "to parse.\n" "The entire navigation mesh baking is best done in a separate thread as the " "voxelization, collision tests and mesh optimization steps involved are very " "performance and time hungry operations.\n" "Navigation mesh baking happens in multiple steps and the result depends on " "3D source geometry and properties of the [NavigationMesh] resource. In the " "first step, starting from a root node and depending on [NavigationMesh] " "properties all valid 3D source geometry nodes are collected from the " "[SceneTree]. Second, all collected nodes are parsed for their relevant 3D " "geometry data and a combined 3D mesh is build. Due to the many different " "types of parsable objects, from normal [MeshInstance]s to [CSGShape]s or " "various [CollisionObject]s, some operations to collect geometry data can " "trigger [VisualServer] and [PhysicsServer] synchronizations. Server " "synchronization can have a negative effect on baking time or framerate as it " "often involves [Mutex] locking for thread security. Many parsable objects " "and the continuous synchronization with other threaded Servers can increase " "the baking time significantly. On the other hand only a few but very large " "and complex objects will take some time to prepare for the Servers which can " "noticeably stall the next frame render. As a general rule the total amount " "of parsable objects and their individual size and complexity should be " "balanced to avoid framerate issues or very long baking times. The combined " "mesh is then passed to the Recast Navigation Object to test the source " "geometry for walkable terrain suitable to [NavigationMesh] agent properties " "by creating a voxel world around the meshes bounding area.\n" "The finalized navigation mesh is then returned and stored inside the " "[NavigationMesh] for use as a resource inside [NavigationMeshInstance] nodes." msgstr "" "这个类负责 3D 导航网格的创建和清理,导航网格 [NavigationMesh] 是 " "[NavigationMeshInstance] 中的资源。[NavigationMeshGenerator] 在 2D 中的用处微" "乎其微,因为导航网格的烘焙过程需要 3D 节点类型,解析的是 3D 原始几何体。\n" "导航网格的烘焙过程最好在单独的线程中进行,因为涉及到的体素化、碰撞测试、网格" "优化等步骤非常消耗性能和时间。\n" "导航网格的烘焙分成若干步进行,最终结果取决于原始 3D 几何体以及该 " "[NavigationMesh] 资源的属性。第一步是从根节点开始,根据 [NavigationMesh] 的属" "性从 [SceneTree] 收集所有有效的 3D 原始几何体节点。第二步会从所有收集到的节点" "中解析相关的 3D 几何体数据,合并构造成一个 3D 网格。由于可解析的对象类型众" "多,从普通的 [MeshInstance] 到 [CSGShape] 再到各种 [CollisionObject],其中某" "些收集几何数据的操作可能会触发 [VisualServer] 和 [PhysicsServer] 的同步。服务" "器同步会为了线程安全而使用 [Mutex] 锁,拖慢烘焙、影响帧率。可解析对象过多,以" "及与多线程服务器之间的连续同步,都会大幅影响烘焙时间。而如果对象数量较少,但" "都是非常大而且复杂的对象,那么就会在为服务器准备数据上花费时间,导致下一帧渲" "染的停滞。一般而言,可解析对象的总数与它们各自的大小和复杂度之间应该达到平" "衡,防止出现帧率问题和超长的烘焙时间。合并后的网格后续会被交给 Recast 导航对" "象,通过在网格的包围区域周边创建体素世界,来检查原始几何体中适合 " "[NavigationMesh] 代理行走的地形。\n" "然后就会返回最终的导航网格,保存在 [NavigationMesh] 中,即可交付 " "[NavigationMeshInstance] 使用。" #: doc/classes/NavigationMeshGenerator.xml msgid "" "Bakes navigation data to the provided [code]nav_mesh[/code] by parsing child " "nodes under the provided [code]root_node[/code] or a specific group of nodes " "for potential source geometry. The parse behavior can be controlled with the " "[member NavigationMesh.geometry/parsed_geometry_type] and [member " "NavigationMesh.geometry/source_geometry_mode] properties on the " "[NavigationMesh] resource." msgstr "" "将导航数据烘焙至提供的 [code]nav_mesh[/code] 中。解析的是提供的根节点 " "[code]root_node[/code] 的子节点,或可能包含原始几何体的分组。解析行为可以通" "过 [NavigationMesh] 的 [member NavigationMesh.geometry/parsed_geometry_type] " "和 [member NavigationMesh.geometry/source_geometry_mode] 属性控制。" #: doc/classes/NavigationMeshGenerator.xml msgid "" "Removes all polygons and vertices from the provided [code]nav_mesh[/code] " "resource." msgstr "从提供的 [code]nav_mesh[/code] 资源中移除所有多边形和顶点。" #: doc/classes/NavigationMeshInstance.xml msgid "An instance of a [NavigationMesh]." msgstr "[NavigationMesh] 的一个实例。" #: doc/classes/NavigationMeshInstance.xml msgid "" "An instance of a [NavigationMesh]. It tells the [Navigation] node what can " "be navigated and what cannot, based on the [NavigationMesh] resource. This " "should be a child of a [Navigation] node." msgstr "" "[NavigationMesh] 的一个实例。它会根据 [NavigationMesh] 资源,告知 " "[Navigation] 节点什么可以导航、什么不可以。应该是 [Navigation] 节点的子节点。" #: doc/classes/NavigationMeshInstance.xml msgid "" "Bakes the [NavigationMesh]. If [code]on_thread[/code] is set to [code]true[/" "code] (default), the baking is done on a separate thread. Baking on separate " "thread is useful because navigation baking is not a cheap operation. When it " "is completed, it automatically sets the new [NavigationMesh]. Please note " "that baking on separate thread may be very slow if geometry is parsed from " "meshes as async access to each mesh involves heavy synchronization. Also, " "please note that baking on a separate thread is automatically disabled on " "operating systems that cannot use threads (such as HTML5 with threads " "disabled)." msgstr "" "烘焙该 [NavigationMesh]。如果 [code]on_thread[/code] 为 [code]true[/code](默" "认),就会在单独的线程中进行烘焙。单开线程烘焙很有用,因为导航烘焙操作的消耗" "并不低。烘焙完成后会自动设置新的 [NavigationMesh]。请注意,如果几何体是从网格" "解析而来的,那么单开线程烘焙可能会非常慢,因为对网格的异步访问涉及到大量同步" "操作。另外,请注意在不支持多线程的操作系统上(如禁用了多线程的 HTML5),会自" "动禁用独立线程烘焙。" #: doc/classes/NavigationMeshInstance.xml msgid "" "Returns the [RID] of this region on the [NavigationServer]. Combined with " "[method NavigationServer.map_get_closest_point_owner] can be used to " "identify the [NavigationMeshInstance] closest to a point on the merged " "navigation map." msgstr "" "返回这个区域在 [NavigationServer] 上的 [RID]。可以和 [method " "NavigationServer.map_get_closest_point_owner] 组合使用,获取合并后的导航图中" "与某个点最接近的 [NavigationMeshInstance]。" #: doc/classes/NavigationMeshInstance.xml msgid "Determines if the [NavigationMeshInstance] is enabled or disabled." msgstr "决定该 [NavigationMeshInstance] 已启用还是已禁用。" #: doc/classes/NavigationMeshInstance.xml msgid "The [NavigationMesh] resource to use." msgstr "使用的 [NavigationMesh] 资源。" #: doc/classes/NavigationMeshInstance.xml msgid "Notifies when the navigation mesh bake operation is completed." msgstr "导航网格烘焙操作完成时发出通知。" #: doc/classes/NavigationMeshInstance.xml msgid "Notifies when the [NavigationMesh] has changed." msgstr "[NavigationMesh] 发生变化时发出通知。" #: doc/classes/NavigationObstacle.xml msgid "3D obstacle used in navigation for collision avoidance." msgstr "在导航中用于防撞的 3D 障碍物。" #: doc/classes/NavigationObstacle.xml msgid "" "3D obstacle used in navigation for collision avoidance. The obstacle needs " "navigation data to work correctly. This can be done by having the obstacle " "as a child of a [Navigation] node, or using [method set_navigation]. " "[NavigationObstacle] is physics safe." msgstr "" "导航中用于防撞的 3D 障碍物。障碍物需要导航数据才能正确工作。可以通过让障碍物" "成为 [Navigation] 节点的子项实现,也可以使用 [method set_navigation]。" "[NavigationObstacle] 是物理安全的。" #: doc/classes/NavigationObstacle.xml msgid "" "Returns the [Navigation] node that the obstacle is using for its navigation " "system." msgstr "返回该障碍物的导航系统所使用的 [Navigation] 节点。" #: doc/classes/NavigationObstacle.xml msgid "Returns the [RID] of this obstacle on the [NavigationServer]." msgstr "返回这个障碍物在 [NavigationServer] 上的 [RID]。" #: doc/classes/NavigationObstacle.xml msgid "" "Sets the [Navigation] node used by the obstacle. Useful when you don't want " "to make the obstacle a child of a [Navigation] node." msgstr "" "设置障碍物所使用的 [Navigation] 节点。可以在你不想让障碍物作为 [Navigation] " "节点的子节点时使用。" #: doc/classes/NavigationObstacle.xml doc/classes/NavigationObstacle2D.xml msgid "" "Enables radius estimation algorithm which uses parent's collision shapes to " "determine the obstacle radius." msgstr "启用半径估算算法,使用父项的碰撞形状确定障碍物的半径。" #: doc/classes/NavigationObstacle.xml doc/classes/NavigationObstacle2D.xml msgid "" "The radius of the agent. Used only if [member estimate_radius] is set to " "[code]false[/code]." msgstr "" "代理的半径。仅在 [member estimate_radius] 为 [code]false[/code] 时使用。" #: doc/classes/NavigationObstacle2D.xml msgid "2D obstacle used in navigation for collision avoidance." msgstr "在导航中用于防撞的 2D 障碍物。" #: doc/classes/NavigationObstacle2D.xml msgid "" "2D obstacle used in navigation for collision avoidance. The obstacle needs " "navigation data to work correctly. This can be done by having the obstacle " "as a child of a [Navigation2D] node, or using [method set_navigation]. " "[NavigationObstacle2D] is physics safe." msgstr "" "导航中用于防撞的 2D 障碍物。障碍物需要导航数据才能正确工作。可以通过让障碍物" "成为 [Navigation2D] 节点的子项实现,也可以使用 [method set_navigation]。" "[NavigationObstacle2D] 是物理安全的。" #: doc/classes/NavigationObstacle2D.xml msgid "" "Returns the [Navigation2D] node that the obstacle is using for its " "navigation system." msgstr "返回该障碍物的导航系统所使用的 [Navigation2D] 节点。" #: doc/classes/NavigationObstacle2D.xml msgid "Returns the [RID] of this obstacle on the [Navigation2DServer]." msgstr "返回这个障碍物在 [Navigation2DServer] 上的 [RID]。" #: doc/classes/NavigationObstacle2D.xml msgid "" "Sets the [Navigation2D] node used by the obstacle. Useful when you don't " "want to make the obstacle a child of a [Navigation2D] node." msgstr "" "设置障碍物所使用的 [Navigation2D] 节点。可以在你不想让障碍物作为 " "[Navigation2D] 节点的子节点时使用。" #: doc/classes/NavigationPolygon.xml msgid "" "A node that has methods to draw outlines or use indices of vertices to " "create navigation polygons." msgstr "具有绘制轮廓或使用顶点索引来创建导航多边形的方法的节点。" #: doc/classes/NavigationPolygon.xml msgid "" "There are two ways to create polygons. Either by using the [method " "add_outline] method, or using the [method add_polygon] method.\n" "Using [method add_outline]:\n" "[codeblock]\n" "var polygon = NavigationPolygon.new()\n" "var outline = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, " "50), Vector2(50, 0)])\n" "polygon.add_outline(outline)\n" "polygon.make_polygons_from_outlines()\n" "$NavigationPolygonInstance.navpoly = polygon\n" "[/codeblock]\n" "Using [method add_polygon] and indices of the vertices array.\n" "[codeblock]\n" "var polygon = NavigationPolygon.new()\n" "var vertices = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, " "50), Vector2(50, 0)])\n" "polygon.set_vertices(vertices)\n" "var indices = PoolIntArray([0, 1, 2, 3])\n" "polygon.add_polygon(indices)\n" "$NavigationPolygonInstance.navpoly = polygon\n" "[/codeblock]" msgstr "" "创建多边形有两种方法。使用 [method add_outline] 或 [method add_polygon] 方" "法。\n" "使用 [method add_outline] 方法:\n" "[codeblock]\n" "var polygon = NavigationPolygon.new()\n" "var outline = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, " "50), Vector2(50, 0)])\n" "polygon.add_outline(outline)\n" "polygon.make_polygons_from_outlines()\n" "$NavigationPolygonInstance.navpoly = polygon\n" "[/codeblock]\n" "使用 [method add_polygon] 和顶点数组的索引:\n" "[codeblock]\n" "var polygon = NavigationPolygon.new()\n" "var vertices = PoolVector2Array([Vector2(0, 0), Vector2(0, 50), Vector2(50, " "50), Vector2(50, 0)])\n" "polygon.set_vertices(vertices)\n" "var indices = PoolIntArray(0, 3, 1)\n" "polygon.add_polygon(indices)\n" "$NavigationPolygonInstance.navpoly = polygon\n" "[/codeblock]" #: doc/classes/NavigationPolygon.xml msgid "" "Appends a [PoolVector2Array] that contains the vertices of an outline to the " "internal array that contains all the outlines. You have to call [method " "make_polygons_from_outlines] in order for this array to be converted to " "polygons that the engine will use." msgstr "" "将包含轮廓顶点的[PoolVector2Array]添加到包含所有轮廓的内部数组中。你必须调用" "[method make_polygons_from_outlines],将数组转换为引擎可使用的多边形。" #: doc/classes/NavigationPolygon.xml msgid "" "Adds a [PoolVector2Array] that contains the vertices of an outline to the " "internal array that contains all the outlines at a fixed position. You have " "to call [method make_polygons_from_outlines] in order for this array to be " "converted to polygons that the engine will use." msgstr "" "将包含轮廓顶点的[PoolVector2Array]添加到内部数组中,该数组包含所有固定位置的" "轮廓。你必须调用[method make_polygons_from_outlines],将数组转换为引擎可使用" "的多边形。" #: doc/classes/NavigationPolygon.xml msgid "" "Clears the array of the outlines, but it doesn't clear the vertices and the " "polygons that were created by them." msgstr "清除轮廓数组,但不清除顶点和由顶点创建的多边形。" #: doc/classes/NavigationPolygon.xml msgid "" "Clears the array of polygons, but it doesn't clear the array of outlines and " "vertices." msgstr "清除多边形数组,但不清除轮廓和顶点数组。" #: doc/classes/NavigationPolygon.xml msgid "" "Returns a [PoolVector2Array] containing the vertices of an outline that was " "created in the editor or by script." msgstr "返回[PoolVector2Array],包含在编辑器中或通过脚本创建的轮廓的顶点。" #: doc/classes/NavigationPolygon.xml msgid "" "Returns the number of outlines that were created in the editor or by script." msgstr "返回在编辑器或脚本中创建的轮廓的数量。" #: doc/classes/NavigationPolygon.xml msgid "Returns the count of all polygons." msgstr "返回多边形的数量。" #: doc/classes/NavigationPolygon.xml msgid "" "Returns a [PoolVector2Array] containing all the vertices being used to " "create the polygons." msgstr "返回包含用于创建多边形的所有顶点的[PoolVector2Array]。" #: doc/classes/NavigationPolygon.xml msgid "Creates polygons from the outlines added in the editor or by script." msgstr "从编辑器或脚本中添加的轮廓创建多边形。" #: doc/classes/NavigationPolygon.xml msgid "" "Removes an outline created in the editor or by script. You have to call " "[method make_polygons_from_outlines] for the polygons to update." msgstr "" "删除在编辑器或脚本中创建的轮廓。你必须调用 [method " "make_polygons_from_outlines] 来更新多边形。" #: doc/classes/NavigationPolygon.xml msgid "" "Changes an outline created in the editor or by script. You have to call " "[method make_polygons_from_outlines] for the polygons to update." msgstr "" "更改在编辑器或脚本中创建的轮廓。你必须调用 [method " "make_polygons_from_outlines] 来更新多边形。" #: doc/classes/NavigationPolygonInstance.xml msgid "" "Returns the [RID] of this region on the [Navigation2DServer]. Combined with " "[method Navigation2DServer.map_get_closest_point_owner] can be used to " "identify the [NavigationPolygonInstance] closest to a point on the merged " "navigation map." msgstr "" "返回这个区域在 [Navigation2DServer] 上的 [RID]。可以和 [method " "Navigation2DServer.map_get_closest_point_owner] 组合使用,获取合并后的导航图" "中与某个点最接近的 [NavigationPolygonInstance]。" #: doc/classes/NavigationServer.xml msgid "Server interface for low-level 3D navigation access." msgstr "访问底层 3D 导航的服务器接口。" #: doc/classes/NavigationServer.xml #, fuzzy msgid "" "NavigationServer is the server responsible for all 3D navigation. It handles " "several objects, namely maps, regions and agents.\n" "Maps are made up of regions, which are made of navigation meshes. Together, " "they define the navigable areas in the 3D world.\n" "[b]Note:[/b] Most NavigationServer changes take effect after the next " "physics frame and not immediately. This includes all changes made to maps, " "regions or agents by navigation related Nodes in the SceneTree or made " "through scripts.\n" "For two regions to be connected to each other, they must share a similar " "edge. An edge is considered connected to another if both of its two vertices " "are at a distance less than [member Navigation.edge_connection_margin] to " "the respective other edge's vertex.\n" "To use the collision avoidance system, you may use agents. You can set an " "agent's target velocity, then the servers will emit a callback with a " "modified velocity.\n" "[b]Note:[/b] The collision avoidance system ignores regions. Using the " "modified velocity as-is might lead to pushing and agent outside of a " "navigable area. This is a limitation of the collision avoidance system, any " "more complex situation may require the use of the physics engine.\n" "This server keeps tracks of any call and executes them during the sync " "phase. This means that you can request any change to the map, using any " "thread, without worrying." msgstr "" "NavigationServer 是负责所有 3D 导航的服务器,处理的对象有地图(map)、地区" "(region)、代理(agent)。\n" "地图是由地区组成的,地区又由导航网格组成。它们一同构成了 3D 世界中的可导航区" "域。两个地区必须共有一条相似的边界(edge)才能相连。如果一条边界的两个顶点" "(vertex)与另一条边界的对应顶点的距离小于 [member Navigation." "edge_connection_margin],则认为这两条边界相连。\n" "要使用防撞系统,可以使用代理。你可以设置代理的目标速度,服务器就会使用修正后" "的速度触发回调。\n" "[b]注意:[/b]防撞系统会忽略地区。直接使用修正后的速度可能会将代理推到可导航区" "域之外。这是防撞系统的缺陷,更复杂的情况可能需要用到物理引擎。\n" "服务器会记录所有的调用,在同步阶段统一执行。这意味着你可以放心大胆地从任何线" "程中请求对地图进行任何修改。" #: doc/classes/NavigationServer.xml msgid "Returns the map cell height." msgstr "返回地图的单元格高度。" #: doc/classes/NavigationServer.xml msgid "" "Returns the normal for the point returned by [method map_get_closest_point]." msgstr "返回 [method map_get_closest_point] 所返回的点的法线。" #: doc/classes/NavigationServer.xml msgid "" "Returns the closest point between the navigation surface and the segment." msgstr "返回导航表面与该线段之间最接近的点。" #: doc/classes/NavigationServer.xml msgid "" "Returns the edge connection margin of the map. This distance is the minimum " "vertex distance needed to connect two edges from different regions." msgstr "" "返回地图的边界连接边距。这是让两个不同地区的边界相连所需的最小顶点距离。" #: doc/classes/NavigationServer.xml msgid "Returns the map's up direction." msgstr "返回地图的上方向。" #: doc/classes/NavigationServer.xml msgid "Set the map cell height used to weld the navigation mesh polygons." msgstr "设置用于焊接导航网格多边形的地图单元格高度。" #: doc/classes/NavigationServer.xml msgid "Sets the map up direction." msgstr "设置地图的上方向。" #: doc/classes/NavigationServer.xml msgid "" "Process the collision avoidance agents.\n" "The result of this process is needed by the physics server, so this must be " "called in the main thread.\n" "[b]Note:[/b] This function is not thread safe." msgstr "" "处理防撞代理。\n" "物理服务器需要这个处理的结果,所以必须在主线程中调用。\n" "[b]注意:[/b]这个函数不是线程安全的。" #: doc/classes/NavigationServer.xml msgid "Bakes the navigation mesh." msgstr "烘焙导航网格。" #: doc/classes/NavigationServer.xml msgid "Control activation of this server." msgstr "控制这个服务器是否激活。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "PacketPeer implementation using the [url=http://enet.bespin.org/index." "html]ENet[/url] library." msgstr "" "使用[url=http://enet.bespin.org/index.html]ENet[/url]库实现PacketPeer。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "A PacketPeer implementation that should be passed to [member SceneTree." "network_peer] after being initialized as either a client or server. Events " "can then be handled by connecting to [SceneTree] signals.\n" "ENet's purpose is to provide a relatively thin, simple and robust network " "communication layer on top of UDP (User Datagram Protocol).\n" "[b]Note:[/b] ENet only uses UDP, not TCP. When forwarding the server port to " "make your server accessible on the public Internet, you only need to forward " "the server port in UDP. You can use the [UPNP] class to try to forward the " "server port automatically when starting the server." msgstr "" "一个 PacketPeer 实现,应该在初始化为客户端或服务器后传递给 [member SceneTree." "network_peer]。然后可以通过连接到 [SceneTree] 信号来处理事件。\n" "ENet 的目的是在 UDP(用户数据报协议)之上提供一个相对简单而健全的网络通信" "层。\n" "[b]注意:[/b]ENet 只使用UDP,不使用TCP。转发服务器端口使您的服务器可以在公网" "上访问时,只需要将服务器端口转发为UDP即可。您可以使用 [UPNP] 类尝试在启动服务" "器时自动转发服务器端口。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Closes the connection. Ignored if no connection is currently established. If " "this is a server it tries to notify all clients before forcibly " "disconnecting them. If this is a client it simply closes the connection to " "the server." msgstr "" "关闭连接。如果当前没有建立连接,则忽略不计。如果这是一个服务器,它将试图在强" "行断开连接之前通知所有客户端。如果这是一个客户端,它只是关闭与服务器的连接。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Create client that connects to a server at [code]address[/code] using " "specified [code]port[/code]. The given address needs to be either a fully " "qualified domain name (e.g. [code]\"www.example.com\"[/code]) or an IP " "address in IPv4 or IPv6 format (e.g. [code]\"192.168.1.1\"[/code]). The " "[code]port[/code] is the port the server is listening on. The " "[code]in_bandwidth[/code] and [code]out_bandwidth[/code] parameters can be " "used to limit the incoming and outgoing bandwidth to the given number of " "bytes per second. The default of 0 means unlimited bandwidth. Note that ENet " "will strategically drop packets on specific sides of a connection between " "peers to ensure the peer's bandwidth is not overwhelmed. The bandwidth " "parameters also determine the window size of a connection which limits the " "amount of reliable packets that may be in transit at any given time. Returns " "[constant OK] if a client was created, [constant ERR_ALREADY_IN_USE] if this " "NetworkedMultiplayerENet instance already has an open connection (in which " "case you need to call [method close_connection] first) or [constant " "ERR_CANT_CREATE] if the client could not be created. If [code]client_port[/" "code] is specified, the client will also listen to the given port; this is " "useful for some NAT traversal techniques." msgstr "" "创建客户端,使用指定的[code]端口[/code]连接到[code]地址[/code]的服务器上。给" "定的地址需要是一个完全合格的域名(例如,[code]\"www.example.com\"[/code])或" "一个IPv4或IPv6格式的IP地址(例如,[code]\"192.168.1.1\"[/code])。" "[code]port[/code]是服务器所监听的端口。[code]in_bandwidth[/code]和" "[code]out_bandwidth[/code]参数可用于将传入和传出的带宽限制在给定的字节数/秒。" "默认的0意味着无限的带宽。请注意,ENet会在对等体之间连接的特定一侧战略性地丢弃" "数据包,以确保对等体的带宽不被淹没。带宽参数也决定了连接的窗口大小,它限制了" "在任何给定时间内可能正在传输的可靠数据包的数量。如果创建了一个客户端,返回" "[constant OK];如果这个NetworkedMultiplayerENet实例已经有一个开放的连接(在这" "种情况下,你需要先调用[method close_connection]),返回[constant " "ERR_CANT_CREATE];如果不能创建客户端,返回[constant ERR_CANT_CREATE]。如果指" "定了[code]client_port[/code],客户端也将监听给定的端口;这对一些NAT穿越技术很" "有用。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Create server that listens to connections via [code]port[/code]. The port " "needs to be an available, unused port between 0 and 65535. Note that ports " "below 1024 are privileged and may require elevated permissions depending on " "the platform. To change the interface the server listens on, use [method " "set_bind_ip]. The default IP is the wildcard [code]\"*\"[/code], which " "listens on all available interfaces. [code]max_clients[/code] is the maximum " "number of clients that are allowed at once, any number up to 4095 may be " "used, although the achievable number of simultaneous clients may be far " "lower and depends on the application. For additional details on the " "bandwidth parameters, see [method create_client]. Returns [constant OK] if a " "server was created, [constant ERR_ALREADY_IN_USE] if this " "NetworkedMultiplayerENet instance already has an open connection (in which " "case you need to call [method close_connection] first) or [constant " "ERR_CANT_CREATE] if the server could not be created." msgstr "" "创建服务器,通过[code]port[/code]监听连接。该端口需要是一个可用的、未使用的端" "口,在0到65535之间。注意,低于1024的端口是特权端口,根据平台的不同可能需要提" "高权限。要改变服务器监听的接口,请使用[method set_bind_ip]。默认IP是通配符" "[code]\"*\"[/code],它监听所有可用的接口。[code]max_clients[/code]是允许同时" "进行的最大客户数,可以使用任何数字,最高可达4095,尽管可实现的同时进行的客户" "数可能要低得多,并且取决于应用。关于带宽参数的其他细节,见[method " "create_client]。如果服务器被创建,返回[constant OK];如果这个" "NetworkedMultiplayerENet实例已经有一个开放的连接(在这种情况下,你需要先调用" "[method close_connection]),返回[constant ERR_CANT_CREATE];如果服务器不能被" "创建,返回[constant ERR_CANT_CREATE]。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Disconnect the given peer. If \"now\" is set to [code]true[/code], the " "connection will be closed immediately without flushing queued messages." msgstr "" "断开给定对等体的连接。如果 \"now \"被设置为 [code]true[/code],连接将被立即关" "闭而不冲刷队列中的消息。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Returns the channel of the last packet fetched via [method PacketPeer." "get_packet]." msgstr "返回通过[method PacketPeer.get_packet]获取的最后一个包的Channel。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Returns the channel of the next packet that will be retrieved via [method " "PacketPeer.get_packet]." msgstr "返回将通过[method PacketPeer.get_packet]获取的下一个数据包的Channel。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml #: modules/websocket/doc_classes/WebSocketServer.xml msgid "Returns the IP address of the given peer." msgstr "返回给定对等体的IP地址。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml #: modules/websocket/doc_classes/WebSocketServer.xml msgid "Returns the remote port of the given peer." msgstr "返回给定对等体的远程端口。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "The IP used when creating a server. This is set to the wildcard [code]\"*\"[/" "code] by default, which binds to all available interfaces. The given IP " "needs to be in IPv4 or IPv6 address format, for example: " "[code]\"192.168.1.1\"[/code]." msgstr "" "创建服务器时使用的IP。默认情况下,这被设置为通配符[code]\"*\"[/code],它绑定" "到所有可用的接口。IP地址格式为IPv4或IPv6,例如:[code]\"192.168.1.1\"[/code]。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Configure the [X509Certificate] to use when [member use_dtls] is [code]true[/" "code]. For servers, you must also setup the [CryptoKey] via [method " "set_dtls_key]." msgstr "" "当[member use_dtls]为 [code]true[/code] 时,配置[X509Certificate]使用。对于服" "务器,您还必须通过[method set_dtls_key]设置[CryptoKey]。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Configure the [CryptoKey] to use when [member use_dtls] is [code]true[/" "code]. Remember to also call [method set_dtls_certificate] to setup your " "[X509Certificate]." msgstr "" "当[member use_dtls]为 [code]true[/code] 时,配置[CryptoKey]来使用。记住也要调" "用[method set_dtls_certificate]来设置[X509Certificate]。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Sets the timeout parameters for a peer.The timeout parameters control how " "and when a peer will timeout from a failure to acknowledge reliable traffic. " "Timeout values are expressed in milliseconds.\n" "The [code]timeout_limit[/code] is a factor that, multiplied by a value based " "on the average round trip time, will determine the timeout limit for a " "reliable packet. When that limit is reached, the timeout will be doubled, " "and the peer will be disconnected if that limit has reached " "[code]timeout_min[/code]. The [code]timeout_max[/code] parameter, on the " "other hand, defines a fixed timeout for which any packet must be " "acknowledged or the peer will be dropped." msgstr "" "设置对等方的超时参数。超时参数控制对等方因无法确认可靠流量而超时的方式和时" "间。超时值以毫秒表示。\n" "[code]timeout_limit[/code] 是一个系数,乘以基于平均往返时间的值,将确定可靠数" "据包的超时限制。当达到该限制时,超时将加倍,如果该限制已达到 " "[code]timeout_min[/code],则对等方将断开连接。另一方面,[code]timeout_max[/" "code] 参数定义了一个固定的超时时间,对于该超时时间必须确认任何数据包,否则对" "等方将被丢弃。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Enforce ordered packets when using [constant NetworkedMultiplayerPeer." "TRANSFER_MODE_UNRELIABLE] (thus behaving similarly to [constant " "NetworkedMultiplayerPeer.TRANSFER_MODE_UNRELIABLE_ORDERED]). This is the " "only way to use ordering with the RPC system." msgstr "" "在使用 [constant NetworkedMultiplayerPeer.TRANSFER_MODE_UNRELIABLE] 时强制命" "令包。(因此行为类似于 [constant NetworkedMultiplayerPeer." "TRANSFER_MODE_UNRELIABLE_ORDERED])。这是在 RPC 系统中使用排序的唯一方法。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "The number of channels to be used by ENet. Channels are used to separate " "different kinds of data. In reliable or ordered mode, for example, the " "packet delivery order is ensured on a per-channel basis. This is done to " "combat latency and reduces ordering restrictions on packets. The delivery " "status of a packet in one channel won't stall the delivery of other packets " "in another channel." msgstr "" "ENet要使用的信道数量。通道用于分离不同类型的数据。例如,在可靠或有序模式下," "包交付顺序是在每个通道的基础上保证的。这样做是为了消除延迟并减少对数据包的排" "序限制。在一个通道中的包的交付状态不会停止在另一个通道中的其他包的交付。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "The compression method used for network packets. These have different " "tradeoffs of compression speed versus bandwidth, you may need to test which " "one works best for your use case if you use compression at all.\n" "[b]Note:[/b] Most games' network design involve sending many small packets " "frequently (smaller than 4 KB each). If in doubt, it is recommended to keep " "the default compression algorithm as it works best on these small packets.\n" "[b]Note:[/b] [member compression_mode] must be set to the same value on both " "the server and all its clients. Clients will fail to connect if the [member " "compression_mode] set on the client differs from the one set on the server. " "Prior to Godot 3.4, the default [member compression_mode] was [constant " "COMPRESS_NONE]. Nonetheless, mixing engine versions between clients and " "server is not recommended and not officially supported." msgstr "" "用于网络数据包的压缩方法。这些在压缩速度与带宽之间有不同的权衡,如果您完全使" "用压缩,您可能需要测试哪一种最适合您的用例。\n" "[b]注:[/b]大多数游戏的网络设计都涉及频繁发送许多小数据包(每个小于4 KB)。如" "果有疑问,建议保留默认压缩算法,因为它对这些小数据包效果最好。\n" "[b]注意:[/b][member compression_mode] 必须在服务器及其所有客户端上设置为相同" "的值。如果客户端上设置的 [member compression_mode] 与服务器上设置的不同,则客" "户端将无法连接。在 Godot 3.4 之前,默认的 [member compression_mode] 是 " "[constant COMPRESS_NONE]。尽管如此,不建议在客户端和服务器之间混合引擎版本," "也不受官方支持。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "The hostname used for DTLS verification, to be compared against the \"CN\" " "value in the certificate provided by the server.\n" "When set to an empty string, the [code]address[/code] parameter passed to " "[method create_client] is used instead." msgstr "" "用于 DTLS 验证的主机名,与服务器提供的证书中的“CN”值进行比较。\n" "当设置为空字符串时,将使用传递给 [method create_client] 的 [code]address[/" "code] 参数。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Enable or disable certificate verification when [member use_dtls] is " "[code]true[/code]." msgstr "当 [member use_dtls] 为 [code]true[/code] 时启用或禁用证书验证。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Enable or disable the server feature that notifies clients of other peers' " "connection/disconnection, and relays messages between them. When this option " "is [code]false[/code], clients won't be automatically notified of other " "peers and won't be able to send them packets through the server." msgstr "" "启用或禁用服务器特性,该特性通知客户端其他对等体的连接/断开,并在它们之间转发" "消息。当此选项为 [code]false[/code] 时,客户端将不会自动收到其他对等体的通" "知,也无法通过服务器向他们发送数据包。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "Set the default channel to be used to transfer data. By default, this value " "is [code]-1[/code] which means that ENet will only use 2 channels: one for " "reliable packets, and one for unreliable packets. The channel [code]0[/code] " "is reserved and cannot be used. Setting this member to any value between " "[code]0[/code] and [member channel_count] (excluded) will force ENet to use " "that channel for sending data. See [member channel_count] for more " "information about ENet channels." msgstr "" "设置用于传输数据的默认通道。缺省情况下,该值为[code]-1[/code],表示ENet只使用" "2个通道:一个用于可靠报文,一个用于不可靠报文。通道[code]0[/code]被保留,不能" "使用。将该成员设置为[code]0[/code]和[member channel_count](不包括)之间的任何" "值将强制ENet使用该通道发送数据。有关ENet通道的更多信息,请参阅[member " "channel_count]。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "When enabled, the client or server created by this peer, will use " "[PacketPeerDTLS] instead of raw UDP sockets for communicating with the " "remote peer. This will make the communication encrypted with DTLS at the " "cost of higher resource usage and potentially larger packet size.\n" "[b]Note:[/b] When creating a DTLS server, make sure you setup the key/" "certificate pair via [method set_dtls_key] and [method " "set_dtls_certificate]. For DTLS clients, have a look at the [member " "dtls_verify] option, and configure the certificate accordingly via [method " "set_dtls_certificate]." msgstr "" "启用后,由该对等体创建的客户端或服务器将使用[PacketPeerDTLS],而不是原始UDP套" "接字与远程对等体进行通信。通信使用DTLS加密,代价是更高的资源占用和可能更大的" "数据包。\n" "[b]注意:[/b]当创建DTLS服务器时,确保用[method set_dtls_key]和[method " "set_dtls_certificate]设置密钥/证书对。对于DTLS客户端,查看[member " "dtls_verify]选项,用[method set_dtls_certificate]配置相应的证书。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "No compression. This uses the most bandwidth, but has the upside of " "requiring the fewest CPU resources. This option may also be used to make " "network debugging using tools like Wireshark easier." msgstr "" "无压缩。这使用最多的带宽,但具有占用最少 CPU 资源的好处。这个选项可以用于" "Wireshark等工具使用,更容易进行网络调试。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "ENet's built-in range encoding. Works well on small packets, but is not the " "most efficient algorithm on packets larger than 4 KB." msgstr "" "ENet 的内置范围编码。适用于小数据包,但对于大于 4 KB 的数据包不是最有效的算" "法。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "[url=http://fastlz.org/]FastLZ[/url] compression. This option uses less CPU " "resources compared to [constant COMPRESS_ZLIB], at the expense of using more " "bandwidth." msgstr "" "[url=http://fastlz.org/]FastLZ[/url] 压缩。与 [constant COMPRESS_ZLIB] 相比," "该选项使用的 CPU 资源更少,但使用的带宽更多。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "" "[url=https://www.zlib.net/]Zlib[/url] compression. This option uses less " "bandwidth compared to [constant COMPRESS_FASTLZ], at the expense of using " "more CPU resources. Note that this algorithm is not very efficient on " "packets smaller than 4 KB. Therefore, it's recommended to use other " "compression algorithms in most cases." msgstr "" "[url=https://www.zlib.net/]Zlib[/url]压缩。与 [constant COMPRESS_FASTLZ] 相" "比,这个选项使用较少的带宽,但代价是使用更多的 CPU 资源。请注意,这种算法对小" "于4KB的数据包不是很有效。因此,建议在大多数情况下使用其他压缩算法。" #: modules/enet/doc_classes/NetworkedMultiplayerENet.xml msgid "[url=https://facebook.github.io/zstd/]Zstandard[/url] compression." msgstr "[url=https://facebook.github.io/zstd/]Zstandard[/url]压缩。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "A high-level network interface to simplify multiplayer interactions." msgstr "高级网络接口,简化多人互动。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Manages the connection to network peers. Assigns unique IDs to each client " "connected to the server. See also [MultiplayerAPI].\n" "[b]Note:[/b] The high-level multiplayer API protocol is an implementation " "detail and isn't meant to be used by non-Godot servers. It may change " "without notice." msgstr "" "管理与网络对等体的连接。为连接到服务器的每个客户端分配唯一的 ID。另请参见 " "[MultiplayerAPI]。\n" "[b]注意:[/b]高级别多人游戏的 API 协议属于实现细节,没有准备被非 Godot 服务器" "使用。改变时恕不另行通知。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "High-level multiplayer" msgstr "高级多人游戏" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "WebRTC Signaling Demo" msgstr "WebRTC 信号演示" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Returns the current state of the connection. See [enum ConnectionStatus]." msgstr "返回连接的当前状态。请参阅 [enum ConnectionStatus]。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Returns the ID of the [NetworkedMultiplayerPeer] who sent the most recent " "packet." msgstr "返回最近发送数据包的 [NetworkedMultiplayerPeer] 的 ID。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Returns the ID of this [NetworkedMultiplayerPeer]." msgstr "返回这个 [NetworkedMultiplayerPeer] 的 ID。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Waits up to 1 second to receive a new network event." msgstr "等待最多 1 秒以接收一个新的网络事件。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Sets the peer to which packets will be sent.\n" "The [code]id[/code] can be one of: [constant TARGET_PEER_BROADCAST] to send " "to all connected peers, [constant TARGET_PEER_SERVER] to send to the peer " "acting as server, a valid peer ID to send to that specific peer, a negative " "peer ID to send to all peers except that one. By default, the target peer is " "[constant TARGET_PEER_BROADCAST]." msgstr "" "设置数据包将被发送至的对等体。\n" "[code]id[/code]可以是其中之一。[constant TARGET_PEER_BROADCAST] 发送给所有连" "接的对等体,[constant TARGET_PEER_SERVER] 发送给作为服务器的对等体,输入一个" "有效的对等体ID将发送给该特定对等体,输入负的ID将发送给所有其余对等体。默认情" "况下,目标对等体是[constant TARGET_PEER_BROADCAST]。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "If [code]true[/code], this [NetworkedMultiplayerPeer] refuses new " "connections." msgstr "" "为 [code]true[/code] 时,这个 [NetworkedMultiplayerPeer] 拒绝新的连接。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "The manner in which to send packets to the [code]target_peer[/code]. See " "[enum TransferMode]." msgstr "向[code]target_peer[/code]发送数据包的方式。参阅[enum TransferMode]。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Emitted when a connection attempt fails." msgstr "当连接尝试失败时触发该信号。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Emitted when a connection attempt succeeds." msgstr "当连接尝试成功时触发。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Emitted by the server when a client connects." msgstr "当客户端连接时由服务器触发该信号。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Emitted by the server when a client disconnects." msgstr "当客户端断开连接时由服务器触发。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Emitted by clients when the server disconnects." msgstr "当服务器断开连接时由客户端触发。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Packets are not acknowledged, no resend attempts are made for lost packets. " "Packets may arrive in any order. Potentially faster than [constant " "TRANSFER_MODE_UNRELIABLE_ORDERED]. Use for non-critical data, and always " "consider whether the order matters." msgstr "" "数据包不被确认,对丢失的数据包不进行重发尝试。数据包可以以任何顺序到达。可能" "比[constant TRANSFER_MODE_UNRELIABLE_ORDERED]快。用于非关键数据,并注意考虑顺" "序是否重要。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Packets are not acknowledged, no resend attempts are made for lost packets. " "Packets are received in the order they were sent in. Potentially faster than " "[constant TRANSFER_MODE_RELIABLE]. Use for non-critical data or data that " "would be outdated if received late due to resend attempt(s) anyway, for " "example movement and positional data." msgstr "" "数据包不被确认,对丢失的数据包不进行重发尝试。数据包按其发送顺序接收。有可能" "比[constant TRANSFER_MODE_RELIABLE]快。用于非关键数据或由于重发尝试而迟迟不能" "收到的数据,例如运动和位置数据。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "" "Packets must be received and resend attempts should be made until the " "packets are acknowledged. Packets must be received in the order they were " "sent in. Most reliable transfer mode, but potentially the slowest due to the " "overhead. Use for critical data that must be transmitted and arrive in " "order, for example an ability being triggered or a chat message. Consider " "carefully if the information really is critical, and use sparingly." msgstr "" "数据包必须被接收,并应进行重发尝试,直到数据包被确认。数据包必须按照其发送的" "顺序接收。最可靠的传输模式,但由于开销很大,可能是最慢的。用于必须按顺序传输" "和到达的关键数据,例如,正在触发的能力或聊天信息。仔细考虑信息是否真的是关键" "的,并尽量少用。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "The ongoing connection disconnected." msgstr "正在进行的连接断开了。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "A connection attempt is ongoing." msgstr "一个连接尝试正在进行中。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "The connection attempt succeeded." msgstr "连接尝试已经成功。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Packets are sent to the server and then redistributed to other peers." msgstr "数据包被发送到服务器,然后被重新分配到其他对等体。" #: doc/classes/NetworkedMultiplayerPeer.xml msgid "Packets are sent to the server alone." msgstr "数据包被单独发送到服务器。" #: doc/classes/NinePatchRect.xml msgid "" "Scalable texture-based frame that tiles the texture's centers and sides, but " "keeps the corners' original size. Perfect for panels and dialog boxes." msgstr "" "可扩展的基于纹理的框架,对纹理的中心和侧面进行拼接,但保持角落的原始尺寸。非" "常适用于面板和对话框。" #: doc/classes/NinePatchRect.xml msgid "" "Also known as 9-slice panels, NinePatchRect produces clean panels of any " "size, based on a small texture. To do so, it splits the texture in a 3×3 " "grid. When you scale the node, it tiles the texture's sides horizontally or " "vertically, the center on both axes but it doesn't scale or tile the corners." msgstr "" "NinePatchRect也被称为9片式面板,它基于一个小的纹理,产生任何尺寸的干净面板。" "为了做到这一点,它将纹理分割成3×3的网格。当你缩放节点时,它在水平或垂直方向上" "平铺纹理的两侧,在两个轴上平铺中心,但它不会缩放或平铺角部。" #: doc/classes/NinePatchRect.xml msgid "" "Returns the size of the margin identified by the given [enum Margin] " "constant." msgstr "返回由给定的[enum Margin]常量标识的边距大小。" #: doc/classes/NinePatchRect.xml msgid "" "Sets the size of the margin identified by the given [enum Margin] constant " "to [code]value[/code] in pixels." msgstr "" "将由给定的[enum Margin]常量标识的边距大小设置为[code]value[/code],单位为像" "素。" #: doc/classes/NinePatchRect.xml msgid "" "The stretch mode to use for horizontal stretching/tiling. See [enum " "NinePatchRect.AxisStretchMode] for possible values." msgstr "" "水平拉伸/平铺时使用的拉伸模式。参阅[enum NinePatchRect.AxisStretchMode]。" #: doc/classes/NinePatchRect.xml msgid "" "The stretch mode to use for vertical stretching/tiling. See [enum " "NinePatchRect.AxisStretchMode] for possible values." msgstr "" "用于垂直拉伸/平铺的拉伸模式。参阅[enum NinePatchRect.AxisStretchMode]。" #: doc/classes/NinePatchRect.xml msgid "" "If [code]true[/code], draw the panel's center. Else, only draw the 9-slice's " "borders." msgstr "如果[code]true[/code],则绘制面板的中心。否则,只画9-slice的边框。" #: doc/classes/NinePatchRect.xml msgid "" "The height of the 9-slice's bottom row. A margin of 16 means the 9-slice's " "bottom corners and side will have a height of 16 pixels. You can set all 4 " "margin values individually to create panels with non-uniform borders." msgstr "" "9-slice的底层行的高度。边距为16意味着9片的底角和侧面将有16像素的高度。你可以" "单独设置所有4个边距值来创建具有非统一边框的面板。" #: doc/classes/NinePatchRect.xml msgid "" "The width of the 9-slice's left column. A margin of 16 means the 9-slice's " "left corners and side will have a width of 16 pixels. You can set all 4 " "margin values individually to create panels with non-uniform borders." msgstr "" "9-切片的左列宽度。边距为16意味着9切片的左角和侧面将有16像素的宽度。你可以单独" "设置所有4个边距值,来创建有非统一边框的面板。" #: doc/classes/NinePatchRect.xml msgid "" "The width of the 9-slice's right column. A margin of 16 means the 9-slice's " "right corners and side will have a width of 16 pixels. You can set all 4 " "margin values individually to create panels with non-uniform borders." msgstr "" "9-切片的右列宽度。边距为16意味着9切片的右角和侧面将有16像素的宽度。你可以单独" "设置所有4个边距值,以创建有非统一边框的面板。" #: doc/classes/NinePatchRect.xml msgid "" "The height of the 9-slice's top row. A margin of 16 means the 9-slice's top " "corners and side will have a height of 16 pixels. You can set all 4 margin " "values individually to create panels with non-uniform borders." msgstr "" "9切片的顶行的高度。边距为16意味着9切片的顶角和侧面将有16像素的高度。你可以单" "独设置所有4个边距值,来创建有非统一边框的面板。" #: doc/classes/NinePatchRect.xml msgid "" "Rectangular region of the texture to sample from. If you're working with an " "atlas, use this property to define the area the 9-slice should use. All " "other properties are relative to this one. If the rect is empty, " "NinePatchRect will use the whole texture." msgstr "" "要取样的纹理的矩形区域。如果你正在使用一个图集,使用这个属性来定义9-slice应该" "使用的区域。所有其他属性都是相对于这个属性而言的。如果矩形为空,NinePatchRect" "将使用整个纹理。" #: doc/classes/NinePatchRect.xml msgid "The node's texture resource." msgstr "节点的纹理资源。" #: doc/classes/NinePatchRect.xml msgid "Emitted when the node's texture changes." msgstr "当节点的纹理发生变化时触发。" #: doc/classes/NinePatchRect.xml msgid "" "Stretches the center texture across the NinePatchRect. This may cause the " "texture to be distorted." msgstr "将中间纹理拉伸到9切片矩形。这可能会导致纹理失真。" #: doc/classes/NinePatchRect.xml msgid "" "Repeats the center texture across the NinePatchRect. This won't cause any " "visible distortion. The texture must be seamless for this to work without " "displaying artifacts between edges.\n" "[b]Note:[/b] Only supported when using the GLES3 renderer. When using the " "GLES2 renderer, this will behave like [constant AXIS_STRETCH_MODE_STRETCH]." msgstr "" "在 NinePatchRect 上重复中心纹理。这不会导致任何可见的失真。纹理必须是无缝的," "这样才能在边缘之间不显示伪影的情况下工作。\n" "[b]注:[/b] 仅在使用 GLES3 渲染器时支持。使用 GLES2 渲染器时,这将类似于 " "[constant AXIS_STRETCH_MODE_STRETCH]。" #: doc/classes/NinePatchRect.xml msgid "" "Repeats the center texture across the NinePatchRect, but will also stretch " "the texture to make sure each tile is visible in full. This may cause the " "texture to be distorted, but less than [constant AXIS_STRETCH_MODE_STRETCH]. " "The texture must be seamless for this to work without displaying artifacts " "between edges.\n" "[b]Note:[/b] Only supported when using the GLES3 renderer. When using the " "GLES2 renderer, this will behave like [constant AXIS_STRETCH_MODE_STRETCH]." msgstr "" "在 NinePatchRect 上重复中心纹理,但也会拉伸纹理以确保每个图块都完整可见。这可" "能会导致纹理扭曲,但小于 [constant AXIS_STRETCH_MODE_STRETCH]。纹理必须是无缝" "的,这样才能在边缘之间不显示伪影的情况下工作。\n" "[b]注:[/b] 仅在使用 GLES3 渲染器时支持。使用 GLES2 渲染器时,这将类似于 " "[constant AXIS_STRETCH_MODE_STRETCH]。" #: doc/classes/Node.xml msgid "Base class for all [i]scene[/i] objects." msgstr "所有[i]场景[/i]对象的基类。" #: doc/classes/Node.xml msgid "" "Nodes are Godot's building blocks. They can be assigned as the child of " "another node, resulting in a tree arrangement. A given node can contain any " "number of nodes as children with the requirement that all siblings (direct " "children of a node) should have unique names.\n" "A tree of nodes is called a [i]scene[/i]. Scenes can be saved to the disk " "and then instanced into other scenes. This allows for very high flexibility " "in the architecture and data model of Godot projects.\n" "[b]Scene tree:[/b] The [SceneTree] contains the active tree of nodes. When a " "node is added to the scene tree, it receives the [constant " "NOTIFICATION_ENTER_TREE] notification and its [method _enter_tree] callback " "is triggered. Child nodes are always added [i]after[/i] their parent node, i." "e. the [method _enter_tree] callback of a parent node will be triggered " "before its child's.\n" "Once all nodes have been added in the scene tree, they receive the [constant " "NOTIFICATION_READY] notification and their respective [method _ready] " "callbacks are triggered. For groups of nodes, the [method _ready] callback " "is called in reverse order, starting with the children and moving up to the " "parent nodes.\n" "This means that when adding a node to the scene tree, the following order " "will be used for the callbacks: [method _enter_tree] of the parent, [method " "_enter_tree] of the children, [method _ready] of the children and finally " "[method _ready] of the parent (recursively for the entire scene tree).\n" "[b]Processing:[/b] Nodes can override the \"process\" state, so that they " "receive a callback on each frame requesting them to process (do something). " "Normal processing (callback [method _process], toggled with [method " "set_process]) happens as fast as possible and is dependent on the frame " "rate, so the processing time [i]delta[/i] (in seconds) is passed as an " "argument. Physics processing (callback [method _physics_process], toggled " "with [method set_physics_process]) happens a fixed number of times per " "second (60 by default) and is useful for code related to the physics " "engine.\n" "Nodes can also process input events. When present, the [method _input] " "function will be called for each input that the program receives. In many " "cases, this can be overkill (unless used for simple projects), and the " "[method _unhandled_input] function might be preferred; it is called when the " "input event was not handled by anyone else (typically, GUI [Control] nodes), " "ensuring that the node only receives the events that were meant for it.\n" "To keep track of the scene hierarchy (especially when instancing scenes into " "other scenes), an \"owner\" can be set for the node with the [member owner] " "property. This keeps track of who instanced what. This is mostly useful when " "writing editors and tools, though.\n" "Finally, when a node is freed with [method Object.free] or [method " "queue_free], it will also free all its children.\n" "[b]Groups:[/b] Nodes can be added to as many groups as you want to be easy " "to manage, you could create groups like \"enemies\" or \"collectables\" for " "example, depending on your game. See [method add_to_group], [method " "is_in_group] and [method remove_from_group]. You can then retrieve all nodes " "in these groups, iterate them and even call methods on groups via the " "methods on [SceneTree].\n" "[b]Networking with nodes:[/b] After connecting to a server (or making one, " "see [NetworkedMultiplayerENet]), it is possible to use the built-in RPC " "(remote procedure call) system to communicate over the network. By calling " "[method rpc] with a method name, it will be called locally and in all " "connected peers (peers = clients and the server that accepts connections). " "To identify which node receives the RPC call, Godot will use its [NodePath] " "(make sure node names are the same on all peers). Also, take a look at the " "high-level networking tutorial and corresponding demos." msgstr "" "节点是 Godot 的构建模块。它们可以被指定为另一个节点的子节点,从而形成树状排" "列。一个给定的节点可以包含任意数量的节点作为子节点,要求所有的兄弟节点(即该" "节点的直接子节点)的名字唯一。\n" "节点树被称为[i]场景[/i]。场景可以被保存到磁盘上,然后被实例化到其他场景中。这" "使得 Godot 项目的架构和数据模型具有非常高的灵活性。\n" "[b]场景树:[/b] [SceneTree] 包含活动的节点树。当一个节点被添加到场景树中时," "它将收到 [constant NOTIFICATION_ENTER_TREE] 通知,并触发其 [method " "_enter_tree] 回调。子节点总是在其父节点[i]之后[/i]被添加,即父节点的 [method " "_enter_tree] 回调将在其子节点的之前被触发。\n" "一旦所有的节点被添加到场景树中,它们就会收到 [constant NOTIFICATION_READY] 通" "知,其各自的 [method _ready] 回调被触发。对于一组节点,[method _ready] 回调是" "按相反的顺序调用的,从子节点开始,向上移动到父节点。\n" "这意味着,当把一个节点添加到场景树中时,将使用下面的顺序进行回调:父节点的 " "[method _enter_tree]、子节点的 [method _enter_tree]、子节点的 [method " "_ready],最后是父节点的 [method _ready](对整个场景树进行递归)。\n" "[b]处理:[/b] 节点可以覆盖“处理”状态,以便它们在每一帧上都收到回调,要求它们" "进行处理(做一些事情)。普通处理(回调 [method _process],可以使用 [method " "set_process] 开关)会尽可能快地发生,并且取决于帧率,所以处理时间 [i]delta[/" "i](单位为秒)会作为参数传入。物理处理(回调 [method _physics_process],可以" "使用 [method set_physics_process] 开关)每秒发生固定次数(默认为 60),对物理" "引擎相关的代码很有用。\n" "节点也可以处理输入事件。存在 [method _input] 函数时,程序每收到一次输入都会去" "调用它。在许多情况下,这么做是大材小用了(除非是用于简单的项目),用 [method " "_unhandled_input] 函数可能更合适;当输入事件没有被其他节点(通常是 GUI " "[Control] 节点)处理时,才会调用这个函数,可以确保节点只接收到它该收到的事" "件。\n" "为了记录场景的层次结构(尤其是在将场景实例化到其他场景时)可以用 [member " "owner] 属性为节点设置一个“所有者”。它记录的是谁实例化了什么。这在编写编辑器和" "工具时非常有用。\n" "最后,当一个节点被 [method Object.free] 或 [method queue_free] 释放时,它也将" "释放它的所有子节点。\n" "[b]分组:[/b] 节点可以被添加到很多的组中,以方便管理,你可以根据自己游戏的需" "要来创建类似“敌人”或“收集品”这样的组。参阅 [method add_to_group]、[method " "is_in_group] 和 [method remove_from_group]。加入组后,你可以检索这些组中的所" "有节点,对它们进行迭代,甚至通过 [SceneTree] 中的方法调用组内方法。\n" "[b]节点的网络编程:[/b] 在连接到服务器(或制作服务器,参阅 " "[NetworkedMultiplayerENet])之后,可以使用内置的 RPC(远程过程调用)系统在网" "络上进行通信。在调用 [method rpc] 时传入方法名,将在本地和所有已连接的对等体" "中调用对应的方法(对等体=客户端和接受连接的服务器)。为了识别哪个节点收到 " "RPC 调用,Godot 将使用它的 [NodePath](请确保所有对等体上的节点名称相同)。另" "外,请参阅高级网络教程和相应的演示。" #: doc/classes/Node.xml msgid "Nodes and Scenes" msgstr "节点与场景" #: doc/classes/Node.xml msgid "All Demos" msgstr "所有演示" #: doc/classes/Node.xml msgid "" "Called when the node enters the [SceneTree] (e.g. upon instancing, scene " "changing, or after calling [method add_child] in a script). If the node has " "children, its [method _enter_tree] callback will be called first, and then " "that of the children.\n" "Corresponds to the [constant NOTIFICATION_ENTER_TREE] notification in " "[method Object._notification]." msgstr "" "当节点进入[SceneTree]时调用(例如实例化时,场景改变时,或者在脚本中调用" "[method add_child]后)。如果节点有子节点,则首先调用它的[method _enter_tree]回" "调函数,然后再调用子节点的回调函数。\n" "对应于[method Object._notification]中的[constant NOTIFICATION_ENTER_TREE]通" "知。" #: doc/classes/Node.xml msgid "" "Called when the node is about to leave the [SceneTree] (e.g. upon freeing, " "scene changing, or after calling [method remove_child] in a script). If the " "node has children, its [method _exit_tree] callback will be called last, " "after all its children have left the tree.\n" "Corresponds to the [constant NOTIFICATION_EXIT_TREE] notification in [method " "Object._notification] and signal [signal tree_exiting]. To get notified when " "the node has already left the active tree, connect to the [signal " "tree_exited]." msgstr "" "当节点即将离开[SceneTree]时被调用(例如,在释放、场景改变或在脚本中调用" "[method remove_child]后)。如果该节点有子节点,它的[method _exit_tree]回调将" "在所有子节点离开树后被最后调用。\n" "对应于 [method Object._notification] 中的 [constant NOTIFICATION_EXIT_TREE] " "通知和 [signal tree_exiting] 信号。要在节点已经离开活动树时得到通知,请连接" "到 [signal tree_exited] 。" #: doc/classes/Node.xml msgid "" "The string returned from this method is displayed as a warning in the Scene " "Dock if the script that overrides it is a [code]tool[/code] script.\n" "Returning an empty string produces no warning.\n" "Call [method update_configuration_warning] when the warning needs to be " "updated for this node." msgstr "" "如果覆盖该方法的脚本是一个[code]tool[/code]脚本,那么从该方法返回的字符串将在" "Scene Dock中显示为一个警告。\n" "返回一个空字符串不会产生警告。\n" "当需要更新这个节点的警告时,调用[method update_configuration_warning]。" #: doc/classes/Node.xml msgid "" "Called when there is an input event. The input event propagates up through " "the node tree until a node consumes it.\n" "It is only called if input processing is enabled, which is done " "automatically if this method is overridden, and can be toggled with [method " "set_process_input].\n" "To consume the input event and stop it propagating further to other nodes, " "[method SceneTree.set_input_as_handled] can be called.\n" "For gameplay input, [method _unhandled_input] and [method " "_unhandled_key_input] are usually a better fit as they allow the GUI to " "intercept the events first.\n" "[b]Note:[/b] This method is only called if the node is present in the scene " "tree (i.e. if it's not an orphan)." msgstr "" "当有输入事件时被调用。输入事件通过节点树向上传播,直到有节点将其消耗。\n" "只有当输入处理被启用时才会被调用,如果这个方法被重写,它就会自动完成,可以用 " "[method set_process_input] 来切换。\n" "要消耗输入事件并阻止它进一步传播到其他节点,可以调用 [method SceneTree." "set_input_as_handled]。\n" "对于游戏输入,[method _unhandled_input] 和 [method _unhandled_key_input] 通常" "更适合,因为它们允许 GUI 首先拦截事件。\n" "[b]注意:[/b]这个方法只有在节点存在于场景树中时才会被调用(也就是说,如果它" "非“孤儿”)。" #: doc/classes/Node.xml msgid "" "Called during the physics processing step of the main loop. Physics " "processing means that the frame rate is synced to the physics, i.e. the " "[code]delta[/code] variable should be constant. [code]delta[/code] is in " "seconds.\n" "It is only called if physics processing is enabled, which is done " "automatically if this method is overridden, and can be toggled with [method " "set_physics_process].\n" "Corresponds to the [constant NOTIFICATION_PHYSICS_PROCESS] notification in " "[method Object._notification].\n" "[b]Note:[/b] This method is only called if the node is present in the scene " "tree (i.e. if it's not an orphan)." msgstr "" "在主循环的物理处理步骤中被调用。物理处理意味着帧率与物理同步,即 " "[code]delta[/code] 变量应该是常量。[code]delta[/code] 的单位是秒。\n" "只有当物理处理被启用时才会被调用,如果这个方法被重写,就会自动完成,可以用 " "[method set_physics_process] 来切换。\n" "对应于 [method Object._notification] 中的 [constant " "NOTIFICATION_PHYSICS_PROCESS] 通知。\n" "[b]注意:[/b]这个方法只有在节点存在于场景树中时才会被调用(也就是说,如果它不" "是“孤儿”)。" #: doc/classes/Node.xml msgid "" "Called during the processing step of the main loop. Processing happens at " "every frame and as fast as possible, so the [code]delta[/code] time since " "the previous frame is not constant. [code]delta[/code] is in seconds.\n" "It is only called if processing is enabled, which is done automatically if " "this method is overridden, and can be toggled with [method set_process].\n" "Corresponds to the [constant NOTIFICATION_PROCESS] notification in [method " "Object._notification].\n" "[b]Note:[/b] This method is only called if the node is present in the scene " "tree (i.e. if it's not an orphan)." msgstr "" "在主循环的处理步骤中被调用。处理发生在每一帧,并且尽可能快,所以从上一帧开始" "的 [code]delta[/code] 时间不是恒定的。[code]delta[/code] 的单位是秒。\n" "只有在启用处理的情况下才会被调用,如果这个方法被重写,会自动进行处理,可以用 " "[method set_process] 来切换。\n" "对应于 [method Object._notification] 中的 [constant NOTIFICATION_PROCESS] 通" "知。\n" "[b]注意:[/b]这个方法只有在节点存在于场景树中时才会被调用(也就是说,如果它不" "是“孤儿”)。" #: doc/classes/Node.xml msgid "" "Called when the node is \"ready\", i.e. when both the node and its children " "have entered the scene tree. If the node has children, their [method _ready] " "callbacks get triggered first, and the parent node will receive the ready " "notification afterwards.\n" "Corresponds to the [constant NOTIFICATION_READY] notification in [method " "Object._notification]. See also the [code]onready[/code] keyword for " "variables.\n" "Usually used for initialization. For even earlier initialization, [method " "Object._init] may be used. See also [method _enter_tree].\n" "[b]Note:[/b] [method _ready] may be called only once for each node. After " "removing a node from the scene tree and adding it again, [code]_ready[/code] " "will not be called a second time. This can be bypassed by requesting another " "call with [method request_ready], which may be called anywhere before adding " "the node again." msgstr "" "当节点“就绪”时被调用。子节点的 [method _ready] 回调会首先被触发,而父节点会在" "之后收到就绪通知。\n" "对应于 [method Object._notification] 中的 [constant NOTIFICATION_READY] 通" "知。也请参阅变量的 [code]onready[/code] 关键字。\n" "通常用于初始化。对于更早的初始化,可以使用 [method Object._init]。也请参阅 " "[method _enter_tree]。\n" "[b]注意:[/b][method _ready] 对于每个节点只会调用一次。在从场景树中删除一个节" "点并再次添加后,[code]_ready[/code] 将不会被第二次调用。这可以通过请求再次调" "用 [method request_ready] 来绕过,它可以在再次添加节点之前的任何地方调用。" #: doc/classes/Node.xml msgid "" "Called when an [InputEvent] hasn't been consumed by [method _input] or any " "GUI [Control] item. The input event propagates up through the node tree " "until a node consumes it.\n" "It is only called if unhandled input processing is enabled, which is done " "automatically if this method is overridden, and can be toggled with [method " "set_process_unhandled_input].\n" "To consume the input event and stop it propagating further to other nodes, " "[method SceneTree.set_input_as_handled] can be called.\n" "For gameplay input, this and [method _unhandled_key_input] are usually a " "better fit than [method _input] as they allow the GUI to intercept the " "events first.\n" "[b]Note:[/b] This method is only called if the node is present in the scene " "tree (i.e. if it's not an orphan)." msgstr "" "当 [InputEvent] 还未被 [method _input] 或任何 GUI [Control] 项目消耗时调用。" "输入事件通过节点树向上传播,直到一个节点消耗它。\n" "只有在启用了未处理的输入处理时才会被调用,如果这个方法被重写,它就会自动完" "成,并且可以用 [method set_process_unhandled_input] 来切换。\n" "要消耗输入事件并阻止它进一步传播到其他节点,可以调用 [method SceneTree." "set_input_as_handled]。\n" "对于游戏输入,这和 [method _unhandled_key_input] 通常比 [method _input] 更适" "合,因为它们允许 GUI 首先拦截事件。\n" "[b]注意:[/b]这个方法只有在节点存在于场景树中时才会被调用(也就是说,如果它不" "是“孤儿”)。" #: doc/classes/Node.xml msgid "" "Called when an [InputEventKey] hasn't been consumed by [method _input] or " "any GUI [Control] item. The input event propagates up through the node tree " "until a node consumes it.\n" "It is only called if unhandled key input processing is enabled, which is " "done automatically if this method is overridden, and can be toggled with " "[method set_process_unhandled_key_input].\n" "To consume the input event and stop it propagating further to other nodes, " "[method SceneTree.set_input_as_handled] can be called.\n" "For gameplay input, this and [method _unhandled_input] are usually a better " "fit than [method _input] as they allow the GUI to intercept the events " "first.\n" "[b]Note:[/b] This method is only called if the node is present in the scene " "tree (i.e. if it's not an orphan)." msgstr "" "当 [InputEventKey] 没有被 [method _input] 或任何 GUI [Control] 项目消耗时被调" "用。输入事件通过节点树向上传播,直到一个节点消耗它。\n" "只有在启用了未处理的键输入处理时才会被调用,如果这个方法被重写,它就会自动完" "成,并且可以用 [method set_process_unhandled_key_input] 来切换。\n" "要消耗输入事件并阻止它进一步传播到其他节点,可以调用 [method SceneTree." "set_input_as_handled]。\n" "对于游戏输入,这和 [method _unhandled_input] 通常比 [method _input] 更适合," "因为它们允许 GUI 首先拦截事件。\n" "[b]注意:[/b]这个方法只有在节点存在于场景树中时才会被调用(也就是说,如果它不" "是“孤儿”)。" #: doc/classes/Node.xml msgid "" "Adds a child node. Nodes can have any number of children, but every child " "must have a unique name. Child nodes are automatically deleted when the " "parent node is deleted, so an entire scene can be removed by deleting its " "topmost node.\n" "If [code]legible_unique_name[/code] is [code]true[/code], the child node " "will have a human-readable name based on the name of the node being " "instanced instead of its type.\n" "[b]Note:[/b] If the child node already has a parent, the function will fail. " "Use [method remove_child] first to remove the node from its current parent. " "For example:\n" "[codeblock]\n" "if child_node.get_parent():\n" " child_node.get_parent().remove_child(child_node)\n" "add_child(child_node)\n" "[/codeblock]\n" "[b]Note:[/b] If you want a child to be persisted to a [PackedScene], you " "must set [member owner] in addition to calling [method add_child]. This is " "typically relevant for [url=$DOCS_URL/tutorials/plugins/" "running_code_in_the_editor.html]tool scripts[/url] and [url=$DOCS_URL/" "tutorials/plugins/editor/index.html]editor plugins[/url]. If [method " "add_child] is called without setting [member owner], the newly added [Node] " "will not be visible in the scene tree, though it will be visible in the " "2D/3D view." msgstr "" "添加子节点。节点可以有任意数量的子节点,但是每个子节点必须有唯一的名字。当父" "节点被删除时,子节点会被自动删除,所以整个场景可以通过删除其最上面的节点而被" "删除。\n" "如果 [code]legible_unique_name[/code] 是 [code]true[/code],子节点将有一个基" "于被实例化的节点的名称,而不是其类型可读的名称。\n" "[b]注意:[/b]如果子节点已经有父节点,该函数将失败。首先使用 [method " "remove_child] 将节点从其当前的父节点中移除。如:\n" "[codeblock]\n" "if child_node.get_parent():\n" " child_node.get_parent().remove_child(child_node)\n" "add_child(child_node)\n" "[/codeblock]\n" "[b]注意:[/b]如果想要将子节点持久化进 [PackedScene],除了调用 [method " "add_child] 之外你还必须设置 [member owner]。通常在[url=$DOCS_URL/tutorials/" "plugins/running_code_in_the_editor.html]工具脚本[/url]和[url=$DOCS_URL/" "tutorials/plugins/editor/index.html]编辑器插件[/url]中会用到。如果调用了 " "[method add_child] 但没有设置 [member owner],那么新建的这个 [Node] 在场景树" "中不可见,但在 2D/3D 视图中可见。" #: doc/classes/Node.xml msgid "" "Adds [code]child_node[/code] as a child. The child is placed below the given " "[code]node[/code] in the list of children.\n" "If [code]legible_unique_name[/code] is [code]true[/code], the child node " "will have a human-readable name based on the name of the node being " "instanced instead of its type." msgstr "" "添加[code]child_node[/code]作为子节点。该子节点在子节点列表中被置于给定的" "[code]node[/code]之下。\n" "如果[code]legible_unique_name[/code]是[code]true[/code],子节点将有一个基于被" "实例化的节点名称,而不是其类型可读的名称。" #: doc/classes/Node.xml msgid "" "Adds the node to a group. Groups are helpers to name and organize a subset " "of nodes, for example \"enemies\" or \"collectables\". A node can be in any " "number of groups. Nodes can be assigned a group at any time, but will not be " "added until they are inside the scene tree (see [method is_inside_tree]). " "See notes in the description, and the group methods in [SceneTree].\n" "The [code]persistent[/code] option is used when packing node to " "[PackedScene] and saving to file. Non-persistent groups aren't stored.\n" "[b]Note:[/b] For performance reasons, the order of node groups is [i]not[/i] " "guaranteed. The order of node groups should not be relied upon as it can " "vary across project runs." msgstr "" "将节点添加到一个组中。组是命名和组织节点子集的辅助工具,例如“敌人”或“收集" "品”等。一个节点可以在任何数量的组中。节点可以在任何时候被分配到一个组中,但是" "在它们进入场景树之前不会被添加,参阅 [method is_inside_tree]。参阅描述中的注" "释,以及 [SceneTree] 中的分组方法。\n" "当把节点打包到 [PackedScene] 并保存到文件时,会使用 [code]persistent[/code] " "选项。非持久化的组不会被存储。\n" "[b]注意:[/b]由于性能原因,[i]不保证[/i]节点组的顺序。不应该依赖节点组的顺" "序,因为每次运行项目节点组的顺序都可能变化。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the node can process while the scene tree is " "paused (see [member pause_mode]). Always returns [code]true[/code] if the " "scene tree is not paused, and [code]false[/code] if the node is not in the " "tree." msgstr "" "如果节点可以在场景树暂停时进行处理,返回 [code]true[/code](见[member " "pause_mode])。如果场景树没有暂停,总是返回 [code]true[/code],如果节点不在树" "中,则返回 [code]false[/code]。" #: doc/classes/Node.xml msgid "" "Creates a new [SceneTreeTween] and binds it to this node. This is equivalent " "of doing:\n" "[codeblock]\n" "get_tree().create_tween().bind_node(self)\n" "[/codeblock]" msgstr "" "新建 [SceneTreeTween] 并将其绑定到这个节点。与如下操作等价:\n" "[codeblock]\n" "get_tree().create_tween().bind_node(self)\n" "[/codeblock]" #: doc/classes/Node.xml msgid "" "Duplicates the node, returning a new node.\n" "You can fine-tune the behavior using the [code]flags[/code] (see [enum " "DuplicateFlags]).\n" "[b]Note:[/b] It will not work properly if the node contains a script with " "constructor arguments (i.e. needs to supply arguments to [method Object." "_init] method). In that case, the node will be duplicated without a script." msgstr "" "复制节点,返回一个新的节点。\n" "你可以使用[code]flags[/code]来微调这个行为(见[enum DuplicateFlags])。\n" "[b]注意:[/b]如果节点包含一个带有构造参数的脚本(即需要向[method Object." "_init]方法提供参数),它将不能正常工作。在这种情况下,节点将被复制而没有脚" "本。" #: doc/classes/Node.xml msgid "" "Finds a descendant of this node whose name matches [code]mask[/code] as in " "[method String.match] (i.e. case-sensitive, but [code]\"*\"[/code] matches " "zero or more characters and [code]\"?\"[/code] matches any single character " "except [code]\".\"[/code]). Returns [code]null[/code] if no matching [Node] " "is found.\n" "[b]Note:[/b] It does not match against the full path, just against " "individual node names.\n" "If [code]owned[/code] is [code]true[/code], this method only finds nodes " "whose owner is this node. This is especially important for scenes " "instantiated through a script, because those scenes don't have an owner.\n" "[b]Note:[/b] As this method walks through all the descendants of the node, " "it is the slowest way to get a reference to another node. Whenever possible, " "consider using [method get_node] instead. To avoid using [method find_node] " "too often, consider caching the node reference into a variable." msgstr "" "查找该节点的子级,其名称与 [code]mask[/code] 相匹配,匹配规则同 [method " "String.match](区分大小写,但 [code]\"*\"[/code] 可以匹配零或多个字符," "[code]\"?\"[/code] 可以匹配除 [code]\".\"[/code] 以外的任何单个字符)。如果没" "有找到匹配的 [Node],则返回 [code]null[/code]。\n" "[b]注意:[/b]匹配的不是完整路径,只匹配单独的节点名称。\n" "如果 [code]owner[/code] 为 [code]true[/code],这个方法只会寻找所有者是这个节" "点的节点。这对通过脚本实例化的场景特别重要,因为这些场景没有所有者。\n" "[b]注意:[/b]由于这个方法会遍历节点的所有子级,它是获得另一个节点的引用的最慢" "的方法。只要有可能,请考虑使用 [method get_node] 代替。为了避免过于频繁地使" "用 [method find_node],可以考虑将节点引用缓存到变量中。" #: doc/classes/Node.xml msgid "" "Finds the first parent of the current node whose name matches [code]mask[/" "code] as in [method String.match] (i.e. case-sensitive, but [code]\"*\"[/" "code] matches zero or more characters and [code]\"?\"[/code] matches any " "single character except [code]\".\"[/code]).\n" "[b]Note:[/b] It does not match against the full path, just against " "individual node names.\n" "[b]Note:[/b] As this method walks upwards in the scene tree, it can be slow " "in large, deeply nested scene trees. Whenever possible, consider using " "[method get_node] instead. To avoid using [method find_parent] too often, " "consider caching the node reference into a variable." msgstr "" "查找当前节点的第一个父节点,其名称与[method String.match]中的[code]mask[/" "code]相匹配,区分大小写,其[code]\"*\"[/code]匹配零或多个字符,[code]\"?\"[/" "code]匹配任何单个字符,除了[code]\".\"[/code]。\n" "[b]注意:[/b]它不是全路径匹配,只与单个节点名称匹配。\n" "[b]注意:[/b]由于这个方法在场景树中向上行走,在大型的、深度嵌套的场景树中可能" "会很慢。只要有可能,请考虑使用[method get_node]代替。为了避免过于频繁地使用" "[method find_parent],考虑将节点引用缓存到一个变量中。" #: doc/classes/Node.xml msgid "" "Returns a child node by its index (see [method get_child_count]). This " "method is often used for iterating all children of a node.\n" "To access a child node via its name, use [method get_node]." msgstr "" "按索引返回一个子节点(见[method get_child_count])。这个方法经常被用于遍历一" "个节点的所有子节点。\n" "要通过一个子节点的名字访问它,请使用[method get_node]。" #: doc/classes/Node.xml msgid "Returns the number of child nodes." msgstr "返回子节点的数目。" #: doc/classes/Node.xml msgid "Returns an array of references to node's children." msgstr "返回节点的子节点的引用数组。" #: doc/classes/Node.xml msgid "" "Returns an array listing the groups that the node is a member of.\n" "[b]Note:[/b] For performance reasons, the order of node groups is [i]not[/i] " "guaranteed. The order of node groups should not be relied upon as it can " "vary across project runs.\n" "[b]Note:[/b] The engine uses some group names internally (all starting with " "an underscore). To avoid conflicts with internal groups, do not add custom " "groups whose name starts with an underscore. To exclude internal groups " "while looping over [method get_groups], use the following snippet:\n" "[codeblock]\n" "# Stores the node's non-internal groups only (as an array of Strings).\n" "var non_internal_groups = []\n" "for group in get_groups():\n" " if not group.begins_with(\"_\"):\n" " non_internal_groups.push_back(group)\n" "[/codeblock]" msgstr "" "返回罗列该节点所在分组的数组。\n" "[b]注意:[/b]出于性能原因,[i]不保证[/i]节点分组的顺序。不应该依赖节点分组的" "顺序,因为每次运行得到的顺序都可能不同。\n" "[b]注意:[/b]引擎内部会使用一些分组名称(均由下划线开头)。如果想避免与内部分" "组冲突,请勿添加名称以下划线开头的自定义分组。要在遍历 [method get_groups] 时" "排除内部分组,请使用下面这段代码:\n" "[codeblock]\n" "# 只保存节点的非内部分组(字符串数组)。\n" "var non_internal_groups = []\n" "for group in get_groups():\n" " if not group.begins_with(\"_\"):\n" " non_internal_groups.push_back(group)\n" "[/codeblock]" #: doc/classes/Node.xml msgid "" "Returns the node's index, i.e. its position among the siblings of its parent." msgstr "返回节点的索引,即它在其父节点的兄弟节点中的位置。" #: doc/classes/Node.xml msgid "" "Returns the peer ID of the network master for this node. See [method " "set_network_master]." msgstr "返回此节点的网络主节点的对等 ID。请参阅 [method set_network_master]。" #: doc/classes/Node.xml msgid "" "Fetches a node. The [NodePath] can be either a relative path (from the " "current node) or an absolute path (in the scene tree) to a node. If the path " "does not exist, [code]null[/code] is returned and an error is logged. " "Attempts to access methods on the return value will result in an \"Attempt " "to call on a null instance.\" error.\n" "[b]Note:[/b] Fetching absolute paths only works when the node is inside the " "scene tree (see [method is_inside_tree]).\n" "[b]Example:[/b] Assume your current node is Character and the following " "tree:\n" "[codeblock]\n" "/root\n" "/root/Character\n" "/root/Character/Sword\n" "/root/Character/Backpack/Dagger\n" "/root/MyGame\n" "/root/Swamp/Alligator\n" "/root/Swamp/Mosquito\n" "/root/Swamp/Goblin\n" "[/codeblock]\n" "Possible paths are:\n" "[codeblock]\n" "get_node(\"Sword\")\n" "get_node(\"Backpack/Dagger\")\n" "get_node(\"../Swamp/Alligator\")\n" "get_node(\"/root/MyGame\")\n" "[/codeblock]" msgstr "" "获取一个节点。[NodePath] 可以是一个相对路径(从当前节点),也可以是一个绝对路" "径(在场景树中)。如果路径不存在,则返回 [code]null[/code],并记录错误。尝试访" "问返回值上的方法将导致“Attempt to call on a null instance.”错误。\n" "[b]注意:[/b]获取绝对路径只在节点在场景树中时生效(请参阅 [method " "is_inside_tree])。\n" "[b]示例:[/b]假设你当前的节点是 Character,并且有一下树结构:\n" "[codeblock]\n" "/root\n" "/root/Character\n" "/root/Character/Sword\n" "/root/Character/Backpack/Dagger\n" "/root/MyGame\n" "/root/Swamp/Alligator\n" "/root/Swamp/Mosquito\n" "/root/Swamp/Goblin\n" "[/codeblock]\n" "可能的路径会是下面这样:\n" "[codeblock]\n" "get_node(\"Sword\")\n" "get_node(\"Backpack/Dagger\")\n" "get_node(\"../Swamp/Alligator\")\n" "get_node(\"/root/MyGame\")\n" "[/codeblock]" #: doc/classes/Node.xml msgid "" "Fetches a node and one of its resources as specified by the [NodePath]'s " "subname (e.g. [code]Area2D/CollisionShape2D:shape[/code]). If several nested " "resources are specified in the [NodePath], the last one will be fetched.\n" "The return value is an array of size 3: the first index points to the [Node] " "(or [code]null[/code] if not found), the second index points to the " "[Resource] (or [code]null[/code] if not found), and the third index is the " "remaining [NodePath], if any.\n" "For example, assuming that [code]Area2D/CollisionShape2D[/code] is a valid " "node and that its [code]shape[/code] property has been assigned a " "[RectangleShape2D] resource, one could have this kind of output:\n" "[codeblock]\n" "print(get_node_and_resource(\"Area2D/CollisionShape2D\")) # " "[[CollisionShape2D:1161], Null, ]\n" "print(get_node_and_resource(\"Area2D/CollisionShape2D:shape\")) # " "[[CollisionShape2D:1161], [RectangleShape2D:1156], ]\n" "print(get_node_and_resource(\"Area2D/CollisionShape2D:shape:extents\")) # " "[[CollisionShape2D:1161], [RectangleShape2D:1156], :extents]\n" "[/codeblock]" msgstr "" "获取一个节点及其由[NodePath]子名称指定的资源(例如[code]Area2D/" "CollisionShape2D:shape[/code])。如果在[NodePath]中指定了多个嵌套资源,则将获" "取最后一个。\n" "返回值是一个大小为3的数组:第一个索引指向[Node](或[code]null[/code]),第二个索" "引指向[Resource](或[code]null[/code]),第三个索引是剩余的[NodePath]。\n" "例如,假设[code]Area2D/CollisionShape2D[/code]是一个有效的节点,并且它的" "[code]shape[/code]属性被分配了一个[RectangleShape2D]资源,可以有这样的输出:\n" "[codeblock]\n" "print(get_node_and_resource(\"Area2D/CollisionShape2D\")) # " "[[CollisionShape2D:1161], Null, ]\n" "print(get_node_and_resource(\"Area2D/CollisionShape2D:shape\")) # " "[[CollisionShape2D:1161], [RectangleShape2D:1156], ]\n" "print(get_node_and_resource(\"Area2D/CollisionShape2D:shape:extents\")) # " "[[CollisionShape2D:1161], [RectangleShape2D:1156], :extents]\n" "[/codeblock]" #: doc/classes/Node.xml msgid "" "Similar to [method get_node], but does not log an error if [code]path[/code] " "does not point to a valid [Node]." msgstr "" "类似于 [method get_node],但如果 [code]path[/code] 没有指向有效的 [Node],则" "不会记录错误。" #: doc/classes/Node.xml msgid "" "Returns the parent node of the current node, or [code]null[/code] if the " "node lacks a parent." msgstr "返回当前节点的父节点,如果节点缺少父节点,则返回 [code]null[/code]。" #: doc/classes/Node.xml msgid "" "Returns the absolute path of the current node. This only works if the " "current node is inside the scene tree (see [method is_inside_tree])." msgstr "" "返回当前节点的绝对路径。这只在当前节点在场景树中起作用(请参阅 [method " "is_inside_tree])。" #: doc/classes/Node.xml msgid "" "Returns the relative [NodePath] from this node to the specified [code]node[/" "code]. Both nodes must be in the same scene or the function will fail." msgstr "" "从这个节点返回到指定的[code]node[/code]的相对[NodePath]。两个节点必须在同一个" "场景中,否则函数将失败。" #: doc/classes/Node.xml msgid "" "Returns the time elapsed (in seconds) since the last physics-bound frame " "(see [method _physics_process]). This is always a constant value in physics " "processing unless the frames per second is changed via [member Engine." "iterations_per_second]." msgstr "" "返回自上次物理绑定帧以来所经过的秒数(请参阅 [method _physics_process])。在" "物理处理中,除非通过 [member Engine.iterations_per_second] 来改变每秒的帧数," "否则始终为常量。" #: doc/classes/Node.xml msgid "" "Returns the node's order in the scene tree branch. For example, if called on " "the first child node the position is [code]0[/code]." msgstr "" "返回场景树分支中节点的顺序。例如,如果在第一个子节点上调用,则位置为[code]0[/" "code]。" #: doc/classes/Node.xml msgid "" "Returns the time elapsed (in seconds) since the last process callback. This " "value may vary from frame to frame." msgstr "返回自上次处理回调以来经过的时间(单位为秒)。这个值可能因帧而异。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if this is an instance load placeholder. See " "[InstancePlaceholder]." msgstr "" "如果这是一个实例加载占位符,则返回 [code]true[/code]。看到" "[InstancePlaceholder]。" #: doc/classes/Node.xml msgid "Returns the [SceneTree] that contains this node." msgstr "返回包含该节点的[SceneTree]。" #: doc/classes/Node.xml msgid "Returns the node's [Viewport]." msgstr "返回节点的[Viewport]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the node that the [NodePath] points to exists." msgstr "如果[NodePath]指向的节点存在,则返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the [NodePath] points to a valid node and its " "subname points to a valid resource, e.g. [code]Area2D/CollisionShape2D:" "shape[/code]. Properties with a non-[Resource] type (e.g. nodes or primitive " "math types) are not considered resources." msgstr "" "如果 [NodePath] 指向一个有效的节点,并且它的子名称指向一个有效的资源,例如 " "[code]Area2D/CollisionShape2D:shape[/code],则返回 [code]true[/code]。具有非 " "[Resource] 类型的属性(例如节点或基本数学类型)不被认为是资源。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the given node is a direct or indirect child of " "the current node." msgstr "如果给定节点是当前节点的直接或间接子节点,则返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the node is folded (collapsed) in the Scene " "dock." msgstr "如果节点在场景dock中折叠(collapsed),则返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the given node occurs later in the scene " "hierarchy than the current node." msgstr "" "如果给定节点在场景层次结构中出现的时间晚于当前节点,则返回 [code]true[/" "code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if this node is in the specified group. See notes " "in the description, and the group methods in [SceneTree]." msgstr "" "如果该节点在指定的组中,则返回 [code]true[/code]。参阅描述中的注释和" "[SceneTree]中的组方法。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if this node is currently inside a [SceneTree]." msgstr "如果该节点当前在[SceneTree]中,返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the local system is the master of this node." msgstr "" "如果本地系统是此节点的主系统(用于多人游戏),则返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the physics interpolated flag is set for this " "Node (see [member physics_interpolation_mode]).\n" "[b]Note:[/b] Interpolation will only be active if both the flag is set " "[b]and[/b] physics interpolation is enabled within the [SceneTree]. This can " "be tested using [method is_physics_interpolated_and_enabled]." msgstr "" "如果这个 Node 设置了物理插值标志,则返回 [code]true[/code](见 [member " "physics_interpolation_mode])。\n" "[b]注意:[/b]只有在设置了标志[b]并且[/b]该 [SceneTree] 启用了物理插值时,才会" "启用插值。可以使用 [method is_physics_interpolated_and_enabled] 进行检查。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if physics interpolation is enabled (see [member " "physics_interpolation_mode]) [b]and[/b] enabled in the [SceneTree].\n" "This is a convenience version of [method is_physics_interpolated] that also " "checks whether physics interpolation is enabled globally.\n" "See [member SceneTree.physics_interpolation] and [member ProjectSettings." "physics/common/physics_interpolation]." msgstr "" "如果启用了物理插值(见 [member physics_interpolation_mode])[b]并且[/b]该 " "[SceneTree] 也启用了物理插值,则返回 [code]true[/code]。\n" "这是 [method is_physics_interpolated] 的简便版本,还会检查是否全局启用了物理" "插值。\n" "见 [member SceneTree.physics_interpolation] 和 [member ProjectSettings." "physics/common/physics_interpolation]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if physics processing is enabled (see [method " "set_physics_process])." msgstr "" "如果启用了物理处理,返回 [code]true[/code](参阅[method " "set_physics_process])。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if internal physics processing is enabled (see " "[method set_physics_process_internal])." msgstr "" "如果内部物理处理被启用,返回 [code]true[/code](见[method " "set_physics_process_internal])。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if processing is enabled (see [method " "set_process])." msgstr "如果开启了处理,返回 [code]true[/code](参阅[method set_process])。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the node is processing input (see [method " "set_process_input])." msgstr "" "如果节点正在处理输入(请参阅 [method set_process_input]),则返回 " "[code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if internal processing is enabled (see [method " "set_process_internal])." msgstr "" "如果启用了内部处理,返回 [code]true[/code](参阅[method " "set_process_internal])。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the node is processing unhandled input (see " "[method set_process_unhandled_input])." msgstr "" "如果节点正在处理未被处理的输入(参阅[method set_process_unhandled_input]),则" "返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Returns [code]true[/code] if the node is processing unhandled key input (see " "[method set_process_unhandled_key_input])." msgstr "" "如果节点正在处理未被处理的键输入(参阅[method " "set_process_unhandled_key_input]),则返回 [code]true[/code]。" #: doc/classes/Node.xml msgid "" "Moves a child node to a different position (order) among the other children. " "Since calls, signals, etc are performed by tree order, changing the order of " "children nodes may be useful." msgstr "" "在其他子节点中将子节点移动到不同的位置(顺序)。由于调用、信号等是按树顺序执行" "的,因此更改子节点的顺序可能会很有用。" #: doc/classes/Node.xml msgid "" "Prints all stray nodes (nodes outside the [SceneTree]). Used for debugging. " "Works only in debug builds." msgstr "" "打印所有离群节点([SceneTree] 之外的节点)。用于调试。只能在调试版本中工作。" #: doc/classes/Node.xml msgid "" "Prints the tree to stdout. Used mainly for debugging purposes. This version " "displays the path relative to the current node, and is good for copy/pasting " "into the [method get_node] function.\n" "[b]Example output:[/b]\n" "[codeblock]\n" "TheGame\n" "TheGame/Menu\n" "TheGame/Menu/Label\n" "TheGame/Menu/Camera2D\n" "TheGame/SplashScreen\n" "TheGame/SplashScreen/Camera2D\n" "[/codeblock]" msgstr "" "将树打印到标准输出。主要用于调试。这个版本显示相对于当前节点的路径,适合复制/" "粘贴到 [method get_node] 函数中。\n" "[b]示例输出:[/b]\n" "[codeblock]\n" "TheGame\n" "TheGame/Menu\n" "TheGame/Menu/Label\n" "TheGame/Menu/Camera2D\n" "TheGame/SplashScreen\n" "TheGame/SplashScreen/Camera2D\n" "[/codeblock]" #: doc/classes/Node.xml msgid "" "Similar to [method print_tree], this prints the tree to stdout. This version " "displays a more graphical representation similar to what is displayed in the " "scene inspector. It is useful for inspecting larger trees.\n" "[b]Example output:[/b]\n" "[codeblock]\n" " ┖╴TheGame\n" " ┠╴Menu\n" " ┃ ┠╴Label\n" " ┃ ┖╴Camera2D\n" " ┖╴SplashScreen\n" " ┖╴Camera2D\n" "[/codeblock]" msgstr "" "类似于 [method print_tree],它将树打印到标准输出。这个版本显示更多的图形,类" "似于在场景检查器中显示的内容。它对于检查较大的树很有用。\n" "[b]输出示例:[/b]\n" "[codeblock]\n" " ┖╴TheGame\n" " ┠╴Menu\n" " ┃ ┠╴Label\n" " ┃ ┖╴Camera2D\n" " ┖╴SplashScreen\n" " ┖╴Camera2D\n" "[/codeblock]" #: doc/classes/Node.xml msgid "" "Calls the given method (if present) with the arguments given in [code]args[/" "code] on this node and recursively on all its children. If the " "[code]parent_first[/code] argument is [code]true[/code], the method will be " "called on the current node first, then on all its children. If " "[code]parent_first[/code] is [code]false[/code], the children will be called " "first." msgstr "" "在这个节点上使用[code]args[/code]中给出的参数调用给定的方法(如果存在),并递归" "地在其所有子节点身上调用。如果[code]parent_first[/code]参数为 [code]true[/" "code],该方法将首先在当前节点上调用,然后在其所有子节点上调用。如果" "[code]parent_first[/code]为 [code]false[/code],子节点的方法将首先被调用。" #: doc/classes/Node.xml msgid "" "Notifies the current node and all its children recursively by calling " "[method Object.notification] on all of them." msgstr "" "通过对所有节点调用 [method Object.notification],递归地通知当前节点和它的所有" "子节点。" #: doc/classes/Node.xml msgid "" "Queues a node for deletion at the end of the current frame. When deleted, " "all of its child nodes will be deleted as well. This method ensures it's " "safe to delete the node, contrary to [method Object.free]. Use [method " "Object.is_queued_for_deletion] to check whether a node will be deleted at " "the end of the frame.\n" "[b]Important:[/b] If you have a variable pointing to a node, it will [i]not[/" "i] be assigned to [code]null[/code] once the node is freed. Instead, it will " "point to a [i]previously freed instance[/i] and you should validate it with " "[method @GDScript.is_instance_valid] before attempting to call its methods " "or access its properties." msgstr "" "在当前帧结束时排队删除一个节点。被删除时,其所有的子节点也将被删除。这个方法" "能够确保删除节点是安全的,与 [method Object.free] 相反。可以使用 [method " "Object.is_queued_for_deletion] 来检查节点是否会在帧末被删除。\n" "[b]重要:[/b]如果你有一个指向节点的变量,该节点被释放后,这个变量[i]不会[/i]" "被赋值为 [code]null[/code]。相反,它将指向一个[i]先前被释放的实例[/i],你应该" "在尝试调用其方法或访问其属性之前用 [method @GDScript.is_instance_valid] 来检" "验其有效性。" #: doc/classes/Node.xml msgid "" "Moves this node to the bottom of parent node's children hierarchy. This is " "often useful in GUIs ([Control] nodes), because their order of drawing " "depends on their order in the tree. The top Node is drawn first, then any " "siblings below the top Node in the hierarchy are successively drawn on top " "of it. After using [code]raise[/code], a Control will be drawn on top of its " "siblings." msgstr "" "将此节点移到父节点的子节点层次的底部。这在GUI([Control]节点)中通常很有用," "因为它们的绘制顺序取决于它们在树中的顺序。最上面的节点首先被绘制出来,然后在" "层次结构中最上面的节点下面的所有同级被依次绘制在它的上面。使用[code]raise[/" "code]后,一个控件将被绘制在其同级的上面。" #: doc/classes/Node.xml msgid "" "Removes a node and sets all its children as children of the parent node (if " "it exists). All event subscriptions that pass by the removed node will be " "unsubscribed." msgstr "" "移除一个节点,并将其所有的子节点设置为父节点的子节点(如果它存在的话)。所有" "经过被删除的节点的事件订阅都将被取消。" #: doc/classes/Node.xml msgid "" "Removes a child node. The node is NOT deleted and must be deleted manually.\n" "[b]Note:[/b] This function may set the [member owner] of the removed Node " "(or its descendants) to be [code]null[/code], if that [member owner] is no " "longer a parent or ancestor." msgstr "" "删除一个子节点。该节点不会被删除,必须手动删除。\n" "[b]注:[/b]如果该[member owner]不再是父节点或祖先,则该函数可以将被移除节点" "(或其后代)的[member owner]设置为[code]null[/code]。" #: doc/classes/Node.xml msgid "" "Removes a node from a group. See notes in the description, and the group " "methods in [SceneTree]." msgstr "" "将一个节点从一个组中移除。参阅描述中的注释,以及[SceneTree]中的组方法。" #: doc/classes/Node.xml msgid "" "Replaces a node in a scene by the given one. Subscriptions that pass through " "this node will be lost.\n" "[b]Note:[/b] The given node will become the new parent of any child nodes " "that the replaced node had.\n" "[b]Note:[/b] The replaced node is not automatically freed, so you either " "need to keep it in a variable for later use or free it using [method Object." "free]." msgstr "" "将场景中的某个节点替换为给定的节点。经过该节点的订阅会丢失。\n" "[b]注意:[/b]给定的节点将成为被替换节点的子节点的新的父节点。\n" "[b]注意:[/b]被替换的节点不会被自动释放,所以你需要将它放入变量以备后续使用," "或者使用 [method Object.free] 将其释放。" #: doc/classes/Node.xml msgid "" "Requests that [code]_ready[/code] be called again. Note that the method " "won't be called immediately, but is scheduled for when the node is added to " "the scene tree again (see [method _ready]). [code]_ready[/code] is called " "only for the node which requested it, which means that you need to request " "ready for each child if you want them to call [code]_ready[/code] too (in " "which case, [code]_ready[/code] will be called in the same order as it would " "normally)." msgstr "" "请求再次调用[code]_ready[/code]。注意,该方法不会被立即调用,而是被安排在该节" "点再次被添加到场景树时(见[method _ready])。[code]_ready[/code]只为请求它的" "节点调用,这意味着如果你想让每个子节点也调用[code]_ready[/code],你需要为它们" "请求ready(在这种情况下,[code]_ready[/code]的调用顺序与正常情况下相同)。" #: doc/classes/Node.xml msgid "" "When physics interpolation is active, moving a node to a radically different " "transform (such as placement within a level) can result in a visible glitch " "as the object is rendered moving from the old to new position over the " "physics tick.\n" "This glitch can be prevented by calling [code]reset_physics_interpolation[/" "code], which temporarily turns off interpolation until the physics tick is " "complete.\n" "[constant NOTIFICATION_RESET_PHYSICS_INTERPOLATION] will be received by the " "node and all children recursively.\n" "[b]Note:[/b] This function should be called [b]after[/b] moving the node, " "rather than before." msgstr "" "启用物理插值时,将节点移动到显著不同的变换(例如在关卡中进行放置)可能造成可" "见的问题,因为渲染出的效果就是在该物理周期内从旧位置移动到了新位置。\n" "这个问题可以通过调用 [code]reset_physics_interpolation[/code] 解决,会在该物" "理周期完成前暂时关闭插值。\n" "该节点及其子项会递归地接收到 [constant " "NOTIFICATION_RESET_PHYSICS_INTERPOLATION]。\n" "[b]注意:[/b]这个函数应该在移动节点[b]之后[/b]调用,而不是之前。" #: doc/classes/Node.xml msgid "" "Sends a remote procedure call request for the given [code]method[/code] to " "peers on the network (and locally), optionally sending all additional " "arguments as arguments to the method called by the RPC. The call request " "will only be received by nodes with the same [NodePath], including the exact " "same node name. Behaviour depends on the RPC configuration for the given " "method, see [method rpc_config]. Methods are not exposed to RPCs by default. " "See also [method rset] and [method rset_config] for properties. Returns " "[code]null[/code].\n" "[b]Note:[/b] You can only safely use RPCs on clients after you received the " "[code]connected_to_server[/code] signal from the [SceneTree]. You also need " "to keep track of the connection state, either by the [SceneTree] signals " "like [code]server_disconnected[/code] or by checking [code]SceneTree." "network_peer.get_connection_status() == CONNECTION_CONNECTED[/code]." msgstr "" "为给定的 [code]method[/code] 向网络(和本地)上的对等体发送远程过程调用请求," "可选择将所有附加参数作为参数发送给 RPC 调用的方法。调用请求将只被具有相同 " "[NodePath] 的节点接收,包括完全相同的节点名称。行为取决于给定方法的 RPC 配" "置,见 [method rpc_config]。方法在默认情况下不会暴露给 RPC。参阅 [method " "rset] 和[method rset_config] 的属性。返回 [code]null[/code]。\n" "[b]注意:[/b]只有在你从 [SceneTree] 收到 [code]connected_to_server[/code] 信" "号之后,你才能安全地在客户端使用 RPC。你还需要跟踪连接状态,可以通过 " "[code]server_disconnected[/code] 等 [SceneTree] 信号或者检查 [code]SceneTree." "network_peer.get_connection_status() == CONNECTION_CONNECTED[/code]。" #: doc/classes/Node.xml msgid "" "Changes the RPC mode for the given [code]method[/code] to the given " "[code]mode[/code]. See [enum MultiplayerAPI.RPCMode]. An alternative is " "annotating methods and properties with the corresponding keywords " "([code]remote[/code], [code]master[/code], [code]puppet[/code], " "[code]remotesync[/code], [code]mastersync[/code], [code]puppetsync[/code]). " "By default, methods are not exposed to networking (and RPCs). See also " "[method rset] and [method rset_config] for properties." msgstr "" "将 [code]method[/code] 方法的 RPC 模式改为 [code]mode[/code] 模式。请参阅 " "[enum MultiplayerAPI.RPCMode]。另一种方法是在方法和属性上加入相应的关键字注解" "([code]remote[/code]、[code]master[/code]、[code]puppet[/code]、" "[code]remoteesync[/code]、[code]masterync[/code]、[code]puppetsync[/code])。" "默认情况下,方法不暴露于网络(和 RPC)。请参阅 [method rset] 和 [method " "rset_config] 的属性。" #: doc/classes/Node.xml msgid "" "Sends a [method rpc] to a specific peer identified by [code]peer_id[/code] " "(see [method NetworkedMultiplayerPeer.set_target_peer]). Returns [code]null[/" "code]." msgstr "" "向由 [code]peer_id[/code] 确定的特定对等体发送一个 [method rpc](见 [method " "NetworkedMultiplayerPeer.set_target_peer])。返回 [code]null[/code]。" #: doc/classes/Node.xml msgid "" "Sends a [method rpc] using an unreliable protocol. Returns [code]null[/code]." msgstr "使用不可靠的协议发送一个 [method rpc]。返回 [code]null[/code]。" #: doc/classes/Node.xml msgid "" "Sends a [method rpc] to a specific peer identified by [code]peer_id[/code] " "using an unreliable protocol (see [method NetworkedMultiplayerPeer." "set_target_peer]). Returns [code]null[/code]." msgstr "" "使用不可靠的协议(见 [method NetworkedMultiplayerPeer.set_target_peer])向由 " "[code]peer_id[/code] 标识的特定对等体发送一个 [method rpc]。返回 [code]null[/" "code]。" #: doc/classes/Node.xml msgid "" "Remotely changes a property's value on other peers (and locally). Behaviour " "depends on the RPC configuration for the given property, see [method " "rset_config]. See also [method rpc] for RPCs for methods, most information " "applies to this method as well." msgstr "" "在其他对等体上远程改变一个属性的值(和本地)。行为取决于给定属性的RPC配置," "见 [method rset_config]。关于方法的RPC,也请参阅 [method rpc],大多数信息也适" "用于这个方法。" #: doc/classes/Node.xml msgid "" "Changes the RPC mode for the given [code]property[/code] to the given " "[code]mode[/code]. See [enum MultiplayerAPI.RPCMode]. An alternative is " "annotating methods and properties with the corresponding keywords " "([code]remote[/code], [code]master[/code], [code]puppet[/code], " "[code]remotesync[/code], [code]mastersync[/code], [code]puppetsync[/code]). " "By default, properties are not exposed to networking (and RPCs). See also " "[method rpc] and [method rpc_config] for methods." msgstr "" "将给定的 [code]property[/code] 的 RPC 模式改为给定的 [code]mode[/code]。参阅 " "[enum MultiplayerAPI.RPCMode]。另一种方法是用相应的关键字([code]remote[/" "code]、[code]master[/code]、[code]puppet[/code]、[code]remoteesync[/code]、" "[code]masterync[/code]、[code]puppetsync[/code])来注释方法和属性。默认情况" "下,属性不会暴露给网络(和 RPC)。也请参阅 [method rpc] 和 [method " "rpc_config] 的方法。" #: doc/classes/Node.xml msgid "" "Remotely changes the property's value on a specific peer identified by " "[code]peer_id[/code] (see [method NetworkedMultiplayerPeer.set_target_peer])." msgstr "" "远程改变属性的值在一个指定的peer上[code]peer_id[/code](参阅[method " "NetworkedMultiplayerPeer.set_target_peer])。" #: doc/classes/Node.xml msgid "" "Remotely changes the property's value on other peers (and locally) using an " "unreliable protocol." msgstr "使用不可靠的协议远程更改其他对等点(和本地)上的属性值。" #: doc/classes/Node.xml msgid "" "Remotely changes property's value on a specific peer identified by " "[code]peer_id[/code] using an unreliable protocol (see [method " "NetworkedMultiplayerPeer.set_target_peer])." msgstr "" "使用不可靠的协议(参阅[method NetworkedMultiplayerPeer.set_target_peer])远程更" "改指定对等体[code]peer_id[/code]上的属性值。" #: doc/classes/Node.xml msgid "Sets the folded state of the node in the Scene dock." msgstr "设置场景dock中节点的折叠状态。" #: doc/classes/Node.xml msgid "" "Sets the node's network master to the peer with the given peer ID. The " "network master is the peer that has authority over the node on the network. " "Useful in conjunction with the [code]master[/code] and [code]puppet[/code] " "keywords. Inherited from the parent node by default, which ultimately " "defaults to peer ID 1 (the server). If [code]recursive[/code], the given " "peer is recursively set as the master for all children of this node." msgstr "" "将节点的网络主节点设置为具有给定ID的对等体。网络主节点是对网络上的节点具有权" "威的对等体。与[code]master[/code]和[code]puppet[/code]关键字一起使用很有用。" "默认情况下从父节点继承,父节点最终默认为peer ID 1(服务器)。如果" "[code]recursive[/code],则递归地将给定的对等节点设置为该节点所有子节点的主节" "点。" #: doc/classes/Node.xml msgid "" "Enables or disables physics (i.e. fixed framerate) processing. When a node " "is being processed, it will receive a [constant " "NOTIFICATION_PHYSICS_PROCESS] at a fixed (usually 60 FPS, see [member Engine." "iterations_per_second] to change) interval (and the [method " "_physics_process] callback will be called if exists). Enabled automatically " "if [method _physics_process] is overridden. Any calls to this before [method " "_ready] will be ignored." msgstr "" "启用或禁用物理处理(即固定帧率)。当一个节点被处理时,它将以一个固定的(通常" "是60FPS,参阅[member Engine.iterations_per_second]来更改该值)时间间隔收到一" "个[constant NOTIFICATION_PHYSICS_PROCESS](如果存在,[method " "_physics_process]回调将被调用)。如果[method _physics_process]被重写,则自动" "启用。在[method _ready]之前对它的任何调用都将被忽略。" #: doc/classes/Node.xml msgid "" "Enables or disables internal physics for this node. Internal physics " "processing happens in isolation from the normal [method _physics_process] " "calls and is used by some nodes internally to guarantee proper functioning " "even if the node is paused or physics processing is disabled for scripting " "([method set_physics_process]). Only useful for advanced uses to manipulate " "built-in nodes' behavior.\n" "[b]Warning:[/b] Built-in Nodes rely on the internal processing for their own " "logic, so changing this value from your code may lead to unexpected " "behavior. Script access to this internal logic is provided for specific " "advanced uses, but is unsafe and not supported." msgstr "" "启用或禁用该节点的内部物理。内部物理处理与正常的 [method _physics_process] 调" "用隔离进行,并且由某些节点内部使用,以确保正常工作,即使节点暂停或物理处理因" "脚本而禁用([method set_physics_process])。仅适用于用于操纵内置节点行为的高" "级用途。\n" "[b]警告:[/b]内置节点依靠内部处理来实现自己的逻辑,所以从你的代码中改变这个值" "可能会导致意外的行为。为特定的高级用途提供了对此内部逻辑的脚本访问,但不安全" "且不支持。" #: doc/classes/Node.xml msgid "" "Enables or disables processing. When a node is being processed, it will " "receive a [constant NOTIFICATION_PROCESS] on every drawn frame (and the " "[method _process] callback will be called if exists). Enabled automatically " "if [method _process] is overridden. Any calls to this before [method _ready] " "will be ignored." msgstr "" "启用或禁用帧处理。当一个节点被处理时,它将在每个绘制的帧上收到一个[constant " "NOTIFICATION_PROCESS](如果存在,[method _process]回调将被调用)。如果" "[method _process]被重写,则自动启用。在 [method _ready] 之前对它的任何调用都" "将被忽略。" #: doc/classes/Node.xml msgid "" "Enables or disables input processing. This is not required for GUI controls! " "Enabled automatically if [method _input] is overridden. Any calls to this " "before [method _ready] will be ignored." msgstr "" "启用或禁用输入处理。对于GUI控件来说,这不是必需的。如果[method _input]被重" "写,则自动启用。任何在[method _ready]之前对它的调用都将被忽略。" #: doc/classes/Node.xml msgid "" "Enables or disabled internal processing for this node. Internal processing " "happens in isolation from the normal [method _process] calls and is used by " "some nodes internally to guarantee proper functioning even if the node is " "paused or processing is disabled for scripting ([method set_process]). Only " "useful for advanced uses to manipulate built-in nodes' behavior.\n" "[b]Warning:[/b] Built-in Nodes rely on the internal processing for their own " "logic, so changing this value from your code may lead to unexpected " "behavior. Script access to this internal logic is provided for specific " "advanced uses, but is unsafe and not supported." msgstr "" "启用或禁用此节点的内部处理。内部处理与正常的 [method _process] 调用隔离进行," "并且由某些节点内部使用,以确保正常工作,即使节点已暂停或处理因脚本而禁用" "([method set_process])。仅适用于操纵内置节点行为的高级用途。\n" "[b]警告:[/b]内置节点依赖于内部处理来实现自己的逻辑,因此更改代码中的这个值可" "能会导致意外行为。为特定的高级用途提供了对此内部逻辑的脚本访问,但不安全且不" "支持。" #: doc/classes/Node.xml msgid "" "Enables unhandled input processing. This is not required for GUI controls! " "It enables the node to receive all input that was not previously handled " "(usually by a [Control]). Enabled automatically if [method _unhandled_input] " "is overridden. Any calls to this before [method _ready] will be ignored." msgstr "" "启用未处理的输入处理。这对 GUI 控件来说是不需要的!它使节点能够接收所有以前没" "有处理的输入(通常是由 [Control] 处理的)。如果 [method _unhandled_input] 被" "覆盖,则自动启用。在 [method _ready] 之前对它的任何调用都将被忽略。" #: doc/classes/Node.xml msgid "" "Enables unhandled key input processing. Enabled automatically if [method " "_unhandled_key_input] is overridden. Any calls to this before [method " "_ready] will be ignored." msgstr "" "启用未处理的按键输入处理。如果[method _unhandled_key_input]被重写,则自动启" "用。任何在[method _ready]之前对它的调用都将被忽略。" #: doc/classes/Node.xml msgid "" "Sets whether this is an instance load placeholder. See [InstancePlaceholder]." msgstr "设置这是否是一个实例加载占位符。参阅[InstancePlaceholder]。" #: doc/classes/Node.xml msgid "" "Updates the warning displayed for this node in the Scene Dock.\n" "Use [method _get_configuration_warning] to setup the warning message to " "display." msgstr "" "更新在场景面板中为这个节点显示的警告。\n" "使用 [method _get_configuration_warning] 来设置要显示的警告信息。" #: doc/classes/Node.xml msgid "" "The override to the default [MultiplayerAPI]. Set to [code]null[/code] to " "use the default [SceneTree] one." msgstr "" "对默认的[MultiplayerAPI]的重写。设置为[code]null[/code]可以使用默认的" "[SceneTree]。" #: doc/classes/Node.xml msgid "" "If a scene is instantiated from a file, its topmost node contains the " "absolute file path from which it was loaded in [member filename] (e.g. " "[code]res://levels/1.tscn[/code]). Otherwise, [member filename] is set to an " "empty string." msgstr "" "如果场景是从文件实例化的,则其最顶层节点包含在 [member filename] 中加载它的绝" "对文件路径(例如 [code]res://levels/1.tscn[/code])。否则,[member filename] " "设置为空字符串。" #: doc/classes/Node.xml msgid "" "The [MultiplayerAPI] instance associated with this node. Either the [member " "custom_multiplayer], or the default SceneTree one (if inside tree)." msgstr "" "与该节点相关的[MultiplayerAPI]实例。要么是[member custom_multiplayer],要么是" "默认的SceneTree(如果在树内)。" #: doc/classes/Node.xml msgid "" "The name of the node. This name is unique among the siblings (other child " "nodes from the same parent). When set to an existing name, the node will be " "automatically renamed.\n" "[b]Note:[/b] Auto-generated names might include the [code]@[/code] " "character, which is reserved for unique names when using [method add_child]. " "When setting the name manually, any [code]@[/code] will be removed." msgstr "" "节点的名称。此名称在兄弟节点(来自同一父节点的其他子节点)中是唯一的。当设置" "为现有名称时,节点将自动重命名。\n" "[b]注意:[/b]自动生成的名称可能包含 [code]@[/code] 字符,在使用 [method " "add_child] 时保留该字符用于唯一名称。手动设置名称时,将删除任何 [code]@[/" "code]。" #: doc/classes/Node.xml msgid "" "The node owner. A node can have any other node as owner (as long as it is a " "valid parent, grandparent, etc. ascending in the tree). When saving a node " "(using [PackedScene]), all the nodes it owns will be saved with it. This " "allows for the creation of complex [SceneTree]s, with instancing and " "subinstancing.\n" "[b]Note:[/b] If you want a child to be persisted to a [PackedScene], you " "must set [member owner] in addition to calling [method add_child]. This is " "typically relevant for [url=$DOCS_URL/tutorials/plugins/" "running_code_in_the_editor.html]tool scripts[/url] and [url=$DOCS_URL/" "tutorials/plugins/editor/index.html]editor plugins[/url]. If [method " "add_child] is called without setting [member owner], the newly added [Node] " "will not be visible in the scene tree, though it will be visible in the " "2D/3D view." msgstr "" "节点的所有者。节点的所有者可以是任何其他节点(需要是父节点或祖父节点等,即场" "景树上的祖先)。(通过 [PackedScene])保存一个节点时,它拥有的所有节点也会随" "之保存。这样就可以创建复杂的 [SceneTree],能够进行实例化与次实例化。\n" "[b]注意:[/b]如果想要将子节点持久化进 [PackedScene],除了调用 [method " "add_child] 之外你还必须设置 [member owner]。通常在[url=$DOCS_URL/tutorials/" "plugins/running_code_in_the_editor.html]工具脚本[/url]和[url=$DOCS_URL/" "tutorials/plugins/editor/index.html]编辑器插件[/url]中会用到。如果调用了 " "[method add_child] 但没有设置 [member owner],那么新建的这个 [Node] 在场景树" "中不可见,但在 2D/3D 视图中可见。" #: doc/classes/Node.xml msgid "Pause mode. How the node will behave if the [SceneTree] is paused." msgstr "暂停模式。暂停 [SceneTree] 时该节点的行为。" #: doc/classes/Node.xml msgid "" "Allows enabling or disabling physics interpolation per node, offering a " "finer grain of control than turning physics interpolation on and off " "globally.\n" "[b]Note:[/b] This can be especially useful for [Camera]s, where custom " "interpolation can sometimes give superior results." msgstr "" "启用或禁用该节点的物理插值,可以在开关全局物理插值的基础上进行微调。\n" "[b]注意:[/b]对 [Camera] 尤其有用,自定义插值有时会带来更好的效果。" #: doc/classes/Node.xml msgid "" "The node's priority in the execution order of the enabled processing " "callbacks (i.e. [constant NOTIFICATION_PROCESS], [constant " "NOTIFICATION_PHYSICS_PROCESS] and their internal counterparts). Nodes whose " "process priority value is [i]lower[/i] will have their processing callbacks " "executed first." msgstr "" "节点在已启用的处理回调(即 [constant NOTIFICATION_PROCESS]、[constant " "NOTIFICATION_PHYSICS_PROCESS] 及其内部对应物)的执行顺序中的优先级。进程优先" "级值[i]较低[/i]的节点将首先执行其处理回调。" #: doc/classes/Node.xml msgid "" "Sets this node's name as a unique name in its [member owner]. This allows " "the node to be accessed as [code]%Name[/code] instead of the full path, from " "any node within that scene.\n" "If another node with the same owner already had that name declared as " "unique, that other node's name will no longer be set as having a unique name." msgstr "" "将这个节点的名称设置为其 [member owner] 中的唯一名称。这样就可以从该场景中的" "任意节点处使用 [code]%名称[/code] 来访问这个节点,无需使用完整路径。\n" "如果所有者相同的另一个节点已经将该名称声明为唯一,那么其他节点就无法再将此名" "称设置为唯一名称。" #: doc/classes/Node.xml msgid "" "Emitted when a child node enters the scene tree, either because it entered " "on its own or because this node entered with it." msgstr "" "在子节点进入场景树时触发,可以是因为该子节点自行进入,也可以是因为本节点带着" "该子节点一起进入。" #: doc/classes/Node.xml msgid "" "Emitted when a child node exits the scene tree, either because it exited on " "its own or because this node exited." msgstr "" "在子节点离开场景树时触发,可以是因为该子节点自行离开,也可以是因为本节点离" "开。" #: doc/classes/Node.xml msgid "Emitted when the node is ready." msgstr "当节点准备好时触发。" #: doc/classes/Node.xml msgid "Emitted when the node is renamed." msgstr "在重命名节点时触发。" #: doc/classes/Node.xml msgid "Emitted when the node enters the tree." msgstr "当节点进入树时触发。" #: doc/classes/Node.xml msgid "Emitted after the node exits the tree and is no longer active." msgstr "在节点退出树之后触发,并且不再处于活动状态。" #: doc/classes/Node.xml msgid "" "Emitted when the node is still active but about to exit the tree. This is " "the right place for de-initialization (or a \"destructor\", if you will)." msgstr "" "当节点仍处于活动状态但即将退出树时发出。这是反初始化的正确位置(如果愿意,也" "可以称之为“析构函数”)。" #: doc/classes/Node.xml msgid "Notification received when the node enters a [SceneTree]." msgstr "当该节点进入 [SceneTree] 时收到的通知。" #: doc/classes/Node.xml msgid "Notification received when the node is about to exit a [SceneTree]." msgstr "当该节点即将退出 [SceneTree] 时收到的通知。" #: doc/classes/Node.xml msgid "Notification received when the node is moved in the parent." msgstr "当该节点在其父节点中移动时收到的通知。" #: doc/classes/Node.xml msgid "Notification received when the node is ready. See [method _ready]." msgstr "当该节点就绪时接收到通知。请参阅 [method _ready]。" #: doc/classes/Node.xml msgid "Notification received when the node is paused." msgstr "当该节点被暂停时接收到的通知。" #: doc/classes/Node.xml msgid "Notification received when the node is unpaused." msgstr "当该节点被取消暂停时收到的通知。" #: doc/classes/Node.xml msgid "" "Notification received every frame when the physics process flag is set (see " "[method set_physics_process])." msgstr "" "当设置了 physics process 标志时,每一帧都会收到的通知(见 [method " "set_physics_process])。" #: doc/classes/Node.xml msgid "" "Notification received every frame when the process flag is set (see [method " "set_process])." msgstr "" "当设置了 process 标志时,每一帧都会收到的通知(见 [method set_process])。" #: doc/classes/Node.xml msgid "" "Notification received when a node is set as a child of another node.\n" "[b]Note:[/b] This doesn't mean that a node entered the [SceneTree]." msgstr "" "当一个节点被设置为另一个节点的子节点时收到该通知。\n" "[b]注意:[/b]这并不意味着一个节点进入了[SceneTree]。" #: doc/classes/Node.xml msgid "" "Notification received when a node is unparented (parent removed it from the " "list of children)." msgstr "当节点失去父节点时收到的通知(父节点将其从子节点列表中删除)。" #: doc/classes/Node.xml msgid "Notification received when the node is instanced." msgstr "当该节点被实例化时收到的通知。" #: doc/classes/Node.xml msgid "" "Notification received when a drag operation begins. All nodes receive this " "notification, not only the dragged one.\n" "Can be triggered either by dragging a [Control] that provides drag data (see " "[method Control.get_drag_data]) or using [method Control.force_drag].\n" "Use [method Viewport.gui_get_drag_data] to get the dragged data." msgstr "" "当拖拽操作开始时收到的通知。所有节点都会收到这个通知,不仅仅是被拖拽的那" "个。\n" "可以通过拖拽提供拖拽数据的 [Control] 触发(见 [method Control." "get_drag_data]),也可以通过使用 [method Control.force_drag] 触发。\n" "请使用 [method Viewport.gui_get_drag_data] 获取拖拽数据。" #: doc/classes/Node.xml msgid "" "Notification received when a drag operation ends.\n" "Use [method Viewport.gui_is_drag_successful] to check if the drag succeeded." msgstr "" "当拖拽操作结束时收到的通知。\n" "请使用 [method Viewport.gui_is_drag_successful] 检查拖放是否成功。" #: doc/classes/Node.xml msgid "Notification received when the node's [NodePath] changed." msgstr "当该节点的 [NodePath] 改变时收到的通知。" #: doc/classes/Node.xml msgid "" "Notification received every frame when the internal process flag is set (see " "[method set_process_internal])." msgstr "" "当设置了 internal process 标志时,每一帧都会收到的通知(见 [method " "set_process_internal])。" #: doc/classes/Node.xml msgid "" "Notification received every frame when the internal physics process flag is " "set (see [method set_physics_process_internal])." msgstr "" "当设置了 internal physics process flag 标志时,每一帧都会收到的通知(见 " "[method set_physics_process_internal])。" #: doc/classes/Node.xml msgid "" "Notification received when the node is ready, just before [constant " "NOTIFICATION_READY] is received. Unlike the latter, it's sent every time the " "node enters tree, instead of only once." msgstr "" "当该节点就绪,在收到 [constant NOTIFICATION_READY] 之前收到的通知。与后者不" "同,该节点每次进入树时都会发送,而不是只发送一次。" #: doc/classes/Node.xml msgid "" "Notification received when [method reset_physics_interpolation] is called on " "the node or parent nodes." msgstr "" "在该节点或其父节点上调用 [method reset_physics_interpolation] 时会收到该通" "知。" #: doc/classes/Node.xml msgid "" "Inherits pause mode from the node's parent. For the root node, it is " "equivalent to [constant PAUSE_MODE_STOP]. Default." msgstr "" "继承该节点的父节点的暂停模式。如果是根节点则相当于 [constant " "PAUSE_MODE_STOP]。默认值。" #: doc/classes/Node.xml msgid "Stops processing when the [SceneTree] is paused." msgstr "[SceneTree] 暂停时停止处理。" #: doc/classes/Node.xml msgid "Continue to process regardless of the [SceneTree] pause state." msgstr "无论 [SceneTree] 的暂停状态如何都继续处理。" #: doc/classes/Node.xml msgid "" "Inherits physics interpolation mode from the node's parent. For the root " "node, it is equivalent to [constant PHYSICS_INTERPOLATION_MODE_ON]. Default." msgstr "" "继承该节点的父节点的物理插值模式。如果是根节点则相当于 [constant " "PHYSICS_INTERPOLATION_MODE_ON]。默认值。" #: doc/classes/Node.xml msgid "" "Turn off physics interpolation in this node and children set to [constant " "PHYSICS_INTERPOLATION_MODE_INHERIT]." msgstr "" "关闭这个节点的物理插值,使用 [constant PHYSICS_INTERPOLATION_MODE_INHERIT] 的" "子节点也会相应关闭。" #: doc/classes/Node.xml msgid "" "Turn on physics interpolation in this node and children set to [constant " "PHYSICS_INTERPOLATION_MODE_INHERIT]." msgstr "" "打开这个节点的物理插值,使用 [constant PHYSICS_INTERPOLATION_MODE_INHERIT] 的" "子节点也会相应打开。" #: doc/classes/Node.xml msgid "Duplicate the node's signals." msgstr "复制该节点的信号。" #: doc/classes/Node.xml msgid "Duplicate the node's groups." msgstr "复制节点的组。" #: doc/classes/Node.xml msgid "Duplicate the node's scripts." msgstr "复制该节点的脚本。" #: doc/classes/Node.xml msgid "" "Duplicate using instancing.\n" "An instance stays linked to the original so when the original changes, the " "instance changes too." msgstr "" "使用实例化进行复制。\n" "实例与原件保持链接,因此当原件发生变化时,实例也会发生变化。" #: doc/classes/Node2D.xml msgid "" "A 2D game object, inherited by all 2D-related nodes. Has a position, " "rotation, scale, and Z index." msgstr "2D 游戏对象,被所有 2D 相关的节点继承。具有位置、旋转、缩放和 Z 索引。" #: doc/classes/Node2D.xml msgid "" "A 2D game object, with a transform (position, rotation, and scale). All 2D " "nodes, including physics objects and sprites, inherit from Node2D. Use " "Node2D as a parent node to move, scale and rotate children in a 2D project. " "Also gives control of the node's render order." msgstr "" "2D 游戏对象,具有变换(位置、旋转、缩放)。所有的 2D 节点,包括物理对象和精" "灵,都继承自 Node2D。使用 Node2D 作为父节点来移动、缩放和旋转 2D 项目中的子节" "点。还可以控制节点的渲染顺序。" #: doc/classes/Node2D.xml doc/classes/Vector2.xml msgid "All 2D Demos" msgstr "所有 2D 演示" #: doc/classes/Node2D.xml msgid "Multiplies the current scale by the [code]ratio[/code] vector." msgstr "将当前缩放乘以 [code]ratio[/code] 向量。" #: doc/classes/Node2D.xml msgid "" "Returns the angle between the node and the [code]point[/code] in radians.\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "node2d_get_angle_to.png]Illustration of the returned angle.[/url]" msgstr "" "以弧度为单位返回节点和 [code]point[/code] 之间的角度。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "node2d_get_angle_to.png]返回的角度的示意图。[/url]" #: doc/classes/Node2D.xml msgid "Returns the [Transform2D] relative to this node's parent." msgstr "返回相对于此节点的父节点的 [Transform2D]。" #: doc/classes/Node2D.xml msgid "Adds the [code]offset[/code] vector to the node's global position." msgstr "将 [code]offset[/code] 向量添加到节点的全局位置。" #: doc/classes/Node2D.xml msgid "" "Rotates the node so it points towards the [code]point[/code], which is " "expected to use global coordinates." msgstr "旋转节点,使其指向 [code]point[/code],请传入全局坐标。" #: doc/classes/Node2D.xml msgid "" "Applies a local translation on the node's X axis based on the [method Node." "_process]'s [code]delta[/code]. If [code]scaled[/code] is [code]false[/" "code], normalizes the movement." msgstr "" "基于[method Node._process]的[code]delta[/code],在节点的X轴上应用一个局部平" "移。如果[code]scaled[/code]是[code]false[/code],则对运动进行标准化。" #: doc/classes/Node2D.xml msgid "" "Applies a local translation on the node's Y axis based on the [method Node." "_process]'s [code]delta[/code]. If [code]scaled[/code] is [code]false[/" "code], normalizes the movement." msgstr "" "基于[method Node._process]的[code]delta[/code],在节点的Y轴上应用一个局部平" "移。如果[code]scaled[/code]是[code]false[/code],则对运动进行标准化。" #: doc/classes/Node2D.xml msgid "" "Applies a rotation to the node, in radians, starting from its current " "rotation." msgstr "从节点的当前旋转开始,以弧度为单位,对节点进行旋转。" #: doc/classes/Node2D.xml msgid "" "Transforms the provided local position into a position in global coordinate " "space. The input is expected to be local relative to the [Node2D] it is " "called on. e.g. Applying this method to the positions of child nodes will " "correctly transform their positions into the global coordinate space, but " "applying it to a node's own position will give an incorrect result, as it " "will incorporate the node's own transformation into its global position." msgstr "" "将提供的本地位置转换为全局坐标空间的位置。例如,对子节点的位置应用这个方法将" "正确地把它们的位置转换到全局坐标空间,但对节点自己的位置应用这个方法将得到一" "个不正确的结果,因为它将把节点自己的变换纳入它的全局位置。" #: doc/classes/Node2D.xml msgid "" "Transforms the provided global position into a position in local coordinate " "space. The output will be local relative to the [Node2D] it is called on. e." "g. It is appropriate for determining the positions of child nodes, but it is " "not appropriate for determining its own position relative to its parent." msgstr "" "将提供的全局位置转换为本地坐标空间的位置。例如,它适合于确定子节点的位置,但" "不适合于确定其自身相对于父节点的位置。" #: doc/classes/Node2D.xml msgid "" "Translates the node by the given [code]offset[/code] in local coordinates." msgstr "通过给定的 [code]offset[/code] 将节点在本地坐标中进行变换。" #: doc/classes/Node2D.xml msgid "Global position." msgstr "全局位置。" #: doc/classes/Node2D.xml msgid "Global rotation in radians." msgstr "全局旋转弧度。" #: doc/classes/Node2D.xml msgid "Global rotation in degrees." msgstr "全局旋转角度。" #: doc/classes/Node2D.xml msgid "Global scale." msgstr "全局缩放。" #: doc/classes/Node2D.xml msgid "Global [Transform2D]." msgstr "全局 [Transform2D]。" #: doc/classes/Node2D.xml msgid "Position, relative to the node's parent." msgstr "位置,相对于父节点。" #: doc/classes/Node2D.xml msgid "Rotation in radians, relative to the node's parent." msgstr "旋转弧度,相对于父节点。" #: doc/classes/Node2D.xml msgid "Rotation in degrees, relative to the node's parent." msgstr "旋转角度,相对于父节点。" #: doc/classes/Node2D.xml msgid "The node's scale. Unscaled value: [code](1, 1)[/code]." msgstr "节点的缩放。未缩放时为:[code](1, 1)[/code]。" #: doc/classes/Node2D.xml msgid "Local [Transform2D]." msgstr "局部 [Transform2D]。" #: doc/classes/Node2D.xml msgid "" "If [code]true[/code], the node's Z index is relative to its parent's Z " "index. If this node's Z index is 2 and its parent's effective Z index is 3, " "then this node's effective Z index will be 2 + 3 = 5." msgstr "" "如果 [code]true[/code],节点的 Z 索引是相对于它的父节点的 Z 索引而言的。如果" "这个节点的 Z 索引是 2,它的父节点的实际 Z 索引是 3,那么这个节点的实际 Z 索引" "将是 2 + 3 = 5。" #: doc/classes/Node2D.xml msgid "" "Z index. Controls the order in which the nodes render. A node with a higher " "Z index will display in front of others. Must be between [constant " "VisualServer.CANVAS_ITEM_Z_MIN] and [constant VisualServer." "CANVAS_ITEM_Z_MAX] (inclusive)." msgstr "" "Z 索引。控制节点呈现的顺序。具有较高 Z 索引的节点将显示在其他节点之前。必须介" "于 [constant VisualServer.CANVAS_ITEM_Z_MIN] 和 [constant VisualServer." "CANVAS_ITEM_Z_MAX] 之间(含)。" #: doc/classes/NodePath.xml msgid "Pre-parsed scene tree path." msgstr "预先解析的场景树路径。" #: doc/classes/NodePath.xml msgid "" "A pre-parsed relative or absolute path in a scene tree, for use with [method " "Node.get_node] and similar functions. It can reference a node, a resource " "within a node, or a property of a node or resource. For instance, " "[code]\"Path2D/PathFollow2D/Sprite:texture:size\"[/code] would refer to the " "[code]size[/code] property of the [code]texture[/code] resource on the node " "named [code]\"Sprite\"[/code] which is a child of the other named nodes in " "the path.\n" "You will usually just pass a string to [method Node.get_node] and it will be " "automatically converted, but you may occasionally want to parse a path ahead " "of time with [NodePath] or the literal syntax [code]@\"path\"[/code]. " "Exporting a [NodePath] variable will give you a node selection widget in the " "properties panel of the editor, which can often be useful.\n" "A [NodePath] is composed of a list of slash-separated node names (like a " "filesystem path) and an optional colon-separated list of \"subnames\" which " "can be resources or properties.\n" "Some examples of NodePaths include the following:\n" "[codeblock]\n" "# No leading slash means it is relative to the current node.\n" "@\"A\" # Immediate child A\n" "@\"A/B\" # A's child B\n" "@\".\" # The current node.\n" "@\"..\" # The parent node.\n" "@\"../C\" # A sibling node C.\n" "# A leading slash means it is absolute from the SceneTree.\n" "@\"/root\" # Equivalent to get_tree().get_root().\n" "@\"/root/Main\" # If your main scene's root node were named \"Main\".\n" "@\"/root/MyAutoload\" # If you have an autoloaded node or scene.\n" "[/codeblock]\n" "[b]Note:[/b] In the editor, [NodePath] properties are automatically updated " "when moving, renaming or deleting a node in the scene tree, but they are " "never updated at runtime." msgstr "" "场景树中预先解析的相对或绝对路径,用于 [method Node.get_node] 和类似函数。它" "可以引用节点、节点内的资源或节点或资源的属性。例如,[code]\"Path2D/" "PathFollow2D/Sprite:texture:size\"[/code] 将引用名为 [code]\"Sprite\"[/code] " "节点上的纹理资源 [code]texture[/code] 的尺寸 [code]size[/code] 属性,该节点是" "路径中其他命名节点的一个子节点。\n" "您通常只需将一个字符串传递给 [method Node.get_node] 并且它会自动转换,但您可" "能偶尔希望使用 [NodePath] 或文字语法 [code]@\"path\"[/code] 提前解析路径。导" "出 [NodePath] 变量将在编辑器的属性面板中为您提供一个节点选择小部件,这通常很" "有用。\n" "[NodePath] 由斜线分隔的节点名称列表(如文件系统路径)和可选的冒号分隔的“子名" "称”列表组成,这些“子名称”可以是资源或属性。\n" "NodePath 的一些示例包括:\n" "[codeblock]\n" "# 没有前导斜杠表示它是相对于当前节点的。\n" "@\"A\" # 直接获得子节点 A\n" "@\"A/B\" # A 的子节点 B\n" "@\".\" # 当前节点。\n" "@\"..\" # 父节点。\n" "@\"../C\" # 兄弟节点 C.\n" "# 前导斜杠表示它是来自场景树的绝对路径。\n" "@\"/root\" # 等价于 get_tree().get_root()。\n" "@\"/root/Main\" # 如果你的主场景的根节点被命名为“Main”。\n" "@\"/root/MyAutoload\" # 如果你有一个自动加载的节点或场景。\n" "[/codeblock]\n" "[b]注意:[/b]在编辑器中,[NodePath] 属性在场景树中移动、重命名或删除节点时会" "自动更新,但它们不会在运行时更新。" #: doc/classes/NodePath.xml doc/classes/PackedScene.xml doc/classes/Panel.xml #: doc/classes/PanelContainer.xml doc/classes/TileMap.xml #: doc/classes/TileSet.xml msgid "2D Role Playing Game Demo" msgstr "2D 角色扮演游戏演示" #: doc/classes/NodePath.xml msgid "" "Creates a NodePath from a string, e.g. [code]\"Path2D/PathFollow2D/Sprite:" "texture:size\"[/code]. A path is absolute if it starts with a slash. " "Absolute paths are only valid in the global scene tree, not within " "individual scenes. In a relative path, [code]\".\"[/code] and [code]\"..\"[/" "code] indicate the current node and its parent.\n" "The \"subnames\" optionally included after the path to the target node can " "point to resources or properties, and can also be nested.\n" "Examples of valid NodePaths (assuming that those nodes exist and have the " "referenced resources or properties):\n" "[codeblock]\n" "# Points to the Sprite node\n" "\"Path2D/PathFollow2D/Sprite\"\n" "# Points to the Sprite node and its \"texture\" resource.\n" "# get_node() would retrieve \"Sprite\", while get_node_and_resource()\n" "# would retrieve both the Sprite node and the \"texture\" resource.\n" "\"Path2D/PathFollow2D/Sprite:texture\"\n" "# Points to the Sprite node and its \"position\" property.\n" "\"Path2D/PathFollow2D/Sprite:position\"\n" "# Points to the Sprite node and the \"x\" component of its \"position\" " "property.\n" "\"Path2D/PathFollow2D/Sprite:position:x\"\n" "# Absolute path (from \"root\")\n" "\"/root/Level/Path2D\"\n" "[/codeblock]" msgstr "" "从字符串创建一个 NodePath,例如 [code]\"Path2D/PathFollow2D/Sprite:texture:" "size\"[/code]。如果路径以斜杠开头,则该路径是绝对路径。绝对路径仅在全局场景树" "中有效,在单个场景中无效。在相对路径中,[code]\".\"[/code] 和 [code]\"..\"[/" "code] 表示当前节点及其父节点。\n" "目标节点路径后加上可选的“子名称”可以指向资源或属性,也可以嵌套。\n" "有效 NodePath 的示例(假设这些节点存在并具有引用的资源或属性):\n" "[codeblock]\n" "# 指向精灵节点\n" "“Path2D/PathFollow2D/Sprite”\n" "# 指向 Sprite 节点及其“纹理”资源。\n" "# get_node() 将检索“Sprite”,而 get_node_and_resource()\n" "# 将同时检索 Sprite 节点和“纹理”资源。\n" "“Path2D/PathFollow2D/Sprite:texture”\n" "# 指向 Sprite 节点及其“位置”属性。\n" "\"Path2D/PathFollow2D/Sprite:position\"\n" "# 指向 Sprite 节点及其“position”属性的“x”组件。\n" "\"Path2D/PathFollow2D/Sprite:position:x\"\n" "# 绝对路径(来自“root”)\n" "“/root/Level/Path2D”\n" "[/codeblock]" #: doc/classes/NodePath.xml msgid "" "Returns a node path with a colon character ([code]:[/code]) prepended, " "transforming it to a pure property path with no node name (defaults to " "resolving from the current node).\n" "[codeblock]\n" "# This will be parsed as a node path to the \"x\" property in the " "\"position\" node\n" "var node_path = NodePath(\"position:x\")\n" "# This will be parsed as a node path to the \"x\" component of the " "\"position\" property in the current node\n" "var property_path = node_path.get_as_property_path()\n" "print(property_path) # :position:x\n" "[/codeblock]" msgstr "" "返回带有冒号字符([code]:[/code])的节点路径,将其转换为没有节点名的纯属性路" "径(默认基于当前节点解析)。\n" "[codeblock]\n" "# 会被解析为 position 节点 x 属性的节点路径\n" "var node_path = NodePath(\"position:x\")\n" "# 会被解析为当前节点 position 属性 x 分量的节点路径\n" "var property_path = node_path.get_as_property_path()\n" "print(property_path) # :position:x\n" "[/codeblock]" #: doc/classes/NodePath.xml msgid "" "Returns all subnames concatenated with a colon character ([code]:[/code]) as " "separator, i.e. the right side of the first colon in a node path.\n" "[codeblock]\n" "var nodepath = NodePath(\"Path2D/PathFollow2D/Sprite:texture:load_path\")\n" "print(nodepath.get_concatenated_subnames()) # texture:load_path\n" "[/codeblock]" msgstr "" "返回以冒号字符([code]:[/code])作为分隔符连接的所有子名称,即节点路径中第一" "个冒号的右侧。\n" "[codeblock]\n" "var nodepath = NodePath(\"Path2D/PathFollow2D/Sprite:texture:load_path\")\n" "print(nodepath.get_concatenated_subnames()) # texture:load_path\n" "[/codeblock]" #: doc/classes/NodePath.xml #, fuzzy msgid "" "Gets the node name indicated by [code]idx[/code] (0 to [method " "get_name_count] - 1).\n" "[codeblock]\n" "var node_path = NodePath(\"Path2D/PathFollow2D/Sprite\")\n" "print(node_path.get_name(0)) # Path2D\n" "print(node_path.get_name(1)) # PathFollow2D\n" "print(node_path.get_name(2)) # Sprite\n" "[/codeblock]" msgstr "" "获取由 [code]idx[/code](0 到 [method get_name_count])指示的节点名称。\n" "[codeblock]\n" "var node_path = NodePath(\"Path2D/PathFollow2D/Sprite\")\n" "print(node_path.get_name(0)) # Path2D\n" "print(node_path.get_name(1)) # PathFollow2D\n" "print(node_path.get_name(2)) # Sprite\n" "[/codeblock]" #: doc/classes/NodePath.xml msgid "" "Gets the number of node names which make up the path. Subnames (see [method " "get_subname_count]) are not included.\n" "For example, [code]\"Path2D/PathFollow2D/Sprite\"[/code] has 3 names." msgstr "" "获取组成路径的节点名称的数量。不包括子名称(请参阅 [method " "get_subname_count])。\n" "例如,[code]\"Path2D/PathFollow2D/Sprite\"[/code] 有 3 个名称。" #: doc/classes/NodePath.xml msgid "" "Gets the resource or property name indicated by [code]idx[/code] (0 to " "[method get_subname_count]).\n" "[codeblock]\n" "var node_path = NodePath(\"Path2D/PathFollow2D/Sprite:texture:load_path\")\n" "print(node_path.get_subname(0)) # texture\n" "print(node_path.get_subname(1)) # load_path\n" "[/codeblock]" msgstr "" "获取由 [code]idx[/code](0 到 [method get_subname_count])指示的资源或属性名" "称。\n" "[codeblock]\n" "var node_path = NodePath(\"Path2D/PathFollow2D/Sprite:texture:load_path\")\n" "print(node_path.get_subname(0)) # texture\n" "print(node_path.get_subname(1)) # load_path\n" "[/codeblock]" #: doc/classes/NodePath.xml msgid "" "Gets the number of resource or property names (\"subnames\") in the path. " "Each subname is listed after a colon character ([code]:[/code]) in the node " "path.\n" "For example, [code]\"Path2D/PathFollow2D/Sprite:texture:load_path\"[/code] " "has 2 subnames." msgstr "" "获取路径中资源或属性名称(“子名称”)的数量。每个子名称都列在节点路径中的冒号" "字符 ([code]:[/code]) 之后。\n" "例如,[code]\"Path2D/PathFollow2D/Sprite:texture:load_path\"[/code] 有 2 个子" "名称。" #: doc/classes/NodePath.xml msgid "" "Returns [code]true[/code] if the node path is absolute (as opposed to " "relative), which means that it starts with a slash character ([code]/[/" "code]). Absolute node paths can be used to access the root node ([code]\"/" "root\"[/code]) or autoloads (e.g. [code]\"/global\"[/code] if a \"global\" " "autoload was registered)." msgstr "" "如果节点路径是绝对的(而不是相对的),即以斜线字符([code]/[/code])开始,返" "回 [code]true[/code]。绝对节点路径可以用来访问根节点([code]\"/root\"[/" "code])或自动加载(例如[code]\"/global\"[/code] 如果注册了一个叫“global”的自" "动加载项)。" #: doc/classes/NodePath.xml msgid "Returns [code]true[/code] if the node path is empty." msgstr "节点路径为空时返回 [code]true[/code]。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "[OpenSimplexNoise] filled texture." msgstr "使用 [OpenSimplexNoise] 填充的纹理。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "" "Uses an [OpenSimplexNoise] to fill the texture data. You can specify the " "texture size but keep in mind that larger textures will take longer to " "generate and seamless noise only works with square sized textures.\n" "NoiseTexture can also generate normalmap textures.\n" "The class uses [Thread]s to generate the texture data internally, so [method " "Texture.get_data] may return [code]null[/code] if the generation process has " "not completed yet. In that case, you need to wait for the texture to be " "generated before accessing the data:\n" "[codeblock]\n" "var texture = preload(\"res://noise.tres\")\n" "yield(texture, \"changed\")\n" "var image = texture.get_data()\n" "[/codeblock]" msgstr "" "使用 [OpenSimplexNoise] 填充纹理数据。您可以指定纹理大小,但请记住,较大的纹" "理将需要更长的时间来生成,并且无缝噪声仅适用于方形大小的纹理。\n" "NoiseTexture 还可以生成法线贴图纹理。\n" "该类内部使用线程 [Thread] 来生成纹理数据,因此如果生成过程尚未完成,[method " "Texture.get_data] 可能会返回 [code]null[/code]。在这种情况下,您需要在访问数" "据之前等待纹理生成:\n" "[codeblock]\n" "var texture = preload(\"res://noise.tres\")\n" "yield(texture, \"changed\")\n" "var image = texture.get_data()\n" "[/codeblock]" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "" "If [code]true[/code], the resulting texture contains a normal map created " "from the original noise interpreted as a bump map." msgstr "" "如果 [code]true[/code],产生的纹理包含一个由原始噪声创建的法线贴图,解释为凹" "凸贴图。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "" "Strength of the bump maps used in this texture. A higher value will make the " "bump maps appear larger while a lower value will make them appear softer." msgstr "" "此纹理中使用的凹凸贴图的强度。较高的值会使凹凸贴图看起来更大,而较低的值会使" "它们看起来更柔和。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "Height of the generated texture." msgstr "生成的纹理的高度。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "The [OpenSimplexNoise] instance used to generate the noise." msgstr "用来生成噪声的 [OpenSimplexNoise] 实例。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "" "An offset used to specify the noise space coordinate of the top left corner " "of the generated noise. This value is ignored if [member seamless] is " "enabled." msgstr "" "用于指定生成噪声左上角的噪声空间坐标的偏移量。如果启用了 [member seamless]," "则忽略此值。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "" "Whether the texture can be tiled without visible seams or not. Seamless " "textures take longer to generate.\n" "[b]Note:[/b] Seamless noise has a lower contrast compared to non-seamless " "noise. This is due to the way noise uses higher dimensions for generating " "seamless noise." msgstr "" "纹理是否可以平铺而没有可见的接缝。生成无缝纹理需要更长的时间。\n" "[b]注:[/b] 与非无缝噪声相比,无缝噪声具有较低的对比度。这是由于噪声使用更高" "维度来生成无缝噪声的方式。" #: modules/opensimplex/doc_classes/NoiseTexture.xml msgid "Width of the generated texture." msgstr "生成的纹理的宽度。" #: doc/classes/Object.xml msgid "Base class for all non-built-in types." msgstr "所有非内置类型的基类。" #: doc/classes/Object.xml msgid "" "Every class which is not a built-in type inherits from this class.\n" "You can construct Objects from scripting languages, using [code]Object.new()" "[/code] in GDScript, [code]new Object[/code] in C#, or the \"Construct " "Object\" node in VisualScript.\n" "Objects do not manage memory. If a class inherits from Object, you will have " "to delete instances of it manually. To do so, call the [method free] method " "from your script or delete the instance from C++.\n" "Some classes that extend Object add memory management. This is the case of " "[Reference], which counts references and deletes itself automatically when " "no longer referenced. [Node], another fundamental type, deletes all its " "children when freed from memory.\n" "Objects export properties, which are mainly useful for storage and editing, " "but not really so much in programming. Properties are exported in [method " "_get_property_list] and handled in [method _get] and [method _set]. However, " "scripting languages and C++ have simpler means to export them.\n" "Property membership can be tested directly in GDScript using [code]in[/" "code]:\n" "[codeblock]\n" "var n = Node2D.new()\n" "print(\"position\" in n) # Prints \"True\".\n" "print(\"other_property\" in n) # Prints \"False\".\n" "[/codeblock]\n" "The [code]in[/code] operator will evaluate to [code]true[/code] as long as " "the key exists, even if the value is [code]null[/code].\n" "Objects also receive notifications. Notifications are a simple way to notify " "the object about different events, so they can all be handled together. See " "[method _notification].\n" "[b]Note:[/b] Unlike references to a [Reference], references to an Object " "stored in a variable can become invalid without warning. Therefore, it's " "recommended to use [Reference] for data classes instead of [Object].\n" "[b]Note:[/b] Due to a bug, you can't create a \"plain\" Object using " "[code]Object.new()[/code]. Instead, use [code]ClassDB.instance(\"Object\")[/" "code]. This bug only applies to Object itself, not any of its descendents " "like [Reference]." msgstr "" "每个不是内置类型的类都继承自这个类。\n" "您可以从脚本语言构造对象,使用 GDScript 中的 [code]Object.new()[/code]、C# 中" "的 [code]new Object[/code] 或 VisualScript 中的“构造对象”节点。\n" "对象不管理内存。如果类继承自 Object,则必须手动删除它的实例。为此,请从您的脚" "本中调用 [method free] 方法或从 C++ 中删除该实例。\n" "一些继承 Object 的类添加了内存管理。 [Reference] 就是这种情况,它对引用进行计" "数,并在不再被引用时自动删除自己。 [Node] 是另一种基本类型,在从内存中释放时" "删除其所有子节点。\n" "对象导出属性,这些属性主要用于存储和编辑,但在编程中并不是那么有用。属性在 " "[method _get_property_list] 中导出并在 [method _get] 和 [method _set] 中处" "理。然而,脚本语言和 C++ 有更简单的方法来导出它们。\n" "在 GDScript 中可以使用 [code]in[/code] 直接检查是否为属性成员。\n" "[codeblock]\n" "var n = Node2D.new()\n" "print(\"position\" in n) # 打印 \"True\"。\n" "print(\"other_property\" in n) # 打印 \"False\"。\n" "[/codeblock]\n" "只要键存在,[code]in[/code] 运算符将评估为 [code]true[/code],即使值为 " "[code]null[/code]。\n" "对象也会收到通知。通知是一种将不同事件通知给对象的简单方法,因此它们可以一起" "处理。见 [method _notification]。\n" "[b]注意:[/b]与对 [Reference] 的引用不同,对存储在变量中的对象的引用可能会在" "没有警告的情况下变得无效。因此,建议对数据类使用 [Reference] 而不是 " "[Object]。\n" "[b]注意:[/b]由于一个 bug,你无法使用 [code]Object.new()[/code] 创建“普" "通”Object 对象。请换用 [code]ClassDB.instance(\"Object\")[/code]。这个 bug 仅" "限于 Object 本身,[Reference] 等派生类不受影响。" #: doc/classes/Object.xml doc/classes/Reference.xml doc/classes/Resource.xml msgid "When and how to avoid using nodes for everything" msgstr "何时以及如何避免为任何事情使用节点" #: doc/classes/Object.xml msgid "Advanced exports using _get_property_list()" msgstr "使用 _get_property_list() 进行高级导出" #: doc/classes/Object.xml msgid "" "Virtual method which can be overridden to customize the return value of " "[method get].\n" "Returns the given property. Returns [code]null[/code] if the [code]property[/" "code] does not exist." msgstr "" "虚方法。可对其进行覆盖,定制 [method get] 的返回值。\n" "返回给定的属性。如果该 [code]property[/code] 不存在,则返回 [code]null[/" "code]。" #: doc/classes/Object.xml msgid "" "Virtual method which can be overridden to customize the return value of " "[method get_property_list].\n" "Returns the object's property list as an [Array] of dictionaries.\n" "Each property's [Dictionary] must contain at least [code]name: String[/code] " "and [code]type: int[/code] (see [enum Variant.Type]) entries. Optionally, it " "can also include [code]hint: int[/code] (see [enum PropertyHint]), " "[code]hint_string: String[/code], and [code]usage: int[/code] (see [enum " "PropertyUsageFlags])." msgstr "" "虚方法。可对其进行覆盖,定制 [method get_property_list] 的返回值。\n" "返回一个 [Array],表示该对象的属性列表,其中的元素为字典类型。\n" "每个属性的 [Dictionary] 必须至少包含名称 [code]name: String[/code] 和类型 " "[code]type: int[/code](见 [enum Variant.Type])条目。另外,它还可以包括提示 " "[code]hint: int[/code](见 [enum PropertyHint])、提示字符串 " "[code]hint_string: String[/code],以及用法 [code]usage: int[/code](见 [enum " "PropertyUsageFlags])。" #: doc/classes/Object.xml msgid "" "Called when the object is initialized in memory. Can be defined to take in " "parameters, that are passed in when constructing.\n" "[b]Note:[/b] If [method _init] is defined with required parameters, then " "explicit construction is the only valid means of creating an Object of the " "class. If any other means (such as [method PackedScene.instance]) is used, " "then initialization will fail." msgstr "" "会在该对象在内存中初始化时调用。可以被定义为接受参数的形式,参数需要在构造时" "传入。\n" "[b]注意:[/b]如果 [method _init] 被定义要求参数的形式,那么就只能通过显式构造" "来创建该类的 Object。使用其他方法(如 [method PackedScene.instance])会导致初" "始化失败。" #: doc/classes/Object.xml msgid "" "Called whenever the object receives a notification, which is identified in " "[code]what[/code] by a constant. The base [Object] has two constants " "[constant NOTIFICATION_POSTINITIALIZE] and [constant " "NOTIFICATION_PREDELETE], but subclasses such as [Node] define a lot more " "notifications which are also received by this method." msgstr "" "该对象每收到一条通知时,就会调用这个方法。该通知是个常量,在 [code]what[/" "code] 中标识。基类 [Object] 有两个常量 [constant " "NOTIFICATION_POSTINITIALIZE] 和 [constant NOTIFICATION_PREDELETE],但是 " "[Node] 等子类定义了更多的通知,也会由这个方法接收。" #: doc/classes/Object.xml msgid "" "Virtual method which can be overridden to customize the return value of " "[method set].\n" "Sets a property. Returns [code]true[/code] if the [code]property[/code] " "exists." msgstr "" "虚方法。可对其进行覆盖,定制 [method set] 的返回值。\n" "设置属性。如果该 [code]property[/code] 存在,则返回 [code]true[/code]。" #: doc/classes/Object.xml msgid "" "Virtual method which can be overridden to customize the return value of " "[method to_string], and thus the object's representation where it is " "converted to a string, e.g. with [code]print(obj)[/code].\n" "Returns a [String] representing the object. If not overridden, defaults to " "[code]\"[ClassName:RID]\"[/code]." msgstr "" "虚方法。可对其进行覆盖,定制 [method to_string] 的返回值,从而在对象被转换为" "字符串的地方,例如用 [code]print(obj)[/code] 表示。\n" "返回一个代表该对象的 [String] 字符串。如果没有被覆盖,默认为 " "[code]\"[ClassName:RID]\"[/code]。" #: doc/classes/Object.xml msgid "" "Adds a user-defined [code]signal[/code]. Arguments are optional, but can be " "added as an [Array] of dictionaries, each containing [code]name: String[/" "code] and [code]type: int[/code] (see [enum Variant.Type]) entries." msgstr "" "添加一个用户定义的[code]signal[/code]。参数是可选的,但可以作为一个字典的" "[Array]来添加,每个字典包含[code]name: String[/code]和[code]type: int[/code]" "(见[enum Variant.Type])条目。" #: doc/classes/Object.xml msgid "" "Calls the [code]method[/code] on the object and returns the result. This " "method supports a variable number of arguments, so parameters are passed as " "a comma separated list. Example:\n" "[codeblock]\n" "call(\"set\", \"position\", Vector2(42.0, 0.0))\n" "[/codeblock]\n" "[b]Note:[/b] In C#, the method name must be specified as snake_case if it is " "defined by a built-in Godot node. This doesn't apply to user-defined methods " "where you should use the same convention as in the C# source (typically " "PascalCase)." msgstr "" "在对象上调用[code]method[/code]并返回结果。这个方法支持可变数量的参数,所以参" "数以逗号分隔的列表形式传递。下面是个实例:\n" "[codeblock]\n" "call(\"set\", \"position\", Vector2(42.0, 0.0))\n" "[/codeblock]\n" "[b]注意:[/b]在C#中,如果方法是由内置的Godot节点定义的,那么方法名必须被指定" "为snake_case。这不适用于用户定义的方法,在那里你应该使用与C#源代码中相同的约" "定(通常是PascalCase)。" #: doc/classes/Object.xml msgid "" "Calls the [code]method[/code] on the object during idle time. This method " "supports a variable number of arguments, so parameters are passed as a comma " "separated list. Example:\n" "[codeblock]\n" "call_deferred(\"set\", \"position\", Vector2(42.0, 0.0))\n" "[/codeblock]\n" "[b]Note:[/b] In C#, the method name must be specified as snake_case if it is " "defined by a built-in Godot node. This doesn't apply to user-defined methods " "where you should use the same convention as in the C# source (typically " "PascalCase)." msgstr "" "在空闲时间调用对象上的[code]method[/code]。这个方法支持可变数量的参数,所以参" "数是以逗号分隔的列表形式传递。下面是个例子:\n" "[codeblock]\n" "call_deferred(\"set\", \"position\", Vector2(42.0, 0.0))\n" "[/codeblock]\n" "[b]注意:[/b]在C#中,如果方法名称是由内置的Godot节点定义的,必须指定为" "snake_case。这不适用于用户定义的方法,在那里你应该使用与C#源代码中相同的约定" "(通常是PascalCase)。" #: doc/classes/Object.xml msgid "" "Calls the [code]method[/code] on the object and returns the result. " "Contrarily to [method call], this method does not support a variable number " "of arguments but expects all parameters to be via a single [Array].\n" "[codeblock]\n" "callv(\"set\", [ \"position\", Vector2(42.0, 0.0) ])\n" "[/codeblock]" msgstr "" "在对象上调用[code]method[/code]并返回结果。与[method call]相反,这个方法不支" "持可变数量的参数,而是期望所有的参数都通过一个[Array]。\n" "[codeblock]\n" "callv(\"set\", [ \"position\", Vector2(42.0, 0.0) ])\n" "[/codeblock]" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if the object can translate strings. See [method " "set_message_translation] and [method tr]." msgstr "" "如果该对象可以翻译字符串,则返回 [code]true[/code]。参阅[method " "set_message_translation]和[method tr]。" #: doc/classes/Object.xml msgid "" "Connects a [code]signal[/code] to a [code]method[/code] on a [code]target[/" "code] object. Pass optional [code]binds[/code] to the call as an [Array] of " "parameters. These parameters will be passed to the method after any " "parameter used in the call to [method emit_signal]. Use [code]flags[/code] " "to set deferred or one-shot connections. See [enum ConnectFlags] constants.\n" "A [code]signal[/code] can only be connected once to a [code]method[/code]. " "It will print an error if already connected, unless the signal was connected " "with [constant CONNECT_REFERENCE_COUNTED]. To avoid this, first, use [method " "is_connected] to check for existing connections.\n" "If the [code]target[/code] is destroyed in the game's lifecycle, the " "connection will be lost.\n" "Examples:\n" "[codeblock]\n" "connect(\"pressed\", self, \"_on_Button_pressed\") # BaseButton signal\n" "connect(\"text_entered\", self, \"_on_LineEdit_text_entered\") # LineEdit " "signal\n" "connect(\"hit\", self, \"_on_Player_hit\", [ weapon_type, damage ]) # User-" "defined signal\n" "[/codeblock]\n" "An example of the relationship between [code]binds[/code] passed to [method " "connect] and parameters used when calling [method emit_signal]:\n" "[codeblock]\n" "connect(\"hit\", self, \"_on_Player_hit\", [ weapon_type, damage ]) # " "weapon_type and damage are passed last\n" "emit_signal(\"hit\", \"Dark lord\", 5) # \"Dark lord\" and 5 are passed " "first\n" "func _on_Player_hit(hit_by, level, weapon_type, damage):\n" " print(\"Hit by %s (lvl %d) with weapon %s for %d damage\" % [hit_by, " "level, weapon_type, damage])\n" "[/codeblock]" msgstr "" "将信号 [code]signal[/code] 连接到目标 [code]target[/code] 对象上的方法 " "[code]method[/code]。将可选的绑定 [code]binds[/code] 作为一个 [Array] 的参数" "传递给调用。这些参数将在调用 [method emit_signal] 中使用的任何参数之后传递给" "方法。使用 [code]flags[/code] 设置延迟或一次性连接。请参阅 [enum " "ConnectFlags] 常量。\n" "一个信号 [code]signal[/code] 与同一方法 [code]method[/code] 只能连接一次。除" "非之前在连接信号时使用了 [constant CONNECT_REFERENCE_COUNTED],否则在进行重复" "连接时会打印错误。为避免这种情况,首先使用 [method is_connected] 检查是否已有" "连接。\n" "如果 [code]target[/code] 在游戏生命周期中被销毁,连接将丢失。\n" "例子:\n" "[codeblock]\n" "connect(\"pressed\", self, \"_on_Button_pressed\") # BaseButton 信号\n" "connect(\"text_entered\", self, \"_on_LineEdit_text_entered\") # LineEdit 信" "号\n" "connect(\"hit\", self, \"_on_Player_hit\", [ Weapon_type, damage ]) # 用户自" "定义信号\n" "[/codeblock]\n" "传递给 [method connect] 的 [code]binds[/code] 与调用 [method emit_signal] 时" "使用的参数的关系示例:\n" "[codeblock]\n" "connect(\"hit\", self, \"_on_Player_hit\", [ Weapon_type, damage ]) # 武器类" "型和伤害最后传递\n" "emit_signal(\"hit\", \"Dark lord\", 5) # 先传递 \"Dark lord\" 和 5\n" "func _on_Player_hit(hit_by, level, Weapon_type, damage):\n" " print(\"被 %s(等级 %d)使用武器 %s 击中,造成 %d 点伤害\" % [hit_by, " "level, weapon_type, damage])\n" "[/codeblock]" #: doc/classes/Object.xml msgid "" "Disconnects a [code]signal[/code] from a [code]method[/code] on the given " "[code]target[/code].\n" "If you try to disconnect a connection that does not exist, the method will " "print an error. Use [method is_connected] to ensure that the connection " "exists." msgstr "" "将 [code]信号[/code] 与给定 [code]目标[/code] 上的 [code]方法[/code] 断开。\n" "如果您尝试断开不存在的连接,该方法将打印错误。使用 [method is_connected] 确保" "连接存在。" #: doc/classes/Object.xml msgid "" "Emits the given [code]signal[/code]. The signal must exist, so it should be " "a built-in signal of this class or one of its parent classes, or a user-" "defined signal. This method supports a variable number of arguments, so " "parameters are passed as a comma separated list. Example:\n" "[codeblock]\n" "emit_signal(\"hit\", weapon_type, damage)\n" "emit_signal(\"game_over\")\n" "[/codeblock]" msgstr "" "发射给定的信号 [code]signal[/code]。这个信号必须存在,所以它应该是这个类或其" "父类中的一个内置信号,或者是一个用户定义的信号。这个方法支持可变数量的参数," "所以参数是以逗号分隔的列表形式传递。例子:\n" "[codeblock]\n" "emit_signal(\"hit\", weapon_type, damage)\n" "emit_signal(\"game_over\")\n" "[/codeblock]" #: doc/classes/Object.xml msgid "" "Deletes the object from memory immediately. For [Node]s, you may want to use " "[method Node.queue_free] to queue the node for safe deletion at the end of " "the current frame.\n" "[b]Important:[/b] If you have a variable pointing to an object, it will " "[i]not[/i] be assigned to [code]null[/code] once the object is freed. " "Instead, it will point to a [i]previously freed instance[/i] and you should " "validate it with [method @GDScript.is_instance_valid] before attempting to " "call its methods or access its properties." msgstr "" "立即从内存中删除对象。对于 [Node],您可能希望使用 [method Node.queue_free] 将" "节点排队以在当前帧的末尾安全删除。\n" "[b]重要:[/b]如果你有一个指向一个对象的变量,一旦对象被释放,它将[i]不会[/i]" "被赋为 [code]null[/code]。相反,它会指向一个[i]先前释放的实例[/i],您应该在尝" "试调用其方法或访问其属性之前使用 [method @GDScript.is_instance_valid] 对其进" "行验证。" #: doc/classes/Object.xml msgid "" "Returns the [Variant] value of the given [code]property[/code]. If the " "[code]property[/code] doesn't exist, this will return [code]null[/code].\n" "[b]Note:[/b] In C#, the property name must be specified as snake_case if it " "is defined by a built-in Godot node. This doesn't apply to user-defined " "properties where you should use the same convention as in the C# source " "(typically PascalCase)." msgstr "" "返回给定[code]property[/code]的[Variant]值。如果该[code]property[/code]不存" "在,这将返回 [code]null[/code]。\n" "[b]注意:[/b]在C#中,如果属性是由内置的Godot节点定义的,那么属性名必须被指定" "为snake_case。这不适用于用户定义的属性,在那里你应该使用与C#源代码中相同的约" "定(通常是PascalCase)。" #: doc/classes/Object.xml msgid "" "Returns the object's class as a [String]. See also [method is_class].\n" "[b]Note:[/b] [method get_class] does not take [code]class_name[/code] " "declarations into account. If the object has a [code]class_name[/code] " "defined, the base class name will be returned instead." msgstr "" "返回对象的类型为一个[String]。参见[method is_class]。\n" "[b]注意:[/b][method get_class] 不考虑[code]class_name[/code]的声明。如果对象" "有一个[code]class_name[/code]的定义,基类名称将被返回。" #: doc/classes/Object.xml msgid "" "Returns an [Array] of dictionaries with information about signals that are " "connected to the object.\n" "Each [Dictionary] contains three String entries:\n" "- [code]source[/code] is a reference to the signal emitter.\n" "- [code]signal_name[/code] is the name of the connected signal.\n" "- [code]method_name[/code] is the name of the method to which the signal is " "connected." msgstr "" "返回一个 [Array],元素为字典,包含与该对象相连的信号信息。\n" "每个 [Dictionary] 包含三个字符串条目。\n" "- [code]source[/code] 是对信号发出者的引用。\n" "- [code]signal_name[/code] 是连接信号的名称。\n" "- [code]method_name[/code] 是信号所连接的方法的名称。" #: doc/classes/Object.xml msgid "" "Gets the object's property indexed by the given [NodePath]. The node path " "should be relative to the current object and can use the colon character " "([code]:[/code]) to access nested properties. Examples: [code]\"position:" "x\"[/code] or [code]\"material:next_pass:blend_mode\"[/code].\n" "[b]Note:[/b] Even though the method takes [NodePath] argument, it doesn't " "support actual paths to [Node]s in the scene tree, only colon-separated sub-" "property paths. For the purpose of nodes, use [method Node." "get_node_and_resource] instead." msgstr "" "获取由给定的 [NodePath] 索引的对象的属性。节点路径应该是相对于当前对象的,可" "以使用冒号字符([code]:[/code])来访问嵌套属性。例如:[code]\"position:x\"[/" "code] 或 [code]\"material:next_pass:blend_mode\"[/code]。\n" "[b]注意:[/b]虽然该方法的参数是 [NodePath] 节点路径,但是它实际并不支持指向场" "景树中 [Node] 节点的路径,只能使用冒号分隔的子属性路径。针对节点的话,请改用 " "[method Node.get_node_and_resource]。" #: doc/classes/Object.xml msgid "" "Returns the object's unique instance ID.\n" "This ID can be saved in [EncodedObjectAsID], and can be used to retrieve the " "object instance with [method @GDScript.instance_from_id]." msgstr "" "返回该对象的唯一实例 ID。\n" "这个 ID 可以保存在 [EncodedObjectAsID] 中,并且可以用 [method @GDScript." "instance_from_id] 来检索对象实例。" #: doc/classes/Object.xml msgid "" "Returns the object's metadata entry for the given [code]name[/code].\n" "Throws error if the entry does not exist, unless [code]default[/code] is not " "[code]null[/code] (in which case the default value will be returned)." msgstr "" "返回该对象的名称为给定的 [code]name[/code] 的元数据条目。\n" "条目不存在时会抛出错误,除非 [code]default[/code] 不为 [code]null[/code](此" "时会返回该默认值)。" #: doc/classes/Object.xml msgid "Returns the object's metadata as a [PoolStringArray]." msgstr "将该对象的元数据作为 [PoolStringArray] 返回。" #: doc/classes/Object.xml msgid "Returns the object's methods and their signatures as an [Array]." msgstr "将该对象的方法及其签名作为 [Array] 返回。" #: doc/classes/Object.xml msgid "" "Returns the object's property list as an [Array] of dictionaries.\n" "Each property's [Dictionary] contain at least [code]name: String[/code] and " "[code]type: int[/code] (see [enum Variant.Type]) entries. Optionally, it can " "also include [code]hint: int[/code] (see [enum PropertyHint]), " "[code]hint_string: String[/code], and [code]usage: int[/code] (see [enum " "PropertyUsageFlags])." msgstr "" "将该对象的属性列表作为 [Array] 返回,元素为字典。\n" "每个属性的 [Dictionary] 至少包含 [code]name: String[/code] 和 [code]type: " "int[/code](见 [enum Variant.Type])条目。另外,它还可以包括 [code]hint: " "int[/code](见[enum PropertyHint])、[code]hint_string: String[/code],以及" "[code]usage: int[/code](见[enum PropertyUsageFlags])。" #: doc/classes/Object.xml msgid "" "Returns the object's [Script] instance, or [code]null[/code] if none is " "assigned." msgstr "返回该对象的 [Script] 实例,如果没有指定,则返回 [code]null[/code]。" #: doc/classes/Object.xml msgid "Returns an [Array] of connections for the given [code]signal[/code]." msgstr "返回给定信号 [code]signal[/code] 的连接的 [Array]。" #: doc/classes/Object.xml msgid "Returns the list of signals as an [Array] of dictionaries." msgstr "将信号列表作为 [Array] 返回,元素为字典。" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if a metadata entry is found with the given " "[code]name[/code]." msgstr "" "如果能够找到具有给定名称 [code]name[/code] 的元数据条目,则返回 [code]true[/" "code]。" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if the object contains the given [code]method[/" "code]." msgstr "如果对象包含给定的方法 [code]method[/code],则返回 [code]true[/code]。" #: doc/classes/Object.xml msgid "Returns [code]true[/code] if the given [code]signal[/code] exists." msgstr "如果给定的信号 [code]signal[/code] 存在,则返回 [code]true[/code]。" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if the given user-defined [code]signal[/code] " "exists. Only signals added using [method add_user_signal] are taken into " "account." msgstr "" "如果给定的用户定义的信号 [code]signal[/code] 存在,则返回 [code]true[/code]。" "只有使用 [method add_user_signal] 添加的信号才被考虑在内。" #: doc/classes/Object.xml msgid "Returns [code]true[/code] if signal emission blocking is enabled." msgstr "如果启用了信号发射阻断,则返回 [code]true[/code]。" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if the object inherits from the given [code]class[/" "code]. See also [method get_class].\n" "[b]Note:[/b] [method is_class] does not take [code]class_name[/code] " "declarations into account. If the object has a [code]class_name[/code] " "defined, [method is_class] will return [code]false[/code] for that name." msgstr "" "如果对象从给定的 [code]class[/code] 中继承,则返回 [code]true[/code]。另请参" "阅 [method get_class]。\n" "[b]注:[/b] [method is_class] 没有考虑 [code]class_name[/code] 声明。如果对象" "有 [code]class_name[/code] 定义,[method is_class] 将为该名称返回 " "[code]false[/code] 。" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if a connection exists for a given [code]signal[/" "code], [code]target[/code], and [code]method[/code]." msgstr "" "如果给定的信号 [code]signal[/code]、目标 [code]target[/code]、方法 " "[code]method[/code] 存在连接,则返回 [code]true[/code]。" #: doc/classes/Object.xml msgid "" "Returns [code]true[/code] if the [method Node.queue_free] method was called " "for the object." msgstr "" "如果为该对象调用了 [method Node.queue_free] 方法,则返回 [code]true[/code]。" #: doc/classes/Object.xml msgid "" "Send a given notification to the object, which will also trigger a call to " "the [method _notification] method of all classes that the object inherits " "from.\n" "If [code]reversed[/code] is [code]true[/code], [method _notification] is " "called first on the object's own class, and then up to its successive parent " "classes. If [code]reversed[/code] is [code]false[/code], [method " "_notification] is called first on the highest ancestor ([Object] itself), " "and then down to its successive inheriting classes." msgstr "" "向对象发送给定的通知,也会触发对该对象继承的所有类的 [method _notification] " "方法的调用。\n" "如果 [code]reversed[/code] 为 [code]true[/code],[method _notification] 会首" "先在对象自己的类上被调用,然后再向上依次在父类上调用。如果 [code]reversed[/" "code] 为 [code]false[/code],[method _notification] 会首先在最高的祖先" "([Object] 本身)上被调用,然后向下依次在继承类上调用。" #: doc/classes/Object.xml msgid "" "Notify the editor that the property list has changed, so that editor plugins " "can take the new values into account. Does nothing on export builds." msgstr "" "通知编辑器属性列表已经改变,以便编辑器插件能够考虑到新的值。在导出构建时没有" "任何作用。" #: doc/classes/Object.xml msgid "" "Removes a given entry from the object's metadata. See also [method set_meta]." msgstr "从对象的元数据中删除给定条目。另见 [method set_meta]。" #: doc/classes/Object.xml msgid "" "Assigns a new value to the given property. If the [code]property[/code] does " "not exist or the given value's type doesn't match, nothing will happen.\n" "[b]Note:[/b] In C#, the property name must be specified as snake_case if it " "is defined by a built-in Godot node. This doesn't apply to user-defined " "properties where you should use the same convention as in the C# source " "(typically PascalCase)." msgstr "" "为给定的属性赋一个新值。如果 [code]property[/code] 不存在,或者给定的值的类型" "与之不匹配时,则不会发生任何事情。\n" "[b]注意:[/b]在 C# 中,如果属性名由内置的 Godot 节点定义,则必须将其指定为 " "snake_case。这不适用于用户定义的属性,在这些属性中,您应该使用与 C# 源中相同" "的约定(通常是 PascalCase)。" #: doc/classes/Object.xml msgid "If set to [code]true[/code], signal emission is blocked." msgstr "如果设置为 [code]true[/code],信号发射被阻止。" #: doc/classes/Object.xml msgid "" "Assigns a new value to the given property, after the current frame's physics " "step. This is equivalent to calling [method set] via [method call_deferred], " "i.e. [code]call_deferred(\"set\", property, value)[/code].\n" "[b]Note:[/b] In C#, the property name must be specified as snake_case if it " "is defined by a built-in Godot node. This doesn't apply to user-defined " "properties where you should use the same convention as in the C# source " "(typically PascalCase)." msgstr "" "在当前帧的物理完成之后,将给定属性赋一个新值。这相当于通过 [method " "call_deferred] 调用 [method set],即 [code]call_deferred(\"set\", property, " "value)[/code]。\n" "[b]注意:[/b]在 C# 中,由 Godot 内置节点定义的属性名必须指定为 snake_case。这" "并不适用于用户定义的属性,因为您应该使用与 C# 源代码(通常是 PascalCase)相同" "的约定。" #: doc/classes/Object.xml msgid "" "Assigns a new value to the property identified by the [NodePath]. The node " "path should be relative to the current object and can use the colon " "character ([code]:[/code]) to access nested properties. Example:\n" "[codeblock]\n" "set_indexed(\"position\", Vector2(42, 0))\n" "set_indexed(\"position:y\", -10)\n" "print(position) # (42, -10)\n" "[/codeblock]" msgstr "" "为 [NodePath] 标识的属性分配新值。节点路径应该相对于当前对象,可以使用冒号" "([code]:[/code])访问嵌套属性。示例:\n" "[codeblock]\n" "set_indexed(\"position\", Vector2(42, 0))\n" "set_indexed(\"position:y\", -10)\n" "print(position) # (42, -10)\n" "[/codeblock]" #: doc/classes/Object.xml msgid "" "Defines whether the object can translate strings (with calls to [method " "tr]). Enabled by default." msgstr "定义对象是否可以转换字符串(通过调用[method tr])。默认启用。" #: doc/classes/Object.xml msgid "" "Adds, changes or removes a given entry in the object's metadata. Metadata " "are serialized and can take any [Variant] value.\n" "To remove a given entry from the object's metadata, use [method " "remove_meta]. Metadata is also removed if its value is set to [code]null[/" "code]. This means you can also use [code]set_meta(\"name\", null)[/code] to " "remove metadata for [code]\"name\"[/code]." msgstr "" "添加、更改或删除对象元数据中的给定条目。元数据被序列化并且可以采用任何 " "[Variant] 值。\n" "要从对象的元数据中删除给定条目,请使用 [method remove_meta]。如果元数据的值设" "置为 [code]null[/code],也会删除元数据。这意味着您还可以使用 " "[code]set_meta(\"name\", null)[/code] 删除 [code]\"name\"[/code] 的元数据。" #: doc/classes/Object.xml msgid "" "Assigns a script to the object. Each object can have a single script " "assigned to it, which are used to extend its functionality.\n" "If the object already had a script, the previous script instance will be " "freed and its variables and state will be lost. The new script's [method " "_init] method will be called." msgstr "" "将脚本分配给对象。每个对象都可以有一个分配给它的脚本,用于扩展其功能。\n" "如果对象已经有一个脚本,则前一个脚本实例将被释放,它的变量和状态将丢失。新脚" "本的[method _init]方法将被调用。" #: doc/classes/Object.xml msgid "" "Returns a [String] representing the object. If not overridden, defaults to " "[code]\"[ClassName:RID]\"[/code].\n" "Override the method [method _to_string] to customize the [String] " "representation." msgstr "" "返回表示对象的 [String]。如果没有覆盖,默认为 [code]\"[ClassName:RID]\"[/" "code]。\n" "可以通过重写 [method _to_string] 方法来自定义 [String] 表示。" #: doc/classes/Object.xml msgid "" "Translates a message using translation catalogs configured in the Project " "Settings.\n" "Only works if message translation is enabled (which it is by default), " "otherwise it returns the [code]message[/code] unchanged. See [method " "set_message_translation]." msgstr "" "使用在项目设置中配置的翻译目录翻译消息。\n" "仅在启用消息翻译时(默认如此)有效,否则返回未修改的 [code]message[/code]。请" "参阅 [method set_message_translation]。" #: doc/classes/Object.xml msgid "Emitted whenever the object's script is changed." msgstr "当对象的脚本被更改时触发。" #: doc/classes/Object.xml msgid "Called right when the object is initialized. Not available in script." msgstr "在对象初始化时调用。在脚本中不可用。" #: doc/classes/Object.xml msgid "Called before the object is about to be deleted." msgstr "在要删除对象之前调用。" #: doc/classes/Object.xml msgid "" "Connects a signal in deferred mode. This way, signal emissions are stored in " "a queue, then set on idle time." msgstr "" "以延迟模式连接信号。这样,信号发射会被储存在一个队列中,然后在空闲时间发出。" #: doc/classes/Object.xml msgid "Persisting connections are saved when the object is serialized to file." msgstr "持久化连接,会在该对象序列化为文件时保存。" #: doc/classes/Object.xml msgid "One-shot connections disconnect themselves after emission." msgstr "一次性连接,会在触发后自行断开。" #: doc/classes/Object.xml msgid "" "Connect a signal as reference-counted. This means that a given signal can be " "connected several times to the same target, and will only be fully " "disconnected once no references are left." msgstr "" "以引用计数形式连接信号。这意味着一个给定的信号可以多次连接到同一个目标,并且" "只有在没有引用时才会完全断开连接。" #: doc/classes/Occluder.xml msgid "Allows [OccluderShape]s to be used for occlusion culling." msgstr "允许使用[OccluderShape]来进行遮挡剔除。" #: doc/classes/Occluder.xml msgid "" "[Occluder]s that are placed within your scene will automatically cull " "objects that are hidden from view by the occluder. This can increase " "performance by decreasing the amount of objects drawn.\n" "[Occluder]s are totally dynamic, you can move them as you wish. This means " "you can for example, place occluders on a moving spaceship, and have it " "occlude objects as it flies past.\n" "You can place a large number of [Occluder]s within a scene. As it would be " "counterproductive to cull against hundreds of occluders, the system will " "automatically choose a selection of these for active use during any given " "frame, based a screen space metric. Larger occluders are favored, as well as " "those close to the camera. Note that a small occluder close to the camera " "may be a better occluder in terms of screen space than a large occluder far " "in the distance.\n" "The type of occlusion primitive is determined by the [OccluderShape] that " "you add to the [Occluder]. Some [OccluderShape]s may allow more than one " "primitive in a single, node, for greater efficiency.\n" "Although [Occluder]s work in general use, they also become even more " "powerful when used in conjunction with the portal system. Occluders are " "placed in rooms (based on their origin), and can block portals (and thus " "entire rooms) as well as objects from rendering." msgstr "" "放置在场景中的 [Occluder] 遮挡器将自动剔除被遮挡器隐藏的对象。这可以通过减少" "绘制的对象数量来提高性能。\n" "[Occluder] 是完全动态的,您可以随意移动它们。例如,这意味着您可以在移动的宇宙" "飞船上放置遮挡物,并让它在飞过时遮挡物体。\n" "您可以在一个场景中放置大量 [Occluder]。由于剔除数百个遮挡物会适得其反,系统将" "根据屏幕空间指标自动选择这些遮挡物在任何给定帧期间主动使用。较大的遮挡物以及" "靠近相机的遮挡物受到青睐。请注意,就屏幕空间而言,靠近相机的小遮挡物可能比远" "处的大遮挡物更好。\n" "遮挡图元的类型由您添加到 [Occluder] 的 [OccluderShape] 决定。某些 " "[OccluderShape] 可能允许在单个节点中有多个图元,以提高效率。\n" "尽管 [Occluder] 在一般用途中工作,但与入口系统结合使用时,它们也会变得更加强" "大。遮挡物放置在房间中(基于它们的原点),并且可以阻挡入口(以及整个房间)以" "及渲染对象。" #: doc/classes/OccluderPolygon2D.xml msgid "Defines a 2D polygon for LightOccluder2D." msgstr "为LightOccluder2D定义一个2D多边形。" #: doc/classes/OccluderPolygon2D.xml msgid "" "Editor facility that helps you draw a 2D polygon used as resource for " "[LightOccluder2D]." msgstr "编辑工具,帮助你绘制一个2D多边形用作资源[LightOccluder2D]。" #: doc/classes/OccluderPolygon2D.xml msgid "" "If [code]true[/code], closes the polygon. A closed OccluderPolygon2D " "occludes the light coming from any direction. An opened OccluderPolygon2D " "occludes the light only at its outline's direction." msgstr "" "如果[code]true[/code],封闭该多边形。一个封闭的polygon2d封闭来自任何方向的" "光。一个开放的OccluderPolygon2D只在其轮廓方向上遮挡光。" #: doc/classes/OccluderPolygon2D.xml msgid "The culling mode to use." msgstr "要使用的剔除模式。" #: doc/classes/OccluderPolygon2D.xml msgid "" "A [Vector2] array with the index for polygon's vertices positions.\n" "[b]Note:[/b] The returned value is a copy of the underlying array, rather " "than a reference." msgstr "" "带有多边形顶点位置索引的[Vector2]数组。\n" "[b]注意:[/b]返回值是基础数组的副本,而不是引用。" #: doc/classes/OccluderPolygon2D.xml msgid "Culling is disabled. See [member cull_mode]." msgstr "禁用剔除。参阅[member cull_mode]。" #: doc/classes/OccluderPolygon2D.xml msgid "" "Culling is performed in the clockwise direction. See [member cull_mode]." msgstr "按顺时针方向进行剔除。见[member cull_mode]。" #: doc/classes/OccluderPolygon2D.xml msgid "" "Culling is performed in the counterclockwise direction. See [member " "cull_mode]." msgstr "按逆时针方向进行剔除。参阅[member cull_mode]。" #: doc/classes/OccluderShape.xml msgid "" "Base class for shapes used for occlusion culling by the [Occluder] node." msgstr "用于[Occluder]节点进行遮挡剔除的形状的基类。" #: doc/classes/OccluderShape.xml msgid "[Occluder]s can use any primitive shape derived from [OccluderShape]." msgstr "[Occluder] 可以使用从 [OccluderShape] 派生的任何图元。" #: doc/classes/OccluderShapePolygon.xml msgid "Polygon occlusion primitive for use with the [Occluder] node." msgstr "用于 [Occluder] 节点的多边形遮挡图元。" #: doc/classes/OccluderShapePolygon.xml msgid "" "[OccluderShape]s are resources used by [Occluder] nodes, allowing geometric " "occlusion culling.\n" "The polygon must be a convex polygon. The polygon points can be created and " "deleted either in the Editor inspector or by calling " "[code]set_polygon_points[/code]. The points of the edges can be set by " "dragging the handles in the Editor viewport.\n" "Additionally each polygon occluder can optionally support a single hole. If " "you add at least three points in the Editor inspector to the hole, you can " "drag the edge points of the hole in the Editor viewport.\n" "In general, the lower the number of edges in polygons and holes, the faster " "the system will operate at runtime, so in most cases you will want to use 4 " "points for each." msgstr "" "[OccluderShape] 是 [Occluder] 节点所使用的资源,用于几何遮挡剔除。\n" "该多边形必须是凸多边形。多边形顶点的创建与删除可以在编辑器的检查器中进行,也" "可以通过调用 [code]set_polygon_points[/code] 实现。每一条边的顶点都可以通过在" "编辑器视窗中拖拽句柄设置。\n" "另外,每一个多边形遮挡器都可以支持单个空洞。如果你在编辑器的检查器中为空洞添" "加至少三个顶点,就可以在编辑器视窗中拖拽空洞边缘顶点的句柄。\n" "一般而言,多边形以及空洞的边数越少,运行时系统的处理速度就越快,所以在大多数" "情况下你都只会设置 4 个顶点。" #: doc/classes/OccluderShapePolygon.xml msgid "Sets an individual hole point position." msgstr "设置单独的空洞顶点位置。" #: doc/classes/OccluderShapePolygon.xml msgid "Sets an individual polygon point position." msgstr "设置单独的多边形顶点位置。" #: doc/classes/OccluderShapePolygon.xml msgid "Allows changing the hole geometry from code." msgstr "允许通过代码修改空洞形状。" #: doc/classes/OccluderShapePolygon.xml msgid "Allows changing the polygon geometry from code." msgstr "允许通过代码修改多边形形状。" #: doc/classes/OccluderShapePolygon.xml msgid "" "Specifies whether the occluder should operate from both sides. If " "[code]false[/code], the occluder will operate one way only." msgstr "指定该遮挡器是否为双向。为 [code]false[/code] 时,遮挡器为单向。" #: doc/classes/OccluderShapeSphere.xml msgid "Spherical occlusion primitive for use with the [Occluder] node." msgstr "与 [Occluder] 节点一起使用的球形遮挡基本单元。" #: doc/classes/OccluderShapeSphere.xml msgid "" "[OccluderShape]s are resources used by [Occluder] nodes, allowing geometric " "occlusion culling.\n" "This shape can include multiple spheres. These can be created and deleted " "either in the Editor inspector or by calling [code]set_spheres[/code]. The " "sphere positions can be set by dragging the handle in the Editor viewport. " "The radius can be set with the smaller handle." msgstr "" "[OccluderShape] 是 [Occluder] 节点使用的资源,允许几何遮挡剔除。\n" "这种形状可以包括多个球体。这些可以在编辑器检查器中或通过调用 " "[code]set_spheres[/code] 来创建和删除。可以通过在编辑器视口中拖动手柄来设置球" "体位置。可以使用较小的手柄设置半径。" #: doc/classes/OccluderShapeSphere.xml msgid "Sets an individual sphere's position." msgstr "设置单个球体的位置。" #: doc/classes/OccluderShapeSphere.xml msgid "Sets an individual sphere's radius." msgstr "设置单个球体的半径。" #: doc/classes/OccluderShapeSphere.xml msgid "" "The sphere data can be accessed as an array of [Plane]s. The position of " "each sphere is stored in the [code]normal[/code], and the radius is stored " "in the [code]d[/code] value of the plane." msgstr "" "球体数据可以作为 [Plane] 数组访问。每个球体的位置存储在[code]normal[/code]" "中,半径存储在平面的[code]d[/code]值中。" #: doc/classes/OmniLight.xml msgid "Omnidirectional light, such as a light bulb or a candle." msgstr "全向光,如灯泡或蜡烛。" #: doc/classes/OmniLight.xml msgid "" "An Omnidirectional light is a type of [Light] that emits light in all " "directions. The light is attenuated by distance and this attenuation can be " "configured by changing its energy, radius, and attenuation parameters.\n" "[b]Note:[/b] By default, only 32 OmniLights may affect a single mesh " "[i]resource[/i] at once. Consider splitting your level into several meshes " "to decrease the likelihood that more than 32 lights will affect the same " "mesh resource. Splitting the level mesh will also improve frustum culling " "effectiveness, leading to greater performance. If you need to use more " "lights per mesh, you can increase [member ProjectSettings.rendering/limits/" "rendering/max_lights_per_object] at the cost of shader compilation times." msgstr "" "全向光是一种向所有方向发光的 [Light]。光会因距离而衰减,并且可以通过更改其能" "量、半径和衰减参数来配置这种衰减。\n" "[b]注意:[/b]默认情况下,只有 32 个 OmniLight 可以同时影响单个网格[i]资源[/" "i]。考虑将关卡拆分为多个网格,以降低超过 32 个灯光影响同一网格资源的可能性。" "拆分水平网格也将提高视锥体剔除效果,从而提高性能。如果您需要为每个网格使用更" "多灯光,您可以以着色器编译时间为代价增加 [member ProjectSettings.rendering/" "limits/rendering/max_lights_per_object]。" #: doc/classes/OmniLight.xml msgid "" "The light's attenuation (drop-off) curve. A number of presets are available " "in the [b]Inspector[/b] by right-clicking the curve." msgstr "" "光的衰减(下降)曲线。在[b]检查器[/b]中,通过右键点击曲线,可以获得许多预设。" #: doc/classes/OmniLight.xml msgid "" "The light's radius. Note that the effectively lit area may appear to be " "smaller depending on the [member omni_attenuation] in use. No matter the " "[member omni_attenuation] in use, the light will never reach anything " "outside this radius." msgstr "" "光的半径。请注意,有效的照明区域可能看起来更小,这取决于使用的[member " "omni_attenuation]。无论使用何种[member omni_attenuation],光线都不会到达这个" "半径以外的地方。" #: doc/classes/OmniLight.xml msgid "See [enum ShadowDetail]." msgstr "参阅[enum ShadowDetail]。" #: doc/classes/OmniLight.xml msgid "See [enum ShadowMode]." msgstr "参阅[enum ShadowMode]。" #: doc/classes/OmniLight.xml msgid "" "Shadows are rendered to a dual-paraboloid texture. Faster than [constant " "SHADOW_CUBE], but lower-quality." msgstr "" "阴影被渲染到一个双抛物面纹理。比[constant SHADOW_CUBE]更快,但质量较差。" #: doc/classes/OmniLight.xml msgid "" "Shadows are rendered to a cubemap. Slower than [constant " "SHADOW_DUAL_PARABOLOID], but higher-quality." msgstr "" "阴影被渲染成一个cubemap。比[constant SHADOW_DUAL_PARABOLOID]慢,但质量更高。" #: doc/classes/OmniLight.xml msgid "Use more detail vertically when computing the shadow." msgstr "在计算阴影时,垂直方向上使用更多的细节。" #: doc/classes/OmniLight.xml msgid "Use more detail horizontally when computing the shadow." msgstr "在计算阴影时,在水平方向上使用更多的细节。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "Noise generator based on Open Simplex." msgstr "基于Open Simplex的噪声发生器。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "This resource allows you to configure and sample a fractal noise space. Here " "is a brief usage example that configures an OpenSimplexNoise and gets " "samples at various positions and dimensions:\n" "[codeblock]\n" "var noise = OpenSimplexNoise.new()\n" "\n" "# Configure\n" "noise.seed = randi()\n" "noise.octaves = 4\n" "noise.period = 20.0\n" "noise.persistence = 0.8\n" "\n" "# Sample\n" "print(\"Values:\")\n" "print(noise.get_noise_2d(1.0, 1.0))\n" "print(noise.get_noise_3d(0.5, 3.0, 15.0))\n" "print(noise.get_noise_4d(0.5, 1.9, 4.7, 0.0))\n" "[/codeblock]" msgstr "" "这个资源允许你配置和采样一个分形噪声空间。下面是一个简短的使用例子,它配置了" "一个OpenSimplexNoise,并在不同的位置和维度上得到采样。\n" "[codeblock]\n" "var noise = OpenSimplexNoise.new()\n" "\n" "# Configure\n" "noise.seed = randi()\n" "noise.octaves = 4\n" "noise.period = 20.0\n" "noise.persistence = 0.8\n" "\n" "# Sample\n" "print(\"Values:\")\n" "print(noise.get_noise_2d(1.0, 1.0))\n" "print(noise.get_noise_3d(0.5, 3.0, 15.0))\n" "print(noise.get_noise_4d(0.5, 1.9, 4.7, 0.0))\n" "[/codeblock]" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Generate a noise image in [constant Image.FORMAT_L8] format with the " "requested [code]width[/code] and [code]height[/code], based on the current " "noise parameters. If [code]noise_offset[/code] is specified, then the offset " "value is used as the coordinates of the top-left corner of the generated " "noise." msgstr "" "根据当前的噪声参数,生成一个[constant Image.FORMAT_L8]格式的噪声图像,需要指" "定其[code]width[/code] 和 [code]height[/code]。如果指定了[code]noise_offset[/" "code],那么偏移值将作为生成的噪声左上角的坐标。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Returns the 1D noise value [code][-1,1][/code] at the given x-coordinate.\n" "[b]Note:[/b] This method actually returns the 2D noise value [code][-1,1][/" "code] with fixed y-coordinate value 0.0." msgstr "" "返回给定x坐标处的一维噪声值[code][-1,1][/code]。\n" "[b]注意:[/b]这个方法实际上返回的是固定Y坐标值为0.0的二维噪声值[code][-1,1][/" "code]。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "Returns the 2D noise value [code][-1,1][/code] at the given position." msgstr "返回给定位置的2D噪声值[code][-1,1][/code]。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "Returns the 3D noise value [code][-1,1][/code] at the given position." msgstr "返回在给定位置的3D噪声值[code][-1,1][/code]。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "Returns the 4D noise value [code][-1,1][/code] at the given position." msgstr "返回指定位置的4D噪声值[code][-1,1][/code]。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Generate a tileable noise image in [constant Image.FORMAT_L8] format, based " "on the current noise parameters. Generated seamless images are always square " "([code]size[/code] × [code]size[/code]).\n" "[b]Note:[/b] Seamless noise has a lower contrast compared to non-seamless " "noise. This is due to the way noise uses higher dimensions for generating " "seamless noise." msgstr "" "根据当前的噪声参数,以 [constant Image.FORMAT_L8] 格式生成可平铺噪声图像。生" "成的无缝图像始终是方形的([code]size[/code]× [code]size[/code])。\n" "[b]注意:[/b]与非无缝噪声相比,无缝噪声的对比度较低。。这是由于噪声使用更高维" "度来生成无缝噪声的方式。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "Difference in period between [member octaves]." msgstr "在 [member octaves] 之间的周期差异。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Number of OpenSimplex noise layers that are sampled to get the fractal " "noise. Higher values result in more detailed noise but take more time to " "generate.\n" "[b]Note:[/b] The maximum allowed value is 9." msgstr "" "采样得到分形噪声的OpenSimplex噪声层数。更高的值导致更详细的噪声,但需要更多的" "时间来生成。\n" "[b]备注:[/b]最大值为9。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Period of the base octave. A lower period results in a higher-frequency " "noise (more value changes across the same distance)." msgstr "" "基本八度的周期。较低的周期会导致更高频率的噪声(在相同距离上的值变化更多)。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Contribution factor of the different octaves. A [code]persistence[/code] " "value of 1 means all the octaves have the same contribution, a value of 0.5 " "means each octave contributes half as much as the previous one." msgstr "" "不同八度音阶的贡献因子。[code]persistence[/code]值为1表示所有的八度有相同的贡" "献,值为0.5表示每个八度的贡献是前一个的一半。" #: modules/opensimplex/doc_classes/OpenSimplexNoise.xml msgid "" "Seed used to generate random values, different seeds will generate different " "noise maps." msgstr "用于生成随机值的种子,不同的种子将生成不同的噪声图。" #: doc/classes/OptionButton.xml msgid "Button control that provides selectable options when pressed." msgstr "按下时提供可选选项的按钮控件。" #: doc/classes/OptionButton.xml msgid "" "OptionButton is a type button that provides a selectable list of items when " "pressed. The item selected becomes the \"current\" item and is displayed as " "the button text.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node." msgstr "" "OptionButton 是一种类型按钮,可在按下时提供可选择的项目列表。所选项目成为“当" "前”项目并显示为按钮文本。\n" "另请参阅 [BaseButton],其中包含与此节点关联的通用属性和方法。" #: doc/classes/OptionButton.xml msgid "" "Adds an item, with a [code]texture[/code] icon, text [code]label[/code] and " "(optionally) [code]id[/code]. If no [code]id[/code] is passed, the item " "index will be used as the item's ID. New items are appended at the end." msgstr "" "添加一个项,带有[code]texture[/code]图标,文本[code]label[/code]和(可选的)" "[code]id[/code]。如果没有传入[code]id[/code],该项的索引将被用作其id。新项将" "被添加至末尾。" #: doc/classes/OptionButton.xml msgid "" "Adds an item, with text [code]label[/code] and (optionally) [code]id[/code]. " "If no [code]id[/code] is passed, the item index will be used as the item's " "ID. New items are appended at the end." msgstr "" "添加一个项,带有文本[code]label[/code]和(可选的)[code]id[/code]。如果没有传入" "[code]id[/code],该项的索引将被用作其id。新项将被添加至末尾。" #: doc/classes/OptionButton.xml msgid "" "Adds a separator to the list of items. Separators help to group items. " "Separator also takes up an index and is appended at the end." msgstr "" "将分隔符添加到项目列表中。分隔符有助于对项目进行分组。分隔符也占用索引,并被" "附加在末尾。" #: doc/classes/OptionButton.xml msgid "Clears all the items in the [OptionButton]." msgstr "清除[OptionButton]中的所有项目。" #: doc/classes/OptionButton.xml msgid "Returns the amount of items in the OptionButton, including separators." msgstr "返回OptionButton中的项目数量,包括分隔符。" #: doc/classes/OptionButton.xml doc/classes/PopupMenu.xml msgid "Returns the icon of the item at index [code]idx[/code]." msgstr "返回索引[code]idx[/code]处项目的图标。" #: doc/classes/OptionButton.xml msgid "Returns the ID of the item at index [code]idx[/code]." msgstr "返回索引[code]idx[/code]处项目的ID。" #: doc/classes/OptionButton.xml msgid "Returns the index of the item with the given [code]id[/code]." msgstr "返回带有给定[code]id[/code]的项的索引。" #: doc/classes/OptionButton.xml msgid "" "Retrieves the metadata of an item. Metadata may be any type and can be used " "to store extra information about an item, such as an external string ID." msgstr "" "检索项的元数据。元数据可以是任何类型,并可用于存储关于项的额外信息,如外部字" "符串ID。" #: doc/classes/OptionButton.xml doc/classes/PopupMenu.xml msgid "Returns the text of the item at index [code]idx[/code]." msgstr "返回索引 [code]idx[/code] 处项目的文本。" #: doc/classes/OptionButton.xml msgid "Returns the tooltip of the item at index [code]idx[/code]." msgstr "返回索引 [code]idx[/code] 处项目的工具提示。" #: doc/classes/OptionButton.xml msgid "" "Returns the ID of the selected item, or [code]-1[/code] if no item is " "selected." msgstr "返回所选项目的 ID,如果没有选择项目,则返回 [code]-1[/code]。" #: doc/classes/OptionButton.xml msgid "" "Gets the metadata of the selected item. Metadata for items can be set using " "[method set_item_metadata]." msgstr "获取选定项的元数据。可以使用[method set_item_metadata]设置项的元数据。" #: doc/classes/OptionButton.xml msgid "" "Returns [code]true[/code] if the item at index [code]idx[/code] is disabled." msgstr "如果索引[code]idx[/code]项被禁用,返回 [code]true[/code]。" #: doc/classes/OptionButton.xml msgid "Removes the item at index [code]idx[/code]." msgstr "移除索引[code]idx[/code]处的项目。" #: doc/classes/OptionButton.xml msgid "" "Selects an item by index and makes it the current item. This will work even " "if the item is disabled.\n" "Passing [code]-1[/code] as the index deselects any currently selected item." msgstr "" "按索引选择项并使其为当前选中项。即使该项是禁用的,这也将起作用。\n" "将 [code]-1[/code] 作为索引传入会取消选中任何当前选中的项目。" #: doc/classes/OptionButton.xml msgid "" "Sets whether the item at index [code]idx[/code] is disabled.\n" "Disabled items are drawn differently in the dropdown and are not selectable " "by the user. If the current selected item is set as disabled, it will remain " "selected." msgstr "" "设置是否禁用索引[code]idx[/code]项。\n" "禁用的项目在下拉列表中绘制的方式不同,用户无法选择。如果当前选定的项目被设置" "为禁用,它将保持选中状态。" #: doc/classes/OptionButton.xml msgid "Sets the icon of the item at index [code]idx[/code]." msgstr "设置在索引 [code]idx[/code] 处项的图标。" #: doc/classes/OptionButton.xml msgid "Sets the ID of the item at index [code]idx[/code]." msgstr "设置在索引 [code]idx[/code] 处项的 ID。" #: doc/classes/OptionButton.xml msgid "" "Sets the metadata of an item. Metadata may be of any type and can be used to " "store extra information about an item, such as an external string ID." msgstr "" "设置项的元数据。元数据可以是任何类型,可以用来存储关于项目的额外信息,比如外" "部字符串ID。" #: doc/classes/OptionButton.xml doc/classes/PopupMenu.xml msgid "Sets the text of the item at index [code]idx[/code]." msgstr "设置在索引 [code]idx[/code] 处的项目的文本。" #: doc/classes/OptionButton.xml msgid "Sets the tooltip of the item at index [code]idx[/code]." msgstr "设置在索引 [code]idx[/code] 处的项目的工具提示。" #: doc/classes/OptionButton.xml msgid "" "The index of the currently selected item, or [code]-1[/code] if no item is " "selected." msgstr "当前选定项的索引,如果没有选定项,则为[code]-1[/code]。" #: doc/classes/OptionButton.xml msgid "" "Emitted when the user navigates to an item using the [code]ui_up[/code] or " "[code]ui_down[/code] actions. The index of the item selected is passed as " "argument." msgstr "" "当用户使用 [code]ui_up[/code] 或 [code]ui_down[/code] 操作导航到一个项目时发" "出。所选项目的索引作为参数传递。" #: doc/classes/OptionButton.xml msgid "" "Emitted when the current item has been changed by the user. The index of the " "item selected is passed as argument." msgstr "当用户更改当前项时触发。所选项目的索引作为参数传递。" #: doc/classes/OptionButton.xml msgid "Default text [Color] of the [OptionButton]." msgstr "[OptionButton]的默认文本[Color]。" #: doc/classes/OptionButton.xml msgid "Text [Color] used when the [OptionButton] is disabled." msgstr "当[OptionButton]被禁用时使用的文本[Color]。" #: doc/classes/OptionButton.xml msgid "" "Text [Color] used when the [OptionButton] is focused. Only replaces the " "normal text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "当[OptionButton]获得焦点时使用的文本[Color]。只替换按钮的正常文本颜色。禁用、" "悬停和按下状态优先于这个颜色。" #: doc/classes/OptionButton.xml msgid "Text [Color] used when the [OptionButton] is being hovered." msgstr "当鼠标悬停[OptionButton]时使用的文本[Color]。" #: doc/classes/OptionButton.xml msgid "Text [Color] used when the [OptionButton] is being pressed." msgstr "当[OptionButton]被按下时使用的文本[Color]。" #: doc/classes/OptionButton.xml msgid "" "The horizontal space between the arrow icon and the right edge of the button." msgstr "箭头图标和按钮的右边缘之间的水平空间。" #: doc/classes/OptionButton.xml msgid "The horizontal space between [OptionButton]'s icon and text." msgstr "[OptionButton]图标与文本之间的水平间距。" #: doc/classes/OptionButton.xml msgid "[Font] of the [OptionButton]'s text." msgstr "[OptionButton]的文本的[Font]。" #: doc/classes/OptionButton.xml msgid "The arrow icon to be drawn on the right end of the button." msgstr "要绘制在按钮右侧的箭头图标。" #: doc/classes/OptionButton.xml msgid "[StyleBox] used when the [OptionButton] is disabled." msgstr "当[OptionButton]被禁用时使用的[StyleBox]。" #: doc/classes/OptionButton.xml msgid "" "[StyleBox] used when the [OptionButton] is focused. It is displayed over the " "current [StyleBox], so using [StyleBoxEmpty] will just disable the focus " "visual effect." msgstr "" "当[OptionButton]被聚焦时使用的[StyleBox]。它显示在当前的[StyleBox]上,所以使" "用[StyleBoxEmpty]将只是禁用焦点的视觉效果。" #: doc/classes/OptionButton.xml msgid "[StyleBox] used when the [OptionButton] is being hovered." msgstr "当[OptionButton]被鼠标悬停时使用的[StyleBox]。" #: doc/classes/OptionButton.xml msgid "Default [StyleBox] for the [OptionButton]." msgstr "[OptionButton]的默认[StyleBox]。" #: doc/classes/OptionButton.xml msgid "[StyleBox] used when the [OptionButton] is being pressed." msgstr "当按下[OptionButton]时使用的[StyleBox]。" #: doc/classes/OS.xml msgid "Operating System functions." msgstr "操作系统功能。" #: doc/classes/OS.xml msgid "" "Operating System functions. OS wraps the most common functionality to " "communicate with the host operating system, such as the clipboard, video " "driver, date and time, timers, environment variables, execution of binaries, " "command line, etc." msgstr "" "操作系统的功能。OS 包装了与主机操作系统通信的最常见功能,如剪贴板、视频驱动程" "序、日期和时间、计时器、环境变量、二进制文件的执行、命令行等。" #: doc/classes/OS.xml msgid "" "Displays a modal dialog box using the host OS' facilities. Execution is " "blocked until the dialog is closed." msgstr "" "使用主机操作系统显示一个模式化的对话框。执行将被阻塞,直到该对话框被关闭。" #: doc/classes/OS.xml msgid "Returns [code]true[/code] if the host OS allows drawing." msgstr "如果主机操作系统允许绘制,则返回 [code]true[/code]。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the current host platform is using multiple " "threads." msgstr "如果当前主机平台使用多个线程,则返回 [code]true[/code]。" #: doc/classes/OS.xml msgid "Centers the window on the screen if in windowed mode." msgstr "如果处于窗口模式,则使窗口在屏幕上居中。" #: doc/classes/OS.xml msgid "" "Shuts down system MIDI driver.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "关闭系统MIDI驱动程序。\n" "[b]注意:[/b]该方法只在Linux, macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Crashes the engine (or the editor if called within a [code]tool[/code] " "script). This should [i]only[/i] be used for testing the system's crash " "handler, not for any other purpose. For general error reporting, use (in " "order of preference) [method @GDScript.assert], [method @GDScript." "push_error] or [method alert]. See also [method kill]." msgstr "" "让引擎崩溃(如果是在 [code]tool[/code] 脚本中调用则是编辑器崩溃)。此方法应该" "[i]仅[/i]用于测试系统的崩溃处理器,不应用于其他目的。通用的错误汇报请使用 " "[method @GDScript.assert]、[method @GDScript.push_error]、[method alert](按" "推荐顺序排列)。另请参阅 [method kill]。" #: doc/classes/OS.xml msgid "" "Delays execution of the current thread by [code]msec[/code] milliseconds. " "[code]msec[/code] must be greater than or equal to [code]0[/code]. " "Otherwise, [method delay_msec] will do nothing and will print an error " "message.\n" "[b]Note:[/b] [method delay_msec] is a [i]blocking[/i] way to delay code " "execution. To delay code execution in a non-blocking way, see [method " "SceneTree.create_timer]. Yielding with [method SceneTree.create_timer] will " "delay the execution of code placed below the [code]yield[/code] without " "affecting the rest of the project (or editor, for [EditorPlugin]s and " "[EditorScript]s).\n" "[b]Note:[/b] When [method delay_msec] is called on the main thread, it will " "freeze the project and will prevent it from redrawing and registering input " "until the delay has passed. When using [method delay_msec] as part of an " "[EditorPlugin] or [EditorScript], it will freeze the editor but won't freeze " "the project if it is currently running (since the project is an independent " "child process)." msgstr "" "将当前线程的执行延迟 [code]msec[/code] 毫秒。 [code]msec[/code] 必须大于或等" "于 [code]0[/code]。否则, [method delay_msec] 将不执行任何操作并打印错误消" "息。\n" "[b]注:[/b] [method delay_msec]是一种[i]阻塞[/i]延迟代码执行的方式。要以非阻" "塞方式延迟代码执行,请参阅 [method SceneTree.create_timer]。使用 [method " "SceneTree.create_timer] 生成将延迟位于 [code]yield[/code] 下方的代码的执行," "而不会影响项目的其余部分(或编辑器,例如 [EditorPlugin] 和 " "[EditorScript])。\n" "[b]注意:[/b]当在主线程上调用[method delay_msec]时,它会冻结项目并阻止它重新" "绘制和注册输入,直到延迟结束。当使用 [method delay_msec] 作为 [EditorPlugin] " "或 [EditorScript] 的一部分时,它会冻结编辑器但不会冻结当前正在运行的项目(因" "为项目是一个独立的子进程)。" #: doc/classes/OS.xml msgid "" "Delays execution of the current thread by [code]usec[/code] microseconds. " "[code]usec[/code] must be greater than or equal to [code]0[/code]. " "Otherwise, [method delay_usec] will do nothing and will print an error " "message.\n" "[b]Note:[/b] [method delay_usec] is a [i]blocking[/i] way to delay code " "execution. To delay code execution in a non-blocking way, see [method " "SceneTree.create_timer]. Yielding with [method SceneTree.create_timer] will " "delay the execution of code placed below the [code]yield[/code] without " "affecting the rest of the project (or editor, for [EditorPlugin]s and " "[EditorScript]s).\n" "[b]Note:[/b] When [method delay_usec] is called on the main thread, it will " "freeze the project and will prevent it from redrawing and registering input " "until the delay has passed. When using [method delay_usec] as part of an " "[EditorPlugin] or [EditorScript], it will freeze the editor but won't freeze " "the project if it is currently running (since the project is an independent " "child process)." msgstr "" "将当前线程的执行延迟 [code]usec[/code] 微秒。 [code]usec[/code] 必须大于或等" "于 [code]0[/code]。否则, [method delay_usec] 将什么也不做,并会打印错误消" "息。\n" "[b]注:[/b] [method delay_usec]是一种[i]阻塞[/i]延迟代码执行的方式。要以非阻" "塞方式延迟代码执行,请参阅 [method SceneTree.create_timer]。使用 [method " "SceneTree.create_timer] 生成将延迟位于 [code]yield[/code] 下方的代码的执行," "而不会影响项目的其余部分(或编辑器,例如 [EditorPlugin] 和 " "[EditorScript])。\n" "[b]注意:[/b]当在主线程上调用[method delay_usec]时,它会冻结项目并阻止它重绘" "和注册输入,直到延迟结束。当使用 [method delay_usec] 作为 [EditorPlugin] 或 " "[EditorScript] 的一部分时,它会冻结编辑器但不会冻结当前正在运行的项目(因为项" "目是一个独立的子进程)。" #: doc/classes/OS.xml msgid "" "Dumps the memory allocation ringlist to a file (only works in debug).\n" "Entry format per line: \"Address - Size - Description\"." msgstr "" "将内存分配ringlist转储到一个文件(仅在调试中工作)。\n" "每行输入格式:“地址-大小-描述”。" #: doc/classes/OS.xml msgid "" "Dumps all used resources to file (only works in debug).\n" "Entry format per line: \"Resource Type : Resource Location\".\n" "At the end of the file is a statistic of all used Resource Types." msgstr "" "将所有使用的资源转储到文件中(仅在调试中有效)。\n" "每行输入格式:“资源类型:资源位置”。\n" "在文件的末尾是所有已使用资源类型的统计数据。" #: doc/classes/OS.xml msgid "" "Execute the file at the given path with the arguments passed as an array of " "strings. Platform path resolution will take place. The resolved file must " "exist and be executable.\n" "The arguments are used in the given order and separated by a space, so " "[code]OS.execute(\"ping\", [\"-w\", \"3\", \"godotengine.org\"], false)[/" "code] will resolve to [code]ping -w 3 godotengine.org[/code] in the system's " "shell.\n" "This method has slightly different behavior based on whether the " "[code]blocking[/code] mode is enabled.\n" "If [code]blocking[/code] is [code]true[/code], the Godot thread will pause " "its execution while waiting for the process to terminate. The shell output " "of the process will be written to the [code]output[/code] array as a single " "string. When the process terminates, the Godot thread will resume " "execution.\n" "If [code]blocking[/code] is [code]false[/code], the Godot thread will " "continue while the new process runs. It is not possible to retrieve the " "shell output in non-blocking mode, so [code]output[/code] will be empty.\n" "On Windows, if [code]open_console[/code] is [code]true[/code] and process is " "console app, new terminal window will be opened, it's ignored on other " "platforms.\n" "The return value also depends on the blocking mode. When blocking, the " "method will return an exit code of the process. When non-blocking, the " "method returns a process ID, which you can use to monitor the process (and " "potentially terminate it with [method kill]). If the process forking (non-" "blocking) or opening (blocking) fails, the method will return [code]-1[/" "code] or another exit code.\n" "Example of blocking mode and retrieving the shell output:\n" "[codeblock]\n" "var output = []\n" "var exit_code = OS.execute(\"ls\", [\"-l\", \"/tmp\"], true, output)\n" "[/codeblock]\n" "Example of non-blocking mode, running another instance of the project and " "storing its process ID:\n" "[codeblock]\n" "var pid = OS.execute(OS.get_executable_path(), [], false)\n" "[/codeblock]\n" "If you wish to access a shell built-in or perform a composite command, a " "platform-specific shell can be invoked. For example:\n" "[codeblock]\n" "OS.execute(\"CMD.exe\", [\"/C\", \"cd %TEMP% && dir\"], true, output)\n" "[/codeblock]\n" "[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and " "Windows.\n" "[b]Note:[/b] To execute a Windows command interpreter built-in command, " "specify [code]cmd.exe[/code] in [code]path[/code], [code]/c[/code] as the " "first argument, and the desired command as the second argument.\n" "[b]Note:[/b] To execute a PowerShell built-in command, specify " "[code]powershell.exe[/code] in [code]path[/code], [code]-Command[/code] as " "the first argument, and the desired command as the second argument.\n" "[b]Note:[/b] To execute a Unix shell built-in command, specify shell " "executable name in [code]path[/code], [code]-c[/code] as the first argument, " "and the desired command as the second argument." msgstr "" "在给定的路径上执行文件,参数以字符串数组的形式传递。将进行平台路径解析。被解" "析的文件必须存在并且是可执行的。\n" "参数按照给定的顺序使用,并用空格隔开,所以 [code]OS.execute(\"ping\", [\"-" "w\", \"3\", \"godotengine.org\"], false)[/code] 将在系统的 shell 中解析为 " "[code]ping -w 3 godotengine.org[/code]。\n" "这个方法根据是否启用 [code]blocking[/code] 模式,有稍微不同的行为。\n" "如果 [code]blocking[/code] 为 [code]true[/code],Godot 线程将暂停执行,等待进" "程的终止。进程的 shell 输出将作为一个字符串写入 [code]output[/code] 数组。当" "进程终止时,Godot 线程将恢复执行。\n" "如果 [code]blocking[/code] 为 [code]false[/code],Godot 线程将在新进程运行时" "继续。在非阻塞模式下不可能检索 shell 的输出,所以 [code]output[/code] 将是空" "的。\n" "在 Windows 上,如果 [code]open_console[/code] 为 [code]true[/code] 并且进程为" "命令行应用,则会打开新的终端窗口,在其他平台上会被忽略。\n" "返回值也取决于阻塞模式。当阻塞时,该方法将返回一个进程的退出代码。当非阻塞" "时,该方法返回一个进程ID,你可以用它来监视该进程(并有可能用[method kill]来终" "止它)。如果进程分叉(非阻塞)或打开(阻塞)失败,该方法将返回 [code]-1[/" "code] 或其他退出代码。\n" "阻塞模式和检索 shell 输出的例子:\n" "[codeblock]\n" "var output = []\n" "var exit_code = OS.execute(\"ls\", [\"-l\", \"/tmp\"], true, output)\n" "[/codeblock]\n" "非阻塞模式实例,运行该项目的另一实例并保存其进程 ID:\n" "[codeblock]\n" "var pid = OS.execute(OS.get_executable_path(), [], false)\n" "[/codeblock]\n" "如果你希望访问 shell 内置函数或执行复合命令,可以调用平台特定的 shell。例" "如:\n" "[codeblock]\n" "OS.execute(\"CMD.exe\", [\"/C\", \"cd %TEMP% && dir\"], true, output)\n" "[/codeblock]\n" "[b]注意:[/b]此方法仅在 Android、iOS、Linux、macOS 和 Windows 上实现。\n" "[b]注意:[/b]如果要执行 Windows 命令解释器的内置命令,请将 [code]path[/code] " "指定为 [code]cmd.exe[/code],将第一个参数设为 [code]/c[/code],第二个参数设为" "想要的命令。\n" "[b]注意:[/b]如果要执行 PowerShell 的内置命令,请将 [code]path[/code] 指定为 " "[code]powershell.exe[/code],将第一个参数设为 [code]-Command[/code],第二个参" "数设为想要的命令。\n" "[b]注意:[/b]如果要执行 Unix Shell 的内置命令,请将 [code]path[/code] 指定为 " "Shell 可执行文件的名称,将第一个参数设为 [code]-c[/code],第二个参数设为想要" "的命令。" #: doc/classes/OS.xml msgid "Returns the scancode of the given string (e.g. \"Escape\")." msgstr "返回给定字符串的扫描码(例如“Escape”)。" #: doc/classes/OS.xml msgid "Returns the total number of available audio drivers." msgstr "返回可用音频驱动程序的总数。" #: doc/classes/OS.xml msgid "Returns the audio driver name for the given index." msgstr "返回给定索引的音频驱动程序名称。" #: doc/classes/OS.xml msgid "" "Returns the [i]global[/i] cache data directory according to the operating " "system's standards. On desktop platforms, this path can be overridden by " "setting the [code]XDG_CACHE_HOME[/code] environment variable before starting " "the project. See [url=$DOCS_URL/tutorials/io/data_paths.html]File paths in " "Godot projects[/url] in the documentation for more information. See also " "[method get_config_dir] and [method get_data_dir].\n" "Not to be confused with [method get_user_data_dir], which returns the " "[i]project-specific[/i] user data path." msgstr "" "根据操作系统的标准返回[i]全局[/i]缓存数据目录。在桌面平台上,可以通过在启动项" "目之前设置 [code]XDG_CACHE_HOME[/code] 环境变量来覆盖此路径。有关更多信息,请" "参阅文档中的 [url=$DOCS_URL/tutorials/io/data_paths.html]《Godot 项目中的文件" "路径》[/url]。另请参阅 [method get_config_dir] 和 [method get_data_dir]。\n" "不要与 [method get_user_data_dir] 混淆,后者返回[i]项目特定的[/i]用户数据路" "径。" #: doc/classes/OS.xml msgid "" "Returns the command-line arguments passed to the engine.\n" "Command-line arguments can be written in any form, including both [code]--" "key value[/code] and [code]--key=value[/code] forms so they can be properly " "parsed, as long as custom command-line arguments do not conflict with engine " "arguments.\n" "You can also incorporate environment variables using the [method " "get_environment] method.\n" "You can set [member ProjectSettings.editor/main_run_args] to define command-" "line arguments to be passed by the editor when running the project.\n" "Here's a minimal example on how to parse command-line arguments into a " "dictionary using the [code]--key=value[/code] form for arguments:\n" "[codeblock]\n" "var arguments = {}\n" "for argument in OS.get_cmdline_args():\n" " if argument.find(\"=\") > -1:\n" " var key_value = argument.split(\"=\")\n" " arguments[key_value[0].lstrip(\"--\")] = key_value[1]\n" "[/codeblock]" msgstr "" "返回传递给引擎的命令行参数。\n" "命令行参数可以以任何形式写入,包括[code]--key value[/code]和[code]--" "key=value[/code]两种形式,均可以正确解析,只要自定义的命令行参数不与引擎参数" "冲突。\n" "你也可以使用[method get_environment]方法包含环境变量。\n" "你可以设置[member ProjectSettings.editor/main_run_args]来定义命令行参数,以便" "在运行项目时由编辑器传递。\n" "下面是一个小的例子,说明如何使用参数的[code]--key=value[/code]形式将命令行参" "数解析成一个字典。\n" "[codeblock]\n" "var arguments = {}\n" "for argument in OS.get_cmdline_args():\n" " if argument.find(\"=\") > -1:\n" " var key_value = argument.split(\"=\")\n" " arguments[key_value[0].lstrip(\"--\")] = key_value[1]\n" "[/codeblock]" #: doc/classes/OS.xml msgid "" "Returns the [i]global[/i] user configuration directory according to the " "operating system's standards. On desktop platforms, this path can be " "overridden by setting the [code]XDG_CONFIG_HOME[/code] environment variable " "before starting the project. See [url=$DOCS_URL/tutorials/io/data_paths." "html]File paths in Godot projects[/url] in the documentation for more " "information. See also [method get_cache_dir] and [method get_data_dir].\n" "Not to be confused with [method get_user_data_dir], which returns the " "[i]project-specific[/i] user data path." msgstr "" "根据操作系统的标准,返回[i]全局[/i]用户配置目录。在桌面平台上,这个路径可以在" "启动项目前通过设置[code]XDG_CONFIG_HOME[/code]环境变量来覆盖。更多信息请参见" "文档中[url=$DOCS_URL/tutorials/io/data_paths.html]《Godot 项目中的文件路径》" "[/url]。另请参阅 [method get_cache_dir] 和 [method get_data_dir]。\n" "不要与[method get_user_data_dir]混淆,后者返回[i]项目专用[/i]用户数据路径。" #: doc/classes/OS.xml msgid "" "Returns an array of MIDI device names.\n" "The returned array will be empty if the system MIDI driver has not " "previously been initialised with [method open_midi_inputs].\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回MIDI设备名称数组。\n" "如果系统MIDI驱动程序之前没有使用[method open_midi_inputs]初始化,返回的数组将" "是空的。\n" "[b]注意:[/b]该方法仅在Linux, macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Returns the currently used video driver, using one of the values from [enum " "VideoDriver]." msgstr "返回当前使用的视频驱动程序,使用[enum VideoDriver]中的一个值。" #: doc/classes/OS.xml msgid "" "Returns the [i]global[/i] user data directory according to the operating " "system's standards. On desktop platforms, this path can be overridden by " "setting the [code]XDG_DATA_HOME[/code] environment variable before starting " "the project. See [url=$DOCS_URL/tutorials/io/data_paths.html]File paths in " "Godot projects[/url] in the documentation for more information. See also " "[method get_cache_dir] and [method get_config_dir].\n" "Not to be confused with [method get_user_data_dir], which returns the " "[i]project-specific[/i] user data path." msgstr "" "根据操作系统的标准,返回[i]全局[/i]用户数据目录。在桌面平台上,这个路径可以在" "启动项目前通过设置[code]XDG_DATA_HOME[/code]环境变量来覆盖。更多信息请参见文" "档中[url=$DOCS_URL/tutorials/io/data_paths.html]《Godot 项目中的文件路径》[/" "url]。另请参阅 [method get_cache_dir] 和 [method get_config_dir]。\n" "不要与 [method get_user_data_dir] 混淆,后者返回[i]项目专用[/i]用户数据路径。" #: doc/classes/OS.xml msgid "" "Deprecated, use [method Time.get_date_dict_from_system] instead.\n" "Returns current date as a dictionary of keys: [code]year[/code], " "[code]month[/code], [code]day[/code], [code]weekday[/code], [code]dst[/code] " "(Daylight Savings Time)." msgstr "" "已启用,请换用 [method Time.get_date_dict_from_system]。\n" "返回当前日期作为键的字典:[code]year[/code]、 [code]month[/code]、[code]day[/" "code]、[code]weekday[/code]、[code]dst[/code](夏令时)。" #: doc/classes/OS.xml msgid "" "Deprecated, use [method Time.get_datetime_dict_from_system] instead.\n" "Returns current datetime as a dictionary of keys: [code]year[/code], " "[code]month[/code], [code]day[/code], [code]weekday[/code], [code]dst[/code] " "(Daylight Savings Time), [code]hour[/code], [code]minute[/code], " "[code]second[/code]." msgstr "" "已弃用,请换用 [method Time.get_datetime_dict_from_system]。\n" "返回当前日期时间作为键的字典:[code]year[/code]、[code]month[/code]、" "[code]day[/code]、[code]weekday[/code]、[code]dst[/code](夏令时)、" "[code]hour[/code]、[code]minute[/code]、[code]second[/code]。" #: doc/classes/OS.xml msgid "" "Deprecated, use [method Time.get_datetime_dict_from_unix_time] instead.\n" "Gets a dictionary of time values corresponding to the given UNIX epoch time " "(in seconds).\n" "The returned Dictionary's values will be the same as [method get_datetime], " "with the exception of Daylight Savings Time as it cannot be determined from " "the epoch." msgstr "" "已废弃,请换用 [method Time.get_datetime_dict_from_unix_time]。\n" "根据给定的 UNIX 纪元时间(单位为秒)获取对应的时间值字典。\n" "返回的 Dictionary 的值与 [method get_datetime] 相同,区别是无法根据纪元推定夏" "令时。" #: doc/classes/OS.xml msgid "" "Returns an [Array] of [Rect2], each of which is the bounding rectangle for a " "display cutout or notch. These are non-functional areas on edge-to-edge " "screens used by cameras and sensors. Returns an empty array if the device " "does not have cutouts. See also [method get_window_safe_area].\n" "[b]Note:[/b] Currently only implemented on Android. Other platforms will " "return an empty array even if they do have display cutouts or notches." msgstr "" "[Rect2] 的 [Array] 数组,元素是显示器裁切或刘海的包围矩形。它们是全面屏上被相" "机和传感器所占用的非功能性区域。如果该设备没有裁切则返回空数组。另请参阅 " "[method get_window_safe_area]。\n" "[b]注意:[/b]目前仅在 Android 上实现。其他平台即便存在显示器裁切或刘海,也会" "返回空数组。" #: doc/classes/OS.xml msgid "Returns the total amount of dynamic memory used (only works in debug)." msgstr "返回使用的动态内存总量(仅适用于调试)。" #: doc/classes/OS.xml msgid "" "Returns the value of an environment variable. Returns an empty string if the " "environment variable doesn't exist.\n" "[b]Note:[/b] Double-check the casing of [code]variable[/code]. Environment " "variable names are case-sensitive on all platforms except Windows." msgstr "" "返回环境变量的值。如果环境变量不存在,则返回一个空字符串。\n" "[b]注意:[/b]仔细检查 [code]variable[/code] 的大小写。环境变量名称在除 " "Windows 之外的所有平台上都区分大小写。" #: doc/classes/OS.xml msgid "Returns the path to the current engine executable." msgstr "返回当前引擎可执行文件的路径。" #: doc/classes/OS.xml msgid "" "With this function, you can get the list of dangerous permissions that have " "been granted to the Android application.\n" "[b]Note:[/b] This method is implemented on Android." msgstr "" "通过这个函数,你可以获得已经授予Android应用程序的危险权限列表。\n" "[b]注意:[/b]这个方法在Android上实现。" #: doc/classes/OS.xml msgid "" "Returns the IME cursor position (the currently-edited portion of the string) " "relative to the characters in the composition string.\n" "[constant MainLoop.NOTIFICATION_OS_IME_UPDATE] is sent to the application to " "notify it of changes to the IME cursor position.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "返回相对于组合字符串中的字符的 IME 光标位置(字符串的当前编辑部分)。\n" "[constant MainLoop.NOTIFICATION_OS_IME_UPDATE] 被发送到应用程序以通知它 IME " "光标位置的变化。\n" "[b]注:[/b]此方法在macOS上实现。" #: doc/classes/OS.xml msgid "" "Returns the IME intermediate composition string.\n" "[constant MainLoop.NOTIFICATION_OS_IME_UPDATE] is sent to the application to " "notify it of changes to the IME composition string.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "返回 IME 中间组合字符串。\n" "[constant MainLoop.NOTIFICATION_OS_IME_UPDATE] 被发送到应用程序以通知它对 " "IME 组合字符串的更改。\n" "[b]注:[/b]此方法在macOS上实现。" #: doc/classes/OS.xml msgid "" "Returns the current latin keyboard variant as a String.\n" "Possible return values are: [code]\"QWERTY\"[/code], [code]\"AZERTY\"[/" "code], [code]\"QZERTY\"[/code], [code]\"DVORAK\"[/code], [code]\"NEO\"[/" "code], [code]\"COLEMAK\"[/code] or [code]\"ERROR\"[/code].\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows. Returns " "[code]\"QWERTY\"[/code] on unsupported platforms." msgstr "" "将当前拉丁键盘变体作为字符串返回。\n" "可能的返回值是: [code]\"QWERTY\"[/code], [code]\"AZERTY\"[/code], " "[code]\"QZERTY\"[/code],[code]\"DVORAK\"[/code],[code]\"NEO\"[/code]," "[code]\"COLEMAK\"[/code]或[code]\"错误ERROR\"[/code]。\n" "[b]注意:[/b]此方法在 Linux、macOS 和 Windows 上实现。在不受支持的平台上返回 " "[code]\"QWERTY\"[/code] 。" #: doc/classes/OS.xml msgid "" "Returns the host OS locale as a string of the form " "[code]language_Script_COUNTRY_VARIANT@extra[/code]. If you want only the " "language code and not the fully specified locale from the OS, you can use " "[method get_locale_language].\n" "[code]language[/code] - 2 or 3-letter [url=https://en.wikipedia.org/wiki/" "List_of_ISO_639-1_codes]language code[/url], in lower case.\n" "[code]Script[/code] - optional, 4-letter [url=https://en.wikipedia.org/wiki/" "ISO_15924]script code[/url], in title case.\n" "[code]COUNTRY[/code] - optional, 2 or 3-letter [url=https://en.wikipedia.org/" "wiki/ISO_3166-1]country code[/url], in upper case.\n" "[code]VARIANT[/code] - optional, language variant, region and sort order. " "Variant can have any number of underscored keywords.\n" "[code]extra[/code] - optional, semicolon separated list of additional key " "words. Currency, calendar, sort order and numbering system information." msgstr "" "将主机操作系统区域设置为 [code]language_Script_COUNTRY_VARIANT@extra[/code] " "形式的字符串。如果您只想要语言代码而不是操作系统中完全指定的语言环境,您可以" "使用 [method get_locale_language]。\n" "[code]language[/code] - 2 个或 3 个字母的[url=https://en.wikipedia.org/wiki/" "List_of_ISO_639-1_codes]语言代码[/url],小写。\n" "[code]Script[/code] - 可选,4 个字母的[url=https://en.wikipedia.org/wiki/" "ISO_15924]文字代码 [/url],首字母大写。\n" "[code]COUNTRY[/code] - 可选,2 个或 3 个字母 [url=https://en.wikipedia.org/" "wiki/ISO_3166-1]国家地区代码[/url],大写。\n" "[code]VARIANT[/code] - 可选,语言变体,地区和排序顺序。 变体可以有任意数量的" "带下划线的关键字。\n" "[code]extra[/code] - 可选,分号分隔的附加关键字列表。货币、日历、排序顺序和编" "号系统信息。" #: doc/classes/OS.xml msgid "" "Returns the host OS locale's 2 or 3-letter [url=https://en.wikipedia.org/" "wiki/List_of_ISO_639-1_codes]language code[/url] as a string which should be " "consistent on all platforms. This is equivalent to extracting the " "[code]language[/code] part of the [method get_locale] string.\n" "This can be used to narrow down fully specified locale strings to only the " "\"common\" language code, when you don't need the additional information " "about country code or variants. For example, for a French Canadian user with " "[code]fr_CA[/code] locale, this would return [code]fr[/code]." msgstr "" "将主机操作系统区域设置的 2 或 3 个字母 [url=https://en.wikipedia.org/wiki/" "List_of_ISO_639-1_codes]语言代码[/url] 作为字符串返回,该字符串应在所有平台上" "保持一致。这相当于提取 [method get_locale] 字符串的 [code]language[/code] 部" "分。\n" "当您不需要有关国家/地区代码或变体的附加信息时,这可用于将完全指定的区域设置字" "符串缩小为“通用”语言代码。例如,对于使用 [code]fr_CA[/code] 语言环境的加拿大" "法语用户,这将返回 [code]fr[/code]。" #: doc/classes/OS.xml msgid "" "Returns the ID of the main thread. See [method get_thread_caller_id].\n" "[b]Note:[/b] Thread IDs are not deterministic and may be reused across " "application restarts." msgstr "" "返回主线程的 ID。请参阅 [method get_thread_caller_id]。\n" "[b]注意:[/b]线程 ID 不是确定的,也许会在应用程序重新启动时被重复使用。" #: doc/classes/OS.xml msgid "" "Returns the model name of the current device.\n" "[b]Note:[/b] This method is implemented on Android and iOS. Returns " "[code]\"GenericDevice\"[/code] on unsupported platforms." msgstr "" "返回当前设备的模型名称。\n" "[b]注意:[/b]此方法仅在Android和iOS上实现。在不支持的平台上返回 " "[code]\"GenericDevice\"[/code]。" #: doc/classes/OS.xml msgid "" "Returns the name of the host OS. Possible values are: [code]\"Android\"[/" "code], [code]\"iOS\"[/code], [code]\"HTML5\"[/code], [code]\"OSX\"[/code], " "[code]\"Server\"[/code], [code]\"Windows\"[/code], [code]\"UWP\"[/code], " "[code]\"X11\"[/code]." msgstr "" "返回主机操作系统的名称。可能的值有: [code]\"Android\"[/code], " "[code]\"iOS\"[/code], [code]\"HTML5\"[/code], [code]\"OSX\"[/code], " "[code]\"Server\"[/code], [code]\"Windows\"[/code], [code]\"UWP\"[/code], " "[code]\"X11\"[/code]." #: doc/classes/OS.xml msgid "" "Returns internal structure pointers for use in GDNative plugins.\n" "[b]Note:[/b] This method is implemented on Linux and Windows (other OSs will " "soon be supported)." msgstr "" "返回内部结构指针,以便在GDNative插件中使用。\n" "[b]注意:[/b]此方法在Linux和Windows上实现(其他操作系统将很快被支持)。" #: doc/classes/OS.xml msgid "" "Returns the amount of battery left in the device as a percentage. Returns " "[code]-1[/code] if power state is unknown.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "以百分比形式返回设备中剩余的电池电量。如果电源状态未知,则返回 [code]-1[/" "code]。\n" "[b]注意:[/b]该方法在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Returns an estimate of the time left in seconds before the device runs out " "of battery. Returns [code]-1[/code] if power state is unknown.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回设备耗尽电池前几秒钟内剩余时间的估计值。如果电源状态未知,则返回 " "[code]-1[/code]。\n" "[b]注意:[/b]此方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Returns the current state of the device regarding battery and power. See " "[enum PowerState] constants.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回设备关于电池和电源的当前状态。请参阅 [enum PowerState] 常量。\n" "[b]注意:[/b]该方法在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Returns the project's process ID.\n" "[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and " "Windows." msgstr "" "返回项目的进程 ID。\n" "[b]注意:[/b]此方法在Android、iOS、Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Returns the number of [i]logical[/i] CPU cores available on the host " "machine. On CPUs with HyperThreading enabled, this number will be greater " "than the number of [i]physical[/i] CPU cores." msgstr "" "返回主机的[i]逻辑[/i] CPU 核心数。对于启用了超线程的 CPU,这个数会比[i]物理[/" "i] CPU 核心数大。" #: doc/classes/OS.xml msgid "" "Returns the name of the CPU model on the host machine (e.g. \"Intel(R) " "Core(TM) i7-6700K CPU @ 4.00GHz\").\n" "[b]Note:[/b] This method is only implemented on Windows, macOS, Linux and " "iOS. On Android, HTML5 and UWP, [method get_processor_name] returns an empty " "string." msgstr "" "返回主机的 CPU 型号名称(例如“Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz”)。\n" "[b]注意:[/b]这个方法仅在 Windows、macOS、Linux 和 iOS 上实现。在 Android、" "HTML5 和 UWP 上,[method get_processor_name] 返回的是空字符串。" #: doc/classes/OS.xml msgid "Returns the window size including decorations like window borders." msgstr "返回窗口大小,包括窗口边框等装饰。" #: doc/classes/OS.xml msgid "" "Returns the given scancode as a string (e.g. Return values: " "[code]\"Escape\"[/code], [code]\"Shift+Escape\"[/code]).\n" "See also [member InputEventKey.scancode] and [method InputEventKey." "get_scancode_with_modifiers]." msgstr "" "将给定的扫描码作为字符串返回(例如返回值:[code]\"Escape\"[/code]、" "[code]\"Shift+Escape\"[/code])。\n" "另请参阅 [member InputEventKey.scancode] 和 [method InputEventKey." "get_scancode_with_modifiers] 。" #: doc/classes/OS.xml msgid "Returns the number of displays attached to the host machine." msgstr "返回连接到主机的显示器数量。" #: doc/classes/OS.xml msgid "" "Returns the dots per inch density of the specified screen. If [code]screen[/" "code] is [code]-1[/code] (the default value), the current screen will be " "used.\n" "[b]Note:[/b] On macOS, returned value is inaccurate if fractional display " "scaling mode is used.\n" "[b]Note:[/b] On Android devices, the actual screen densities are grouped " "into six generalized densities:\n" "[codeblock]\n" " ldpi - 120 dpi\n" " mdpi - 160 dpi\n" " hdpi - 240 dpi\n" " xhdpi - 320 dpi\n" " xxhdpi - 480 dpi\n" "xxxhdpi - 640 dpi\n" "[/codeblock]\n" "[b]Note:[/b] This method is implemented on Android, Linux, macOS and " "Windows. Returns [code]72[/code] on unsupported platforms." msgstr "" "返回指定屏幕的每英寸点数密度。如果 [code]screen[/code] 为 [code]-1[/code](默" "认值),将使用当前屏幕。\n" "[b]注意:[/b]在 macOS 上,如果使用小数显示缩放模式,则返回值不准确。\n" "[b]注意:[/b]在 Android 设备上,实际屏幕密度被归为六种广义密度:\n" "[codeblock]\n" " ldpi - 120 dpi\n" " mdpi - 160 dpi\n" " hdpi - 240 dpi\n" " xhdpi - 320 dpi\n" " xxhdpi - 480 dpi\n" "xxxhdpi - 640 dpi\n" "[/codeblock]\n" "[b]注意:[/b]此方法在 Android、Linux、macOS 和 Windows 上实现。在不受支持的平" "台上返回 [code]72[/code]。" #: doc/classes/OS.xml msgid "" "Return the greatest scale factor of all screens.\n" "[b]Note:[/b] On macOS returned value is [code]2.0[/code] if there is at " "least one hiDPI (Retina) screen in the system, and [code]1.0[/code] in all " "other cases.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "返回最大的屏幕的缩放。\n" "[b]注:[/b] 在macOS上,如果系统中至少有一个hiDPI(Retina)屏幕,则返回值为" "[code]2.0[/code],其他情况为[code]1.0[/code]。\n" "[b]注意:[/b]此方法仅在macOS上实现。" #: doc/classes/OS.xml msgid "" "Returns the position of the specified screen by index. If [code]screen[/" "code] is [code]-1[/code] (the default value), the current screen will be " "used." msgstr "" "返回索引所指定屏幕的位置。如果 [code]screen[/code] 为 [code]-1[/code](默认" "值),将使用当前屏幕。" #: doc/classes/OS.xml msgid "" "Returns the current refresh rate of the specified screen. If [code]screen[/" "code] is [code]-1[/code] (the default value), the current screen will be " "used.\n" "[b]Note:[/b] Returns [code]-1.0[/code] if Godot fails to find the refresh " "rate for the specified screen. On HTML5, [method get_screen_refresh_rate] " "will always return [code]-1.0[/code] as there is no way to retrieve the " "refresh rate on that platform.\n" "To fallback to a default refresh rate if the method fails, try:\n" "[codeblock]\n" "var refresh_rate = OS.get_screen_refresh_rate()\n" "if refresh_rate < 0:\n" " refresh_rate = 60.0\n" "[/codeblock]" msgstr "" "返回指定屏幕的当前刷新率。如果 [code]screen[/code] 为 [code]-1[/code](默认" "值),则会使用当前屏幕。\n" "[b]注意:[/b]如果 Godot 无法获取给定屏幕的刷新率,则会返回 [code]-1.0[/" "code]。在 HTML5 上,[method get_screen_refresh_rate] 总是返回 [code]-1.0[/" "code],因为在该平台上无法获取刷新率。\n" "要在该方法失败时回退至默认刷新率,请尝试:\n" "[codeblock]\n" "var refresh_rate = OS.get_screen_refresh_rate()\n" "if refresh_rate < 0:\n" " refresh_rate = 60.0\n" "[/codeblock]" #: doc/classes/OS.xml msgid "" "Return the scale factor of the specified screen by index. If [code]screen[/" "code] is [code]-1[/code] (the default value), the current screen will be " "used.\n" "[b]Note:[/b] On macOS returned value is [code]2.0[/code] for hiDPI (Retina) " "screen, and [code]1.0[/code] for all other cases.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "返回索引所指定屏幕的缩放系数。如果 [code]screen[/code] 是 [code]-1[/code](默" "认值),将使用当前屏幕。\n" "[b]注意:[/b]在 macOS 上,对于 hiDPI(Retina)屏幕,返回值是 [code]2.0[/" "code],对于所有其他情况,返回值是 [code]1.0[/code]。\n" "[b]注意:[/b]此方法在 macOS 上实现。" #: doc/classes/OS.xml msgid "" "Returns the dimensions in pixels of the specified screen. If [code]screen[/" "code] is [code]-1[/code] (the default value), the current screen will be " "used." msgstr "" "返回指定屏幕的尺寸,单位为像素。如果 [code]screen[/code] 是 [code]-1[/code]" "(默认值),将使用当前屏幕。" #: doc/classes/OS.xml msgid "" "Returns the amount of time in milliseconds it took for the boot logo to " "appear." msgstr "返回启动徽标出现所花费的时间,单位为毫秒。" #: doc/classes/OS.xml msgid "Returns the maximum amount of static memory used (only works in debug)." msgstr "返回使用的静态内存的最大数量(仅在调试时有效)。" #: doc/classes/OS.xml msgid "" "Returns the amount of static memory being used by the program in bytes (only " "works in debug)." msgstr "返回程序所使用的静态内存量,以字节为单位(仅在调试时有效)。" #: doc/classes/OS.xml msgid "" "Returns the actual path to commonly used folders across different platforms. " "Available locations are specified in [enum SystemDir].\n" "[b]Note:[/b] This method is implemented on Android, Linux, macOS and " "Windows.\n" "[b]Note:[/b] Shared storage is implemented on Android and allows to " "differentiate between app specific and shared directories. Shared " "directories have additional restrictions on Android." msgstr "" "返回不同平台上常用文件夹的实际路径。可用的位置在 [enum SystemDir] 中指定。\n" "[b]注意:[/b]这个方法在 Android、Linux、macOS 和 Windows 上实现。\n" "[b]注意:[/b]共享存储在 Android 上实现,并允许区分应用程序特定目录和共享目" "录。共享目录在 Android 上有额外的限制。" #: doc/classes/OS.xml msgid "Returns the epoch time of the operating system in milliseconds." msgstr "以毫秒为单位返回操作系统的纪元时间。" #: doc/classes/OS.xml msgid "Returns the epoch time of the operating system in seconds." msgstr "以秒为单位返回操作系统的纪元时间。" #: doc/classes/OS.xml msgid "" "Returns the total number of available tablet drivers.\n" "[b]Note:[/b] This method is implemented on Windows." msgstr "" "返回可用的数位板驱动程序的总数。\n" "[b]注意:[/b]该方法在 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Returns the tablet driver name for the given index.\n" "[b]Note:[/b] This method is implemented on Windows." msgstr "" "返回给定索引的数位板驱动程序名称。\n" "[b]注意:[/b]该方法在 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Returns the ID of the current thread. This can be used in logs to ease " "debugging of multi-threaded applications.\n" "[b]Note:[/b] Thread IDs are not deterministic and may be reused across " "application restarts." msgstr "" "返回当前线程的 ID。这可用于日志,以简化多线程应用程序的调试。\n" "[b]注:[/b] 线程 ID 不是确定的,也许会在应用程序重新启动时被重复使用。" #: doc/classes/OS.xml msgid "" "Deprecated, use [method Time.get_ticks_msec] instead.\n" "Returns the amount of time passed in milliseconds since the engine started." msgstr "" "已弃用,请换用 [method Time.get_ticks_msec]。\n" "返回引擎启动后经过的时间(以毫秒为单位)。" #: doc/classes/OS.xml msgid "" "Deprecated, use [method Time.get_ticks_usec] instead.\n" "Returns the amount of time passed in microseconds since the engine started." msgstr "" "已弃用,请换用 [method Time.get_ticks_usec]。\n" "返回引擎启动后经过的时间(以微秒为单位)。" #: doc/classes/OS.xml msgid "" "Deprecated, use [method Time.get_time_dict_from_system] instead.\n" "Returns current time as a dictionary of keys: hour, minute, second." msgstr "" "已弃用,请换用 [method Time.get_time_dict_from_system]。\n" "以字典形式返回当前的时间,所包含的键:hour、minute、second。" #: doc/classes/OS.xml msgid "" "Returns the current time zone as a dictionary with the keys: bias and name." msgstr "以字典形式返回当前时区,键为:bias和name。" #: doc/classes/OS.xml msgid "" "Returns a string that is unique to the device.\n" "[b]Note:[/b] This string may change without notice if the user reinstalls/" "upgrades their operating system or changes their hardware. This means it " "should generally not be used to encrypt persistent data as the data saved " "before an unexpected ID change would become inaccessible. The returned " "string may also be falsified using external programs, so do not rely on the " "string returned by [method get_unique_id] for security purposes.\n" "[b]Note:[/b] Returns an empty string on HTML5 and UWP, as this method isn't " "implemented on those platforms yet." msgstr "" "返回设备所特有的字符串。\n" "[b]注意:[/b]如果用户重新安装/升级其操作系统或更改其硬件,此字符串可能会在不" "通知的情况下更改。这意味着它通常不应用于加密持续数据,因为在意外的 ID 更改变" "得无法访问之前保存的数据。返回的字符串也可能使用外部程序伪造,因此出于安全目" "的,不要依赖 [method get_unique_id] 返回的字符串。\n" "[b]注意:[/b]返回 HTML5 和 UWP 上的空字符串,因为此方法尚未在这些平台上实施。" #: doc/classes/OS.xml msgid "" "Returns the current UNIX epoch timestamp in seconds.\n" "[b]Important:[/b] This is the system clock that the user can manually set. " "[b]Never use[/b] this method for precise time calculation since its results " "are also subject to automatic adjustments by the operating system. [b]Always " "use[/b] [method get_ticks_usec] or [method get_ticks_msec] for precise time " "calculation instead, since they are guaranteed to be monotonic (i.e. never " "decrease)." msgstr "" "以秒为单位返回当前的 UNIX 纪元时间戳。\n" "[b]重要:[/b] 这是用户可以手动设置的系统时钟。 [b]永远不要使用[/b]这种方法进" "行精确的时间计算,因为它的结果也会受到操作系统的自动调整。 [b]始终使用[/b] " "[method get_ticks_usec] 或 [method get_ticks_msec] 进行精确时间计算,因为它们" "保证是单调的(即永不减少)。" #: doc/classes/OS.xml msgid "" "Gets an epoch time value from a dictionary of time values.\n" "[code]datetime[/code] must be populated with the following keys: [code]year[/" "code], [code]month[/code], [code]day[/code], [code]hour[/code], " "[code]minute[/code], [code]second[/code].\n" "If the dictionary is empty [code]0[/code] is returned. If some keys are " "omitted, they default to the equivalent values for the UNIX epoch timestamp " "0 (1970-01-01 at 00:00:00 UTC).\n" "You can pass the output from [method get_datetime_from_unix_time] directly " "into this function. Daylight Savings Time ([code]dst[/code]), if present, is " "ignored." msgstr "" "从时间值字典中获取纪元时间值。\n" "[code]datetime[/code] 必须填充以下键:[code]year[/code]、[code]month[/code]、" "[code]day[/code]、[code]hour[/code]、[code]minute[/code]、[code]second[/" "code]。\n" "如果字典为空,则返回 [code]0[/code]。如果某些键被省略,它们默认为 UNIX 纪元时" "间戳 0(1970-01-01 在 00:00:00 UTC)的等效值。\n" "你可以将 [method get_datetime_from_unix_time] 的输出直接传递给此函数。夏令时 " "([code]dst[/code])(如果存在)将被忽略。" #: doc/classes/OS.xml msgid "" "Returns the absolute directory path where user data is written ([code]user://" "[/code]).\n" "On Linux, this is [code]~/.local/share/godot/app_userdata/[project_name][/" "code], or [code]~/.local/share/[custom_name][/code] if " "[code]use_custom_user_dir[/code] is set.\n" "On macOS, this is [code]~/Library/Application Support/Godot/app_userdata/" "[project_name][/code], or [code]~/Library/Application Support/[custom_name][/" "code] if [code]use_custom_user_dir[/code] is set.\n" "On Windows, this is [code]%APPDATA%\\Godot\\app_userdata\\[project_name][/" "code], or [code]%APPDATA%\\[custom_name][/code] if " "[code]use_custom_user_dir[/code] is set. [code]%APPDATA%[/code] expands to " "[code]%USERPROFILE%\\AppData\\Roaming[/code].\n" "If the project name is empty, [code]user://[/code] falls back to [code]res://" "[/code].\n" "Not to be confused with [method get_data_dir], which returns the [i]global[/" "i] (non-project-specific) user data directory." msgstr "" "返回用户数据被写入的绝对目录路径([code]user://[/code])。\n" "在 Linux 上,这是 [code]~/.local/share/godot/app_userdata/[project_name][/" "code],如果设置了[code]use_custom_user_dir[/code],则是 [code]~/.local/share/" "[custom_name][/code]。\n" "在 macOS 上,这是 [code]~/Library/Application Support/Godot/app_userdata/" "[project_name][/code],如果设置了[code]use_custom_user_dir[/code],则是 " "[code]~/Library/Application Support/[custom_name][/code]。\n" "在 Windows 上,这是 [code]%APPDATA%\\Godot\\app_userdata\\[project_name][/" "code],如果设置了 [code]use_custom_user_dir[/code],则是 [code]%APPDATA%" "\\[custom_name][/code]。[code]%APPDATA%[/code] 会被扩展到 [code]%USERPROFILE%" "\\AppData\\Roaming[/code]。\n" "如果项目名称为空,[code]user://[/code] 会退回到 [code]res://[/code]。\n" "不要与 [method get_data_dir] 混淆,后者返回[i]全局[/i]用户数据目录(非项目专" "用)。" #: doc/classes/OS.xml msgid "Returns the number of video drivers supported on the current platform." msgstr "返回当前平台上支持的视频驱动器的数量。" #: doc/classes/OS.xml msgid "" "Returns the name of the video driver matching the given [code]driver[/code] " "index. This index is a value from [enum VideoDriver], and you can use " "[method get_current_video_driver] to get the current backend's index." msgstr "" "返回与给定 [code]driver[/code] 索引匹配的视频驱动程序的名称。此索引是来自 " "[enum VideoDriver] 的值,您可以使用 [method get_current_video_driver] 获取当" "前后端的索引。" #: doc/classes/OS.xml msgid "" "Returns the on-screen keyboard's height in pixels. Returns 0 if there is no " "keyboard or if it is currently hidden." msgstr "" "返回键盘在屏幕上的高度,单位为像素。如果没有键盘或当前键盘被隐藏,则返回0。" #: doc/classes/OS.xml msgid "" "Returns unobscured area of the window where interactive controls should be " "rendered." msgstr "返回应呈现交互式控件的窗口的未遮挡区域。" #: doc/classes/OS.xml msgid "" "Add a new item with text \"label\" to global menu. Use \"_dock\" menu to add " "item to the macOS dock icon menu.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "将带有文本“标签”的新项目添加到全局菜单。使用“_dock”菜单将项目添加到 macOS 停" "靠栏图标菜单。\n" "[b]注:[/b]此方法在macOS上实现。" #: doc/classes/OS.xml msgid "" "Add a separator between items. Separators also occupy an index.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "在项目之间添加一个分隔符。分隔符也占用一个索引。\n" "[b]注意:[/b]这个方法在macOS上实现。" #: doc/classes/OS.xml msgid "" "Clear the global menu, in effect removing all items.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "清除全局菜单,实际上是删除所有项目。\n" "[b]注意:[/b]这个方法在macOS上实现。" #: doc/classes/OS.xml msgid "" "Removes the item at index \"idx\" from the global menu. Note that the " "indexes of items after the removed item are going to be shifted by one.\n" "[b]Note:[/b] This method is implemented on macOS." msgstr "" "将索引为 \"idx\" 的项目从全局菜单中移除。注意,在被删除的项目之后的项目的索引" "将被移动1位。\n" "[b]注意:[/b]这个方法在macOS上实现。" #: doc/classes/OS.xml msgid "Returns [code]true[/code] if there is content on the clipboard." msgstr "如果剪贴板上存在内容,则返回 [code]true[/code]。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the environment variable with the name " "[code]variable[/code] exists.\n" "[b]Note:[/b] Double-check the casing of [code]variable[/code]. Environment " "variable names are case-sensitive on all platforms except Windows." msgstr "" "如果名称为 [code]variable[/code] 的环境变量存在,则返回 [code]true[/code]。\n" "[b]注意:[/b]仔细检查 [code]variable[/code] 的大小写。环境变量名称在除 " "Windows 之外的所有平台上都区分大小写。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the feature for the given feature tag is " "supported in the currently running instance, depending on the platform, " "build etc. Can be used to check whether you're currently running a debug " "build, on a certain platform or arch, etc. Refer to the [url=$DOCS_URL/" "tutorials/export/feature_tags.html]Feature Tags[/url] documentation for more " "details.\n" "[b]Note:[/b] Tag names are case-sensitive." msgstr "" "如果给定的特征标签的特征在当前运行的实例中得到支持,则返回 [code]true[/" "code],具体取决于平台和构建等。可以用来检查你当前是否在运行一个调试构建,是否" "在某个平台或架构上,等等。更多细节请参考[url=$DOCS_URL/tutorials/export/" "feature_tags.html]功能标签[/url]文档。\n" "[b]注意:[/b]标签名称区分大小写。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the device has a touchscreen or emulates one." msgstr "如果设备有触摸屏或模拟有触摸屏,则返回 [code]true[/code]。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the platform has a virtual keyboard, " "[code]false[/code] otherwise." msgstr "" "如果平台有虚拟键盘,返回 [code]true[/code],否则返回 [code]false[/code]。" #: doc/classes/OS.xml msgid "Hides the virtual keyboard if it is shown, does nothing otherwise." msgstr "如果虚拟键盘为显示状态则隐藏虚拟键盘,否则不做任何操作。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the Godot binary used to run the project is a " "[i]debug[/i] export template, or when running in the editor.\n" "Returns [code]false[/code] if the Godot binary used to run the project is a " "[i]release[/i] export template.\n" "To check whether the Godot binary used to run the project is an export " "template (debug or release), use [code]OS.has_feature(\"standalone\")[/code] " "instead." msgstr "" "如果用于运行项目的Godot二进制文件是[i]debug[/i]导出,或在编辑器中运行时,返" "回 [code]true[/code]。\n" "如果用于运行项目的Godot二进制文件是[i]release[/i]导出,则返回 [code]false[/" "code]。\n" "要检查用于运行项目的Godot二进制文件是否是被导出版本(调试或发布),请使用" "[code]OS.has_feature(\"standalone\")[/code]代替。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the [b]OK[/b] button should appear on the left " "and [b]Cancel[/b] on the right." msgstr "" "如果[b]确定[/b]按钮应该显示在左边,[b]取消[/b]显示在右边,则返回 [code]true[/" "code]。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the child process ID ([code]pid[/code]) is " "still running or [code]false[/code] if it has terminated.\n" "Must be a valid ID generated from [method execute].\n" "[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and " "Windows." msgstr "" "如果该子进程 ID([code]pid[/code])仍在运行则返回 [code]true[/code],如果已经" "终止则返回 [code]false[/code]。\n" "必须是由 [method execute] 生成的有效 ID。\n" "[b]注意:[/b]这个方法在 Android、iOS、Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the input scancode corresponds to a Unicode " "character." msgstr "如果输入的扫描码与 Unicode 字符对应,则返回 [code]true[/code]。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the engine was executed with [code]-v[/code] " "(verbose stdout)." msgstr "" "如果引擎是用 [code]-v[/code](verbose stdout)执行的,返回 [code]true[/" "code]。" #: doc/classes/OS.xml msgid "" "If [code]true[/code], the [code]user://[/code] file system is persistent, so " "that its state is the same after a player quits and starts the game again. " "Relevant to the HTML5 platform, where this persistence may be unavailable." msgstr "" "为 [code]true[/code] 时 [code]user://[/code] 文件系统是持久的,因此在玩家退出" "并再次启动游戏后,其状态是相同的。与 HTML5 平台有关,在那里这种持久性可能不可" "用。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the window should always be on top of other " "windows." msgstr "如果该窗口应总是在其他窗口之上,则返回 [code]true[/code]。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if the window is currently focused.\n" "[b]Note:[/b] Only implemented on desktop platforms. On other platforms, it " "will always return [code]true[/code]." msgstr "" "如果窗口当前获得焦点,则返回 [code]true[/code]。\n" "[b]注意:[/b]只在桌面平台上实现。在其他平台上,它将总是返回 [code]true[/" "code]。" #: doc/classes/OS.xml msgid "" "Returns active keyboard layout index.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回活动键盘布局索引。\n" "[b]注意:[/b]本方法在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Returns the number of keyboard layouts.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回键盘布局的数量。\n" "[b]注意:[/b]本方法在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Returns the ISO-639/BCP-47 language code of the keyboard layout at position " "[code]index[/code].\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回位于 [code]index[/code] 位置的键盘布局的 ISO-639/BCP-47 语言代码。\n" "[b]注意:[/b]本方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Returns the localized name of the keyboard layout at position [code]index[/" "code].\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "返回位于[code]index[/code]位置的键盘布局的本地名称。\n" "[b]注意:[/b]本方法可在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Converts a physical (US QWERTY) [code]scancode[/code] to one in the active " "keyboard layout.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "将物理(美式 QWERTY)扫描码 [code]scancode[/code] 转换为当前活动键盘布局的扫" "描码。\n" "[b]注意:[/b]此方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Sets active keyboard layout.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "设置活动键盘布局。\n" "[b]注:[/b]此方法可在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Kill (terminate) the process identified by the given process ID ([code]pid[/" "code]), e.g. the one returned by [method execute] in non-blocking mode. See " "also [method crash].\n" "[b]Note:[/b] This method can also be used to kill processes that were not " "spawned by the game.\n" "[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and " "Windows." msgstr "" "杀死(终止)由给定的进程 ID([code]pid[/code])标识的进程,例如,在非阻塞模式" "下由 [method execute] 返回的进程。另请参阅 [method crash]。\n" "[b]注意:[/b]这个方法也可以用来杀死不是由游戏产生的进程。\n" "[b]注意:[/b]这个方法在 Android、iOS、Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Moves the file or directory to the system's recycle bin. See also [method " "Directory.remove].\n" "[b]Note:[/b] If the user has disabled the recycle bin on their system, the " "file will be permanently deleted instead." msgstr "" "将文件或目录移动到系统的回收站。另请参阅 [method Directory.remove]。\n" "[b]注意:[/b]如果用户禁用了系统的回收站,那么这个文件就会被永久删除。" #: doc/classes/OS.xml msgid "" "Moves the window to the front.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "将窗口移到前面。\n" "[b]注意:[/b]这个方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Returns [code]true[/code] if native video is playing.\n" "[b]Note:[/b] This method is only implemented on iOS." msgstr "" "如果本地视频正在播放,返回 [code]true[/code]。\n" "[b]注意:[/b]这个方法只在iOS上实现。" #: doc/classes/OS.xml msgid "" "Pauses native video playback.\n" "[b]Note:[/b] This method is only implemented on iOS." msgstr "" "暂停本地视频播放。\n" "[b]注意:[/b]这个方法只在iOS上实现。" #: doc/classes/OS.xml msgid "" "Plays native video from the specified path, at the given volume and with " "audio and subtitle tracks.\n" "[b]Note:[/b] This method is only implemented on iOS." msgstr "" "以给定的音量、音频和字幕轨道播放来自指定路径的本地视频。\n" "[b]注意:[/b]这个方法只在iOS上实现。" #: doc/classes/OS.xml msgid "" "Stops native video playback.\n" "[b]Note:[/b] This method is implemented on iOS." msgstr "" "停止本地视频播放。\n" "[b]注意:[/b]这个方法在iOS上实现。" #: doc/classes/OS.xml msgid "" "Resumes native video playback.\n" "[b]Note:[/b] This method is implemented on iOS." msgstr "" "恢复本地视频播放。\n" "[b]注意:[/b]这个方法在iOS上实现。" #: doc/classes/OS.xml msgid "" "Initialises the singleton for the system MIDI driver.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "初始化系统 MIDI 驱动的单例。\n" "[b]注意:[/b]该方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Shows all resources in the game. Optionally, the list can be written to a " "file by specifying a file path in [code]tofile[/code]." msgstr "" "显示游戏中的所有资源。也可以通过在[code]tofile[/code]中指定文件路径将该列表写" "入文件。" #: doc/classes/OS.xml msgid "Shows the list of loaded textures sorted by size in memory." msgstr "显示加载的纹理在内存中按大小排序的列表。" #: doc/classes/OS.xml msgid "Shows the number of resources loaded by the game of the given types." msgstr "显示游戏加载的给定类型资源的数量。" #: doc/classes/OS.xml msgid "Shows all resources currently used by the game." msgstr "显示游戏当前使用的所有资源。" #: doc/classes/OS.xml msgid "" "Request the user attention to the window. It'll flash the taskbar button on " "Windows or bounce the dock icon on OSX.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "要求用户注意该窗口。它会在Windows上闪烁任务栏按钮,或在OSX上弹出Dock图标。\n" "[b]注意:[/b]这个方法在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "At the moment this function is only used by [code]AudioDriverOpenSL[/code] " "to request permission for [code]RECORD_AUDIO[/code] on Android." msgstr "" "目前,这个函数只被[code]AudioDriverOpenSL[/code]用来请求Android上" "[code]RECORD_AUDIO[/code]的权限。" #: doc/classes/OS.xml msgid "" "With this function, you can request dangerous permissions since normal " "permissions are automatically granted at install time in Android " "applications.\n" "[b]Note:[/b] This method is implemented on Android." msgstr "" "通过这个功能,你可以申请危险的权限,因为在Android应用程序中,正常的权限会在安" "装时自动授予。\n" "[b]注意:[/b]此方法在Android上实现。" #: doc/classes/OS.xml msgid "" "Sets the value of the environment variable [code]variable[/code] to " "[code]value[/code]. The environment variable will be set for the Godot " "process and any process executed with [method execute] after running [method " "set_environment]. The environment variable will [i]not[/i] persist to " "processes run after the Godot process was terminated.\n" "[b]Note:[/b] Double-check the casing of [code]variable[/code]. Environment " "variable names are case-sensitive on all platforms except Windows." msgstr "" "将环境变量[code]variable[/code]的值设置为[code]value[/code]。在运行[method " "set_environment]后,环境变量将被设置为Godot进程和任何用[method execute]执行的" "进程。环境变量将[i]不[/i]持续存在于Godot进程终止后运行的进程中。\n" "[b]注意:[/b]仔细检查[code]variable[/code]的大小写。除Windows外,环境变量名称" "在所有平台上都是区分大小写的。" #: doc/classes/OS.xml msgid "" "Sets the game's icon using an [Image] resource.\n" "The same image is used for window caption, taskbar/dock and window selection " "dialog. Image is scaled as needed.\n" "[b]Note:[/b] This method is implemented on HTML5, Linux, macOS and Windows." msgstr "" "使用图像 [Image] 资源设置游戏的图标。\n" "同样的图像用于窗口标题、任务栏/程序坞和窗口选择对话框。图像会根据需要进行缩" "放。\n" "[b]注意:[/b]这个方法在 HTML5、Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Sets whether IME input mode should be enabled.\n" "If active IME handles key events before the application and creates an " "composition string and suggestion list.\n" "Application can retrieve the composition status by using [method " "get_ime_selection] and [method get_ime_text] functions.\n" "Completed composition string is committed when input is finished.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "设置是否应启用 IME 输入法模式。\n" "如果激活,IME 输入法编辑器在应用程序之前处理关键事件并创建组合字符串和建议列" "表。\n" "应用程序可以通过使用 [method get_ime_selection] 和 [method get_ime_text] 函数" "来检索组合状态。\n" "输入完成时提交完成的组合字符串。\n" "[b]注意:[/b]该方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Sets position of IME suggestion list popup (in window coordinates).\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "设置 IME 建议列表弹出窗口的位置(在窗口坐标中)。\n" "[b]注意:[/b]此方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Sets the game's icon using a multi-size platform-specific icon file ([code]*." "ico[/code] on Windows and [code]*.icns[/code] on macOS).\n" "Appropriate size sub-icons are used for window caption, taskbar/dock and " "window selection dialog.\n" "[b]Note:[/b] This method is implemented on macOS and Windows." msgstr "" "使用多尺寸平台特定图标文件设置游戏的图标(在 Windows 上是 [code]*.ico[/" "code],在 macOS 上是 [code]*.icns[/code])。\n" "适当的大小子图标用于窗口标题、任务栏/程序坞和窗口选择对话框。\n" "[b]注意:[/b]此方法在 macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "Sets the name of the current thread." msgstr "设置当前线程的名称。" #: doc/classes/OS.xml msgid "Enables backup saves if [code]enabled[/code] is [code]true[/code]." msgstr "如果[code]enabled[/code]为 [code]true[/code],则启用备份保存。" #: doc/classes/OS.xml msgid "" "Sets whether the window should always be on top.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "设置窗口是否应始终位于顶部。\n" "[b]注意:[/b]该方法在 Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml msgid "" "Sets a polygonal region of the window which accepts mouse events. Mouse " "events outside the region will be passed through.\n" "Passing an empty array will disable passthrough support (all mouse events " "will be intercepted by the window, which is the default behavior).\n" "[codeblock]\n" "# Set region, using Path2D node.\n" "OS.set_window_mouse_passthrough($Path2D.curve.get_baked_points())\n" "\n" "# Set region, using Polygon2D node.\n" "OS.set_window_mouse_passthrough($Polygon2D.polygon)\n" "\n" "# Reset region to default.\n" "OS.set_window_mouse_passthrough([])\n" "[/codeblock]\n" "[b]Note:[/b] On Windows, the portion of a window that lies outside the " "region is not drawn, while on Linux and macOS it is.\n" "[b]Note:[/b] This method is implemented on Linux, macOS and Windows." msgstr "" "设置窗口的一个接受鼠标事件的多边形区域。该区域外的鼠标事件将被传递出去。\n" "传递一个空数组将禁用穿透支持(所有鼠标事件将被窗口拦截,这是默认行为)。\n" "[codeblock]\n" "# 设置区域,使用Path2D节点。\n" "OS.set_window_mouse_passthrough($Path2D.curve.get_baked_points() )\n" "\n" "# 设置区域,使用Polygon2D节点。\n" "OS.set_window_mouse_passthrough($Polygon2D.polygon)\n" "\n" "# 重置区域为默认值。\n" "OS.set_window_mouse_passthrough([] )\n" "[/codeblock]\n" "[b]注意:[/b]在Windows上,位于区域外的窗口部分不会被绘制,而在Linux和macOS上" "则会。\n" "[b]注意:[/b]这个方法在Linux、macOS和Windows上实现。" #: doc/classes/OS.xml msgid "" "Sets the window title to the specified string.\n" "[b]Note:[/b] This should be used sporadically. Don't set this every frame, " "as that will negatively affect performance on some window managers.\n" "[b]Note:[/b] This method is implemented on HTML5, Linux, macOS and Windows." msgstr "" "将窗口标题设置为指定的字符串。\n" "[b]注意:[/b]应该偶尔使用,不要每帧都设置,因为这会对某些窗口管理器的性能产生" "负面影响。\n" "[b]注意:[/b]该方法在 HTML5、Linux、macOS 和 Windows 上实现。" #: doc/classes/OS.xml #, fuzzy msgid "" "Requests the OS to open a resource with the most appropriate program. For " "example:\n" "- [code]OS.shell_open(\"C:\\\\Users\\name\\Downloads\")[/code] on Windows " "opens the file explorer at the user's Downloads folder.\n" "- [code]OS.shell_open(\"https://godotengine.org\")[/code] opens the default " "web browser on the official Godot website.\n" "- [code]OS.shell_open(\"mailto:example@example.com\")[/code] opens the " "default email client with the \"To\" field set to [code]example@example.com[/" "code]. See [url=https://datatracker.ietf.org/doc/html/rfc2368]RFC 2368 - The " "[code]mailto[/code] URL scheme[/url] for a list of fields that can be " "added.\n" "Use [method ProjectSettings.globalize_path] to convert a [code]res://[/code] " "or [code]user://[/code] path into a system path for use with this method.\n" "[b]Note:[/b] This method is implemented on Android, iOS, HTML5, Linux, macOS " "and Windows." msgstr "" "请求操作系统使用最合适的程序打开资源。例如:\n" "- [code]OS.shell_open(\"C:\\\\Users\\name\\Downloads\")[/code] 在 Windows 上" "会用资源管理器打开用户的 Downloads 文件夹。\n" "- [code]OS.shell_open(\"https://godotengine.org\")[/code] 会使用默认网页浏览" "器打开 Godot 官方网站。\n" "- [code]OS.shell_open(\"mailto:example@example.com\")[/code] 会打开默认电子邮" "件客户端并将“收件人”字段设置为 [code]example@example.com[/code]。其他支持自定" "义的字段见 [url=https://blog.escapecreative.com/customizing-mailto-links/]自" "定义 [code]mailto:[/code] 链接[/url] 。\n" "可以使用 [method ProjectSettings.globalize_path] 将 [code]res://[/code] 和 " "[code]user://[/code] 路径转换为本方法所使用的系统路径。\n" "[b]注意:[/b]本方法在 Android、iOS、HTML5、Linux、macOS、以及 Windows 上实" "现。" #: doc/classes/OS.xml msgid "" "Shows the virtual keyboard if the platform has one.\n" "The [code]existing_text[/code] parameter is useful for implementing your own " "[LineEdit] or [TextEdit], as it tells the virtual keyboard what text has " "already been typed (the virtual keyboard uses it for auto-correct and " "predictions).\n" "The [code]multiline[/code] parameter needs to be set to [code]true[/code] to " "be able to enter multiple lines of text, as in [TextEdit].\n" "[b]Note:[/b] This method is implemented on Android, iOS and UWP." msgstr "" "如果该平台有虚拟键盘,则显示虚拟键盘。\n" "[code]existing_text[/code] 参数对于实现您自己的 [LineEdit] 或 [TextEdit] 很有" "用,因为它告诉虚拟键盘已经输入了哪些文本(虚拟键盘使用它进行自动更正和预" "测)。\n" "需要把 [code]multiline[/code] 参数设置为 [code]true[/code] 才能输入多行文本," "如在 [TextEdit] 中。\n" "[b]注意:[/b]此方法在 Android、iOS 和 UWP 上实现。" #: doc/classes/OS.xml msgid "The clipboard from the host OS. Might be unavailable on some platforms." msgstr "主机操作系统的剪贴板。在某些平台上可能不可用。" #: doc/classes/OS.xml msgid "The current screen index (starting from 0)." msgstr "当前屏幕索引(从 0 开始)。" #: doc/classes/OS.xml msgid "" "If [code]true[/code], the engine filters the time delta measured between " "each frame, and attempts to compensate for random variation. This will only " "operate on systems where V-Sync is active." msgstr "" "如果 [code]true[/code],引擎会过滤每帧之间测量的时间增量,并尝试补偿随机变" "化。这只会在垂直同步处于活动状态的系统上运行。" #: doc/classes/OS.xml msgid "" "The exit code passed to the OS when the main loop exits. By convention, an " "exit code of [code]0[/code] indicates success whereas a non-zero exit code " "indicates an error. For portability reasons, the exit code should be set " "between 0 and 125 (inclusive).\n" "[b]Note:[/b] This value will be ignored if using [method SceneTree.quit] " "with an [code]exit_code[/code] argument passed." msgstr "" "主循环退出时传递给操作系统的退出代码。按照惯例,退出代码 [code]0[/code] 表示" "成功,而非零的退出代码表示错误。出于可移植性的考虑,退出代码应该设置在 0 到 " "125 之间(包括 125)。\n" "[b]注意:[/b]如果使用 [method SceneTree.quit] 并传递了 [code]exit_code[/" "code] 参数,这个值将被忽略。" #: doc/classes/OS.xml msgid "" "If [code]true[/code], the engine tries to keep the screen on while the game " "is running. Useful on mobile." msgstr "" "如果为 [code]true[/code],则引擎会尝试在游戏运行时保持屏幕开启。在手机上有" "用。" #: doc/classes/OS.xml msgid "" "If [code]true[/code], the engine optimizes for low processor usage by only " "refreshing the screen if needed. Can improve battery consumption on mobile." msgstr "" "如果为 [code]true[/code],则引擎会通过只在需要时刷新屏幕来优化处理器的使用。" "可以改善移动设备上的电池消耗。" #: doc/classes/OS.xml msgid "" "The amount of sleeping between frames when the low-processor usage mode is " "enabled (in microseconds). Higher values will result in lower CPU usage." msgstr "" "启用低处理器使用模式时,帧之间的休眠量(单位为微秒)。较高的值将导致较低的 " "CPU 使用率。" #: doc/classes/OS.xml msgid "" "The maximum size of the window (without counting window manager " "decorations). Does not affect fullscreen mode. Set to [code](0, 0)[/code] to " "reset to the system default value." msgstr "" "窗口的最大大小(不包括窗口管理器装饰)。不影响全屏模式。设置为 [code](0, 0)[/" "code] 可重置为系统默认值。" #: doc/classes/OS.xml msgid "" "The minimum size of the window in pixels (without counting window manager " "decorations). Does not affect fullscreen mode. Set to [code](0, 0)[/code] to " "reset to the system's default value.\n" "[b]Note:[/b] By default, the project window has a minimum size of " "[code]Vector2(64, 64)[/code]. This prevents issues that can arise when the " "window is resized to a near-zero size." msgstr "" "窗口的最小像素尺寸(不计算窗口管理器装饰)。不影响全屏模式。设置为 [code](0, " "0)[/code] 可重置为系统默认值。\n" "[b]注意:[/b]默认情况下,项目窗口的最小尺寸为 [code]Vector2(64, 64)[/code]。" "这可以防止在将窗口大小调整为接近零时可能出现的问题。" #: doc/classes/OS.xml msgid "The current screen orientation." msgstr "当前屏幕方向。" #: doc/classes/OS.xml msgid "The current tablet driver in use." msgstr "当前正在使用的数位板驱动程序。" #: doc/classes/OS.xml msgid "If [code]true[/code], vertical synchronization (Vsync) is enabled." msgstr "如果为 [code]true[/code],则启用垂直同步(Vsync)。" #: doc/classes/OS.xml msgid "" "If [code]true[/code] and [code]vsync_enabled[/code] is true, the operating " "system's window compositor will be used for vsync when the compositor is " "enabled and the game is in windowed mode.\n" "[b]Note:[/b] This option is experimental and meant to alleviate stutter " "experienced by some users. However, some users have experienced a Vsync " "framerate halving (e.g. from 60 FPS to 30 FPS) when using it.\n" "[b]Note:[/b] This property is only implemented on Windows." msgstr "" "为 [code]true[/code] 时,如果 [code]vsync_enabled[/code] 为真,当操作系统的窗" "口合成器被启用并且游戏处于窗口模式时,将使用该合成器进行垂直同步。\n" "[b]注意:[/b]此选项是实验性的,旨在缓解某些用户遇到的卡顿。但是,一些用户在使" "用时遇到了 Vsync 帧率减半,例如从 60 FPS 到 30 FPS。\n" "[b]注意:[/b]此属性仅在 Windows 上实现。" #: doc/classes/OS.xml msgid "" "If [code]true[/code], removes the window frame.\n" "[b]Note:[/b] Setting [code]window_borderless[/code] to [code]false[/code] " "disables per-pixel transparency." msgstr "" "如果为 [code]true[/code],则移除窗口边框。\n" "[b]注意:[/b]将 [code]window_borderless[/code] 设置为 [code]false[/code] 将禁" "用逐像素透明度。" #: doc/classes/OS.xml msgid "If [code]true[/code], the window is fullscreen." msgstr "如果为 [code]true[/code],则窗口为全屏。" #: doc/classes/OS.xml msgid "If [code]true[/code], the window is maximized." msgstr "如果为 [code]true[/code],则窗口被最大化。" #: doc/classes/OS.xml msgid "If [code]true[/code], the window is minimized." msgstr "如果为 [code]true[/code],则窗口被最小化。" #: doc/classes/OS.xml msgid "" "If [code]true[/code], the window background is transparent and the window " "frame is removed.\n" "Use [code]get_tree().get_root().set_transparent_background(true)[/code] to " "disable main viewport background rendering.\n" "[b]Note:[/b] This property has no effect if [member ProjectSettings.display/" "window/per_pixel_transparency/allowed] setting is disabled.\n" "[b]Note:[/b] This property is implemented on HTML5, Linux, macOS, Windows, " "and Android. It can't be changed at runtime for Android. Use [member " "ProjectSettings.display/window/per_pixel_transparency/enabled] to set it at " "startup instead." msgstr "" "如果为 [code]true[/code],则窗口背景是透明的,窗口框架被移除。\n" "使用 [code]get_tree().get_root().set_transparent_background(true)[/code] 禁用" "主视口背景渲染。\n" "[b]注意:[/b]如果禁用 [member ProjectSettings.display/window/" "per_pixel_transparency/allowed] 设置,则该属性无效。\n" "[b]注意:[/b]此属性在 HTML5、Linux、macOS、Windows 和 Android 上实现。对于 " "Android,它不能在运行时更改。使用 [member ProjectSettings.display/window/" "per_pixel_transparency/enabled] 在启动时进行设置。" #: doc/classes/OS.xml msgid "" "The window position relative to the screen, the origin is the top left " "corner, +Y axis goes to the bottom and +X axis goes to the right." msgstr "窗口相对于屏幕的位置,原点为左上角,+Y 轴向下,+X 轴向右。" #: doc/classes/OS.xml msgid "If [code]true[/code], the window is resizable by the user." msgstr "如果为 [code]true[/code],则用户可以调整窗口大小。" #: doc/classes/OS.xml msgid "The size of the window (without counting window manager decorations)." msgstr "窗口的大小(不包括窗口管理器装饰)。" #: doc/classes/OS.xml msgid "" "The GLES2 rendering backend. It uses OpenGL ES 2.0 on mobile devices, OpenGL " "2.1 on desktop platforms and WebGL 1.0 on the web." msgstr "" "GLES2 渲染后端。它在移动设备上使用 OpenGL ES 2.0,在桌面平台上使用 OpenGL " "2.1,在 Web 上使用 WebGL 1.0。" #: doc/classes/OS.xml msgid "" "The GLES3 rendering backend. It uses OpenGL ES 3.0 on mobile devices, OpenGL " "3.3 on desktop platforms and WebGL 2.0 on the web." msgstr "" "GLES3 渲染后端。它在移动设备上使用 OpenGL ES 3.0,在桌面平台上使用 OpenGL " "3.3,在 Web 上使用 WebGL 2.0。" #: doc/classes/OS.xml msgid "Sunday." msgstr "星期日。" #: doc/classes/OS.xml msgid "Monday." msgstr "星期一。" #: doc/classes/OS.xml msgid "Tuesday." msgstr "星期二。" #: doc/classes/OS.xml msgid "Wednesday." msgstr "星期三。" #: doc/classes/OS.xml msgid "Thursday." msgstr "星期四。" #: doc/classes/OS.xml msgid "Friday." msgstr "星期五。" #: doc/classes/OS.xml msgid "Saturday." msgstr "星期六。" #: doc/classes/OS.xml msgid "January." msgstr "一月。" #: doc/classes/OS.xml msgid "February." msgstr "二月。" #: doc/classes/OS.xml msgid "March." msgstr "三月。" #: doc/classes/OS.xml msgid "April." msgstr "四月。" #: doc/classes/OS.xml msgid "May." msgstr "五月。" #: doc/classes/OS.xml msgid "June." msgstr "六月。" #: doc/classes/OS.xml msgid "July." msgstr "七月。" #: doc/classes/OS.xml msgid "August." msgstr "八月。" #: doc/classes/OS.xml msgid "September." msgstr "九月。" #: doc/classes/OS.xml msgid "October." msgstr "十月。" #: doc/classes/OS.xml msgid "November." msgstr "十一月。" #: doc/classes/OS.xml msgid "December." msgstr "十二月。" #: doc/classes/OS.xml msgid "" "Application handle:\n" "- Windows: [code]HINSTANCE[/code] of the application\n" "- MacOS: [code]NSApplication*[/code] of the application (not yet " "implemented)\n" "- Android: [code]JNIEnv*[/code] of the application (not yet implemented)" msgstr "" "应用程序句柄:\n" "- Windows:应用程序的 [code]HINSTANCE[/code]\n" "- MacOS:应用程序的 [code]NSApplication*[/code](尚未实现)\n" "- Android:应用程序的 [code]JNIEnv*[/code](尚未实现)" #: doc/classes/OS.xml msgid "" "Display handle:\n" "- Linux: [code]X11::Display*[/code] for the display" msgstr "" "显示句柄:\n" "- Linux:[code]X11::Display*[/code] 用于显示" #: doc/classes/OS.xml msgid "" "Window handle:\n" "- Windows: [code]HWND[/code] of the main window\n" "- Linux: [code]X11::Window*[/code] of the main window\n" "- MacOS: [code]NSWindow*[/code] of the main window (not yet implemented)\n" "- Android: [code]jObject[/code] the main android activity (not yet " "implemented)" msgstr "" "窗户句柄:\n" "- Windows:主窗口的 [code]HWND[/code]。\n" "- Linux:主窗口的 [code]X11::Window*[/code]。\n" "- MacOS:主窗口的 [code]NSWindow*[/code](尚未实现)\n" "- Android:主 Android activity 的 [code]jObject[/code](尚未实现)" #: doc/classes/OS.xml msgid "" "Window view:\n" "- Windows: [code]HDC[/code] of the main window drawing context\n" "- MacOS: [code]NSView*[/code] of the main windows view (not yet implemented)" msgstr "" "窗口视图:\n" "- Windows:主窗口绘图环境的 [code]HDC[/code]\n" "- MacOS:主窗口视图的 [code]NSView*[/code](尚未实现)" #: doc/classes/OS.xml msgid "" "OpenGL Context:\n" "- Windows: [code]HGLRC[/code]\n" "- Linux: [code]X11::GLXContext[/code]\n" "- MacOS: [code]NSOpenGLContext*[/code] (not yet implemented)" msgstr "" "OpenGL上下文:\n" "- Windows:[code]HGLRC[/code]\n" "- Linux:[code]X11::GLXContext[/code]\n" "- MacOS:[code]NSOpenGLContext*[/code] (尚未实现)" #: doc/classes/OS.xml msgid "Landscape screen orientation." msgstr "横向屏幕方向。" #: doc/classes/OS.xml msgid "Portrait screen orientation." msgstr "纵向屏幕方向。" #: doc/classes/OS.xml msgid "Reverse landscape screen orientation." msgstr "反转横向屏幕方向。" #: doc/classes/OS.xml msgid "Reverse portrait screen orientation." msgstr "反转纵向屏幕方向。" #: doc/classes/OS.xml msgid "Uses landscape or reverse landscape based on the hardware sensor." msgstr "根据硬件传感器使用横向或反向横向。" #: doc/classes/OS.xml msgid "Uses portrait or reverse portrait based on the hardware sensor." msgstr "根据硬件传感器使用纵向或反向纵向。" #: doc/classes/OS.xml msgid "Uses most suitable orientation based on the hardware sensor." msgstr "根据硬件传感器使用最合适的方向。" #: doc/classes/OS.xml msgid "Desktop directory path." msgstr "桌面目录路径。" #: doc/classes/OS.xml msgid "DCIM (Digital Camera Images) directory path." msgstr "DCIM(数码相机图像)目录路径。" #: doc/classes/OS.xml msgid "Documents directory path." msgstr "文档目录路径。" #: doc/classes/OS.xml msgid "Downloads directory path." msgstr "下载目录路径。" #: doc/classes/OS.xml msgid "Movies directory path." msgstr "影片目录路径。" #: doc/classes/OS.xml msgid "Music directory path." msgstr "音乐目录路径。" #: doc/classes/OS.xml msgid "Pictures directory path." msgstr "图片目录路径。" #: doc/classes/OS.xml msgid "Ringtones directory path." msgstr "铃声目录路径。" #: doc/classes/OS.xml msgid "Unknown powerstate." msgstr "未知电源状态。" #: doc/classes/OS.xml msgid "Unplugged, running on battery." msgstr "拔掉插头,用电池运行。" #: doc/classes/OS.xml msgid "Plugged in, no battery available." msgstr "插上电源,没有电池可用。" #: doc/classes/OS.xml msgid "Plugged in, battery charging." msgstr "插上电源,电池正在充电。" #: doc/classes/OS.xml msgid "Plugged in, battery fully charged." msgstr "插上电源,电池充满电。" #: doc/classes/PackedDataContainerRef.xml msgid "Reference version of [PackedDataContainer]." msgstr "[PackedDataContainer] 的引用版本。" #: doc/classes/PackedScene.xml msgid "An abstraction of a serialized scene." msgstr "一个序列化场景的抽象。" #: doc/classes/PackedScene.xml msgid "" "A simplified interface to a scene file. Provides access to operations and " "checks that can be performed on the scene resource itself.\n" "Can be used to save a node to a file. When saving, the node as well as all " "the nodes it owns get saved (see [code]owner[/code] property on [Node]).\n" "[b]Note:[/b] The node doesn't need to own itself.\n" "[b]Example of loading a saved scene:[/b]\n" "[codeblock]\n" "# Use `load()` instead of `preload()` if the path isn't known at compile-" "time.\n" "var scene = preload(\"res://scene.tscn\").instance()\n" "# Add the node as a child of the node the script is attached to.\n" "add_child(scene)\n" "[/codeblock]\n" "[b]Example of saving a node with different owners:[/b] The following example " "creates 3 objects: [code]Node2D[/code] ([code]node[/code]), " "[code]RigidBody2D[/code] ([code]rigid[/code]) and [code]CollisionObject2D[/" "code] ([code]collision[/code]). [code]collision[/code] is a child of " "[code]rigid[/code] which is a child of [code]node[/code]. Only [code]rigid[/" "code] is owned by [code]node[/code] and [code]pack[/code] will therefore " "only save those two nodes, but not [code]collision[/code].\n" "[codeblock]\n" "# Create the objects.\n" "var node = Node2D.new()\n" "var rigid = RigidBody2D.new()\n" "var collision = CollisionShape2D.new()\n" "\n" "# Create the object hierarchy.\n" "rigid.add_child(collision)\n" "node.add_child(rigid)\n" "\n" "# Change owner of `rigid`, but not of `collision`.\n" "rigid.owner = node\n" "\n" "var scene = PackedScene.new()\n" "# Only `node` and `rigid` are now packed.\n" "var result = scene.pack(node)\n" "if result == OK:\n" " var error = ResourceSaver.save(\"res://path/name.scn\", scene) # Or " "\"user://...\"\n" " if error != OK:\n" " push_error(\"An error occurred while saving the scene to disk.\")\n" "[/codeblock]" msgstr "" "场景文件的简化接口。提供针对场景资源本身的操作和检查。\n" "可以用来将节点保存到文件中。当保存时,该节点以及它所拥有的所有节点都会被保存" "(请参阅 [Node] 中的属性 [code]owner[/code])。\n" "[b]注意:[/b]节点不需要拥有自己。\n" "[b]加载已保存场景的示例:[/b]\n" "[codeblock]\n" "# 如果在编译时不知道路径,就使用 `load()` 而不是 `preload()`。\n" "var scene = preload(\"res://scene.tscn\").instance()\n" "# 将该节点作为脚本所依附的节点的一个子节点。\n" "add_child(scene)\n" "[/codeblock]\n" "[b]保存具有不同所有者节点的例子:[/b]下面的例子创建了 3 个对象:" "[code]Node2D[/code]([code]node[/code])、[code]RigidBody2D[/code]" "([code]rigid[/code])、[code]CollisionObject2D[/code]([code]collision[/" "code])。[code]collision[/code] 是 [code]rigid[/code] 的子节点、rigid 是 " "[code]node[/code] 的子节点。只有 [code]rigid[/code] 被 [code]node[/code]拥" "有,因此 [code]pack[/code] 只会保存这两个节点,不会保存 [code]collision[/" "code]。\n" "[codeblock]\n" "# 创建对象。\n" "var node = Node2D.new()\n" "var rigid = RigidBody2D.new()\n" "var collision = CollisionShape2D.new()\n" "\n" "# 创建对象的层次结构。\n" "rigid.add_child(collision)\n" "node.add_child(rigid)\n" "\n" "# 改变 `rigid` 的所有者,但不改变 `collision` 的所有者。\n" "rigid.owner = node\n" "\n" "var scene = PackedScene.new()\n" "# 现在只有 `node` 和 `rigid` 被打包。\n" "var result = scene.pack(node)\n" "if result == OK:\n" " var error = ResourceSaver.save(\"res://path/name.scn\", scene) # 或者 " "\"user://...\"\n" " if error != OK:\n" " push_error(\"保存场景到磁盘时发生错误。\")\n" "[/codeblock]" #: doc/classes/PackedScene.xml msgid "Returns [code]true[/code] if the scene file has nodes." msgstr "如果场景文件有节点,返回 [code]true[/code]。" #: doc/classes/PackedScene.xml msgid "" "Returns the [code]SceneState[/code] representing the scene file contents." msgstr "返回代表场景文件内容的 [code]SceneState[/code]。" #: doc/classes/PackedScene.xml msgid "" "Instantiates the scene's node hierarchy. Triggers child scene " "instantiation(s). Triggers a [constant Node.NOTIFICATION_INSTANCED] " "notification on the root node." msgstr "" "实例化场景的节点层次结构。触发子场景实例化。在根节点上触发一个 [constant " "Node.NOTIFICATION_INSTANCED] 通知。" #: doc/classes/PackedScene.xml msgid "" "Pack will ignore any sub-nodes not owned by given node. See [member Node." "owner]." msgstr "包将忽略不属于给定节点的任何子节点。请参阅 [member Node.owner]。" #: doc/classes/PackedScene.xml msgid "" "A dictionary representation of the scene contents.\n" "Available keys include \"rnames\" and \"variants\" for resources, " "\"node_count\", \"nodes\", \"node_paths\" for nodes, \"editable_instances\" " "for base scene children overrides, \"conn_count\" and \"conns\" for signal " "connections, and \"version\" for the format style of the PackedScene." msgstr "" "场景内容的字典表示。\n" "可用的字段包括资源的“rnames”和“variants”,节点" "的“node_count”、“nodes”、“node_paths”,基本场景子级覆盖" "的“editable_instances”,信号连接的“conn_count”和“conns”,以及 PackedScene 格" "式样式的版本“version”。" #: doc/classes/PackedScene.xml msgid "If passed to [method instance], blocks edits to the scene state." msgstr "如果传递给[method instance],则阻止对场景状态的编辑。" #: doc/classes/PackedScene.xml msgid "" "If passed to [method instance], provides local scene resources to the local " "scene.\n" "[b]Note:[/b] Only available in editor builds." msgstr "" "如果传递给 [method instance],则向本地场景提供本地场景资源。\n" "[b]注意:[/b]只在编辑器构建中可用。" #: doc/classes/PackedScene.xml msgid "" "If passed to [method instance], provides local scene resources to the local " "scene. Only the main scene should receive the main edit state.\n" "[b]Note:[/b] Only available in editor builds." msgstr "" "如果传递给 [method instance],向本地场景提供本地场景资源。只有主场景应该接收" "主编辑状态。\n" "[b]注意:[/b]只在编辑器构建中可用。" #: doc/classes/PackedScene.xml msgid "" "It's similar to [constant GEN_EDIT_STATE_MAIN], but for the case where the " "scene is being instantiated to be the base of another one.\n" "[b]Note:[/b] Only available in editor builds." msgstr "" "与 [constant GEN_EDIT_STATE_MAIN] 类似,但适用于场景作为另一个场景的基类实例" "化的情况。\n" "[b]注意:[/b]仅在编辑器构建中可用。" #: modules/gltf/doc_classes/PackedSceneGLTF.xml msgid "" "[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF " "loading and saving is [i]not[/i] available in exported projects. References " "to [PackedSceneGLTF] within a script will cause an error in an exported " "project." msgstr "" "[b]注意:[/b]这个类仅在编辑器构建中编译。运行时 glTF 的加载与保存功能在导出后" "的项目中[i]不可用[/i]。脚本中对 [PackedSceneGLTF] 的引用在导出后的项目中会导" "致错误。" #: doc/classes/PacketPeer.xml msgid "Abstraction and base class for packet-based protocols." msgstr "基于包的协议的抽象和基类。" #: doc/classes/PacketPeer.xml msgid "" "PacketPeer is an abstraction and base class for packet-based protocols (such " "as UDP). It provides an API for sending and receiving packets both as raw " "data or variables. This makes it easy to transfer data over a protocol, " "without having to encode data as low-level bytes or having to worry about " "network ordering." msgstr "" "PacketPeer是基于数据包的协议(如UDP)的抽象和基类。它提供了一个API,用于发送" "和接收作为原始数据或变量的数据包。这使得通过协议传输数据变得很容易,而不必将" "数据编码为低级字节或担心网络顺序。" #: doc/classes/PacketPeer.xml msgid "Returns the number of packets currently available in the ring-buffer." msgstr "返回环形缓冲区中当前可用的数据包数。" #: doc/classes/PacketPeer.xml msgid "Gets a raw packet." msgstr "获取原始数据包。" #: doc/classes/PacketPeer.xml msgid "" "Returns the error state of the last packet received (via [method get_packet] " "and [method get_var])." msgstr "" "返回最后接收的数据包的错误状态(通过[method get_packet]和[method get_var])。" #: doc/classes/PacketPeer.xml msgid "" "Gets a Variant. If [code]allow_objects[/code] (or [member " "allow_object_decoding]) is [code]true[/code], decoding objects is allowed.\n" "[b]Warning:[/b] Deserialized objects can contain code which gets executed. " "Do not use this option if the serialized object comes from untrusted sources " "to avoid potential security threats such as remote code execution." msgstr "" "获取一个变量。如果[code]allow_objects[/code] 或 [member " "allow_object_decoding]为 [code]true[/code],则允许对对象进行解码。\n" "[b]警告:[/b]反序列化对象可能包含执行的代码。如果序列化对象来自不受信任的源," "请不要使用此选项,以避免潜在的安全威胁,如远程代码执行。" #: doc/classes/PacketPeer.xml msgid "Sends a raw packet." msgstr "发送一个原始数据包。" #: doc/classes/PacketPeer.xml msgid "" "Sends a [Variant] as a packet. If [code]full_objects[/code] (or [member " "allow_object_decoding]) is [code]true[/code], encoding objects is allowed " "(and can potentially include code)." msgstr "" "将[Variant]作为数据包发送。如果[code]full_objects[/code] 或 [member " "allow_object_decoding]为 [code]true[/code],则允许对对象进行编码(并且可能包" "含代码)。" #: doc/classes/PacketPeer.xml msgid "" "[i]Deprecated.[/i] Use [code]get_var[/code] and [code]put_var[/code] " "parameters instead.\n" "If [code]true[/code], the PacketPeer will allow encoding and decoding of " "object via [method get_var] and [method put_var].\n" "[b]Warning:[/b] Deserialized objects can contain code which gets executed. " "Do not use this option if the serialized object comes from untrusted sources " "to avoid potential security threats such as remote code execution." msgstr "" "[i]已废弃。[/i] 你应该使用 [code]get_var[/code] 和 [code]put_var[/code] 参数" "来代替它。\n" "如果[code]true[/code],多人游戏API将允许在RPC/RSETs期间对对象进行编码和解" "码。\n" "[b]警告:[/b]反序列化的对象可能包含会被执行的代码。如果序列化的对象来自不受信" "任的来源,请不要使用这个选项,以避免潜在的安全威胁,如远程代码执行。" #: doc/classes/PacketPeer.xml msgid "" "Maximum buffer size allowed when encoding [Variant]s. Raise this value to " "support heavier memory allocations.\n" "The [method put_var] method allocates memory on the stack, and the buffer " "used will grow automatically to the closest power of two to match the size " "of the [Variant]. If the [Variant] is bigger than " "[code]encode_buffer_max_size[/code], the method will error out with " "[constant ERR_OUT_OF_MEMORY]." msgstr "" "编码[Variant]时允许的最大缓冲区大小。提高此值以支持更大的内存分配。\n" "[method put_var]方法在堆栈上分配内存,使用的缓冲区将自动增长到最接近的二次" "方,以匹配[Variant]的大小。如果[Variant]大于 [code]encode_buffer_max_size[/" "code],则该方法将以[constant ERR_OUT_OF_MEMORY]出错。" #: doc/classes/PacketPeerDTLS.xml msgid "DTLS packet peer." msgstr "DTLS数据包客户端。" #: doc/classes/PacketPeerDTLS.xml msgid "" "This class represents a DTLS peer connection. It can be used to connect to a " "DTLS server, and is returned by [method DTLSServer.take_connection].\n" "[b]Warning:[/b] SSL/TLS certificate revocation and certificate pinning are " "currently not supported. Revoked certificates are accepted as long as they " "are otherwise valid. If this is a concern, you may want to use automatically " "managed certificates with a short validity period." msgstr "" "这个类表示 DTLS 对等连接。它可以用来连接到 DTLS 服务器,由 [method " "DTLSServer.take_connection] 返回。\n" "[b]警告:[/b]当前不支持 SSL/TLS 证书撤销和证书固定。只要撤销的证书在其他情况" "下是有效的,都将被接受。如果这是一个问题,您可能希望使用具有短有效期的自动管" "理证书。" #: doc/classes/PacketPeerDTLS.xml msgid "" "Connects a [code]peer[/code] beginning the DTLS handshake using the " "underlying [PacketPeerUDP] which must be connected (see [method " "PacketPeerUDP.connect_to_host]). If [code]validate_certs[/code] is " "[code]true[/code], [PacketPeerDTLS] will validate that the certificate " "presented by the remote peer and match it with the [code]for_hostname[/code] " "argument. You can specify a custom [X509Certificate] to use for validation " "via the [code]valid_certificate[/code] argument." msgstr "" "使用必须连接的底层[PacketPeerUDP](见[method PacketPeerUDP.connect_to_host])" "连接一个[code]peer[/code],开始DTLS握手过程。如果[code]validate_certs[/code]" "是[code]true[/code],[PacketPeerDTLS]将验证远程对等体提交的证书并与" "[code]for_hostname[/code]参数匹配。你可以通过[code]valid_certificate[/code]参" "数指定一个自定义的[X509Certificate]来进行验证。" #: doc/classes/PacketPeerDTLS.xml msgid "Disconnects this peer, terminating the DTLS session." msgstr "断开此对等体的连接,终止DTLS会话。" #: doc/classes/PacketPeerDTLS.xml doc/classes/StreamPeerSSL.xml msgid "Returns the status of the connection. See [enum Status] for values." msgstr "返回连接的状态。有关值,请参阅[enum Status]。" #: doc/classes/PacketPeerDTLS.xml msgid "" "Poll the connection to check for incoming packets. Call this frequently to " "update the status and keep the connection working." msgstr "" "轮询连接以检查传入的数据包。经常调用此选项以更新状态并保持连接正常工作。" #: doc/classes/PacketPeerDTLS.xml msgid "A status representing a [PacketPeerDTLS] that is disconnected." msgstr "表示已断开连接的[PacketPeerDTLS]的状态。" #: doc/classes/PacketPeerDTLS.xml msgid "" "A status representing a [PacketPeerDTLS] that is currently performing the " "handshake with a remote peer." msgstr "表示当前正在与远程对等方进行握手的[PacketPeerDTLS]的状态。" #: doc/classes/PacketPeerDTLS.xml msgid "" "A status representing a [PacketPeerDTLS] that is connected to a remote peer." msgstr "表示连接到远程对等方的[PacketPeerDTLS]的状态。" #: doc/classes/PacketPeerDTLS.xml msgid "A status representing a [PacketPeerDTLS] in a generic error state." msgstr "表示处于一般错误状态的[PacketPeerDTLS]的状态。" #: doc/classes/PacketPeerDTLS.xml msgid "" "An error status that shows a mismatch in the DTLS certificate domain " "presented by the host and the domain requested for validation." msgstr "显示主机提供的DTLS证书域与请求验证的域不匹配的错误状态。" #: doc/classes/PacketPeerStream.xml msgid "Wrapper to use a PacketPeer over a StreamPeer." msgstr "在StreamPeer上使用PacketPeer的包装器。" #: doc/classes/PacketPeerStream.xml msgid "" "PacketStreamPeer provides a wrapper for working using packets over a stream. " "This allows for using packet based code with StreamPeers. PacketPeerStream " "implements a custom protocol over the StreamPeer, so the user should not " "read or write to the wrapped StreamPeer directly." msgstr "" "PacketStreamPeer提供了一个包装器,用于在流上使用数据包工作。这允许在" "StreamPeer上使用基于数据包的代码。PacketPeerStream在StreamPeer上实现了一个自" "定义的协议,所以用户不应该直接读或写到被包装的StreamPeer上。" #: doc/classes/PacketPeerStream.xml msgid "The wrapped [StreamPeer] object." msgstr "被·包装的[StreamPeer]对象。" #: doc/classes/PacketPeerUDP.xml msgid "UDP packet peer." msgstr "UDP数据包客户端。" #: doc/classes/PacketPeerUDP.xml msgid "" "UDP packet peer. Can be used to send raw UDP packets as well as [Variant]s." msgstr "UDP数据包对等体。可以用来发送原始的UDP数据包以及[Variant]。" #: doc/classes/PacketPeerUDP.xml msgid "Closes the UDP socket the [PacketPeerUDP] is currently listening on." msgstr "关闭[PacketPeerUDP]当前正在侦听的UDP套接字。" #: doc/classes/PacketPeerUDP.xml msgid "" "Calling this method connects this UDP peer to the given [code]host[/code]/" "[code]port[/code] pair. UDP is in reality connectionless, so this option " "only means that incoming packets from different addresses are automatically " "discarded, and that outgoing packets are always sent to the connected " "address (future calls to [method set_dest_address] are not allowed). This " "method does not send any data to the remote peer, to do that, use [method " "PacketPeer.put_var] or [method PacketPeer.put_packet] as usual. See also " "[UDPServer].\n" "[b]Note:[/b] Connecting to the remote peer does not help to protect from " "malicious attacks like IP spoofing, etc. Think about using an encryption " "technique like SSL or DTLS if you feel like your application is transferring " "sensitive information." msgstr "" "调用此方法将UDP对等体连接到给定的[code]host[/code]/[code]port[/code]对。UDP实" "际上是无连接的,所以这个选项只意味着来自不同地址的入包被自动丢弃,而出包总是" "被发送到连接的地址(不允许将来调用[method set_dest_address])。该方法不向远程对" "等体发送任何数据,要发送数据,请使用[method PacketPeer.put_var]或[method " "PacketPeer.put_packet]。参见[UDPServer]。\n" "[b]注意:[/b]连接到远程对等体并不能防止IP欺骗等恶意攻击。如果您觉得您的应用程" "序正在传输敏感信息,可以考虑使用SSL或DTLS等加密技术。" #: doc/classes/PacketPeerUDP.xml msgid "" "Returns the IP of the remote peer that sent the last packet(that was " "received with [method PacketPeer.get_packet] or [method PacketPeer.get_var])." msgstr "" "返回发送最后一个数据包(通过[method PacketPeer.get_packet]或[method " "PacketPeer.get_var]接收)的远程对等体的IP。" #: doc/classes/PacketPeerUDP.xml msgid "" "Returns the port of the remote peer that sent the last packet(that was " "received with [method PacketPeer.get_packet] or [method PacketPeer.get_var])." msgstr "" "返回发送最后一个数据包(通过[method PacketPeer.get_packet]或[method " "PacketPeer.get_var]接收)的远程对等方的端口。" #: doc/classes/PacketPeerUDP.xml msgid "" "Returns [code]true[/code] if the UDP socket is open and has been connected " "to a remote address. See [method connect_to_host]." msgstr "" "如果UDP套接字已打开并已连接到远程地址,则返回 [code]true[/code]。请参阅" "[method connect_to_host]。" #: doc/classes/PacketPeerUDP.xml msgid "Returns whether this [PacketPeerUDP] is listening." msgstr "返回这个[PacketPeerUDP]是否正在监听。" #: doc/classes/PacketPeerUDP.xml msgid "" "Joins the multicast group specified by [code]multicast_address[/code] using " "the interface identified by [code]interface_name[/code].\n" "You can join the same multicast group with multiple interfaces. Use [method " "IP.get_local_interfaces] to know which are available.\n" "[b]Note:[/b] Some Android devices might require the " "[code]CHANGE_WIFI_MULTICAST_STATE[/code] permission for multicast to work." msgstr "" "使用 [code]interface_name[/code] 标识的接口加入 [code]multicast_address[/" "code] 指定的多播组。\n" "您可以使用多个接口加入同一个多播组。使用 [method IP.get_local_interfaces] 了" "解哪些接口可用。\n" "[b]注意:[/b]一些 Android 设备可能需要 [code]CHANGE_WIFI_MULTICAST_STATE[/" "code] 权限才能进行多播。" #: doc/classes/PacketPeerUDP.xml msgid "" "Removes the interface identified by [code]interface_name[/code] from the " "multicast group specified by [code]multicast_address[/code]." msgstr "" "从[code]multicast_address[/code]指定的组播组中移除[code]interface_name[/code]" "标识的接口。" #: doc/classes/PacketPeerUDP.xml msgid "" "Makes this [PacketPeerUDP] listen on the [code]port[/code] binding to " "[code]bind_address[/code] with a buffer size [code]recv_buf_size[/code].\n" "If [code]bind_address[/code] is set to [code]\"*\"[/code] (default), the " "peer will listen on all available addresses (both IPv4 and IPv6).\n" "If [code]bind_address[/code] is set to [code]\"0.0.0.0\"[/code] (for IPv4) " "or [code]\"::\"[/code] (for IPv6), the peer will listen on all available " "addresses matching that IP type.\n" "If [code]bind_address[/code] is set to any valid address (e.g. " "[code]\"192.168.1.101\"[/code], [code]\"::1\"[/code], etc), the peer will " "only listen on the interface with that addresses (or fail if no interface " "with the given address exists)." msgstr "" "使这个[PacketPeerUDP]在与[code]bind_address[/code]绑定的[code]端口[/code]上监" "听,缓冲区大小为[code]recv_buf_size[/code]。\n" "如果[code]bind_address[/code]被设置为[code]\"*\"[/code](默认),对等体将监听" "所有可用地址(包括IPv4和IPv6)。\n" "如果[code]bind_address[/code]被设置为[code]\"0.0.0.0\"[/code](对于IPv4)或" "[code]\":\"[/code](对于IPv6),对等体将监听所有符合该IP类型的可用地址。\n" "如果[code]bind_address[/code]被设置为任何有效的地址(例如" "[code]\"192.168.1.101\"[/code],[code]\":1\"[/code]等),对等体将只监听具有该" "地址的接口(如果不存在具有该地址的接口,则失败)。" #: doc/classes/PacketPeerUDP.xml msgid "" "Enable or disable sending of broadcast packets (e.g. " "[code]set_dest_address(\"255.255.255.255\", 4343)[/code]. This option is " "disabled by default.\n" "[b]Note:[/b] Some Android devices might require the " "[code]CHANGE_WIFI_MULTICAST_STATE[/code] permission and this option to be " "enabled to receive broadcast packets too." msgstr "" "启用或禁用广播数据包的发送(例如:" "[code]set_dest_address(\"255.255.255.255\", 4343)[/code]。这个选项在默认情况" "下是禁用的。\n" "[b]注意:[/b]一些 Android 设备可能需要 [code]CHANGE_WIFI_MULTICAST_STATE[/" "code] 权限和本选项被启用来接收广播包。" #: doc/classes/PacketPeerUDP.xml msgid "" "Sets the destination address and port for sending packets and variables. A " "hostname will be resolved using DNS if needed.\n" "[b]Note:[/b] [method set_broadcast_enabled] must be enabled before sending " "packets to a broadcast address (e.g. [code]255.255.255.255[/code])." msgstr "" "设置发送数据包和变量的目标地址和端口。如果需要,将使用DNS解析一个主机名。\n" "[b]注意:[/b]在向广播地址(例如:[code]255.255.255.255[/code])发送数据包之" "前,必须启用[method set_broadcast_enabled]。" #: doc/classes/PacketPeerUDP.xml msgid "" "Waits for a packet to arrive on the listening port. See [method listen].\n" "[b]Note:[/b] [method wait] can't be interrupted once it has been called. " "This can be worked around by allowing the other party to send a specific " "\"death pill\" packet like this:\n" "[codeblock]\n" "# Server\n" "socket.set_dest_address(\"127.0.0.1\", 789)\n" "socket.put_packet(\"Time to stop\".to_ascii())\n" "\n" "# Client\n" "while socket.wait() == OK:\n" " var data = socket.get_packet().get_string_from_ascii()\n" " if data == \"Time to stop\":\n" " return\n" "[/codeblock]" msgstr "" "等待数据包到达侦听端口。参见[method listen]。\n" "[b]注意:[/b][method wait]一旦被调用就不能被中断。这可以通过允许另一方发送一" "个特定的“death pill”包来解决,如下所示:\n" "[codeblock]\n" "# Server\n" "socket.set_dest_address(\"127.0.0.1\", 789)\n" "socket.put_packet(\"Time to stop\".to_ascii())\n" "\n" "# Client\n" "while socket.wait() == OK:\n" " var data = socket.get_packet().get_string_from_ascii()\n" " if data == \"Time to stop\":\n" " return\n" "[/codeblock]" #: doc/classes/Panel.xml msgid "Provides an opaque background for [Control] children." msgstr "为[Control]子控件提供不透明的背景。" #: doc/classes/Panel.xml msgid "" "Panel is a [Control] that displays an opaque background. It's commonly used " "as a parent and container for other types of [Control] nodes." msgstr "" "面板是一个显示不透明背景的[Control]。它通常用作其他类型的[Control]节点的父节" "点和容器。" #: doc/classes/Panel.xml msgid "2D Finite State Machine Demo" msgstr "2D 有限状态机演示" #: doc/classes/Panel.xml doc/classes/Skeleton.xml doc/classes/SkeletonIK.xml msgid "3D Inverse Kinematics Demo" msgstr "3D 逆运动学演示" #: doc/classes/Panel.xml msgid "The style of this [Panel]." msgstr "这个 [Panel] 的样式。" #: doc/classes/PanelContainer.xml msgid "Panel container type." msgstr "面板容器类型。" #: doc/classes/PanelContainer.xml msgid "" "Panel container type. This container fits controls inside of the delimited " "area of a stylebox. It's useful for giving controls an outline." msgstr "" "面板容器类型。此容器会将控件放入样式盒所框定的区域内,方便为控件提供轮廓。" #: doc/classes/PanelContainer.xml msgid "The style of [PanelContainer]'s background." msgstr "[PanelContainer] 的背景样式。" #: doc/classes/PanoramaSky.xml msgid "A type of [Sky] used to draw a background texture." msgstr "一种用来绘制背景贴图的 [Sky]。" #: doc/classes/PanoramaSky.xml msgid "" "A resource referenced in an [Environment] that is used to draw a background. " "The Panorama sky functions similar to skyboxes in other engines, except it " "uses an equirectangular sky map instead of a cube map.\n" "Using an HDR panorama is strongly recommended for accurate, high-quality " "reflections. Godot supports the Radiance HDR ([code].hdr[/code]) and OpenEXR " "([code].exr[/code]) image formats for this purpose.\n" "You can use [url=https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/" "cubemap_to_panorama.html]this tool[/url] to convert a cube map to an " "equirectangular sky map." msgstr "" "在 [Environment] 中引用的用于绘制背景的资源。全景天空的功能类似于其他引擎的天" "空盒,区别在于它使用的是等距圆柱投影的天空贴图而不是立方体贴图。\n" "强烈建议使用 HDR 全景图,以获得准确、高质量的反射。为此,Godot 支持 Radiance " "HDR([code].hdr[/code])和 OpenEXR([code].exr[/code])图像格式。\n" "您可以使用[url=https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/" "cubemap_to_panorama.html]这个工具[/url]将立方体贴图转换为等距圆柱投影的天空贴" "图。" #: doc/classes/PanoramaSky.xml msgid "[Texture] to be applied to the PanoramaSky." msgstr "将被应用到 PanoramaSky 的 [Texture]。" #: doc/classes/ParallaxBackground.xml msgid "A node used to create a parallax scrolling background." msgstr "用于创建视差滚动背景的节点。" #: doc/classes/ParallaxBackground.xml msgid "" "A ParallaxBackground uses one or more [ParallaxLayer] child nodes to create " "a parallax effect. Each [ParallaxLayer] can move at a different speed using " "[member ParallaxLayer.motion_offset]. This creates an illusion of depth in a " "2D game. If not used with a [Camera2D], you must manually calculate the " "[member scroll_offset]." msgstr "" "ParallaxBackground 使用一个或多个 [ParallaxLayer] 子节点来创建视差效果。每个 " "[ParallaxLayer] 可以使用 [member ParallaxLayer.motion_offset] 以不同的速度移" "动。这在 2D 游戏中可以创造一种深度错觉。如果没有与 [Camera2D] 一起使用,你必" "须手动计算 [member scroll_offset]。" #: doc/classes/ParallaxBackground.xml msgid "The base position offset for all [ParallaxLayer] children." msgstr "所有 [ParallaxLayer] 子元素的基本位置偏移。" #: doc/classes/ParallaxBackground.xml msgid "The base motion scale for all [ParallaxLayer] children." msgstr "所有 [ParallaxLayer] 子元素的基本移动比例。" #: doc/classes/ParallaxBackground.xml msgid "" "If [code]true[/code], elements in [ParallaxLayer] child aren't affected by " "the zoom level of the camera." msgstr "" "为 [code]true[/code] 时,[ParallaxLayer] 子元素将不受相机缩放级别的影响。" #: doc/classes/ParallaxBackground.xml msgid "" "Top-left limits for scrolling to begin. If the camera is outside of this " "limit, the background will stop scrolling. Must be lower than [member " "scroll_limit_end] to work." msgstr "" "开始滚动的左上角限制。如果相机超出这个限制,背景将停止滚动。必须低于[member " "scroll_limit_end]才能工作。" #: doc/classes/ParallaxBackground.xml msgid "" "Bottom-right limits for scrolling to end. If the camera is outside of this " "limit, the background will stop scrolling. Must be higher than [member " "scroll_limit_begin] to work." msgstr "" "右下角限制滚动结束。如果相机超出这个限制,背景将停止滚动。必须高于[member " "scroll_limit_begin]才能工作。" #: doc/classes/ParallaxBackground.xml msgid "" "The ParallaxBackground's scroll value. Calculated automatically when using a " "[Camera2D], but can be used to manually manage scrolling when no camera is " "present." msgstr "" "视差背景的滚动值。使用[Camera2D]时自动计算,但可用于手动管理无摄像头时的滚" "动。" #: doc/classes/ParallaxLayer.xml msgid "A parallax scrolling layer to be used with [ParallaxBackground]." msgstr "使用 [ParallaxBackground] 的视差滚动层。" #: doc/classes/ParallaxLayer.xml msgid "" "A ParallaxLayer must be the child of a [ParallaxBackground] node. Each " "ParallaxLayer can be set to move at different speeds relative to the camera " "movement or the [member ParallaxBackground.scroll_offset] value.\n" "This node's children will be affected by its scroll offset.\n" "[b]Note:[/b] Any changes to this node's position and scale made after it " "enters the scene will be ignored." msgstr "" "ParallaxLayer 必须是 [ParallaxBackground] 节点的子节点。每个 ParallaxLayer 都" "可以设置为相对于相机移动或 [member ParallaxBackground.scroll_offset] 值。\n" "该节点的子节点将受其滚动偏移量的影响。\n" "[b]注意:[/b]当该节点进入场景后,对其位置和比例的任何改变都将被忽略。" #: doc/classes/ParallaxLayer.xml msgid "" "The ParallaxLayer's [Texture] mirroring. Useful for creating an infinite " "scrolling background. If an axis is set to [code]0[/code], the [Texture] " "will not be mirrored." msgstr "" "视差图层的[Texture]镜像。用于创建无限滚动的背景。如果一个轴被设置为[code]0[/" "code], [Texture]将不会被镜像。" #: doc/classes/ParallaxLayer.xml msgid "" "The ParallaxLayer's offset relative to the parent ParallaxBackground's " "[member ParallaxBackground.scroll_offset]." msgstr "" "ParallaxLayer相对于父ParallaxBackground的偏移量[member ParallaxBackground." "scroll_offset]。" #: doc/classes/ParallaxLayer.xml msgid "" "Multiplies the ParallaxLayer's motion. If an axis is set to [code]0[/code], " "it will not scroll." msgstr "复制视差图层的运动。如果一个轴被设置为[code]0[/code],它将不会滚动。" #: doc/classes/Particles.xml msgid "GPU-based 3D particle emitter." msgstr "基于GPU的3D粒子发射器。" #: doc/classes/Particles.xml msgid "" "3D particle node used to create a variety of particle systems and effects. " "[Particles] features an emitter that generates some number of particles at a " "given rate.\n" "Use the [code]process_material[/code] property to add a [ParticlesMaterial] " "to configure particle appearance and behavior. Alternatively, you can add a " "[ShaderMaterial] which will be applied to all particles.\n" "[b]Note:[/b] [Particles] only work when using the GLES3 renderer. If using " "the GLES2 renderer, use [CPUParticles] instead. You can convert [Particles] " "to [CPUParticles] by selecting the node, clicking the [b]Particles[/b] menu " "at the top of the 3D editor viewport then choosing [b]Convert to " "CPUParticles[/b].\n" "[b]Note:[/b] On macOS, [Particles] rendering is much slower than " "[CPUParticles] due to transform feedback being implemented on the CPU " "instead of the GPU. Consider using [CPUParticles] instead when targeting " "macOS.\n" "[b]Note:[/b] After working on a Particles node, remember to update its " "[member visibility_aabb] by selecting it, clicking the [b]Particles[/b] menu " "at the top of the 3D editor viewport then choose [b]Generate Visibility " "AABB[/b]. Otherwise, particles may suddenly disappear depending on the " "camera position and angle." msgstr "" "用于创建各种粒子系统和效果的 3D 粒子节点。[Particles] 实现了是发射器以给定的" "速率产生一定数量的粒子。\n" "使用 [code]process_material[/code] 属性添加 [ParticlesMaterial] 来配置粒子外" "观和行为。或者,您可以添加一个将应用于所有粒子的 [ShaderMaterial]。\n" "[b]注意:[/b][Particles] 仅在使用 GLES3 渲染器时有效。如果使用 GLES2 渲染器," "请改用 [CPUParticles]。您可以通过选择节点,单击 3D 编辑器视窗顶部的" "[b]Particles[/b]菜单,然后选择[b]转换为 CPUParticles[/b],将 [Particles] 转换" "为 [CPUParticles]。\n" "[b]注意:[/b]在 macOS 上,渲染 [Particles] 比 [CPUParticles] 要慢上很多,因为" "变换反馈是在 CPU 上实现的,而不是 GPU。以 macOS 为目标时,请考虑使用 " "[CPUParticles]。\n" "[b]注意:[/b]在处理粒子节点后,记得通过选择它来更新其 [member " "visibility_aabb],单击 3D 编辑器视窗顶部的[b]Particles[/b]菜单,然后选择[b]生" "成可见 AABB[/b]。否则,粒子可能会由于相机位置和角度的改变突然消失。" #: doc/classes/Particles.xml msgid "Controlling thousands of fish with Particles" msgstr "用粒子控制数千条鱼" #: doc/classes/Particles.xml msgid "" "Returns the axis-aligned bounding box that contains all the particles that " "are active in the current frame." msgstr "返回包含当前帧中所有活动粒子的轴对齐包围盒。" #: doc/classes/Particles.xml msgid "Returns the [Mesh] that is drawn at index [code]pass[/code]." msgstr "返回在索引 [code]pass[/code] 处绘制的 [Mesh] 。" #: doc/classes/Particles.xml msgid "Restarts the particle emission, clearing existing particles." msgstr "重新发射粒子,清除现有的粒子。" #: doc/classes/Particles.xml msgid "Sets the [Mesh] that is drawn at index [code]pass[/code]." msgstr "设置在索引 [code]pass[/code] 处绘制的 [Mesh] 。" #: doc/classes/Particles.xml msgid "[Mesh] that is drawn for the first draw pass." msgstr "第一绘制阶段所绘制的 [Mesh]。" #: doc/classes/Particles.xml msgid "[Mesh] that is drawn for the second draw pass." msgstr "第二绘制阶段所绘制的 [Mesh]。" #: doc/classes/Particles.xml msgid "[Mesh] that is drawn for the third draw pass." msgstr "第三绘制阶段所绘制的 [Mesh]。" #: doc/classes/Particles.xml msgid "[Mesh] that is drawn for the fourth draw pass." msgstr "第四绘制阶段所绘制的 [Mesh]。" #: doc/classes/Particles.xml msgid "The number of draw passes when rendering particles." msgstr "渲染粒子时的绘制阶段数。" #: doc/classes/Particles.xml msgid "" "Time ratio between each emission. If [code]0[/code], particles are emitted " "continuously. If [code]1[/code], all particles are emitted simultaneously." msgstr "" "每次发射之间的时间比。如果为 [code]0[/code],则粒子是连续发射的。如果为 " "[code]1[/code],则所有的粒子都同时发射。" #: doc/classes/Particles.xml msgid "" "If [code]true[/code], only [code]amount[/code] particles will be emitted." msgstr "如果为 [code]true[/code],将只发出 [code]amount[/code] 数量的粒子。" #: doc/classes/Particles.xml msgid "" "Amount of time to preprocess the particles before animation starts. Lets you " "start the animation some time after particles have started emitting." msgstr "" "动画开始前对粒子进行预处理的时间。让你在粒子开始发射后的一段时间内开始动画。" #: doc/classes/Particles.xml doc/classes/Particles2D.xml msgid "" "[Material] for processing particles. Can be a [ParticlesMaterial] or a " "[ShaderMaterial]." msgstr "" "用于处理粒子的 [Material] 。可以是一个 [ParticlesMaterial] 或一个 " "[ShaderMaterial] 。" #: doc/classes/Particles.xml msgid "Emission randomness ratio." msgstr "发出随机率。" #: doc/classes/Particles.xml msgid "" "Speed scaling ratio. A value of [code]0[/code] can be used to pause the " "particles." msgstr "速度缩放比。值为 [code]0[/code] 时可暂停粒子。" #: doc/classes/Particles.xml msgid "" "The [AABB] that determines the node's region which needs to be visible on " "screen for the particle system to be active.\n" "Grow the box if particles suddenly appear/disappear when the node enters/" "exits the screen. The [AABB] can be grown via code or with the [b]Particles " "→ Generate AABB[/b] editor tool.\n" "[b]Note:[/b] If the [ParticlesMaterial] in use is configured to cast " "shadows, you may want to enlarge this AABB to ensure the shadow is updated " "when particles are off-screen." msgstr "" "[AABB] 确定节点的区域,该区域需要在屏幕上可见才能使粒子系统处于活动状态。\n" "如果在节点进入/退出屏幕时粒子突然出现/消失,则增大框。 [AABB] 可以通过代码或" "使用 [b]Particles → Generate AABB[/b] 编辑器工具生成。\n" "[b]注意:[/b]如果使用中的 [ParticlesMaterial] 配置为投射阴影,您可能需要放大" "此 AABB 以确保在粒子离屏时更新阴影。" #: doc/classes/Particles.xml msgid "Maximum number of draw passes supported." msgstr "支持的最大绘制阶段数。" #: doc/classes/Particles2D.xml msgid "GPU-based 2D particle emitter." msgstr "基于 GPU 的 2D 粒子发射器。" #: doc/classes/Particles2D.xml msgid "" "2D particle node used to create a variety of particle systems and effects. " "[Particles2D] features an emitter that generates some number of particles at " "a given rate.\n" "Use the [code]process_material[/code] property to add a [ParticlesMaterial] " "to configure particle appearance and behavior. Alternatively, you can add a " "[ShaderMaterial] which will be applied to all particles.\n" "[b]Note:[/b] [Particles2D] only work when using the GLES3 renderer. If using " "the GLES2 renderer, use [CPUParticles2D] instead. You can convert " "[Particles2D] to [CPUParticles2D] by selecting the node, clicking the " "[b]Particles[/b] menu at the top of the 2D editor viewport then choosing " "[b]Convert to CPUParticles2D[/b].\n" "[b]Note:[/b] On macOS, [Particles2D] rendering is much slower than " "[CPUParticles2D] due to transform feedback being implemented on the CPU " "instead of the GPU. Consider using [CPUParticles2D] instead when targeting " "macOS.\n" "[b]Note:[/b] After working on a Particles node, remember to update its " "[member visibility_rect] by selecting it, clicking the [b]Particles[/b] menu " "at the top of the 2D editor viewport then choose [b]Generate Visibility " "Rect[/b]. Otherwise, particles may suddenly disappear depending on the " "camera position and angle.\n" "[b]Note:[/b] Unlike [CPUParticles2D], [Particles2D] currently ignore the " "texture region defined in [AtlasTexture]s." msgstr "" "用于创建各种粒子系统和效果的 2D 粒子节点。 [Particles2D] 具有一个发射器,可以" "以给定的速率生成一定数量的粒子。\n" "使用 [code]process_material[/code] 属性添加 [ParticlesMaterial] 以配置粒子外" "观和行为。或者,您可以添加将应用于所有粒子的 [ShaderMaterial]。\n" "[b]注意:[/b][Particles2D] 仅在使用 GLES3 渲染器时有效。如果使用 GLES2 渲染" "器,请改用 [CPUParticles2D]。您可以通过选择节点将 [Particles2D] 转换为 " "[CPUParticles2D],单击 2D 编辑器视口顶部的[b]Particles[/b]菜单,然后选择[b]转" "换为 CPUParticles2D[/b]。\n" "[b]注意:[/b]在 macOS 上,渲染 [Particles2D] 比 [CPUParticles2D] 要慢上很多," "因为变换反馈是在 CPU 上实现的,而不是 GPU。以 macOS 为目标时,请考虑使用 " "[CPUParticles2D]。\n" "[b]注意:[/b]在粒子节点上工作后,记得通过选择它来更新它的 [member " "visibility_rect],单击 2D 编辑器视口顶部的[b]Particles[/b]菜单,然后选择[b]生" "成可见矩形[/b]。否则,根据相机位置和角度,粒子可能会突然消失。\n" "[b]注意:[/b]与 [CPUParticles2D] 不同,[Particles2D] 目前会忽略 " "[AtlasTexture] 中定义的纹理区域。" #: doc/classes/Particles2D.xml msgid "Particle systems (2D)" msgstr "粒子系统(2D)" #: doc/classes/Particles2D.xml msgid "Returns a rectangle containing the positions of all existing particles." msgstr "返回一个包含所有现存粒子位置的矩形。" #: doc/classes/Particles2D.xml msgid "Restarts all the existing particles." msgstr "重新启动所有现有的粒子。" #: doc/classes/Particles2D.xml msgid "" "The [Rect2] that determines the node's region which needs to be visible on " "screen for the particle system to be active.\n" "Grow the rect if particles suddenly appear/disappear when the node enters/" "exits the screen. The [Rect2] can be grown via code or with the [b]Particles " "→ Generate Visibility Rect[/b] editor tool." msgstr "" "[Rect2] 确定节点的区域,该区域需要在屏幕上可见才能使粒子系统处于活动状态。\n" "如果当节点进入/退出屏幕时粒子突然出现/消失,则增长矩形。 [Rect2] 可以通过代码" "或使用 [b]Particles → Generate Visibility Rect[/b] 编辑器工具生成。" #: doc/classes/ParticlesMaterial.xml msgid "Particle properties for [Particles] and [Particles2D] nodes." msgstr "[Particles] 和 [Particles2D] 节点的粒子属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "ParticlesMaterial defines particle properties and behavior. It is used in " "the [code]process_material[/code] of [Particles] and [Particles2D] emitter " "nodes.\n" "Some of this material's properties are applied to each particle when " "emitted, while others can have a [CurveTexture] applied to vary values over " "the lifetime of the particle.\n" "When a randomness ratio is applied to a property it is used to scale that " "property by a random amount. The random ratio is used to interpolate between " "[code]1.0[/code] and a random number less than one, the result is multiplied " "by the property to obtain the randomized property. For example a random " "ratio of [code]0.4[/code] would scale the original property between " "[code]0.4-1.0[/code] of its original value." msgstr "" "ParticlesMaterial定义了粒子的属性和行为。它可用于[Particles]和[Particles2D]发" "射器节点的[code]process_material[/code]中。\n" "这个材质的一些属性在发射时被应用到每个粒子上,而其他属性可以应用" "[CurveTexture]来在粒子的生命周期中改变数值。\n" "当随机性比率被应用到一个属性时,用来以一个随机量来扩展该属性。随机率用来在" "[code]1.0[/code]和一个小于1的随机数之间插值,结果乘以属性,得到随机的属性。例" "如,一个[code]0.4[/code]的随机比率将在[code]0.4-1.0[/code]之间缩放原始属性的" "原值。" #: doc/classes/ParticlesMaterial.xml msgid "Returns [code]true[/code] if the specified flag is enabled." msgstr "如果指定的Flag被启用,返回 [code]true[/code]。" #: doc/classes/ParticlesMaterial.xml msgid "Returns the randomness ratio associated with the specified parameter." msgstr "返回与指定参数关联的随机比率。" #: doc/classes/ParticlesMaterial.xml msgid "Returns the [Texture] used by the specified parameter." msgstr "返回指定参数使用的 [Texture]。" #: doc/classes/ParticlesMaterial.xml msgid "" "If [code]true[/code], enables the specified flag. See [enum Flags] for " "options." msgstr "如果[code]true[/code],启用指定的Flag。选项请参阅[enum Flags]。" #: doc/classes/ParticlesMaterial.xml msgid "Sets the specified [enum Parameter]." msgstr "设置指定的 [enum Parameter]。" #: doc/classes/ParticlesMaterial.xml msgid "Sets the randomness ratio for the specified [enum Parameter]." msgstr "为指定的 [enum Parameter] 设置随机比率。" #: doc/classes/ParticlesMaterial.xml msgid "Sets the [Texture] for the specified [enum Parameter]." msgstr "为指定的 [enum Parameter] 设置 [Texture]。" #: doc/classes/ParticlesMaterial.xml msgid "" "Initial rotation applied to each particle, in degrees.\n" "[b]Note:[/b] Only applied when [member flag_disable_z] or [member " "flag_rotate_y] are [code]true[/code] or the [SpatialMaterial] being used to " "draw the particle is using [constant SpatialMaterial.BILLBOARD_PARTICLES]." msgstr "" "应用于每个粒子的初始旋转,以度为单位。\n" "[b]注意:[/b]仅在 [member flag_disable_z] 或 [member flag_rotate_y] 为 " "[code]true[/code] 或用于绘制粒子的 [SpatialMaterial] 使用 [constant " "SpatialMaterial.BILLBOARD_PARTICLES] 时应用。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's rotation will be animated along this [CurveTexture]." msgstr "每个粒子的旋转将沿着这个 [CurveTexture] 动画。" #: doc/classes/ParticlesMaterial.xml msgid "" "Initial angular velocity applied to each particle in [i]degrees[/i] per " "second. Sets the speed of rotation of the particle.\n" "[b]Note:[/b] Only applied when [member flag_disable_z] or [member " "flag_rotate_y] are [code]true[/code] or the [SpatialMaterial] being used to " "draw the particle is using [constant SpatialMaterial.BILLBOARD_PARTICLES]." msgstr "" "应用于每个粒子的初始角速度,单位为[i]度[/i]每秒。设置粒子的旋转速度。\n" "[b]注意:[/b]仅在 [member flag_disable_z] 或 [member flag_rotate_y] 为 " "[code]true[/code] 或用于绘制粒子的 [SpatialMaterial] 使用 [constant " "SpatialMaterial.BILLBOARD_PARTICLES] 时应用。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's angular velocity will vary along this [CurveTexture]." msgstr "每个粒子的角速度将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's animation offset will vary along this [CurveTexture]." msgstr "每个粒子的动画偏移将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's animation speed will vary along this [CurveTexture]." msgstr "每个粒子的动画速度将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Each particle's initial color. If the [Particles2D]'s [code]texture[/code] " "is defined, it will be multiplied by this color. To have particle display " "color in a [SpatialMaterial] make sure to set [member SpatialMaterial." "vertex_color_use_as_albedo] to [code]true[/code]." msgstr "" "每个粒子的初始颜色。如果定义了 [Particles2D] 的 [code]texture[/code],它将乘" "以该颜色。要在 [SpatialMaterial] 中使用粒子显示颜色,请确保将 [member " "SpatialMaterial.vertex_color_use_as_albedo] 设置为 [code]true[/code]。" #: doc/classes/ParticlesMaterial.xml msgid "Damping will vary along this [CurveTexture]." msgstr "阻尼将沿着这个 [CurveTexture] 变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "The box's extents if [code]emission_shape[/code] is set to [constant " "EMISSION_SHAPE_BOX]." msgstr "" "[code]emission_shape[/code] 设置为 [constant EMISSION_SHAPE_BOX] 时,该 Box " "的范围。" #: doc/classes/ParticlesMaterial.xml msgid "" "Particle color will be modulated by color determined by sampling this " "texture at the same point as the [member emission_point_texture]." msgstr "" "粒子颜色将由颜色调制,颜色由采样纹理在与 [member emission_point_texture] 相同" "的点决定。" #: doc/classes/ParticlesMaterial.xml msgid "" "Particle velocity and rotation will be set by sampling this texture at the " "same point as the [member emission_point_texture]. Used only in [constant " "EMISSION_SHAPE_DIRECTED_POINTS]. Can be created automatically from mesh or " "node by selecting \"Create Emission Points from Mesh/Node\" under the " "\"Particles\" tool in the toolbar." msgstr "" "粒子的速度和旋转将通过在与[member emission_point_texture]相同的点上对该纹理进" "行采样来设置。仅在[constant EMISSION_SHAPE_DIRECTED_POINTS]中使用。可以通过选" "择工具栏中 \"粒子 \"工具下的 \"从网格/节点创建发射点\",从网格或节点自动创" "建。" #: doc/classes/ParticlesMaterial.xml msgid "" "The number of emission points if [code]emission_shape[/code] is set to " "[constant EMISSION_SHAPE_POINTS] or [constant " "EMISSION_SHAPE_DIRECTED_POINTS]." msgstr "" "[code]emission_shape[/code] 设置为 [constant EMISSION_SHAPE_POINTS] 或 " "[constant EMISSION_SHAPE_DIRECTED_POINTS] 时,发射点的数量。" #: doc/classes/ParticlesMaterial.xml msgid "" "Particles will be emitted at positions determined by sampling this texture " "at a random position. Used with [constant EMISSION_SHAPE_POINTS] and " "[constant EMISSION_SHAPE_DIRECTED_POINTS]. Can be created automatically from " "mesh or node by selecting \"Create Emission Points from Mesh/Node\" under " "the \"Particles\" tool in the toolbar." msgstr "" "粒子将被发射到由随机采样纹理所决定的位置。与[constant EMISSION_SHAPE_POINTS]" "和[constant EMISSION_SHAPE_DIRECTED_POINTS]一起使用。可以通过选择工具栏中" "的“粒子”工具下的“从网格/节点中创建发射点”自动创建网格或节点。" #: doc/classes/ParticlesMaterial.xml msgid "" "The axis of the ring when using the emitter [constant EMISSION_SHAPE_RING]." msgstr "使用发射器时的环轴 [constant EMISSION_SHAPE_RING]。" #: doc/classes/ParticlesMaterial.xml msgid "" "The height of the ring when using the emitter [constant EMISSION_SHAPE_RING]." msgstr "使用发射器时环的高度 [constant EMISSION_SHAPE_RING]。" #: doc/classes/ParticlesMaterial.xml msgid "" "The inner radius of the ring when using the emitter [constant " "EMISSION_SHAPE_RING]." msgstr "使用发射器时环的内半径 [constant EMISSION_SHAPE_RING]。" #: doc/classes/ParticlesMaterial.xml msgid "" "The radius of the ring when using the emitter [constant EMISSION_SHAPE_RING]." msgstr "使用发射器时的圆环半径 [constant EMISSION_SHAPE_RING]。" #: doc/classes/ParticlesMaterial.xml msgid "" "Particles will be emitted inside this region. Use [enum EmissionShape] " "constants for values." msgstr "粒子将在这个区域内发射。使用[enum EmissionShape]常量作为值。" #: doc/classes/ParticlesMaterial.xml msgid "" "The sphere's radius if [code]emission_shape[/code] is set to [constant " "EMISSION_SHAPE_SPHERE]." msgstr "" "当[code]emission_shape[/code]设置为[constant EMISSION_SHAPE_SPHERE]时,球体的" "半径。" #: doc/classes/ParticlesMaterial.xml msgid "Amount of [member spread] along the Y axis." msgstr "沿 Y 轴的 [member spread] 量。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's hue will vary along this [CurveTexture]." msgstr "每个粒子的色调将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Each particle's linear acceleration will vary along this [CurveTexture]." msgstr "每个粒子的线性加速度将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Orbital velocity applied to each particle. Makes the particles circle around " "origin. Specified in number of full rotations around origin per second.\n" "[b]Note:[/b] Only available when [member flag_disable_z] is [code]true[/" "code]." msgstr "" "每个粒子的轨道速度。使粒子绕原点旋转。以每秒绕原点的完整旋转数指定。\n" "[b]注意:[/b]仅当 [member flag_disable_z] 为 [code]true[/code] 时可用。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's orbital velocity will vary along this [CurveTexture]." msgstr "每个粒子的轨道速度将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Each particle's radial acceleration will vary along this [CurveTexture]." msgstr "每个粒子的径向加速度将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "Each particle's scale will vary along this [CurveTexture]." msgstr "每个粒子的比例将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Each particle's tangential acceleration will vary along this [CurveTexture]." msgstr "每个粒子的切向加速度将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "Trail particles' color will vary along this [GradientTexture]." msgstr "轨迹粒子的颜色将沿着这个[GradientTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Emitter will emit [code]amount[/code] divided by [code]trail_divisor[/code] " "particles. The remaining particles will be used as trail(s)." msgstr "" "发射器将发射[code]amount[/code]除以[code]trail_visor[/code]的粒子。剩下的粒子" "将作为轨迹使用。" #: doc/classes/ParticlesMaterial.xml msgid "Trail particles' size will vary along this [CurveTexture]." msgstr "轨迹粒子的大小将沿着这个[CurveTexture]变化。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set initial velocity properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置初始速度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set angular velocity properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置角速度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set orbital velocity properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置轨道速度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set linear acceleration properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置线性加速属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set radial acceleration properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置径向加速度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set tangential acceleration properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置切向加速度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set damping properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置阻尼属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set angle properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置角度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set scale properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置缩放属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set hue variation properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置色调变化属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set animation speed properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置动画速度属性。" #: doc/classes/ParticlesMaterial.xml msgid "" "Use with [method set_param], [method set_param_randomness], and [method " "set_param_texture] to set animation offset properties." msgstr "" "用于在 [method set_param]、[method set_param_randomness] 和 [method " "set_param_texture] 中设置动画偏移属性。" #: doc/classes/ParticlesMaterial.xml msgid "Use with [method set_flag] to set [member flag_align_y]." msgstr "用于在 [method set_flag] 中设置 [member flag_align_y]。" #: doc/classes/ParticlesMaterial.xml msgid "Use with [method set_flag] to set [member flag_rotate_y]." msgstr "用于在 [method set_flag] 中设置 [member flag_rotate_y]。" #: doc/classes/ParticlesMaterial.xml msgid "Use with [method set_flag] to set [member flag_disable_z]." msgstr "用于在 [method set_flag] 中设置 [member flag_disable_z]。" #: doc/classes/ParticlesMaterial.xml msgid "" "Particles will be emitted at a position determined by sampling a random " "point on the [member emission_point_texture]. Particle color will be " "modulated by [member emission_color_texture]." msgstr "" "粒子将在[member emission_point_texture]上随机采样点所决定的位置发射。粒子颜色" "将由[member emission_color_texture]调节。" #: doc/classes/ParticlesMaterial.xml msgid "" "Particles will be emitted at a position determined by sampling a random " "point on the [member emission_point_texture]. Particle velocity and rotation " "will be set based on [member emission_normal_texture]. Particle color will " "be modulated by [member emission_color_texture]." msgstr "" "粒子将在[member emission_point_texture]上随机采样点所决定的位置发射。粒子速度" "和旋转将基于[member emission_normal_texture]进行设置。粒子颜色将由[member " "emission_color_texture]调节。" #: doc/classes/Path.xml msgid "Contains a [Curve3D] path for [PathFollow] nodes to follow." msgstr "包含要遵循的 [PathFollow] 节点的 [Curve3D] 路径。" #: doc/classes/Path.xml msgid "" "Can have [PathFollow] child nodes moving along the [Curve3D]. See " "[PathFollow] for more information on the usage.\n" "Note that the path is considered as relative to the moved nodes (children of " "[PathFollow]). As such, the curve should usually start with a zero vector " "[code](0, 0, 0)[/code]." msgstr "" "可以让 [PathFollow] 子节点沿 [Curve3D] 移动。有关用法的更多信息,参阅 " "[PathFollow]。\n" "请注意,路径被视为相对于移动节点([PathFollow] 的子节点)。因此,曲线通常应以" "零向量 [code](0, 0, 0)[/code] 开始。" #: doc/classes/Path.xml msgid "A [Curve3D] describing the path." msgstr "A [Curve3D]描述路径。" #: doc/classes/Path.xml msgid "Emitted when the [member curve] changes." msgstr "当[member curve]改变时触发。" #: doc/classes/Path2D.xml msgid "Contains a [Curve2D] path for [PathFollow2D] nodes to follow." msgstr "包含一个[Curve2D]路径,供[PathFollow2D]节点遵循。" #: doc/classes/Path2D.xml msgid "" "Can have [PathFollow2D] child nodes moving along the [Curve2D]. See " "[PathFollow2D] for more information on usage.\n" "[b]Note:[/b] The path is considered as relative to the moved nodes (children " "of [PathFollow2D]). As such, the curve should usually start with a zero " "vector ([code](0, 0)[/code])." msgstr "" "可以让[PathFollow2D]子节点沿着[Curve2D]移动。有关用法的更多信息,请参阅" "[PathFollow2D]。\n" "[b]注:[/b]该路径被认为是相对于移动的节点([PathFollow2D]的子节点)。因此,曲线" "通常以零向量([code](0,0)[/code])开始。" #: doc/classes/Path2D.xml msgid "A [Curve2D] describing the path." msgstr "A [Curve2D]描述路径。" #: doc/classes/PathFollow.xml msgid "Point sampler for a [Path]." msgstr "[Path] 的点采样器。" #: doc/classes/PathFollow.xml msgid "" "This node takes its parent [Path], and returns the coordinates of a point " "within it, given a distance from the first vertex.\n" "It is useful for making other nodes follow a path, without coding the " "movement pattern. For that, the nodes must be children of this node. The " "descendant nodes will then move accordingly when setting an offset in this " "node." msgstr "" "这个节点接受它的父节点 [Path],并返回其中一个点的坐标,给定与第一个顶点的距" "离。\n" "这对于使其他节点遵循路径非常有用,而无需对运动模式进行编码。为此,节点必须是" "该节点的子节点。在此节点中设置偏移量时,子代节点将相应地移动。" #: doc/classes/PathFollow.xml msgid "" "If [code]true[/code], the position between two cached points is interpolated " "cubically, and linearly otherwise.\n" "The points along the [Curve3D] of the [Path] are precomputed before use, for " "faster calculations. The point at the requested offset is then calculated " "interpolating between two adjacent cached points. This may present a problem " "if the curve makes sharp turns, as the cached points may not follow the " "curve closely enough.\n" "There are two answers to this problem: either increase the number of cached " "points and increase memory consumption, or make a cubic interpolation " "between two points at the cost of (slightly) slower calculations." msgstr "" "如果[code]true[/code],两个缓存的点之间的位置是立方插值,否则是线性插值。\n" "沿着[Path]的[Curve3D]的点在使用前被预计算,以加快计算。而后,在确定偏移量上的" "点会在两个相邻的缓存点之间进行插值计算。如果曲线有急转弯,这可能会产生一个问" "题,因为缓存的点可能不会足够紧跟曲线。\n" "这个问题有两个答案:要么增加缓存点的数量,代价是增加内存消耗;要么在两个点之" "间进行立方插值,代价是计算速度稍慢。" #: doc/classes/PathFollow.xml doc/classes/PathFollow2D.xml msgid "The node's offset along the curve." msgstr "节点沿曲线的偏移量。" #: doc/classes/PathFollow.xml doc/classes/PathFollow2D.xml msgid "" "If [code]true[/code], any offset outside the path's length will wrap around, " "instead of stopping at the ends. Use it for cyclic paths." msgstr "" "如果[code]true[/code],路径长度以外的任何偏移都将环绕,而不是在结束时停止。对" "于循环路径使用它。" #: doc/classes/PathFollow.xml msgid "" "The distance from the first vertex, measured in 3D units along the path. " "This sets this node's position to a point within the path." msgstr "" "到第一个顶点的距离,以沿路径的 3D 单位度量。这将把这个节点的位置设置为路径中" "的一个点。" #: doc/classes/PathFollow.xml msgid "" "Allows or forbids rotation on one or more axes, depending on the [enum " "RotationMode] constants being used." msgstr "" "允许或禁止在一个或多个轴上旋转,这取决于使用的[enum RotationMode]常量。" #: doc/classes/PathFollow.xml msgid "" "The distance from the first vertex, considering 0.0 as the first vertex and " "1.0 as the last. This is just another way of expressing the offset within " "the path, as the offset supplied is multiplied internally by the path's " "length." msgstr "" "到第一个顶点的距离,将0.0作为第一个顶点,1.0作为最后一个顶点。这只是表示路径" "内偏移量的另一种方式,因为提供的偏移量在内部乘以路径的长度。" #: doc/classes/PathFollow.xml doc/classes/PathFollow2D.xml msgid "The node's offset perpendicular to the curve." msgstr "节点垂直于曲线的偏移量。" #: doc/classes/PathFollow.xml msgid "Forbids the PathFollow to rotate." msgstr "禁止 PathFollow 旋转。" #: doc/classes/PathFollow.xml msgid "Allows the PathFollow to rotate in the Y axis only." msgstr "仅允许 PathFollow 沿 Y 轴旋转。" #: doc/classes/PathFollow.xml msgid "Allows the PathFollow to rotate in both the X, and Y axes." msgstr "允许 PathFollow 在 X 和 Y 轴上旋转。" #: doc/classes/PathFollow.xml msgid "Allows the PathFollow to rotate in any axis." msgstr "允许 PathFollow 在任意轴上旋转。" #: doc/classes/PathFollow.xml msgid "" "Uses the up vector information in a [Curve3D] to enforce orientation. This " "rotation mode requires the [Path]'s [member Curve3D.up_vector_enabled] " "property to be set to [code]true[/code]." msgstr "" "使用 [Curve3D] 中的向上向量信息来强制定向。此旋转模式需要将 [Path] 的 " "[member Curve3D.up_vector_enabled] 属性设置为 [code]true[/code]。" #: doc/classes/PathFollow2D.xml msgid "Point sampler for a [Path2D]." msgstr "对[Path2D]的点取样的取样器。" #: doc/classes/PathFollow2D.xml msgid "" "This node takes its parent [Path2D], and returns the coordinates of a point " "within it, given a distance from the first vertex.\n" "It is useful for making other nodes follow a path, without coding the " "movement pattern. For that, the nodes must be children of this node. The " "descendant nodes will then move accordingly when setting an offset in this " "node." msgstr "" "这个节点接受它的父节点[Path2D],并返回其中一个点的坐标(给定到第一个顶点的距" "离)。\n" "在不编码移动模式的情况下,它可以使其他节点遵循一条路径。因此,节点必须是这个" "节点的子节点。当在该节点中设置偏移量时,后代节点将相应地移动。" #: doc/classes/PathFollow2D.xml msgid "" "If [code]true[/code], the position between two cached points is interpolated " "cubically, and linearly otherwise.\n" "The points along the [Curve2D] of the [Path2D] are precomputed before use, " "for faster calculations. The point at the requested offset is then " "calculated interpolating between two adjacent cached points. This may " "present a problem if the curve makes sharp turns, as the cached points may " "not follow the curve closely enough.\n" "There are two answers to this problem: either increase the number of cached " "points and increase memory consumption, or make a cubic interpolation " "between two points at the cost of (slightly) slower calculations." msgstr "" "如果为 [code]true[/code],则两个缓存点之间的位置将进行三次插值,否则将线性插" "值。\n" "沿着 [Path2D] 的 [Curve2D] 的点在使用前被预先计算,以更快的计算速度。然后在两" "个相邻的缓存点之间计算请求偏移量的点。这可能会出现一个问题,如果曲线做急转" "弯,因为缓存点可能不跟随曲线足够近。\n" "有两种方法可以解决这个问题:要么增加缓存点的数量,增加内存消耗,要么在两个点" "之间进行三次插值,但代价是(稍微)降低计算速度。" #: doc/classes/PathFollow2D.xml msgid "" "How far to look ahead of the curve to calculate the tangent if the node is " "rotating. E.g. shorter lookaheads will lead to faster rotations." msgstr "" "如果节点是旋转的,那么在计算切线时,要提前多长时间看曲线。例如,较短的提前量" "会导致更快的旋转。" #: doc/classes/PathFollow2D.xml msgid "The distance along the path in pixels." msgstr "沿着路径的距离,单位为像素。" #: doc/classes/PathFollow2D.xml msgid "" "If [code]true[/code], this node rotates to follow the path, making its " "descendants rotate." msgstr "如果为 [code]true[/code],则该节点将沿着路径旋转,使其后代节点旋转。" #: doc/classes/PathFollow2D.xml msgid "" "The distance along the path as a number in the range 0.0 (for the first " "vertex) to 1.0 (for the last). This is just another way of expressing the " "offset within the path, as the offset supplied is multiplied internally by " "the path's length." msgstr "" "在0.0(第一个顶点)到1.0(最后一个顶点)的范围内,沿着路径的距离为一个数字。这只" "是表示路径内偏移量的另一种方式,因为提供的偏移量在内部乘以路径的长度。" #: doc/classes/PCKPacker.xml msgid "Creates packages that can be loaded into a running project." msgstr "创建可以加载到正在运行的项目中的包。" #: doc/classes/PCKPacker.xml msgid "" "The [PCKPacker] is used to create packages that can be loaded into a running " "project using [method ProjectSettings.load_resource_pack].\n" "[codeblock]\n" "var packer = PCKPacker.new()\n" "packer.pck_start(\"test.pck\")\n" "packer.add_file(\"res://text.txt\", \"text.txt\")\n" "packer.flush()\n" "[/codeblock]\n" "The above [PCKPacker] creates package [code]test.pck[/code], then adds a " "file named [code]text.txt[/code] at the root of the package." msgstr "" "[PCKPacker]用于创建可以通过[method ProjectSettings.load_resource_pack]加载到" "正在运行的项目中的包。\n" "[codeblock]\n" "var packer = PCKPacker.new()\n" "packer.pck_start(\"test.pck\")\n" "packer.add_file(\"res://text.txt\", \"text.txt\")\n" "packer.flush()\n" "[/codeblock]\n" "上面的[PCKPacker]创建包[code]test.pck[/code],然后在包的根目录中添加一个名为" "[code]text.txt[/code]的文件。" #: doc/classes/PCKPacker.xml msgid "" "Adds the [code]source_path[/code] file to the current PCK package at the " "[code]pck_path[/code] internal path (should start with [code]res://[/code])." msgstr "" "将[code]source_path[/code]文件添加到当前PCK包的[code]pck_path[/code]内部路径" "(应该以[code]res://[/code]开始)。" #: doc/classes/PCKPacker.xml msgid "" "Writes the files specified using all [method add_file] calls since the last " "flush. If [code]verbose[/code] is [code]true[/code], a list of files added " "will be printed to the console for easier debugging." msgstr "" "自上次刷新以来,使用所有[method add_file]调用写入指定的文件。如果" "[code]verbose[/code]为 [code]true[/code],添加的文件列表将被打印到控制台,以" "便于调试。" #: doc/classes/PCKPacker.xml msgid "" "Creates a new PCK file with the name [code]pck_name[/code]. The [code].pck[/" "code] file extension isn't added automatically, so it should be part of " "[code]pck_name[/code] (even though it's not required)." msgstr "" "创建一个名为[code]pck_name[/code]的新PCK文件。[code].Pck[/code]文件扩展名不会" "自动添加,所以它应该是[code]pck_name[/code]的一部分(即使它不是必需的)。" #: doc/classes/Performance.xml msgid "Exposes performance-related data." msgstr "公开与性能相关的数据。" #: doc/classes/Performance.xml msgid "" "This class provides access to a number of different monitors related to " "performance, such as memory usage, draw calls, and FPS. These are the same " "as the values displayed in the [b]Monitor[/b] tab in the editor's " "[b]Debugger[/b] panel. By using the [method get_monitor] method of this " "class, you can access this data from your code.\n" "[b]Note:[/b] A few of these monitors are only available in debug mode and " "will always return 0 when used in a release build.\n" "[b]Note:[/b] Many of these monitors are not updated in real-time, so there " "may be a short delay between changes." msgstr "" "这个类提供了对一些与性能有关的不同监控的访问,比如内存使用量、绘制调用和FPS。" "这些与编辑器的[b]Monitor[/b]标签中的[b]Debugger[/b]面板所显示的数值相同。通过" "使用这个类的[method get_monitor]方法,可以从你的代码中访问这些数据。\n" "[b]注意:[/b]这些监视器中有几个只在调试模式下可用,当在发布版构建中使用时,将" "总是返回0。\n" "[b]注意:[/b]这些监控器中的许多不是实时更新的,所以在变化之间可能会有短暂的延" "迟。" #: doc/classes/Performance.xml msgid "" "Returns the value of one of the available monitors. You should provide one " "of the [enum Monitor] constants as the argument, like this:\n" "[codeblock]\n" "print(Performance.get_monitor(Performance.TIME_FPS)) # Prints the FPS to the " "console\n" "[/codeblock]" msgstr "" "返回一个可用监视器的值。你应该提供一个[enum Monitor]常量作为参数,像这样:\n" "[codeblock]\n" "print(Performance.get_monitor(Performance.TIME_FPS)) # Prints the FPS to the " "console\n" "[/codeblock]" #: doc/classes/Performance.xml msgid "Number of frames per second." msgstr "每秒帧数。" #: doc/classes/Performance.xml msgid "Time it took to complete one frame, in seconds." msgstr "完成一帧的时间,以秒为单位。" #: doc/classes/Performance.xml msgid "Time it took to complete one physics frame, in seconds." msgstr "完成一个物理帧的时间,以秒为单位。" #: doc/classes/Performance.xml msgid "" "Static memory currently used, in bytes. Not available in release builds." msgstr "当前使用的静态内存,以字节为单位。在发布版本中不可用。" #: doc/classes/Performance.xml msgid "" "Dynamic memory currently used, in bytes. Not available in release builds." msgstr "当前使用的动态内存,以字节为单位。在发布版本中不可用。" #: doc/classes/Performance.xml msgid "Available static memory. Not available in release builds." msgstr "可用的静态内存。在发布版本中不可用。" #: doc/classes/Performance.xml msgid "Available dynamic memory. Not available in release builds." msgstr "可用的动态内存。在发布版本中不可用。" #: doc/classes/Performance.xml msgid "" "Largest amount of memory the message queue buffer has used, in bytes. The " "message queue is used for deferred functions calls and notifications." msgstr "" "消息队列缓冲区使用的最大内存数量(以字节为单位)。消息队列用于延迟函数调用和通" "知。" #: doc/classes/Performance.xml msgid "Number of objects currently instanced (including nodes)." msgstr "当前实例化的对象数量(包括节点)。" #: doc/classes/Performance.xml msgid "Number of resources currently used." msgstr "当前使用的资源数量。" #: doc/classes/Performance.xml msgid "" "Number of nodes currently instanced in the scene tree. This also includes " "the root node." msgstr "当前场景树中实例化的节点数。这也包括根节点。" #: doc/classes/Performance.xml msgid "" "Number of orphan nodes, i.e. nodes which are not parented to a node of the " "scene tree." msgstr "孤儿节点的数量,孤儿节点即无法被按父级追溯到根节点的节点。" #: doc/classes/Performance.xml msgid "3D objects drawn per frame." msgstr "每帧绘制3D对象的数量。" #: doc/classes/Performance.xml msgid "Vertices drawn per frame. 3D only." msgstr "每帧绘制的顶点数。只在3D中有效。" #: doc/classes/Performance.xml msgid "Material changes per frame. 3D only." msgstr "每一帧的材质变化。仅限3D。" #: doc/classes/Performance.xml msgid "Shader changes per frame. 3D only." msgstr "每一帧的着色器变化。仅限3D。" #: doc/classes/Performance.xml msgid "Render surface changes per frame. 3D only." msgstr "每帧渲染面的变化。仅3D中有效。" #: doc/classes/Performance.xml msgid "Draw calls per frame. 3D only." msgstr "每一帧的绘图调用。仅限3D。" #: doc/classes/Performance.xml msgid "Items or joined items drawn per frame." msgstr "每帧绘制的项目或连接的项目。" #: doc/classes/Performance.xml msgid "Draw calls per frame." msgstr "每帧绘制调用。" #: doc/classes/Performance.xml doc/classes/VisualServer.xml msgid "" "The amount of video memory used, i.e. texture and vertex memory combined." msgstr "使用的视频内存的数量,即纹理和顶点内存的总和。" #: doc/classes/Performance.xml doc/classes/VisualServer.xml msgid "The amount of texture memory used." msgstr "使用的纹理内存的数量。" #: doc/classes/Performance.xml doc/classes/VisualServer.xml msgid "The amount of vertex memory used." msgstr "使用的顶点内存数量。" #: doc/classes/Performance.xml doc/classes/VisualServer.xml msgid "" "Unimplemented in the GLES2 and GLES3 rendering backends, always returns 0." msgstr "在 GLES2 和 GLES3 渲染后端中未实现,始终返回 0。" #: doc/classes/Performance.xml msgid "Number of active [RigidBody2D] nodes in the game." msgstr "游戏中活跃的[RigidBody2D]节点数量。" #: doc/classes/Performance.xml msgid "Number of collision pairs in the 2D physics engine." msgstr "2D物理引擎中的碰撞对数量。" #: doc/classes/Performance.xml msgid "Number of islands in the 2D physics engine." msgstr "2D物理引擎中的岛屿数量。" #: doc/classes/Performance.xml msgid "Number of active [RigidBody] and [VehicleBody] nodes in the game." msgstr "游戏中活动的 [RigidBody] 和 [VehicleBody] 节点的数量。" #: doc/classes/Performance.xml msgid "Number of collision pairs in the 3D physics engine." msgstr "3D物理引擎中的碰撞对数量。" #: doc/classes/Performance.xml msgid "Number of islands in the 3D physics engine." msgstr "3D物理引擎中的岛屿数量。" #: doc/classes/Performance.xml msgid "Output latency of the [AudioServer]." msgstr "[AudioServer]的输出延迟。" #: doc/classes/Performance.xml msgid "Represents the size of the [enum Monitor] enum." msgstr "表示[enum Monitor] enum的大小。" #: doc/classes/PHashTranslation.xml msgid "Optimized translation." msgstr "优化的翻译。" #: doc/classes/PHashTranslation.xml msgid "" "Optimized translation. Uses real-time compressed translations, which results " "in very small dictionaries." msgstr "优化翻译。使用实时压缩翻译,从而生成非常小的词典。" #: doc/classes/PHashTranslation.xml msgid "" "Generates and sets an optimized translation from the given [Translation] " "resource." msgstr "从给定的[Translation]资源生成并设置优化的翻译。" #: doc/classes/Physics2DDirectBodyState.xml msgid "Direct access object to a physics body in the [Physics2DServer]." msgstr "直接访问 [Physics2DServer] 中物理物体对象。" #: doc/classes/Physics2DDirectBodyState.xml msgid "" "Provides direct access to a physics body in the [Physics2DServer], allowing " "safe changes to physics properties. This object is passed via the direct " "state callback of rigid/character bodies, and is intended for changing the " "direct state of that body. See [method RigidBody2D._integrate_forces]." msgstr "" "提供对 [Physics2DServer] 中物理物体的直接访问,允许安全更改物理属性。该对象通" "过刚体/角色物体的直接状态回调传递,从而直接改变该物体的状态。参见 [method " "RigidBody2D._integrate_forces]。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/Physics2DDirectSpaceState.xml #: doc/classes/PhysicsDirectBodyState.xml #: doc/classes/PhysicsDirectSpaceState.xml doc/classes/RayCast.xml msgid "Ray-casting" msgstr "发射射线" #: doc/classes/Physics2DDirectBodyState.xml doc/classes/RigidBody2D.xml msgid "Adds a constant directional force without affecting rotation." msgstr "增加一个恒定的方向力,而不影响旋转。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml doc/classes/RigidBody2D.xml msgid "" "Adds a positioned force to the body. Both the force and the offset from the " "body origin are in global coordinates." msgstr "向实体添加有作用点的力。力和相对于主体原点的偏移都在全局坐标中。" #: doc/classes/Physics2DDirectBodyState.xml doc/classes/RigidBody2D.xml msgid "Adds a constant rotational force." msgstr "添加恒定的旋转力。" #: doc/classes/Physics2DDirectBodyState.xml doc/classes/RigidBody2D.xml msgid "Applies a directional impulse without affecting rotation." msgstr "在不影响旋转的情况下施加一个方向性的冲量。" #: doc/classes/Physics2DDirectBodyState.xml msgid "" "Applies a positioned impulse to the body. An impulse is time-independent! " "Applying an impulse every frame would result in a framerate-dependent force. " "For this reason, it should only be used when simulating one-time impacts " "(use the \"_force\" functions otherwise). The offset uses the rotation of " "the global coordinate system, but is centered at the object's origin." msgstr "" "向物体施加有作用点的冲量。冲量是独立于时间的!每一帧施加一个冲量将导致一个与" "帧率相关的力。出于这个原因,它应该只用于模拟一次性的影响(否则使用“_force”函" "数)。偏移量使用了全局坐标系的旋转,但是以物体的原点为中心。" #: doc/classes/Physics2DDirectBodyState.xml doc/classes/RigidBody2D.xml msgid "Applies a rotational impulse to the body." msgstr "对物体施加旋转冲量。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the collider's [RID]." msgstr "返回碰撞体的[RID]。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the collider's object id." msgstr "返回碰撞体的对象id。" #: doc/classes/Physics2DDirectBodyState.xml msgid "" "Returns the collider object. This depends on how it was created (will return " "a scene node if such was used to create it)." msgstr "" "返回碰撞体对象。这取决于它是如何创建的(如果是被作为场景节点创建的,那么将返" "回场景节点)。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the contact position in the collider." msgstr "返回碰撞体中的接触位置。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the collider's shape index." msgstr "返回碰撞体的形状索引。" #: doc/classes/Physics2DDirectBodyState.xml msgid "" "Returns the collided shape's metadata. This metadata is different from " "[method Object.get_meta], and is set with [method Physics2DServer." "shape_set_data]." msgstr "" "返回碰撞形状的元数据。这个元数据不同于[method Object.get_meta],是用[method " "Physics2DServer.shape_set_data]设置的。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the linear velocity vector at the collider's contact point." msgstr "返回碰撞体接触点处的线速度向量。" #: doc/classes/Physics2DDirectBodyState.xml msgid "" "Returns the number of contacts this body has with other bodies.\n" "[b]Note:[/b] By default, this returns 0 unless bodies are configured to " "monitor contacts. See [member RigidBody2D.contact_monitor]." msgstr "" "返回此物体与其他物体的接触次数。\n" "[b]注意:[/b]默认情况下,除非物体被设为监视接触者,否则返回0。参阅 [member " "RigidBody2D.contact_monitor]。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the local normal at the contact point." msgstr "返回接触点处的局部法线。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the local position of the contact point." msgstr "返回接触点的局部坐标系下的位置。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the local shape index of the collision." msgstr "返回碰撞的局部坐标系下的形状索引。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the current state of the space, useful for queries." msgstr "返回空间的当前状态,这对查询很有用。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Returns the body's velocity at the given relative position, including both " "translation and rotation." msgstr "返回给定相对位置的物体速度,包括平移和旋转。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "Calls the built-in force integration code." msgstr "调用内置的力集成代码。" #: doc/classes/Physics2DDirectBodyState.xml doc/classes/RigidBody2D.xml msgid "The body's rotational velocity in [i]radians[/i] per second." msgstr "物体的旋转速度,单位为[i]弧度[/i]每秒。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "The inverse of the inertia of the body." msgstr "物体惯性的倒数。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "The inverse of the mass of the body." msgstr "物体质量的倒数。" #: doc/classes/Physics2DDirectBodyState.xml msgid "The body's linear velocity in pixels per second." msgstr "物体的线性速度,单位为像素每秒。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "If [code]true[/code], this body is currently sleeping (not active)." msgstr "如果[code]true[/code],则该物体当前处于睡眠状态(不活动)。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "The timestep (delta) used for the simulation." msgstr "用于模拟的时间步长(delta)。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "" "The rate at which the body stops rotating, if there are not any other forces " "moving it." msgstr "物体停止转动的速度,如果没有任何其他力使它运动。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "The total gravity vector being currently applied to this body." msgstr "这个物体上的总重力向量。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "" "The rate at which the body stops moving, if there are not any other forces " "moving it." msgstr "物体停止运动的速率,如果没有任何其他力使它运动。" #: doc/classes/Physics2DDirectBodyState.xml #: doc/classes/PhysicsDirectBodyState.xml msgid "The body's transformation matrix." msgstr "物体的变换矩阵。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "Direct access object to a space in the [Physics2DServer]." msgstr "直接访问[Physics2DServer]中的空间的对象。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Direct access object to a space in the [Physics2DServer]. It's used mainly " "to do queries against objects and areas residing in a given space." msgstr "" "直接访问[Physics2DServer]中的空间的对象。它主要用于对位于给定空间中的对象和区" "域进行查询。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Checks how far a [Shape2D] can move without colliding. All the parameters " "for the query, including the shape and the motion, are supplied through a " "[Physics2DShapeQueryParameters] object.\n" "Returns an array with the safe and unsafe proportions (between 0 and 1) of " "the motion. The safe proportion is the maximum fraction of the motion that " "can be made without a collision. The unsafe proportion is the minimum " "fraction of the distance that must be moved for a collision. If no collision " "is detected a result of [code][1.0, 1.0][/code] will be returned.\n" "[b]Note:[/b] Any [Shape2D]s that the shape is already colliding with e.g. " "inside of, will be ignored. Use [method collide_shape] to determine the " "[Shape2D]s that the shape is already colliding with." msgstr "" "检查 [Shape2D] 可以移动多远而不会发生碰撞。查询的所有参数,包括形状和运动,都" "是通过 [Physics2DShapeQueryParameters] 对象提供的。\n" "返回一个包含运动的安全和不安全比例(0 到 1 之间)的数组。安全比例是在没有碰撞" "的情况下可以进行的运动的最大比例。不安全比例是碰撞必须移动的距离的最小部分。" "如果没有检测到碰撞,将返回 [code][1.0, 1.0][/code] 的结果。\n" "[b]注意:[/b]任何已经碰撞的[Shape2D](比如内部的)会被忽略。使用 [method " "collide_shape] 确定形状已经碰撞的 [Shape2D]。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Checks the intersections of a shape, given through a " "[Physics2DShapeQueryParameters] object, against the space. The resulting " "array contains a list of points where the shape intersects another. Like " "with [method intersect_shape], the number of returned results can be limited " "to save processing time." msgstr "" "通过[Physics2DShapeQueryParameters]对象给出的形状与空间的检查交点。结果数组包" "含一个形状与另一个形状相交的点的列表。像[method intersect_shape]一样,可以限" "制返回结果的数量以节省处理时间。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Checks the intersections of a shape, given through a " "[Physics2DShapeQueryParameters] object, against the space. If it collides " "with more than one shape, the nearest one is selected. If the shape did not " "intersect anything, then an empty dictionary is returned instead.\n" "[b]Note:[/b] This method does not take into account the [code]motion[/code] " "property of the object. The returned object is a dictionary containing the " "following fields:\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]linear_velocity[/code]: The colliding object's velocity [Vector2]. If " "the object is an [Area2D], the result is [code](0, 0)[/code].\n" "[code]metadata[/code]: The intersecting shape's metadata. This metadata is " "different from [method Object.get_meta], and is set with [method " "Physics2DServer.shape_set_data].\n" "[code]normal[/code]: The object's surface normal at the intersection point.\n" "[code]point[/code]: The intersection point.\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape." msgstr "" "通过[Physics2DShapeQueryParameters]对象给出的形状与空间的检查交点。如果它与一" "个以上的形状发生碰撞,则选择最近的一个。如果该形状没有与任何对象相交,那么将" "返回一个空字典。\n" "[b]注意:[/b]这个方法不考虑对象的[code]motion[/code]属性。返回的对象是包含以" "下字段的字典。\n" "[code]collider_id[/code]:碰撞对象的ID。\n" "[code]linear_velocity[/code]:碰撞物体的速度[Vector2]。如果对象是一个" "[Area2D],结果是[code](0, 0)[/code]。\n" "[code]metadata[/code]:相交形状的元数据。这个元数据与[method Object.get_meta]" "不同,它是用[method Physics2DServer.shape_set_data]设置的。\n" "[code]normal[/code]:物体在交点处的表面法线。\n" "[code]point[/code]:相交点。\n" "[code]rid[/code]:相交物体的[RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Checks whether a point is inside any solid shape. The shapes the point is " "inside of are returned in an array containing dictionaries with the " "following fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]metadata[/code]: The intersecting shape's metadata. This metadata is " "different from [method Object.get_meta], and is set with [method " "Physics2DServer.shape_set_data].\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "The number of intersections can be limited with the [code]max_results[/code] " "parameter, to reduce the processing time.\n" "Additionally, the method can take an [code]exclude[/code] array of objects " "or [RID]s that are to be excluded from collisions, a [code]collision_mask[/" "code] bitmask representing the physics layers to check in, or booleans to " "determine if the ray should collide with [PhysicsBody2D]s or [Area2D]s, " "respectively.\n" "[b]Note:[/b] [ConcavePolygonShape2D]s and [CollisionPolygon2D]s in " "[code]Segments[/code] build mode are not solid shapes. Therefore, they will " "not be detected." msgstr "" "检查一个点是否在任意实体形状内。点所处的形状会以数组的形式返回,该数组包含有" "以下字段的字典:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的 ID。\n" "[code]metadata[/code]:相交形状的元数据。这个元数据与 [method Object." "get_meta] 不同,是用 [method Physics2DServer.shape_set_data] 设置的。\n" "[code]rid[/code]:相交物体的 [RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "为了减少处理时间,可以通过 [code]max_results[/code] 参数对相交的数量进行限" "制。\n" "此外,该方法可以接受一个 [code]exclude[/code] 数组,该数组中的对象或 [RID] 将" "被排除在碰撞之外,[code]collision_mask[/code] 位掩码表示要检查的物理层,或者" "布尔值来确定射线是否应该分别与 [PhysicsBody2D] 或 [Area2D] 发生碰撞。\n" "[b]注意:[/b][ConcavePolygonShape2D] 和 [CollisionPolygon2D] 在 " "[code]Segments[/code] 构建模式中不是实体形状。因此,它们将不会被检测到。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Checks whether a point is inside any solid shape, in a specific canvas layer " "given by [code]canvas_instance_id[/code]. The shapes the point is inside of " "are returned in an array containing dictionaries with the following fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]metadata[/code]: The intersecting shape's metadata. This metadata is " "different from [method Object.get_meta], and is set with [method " "Physics2DServer.shape_set_data].\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "The number of intersections can be limited with the [code]max_results[/code] " "parameter, to reduce the processing time.\n" "Additionally, the method can take an [code]exclude[/code] array of objects " "or [RID]s that are to be excluded from collisions, a [code]collision_mask[/" "code] bitmask representing the physics layers to check in, or booleans to " "determine if the ray should collide with [PhysicsBody2D]s or [Area2D]s, " "respectively.\n" "[b]Note:[/b] [ConcavePolygonShape2D]s and [CollisionPolygon2D]s in " "[code]Segments[/code] build mode are not solid shapes. Therefore, they will " "not be detected." msgstr "" "检查一个点是否在任意实体形状内,仅在 [code]canvas_instance_id[/code] 所指定的" "画布层上检查。点所处的形状会以数组的形式返回,该数组包含有以下字段的字典:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的 ID。\n" "[code]metadata[/code]:相交形状的元数据。这个元数据与 [method Object." "get_meta] 不同,是用 [method Physics2DServer.shape_set_data] 设置的。\n" "[code]rid[/code]:相交物体的 [RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "为了减少处理时间,可以通过 [code]max_results[/code] 参数对相交的数量进行限" "制。\n" "此外,该方法可以接受一个 [code]exclude[/code] 数组,该数组中的对象或 [RID] 将" "被排除在碰撞之外,[code]collision_mask[/code] 位掩码表示要检查的物理层,或者" "布尔值来确定射线是否应该分别与 [PhysicsBody] 或 [Area] 发生碰撞。\n" "[b]注意:[/b][ConcavePolygonShape2D] 和 [CollisionPolygon2D] 在 " "[code]Segments[/code] 构建模式中不是实体形状。因此,它们将不会被检测到。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Intersects a ray in a given space. The returned object is a dictionary with " "the following fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]metadata[/code]: The intersecting shape's metadata. This metadata is " "different from [method Object.get_meta], and is set with [method " "Physics2DServer.shape_set_data].\n" "[code]normal[/code]: The object's surface normal at the intersection point.\n" "[code]position[/code]: The intersection point.\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "If the ray did not intersect anything, then an empty dictionary is returned " "instead.\n" "Additionally, the method can take an [code]exclude[/code] array of objects " "or [RID]s that are to be excluded from collisions, a [code]collision_mask[/" "code] bitmask representing the physics layers to check in, or booleans to " "determine if the ray should collide with [PhysicsBody2D]s or [Area2D]s, " "respectively." msgstr "" "在给定的空间中与一条射线相交。返回的对象是具有下列字段的字典:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的 ID。\n" "[code]metadata[/code]:相交形状的元数据。这个元数据与 [method Object." "get_meta] 不同,是用 [method Physics2DServer.shape_set_data] 设置的。\n" "[code]normal[/code]:相交点处对象表面的法线。\n" "[code]position[/code]:相交点。\n" "[code]rid[/code]:相交物体的 [RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "如果射线没有与任何东西相交,将返回一个空字典。\n" "此外,该方法可以接受一个 [code]exclude[/code] 对象或 [RID] 数组,该数组将被排" "除在碰撞之外,[code]collision_mask[/code] 位掩码表示要检查的物理层,或者布尔" "值来确定射线是否应该分别与 [PhysicsBody2D] 或 [Area2D] 发生碰撞。" #: doc/classes/Physics2DDirectSpaceState.xml msgid "" "Checks the intersections of a shape, given through a " "[Physics2DShapeQueryParameters] object, against the space. The intersected " "shapes are returned in an array containing dictionaries with the following " "fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]metadata[/code]: The intersecting shape's metadata. This metadata is " "different from [method Object.get_meta], and is set with [method " "Physics2DServer.shape_set_data].\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "The number of intersections can be limited with the [code]max_results[/code] " "parameter, to reduce the processing time." msgstr "" "通过 [Physics2DShapeQueryParameters] 对象检查给出的形状与空间的交点。返回的相" "交形状是一个字典数组,包含以下字段:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的ID。\n" "[code]metadata[/code]:相交形状的元数据。这个元数据与 [method Object." "get_meta] 不同,是用 [method Physics2DServer.shape_set_data] 设置的。\n" "[code]rid[/code]:相交对象的 [RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "可以用 [code]max_results[/code] 参数限制相交的数量,以减少处理时间。" #: doc/classes/Physics2DServer.xml msgid "Server interface for low-level 2D physics access." msgstr "用于底层2D物理访问服务的接口。" #: doc/classes/Physics2DServer.xml msgid "" "Physics2DServer is the server responsible for all 2D physics. It can create " "many kinds of physics objects, but does not insert them on the node tree." msgstr "" "Physics2DServer 是负责所有 2D 物理的服务器。它可以创建多种物理对象,但不会将" "它们插入到节点树中。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Adds a shape to the area, along with a transform matrix. Shapes are usually " "referenced by their index, so you should track which shape has a given index." msgstr "" "向区域添加一个形状,以及一个变换矩阵。形状通常通过它们的索引来引用,因此您应" "该跟踪哪个形状具有给定的索引。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Assigns the area to a descendant of [Object], so it can exist in the node " "tree." msgstr "将区域分配给[Object]的子类,因此它可以存在于节点树中。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Removes all shapes from an area. It does not delete the shapes, so they can " "be reassigned later." msgstr "从一个区域移除所有形状。它不会删除形状,因此它们可以稍后重新分配。" #: doc/classes/Physics2DServer.xml msgid "" "Creates an [Area2D]. After creating an [Area2D] with this method, assign it " "to a space using [method area_set_space] to use the created [Area2D] in the " "physics world." msgstr "" "创建一个 [Area2D]。用这个方法创建了一个[Area2D]后,使用[method " "area_set_space]将其分配给一个空间,以便在物理世界中使用创建的[Area2D]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Gets the instance ID of the object the area is assigned to." msgstr "获取区域分配给的对象的实例ID。" #: doc/classes/Physics2DServer.xml msgid "" "Returns an area parameter value. See [enum AreaParameter] for a list of " "available parameters." msgstr "返回区域参数值。有关可用参数的列表,请参阅[enum AreaParameter]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the [RID] of the nth shape of an area." msgstr "返回区域的第n个形状的[RID]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the number of shapes assigned to an area." msgstr "返回分配给区域的形状数量。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the transform matrix of a shape within an area." msgstr "返回区域内形状的变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the space assigned to the area." msgstr "返回分配给该区域的空间。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the space override mode for the area." msgstr "返回该区域的空间覆盖模式。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the transform matrix for an area." msgstr "返回区域的变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Removes a shape from an area. It does not delete the shape, so it can be " "reassigned later." msgstr "从区域中移除一个形状。它不会删除形状,因此可以稍后重新分配。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Assigns the area to one or many physics layers." msgstr "将区域分配给一个或多个物理层。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Sets which physics layers the area will monitor." msgstr "设置区域将监控的物理层。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Sets the function to call when any body/area enters or exits the area. This " "callback will be called for any object interacting with the area, and takes " "five parameters:\n" "1: [constant AREA_BODY_ADDED] or [constant AREA_BODY_REMOVED], depending on " "whether the object entered or exited the area.\n" "2: [RID] of the object that entered/exited the area.\n" "3: Instance ID of the object that entered/exited the area.\n" "4: The shape index of the object that entered/exited the area.\n" "5: The shape index of the area where the object entered/exited." msgstr "" "设置当任何主体/区域进入或退出该区域时调用的函数。这个回调函数将被任何与区域交" "互的对象调用,并接受5个参数:\n" "1: [constant AREA_BODY_ADDED]或[constant AREA_BODY_REMOVED],取决于对象是否进" "入或退出该区域。\n" "2:进入/退出该区域对象的[RID]。\n" "3:进入/退出该区域对象的实例ID。\n" "4:进入/离开该区域的物体的形状指数。\n" "5:物体进入/离开区域的形状指数。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the value for an area parameter. See [enum AreaParameter] for a list of " "available parameters." msgstr "设置区域参数的值。有关可用参数的列表,请参阅 [enum AreaParameter]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Substitutes a given area shape by another. The old shape is selected by its " "index, the new one by its [RID]." msgstr "" "用另一种形状代替一种形状。旧的形状由它的索引选择,新的形状由它的[RID]选择。" #: doc/classes/Physics2DServer.xml msgid "Disables a given shape in an area." msgstr "在区域中禁用一个给定的形状。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Sets the transform matrix for an area shape." msgstr "设置区域形状的变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Assigns a space to the area." msgstr "为该区域指定一个空间。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the space override mode for the area. See [enum AreaSpaceOverrideMode] " "for a list of available modes." msgstr "" "为该区域设置空间覆盖模式。请参阅[enum AreaSpaceOverrideMode]获取可用模式的列" "表。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Sets the transform matrix for an area." msgstr "设置区域的变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Adds a body to the list of bodies exempt from collisions." msgstr "将一个物体添加到免于碰撞的物体列表中。" #: doc/classes/Physics2DServer.xml msgid "" "Adds a positioned force to the applied force and torque. As with [method " "body_apply_impulse], both the force and the offset from the body origin are " "in global coordinates. A force differs from an impulse in that, while the " "two are forces, the impulse clears itself after being applied." msgstr "" "在施加的力和扭矩上添加一个有作用点的力。与[method body_apply_impulse]一样,力" "和物体原点的偏移量都在全局坐标中。力与冲量的不同之处在于,虽然两者都是力,但" "冲量在被施加后会自动清除。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Adds a shape to the body, along with a transform matrix. Shapes are usually " "referenced by their index, so you should track which shape has a given index." msgstr "" "添加一个形状到物体,以及一个变换矩阵。形状通常通过它们的索引来引用,因此您应" "该跟踪哪个形状具有给定的索引。" #: doc/classes/Physics2DServer.xml msgid "" "Adds a positioned impulse to the applied force and torque. Both the force " "and the offset from the body origin are in global coordinates." msgstr "" "在施加的力和扭矩上增加一个有作用点的冲量。力和物体原点的偏移量都在全局坐标" "中。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Removes all shapes from a body." msgstr "从物体上移除所有碰撞形状。" #: doc/classes/Physics2DServer.xml msgid "Creates a physics body." msgstr "创建一个物理体。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the physics layer or layers a body belongs to." msgstr "返回物体所属的物理层或层。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the physics layer or layers a body can collide with." msgstr "返回物体可以碰撞的物理层或层。" #: doc/classes/Physics2DServer.xml msgid "Returns the continuous collision detection mode." msgstr "返回连续碰撞检测模式。" #: doc/classes/Physics2DServer.xml msgid "" "Returns the [Physics2DDirectBodyState] of the body. Returns [code]null[/" "code] if the body is destroyed or removed from the physics space." msgstr "" "返回物体的 [Physics2DDirectBodyState]。如果该物体已被销毁或者已被移出物理空" "间,则返回 [code]null[/code]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Returns the maximum contacts that can be reported. See [method " "body_set_max_contacts_reported]." msgstr "返回可报告的最大接触数。参阅[method body_set_max_contacts_reported]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the body mode." msgstr "返回物体模式。" #: doc/classes/Physics2DServer.xml msgid "" "Returns the value of a body parameter. See [enum BodyParameter] for a list " "of available parameters." msgstr "返回物体参数的值。请参阅[enum BodyParameter]获取可用参数列表。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the [RID] of the nth shape of a body." msgstr "返回body的第n个碰撞形状的[RID]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the number of shapes assigned to a body." msgstr "返回分配给物体的碰撞形状数量。" #: doc/classes/Physics2DServer.xml msgid "Returns the metadata of a shape of a body." msgstr "返回物体碰撞形状的元数据。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the transform matrix of a body shape." msgstr "返回物体碰撞形状的变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the [RID] of the space assigned to a body." msgstr "返回分配给物体的空间的[RID]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns a body state." msgstr "返回物体的状态。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Returns whether a body uses a callback function to calculate its own physics " "(see [method body_set_force_integration_callback])." msgstr "" "返回一个body是否使用回调函数来计算它自己的物理值(参阅" "body_set_force_integration_callback方法)。" #: doc/classes/Physics2DServer.xml msgid "Removes a body from the list of bodies exempt from collisions." msgstr "从免于碰撞的物体列表中移除一个物体。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Removes a shape from a body. The shape is not deleted, so it can be reused " "afterwards." msgstr "" "从物体上移除一个碰撞形状。碰撞形状不会被从内存中删除,所以它可以在之后被重复" "使用。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml #: doc/classes/RigidBody.xml msgid "" "Sets an axis velocity. The velocity in the given vector axis will be set as " "the given vector length. This is useful for jumping behavior." msgstr "" "设置轴速度。给定向量轴上的速度将被设置为给定向量长度。这对跳跃行为很有用。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Sets the physics layer or layers a body belongs to." msgstr "设置物体所属的物理层或层。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Sets the physics layer or layers a body can collide with." msgstr "设置物理层或身体可以碰撞的层。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the continuous collision detection mode using one of the [enum CCDMode] " "constants.\n" "Continuous collision detection tries to predict where a moving body will " "collide, instead of moving it and correcting its movement if it collided." msgstr "" "设置使用[enum CCDMode]常量之一的连续碰撞检测模式。\n" "连续碰撞检测试图预测一个运动体将在哪里发生碰撞,而不是移动它并在它发生碰撞时" "纠正其运动。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Sets the function used to calculate physics for an object, if that object " "allows it (see [method body_set_omit_force_integration])." msgstr "" "设置用于物体物理运算的函数,如果该物体允许的话,参阅[method " "body_set_omit_force_integration]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Sets the maximum contacts to report. Bodies can keep a log of the contacts " "with other bodies, this is enabled by setting the maximum amount of contacts " "reported to a number greater than 0." msgstr "" "设置要报告的最大关联数。物体可以保存与其他物体的关联日志,当最大数量的关联报" "告的数字大于 0 时才启用此功能。" #: doc/classes/Physics2DServer.xml msgid "Sets the body mode using one of the [enum BodyMode] constants." msgstr "使用[enum BodyMode]常量之一设置body模式。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Sets whether a body uses a callback function to calculate its own physics " "(see [method body_set_force_integration_callback])." msgstr "" "设置一个物体是否使用回调函数来计算它自己的物理(参阅 [method " "body_set_force_integration_callback])。" #: doc/classes/Physics2DServer.xml msgid "" "Sets a body parameter. See [enum BodyParameter] for a list of available " "parameters." msgstr "设置主体参数。请参阅 [enum BodyParameter] 获取可用参数列表。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Substitutes a given body shape by another. The old shape is selected by its " "index, the new one by its [RID]." msgstr "" "用一个给定的物体形状代替另一个。旧的形状是通过其索引选择的,新的是通过其[RID]" "选择的。" #: doc/classes/Physics2DServer.xml msgid "" "Enables one way collision on body if [code]enable[/code] is [code]true[/" "code]." msgstr "如果[code]enable[/code]为 [code]true[/code],则在body上启用单向碰撞。" #: doc/classes/Physics2DServer.xml msgid "Disables shape in body if [code]disable[/code] is [code]true[/code]." msgstr "如果[code]disable[/code]为 [code]true[/code],则在body中禁用形状。" #: doc/classes/Physics2DServer.xml msgid "" "Sets metadata of a shape within a body. This metadata is different from " "[method Object.set_meta], and can be retrieved on shape queries." msgstr "" "设置一个体中的形状的元数据。这个元数据与[method Object.set_meta]不同,可以在" "形状查询中检索。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Sets the transform matrix for a body shape." msgstr "设置物体形状的变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Assigns a space to the body (see [method space_create])." msgstr "给物体分配一个空间(参阅 [method space_create])。" #: doc/classes/Physics2DServer.xml msgid "" "Sets a body state using one of the [enum BodyState] constants.\n" "Note that the method doesn't take effect immediately. The state will change " "on the next physics frame." msgstr "" "使用 [enum BodyState] 常量之一设置物体状态。\n" "请注意,该方法不会立即生效。状态将在下一个物理帧发生变化。" #: doc/classes/Physics2DServer.xml msgid "" "Returns [code]true[/code] if a collision would result from moving in the " "given direction from a given point in space. Margin increases the size of " "the shapes involved in the collision detection. [Physics2DTestMotionResult] " "can be passed to return additional information in." msgstr "" "如果从空间中的给定点沿给定方向移动会导致碰撞,则返回 [code]true[/code]。边距" "增加了碰撞检测中涉及的形状的大小。 通过返回[Physics2DTestMotionResult] 可以附" "加信息。" #: doc/classes/Physics2DServer.xml msgid "" "Creates a damped spring joint between two bodies. If not specified, the " "second body is assumed to be the joint itself." msgstr "" "在两个体之间创建一个阻尼弹簧关节。如果没有指定,第二个体将被假定为关节本身。" #: doc/classes/Physics2DServer.xml msgid "Returns the value of a damped spring joint parameter." msgstr "返回阻尼弹簧关节参数值。" #: doc/classes/Physics2DServer.xml msgid "" "Sets a damped spring joint parameter. See [enum DampedStringParam] for a " "list of available parameters." msgstr "设置阻尼弹簧关节参数。参阅[enum DampedStringParam]获取可用参数的列表。" #: doc/classes/Physics2DServer.xml msgid "" "Destroys any of the objects created by Physics2DServer. If the [RID] passed " "is not one of the objects that can be created by Physics2DServer, an error " "will be sent to the console." msgstr "" "销毁由 Physics2DServer 创建的任何对象。如果传递的 [RID] 不是 Physics2DServer " "可以创建的对象之一,则会向控制台发送错误。" #: doc/classes/Physics2DServer.xml msgid "" "Returns information about the current state of the 2D physics engine. See " "[enum ProcessInfo] for a list of available states." msgstr "" "返回关于2D物理引擎当前状态的信息。有关可用状态列表,请参阅[enum " "ProcessInfo]。" #: doc/classes/Physics2DServer.xml msgid "" "Creates a groove joint between two bodies. If not specified, the bodies are " "assumed to be the joint itself." msgstr "在两个物体之间形成凹槽连接。如果没有指定,则假定物体是关节本身。" #: doc/classes/Physics2DServer.xml msgid "Returns the value of a joint parameter." msgstr "返回关节参数的值。" #: doc/classes/Physics2DServer.xml msgid "Returns a joint's type (see [enum JointType])." msgstr "返回一个关节的类型(见[enum JointType])。" #: doc/classes/Physics2DServer.xml msgid "" "Sets a joint parameter. See [enum JointParam] for a list of available " "parameters." msgstr "设置关节参数。有关可用参数的列表,请参阅[enum JointParam]。" #: doc/classes/Physics2DServer.xml msgid "" "Creates a pin joint between two bodies. If not specified, the second body is " "assumed to be the joint itself." msgstr "" "在两个体之间创建一个针状关节。如果没有指定,第二个物体将被假定为关节本身。" #: doc/classes/Physics2DServer.xml msgid "Activates or deactivates the 2D physics engine." msgstr "激活或停用2D物理引擎。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the amount of iterations for calculating velocities of colliding " "bodies. The greater the amount of iterations, the more accurate the " "collisions will be. However, a greater amount of iterations requires more " "CPU power, which can decrease performance. The default value is [code]8[/" "code]." msgstr "" "设置计算碰撞体速度的迭代次数。迭代次数越多,碰撞就越准确。但是,更大量的迭代" "需要更多的 CPU 能力,这会降低性能。默认值为 [code]8[/code]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the shape data." msgstr "返回形状数据。" #: doc/classes/Physics2DServer.xml msgid "Returns a shape's type (see [enum ShapeType])." msgstr "返回一个形状的类型(参阅[enum ShapeType])。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Sets the shape data that defines its shape and size. The data to be passed " "depends on the kind of shape created [method shape_get_type]." msgstr "" "设置定义形状和大小的形状数据。要传递的数据取决于创建的形状的类型[method " "shape_get_type]。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Creates a space. A space is a collection of parameters for the physics " "engine that can be assigned to an area or a body. It can be assigned to an " "area with [method area_set_space], or to a body with [method body_set_space]." msgstr "" "创建一个空间。空间是物理引擎的参数集合,可以分配给区域或主体。它可以通过" "[method area_set_space]分配给一个区域,或者通过[method body_set_space]分配给" "一个主体。" #: doc/classes/Physics2DServer.xml msgid "" "Returns the state of a space, a [Physics2DDirectSpaceState]. This object can " "be used to make collision/intersection queries." msgstr "" "返回空间的状态,[Physics2DDirectSpaceState]。此对象可用于进行碰撞/相交查询。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns the value of a space parameter." msgstr "返回空间参数的值。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Returns whether the space is active." msgstr "返回该空间是否是活动的。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Marks a space as active. It will not have an effect, unless it is assigned " "to an area or body." msgstr "将空间标记为活动空间。它不会有效果,除非它被分配到一个区域或物体。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the value for a space parameter. See [enum SpaceParameter] for a list " "of available parameters." msgstr "设置空间参数的值。参阅[enum SpaceParameter]获取可用参数列表。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the maximum distance a pair of bodies has to move before " "their collision status has to be recalculated." msgstr "常量,用于设置/获取一对物体在其碰撞状态被重新计算之前的最大移动距离。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the maximum distance a shape can be from another before " "they are considered separated." msgstr "常量,用于设置/获取形状在被视为分离之前与另一形状之间的最大距离。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the maximum distance a shape can penetrate another shape " "before it is considered a collision." msgstr "常量,用来设置/得到一个形状在被认为碰撞之前穿透另一个形状的最大距离。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the threshold linear velocity of activity. A body marked " "as potentially inactive for both linear and angular velocity will be put to " "sleep after the time given." msgstr "" "常量,用于设置/获取活跃的阈值线速度。一个被标记为线性速度和角速度都可能不活跃" "的物体将在给定的时间后进入睡眠状态。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the threshold angular velocity of activity. A body " "marked as potentially inactive for both linear and angular velocity will be " "put to sleep after the time given." msgstr "" "常量,用于设置/获取活动的阈值角速度。一个被标记为线性和角速度都可能不活跃的物" "体,在给定的时间后将会进入睡眠状态。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the maximum time of activity. A body marked as " "potentially inactive for both linear and angular velocity will be put to " "sleep after this time." msgstr "" "常量,用于设置/获得最大的活动时间。一个被标记为线速度和角速度都可能不活动的物" "体,在这个时间之后将被置入睡眠状态。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the default solver bias for all physics constraints. A " "solver bias is a factor controlling how much two objects \"rebound\", after " "violating a constraint, to avoid leaving them in that state because of " "numerical imprecision." msgstr "" "常量,用于设置/获取所有物理约束的默认求解器偏置。解算器偏差是一个控制两个物体" "在违反约束后 \"反弹 \"程度的因素,以避免由于数值不精确而使它们处于这种状态。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating line shapes. A line shape is an infinite " "line with an origin point, and a normal. Thus, it can be used for front/" "behind checks." msgstr "" "这是创建线型形状的常量。线条形状是一条具有原点和法线的无限长直线。因此,它可" "以被用于前后检查。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating segment shapes. A segment shape is a line " "from a point A to a point B. It can be checked for intersections." msgstr "" "这是创建线段形状的常量。线段形状是一条从A点到B点的线,它可以被检查交点。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating circle shapes. A circle shape only has a " "radius. It can be used for intersections and inside/outside checks." msgstr "" "这是创建圆形的常量。一个圆的形状只有一个半径。它可以用于交点和内/外侧检查。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating rectangle shapes. A rectangle shape is " "defined by a width and a height. It can be used for intersections and inside/" "outside checks." msgstr "" "这是用于创建矩形形状的常量。矩形形状是由宽度和高度定义的。它可以用于交点和内/" "外侧检查。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating capsule shapes. A capsule shape is defined " "by a radius and a length. It can be used for intersections and inside/" "outside checks." msgstr "" "这是创建胶囊形状的常量。一个胶囊形状由一个半径和一个长度定义。它可以用于交点" "和内/外侧检查。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating convex polygon shapes. A polygon is " "defined by a list of points. It can be used for intersections and inside/" "outside checks. Unlike the [member CollisionPolygon2D.polygon] property, " "polygons modified with [method shape_set_data] do not verify that the points " "supplied form is a convex polygon." msgstr "" "这是用于创建凸多边形的常量。一个多边形是由一个点的列表定义的。它可以用于交点" "和内/外侧检查。与[member CollisionPolygon2D.polygon]属性不同,用[method " "shape_set_data]修改的多边形并不验证所提供的点的形式是一个凸形多边形。" #: doc/classes/Physics2DServer.xml msgid "" "This is the constant for creating concave polygon shapes. A polygon is " "defined by a list of points. It can be used for intersections checks, but " "not for inside/outside checks." msgstr "" "这是创建凹形多边形的常量。一个多边形是由一个点的列表定义的。它可以用于交叉点" "检查,但不能用于内/外侧检查。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This constant is used internally by the engine. Any attempt to create this " "kind of shape results in an error." msgstr "引擎内部会使用这个常量。任何试图创建这种形状的行为都会导致错误。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get gravity strength in an area." msgstr "常量,用于设置/获取区域中的重力强度。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get gravity vector/center in an area." msgstr "常量,用于设置/获取区域中的重力向量/中心。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get whether the gravity vector of an area is a direction, or " "a center point." msgstr "常量,用于设置/获取区域中的重力向量是方向,还是中心点。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to set/get the falloff factor for point gravity of an area. The " "greater this value is, the faster the strength of gravity decreases with the " "square of distance." msgstr "" "常量,用于设置/获取区域中的点重力的衰减系数。这个值越大,重力的强度随着距离的" "平方下降得越快。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This constant was used to set/get the falloff factor for point gravity. It " "has been superseded by [constant AREA_PARAM_GRAVITY_DISTANCE_SCALE]." msgstr "" "这个常量用于设置/获取点重力的衰减因子。它已经被 [constant " "AREA_PARAM_GRAVITY_DISTANCE_SCALE] 所取代了。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get the linear dampening factor of an area." msgstr "常量,用于设置/获取区域的线性阻尼系数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get the angular dampening factor of an area." msgstr "常量,用于设置/获取区域的角度阻尼系数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get the priority (order of processing) of an area." msgstr "常量,用于设置/获取区域的优先级(处理顺序)。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This area does not affect gravity/damp. These are generally areas that exist " "only to detect collisions, and objects entering or exiting them." msgstr "" "这个区域不影响重力/阻尼。这些一般都是只存在于检测碰撞的区域,以及进入或离开它" "们的物体。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This area adds its gravity/damp values to whatever has been calculated so " "far. This way, many overlapping areas can combine their physics to make " "interesting effects." msgstr "" "此区域把它的重力/阻尼加到目前已经计算过的对象上。这样一来,许多重叠的区域可以" "结合它们的物理运算来产生有趣的效果。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This area adds its gravity/damp values to whatever has been calculated so " "far. Then stops taking into account the rest of the areas, even the default " "one." msgstr "" "这个区域把它的重力/阻尼加到迄今为止已经计算出来的任何东西上。然后停止考虑其余" "的区域,甚至默认的区域。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This area replaces any gravity/damp, even the default one, and stops taking " "into account the rest of the areas." msgstr "这个区域取代了任何重力/阻尼,甚至是默认的,并停止考虑其余的区域。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "This area replaces any gravity/damp calculated so far, but keeps calculating " "the rest of the areas, down to the default one." msgstr "" "这个区域取代了到目前为止计算的任何重力/阻尼,但继续计算其余的区域,直到默认的" "区域。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant for static bodies." msgstr "StaticBody 的常量。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant for kinematic bodies." msgstr "KinematicBody 的常量。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant for rigid bodies." msgstr "RigidBody 的常量。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant for rigid bodies in character mode. In this mode, a body can not " "rotate, and only its linear velocity is affected by physics." msgstr "" "角色模式下刚体的常量。在这种模式下,物体不能旋转,只有它的线速度受物理运算影" "响。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get a body's bounce factor." msgstr "常量,用于设置/获取物体的反弹系数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get a body's friction." msgstr "常量,用于设置/获取物体的摩擦力。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get a body's mass." msgstr "常量,用于设置/获取物体的质量。" #: doc/classes/Physics2DServer.xml msgid "Constant to set/get a body's inertia." msgstr "常量,用于设置/获取物体的惯性。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get a body's gravity multiplier." msgstr "常量,用于设置/获取物体的重力倍数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get a body's linear dampening factor." msgstr "常量,用于设置/获取物体的线性阻尼系数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get a body's angular dampening factor." msgstr "常量,用于设置/获取物体的角度阻尼系数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Represents the size of the [enum BodyParameter] enum." msgstr "表示[enum BodyParameter]枚举的大小。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get the current transform matrix of the body." msgstr "常量,用于设置/获取物体的当前变换矩阵。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get the current linear velocity of the body." msgstr "常量,用于设置/获取物体的当前线速度。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get the current angular velocity of the body." msgstr "常量,用于设置/获取物体的当前角速度。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to sleep/wake up a body, or to get whether it is sleeping." msgstr "常量,用于使物体沉睡/唤醒,或得到它是否在沉睡。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to set/get whether the body can sleep." msgstr "常量,用于设置/获取物体是否可以休眠。" #: doc/classes/Physics2DServer.xml msgid "Constant to create pin joints." msgstr "常量,用于创造钉关节。" #: doc/classes/Physics2DServer.xml msgid "Constant to create groove joints." msgstr "常量,用于创造槽关节。" #: doc/classes/Physics2DServer.xml msgid "Constant to create damped spring joints." msgstr "常量,用于创造有阻尼的弹簧关节。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the resting length of the spring joint. The joint will always try to go " "to back this length when pulled apart." msgstr "设定弹簧关节的静止长度。当拉开时,关节将总是试图回到这个长度。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the stiffness of the spring joint. The joint applies a force equal to " "the stiffness times the distance from its resting length." msgstr "设置弹簧接头的刚度。该关节施加的力等于刚度乘以离其静止长度的距离。" #: doc/classes/Physics2DServer.xml msgid "" "Sets the damping ratio of the spring joint. A value of 0 indicates an " "undamped spring, while 1 causes the system to reach equilibrium as fast as " "possible (critical damping)." msgstr "" "设置弹簧接头的阻尼比率。值为0表示无阻尼弹簧,而1导致系统尽可能快地达到平衡" "(临界阻尼)。" #: doc/classes/Physics2DServer.xml msgid "" "Disables continuous collision detection. This is the fastest way to detect " "body collisions, but can miss small, fast-moving objects." msgstr "" "禁用连续碰撞检测。这是检测物体碰撞的最快方法,但可能会错过小的、快速移动的物" "体。" #: doc/classes/Physics2DServer.xml msgid "" "Enables continuous collision detection by raycasting. It is faster than " "shapecasting, but less precise." msgstr "通过射线投射实现连续的碰撞检测。它比shapecasting更快,但不够精确。" #: doc/classes/Physics2DServer.xml msgid "" "Enables continuous collision detection by shapecasting. It is the slowest " "CCD method, and the most precise." msgstr "通过形变实现连续的碰撞检测。它是最慢的CCD方法,也是最精确的。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "The value of the first parameter and area callback function receives, when " "an object enters one of its shapes." msgstr "当对象进入其形状之一时,第一个参数和区域回调函数接收的值。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "The value of the first parameter and area callback function receives, when " "an object exits one of its shapes." msgstr "当对象退出其形状之一时,第一个参数和区域回调函数接收的值。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to get the number of objects that are not sleeping." msgstr "常量,用以获取未处于睡眠状态的对象的数量。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "Constant to get the number of possible collisions." msgstr "常量,用以获取可能的碰撞数。" #: doc/classes/Physics2DServer.xml doc/classes/PhysicsServer.xml msgid "" "Constant to get the number of space regions where a collision could occur." msgstr "常量,用以获取可能发生碰撞的空间区域数。" #: doc/classes/Physics2DShapeQueryParameters.xml msgid "Parameters to be sent to a 2D shape physics query." msgstr "要发送到 2D 形状物理查询的参数。" #: doc/classes/Physics2DShapeQueryParameters.xml msgid "" "This class contains the shape and other parameters for 2D intersection/" "collision queries." msgstr "此类包含用于 2D 相交/碰撞查询的形状和其他参数。" #: doc/classes/Physics2DShapeQueryParameters.xml msgid "" "Sets the [Shape2D] that will be used for collision/intersection queries." msgstr "设置用于碰撞/相交查询的 [Shape2D]。" #: doc/classes/Physics2DShapeQueryParameters.xml msgid "If [code]true[/code], the query will take [Area2D]s into account." msgstr "如果[code]true[/code],查询将考虑[Area2D]。" #: doc/classes/Physics2DShapeQueryParameters.xml msgid "" "If [code]true[/code], the query will take [PhysicsBody2D]s into account." msgstr "如果[code]true[/code],查询将考虑[PhysicsBody2D]。" #: doc/classes/Physics2DShapeQueryParameters.xml #: doc/classes/PhysicsShapeQueryParameters.xml msgid "" "The physics layer(s) the query will take into account (as a bitmask). See " "[url=$DOCS_URL/tutorials/physics/physics_introduction.html#collision-layers-" "and-masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "查询将考虑的物理层(作为位掩码)。有关更多信息,请参阅文档中的[url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-masks]《碰撞" "层与掩码》[/url]。" #: doc/classes/Physics2DShapeQueryParameters.xml #: doc/classes/PhysicsShapeQueryParameters.xml msgid "" "The list of objects or object [RID]s that will be excluded from collisions." msgstr "将被排除在冲突之外的对象或对象列表。" #: doc/classes/Physics2DShapeQueryParameters.xml #: doc/classes/PhysicsShapeQueryParameters.xml msgid "The collision margin for the shape." msgstr "形状的碰撞边距。" #: doc/classes/Physics2DShapeQueryParameters.xml msgid "The motion of the shape being queried for." msgstr "正在查询的形状的运动。" #: doc/classes/Physics2DShapeQueryParameters.xml #: doc/classes/PhysicsShapeQueryParameters.xml msgid "The queried shape's [RID]. See also [method set_shape]." msgstr "查询形状的 [RID]。另见[method set_shape]。" #: doc/classes/Physics2DShapeQueryParameters.xml #: doc/classes/PhysicsShapeQueryParameters.xml msgid "The queried shape's transform matrix." msgstr "被查询形状的变换矩阵。" #: doc/classes/PhysicsBody.xml msgid "Base class for all objects affected by physics in 3D space." msgstr "在3D空间中受物理影响的所有对象的基类。" #: doc/classes/PhysicsBody.xml msgid "" "PhysicsBody is an abstract base class for implementing a physics body. All " "*Body types inherit from it." msgstr "PhysicsBody 是用于实现物理体的抽象基类。所有 *Body 类型都继承自它。" #: doc/classes/PhysicsBody.xml doc/classes/PhysicsBody2D.xml #: doc/classes/SoftBody.xml msgid "Adds a body to the list of bodies that this body can't collide with." msgstr "将一个物体添加到这个物体不能碰撞的物体列表中。" #: doc/classes/PhysicsBody.xml doc/classes/PhysicsBody2D.xml #: doc/classes/SoftBody.xml msgid "" "Returns an array of nodes that were added as collision exceptions for this " "body." msgstr "返回该物体的碰撞例外节点数组。" #: doc/classes/PhysicsBody.xml doc/classes/PhysicsBody2D.xml #: doc/classes/SoftBody.xml msgid "" "Removes a body from the list of bodies that this body can't collide with." msgstr "将一个物体从该物体不能碰撞的物体列表中移除。" #: doc/classes/PhysicsBody2D.xml msgid "Base class for all objects affected by physics in 2D space." msgstr "2D空间中所有受物理影响的对象的基类。" #: doc/classes/PhysicsBody2D.xml msgid "" "PhysicsBody2D is an abstract base class for implementing a physics body. All " "*Body2D types inherit from it." msgstr "" "PhysicsBody2D 是一个用于实现物理实体的抽象基类。所有 *Body2D 类型都继承自它。" #: doc/classes/PhysicsBody2D.xml msgid "" "Both collision_layer and collision_mask. Returns collision_layer when " "accessed. Updates collision_layer and collision_mask when modified." msgstr "碰撞层和碰撞掩码。访问时返回碰撞层。修改时更新碰撞层和碰撞掩码。" #: doc/classes/PhysicsDirectBodyState.xml msgid "Direct access object to a physics body in the [PhysicsServer]." msgstr "直接访问 [PhysicsServer] 中的物理体的对象。" #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Provides direct access to a physics body in the [PhysicsServer], allowing " "safe changes to physics properties. This object is passed via the direct " "state callback of rigid/character bodies, and is intended for changing the " "direct state of that body. See [method RigidBody._integrate_forces]." msgstr "" "提供对 [PhysicsServer] 中物理实体的直接访问,允许安全更改物理属性。该对象通过" "刚体/角色物体的直接状态回调传递,直接改变该物体的状态。参阅 [method " "RigidBody._integrate_forces]。" #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Adds a constant directional force without affecting rotation.\n" "This is equivalent to [code]add_force(force, Vector3(0,0,0))[/code]." msgstr "" "增加一个恒定的方向力,而不影响旋转。\n" "这相当于[code]add_force(force, Vector3(0,0,0))[/code]。" #: doc/classes/PhysicsDirectBodyState.xml msgid "Adds a constant rotational force without affecting position." msgstr "在不影响位置的情况下增加一个恒定的旋转力。" #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Applies a single directional impulse without affecting rotation.\n" "This is equivalent to [code]apply_impulse(Vector3(0, 0, 0), impulse)[/code]." msgstr "" "施加单一方向的冲量而不影响旋转。\n" "这等价于 [code]apply_impulse(Vector3(0, 0, 0), impulse)[/code]。" #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Applies a positioned impulse to the body. An impulse is time-independent! " "Applying an impulse every frame would result in a framerate-dependent force. " "For this reason it should only be used when simulating one-time impacts. The " "position uses the rotation of the global coordinate system, but is centered " "at the object's origin." msgstr "" "对物体施加一个有作用点的冲量。冲量是时间无关的! 在每一帧中施加冲量将产生一个" "与帧速率相关的力。出于这个原因,它应该只在模拟一次性冲击时使用。该位置使用全" "局坐标系的旋转,但以物体的原点为中心。" #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Apply a torque impulse (which will be affected by the body mass and shape). " "This will rotate the body around the vector [code]j[/code] passed as " "parameter." msgstr "" "施加一个扭矩冲量(将受到物体质量和形状的影响)。这将围绕作为参数传递的向量 " "[code]j[/code] 旋转主体。" #: doc/classes/PhysicsDirectBodyState.xml msgid "Returns the collider object." msgstr "返回碰撞对象。" #: doc/classes/PhysicsDirectBodyState.xml msgid "" "Returns the number of contacts this body has with other bodies.\n" "[b]Note:[/b] By default, this returns 0 unless bodies are configured to " "monitor contacts. See [member RigidBody.contact_monitor]." msgstr "" "返回此物体与其他物体的接触次数。\n" "[b]注意:[/b]默认情况下,除非物体被设为监视接触者,否则返回0。参阅 [member " "RigidBody2D.contact_monitor]。" #: doc/classes/PhysicsDirectBodyState.xml msgid "Impulse created by the contact. Only implemented for Bullet physics." msgstr "由接触产生的冲量。仅适用于子弹物理。" #: doc/classes/PhysicsDirectBodyState.xml doc/classes/RigidBody.xml msgid "" "The body's rotational velocity in axis-angle format. The magnitude of the " "vector is the rotation rate in [i]radians[/i] per second." msgstr "" "物体的旋转速度,使用轴-角格式。向量的大小表示旋转率,单位为[i]弧度[/i]每秒。" #: doc/classes/PhysicsDirectBodyState.xml msgid "The body's linear velocity in units per second." msgstr "物体的线速度,单位为单位每秒。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "Direct access object to a space in the [PhysicsServer]." msgstr "直接访问 [PhysicsServer] 中空间的对象。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Direct access object to a space in the [PhysicsServer]. It's used mainly to " "do queries against objects and areas residing in a given space." msgstr "" "直接访问 [PhysicsServer] 中空间的对象。它主要用于对驻留在特定空间的对象和区域" "进行查询。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Checks how far a [Shape] can move without colliding. All the parameters for " "the query, including the shape, are supplied through a " "[PhysicsShapeQueryParameters] object.\n" "Returns an array with the safe and unsafe proportions (between 0 and 1) of " "the motion. The safe proportion is the maximum fraction of the motion that " "can be made without a collision. The unsafe proportion is the minimum " "fraction of the distance that must be moved for a collision. If no collision " "is detected a result of [code][1.0, 1.0][/code] will be returned.\n" "[b]Note:[/b] Any [Shape]s that the shape is already colliding with e.g. " "inside of, will be ignored. Use [method collide_shape] to determine the " "[Shape]s that the shape is already colliding with." msgstr "" "检查 [Shape] 可以移动多远而不会发生碰撞。查询的所有参数,包括形状,都是通过 " "[PhysicsShapeQueryParameters] 对象提供的。\n" "返回一个包含运动的安全和不安全比例(0 到 1 之间)的数组。安全比例是在没有碰撞" "的情况下可以进行的运动的最大比例。不安全比例是碰撞必须移动的距离的最小部分。" "如果未检测到碰撞,将返回 [code][1.0, 1.0][/code] 的结果。\n" "[b]注意:[/b]任何已经碰撞的[Shape2D](比如内部的)会被忽略。使用 [method " "collide_shape] 确定形状已经碰撞的 [Shape]。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Checks the intersections of a shape, given through a " "[PhysicsShapeQueryParameters] object, against the space. The resulting array " "contains a list of points where the shape intersects another. Like with " "[method intersect_shape], the number of returned results can be limited to " "save processing time." msgstr "" "通过[PhysicsShapeQueryParameters]对象给出的形状与空间检查交点。结果数组包含一" "个形状与另一个形状相交的点的列表。与[method intersect_shape]一样,可以限制返" "回结果的数量,以节省处理时间。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Checks the intersections of a shape, given through a " "[PhysicsShapeQueryParameters] object, against the space. If it collides with " "more than one shape, the nearest one is selected. The returned object is a " "dictionary containing the following fields:\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]linear_velocity[/code]: The colliding object's velocity [Vector3]. If " "the object is an [Area], the result is [code](0, 0, 0)[/code].\n" "[code]normal[/code]: The object's surface normal at the intersection point.\n" "[code]point[/code]: The intersection point.\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "If the shape did not intersect anything, then an empty dictionary is " "returned instead." msgstr "" "检查通过[PhysicsShapeQueryParameters]对象给出的形状与空间的交点。如果它与一个" "以上的形状发生碰撞,则选择最近的。返回的对象是包含以下字段的字典:\n" "[code]collider_id[/code]:碰撞对象的ID。\n" "[code]linear_velocity[/code]:碰撞对象的速度[Vector3]。如果对象是一个[Area]," "结果是[code](0, 0, 0)[/code]。\n" "[code]normal[/code]:物体在交点处的表面法线。\n" "[code]点[/code]:相交点。\n" "[code]rid[/code]:相交物体的[RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "如果该形状没有与任何物体相交,那么将返回空的字典。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Checks whether a point is inside any solid shape. The shapes the point is " "inside of are returned in an array containing dictionaries with the " "following fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "The number of intersections can be limited with the [code]max_results[/code] " "parameter, to reduce the processing time.\n" "Additionally, the method can take an [code]exclude[/code] array of objects " "or [RID]s that are to be excluded from collisions, a [code]collision_mask[/" "code] bitmask representing the physics layers to check in, or booleans to " "determine if the ray should collide with [PhysicsBody]s or [Area]s, " "respectively." msgstr "" "检查一个点是否位于任何实体形状内。该点所在的形状会以字典数组的形式返回,字典" "包含以下字段:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的 ID。\n" "[code]rid[/code]:相交物体的 [RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "为了减少处理时间,可以通过 [code]max_results[/code] 参数限制相交数量。\n" "此外,该方法可以接受一个 [code]exclude[/code] 对象或 [RID] 数组,该数组将被排" "除在碰撞之外,[code]collision_mask[/code] 位掩码表示要检查的物理层,或者布尔" "值来确定射线是否应该分别与 [PhysicsBody] 或 [Area] 发生碰撞。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Intersects a ray in a given space. The returned object is a dictionary with " "the following fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]normal[/code]: The object's surface normal at the intersection point.\n" "[code]position[/code]: The intersection point.\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "If the ray did not intersect anything, then an empty dictionary is returned " "instead.\n" "Additionally, the method can take an [code]exclude[/code] array of objects " "or [RID]s that are to be excluded from collisions, a [code]collision_mask[/" "code] bitmask representing the physics layers to check in, or booleans to " "determine if the ray should collide with [PhysicsBody]s or [Area]s, " "respectively." msgstr "" "在给定的空间中与一条射线相交。返回的对象是具有下列字段的字典:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的ID。\n" "[code]normal[/code]:物体在相交点的表面法线。\n" "[code]position[/code]:交叉点。\n" "[code]rid[/code]:相交物体的[RID]。\n" "[code]形状[/code]:碰撞形状的形状索引。\n" "如果射线没有与任何物体相交,那么将返回空的字典。\n" "此外,该方法可以接受一个[code]exclude[/code]对象或[RID]数组,该数组将被排除在" "碰撞之外,[code]collision_mask[/code]位掩码表示要检查的物理层,或者布尔值来确" "定射线是否应该分别与[PhysicsBody]或[Area]发生碰撞。" #: doc/classes/PhysicsDirectSpaceState.xml msgid "" "Checks the intersections of a shape, given through a " "[PhysicsShapeQueryParameters] object, against the space. The intersected " "shapes are returned in an array containing dictionaries with the following " "fields:\n" "[code]collider[/code]: The colliding object.\n" "[code]collider_id[/code]: The colliding object's ID.\n" "[code]rid[/code]: The intersecting object's [RID].\n" "[code]shape[/code]: The shape index of the colliding shape.\n" "The number of intersections can be limited with the [code]max_results[/code] " "parameter, to reduce the processing time." msgstr "" "通过[PhysicsShapeQueryParameters]对象给出的形状与空间检查交点。相交的形状会以" "数组的形式返回,该数组包含有以下字段的字典:\n" "[code]collider[/code]:碰撞的对象。\n" "[code]collider_id[/code]:碰撞对象的ID。\n" "[code]rid[/code]:相交物体的[RID]。\n" "[code]shape[/code]:碰撞形状的形状索引。\n" "可以用[code]max_results[/code]参数限制相交的数量,以减少处理时间。" #: doc/classes/PhysicsMaterial.xml msgid "A material for physics properties." msgstr "具有物理属性的材质。" #: doc/classes/PhysicsMaterial.xml msgid "" "Provides a means of modifying the collision properties of a [PhysicsBody]." msgstr "提供了一种修改[PhysicsBody]的碰撞属性的方法。" #: doc/classes/PhysicsMaterial.xml msgid "" "If [code]true[/code], subtracts the bounciness from the colliding object's " "bounciness instead of adding it." msgstr "如果[code]true[/code],则从碰撞对象的弹跳性中减去弹性,而不是添加它。" #: doc/classes/PhysicsMaterial.xml msgid "" "The body's bounciness. Values range from [code]0[/code] (no bounce) to " "[code]1[/code] (full bounciness)." msgstr "" "实体的弹性。值的范围从[code]0[/code](无反弹)到[code]1[/code](完全反弹)。" #: doc/classes/PhysicsMaterial.xml msgid "" "The body's friction. Values range from [code]0[/code] (frictionless) to " "[code]1[/code] (maximum friction)." msgstr "" "物体的摩擦。取值范围从[code]0[/code](无摩擦)到[code]1[/code](最大摩擦)。" #: doc/classes/PhysicsMaterial.xml msgid "" "If [code]true[/code], the physics engine will use the friction of the object " "marked as \"rough\" when two objects collide. If [code]false[/code], the " "physics engine will use the lowest friction of all colliding objects " "instead. If [code]true[/code] for both colliding objects, the physics engine " "will use the highest friction." msgstr "" "如果 [code]true[/code],当两个物体碰撞时,物理引擎将使用标记为“粗糙”的物体的" "摩擦。如果 [code]false[/code],物理引擎将使用所有碰撞物体的最低摩擦力来代替。" "如果两个碰撞的对象都为 [code]true[/code],物理引擎将使用最高的摩擦力。" #: doc/classes/PhysicsServer.xml msgid "Server interface for low-level physics access." msgstr "用于低级物理访问的服务器接口。" #: doc/classes/PhysicsServer.xml msgid "" "PhysicsServer is the server responsible for all 3D physics. It can create " "many kinds of physics objects, but does not insert them on the node tree." msgstr "" "PhysicsServer 是负责所有 3D 物理的服务器。它可以创建许多种类的物理对象,但不" "会在节点树上插入这些对象。" #: doc/classes/PhysicsServer.xml msgid "Creates an [Area]." msgstr "创建一个[Area]区域。" #: doc/classes/PhysicsServer.xml msgid "" "Returns an area parameter value. A list of available parameters is on the " "[enum AreaParameter] constants." msgstr "返回区域参数值。可用参数列表位于[enum AreaParameter]常量上。" #: doc/classes/PhysicsServer.xml msgid "If [code]true[/code], area collides with rays." msgstr "如果[code]true[/code],则区域与光线碰撞。" #: doc/classes/PhysicsServer.xml msgid "" "Sets the value for an area parameter. A list of available parameters is on " "the [enum AreaParameter] constants." msgstr "设置面积参数的值。可用参数列表位于[enum AreaParameter]常量上。" #: doc/classes/PhysicsServer.xml msgid "Sets object pickable with rays." msgstr "设置可使用光线拾取的对象。" #: doc/classes/PhysicsServer.xml msgid "" "Sets the space override mode for the area. The modes are described in the " "[enum AreaSpaceOverrideMode] constants." msgstr "" "设置区域的空间替代模式。[enum AreaSpaceOverrideMode]常量中描述了这些模式。" #: doc/classes/PhysicsServer.xml msgid "" "Gives the body a push at a [code]position[/code] in the direction of the " "[code]impulse[/code]." msgstr "在 [code]position[/code] 处将物体朝 [code]impluse[/code] 方向推。" #: doc/classes/PhysicsServer.xml msgid "Gives the body a push to rotate it." msgstr "推动物体旋转。" #: doc/classes/PhysicsServer.xml msgid "" "Creates a physics body. The first parameter can be any value from [enum " "BodyMode] constants, for the type of body created. Additionally, the body " "can be created in sleeping state to save processing time." msgstr "" "创建物理体。对于创建的物体类型,第一个参数可以是[enum BodyMode]常量中的任何" "值。此外,物体可以在休眠状态下创建,以节省处理时间。" #: doc/classes/PhysicsServer.xml msgid "" "Returns the [PhysicsDirectBodyState] of the body. Returns [code]null[/code] " "if the body is destroyed or removed from the physics space." msgstr "" "返回该物体的 [PhysicsDirectBodyState]。如果物体已被销毁或已被移出物理空间,则" "返回 [code]null[/code]。" #: doc/classes/PhysicsServer.xml msgid "" "Returns the value of a body parameter. A list of available parameters is on " "the [enum BodyParameter] constants." msgstr "返回物体参数的值。可用参数列表位于[enum BodyParameter]常量上。" #: doc/classes/PhysicsServer.xml msgid "" "If [code]true[/code], the continuous collision detection mode is enabled." msgstr "如果为 [code]true[/code],则启用连续碰撞检测模式。" #: doc/classes/PhysicsServer.xml msgid "If [code]true[/code], the body can be detected by rays." msgstr "如果为 [code]true[/code],则物体可以被光线探测到。" #: doc/classes/PhysicsServer.xml msgid "" "Removes a body from the list of bodies exempt from collisions.\n" "Continuous collision detection tries to predict where a moving body will " "collide, instead of moving it and correcting its movement if it collided." msgstr "" "从免于碰撞的实体列表中删除实体。\n" "连续碰撞检测尝试预测运动物体碰撞的位置,而不是在碰撞时移动物体并纠正其运动。" #: doc/classes/PhysicsServer.xml msgid "" "If [code]true[/code], the continuous collision detection mode is enabled.\n" "Continuous collision detection tries to predict where a moving body will " "collide, instead of moving it and correcting its movement if it collided." msgstr "" "如果[code]true[/code],则启用连续碰撞检测模式。\n" "连续碰撞检测尝试预测运动物体碰撞的位置,而不是在碰撞时移动物体并纠正其运动。" #: doc/classes/PhysicsServer.xml msgid "Sets the body mode, from one of the [enum BodyMode] constants." msgstr "从[enum BodyMode]常量之一设置主体模式。" #: doc/classes/PhysicsServer.xml msgid "" "Sets a body parameter. A list of available parameters is on the [enum " "BodyParameter] constants." msgstr "设置物体参数。可用参数列表位于[enum BodyParameter]常量上。" #: doc/classes/PhysicsServer.xml msgid "Sets the body pickable with rays if [code]enabled[/code] is set." msgstr "如果设置了[code]enabled[/code],则设置可使用光线拾取的物体。" #: doc/classes/PhysicsServer.xml msgid "Sets a body state (see [enum BodyState] constants)." msgstr "设置主体状态(请参阅[enum BodyState]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Returns [code]true[/code] if a collision would result from moving in the " "given direction from a given point in space. [PhysicsTestMotionResult] can " "be passed to return additional information in." msgstr "" "如果从空间的给定点向给定方向移动会导致碰撞,则返回 [code]true[/code]。可以通" "过[PhysicsTestMotionResult]来返回额外的信息。" #: doc/classes/PhysicsServer.xml msgid "" "Gets a cone_twist_joint parameter (see [enum ConeTwistJointParam] constants)." msgstr "获取圆锥体扭曲关节参数(请参阅[enum ConeTwistJointParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Sets a cone_twist_joint parameter (see [enum ConeTwistJointParam] constants)." msgstr "设置圆锥体扭曲关节参数(请参阅[enum ConeTwistJointParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Destroys any of the objects created by PhysicsServer. If the [RID] passed is " "not one of the objects that can be created by PhysicsServer, an error will " "be sent to the console." msgstr "" "销毁由 PhysicsServer 创建的任何对象。如果传递的 [RID] 不是 PhysicsServer 可以" "创建的对象之一,则会向控制台发送错误。" #: doc/classes/PhysicsServer.xml msgid "" "Gets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants)." msgstr "获取generic_6_DOF_joit flag(请参阅[enum G6DOFJointAxisFlag]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Gets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] " "constants)." msgstr "" "获取 generic_6_DOF_joint 参数(请参阅[enum G6DOFJointAxisParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Sets a generic_6_DOF_joint flag (see [enum G6DOFJointAxisFlag] constants)." msgstr "设置generic_6_DOF_joint flag(请参阅[enum G6DOFJointAxisFlag]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Sets a generic_6_DOF_joint parameter (see [enum G6DOFJointAxisParam] " "constants)." msgstr "设置 generic_6_DOF_joint参数(请参阅[enum G6DOFJointAxisParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Returns information about the current state of the 3D physics engine. See " "[enum ProcessInfo] for a list of available states. Only implemented for " "Godot Physics." msgstr "" "返回关于 3D 物理引擎当前状态的信息。有关可用状态列表,请参阅 [enum " "ProcessInfo]。仅在 Godot Physics 实现。" #: doc/classes/PhysicsServer.xml msgid "Gets a hinge_joint flag (see [enum HingeJointFlag] constants)." msgstr "获取铰链关节标志(请参阅[enum HingeJointFlag]常量)。" #: doc/classes/PhysicsServer.xml msgid "Gets a hinge_joint parameter (see [enum HingeJointParam])." msgstr "获取铰链关节参数(请参阅[enum HingeJointParam])。" #: doc/classes/PhysicsServer.xml msgid "Sets a hinge_joint flag (see [enum HingeJointFlag] constants)." msgstr "设置铰链关节标志(请参阅[enum HingeJointFlag]常量)。" #: doc/classes/PhysicsServer.xml msgid "Sets a hinge_joint parameter (see [enum HingeJointParam] constants)." msgstr "设置铰链关节参数(请参阅[enum HingeJointParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "Creates a [ConeTwistJoint]." msgstr "创建一个[ConeTwistJoint]。" #: doc/classes/PhysicsServer.xml msgid "Creates a [Generic6DOFJoint]." msgstr "创建一个 [Generic6DOFJoint]通用6向关节。" #: doc/classes/PhysicsServer.xml msgid "Creates a [HingeJoint]." msgstr "创建一个 [HingeJoint]关节。" #: doc/classes/PhysicsServer.xml msgid "Creates a [PinJoint]." msgstr "创建一个 [PinJoint]图钉关节。" #: doc/classes/PhysicsServer.xml msgid "Creates a [SliderJoint]." msgstr "创建一个 [SliderJoint]关节。" #: doc/classes/PhysicsServer.xml msgid "Gets the priority value of the Joint." msgstr "获取关节的优先级值。" #: doc/classes/PhysicsServer.xml msgid "Returns the type of the Joint." msgstr "返回关节的类型。" #: doc/classes/PhysicsServer.xml msgid "Sets the priority value of the Joint." msgstr "设置关节的优先级值。" #: doc/classes/PhysicsServer.xml msgid "" "Returns position of the joint in the local space of body a of the joint." msgstr "返回关节在关节物体A的局部空间中的位置。" #: doc/classes/PhysicsServer.xml msgid "" "Returns position of the joint in the local space of body b of the joint." msgstr "返回关节在关节物体B的局部空间中的位置。" #: doc/classes/PhysicsServer.xml msgid "Gets a pin_joint parameter (see [enum PinJointParam] constants)." msgstr "获取pin_joint参数(请参阅[enum PinJointParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "Sets position of the joint in the local space of body a of the joint." msgstr "设置关节在关节物体A的局部空间中的位置。" #: doc/classes/PhysicsServer.xml msgid "Sets position of the joint in the local space of body b of the joint." msgstr "设置关节在关节物体B的局部空间中的位置。" #: doc/classes/PhysicsServer.xml msgid "Sets a pin_joint parameter (see [enum PinJointParam] constants)." msgstr "设置pin_joint参数(请参阅[enum PinJointParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "Activates or deactivates the 3D physics engine." msgstr "激活或停用3D物理引擎。" #: doc/classes/PhysicsServer.xml msgid "" "Sets the amount of iterations for calculating velocities of colliding " "bodies. The greater the amount of iterations, the more accurate the " "collisions will be. However, a greater amount of iterations requires more " "CPU power, which can decrease performance. The default value is [code]8[/" "code].\n" "[b]Note:[/b] Only has an effect when using the GodotPhysics engine, not the " "default Bullet physics engine." msgstr "" "设置计算碰撞体速度的迭代次数。迭代次数越多,碰撞就越准确。但是,更大量的迭代" "需要更多的 CPU 能力,这会降低性能。默认值为 [code]8[/code]。\n" "[b]注意:[/b]仅在使用 GodotPhysics 引擎时有效,而不是默认的 Bullet 物理引擎。" #: doc/classes/PhysicsServer.xml msgid "" "Creates a shape of a type from [enum ShapeType]. Does not assign it to a " "body or an area. To do so, you must use [method area_set_shape] or [method " "body_set_shape]." msgstr "" "创建一个[enum ShapeType]类型的形状。不把它分配给一个体或一个区域。要做到这一" "点,你必须使用[method area_set_shape]或[method body_set_shape]。" #: doc/classes/PhysicsServer.xml msgid "Returns the type of shape (see [enum ShapeType] constants)." msgstr "返回形状的类型(请参阅[enum ShapeType]常量)。" #: doc/classes/PhysicsServer.xml msgid "Gets a slider_joint parameter (see [enum SliderJointParam] constants)." msgstr "获取slider_joint参数(请参阅[enum SliderJointParam]常量)。" #: doc/classes/PhysicsServer.xml msgid "" "Returns the state of a space, a [PhysicsDirectSpaceState]. This object can " "be used to make collision/intersection queries." msgstr "" "返回空间的状态,[PhysicsDirectSpaceState]。此对象可用于进行碰撞/相交查询。" #: doc/classes/PhysicsServer.xml msgid "" "Sets the value for a space parameter. A list of available parameters is on " "the [enum SpaceParameter] constants." msgstr "设置空间参数的值。可用参数列表位于[enum SpaceParameter]常量上。" #: doc/classes/PhysicsServer.xml msgid "The [Joint] is a [PinJoint]." msgstr "该[Joint] 是 [PinJoint]。" #: doc/classes/PhysicsServer.xml msgid "The [Joint] is a [HingeJoint]." msgstr "该 [Joint] 是 [HingeJoint]。" #: doc/classes/PhysicsServer.xml msgid "The [Joint] is a [SliderJoint]." msgstr "该 [Joint] 是 [SliderJoint]。" #: doc/classes/PhysicsServer.xml msgid "The [Joint] is a [ConeTwistJoint]." msgstr "该 [Joint] 是 [ConeTwistJoint]。" #: doc/classes/PhysicsServer.xml msgid "The [Joint] is a [Generic6DOFJoint]." msgstr "该 [Joint] 是 [Generic6DOFJoint]。" #: doc/classes/PhysicsServer.xml msgid "" "The strength with which the pinned objects try to stay in positional " "relation to each other.\n" "The higher, the stronger." msgstr "" "固定对象试图保持彼此位置关系的力度。\n" "越高越强。" #: doc/classes/PhysicsServer.xml msgid "" "The strength with which the pinned objects try to stay in velocity relation " "to each other.\n" "The higher, the stronger." msgstr "" "被固定的物体试图保持彼此速度关系的力度。\n" "越高越强。" #: doc/classes/PhysicsServer.xml msgid "" "If above 0, this value is the maximum value for an impulse that this Joint " "puts on its ends." msgstr "如果大于0,这个值就是这个关节对其两端施加的冲量的最大值。" #: doc/classes/PhysicsServer.xml msgid "The maximum rotation across the Hinge." msgstr "铰链上的最大旋转。" #: doc/classes/PhysicsServer.xml msgid "The minimum rotation across the Hinge." msgstr "铰链上的最小旋转。" #: doc/classes/PhysicsServer.xml msgid "If [code]true[/code], the Hinge has a maximum and a minimum rotation." msgstr "如果[code]true[/code],铰链具有最大和最小旋转。" #: doc/classes/PhysicsServer.xml msgid "If [code]true[/code], a motor turns the Hinge." msgstr "如果为 [code]true[/code],则马达将转动铰链。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The maximum difference between the pivot points on their X axis before " "damping happens." msgstr "阻尼发生前轴心点之间在 X 轴上的最大差异。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The minimum difference between the pivot points on their X axis before " "damping happens." msgstr "阻尼发生前轴心点之间在 X 轴上的最小差异。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "A factor applied to the movement across the slider axis once the limits get " "surpassed. The lower, the slower the movement." msgstr "一旦超过极限,应用于滑块轴上移动的系数。越低,运动越慢。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The amount of restitution once the limits are surpassed. The lower, the more " "velocityenergy gets lost." msgstr "超过极限后的补偿。越低,动能损失越多。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of damping once the slider limits are surpassed." msgstr "一旦超过滑块的极限,阻尼的数量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "A factor applied to the movement across the slider axis as long as the " "slider is in the limits. The lower, the slower the movement." msgstr "只要滑块在限制范围内,就应用于滑块轴上移动的系数。越低,运动越慢。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of restitution inside the slider limits." msgstr "滑块限制内的恢复量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of damping inside the slider limits." msgstr "滑块内部的阻尼量受到限制。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "A factor applied to the movement across axes orthogonal to the slider." msgstr "应用于在垂直于滑块的轴上移动的系数。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The amount of restitution when movement is across axes orthogonal to the " "slider." msgstr "当移动穿过垂直于滑块的轴时的恢复量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The amount of damping when movement is across axes orthogonal to the slider." msgstr "当移动穿过垂直于滑块的轴时的阻尼量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The upper limit of rotation in the slider." msgstr "滑块旋转的上限。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The lower limit of rotation in the slider." msgstr "滑块旋转的下限。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "A factor applied to the all rotation once the limit is surpassed." msgstr "一旦超过极限,应用于所有旋转的系数。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of restitution of the rotation when the limit is surpassed." msgstr "超过限制时旋转的恢复量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of damping of the rotation when the limit is surpassed." msgstr "超过极限时旋转的阻尼量。" #: doc/classes/PhysicsServer.xml msgid "A factor that gets applied to the all rotation in the limits." msgstr "应用于所有极限旋转的因子。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of restitution of the rotation in the limits." msgstr "极限内旋转的恢复量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "The amount of damping of the rotation in the limits." msgstr "极限内旋转的阻尼量。" #: doc/classes/PhysicsServer.xml msgid "" "A factor that gets applied to the all rotation across axes orthogonal to the " "slider." msgstr "应用于垂直于滑块的轴上的所有旋转的因子。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The amount of restitution of the rotation across axes orthogonal to the " "slider." msgstr "垂直于滑块的轴上的旋转恢复量。" #: doc/classes/PhysicsServer.xml doc/classes/SliderJoint.xml msgid "" "The amount of damping of the rotation across axes orthogonal to the slider." msgstr "垂直于滑块的轴上的旋转阻尼量。" #: doc/classes/PhysicsServer.xml msgid "Represents the size of the [enum SliderJointParam] enum." msgstr "表示 [enum SliderJointParam] 枚举的大小。" #: doc/classes/PhysicsServer.xml msgid "" "The ease with which the Joint twists, if it's too low, it takes more force " "to twist the joint." msgstr "关节扭曲的难易程度,如果它太低,则需要更多的力量来扭曲关节。" #: doc/classes/PhysicsServer.xml msgid "" "A factor that gets applied to the movement across the axes. The lower, the " "slower the movement." msgstr "应用于跨轴移动的因子。越低,运动越慢。" #: doc/classes/PhysicsServer.xml msgid "" "The amount of restitution on the axes movement. The lower, the more velocity-" "energy gets lost." msgstr "轴运动的恢复量。速度越低,能量损失越多。" #: doc/classes/PhysicsServer.xml msgid "The velocity that the joint's linear motor will attempt to reach." msgstr "关节的线性马达试图达到的速度。" #: doc/classes/PhysicsServer.xml msgid "" "The maximum force that the linear motor can apply while trying to reach the " "target velocity." msgstr "线性马达在试图达到目标速度时可以施加的最大力。" #: doc/classes/PhysicsServer.xml msgid "A factor that gets multiplied onto all rotations across the axes." msgstr "一个乘以所有轴旋转的因子。" #: doc/classes/PhysicsServer.xml msgid "" "When correcting the crossing of limits in rotation across the axes, this " "error tolerance factor defines how much the correction gets slowed down. The " "lower, the slower." msgstr "" "当校正轴旋转中的极限交叉时,该误差容限因子定义了校正的减慢程度。越低越慢。" #: doc/classes/PhysicsServer.xml msgid "If set, linear motion is possible within the given limits." msgstr "设置时,可以在给定的范围内做线性运动。" #: doc/classes/PhysicsServer.xml msgid "If set, rotational motion is possible." msgstr "设置时,可以做旋转运动。" #: doc/classes/PhysicsServer.xml msgid "If set, there is a rotational motor across these axes." msgstr "设置时,存在跨这些轴的旋转马达。" #: doc/classes/PhysicsServer.xml msgid "" "If set, there is a linear motor on this axis that targets a specific " "velocity." msgstr "设置时,存在跨这些轴的线性马达,以指定的速度为目标。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [PlaneShape]." msgstr "该[Shape] 是 [PlaneShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [RayShape]." msgstr "该 [Shape] 是 [RayShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [SphereShape]." msgstr "该 [Shape] 是 [SphereShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [BoxShape]." msgstr "该 [Shape] 是 [BoxShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [CapsuleShape]." msgstr "该 [Shape] 是 [CapsuleShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [CylinderShape]." msgstr "该 [Shape] 是 [CylinderShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [ConvexPolygonShape]." msgstr "该 [Shape] 是 [ConvexPolygonShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [ConcavePolygonShape]." msgstr "该 [Shape] 是 [ConcavePolygonShape]。" #: doc/classes/PhysicsServer.xml msgid "The [Shape] is a [HeightMapShape]." msgstr "该 [Shape] 是 [HeightMapShape]。" #: doc/classes/PhysicsShapeQueryParameters.xml msgid "Parameters to be sent to a 3D shape physics query." msgstr "要发送到 3D 形状物理查询的参数。" #: doc/classes/PhysicsShapeQueryParameters.xml msgid "" "This class contains the shape and other parameters for 3D intersection/" "collision queries." msgstr "此类包含用于 3D 相交/碰撞查询的形状和其他参数。" #: doc/classes/PhysicsShapeQueryParameters.xml msgid "Sets the [Shape] that will be used for collision/intersection queries." msgstr "设置将用于碰撞/相交查询的 [Shape]。" #: doc/classes/PhysicsShapeQueryParameters.xml msgid "If [code]true[/code], the query will take [Area]s into account." msgstr "如果[code]true[/code],查询将考虑 [Area]。" #: doc/classes/PhysicsShapeQueryParameters.xml msgid "If [code]true[/code], the query will take [PhysicsBody]s into account." msgstr "如果 [code]true[/code],则查询将考虑 [PhysicsBody]。" #: doc/classes/PinJoint.xml msgid "Pin joint for 3D PhysicsBodies." msgstr "用于 3D 物理体的钉关节。" #: doc/classes/PinJoint.xml msgid "" "Pin joint for 3D rigid bodies. It pins 2 bodies (rigid or static) together. " "See also [Generic6DOFJoint]." msgstr "" "3D刚体的钉关节。它将两个物体(刚体或静态体)钉在一起。参阅" "[Generic6DOFJoint]。" #: doc/classes/PinJoint.xml msgid "" "The force with which the pinned objects stay in positional relation to each " "other. The higher, the stronger." msgstr "被钉在一起的物体之间保持位置关系的力,越高越强。" #: doc/classes/PinJoint.xml msgid "" "The force with which the pinned objects stay in velocity relation to each " "other. The higher, the stronger." msgstr "被钉在一起的物体之间保持共速的力。越高,力越大。" #: doc/classes/PinJoint.xml msgid "" "If above 0, this value is the maximum value for an impulse that this Joint " "produces." msgstr "如果大于0,这个值就是此关节产生的冲量的最大值。" #: doc/classes/PinJoint2D.xml msgid "Pin Joint for 2D shapes." msgstr "用于 2D 形状的钉关节。" #: doc/classes/PinJoint2D.xml msgid "" "Pin Joint for 2D rigid bodies. It pins two bodies (rigid or static) together." msgstr "用于 2D 刚体的钉关节。它将两个物体钉在一起,刚体或静态体。" #: doc/classes/PinJoint2D.xml msgid "" "The higher this value, the more the bond to the pinned partner can flex." msgstr "这个值越高,与被牵制的两个物体之间的的联系就越灵活。" #: doc/classes/Plane.xml msgid "Plane in hessian form." msgstr "麻状平面。" #: doc/classes/Plane.xml msgid "" "Plane represents a normalized plane equation. Basically, \"normal\" is the " "normal of the plane (a,b,c normalized), and \"d\" is the distance from the " "origin to the plane (in the direction of \"normal\"). \"Over\" or \"Above\" " "the plane is considered the side of the plane towards where the normal is " "pointing." msgstr "" "平面表示标准化的平面方程。基本上,“法线”是平面的法线(a、b、c归一化),而“d”是" "原点到平面的距离(在“法线”方向)。“上方”或“上方”平面被认为是法线指向的平面一" "侧。" #: doc/classes/Plane.xml msgid "" "Creates a plane from the four parameters. The three components of the " "resulting plane's [member normal] are [code]a[/code], [code]b[/code] and " "[code]c[/code], and the plane has a distance of [code]d[/code] from the " "origin." msgstr "" "根据四个参数创建一个平面。产生的平面的 [member normal] 的三个分量是 [code]a[/" "code]、[code]b[/code]、[code]c[/code],并且平面与原点的距离为[code]d[/code]。" #: doc/classes/Plane.xml msgid "Creates a plane from the three points, given in clockwise order." msgstr "根据顺时针顺序给出的三个点创建一个平面。" #: doc/classes/Plane.xml msgid "Creates a plane from the normal and the plane's distance to the origin." msgstr "从法线和平面到原点的距离创建一个平面。" #: doc/classes/Plane.xml msgid "Returns the center of the plane." msgstr "返回平面的中心。" #: doc/classes/Plane.xml msgid "" "Returns the shortest distance from the plane to the position [code]point[/" "code]." msgstr "返回从平面到位置[code]point[/code]的最短距离。" #: doc/classes/Plane.xml msgid "" "Returns the center of the plane.\n" "This method is deprecated, please use [method center] instead." msgstr "" "返回平面的中心。\n" "此方法已被废弃,请使用[method center]代替。" #: doc/classes/Plane.xml msgid "" "Returns [code]true[/code] if [code]point[/code] is inside the plane. " "Comparison uses a custom minimum [code]epsilon[/code] threshold." msgstr "" "如果[code]point[/code]在平面内,则返回 [code]true[/code]。比较使用自定义的最" "小[code]epsilon』[/code] ε 阈值。" #: doc/classes/Plane.xml msgid "" "Returns the intersection point of the three planes [code]b[/code], [code]c[/" "code] and this plane. If no intersection is found, [code]null[/code] is " "returned." msgstr "" "返回三个平面[code]b[/code],[code]c[/code]与该平面的交点。如果没有找到交集," "则返回 [code]null[/code]。" #: doc/classes/Plane.xml msgid "" "Returns the intersection point of a ray consisting of the position " "[code]from[/code] and the direction normal [code]dir[/code] with this plane. " "If no intersection is found, [code]null[/code] is returned." msgstr "" "返回由位置[code]from[/code]和方向法线[code]dir[/code]组成的射线与该平面的交" "点。如果没有找到交点,则返回 [code]null[/code]。" #: doc/classes/Plane.xml msgid "" "Returns the intersection point of a segment from position [code]begin[/code] " "to position [code]end[/code] with this plane. If no intersection is found, " "[code]null[/code] is returned." msgstr "" "返回从位置[code]begin[/code]到位置[code]end[/code]的线段与这个平面的交点。如" "果没有找到交点,则返回 [code]null[/code]。" #: doc/classes/Plane.xml msgid "" "Returns [code]true[/code] if this plane and [code]plane[/code] are " "approximately equal, by running [method @GDScript.is_equal_approx] on each " "component." msgstr "" "如果此平面和 [code]plane[/code] 近似相等,则返回 [code]true[/code],方法是对" "每个分量运行 [method @GDScript.is_equal_approx]。" #: doc/classes/Plane.xml msgid "" "Returns [code]true[/code] if [code]point[/code] is located above the plane." msgstr "如果[code]point[/code]位于平面上方,则返回 [code]true[/code]。" #: doc/classes/Plane.xml msgid "Returns a copy of the plane, normalized." msgstr "返回平面的一个标准化副本。" #: doc/classes/Plane.xml msgid "" "Returns the orthogonal projection of [code]point[/code] into a point in the " "plane." msgstr "返回 [code]点[/code]在平面上的正交投影。" #: doc/classes/Plane.xml msgid "" "The distance from the origin to the plane, in the direction of [member " "normal]. This value is typically non-negative.\n" "In the scalar equation of the plane [code]ax + by + cz = d[/code], this is " "[code]d[/code], while the [code](a, b, c)[/code] coordinates are represented " "by the [member normal] property." msgstr "" "从原点到平面的距离,沿[member normal]方向。这个值通常是非负的。\n" "在平面[code]ax + by + cz = d[/code]的标量方程中,这是[code]d[/code],而[code]" "(a, b, c)[/code]坐标由[member normal]属性表示。" #: doc/classes/Plane.xml msgid "" "The normal of the plane, which must be normalized.\n" "In the scalar equation of the plane [code]ax + by + cz = d[/code], this is " "the vector [code](a, b, c)[/code], where [code]d[/code] is the [member d] " "property." msgstr "" "平面的法线,必须归一化。\n" "在平面[code]ax + by + cz = d[/code]的标量方程中,这是向量[code](a, b, c)[/" "code],其中[code]d[/code]是[member d]属性。" #: doc/classes/Plane.xml msgid "The X component of the plane's [member normal] vector." msgstr "平面的[member normal]向量的X分量。" #: doc/classes/Plane.xml msgid "The Y component of the plane's [member normal] vector." msgstr "平面的[member normal]向量的Y分量。" #: doc/classes/Plane.xml msgid "The Z component of the plane's [member normal] vector." msgstr "平面的[member normal]向量的Z分量。" #: doc/classes/Plane.xml msgid "A plane that extends in the Y and Z axes (normal vector points +X)." msgstr "在 Y 轴和 Z 轴上延伸的平面(法向量指向 +X)。" #: doc/classes/Plane.xml msgid "A plane that extends in the X and Z axes (normal vector points +Y)." msgstr "在 X 轴和 Z 轴上延伸的平面(法向量朝向 +Y)。" #: doc/classes/Plane.xml msgid "A plane that extends in the X and Y axes (normal vector points +Z)." msgstr "在 X 轴和 Y 轴上延伸的平面(法向量朝向 +Z)。" #: doc/classes/PlaneMesh.xml msgid "Class representing a planar [PrimitiveMesh]." msgstr "表示平面 [PrimitiveMesh] 的类。" #: doc/classes/PlaneMesh.xml msgid "" "Class representing a planar [PrimitiveMesh]. This flat mesh does not have a " "thickness. By default, this mesh is aligned on the X and Z axes; this " "default rotation isn't suited for use with billboarded materials. For " "billboarded materials, use [QuadMesh] instead.\n" "[b]Note:[/b] When using a large textured [PlaneMesh] (e.g. as a floor), you " "may stumble upon UV jittering issues depending on the camera angle. To solve " "this, increase [member subdivide_depth] and [member subdivide_width] until " "you no longer notice UV jittering." msgstr "" "表示平面 [PrimitiveMesh] 的类。这个平面网格没有厚度。默认情况下,此网格在 X " "轴和 Z 轴上对齐;此默认旋转不适合与广告牌材质一起使用。对于广告牌材质,请改" "用 [QuadMesh]。\n" "[b]注意:[/b]当使用大纹理 [PlaneMesh](例如作为地板)时,你可能会偶然发现 UV " "抖动问题,具体取决于相机角度。要解决此问题,请增加 [member subdivide_depth] " "和 [member subdivide_width],直到你不再注意到 UV 抖动。" #: doc/classes/PlaneMesh.xml msgid "Offset from the origin of the generated plane. Useful for particles." msgstr "从生成平面的原点偏移。对粒子有用。" #: doc/classes/PlaneMesh.xml msgid "Size of the generated plane." msgstr "生成平面的大小。" #: doc/classes/PlaneMesh.xml msgid "Number of subdivision along the Z axis." msgstr "沿 Z 轴细分的次数。" #: doc/classes/PlaneMesh.xml msgid "Number of subdivision along the X axis." msgstr "沿 X 轴细分的次数。" #: doc/classes/PlaneShape.xml msgid "Infinite plane shape for 3D collisions." msgstr "无限的平面形状,用于 3D 碰撞。" #: doc/classes/PlaneShape.xml msgid "" "An infinite plane shape for 3D collisions. Note that the [Plane]'s normal " "matters; anything \"below\" the plane will collide with it. If the " "[PlaneShape] is used in a [PhysicsBody], it will cause colliding objects " "placed \"below\" it to teleport \"above\" the plane." msgstr "" "用于 3D 碰撞的无限的平面形状。请注意,[Plane] 的法线很重要;任何“低于”该平面" "的物体都会与它发生碰撞。如果 [PlaneShape] 被用于 [PhysicsBody],它将导致放置" "在它“下面”的碰撞物体被传送到“上面”的平面。" #: doc/classes/PlaneShape.xml msgid "The [Plane] used by the [PlaneShape] for collision." msgstr "[PlaneShape] 用于碰撞的 [Plane]。" #: doc/classes/PointMesh.xml msgid "Mesh with a single Point primitive." msgstr "使用单个点图元的网格。" #: doc/classes/PointMesh.xml msgid "" "The PointMesh is made from a single point. Instead of relying on triangles, " "points are rendered as a single rectangle on the screen with a constant " "size. They are intended to be used with Particle systems, but can be used as " "a cheap way to render constant size billboarded sprites (for example in a " "point cloud).\n" "PointMeshes, must be used with a material that has a point size. Point size " "can be accessed in a shader with [code]POINT_SIZE[/code], or in a " "[SpatialMaterial] by setting [member SpatialMaterial.flags_use_point_size] " "and the variable [member SpatialMaterial.params_point_size].\n" "When using PointMeshes, properties that normally alter vertices will be " "ignored, including billboard mode, grow, and cull face." msgstr "" "PointMesh 是由单个点构成的。与其依赖三角形与点在屏幕上渲染形成具有恒定尺寸的" "单独矩形。其旨在与粒子系统一起使用,但也可以作为一种消耗小的方式来渲染恒定尺" "寸的广告牌精灵,例如,在点云中。\n" "PointMesh 必须与具有点大小的材质一起使用。点大小可以通过 [code]POINT_SIZE[/" "code] 在着色器中访问,或者通过设置 [member SpatialMaterial." "flags_use_point_size] 和变量 [member SpatialMaterial.params_point_size] 在 " "[SpatialMaterial] 中访问。\n" "当使用 PointMesh 时,通常改变顶点的属性将被忽略,包括广告牌模式、增长和剔除" "面。" #: doc/classes/Polygon2D.xml msgid "A 2D polygon." msgstr "2D 多边形。" #: doc/classes/Polygon2D.xml msgid "" "A Polygon2D is defined by a set of points. Each point is connected to the " "next, with the final point being connected to the first, resulting in a " "closed polygon. Polygon2Ds can be filled with color (solid or gradient) or " "filled with a given texture.\n" "[b]Note:[/b] By default, Godot can only draw up to 4,096 polygon points at a " "time. To increase this limit, open the Project Settings and increase [member " "ProjectSettings.rendering/limits/buffers/canvas_polygon_buffer_size_kb] and " "[member ProjectSettings.rendering/limits/buffers/" "canvas_polygon_index_buffer_size_kb]." msgstr "" "Polygon2D 由一组点定义。每个点都连接到下一个点,最后一个点连接到第一个点,从" "而形成封闭的多边形。 Polygon2D 可以填充颜色(纯色或渐变色)或填充给定的纹" "理。\n" "[b]注意:[/b]默认情况下,Godot 一次最多只能绘制 4096 个多边形点。要增加此限" "制,请打开项目设置并增加 [member ProjectSettings.rendering/limits/buffers/" "canvas_polygon_buffer_size_kb] 和 [member ProjectSettings.rendering/limits/" "buffers/canvas_polygon_index_buffer_size_kb]。" #: doc/classes/Polygon2D.xml msgid "" "Adds a bone with the specified [code]path[/code] and [code]weights[/code]." msgstr "添加指定[code]path[/code]和[code]weights[/code]的骨骼." #: doc/classes/Polygon2D.xml msgid "Removes all bones from this [Polygon2D]." msgstr "删除这个[Polygon2D]的所有骨骼." #: doc/classes/Polygon2D.xml msgid "Removes the specified bone from this [Polygon2D]." msgstr "从这个[Polygon2D]中删除指定的骨骼." #: doc/classes/Polygon2D.xml msgid "Returns the number of bones in this [Polygon2D]." msgstr "返回这个[Polygon2D]中骨骼的数量." #: doc/classes/Polygon2D.xml msgid "Returns the path to the node associated with the specified bone." msgstr "返回与指定骨骼相关联的节点的路径." #: doc/classes/Polygon2D.xml msgid "Returns the height values of the specified bone." msgstr "返回指定骨骼的高度值." #: doc/classes/Polygon2D.xml msgid "Sets the path to the node associated with the specified bone." msgstr "设置与指定骨骼相关联的节点的路径." #: doc/classes/Polygon2D.xml msgid "Sets the weight values for the specified bone." msgstr "设置指定骨骼的权重值." #: doc/classes/Polygon2D.xml msgid "" "If [code]true[/code], attempts to perform antialiasing for polygon edges by " "drawing a thin OpenGL smooth line on the edges.\n" "[b]Note:[/b] Due to how it works, built-in antialiasing will not look " "correct for translucent polygons and may not work on certain platforms. As a " "workaround, install the [url=https://github.com/godot-extended-libraries/" "godot-antialiased-line2d]Antialiased Line2D[/url] add-on then create an " "AntialiasedPolygon2D node. That node relies on a texture with custom mipmaps " "to perform antialiasing." msgstr "" "为 [code]true[/code] 时,会尝试对多边形的边缘进行抗锯齿处理,方法是在边缘绘制" "一薄层 OpenGL 平滑线段。\n" "[b]注意:[/b]由于实现的原因,内置的抗锯齿无法在透明多边形上得到正确的效果,并" "且可能无法在某些平台上正常工作。作为替代方案,请安装[url=https://github.com/" "godot-extended-libraries/godot-antialiased-line2d]抗锯齿 Line2D[/url] 插件并" "创建 AntialiasedPolygon2D 节点。该节点的抗锯齿是使用带有自定义 mipmap 的纹理" "进行的。" #: doc/classes/Polygon2D.xml msgid "" "The polygon's fill color. If [code]texture[/code] is defined, it will be " "multiplied by this color. It will also be the default color for vertices not " "set in [code]vertex_colors[/code]." msgstr "" "多边形的填充颜色.如果定义了[code]texture[/code](贴图),它将乘以该颜色.对于" "[code]vertex_colors[/code]中未设置的顶点,它也将是默认颜色." #: doc/classes/Polygon2D.xml msgid "" "Added padding applied to the bounding box when using [code]invert[/code]. " "Setting this value too small may result in a \"Bad Polygon\" error." msgstr "" "当使用 [code]invert[/code](反转)时,将应用于边框的填充。将这个值设置得太小" "可能会导致“Bad Polygon”(无效多边形)错误。" #: doc/classes/Polygon2D.xml msgid "" "If [code]true[/code], polygon will be inverted, containing the area outside " "the defined points and extending to the [code]invert_border[/code]." msgstr "" "如果为 [code]true[/code],则多边形将反转,包含定义点之外的区域,并扩展到" "[code]invert_border[/code](反转边界)." #: doc/classes/Polygon2D.xml msgid "The offset applied to each vertex." msgstr "应用于每个顶点的位置偏移量." #: doc/classes/Polygon2D.xml msgid "" "The polygon's list of vertices. The final point will be connected to the " "first.\n" "[b]Note:[/b] This returns a copy of the [PoolVector2Array] rather than a " "reference." msgstr "" "多边形的顶点列表。最后一点将连接到第一个。\n" "[b]注意:[/b]这将返回 [PoolVector2Array] 的副本而不是引用。" #: doc/classes/Polygon2D.xml msgid "" "The polygon's fill texture. Use [code]uv[/code] to set texture coordinates." msgstr "多边形的填充纹理。使用 [code]uv[/code] 设置纹理坐标。" #: doc/classes/Polygon2D.xml msgid "" "Amount to offset the polygon's [code]texture[/code]. If [code](0, 0)[/code] " "the texture's origin (its top-left corner) will be placed at the polygon's " "[code]position[/code]." msgstr "" "多边形 [code]texture[/code] 纹理的偏移量。如果为 [code](0, 0)[/code],则纹理" "的原点(其左上角)将放置在多边形的 [code]position[/code] 处。" #: doc/classes/Polygon2D.xml msgid "The texture's rotation in radians." msgstr "纹理的旋转弧度。" #: doc/classes/Polygon2D.xml msgid "The texture's rotation in degrees." msgstr "纹理的旋转角度。" #: doc/classes/Polygon2D.xml msgid "" "Amount to multiply the [code]uv[/code] coordinates when using a " "[code]texture[/code]. Larger values make the texture smaller, and vice versa." msgstr "" "使用 [code]texture[/code] 纹理时乘以 [code]uv[/code] 坐标的值。值越大,纹理越" "小,反之亦然。" #: doc/classes/Polygon2D.xml msgid "" "Texture coordinates for each vertex of the polygon. There should be one " "[code]uv[/code] per polygon vertex. If there are fewer, undefined vertices " "will use [code](0, 0)[/code]." msgstr "" "多边形每个顶点的纹理坐标。每个多边形顶点应该有一个 [code]uv[/code]。如果数量" "少,则未定义的顶点将使用 [code](0, 0)[/code]。" #: doc/classes/Polygon2D.xml msgid "" "Color for each vertex. Colors are interpolated between vertices, resulting " "in smooth gradients. There should be one per polygon vertex. If there are " "fewer, undefined vertices will use [code]color[/code]." msgstr "" "每个顶点的颜色.颜色在顶点之间插值,从而获得平滑的渐变.每个多边形顶点应有一个." "如果数量少,则未定义的顶点将使用[code]color[/code]." #: doc/classes/PoolByteArray.xml msgid "A pooled array of bytes." msgstr "字节池数组。" #: doc/classes/PoolByteArray.xml #, fuzzy msgid "" "An array specifically designed to hold bytes. Optimized for memory usage, " "does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolByteArray] or " "mutating a [PoolByteArray] within an [Array] or [Dictionary], changes will " "be lost:\n" "[codeblock]\n" "var array = [PoolByteArray()]\n" "array[0].push_back(123)\n" "print(array) # [[]] (empty PoolByteArray within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolByteArray] property must be [i]reassigned[/i] with " "[code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolByteArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(123)\n" "array[0] = pool_array\n" "print(array) # [[123]] (PoolByteArray with 1 element inside an Array)\n" "[/codeblock]" msgstr "" "专门为存储字节设计的数组。针对内存使用进行了优化,不会产生内存碎片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolByteArray] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 [Dictionary] " "中的 [PoolByteArray] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolByteArray()]\n" "array[0].push_back(123)\n" "print(array) # [[]](空 Array 中包含了空的 PoolByteArray)\n" "[/codeblock]\n" "整个 [PoolByteArray] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会发" "生变化:\n" "[codeblock]\n" "var array = [PoolByteArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(123)\n" "array[0] = pool_array\n" "print(array) # [[123]](Array 中包含了含有 1 个元素的 PoolByteArray)\n" "[/codeblock]" #: doc/classes/PoolByteArray.xml msgid "" "Constructs a new [PoolByteArray]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "构建新的[PoolByteArray]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolByteArray.xml msgid "Appends a [PoolByteArray] at the end of this array." msgstr "在这个数组的最后添加[PoolByteArray]。" #: doc/classes/PoolByteArray.xml msgid "" "Returns a new [PoolByteArray] with the data compressed. Set the compression " "mode using one of [enum File.CompressionMode]'s constants." msgstr "" "返回新的 [PoolByteArray],其中的数据被压缩。使用 [enum File.CompressionMode] " "中的常量来设置压缩模式。" #: doc/classes/PoolByteArray.xml msgid "" "Returns a new [PoolByteArray] with the data decompressed. Set " "[code]buffer_size[/code] to the size of the uncompressed data. Set the " "compression mode using one of [enum File.CompressionMode]'s constants." msgstr "" "返回新的 [PoolByteArray] 解压数据。 [code]buffer_size[/code] 设置未压缩数据的" "大小。使用 [enum File.CompressionMode] 常量之一设置压缩模式。" #: doc/classes/PoolByteArray.xml msgid "" "Returns a new [PoolByteArray] with the data decompressed. Set the " "compression mode using one of [enum File.CompressionMode]'s constants. " "[b]This method only accepts gzip and deflate compression modes.[/b]\n" "This method is potentially slower than [code]decompress[/code], as it may " "have to re-allocate its output buffer multiple times while decompressing, " "where as [code]decompress[/code] knows its output buffer size from the " "beginning.\n" "\n" "GZIP has a maximal compression ratio of 1032:1, meaning it's very possible " "for a small compressed payload to decompress to a potentially very large " "output. To guard against this, you may provide a maximum size this function " "is allowed to allocate in bytes via [code]max_output_size[/code]. Passing -1 " "will allow for unbounded output. If any positive value is passed, and the " "decompression exceeds that amount in bytes, then an error will be returned." msgstr "" "返回包含解压后数据的新 [PoolByteArray]。请使用 [enum File.CompressionMode] 常" "量之一设置压缩模式。[b]这个方法只接受 gzip 和 deflate 压缩模式。[/b]\n" "这个方法可能比 [code]decompress[/code] 慢,因为在解压时可能需要多次重新分配输" "出缓冲区,而 [code]decompress[/code] 则在一开始就知道输出缓冲区的大小。\n" "\n" "GZIP 的最大压缩率为 1032:1,这意味着较小的压缩后负载很有可能解压出非常巨大的" "输出。为了防止这种情况,你可以通过 [code]max_output_size[/code] 提供允许这个" "函数分配的最大字节数。传入 -1 则不限制输出。传入正数且解压超过该字节数时,会" "返回错误。" #: doc/classes/PoolByteArray.xml doc/classes/PoolColorArray.xml #: doc/classes/PoolIntArray.xml doc/classes/PoolRealArray.xml #: doc/classes/PoolStringArray.xml doc/classes/PoolVector2Array.xml #: doc/classes/PoolVector3Array.xml msgid "" "Assigns the given value to all elements in the array. This can typically be " "used together with [method resize] to create an array with a given size and " "initialized elements." msgstr "" "将数组中的所有元素都设为给定的值。通常与 [method resize] 一起使用,创建给定大" "小的数组并初始化元素。" #: doc/classes/PoolByteArray.xml msgid "" "Returns a copy of the array's contents as [String]. Fast alternative to " "[method get_string_from_utf8] if the content is ASCII-only. Unlike the UTF-8 " "function this function maps every byte to a character in the array. " "Multibyte sequences will not be interpreted correctly. For parsing user " "input always use [method get_string_from_utf8]." msgstr "" "以 [String] 形式返回该数组内容的副本。如果内容仅包含 ASCII 字符,是比 " "[method get_string_from_utf8] 更快的选择。与 UTF-8 函数不同,该函数将每个字节" "映射为数组中的一个字符。多字节的序列不会被正确解释。解析用户输入的内容请始终" "使用 [method get_string_from_utf8]。" #: doc/classes/PoolByteArray.xml msgid "" "Returns a copy of the array's contents as [String]. Slower than [method " "get_string_from_ascii] but supports UTF-8 encoded data. Use this function if " "you are unsure about the source of the data. For user input this function " "should always be preferred." msgstr "" "以 [String] 形式返回该数组内容的副本。比 [method get_string_from_ascii] 慢," "但支持 UTF-8 编码的数据。如果不确定数据的来源,请使用此函数。对于用户输入,应" "该始终首选此函数。" #: doc/classes/PoolByteArray.xml doc/classes/PoolColorArray.xml #: doc/classes/PoolIntArray.xml doc/classes/PoolRealArray.xml #: doc/classes/PoolStringArray.xml doc/classes/PoolVector2Array.xml #: doc/classes/PoolVector3Array.xml msgid "" "Returns [code]true[/code] if the array contains the given value.\n" "[b]Note:[/b] This is equivalent to using the [code]in[/code] operator." msgstr "" "如果该数组包含给定的值,则返回 [code]true[/code]。\n" "[b]注意:[/b]与使用 [code]in[/code] 操作符等价。" #: doc/classes/PoolByteArray.xml msgid "" "Returns a hexadecimal representation of this array as a [String].\n" "[codeblock]\n" "var array = PoolByteArray([11, 46, 255])\n" "print(array.hex_encode()) # Prints: 0b2eff\n" "[/codeblock]" msgstr "" "以 [String] 形式返回该数组的十六进制表示。\n" "[codeblock]\n" "var array = PoolByteArray([11, 46, 255])\n" "print(array.hex_encode()) # 输出:0b2eff\n" "[/codeblock]" #: doc/classes/PoolByteArray.xml doc/classes/PoolColorArray.xml #: doc/classes/PoolRealArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "" "Inserts a new element at a given position in the array. The position must be " "valid, or at the end of the array ([code]idx == size()[/code])." msgstr "" "在数组中给定的位置插入一个新元素。这个位置必须是有效的,或者是在数组的末端" "([code]idx == size()[/code])。" #: doc/classes/PoolByteArray.xml doc/classes/PoolRealArray.xml msgid "Appends an element at the end of the array." msgstr "在数组的末尾追加一个元素。" #: doc/classes/PoolByteArray.xml doc/classes/PoolColorArray.xml #: doc/classes/PoolIntArray.xml doc/classes/PoolRealArray.xml #: doc/classes/PoolStringArray.xml doc/classes/PoolVector2Array.xml #: doc/classes/PoolVector3Array.xml msgid "Removes an element from the array by index." msgstr "从数组中删除位于索引的元素。" #: doc/classes/PoolByteArray.xml doc/classes/PoolIntArray.xml #: doc/classes/PoolRealArray.xml msgid "" "Sets the size of the array. If the array is grown, reserves elements at the " "end of the array. If the array is shrunk, truncates the array to the new " "size.\n" "[b]Note:[/b] Added elements are not automatically initialized to 0 and will " "contain garbage, i.e. indeterminate values." msgstr "" "设置数组的大小。如果数组增长,则保留数组末尾的元素。如果数组缩小,则将数组截" "断为新大小。\n" "[b]注意:[/b]添加的元素不会自动初始化为 0,并且会包含垃圾,即不确定值。" #: doc/classes/PoolByteArray.xml msgid "Changes the byte at the given index." msgstr "改变给定索引处的字节。" #: doc/classes/PoolByteArray.xml msgid "" "Returns the slice of the [PoolByteArray] between indices (inclusive) as a " "new [PoolByteArray]. Any negative index is considered to be from the end of " "the array." msgstr "" "返回索引之间(包括)的 [PoolByteArray] 的片断为一个新的 [PoolByteArray]。任何" "负的索引都被认为是从数组的末端开始的。" #: doc/classes/PoolColorArray.xml msgid "A pooled array of [Color]s." msgstr "[Color] 池数组。" #: doc/classes/PoolColorArray.xml #, fuzzy msgid "" "An array specifically designed to hold [Color]. Optimized for memory usage, " "does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolColorArray] or " "mutating a [PoolColorArray] within an [Array] or [Dictionary], changes will " "be lost:\n" "[codeblock]\n" "var array = [PoolColorArray()]\n" "array[0].push_back(Color(0.1, 0.2, 0.3, 0.4))\n" "print(array) # [[]] (empty PoolColorArray within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolColorArray] property must be [i]reassigned[/i] with " "[code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolColorArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(Color(0.1, 0.2, 0.3, 0.4))\n" "array[0] = pool_array\n" "print(array) # [[(0.1, 0.2, 0.3, 0.4)]] (PoolColorArray with 1 element " "inside an Array)\n" "[/codeblock]" msgstr "" "专门为存储 [Color] 设计的数组。针对内存使用进行了优化,不会产生内存碎片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolColorArray] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 [Dictionary] " "中的 [PoolColorArray] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolColorArray()]\n" "array[0].push_back(Color(0.1, 0.2, 0.3, 0.4))\n" "print(array) # [[]](空 Array 中包含了空的 PoolColorArray)\n" "[/codeblock]\n" "整个 [PoolColorArray] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会发" "生变化:\n" "[codeblock]\n" "var array = [PoolColorArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(Color(0.1, 0.2, 0.3, 0.4))\n" "array[0] = pool_array\n" "print(array) # [[(0.1, 0.2, 0.3, 0.4)]](Array 中包含了含有 1 个元素的 " "PoolColorArray)\n" "[/codeblock]" #: doc/classes/PoolColorArray.xml msgid "" "Constructs a new [PoolColorArray]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "" "构建新的[PoolColorArray]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolColorArray.xml msgid "Appends a [PoolColorArray] at the end of this array." msgstr "在这个数组的最后添加一个[PoolColorArray]。" #: doc/classes/PoolColorArray.xml doc/classes/PoolIntArray.xml msgid "Appends a value to the array." msgstr "将一个值添加到数组中。" #: doc/classes/PoolColorArray.xml doc/classes/PoolStringArray.xml #: doc/classes/PoolVector2Array.xml doc/classes/PoolVector3Array.xml msgid "" "Sets the size of the array. If the array is grown, reserves elements at the " "end of the array. If the array is shrunk, truncates the array to the new " "size." msgstr "" "设置数组的大小。如果数组被增大,则保留数组末端的元素。如果数组被缩小,则将数" "组截断到新的大小。" #: doc/classes/PoolColorArray.xml msgid "Changes the [Color] at the given index." msgstr "更改给定索引处的[Color]。" #: doc/classes/PoolIntArray.xml msgid "A pooled array of integers ([int])." msgstr "整数([int])池数组。" #: doc/classes/PoolIntArray.xml #, fuzzy msgid "" "An array specifically designed to hold integer values ([int]). Optimized for " "memory usage, does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolIntArray] or " "mutating a [PoolIntArray] within an [Array] or [Dictionary], changes will be " "lost:\n" "[codeblock]\n" "var array = [PoolIntArray()]\n" "array[0].push_back(1234)\n" "print(array) # [[]] (empty PoolIntArray within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolIntArray] property must be [i]reassigned[/i] with " "[code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolIntArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(1234)\n" "array[0] = pool_array\n" "print(array) # [[1234]] (PoolIntArray with 1 element inside an Array)\n" "[/codeblock]\n" "[b]Note:[/b] This type is limited to signed 32-bit integers, which means it " "can only take values in the interval [code][-2^31, 2^31 - 1][/code], i.e. " "[code][-2147483648, 2147483647][/code]. Exceeding those bounds will wrap " "around. In comparison, [int] uses signed 64-bit integers which can hold much " "larger values." msgstr "" "专门为存储整数([int])设计的数组。针对内存使用进行了优化,不会产生内存碎" "片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolIntArray] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 [Dictionary] 中" "的 [PoolIntArray] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolIntArray()]\n" "array[0].push_back(1234)\n" "print(array) # [[]](空 Array 中包含了空的 PoolIntArray)\n" "[/codeblock]\n" "整个 [PoolIntArray] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会发生" "变化:\n" "[codeblock]\n" "var array = [PoolIntArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(1234)\n" "array[0] = pool_array\n" "print(array) # [[1234]](Array 中包含了含有 1 个元素的 PoolIntArray)\n" "[/codeblock]\n" "[b]注意:[/b]这个类型仅限于有符号的 32 位整数,这意味着它只能在 [code]" "[-2^31, 2^31 - 1][/code] 的区间取值,即 [code][-2147483648, 2147483647][/" "code]。超过这些界限就会被包起来。相比之下,[int] 使用有符号的 64 位整数,可以" "容纳大得多的值。" #: doc/classes/PoolIntArray.xml msgid "" "Constructs a new [PoolIntArray]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "构建新的[PoolIntArray]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolIntArray.xml msgid "Appends a [PoolIntArray] at the end of this array." msgstr "在这个数组的最后添加[PoolIntArray]。" #: doc/classes/PoolIntArray.xml msgid "" "Inserts a new int at a given position in the array. The position must be " "valid, or at the end of the array ([code]idx == size()[/code])." msgstr "" "在数组中的指定位置插入一个新的int。这个位置必须是有效的,或者在数组的末端" "([code]idx == size()[/code])。" #: doc/classes/PoolIntArray.xml msgid "Changes the int at the given index." msgstr "更改给定索引处的 int。" #: doc/classes/PoolRealArray.xml msgid "A pooled array of real numbers ([float])." msgstr "实数([float])池数组。" #: doc/classes/PoolRealArray.xml #, fuzzy msgid "" "An array specifically designed to hold floating-point values. Optimized for " "memory usage, does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolRealArray] or " "mutating a [PoolRealArray] within an [Array] or [Dictionary], changes will " "be lost:\n" "[codeblock]\n" "var array = [PoolRealArray()]\n" "array[0].push_back(12.34)\n" "print(array) # [[]] (empty PoolRealArray within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolRealArray] property must be [i]reassigned[/i] with " "[code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolRealArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(12.34)\n" "array[0] = pool_array\n" "print(array) # [[12.34]] (PoolRealArray with 1 element inside an Array)\n" "[/codeblock]\n" "[b]Note:[/b] Unlike primitive [float]s which are 64-bit, numbers stored in " "[PoolRealArray] are 32-bit floats. This means values stored in " "[PoolRealArray] have lower precision compared to primitive [float]s. If you " "need to store 64-bit floats in an array, use a generic [Array] with [float] " "elements as these will still be 64-bit. However, using a generic [Array] to " "store [float]s will use roughly 6 times more memory compared to a " "[PoolRealArray]." msgstr "" "专门为存储浮点数设计的数组。针对内存使用进行了优化,不会产生内存碎片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolRealArray] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 [Dictionary] " "中的 [PoolRealArray] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolIntArray()]\n" "array[0].push_back(12.34)\n" "print(array) # [[]](空 Array 中包含了空的 PoolRealArray)\n" "[/codeblock]\n" "整个 [PoolRealArray] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会发" "生变化:\n" "[codeblock]\n" "var array = [PoolRealArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(12.34)\n" "array[0] = pool_array\n" "print(array) # [[12.34]](Array 中包含了含有 1 个元素的 PoolRealArray)\n" "[/codeblock]\n" "[b]注意:[/b]与 64 位原始 [float] 不同,存储在 [PoolRealArray] 中的数字是 32 " "位浮点数。这意味着与原始 [float] 相比,存储在 [PoolRealArray] 中的值具有较低" "的精度。如果您需要在数组中存储 64 位浮点数,请使用具有 [float] 元素的通用 " "[Array],因为这些元素仍为 64 位。但是,与 [PoolRealArray] 相比,使用通用 " "[Array] 存储 [float] 将使用大约 6 倍的内存。" #: doc/classes/PoolRealArray.xml msgid "" "Constructs a new [PoolRealArray]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "构建新的[PoolRealArray]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolRealArray.xml msgid "Appends a [PoolRealArray] at the end of this array." msgstr "在这个数组的最后添加[PoolRealArray]。" #: doc/classes/PoolRealArray.xml msgid "Changes the float at the given index." msgstr "更改给定索引处的浮点数。" #: doc/classes/PoolStringArray.xml msgid "A pooled array of [String]s." msgstr "[String] 池数组。" #: doc/classes/PoolStringArray.xml #, fuzzy msgid "" "An array specifically designed to hold [String]s. Optimized for memory " "usage, does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolStringArray] or " "mutating a [PoolStringArray] within an [Array] or [Dictionary], changes will " "be lost:\n" "[codeblock]\n" "var array = [PoolStringArray()]\n" "array[0].push_back(\"hello\")\n" "print(array) # [[]] (empty PoolStringArray within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolStringArray] property must be [i]reassigned[/i] " "with [code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolStringArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(\"hello\")\n" "array[0] = pool_array\n" "print(array) # [[hello]] (PoolStringArray with 1 element inside an Array)\n" "[/codeblock]" msgstr "" "专门为存储 [String] 设计的数组。针对内存使用进行了优化,不会产生内存碎片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolStringArray] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 " "[Dictionary] 中的 [PoolStringArray] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolStringArray()]\n" "array[0].push_back(\"hello\")\n" "print(array) # [[]](空 Array 中包含了空的 PoolStringArray)\n" "[/codeblock]\n" "整个 [PoolStringArray] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会" "发生变化:\n" "[codeblock]\n" "var array = [PoolStringArray()]\n" "var pool_array = array[0]\n" "pool_array.push_back(\"hello\")\n" "array[0] = pool_array\n" "print(array) # [[hello]](Array 中包含了含有 1 个元素的 PoolStringArray)\n" "[/codeblock]" #: doc/classes/PoolStringArray.xml msgid "" "Constructs a new [PoolStringArray]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "" "构建新的[PoolStringArray]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolStringArray.xml msgid "Appends a [PoolStringArray] at the end of this array." msgstr "在这个数组的最后添加[PoolStringArray]。" #: doc/classes/PoolStringArray.xml msgid "" "Returns a [String] with each element of the array joined with the given " "[code]delimiter[/code]." msgstr "" "返回一个[String],数组的每个元素都用给定的[code]delimiter[/code]分隔符连接。" #: doc/classes/PoolStringArray.xml msgid "Appends a string element at end of the array." msgstr "在数组的末尾追加字符串元素。" #: doc/classes/PoolStringArray.xml msgid "Changes the [String] at the given index." msgstr "更改给定索引处的[String]。" #: doc/classes/PoolVector2Array.xml msgid "A pooled array of [Vector2]s." msgstr "[Vector2] 池数组。" #: doc/classes/PoolVector2Array.xml #, fuzzy msgid "" "An array specifically designed to hold [Vector2]. Optimized for memory " "usage, does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolVector2Array] or " "mutating a [PoolVector2Array] within an [Array] or [Dictionary], changes " "will be lost:\n" "[codeblock]\n" "var array = [PoolVector2Array()]\n" "array[0].push_back(Vector2(12, 34))\n" "print(array) # [[]] (empty PoolVector2Array within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolVector2Array] property must be [i]reassigned[/i] " "with [code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolVector2Array()]\n" "var pool_array = array[0]\n" "pool_array.push_back(Vector2(12, 34))\n" "array[0] = pool_array\n" "print(array) # [[(12, 34)]] (PoolVector2Array with 1 element inside an " "Array)\n" "[/codeblock]" msgstr "" "专门为存储 [Vector2] 设计的数组。针对内存使用进行了优化,不会产生内存碎片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolVector2Array] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 " "[Dictionary] 中的 [PoolVector2Array] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolVector2Array()]\n" "array[0].push_back(Vector2(12, 34))\n" "print(array) # [[]](空 Array 中包含了空的 PoolVector2Array)\n" "[/codeblock]\n" "整个 [PoolVector2Array] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会" "发生变化:\n" "[codeblock]\n" "var array = [PoolVector2Array()]\n" "var pool_array = array[0]\n" "pool_array.push_back(Vector2(12, 34))\n" "array[0] = pool_array\n" "print(array) # [[(12, 34)]](Array 中包含了含有 1 个元素的 " "PoolVector2Array)\n" "[/codeblock]" #: doc/classes/PoolVector2Array.xml doc/classes/TileMap.xml #: doc/classes/TileSet.xml msgid "2D Navigation Astar Demo" msgstr "2D A 星导航演示" #: doc/classes/PoolVector2Array.xml msgid "" "Constructs a new [PoolVector2Array]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "" "构建新的[PoolVector2Array]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolVector2Array.xml msgid "Appends a [PoolVector2Array] at the end of this array." msgstr "在这个数组的最后添加[PoolVector2Array]。" #: doc/classes/PoolVector2Array.xml msgid "Inserts a [Vector2] at the end." msgstr "在末尾插入[Vector2]。" #: doc/classes/PoolVector2Array.xml msgid "Changes the [Vector2] at the given index." msgstr "更改给定索引处的 [Vector2]。" #: doc/classes/PoolVector3Array.xml msgid "A pooled array of [Vector3]." msgstr "[Vector3] 池数组。" #: doc/classes/PoolVector3Array.xml #, fuzzy msgid "" "An array specifically designed to hold [Vector3]. Optimized for memory " "usage, does not fragment the memory.\n" "[b]Note:[/b] This type is passed by value and not by reference. This means " "that when [i]mutating[/i] a class property of type [PoolVector3Array] or " "mutating a [PoolVector3Array] within an [Array] or [Dictionary], changes " "will be lost:\n" "[codeblock]\n" "var array = [PoolVector3Array()]\n" "array[0].push_back(Vector3(12, 34, 56))\n" "print(array) # [[]] (empty PoolVector3Array within an Array)\n" "[/codeblock]\n" "Instead, the entire [PoolVector3Array] property must be [i]reassigned[/i] " "with [code]=[/code] for it to be changed:\n" "[codeblock]\n" "var array = [PoolVector3Array()]\n" "var pool_array = array[0]\n" "pool_array.push_back(Vector3(12, 34, 56))\n" "array[0] = pool_array\n" "print(array) # [[(12, 34, 56)]] (PoolVector3Array with 1 element inside an " "Array)\n" "[/codeblock]" msgstr "" "专门为存储 [Vector3] 设计的数组。针对内存使用进行了优化,不会产生内存碎片。\n" "[b]注意:[/b]这个类型是按值传递的,不会按引用传递。也就是说,如果对某个类的 " "[PoolVector3Array] 类型的属性进行了[i]修改[/i],或者对 [Array] 或 " "[Dictionary] 中的 [PoolVector3Array] 进行了修改,那么这些修改就会丢失:\n" "[codeblock]\n" "var array = [PoolVector3Array()]\n" "array[0].push_back(Vector3(12, 34, 56))\n" "print(array) # [[]](空 Array 中包含了空的 PoolVector3Array)\n" "[/codeblock]\n" "整个 [PoolVector3Array] 属性必须使用 [code]=[/code] 进行[i]重新赋值[/i],才会" "发生变化:\n" "[codeblock]\n" "var array = [PoolVector3Array()]\n" "var pool_array = array[0]\n" "pool_array.push_back(Vector3(12, 34, 56))\n" "array[0] = pool_array\n" "print(array) # [[(12, 34, 56)]](Array 中包含了含有 1 个元素的 " "PoolVector3Array)\n" "[/codeblock]" #: doc/classes/PoolVector3Array.xml msgid "" "Constructs a new [PoolVector3Array]. Optionally, you can pass in a generic " "[Array] that will be converted." msgstr "" "构建新的[PoolVector3Array]。你可以选择传入一个通用的[Array],它将被转换。" #: doc/classes/PoolVector3Array.xml msgid "Appends a [PoolVector3Array] at the end of this array." msgstr "在这个数组的最后添加[PoolVector3Array]。" #: doc/classes/PoolVector3Array.xml msgid "Inserts a [Vector3] at the end." msgstr "在末尾插入[Vector3]。" #: doc/classes/PoolVector3Array.xml msgid "Changes the [Vector3] at the given index." msgstr "更改给定索引处的 [Vector3]。" #: doc/classes/Popup.xml msgid "Base container control for popups and dialogs." msgstr "用于弹出窗口和对话框的基本容器控件。" #: doc/classes/Popup.xml msgid "" "Popup is a base [Control] used to show dialogs and popups. It's a subwindow " "and modal by default (see [Control]) and has helpers for custom popup " "behavior. All popup methods ensure correct placement within the viewport." msgstr "" "Popup 是基本的 [Control],用于显示对话框和弹出窗口。默认情况下,它是一个子窗" "口和模态,参阅 [Control],并具有自定义弹出行为的辅助程序。所有弹出方法都确保" "在视窗中正确放置。" #: doc/classes/Popup.xml msgid "Popup (show the control in modal form)." msgstr "弹出窗口(以模态形式显示控件)。" #: doc/classes/Popup.xml msgid "" "Popup (show the control in modal form) in the center of the screen relative " "to its current canvas transform, at the current size, or at a size " "determined by [code]size[/code]." msgstr "" "根据相对于当前画布转换、当前大小或由 [code]size[/code] 确定的大小,在屏幕中央" "弹出窗口(以模态形式显示控制)。" #: doc/classes/Popup.xml msgid "" "Popup (show the control in modal form) in the center of the screen relative " "to the current canvas transform, clamping the size to [code]size[/code], " "then ensuring the popup is no larger than the viewport size multiplied by " "[code]fallback_ratio[/code]." msgstr "" "相对于当前画布变换在屏幕中央弹出(以模态形式显示控件),将大小限制为" "[code]size[/code],并确保弹出窗口不大于视口大小乘以[code]fallback_ratio[/" "code]。" #: doc/classes/Popup.xml msgid "" "Popup (show the control in modal form) in the center of the screen relative " "to the current canvas transform, ensuring the size is never smaller than " "[code]minsize[/code]." msgstr "" "相对于当前画布变换在屏幕中央弹出(以模态形式显示控件),确保尺寸永远不会小于 " "[code]minsize[/code]。" #: doc/classes/Popup.xml msgid "" "Popup (show the control in modal form) in the center of the screen relative " "to the current canvas transform, scaled at a ratio of size of the screen." msgstr "" "相对于当前画布变换在屏幕中央弹出(以模态形式显示控件),按屏幕大小的比例缩" "放。" #: doc/classes/Popup.xml msgid "Shrink popup to keep to the minimum size of content." msgstr "缩小弹出窗口以保持内容的最小大小。" #: doc/classes/Popup.xml msgid "" "If [code]true[/code], the popup will not be hidden when a click event occurs " "outside of it, or when it receives the [code]ui_cancel[/code] action event.\n" "[b]Note:[/b] Enabling this property doesn't affect the Close or Cancel " "buttons' behavior in dialogs that inherit from this class. As a workaround, " "you can use [method WindowDialog.get_close_button] or [method " "ConfirmationDialog.get_cancel] and hide the buttons in question by setting " "their [member CanvasItem.visible] property to [code]false[/code]." msgstr "" "如果[code]true[/code],当点击事件发生在它之外,或者当它收到[code]ui_cancel[/" "code]动作事件时,弹出窗口不会被隐藏。\n" "[b]注意:[/b]启用此属性不会影响从此类继承的对话框中关闭或取消按钮的行为。作为" "解决方法,您可以使用 [method WindowDialog.get_close_button] 或 [method " "ConfirmationDialog.get_cancel] 并通过将其 [member CanvasItem.visible] 属性设" "置为 [code]false[/code] 来隐藏有问题的按钮。" #: doc/classes/Popup.xml msgid "" "Emitted when a popup is about to be shown. This is often used in [PopupMenu] " "to clear the list of options then create a new one according to the current " "context." msgstr "" "当弹出窗口即将显示时发出。这通常在 [PopupMenu] 中用于清除选项列表,然后根据当" "前上下文创建一个新选项。" #: doc/classes/Popup.xml msgid "Emitted when a popup is hidden." msgstr "当弹出窗口被隐藏时发出." #: doc/classes/Popup.xml msgid "Notification sent right after the popup is shown." msgstr "在弹出窗口显示后立即发送通知。" #: doc/classes/Popup.xml msgid "Notification sent right after the popup is hidden." msgstr "在弹出窗口被隐藏后立即发送通知。" #: doc/classes/PopupDialog.xml msgid "Base class for popup dialogs." msgstr "弹出对话框的基类。" #: doc/classes/PopupDialog.xml msgid "" "PopupDialog is a base class for popup dialogs, along with [WindowDialog]." msgstr "PopupDialog 是弹出对话框的基类,与 [WindowDialog] 一起。" #: doc/classes/PopupDialog.xml msgid "Sets a custom [StyleBox] for the panel of the [PopupDialog]." msgstr "为[PopupDialog]的面板设置自定义的[StyleBox]。" #: doc/classes/PopupMenu.xml msgid "PopupMenu displays a list of options." msgstr "PopupMenu(弹出菜单)显示选项列表." #: doc/classes/PopupMenu.xml msgid "" "[PopupMenu] is a [Control] that displays a list of options. They are popular " "in toolbars or context menus." msgstr "" "[PopupMenu]是一个显示选项列表的[Control].它们在工具栏或上下文菜单中很常用." #: doc/classes/PopupMenu.xml msgid "" "Adds a new checkable item with text [code]label[/code].\n" "An [code]id[/code] can optionally be provided, as well as an accelerator " "([code]accel[/code]). If no [code]id[/code] is provided, one will be created " "from the index. If no [code]accel[/code] is provided then the default " "[code]0[/code] will be assigned to it. See [method get_item_accelerator] for " "more info on accelerators.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually. See " "[method set_item_checked] for more info on how to control it." msgstr "" "添加一个新的带有[code]label[/code]文本的可检查项目.\n" "可以选择提供一个[code]id[/code]以及一个快捷键([code]accel[/code])加速.如果没" "有提供[code]id[/code],将从索引中创建一个.如果没有提供[code]accel[/code],那么" "将为其分配默认的[code]0[/code].参阅 [method get_item_accelerator]了解更多关于" "快捷键的信息.\n" "[b]注意:[/b]可检查项目只是显示一个检查标记,但没有任何内置的检查行为,必须手动" "检查或取消检查.参阅[method set_item_checked]了解更多关于如何控制它的信息." #: doc/classes/PopupMenu.xml msgid "" "Adds a new checkable item and assigns the specified [ShortCut] to it. Sets " "the label of the checkbox to the [ShortCut]'s name.\n" "An [code]id[/code] can optionally be provided. If no [code]id[/code] is " "provided, one will be created from the index.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually. See " "[method set_item_checked] for more info on how to control it." msgstr "" "添加一个新的可检查项目,并将指定的[ShortCut]分配给它.将复选框的标签设置为" "ShortCut的名称.\n" "可以选择提供一个[code]id[/code].如果没有提供[code]id[/code],将从索引中创建一" "个.\n" "[b]注意:[/b]可检查项目只是显示一个检查标记,但没有任何内置的检查行为,必须手动" "检查或取消检查. 参阅 [method set_item_checked]了解更多关于如何控制它的信息." #: doc/classes/PopupMenu.xml msgid "" "Adds a new checkable item with text [code]label[/code] and icon " "[code]texture[/code].\n" "An [code]id[/code] can optionally be provided, as well as an accelerator " "([code]accel[/code]). If no [code]id[/code] is provided, one will be created " "from the index. If no [code]accel[/code] is provided then the default " "[code]0[/code] will be assigned to it. See [method get_item_accelerator] for " "more info on accelerators.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually. See " "[method set_item_checked] for more info on how to control it." msgstr "" "添加一个新的可检查项目,带有文本[code]label[/code]和图标[code]texture[/" "code]。\n" "可以选择提供一个[code]id[/code],以及一个加速器([code]accel[/code])。如果没" "有提供[code]id[/code],将从索引中创建一个。如果没有提供[code]accel[/code],那" "么默认的[code]0[/code]将被分配给它。参阅[method get_item_accelerator]获取更多" "关于加速器的信息。\n" "[b]注意:[/b]可选项目只是显示一个复选标记,但没有任何内置的检查行为,必须手动" "检查/取消检查。参阅[method set_item_checked]获取更多关于如何控制它的信息。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new checkable item and assigns the specified [ShortCut] and icon " "[code]texture[/code] to it. Sets the label of the checkbox to the " "[ShortCut]'s name.\n" "An [code]id[/code] can optionally be provided. If no [code]id[/code] is " "provided, one will be created from the index.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually. See " "[method set_item_checked] for more info on how to control it." msgstr "" "添加一个新的可选项目,并为其分配指定的[ShortCut]和图标[code]texture[/code]。" "将复选框的标签设置为[ShortCut]的名称。\n" "可以选择提供一个[code]id[/code]。如果没有提供[code]id[/code],将从索引中创建" "一个。\n" "[b]注意:[/b]可选项目只是显示一个复选标记,但没有任何内置的检查行为,必须手动" "检查/取消检查。参阅[method set_item_checked]获取更多关于如何控制它的信息。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new item with text [code]label[/code] and icon [code]texture[/code].\n" "An [code]id[/code] can optionally be provided, as well as an accelerator " "([code]accel[/code]). If no [code]id[/code] is provided, one will be created " "from the index. If no [code]accel[/code] is provided then the default " "[code]0[/code] will be assigned to it. See [method get_item_accelerator] for " "more info on accelerators." msgstr "" "添加带有文本[code]lable[/code]和图标[code]texture[/code]的新项目。\n" "可以选择提供一个[code]id[/code],以及一个加速器([code]accel[/code])。如果没有" "提供[code]id[/code],将从索引中创建一个。如果没有提供[code]accel[/code],则将" "为其分配默认的[code]0[/code]。有关加速器的更多信息,请参阅[method " "get_item_accelerator]。" #: doc/classes/PopupMenu.xml msgid "Same as [method add_icon_check_item], but uses a radio check button." msgstr "与[method add_icon_check_item]相同,但使用单选按钮。" #: doc/classes/PopupMenu.xml msgid "" "Same as [method add_icon_check_shortcut], but uses a radio check button." msgstr "与[method add_icon_check_shortcut]相同,但使用一个单选按钮。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new item and assigns the specified [ShortCut] and icon [code]texture[/" "code] to it. Sets the label of the checkbox to the [ShortCut]'s name.\n" "An [code]id[/code] can optionally be provided. If no [code]id[/code] is " "provided, one will be created from the index." msgstr "" "添加一个新项,并分配指定的[ShortCut]和图标[code]texture[/code]给它。将复选框" "的标签设置为[ShortCut]的名称。\n" "可以选择提供[code]id[/code]。如果没有提供[code]id[/code],将从索引中创建一" "个。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new item with text [code]label[/code].\n" "An [code]id[/code] can optionally be provided, as well as an accelerator " "([code]accel[/code]). If no [code]id[/code] is provided, one will be created " "from the index. If no [code]accel[/code] is provided then the default " "[code]0[/code] will be assigned to it. See [method get_item_accelerator] for " "more info on accelerators." msgstr "" "添加一个带有文本[code]label[/code]的新项目。\n" "可以选择提供[code]id[/code],以及加速器([code]accel[/code])。如果没有提供" "[code]id[/code],将从索引中创建一个。如果没有提供[code]accel[/code],则默认的" "[code]0[/code]将被分配给它。有关加速器的更多信息,请参阅[method " "get_item_accelerator]。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new multistate item with text [code]label[/code].\n" "Contrarily to normal binary items, multistate items can have more than two " "states, as defined by [code]max_states[/code]. Each press or activate of the " "item will increase the state by one. The default value is defined by " "[code]default_state[/code].\n" "An [code]id[/code] can optionally be provided, as well as an accelerator " "([code]accel[/code]). If no [code]id[/code] is provided, one will be created " "from the index. If no [code]accel[/code] is provided then the default " "[code]0[/code] will be assigned to it. See [method get_item_accelerator] for " "more info on accelerators." msgstr "" "添加一个带有文本[code]label[/code]的新的多状态项。\n" "与普通的二进制项相反,多状态项可以有两个以上的状态,如[code]max_states[/code]" "所定义的。每次按下或激活物品将增加一个状态。默认值由[code]default_state[/" "code]定义。\n" "可以选择提供[code]id[/code],以及加速器([code]accel[/code])。如果没有提供" "[code]id[/code],将从索引中创建一个。如果没有提供[code]accel[/code],则默认的" "[code]0[/code]将被分配给它。有关加速器的更多信息,请参阅[method " "get_item_accelerator]。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new radio check button with text [code]label[/code].\n" "An [code]id[/code] can optionally be provided, as well as an accelerator " "([code]accel[/code]). If no [code]id[/code] is provided, one will be created " "from the index. If no [code]accel[/code] is provided then the default " "[code]0[/code] will be assigned to it. See [method get_item_accelerator] for " "more info on accelerators.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually. See " "[method set_item_checked] for more info on how to control it." msgstr "" "添加一个带有文本[code]label[/code]的单选按钮。\n" "可以选择提供[code]id[/code],以及加速器([code]accel[/code])。如果没有提供" "[code]id[/code],将从索引中创建一个。如果没有提供[code]accel[/code],则默认的" "[code]0[/code]将被分配给它。有关加速器的更多信息,请参阅[method " "get_item_accelerator]。\n" "[b]注意:[/b]Checkable 项目只是显示一个复选标记,但没有任何内置的检查行为,必" "须手动检查/不检查。有关如何控制它的更多信息,请参阅 [method " "set_item_checked]。" #: doc/classes/PopupMenu.xml msgid "" "Adds a new radio check button and assigns a [ShortCut] to it. Sets the label " "of the checkbox to the [ShortCut]'s name.\n" "An [code]id[/code] can optionally be provided. If no [code]id[/code] is " "provided, one will be created from the index.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually. See " "[method set_item_checked] for more info on how to control it." msgstr "" "添加一个新的单选复选按钮并为其分配一个[ShortCut]。将复选框的标签设置为" "[ShortCut]的名称。\n" "可以选择提供[code]id[/code]。如果没有提供[code]id[/code],将从索引中创建一" "个。\n" "[b]注:[/b] Checkable项目只是显示一个复选标记,但没有任何内置的检查行为,必须" "手动检查/不检查。有关如何控制它的更多信息,请参阅[method set_item_checked]。" #: doc/classes/PopupMenu.xml msgid "" "Adds a separator between items. Separators also occupy an index, which you " "can set by using the [code]id[/code] parameter.\n" "A [code]label[/code] can optionally be provided, which will appear at the " "center of the separator." msgstr "" "在项目之间添加一个分隔符。分隔符也占用一个索引,你可以通过使用[code]id[/code]" "参数来设置。\n" "可以选择提供一个标签[code]label[/code],它将出现在分隔符的中心。" #: doc/classes/PopupMenu.xml msgid "" "Adds a [ShortCut].\n" "An [code]id[/code] can optionally be provided. If no [code]id[/code] is " "provided, one will be created from the index." msgstr "" "添加一个[ShortCut]。\n" "可以选择提供[code]id[/code]。如果没有提供[code]id[/code],将从索引中创建一" "个。" #: doc/classes/PopupMenu.xml msgid "" "Adds an item that will act as a submenu of the parent [PopupMenu] node when " "clicked. The [code]submenu[/code] argument is the name of the child " "[PopupMenu] node that will be shown when the item is clicked.\n" "An [code]id[/code] can optionally be provided. If no [code]id[/code] is " "provided, one will be created from the index." msgstr "" "添加一个项目,当单击父[PopupMenu]节点时,它将作为子菜单。[code]submenu[/code]" "参数是子节点[PopupMenu]的名称,当点击项目时显示该子节点。\n" "可以选择提供[code]id[/code]。如果没有提供[code]id[/code],将从索引中创建一" "个。" #: doc/classes/PopupMenu.xml msgid "Removes all items from the [PopupMenu]." msgstr "从[PopupMenu]中移除所有项目。" #: doc/classes/PopupMenu.xml msgid "" "Returns the index of the currently focused item. Returns [code]-1[/code] if " "no item is focused." msgstr "返回当前焦点项目的索引。如果没有焦点,则返回 [code]-1[/code]。" #: doc/classes/PopupMenu.xml msgid "" "Returns the accelerator of the item at index [code]idx[/code]. Accelerators " "are special combinations of keys that activate the item, no matter which " "control is focused." msgstr "" "返回索引[code]idx[/code]处项目的加速项。加速器是一种特殊的按键组合,可以激活" "物品,无论哪个控制键处于焦点状态。" #: doc/classes/PopupMenu.xml msgid "Returns the number of items in the [PopupMenu]." msgstr "返回[PopupMenu]中的项目数。" #: doc/classes/PopupMenu.xml msgid "" "Returns the id of the item at index [code]idx[/code]. [code]id[/code] can be " "manually assigned, while index can not." msgstr "" "返回索引[code]idx[/code]处项目的id。[code]id[/code]可以手动分配,而索引不能。" #: doc/classes/PopupMenu.xml msgid "" "Returns the index of the item containing the specified [code]id[/code]. " "Index is automatically assigned to each item by the engine. Index can not be " "set manually." msgstr "" "返回包含指定的[code]id[/code]的项的索引。索引由引擎自动分配给每个项目。不能手" "动设置索引。" #: doc/classes/PopupMenu.xml msgid "" "Returns the metadata of the specified item, which might be of any type. You " "can set it with [method set_item_metadata], which provides a simple way of " "assigning context data to items." msgstr "" "返回指定项的元数据,该项可以是任何类型。您可以使用[method set_item_metadata]" "来设置它,它提供了一种将上下文数据分配给项的简单方法。" #: doc/classes/PopupMenu.xml msgid "" "Returns the [ShortCut] associated with the specified [code]idx[/code] item." msgstr "返回与指定的[code]idx[/code]项关联的[ShortCut]。" #: doc/classes/PopupMenu.xml msgid "" "Returns the submenu name of the item at index [code]idx[/code]. See [method " "add_submenu_item] for more info on how to add a submenu." msgstr "" "返回在索引[code]idx[/code]处的项目的子菜单名。更多关于如何添加子菜单的信息," "请参阅[method add_submenu_item]。" #: doc/classes/PopupMenu.xml msgid "" "Returns the tooltip associated with the specified index [code]idx[/code]." msgstr "返回与指定索引 [code]idx[/code]关联的工具提示。" #: doc/classes/PopupMenu.xml msgid "" "Returns [code]true[/code] if the popup will be hidden when the window loses " "focus or not." msgstr "如果窗口失去焦点时是否隐藏弹出窗口,则返回 [code]true[/code]。" #: doc/classes/PopupMenu.xml msgid "" "Returns [code]true[/code] if the item at index [code]idx[/code] is checkable " "in some way, i.e. if it has a checkbox or radio button.\n" "[b]Note:[/b] Checkable items just display a checkmark or radio button, but " "don't have any built-in checking behavior and must be checked/unchecked " "manually." msgstr "" "如果索引[code]idx[/code]的项目以某种方式是可检查的,例如,如果它有一个复选框" "或单选按钮,则返回 [code]true[/code]。\n" "[b]注:[/b]可检查项目只是显示一个复选标记或单选按钮,但没有任何内置的检查行" "为,必须手动检查/取消。" #: doc/classes/PopupMenu.xml msgid "" "Returns [code]true[/code] if the item at index [code]idx[/code] is checked." msgstr "如果索引[code]idx[/code]项被选中,则返回 [code]true[/code]。" #: doc/classes/PopupMenu.xml msgid "" "Returns [code]true[/code] if the item at index [code]idx[/code] is disabled. " "When it is disabled it can't be selected, or its action invoked.\n" "See [method set_item_disabled] for more info on how to disable an item." msgstr "" "如果索引[code]idx[/code]项被禁用,返回 [code]true[/code]。当它被禁用时,就无" "法选择它,或者调用它的操作。\n" "有关如何禁用一个项目的更多信息,请参阅[method set_item_disabled]。" #: doc/classes/PopupMenu.xml msgid "" "Returns [code]true[/code] if the item at index [code]idx[/code] has radio " "button-style checkability.\n" "[b]Note:[/b] This is purely cosmetic; you must add the logic for checking/" "unchecking items in radio groups." msgstr "" "如果index [code]idx[/code]具有单选按钮样式的可检查性,则返回 [code]true[/" "code]。\n" "[b]注:[/b]这纯粹是装饰性的;您必须添加用于在单选组中检查/取消检查项目的逻辑。" #: doc/classes/PopupMenu.xml msgid "" "Returns [code]true[/code] if the item is a separator. If it is, it will be " "displayed as a line. See [method add_separator] for more info on how to add " "a separator." msgstr "" "如果项目是分隔符,则返回 [code]true[/code]。如果是,它将显示为一行。有关如何" "添加分隔符的更多信息,请参阅[method add_separator]。" #: doc/classes/PopupMenu.xml msgid "Returns [code]true[/code] if the specified item's shortcut is disabled." msgstr "如果指定项的快捷方式被禁用,则返回 [code]true[/code]。" #: doc/classes/PopupMenu.xml msgid "" "Removes the item at index [code]idx[/code] from the menu.\n" "[b]Note:[/b] The indices of items after the removed item will be shifted by " "one." msgstr "" "从菜单中移除索引[code]idx[/code]项。\n" "[b]注:[/b]被移除项后的项的索引将被移位1。" #: doc/classes/PopupMenu.xml msgid "Sets the currently focused item as the given [code]index[/code]." msgstr "将当前聚焦项目设置为给定的索引 [code]index[/code]。" #: doc/classes/PopupMenu.xml msgid "Hides the [PopupMenu] when the window loses focus." msgstr "当窗口失去焦点时隐藏[PopupMenu]。" #: doc/classes/PopupMenu.xml msgid "" "Sets the accelerator of the item at index [code]idx[/code]. Accelerators are " "special combinations of keys that activate the item, no matter which control " "is focused." msgstr "" "设置索引[code]idx[/code]项的加速键。加速器是一种特殊的按键组合,可以激活物" "品,无论哪个控制键处于焦点状态。" #: doc/classes/PopupMenu.xml msgid "" "Sets whether the item at index [code]idx[/code] has a checkbox. If " "[code]false[/code], sets the type of the item to plain text.\n" "[b]Note:[/b] Checkable items just display a checkmark, but don't have any " "built-in checking behavior and must be checked/unchecked manually." msgstr "" "设置索引[code]idx[/code]项是否有复选框。如果[code]false[/code],则将项目类型" "设置为纯文本。\n" "[b]注:[/b] Checkable项目只是显示一个复选标记,但没有任何内置的检查行为,必须" "手动检查/不检查。" #: doc/classes/PopupMenu.xml msgid "" "Sets the type of the item at the specified index [code]idx[/code] to radio " "button. If [code]false[/code], sets the type of the item to plain text." msgstr "" "将指定索引[code]idx[/code]处的项目类型设置为单选按钮。如果[code]false[/" "code],则将项目类型设置为纯文本。" #: doc/classes/PopupMenu.xml msgid "" "Mark the item at index [code]idx[/code] as a separator, which means that it " "would be displayed as a line. If [code]false[/code], sets the type of the " "item to plain text." msgstr "" "将索引 [code]idx[/code]标记为分隔符,这意味着它将显示为一行。如果" "[code]false[/code],则将项目类型设置为纯文本。" #: doc/classes/PopupMenu.xml msgid "Sets the checkstate status of the item at index [code]idx[/code]." msgstr "设置项目在index [code]idx[/code]处的checkstate状态。" #: doc/classes/PopupMenu.xml msgid "" "Enables/disables the item at index [code]idx[/code]. When it is disabled, it " "can't be selected and its action can't be invoked." msgstr "" "启用/禁用索引[code]idx[/code]项。当它被禁用时,就无法选择它,也无法调用它的操" "作。" #: doc/classes/PopupMenu.xml msgid "Replaces the [Texture] icon of the specified [code]idx[/code]." msgstr "替换指定[code]idx[/code]的纹理[Texture]图标。" #: doc/classes/PopupMenu.xml msgid "Sets the [code]id[/code] of the item at index [code]idx[/code]." msgstr "在索引[code]idx[/code]处设置项目的[code]id[/code]。" #: doc/classes/PopupMenu.xml msgid "" "Sets the metadata of an item, which may be of any type. You can later get it " "with [method get_item_metadata], which provides a simple way of assigning " "context data to items." msgstr "" "设置项的元数据,该项可以是任何类型。稍后您可以使用[method get_item_metadata]" "获取它,它提供了一种将上下文数据分配给项的简单方法。" #: doc/classes/PopupMenu.xml msgid "" "Sets the state of a multistate item. See [method add_multistate_item] for " "details." msgstr "设置一个多态项目的状态。详见[method add_multistate_item]。" #: doc/classes/PopupMenu.xml msgid "Sets a [ShortCut] for the specified item [code]idx[/code]." msgstr "为指定的项目[code]idx[/code]设置[ShortCut]。" #: doc/classes/PopupMenu.xml msgid "Disables the [ShortCut] of the specified index [code]idx[/code]." msgstr "禁用指定索引[code]idx[/code]的[ShortCut]。" #: doc/classes/PopupMenu.xml msgid "" "Sets the submenu of the item at index [code]idx[/code]. The submenu is the " "name of a child [PopupMenu] node that would be shown when the item is " "clicked." msgstr "" "将项目的子菜单设置为索引[code]idx[/code]。子菜单是一个子[PopupMenu]节点的名" "称,在单击项目时显示该节点。" #: doc/classes/PopupMenu.xml msgid "" "Sets the [String] tooltip of the item at the specified index [code]idx[/" "code]." msgstr "在指定的索引[code]idx[/code]处设置项目的[String]工具提示。" #: doc/classes/PopupMenu.xml msgid "" "Toggles the check state of the item of the specified index [code]idx[/code]." msgstr "切换指定索引[code]idx[/code]项的检查状态。" #: doc/classes/PopupMenu.xml msgid "" "Cycle to the next state of a multistate item. See [method " "add_multistate_item] for details." msgstr "循环到一个多态项目的下一个状态。详见[method add_multistate_item]。" #: doc/classes/PopupMenu.xml msgid "If [code]true[/code], allows navigating [PopupMenu] with letter keys." msgstr "如果为 [code]true[/code],允许用字母键导航[PopupMenu]。" #: doc/classes/PopupMenu.xml msgid "" "If [code]true[/code], hides the [PopupMenu] when a checkbox or radio button " "is selected." msgstr "如果[code]true[/code],则在选中复选框或单选按钮时隐藏[PopupMenu]。" #: doc/classes/PopupMenu.xml msgid "If [code]true[/code], hides the [PopupMenu] when an item is selected." msgstr "如果[code]true[/code],当一个项目被选中时隐藏[PopupMenu]。" #: doc/classes/PopupMenu.xml msgid "" "If [code]true[/code], hides the [PopupMenu] when a state item is selected." msgstr "如果[code]true[/code],则在选中状态项时隐藏[PopupMenu]。" #: doc/classes/PopupMenu.xml msgid "" "Sets the delay time in seconds for the submenu item to popup on mouse " "hovering. If the popup menu is added as a child of another (acting as a " "submenu), it will inherit the delay time of the parent menu item." msgstr "" "设置鼠标悬停时子菜单项弹出的延迟时间(以秒为单位)。如果弹出菜单被添加为另一个" "菜单的子菜单(作为子菜单),它将继承父菜单项的延迟时间。" #: doc/classes/PopupMenu.xml msgid "" "Emitted when user navigated to an item of some [code]id[/code] using " "[code]ui_up[/code] or [code]ui_down[/code] action." msgstr "" "当用户使用[code]ui_up[/code]或[code]ui_down[/code]操作导航到某个[code]id[/" "code]项时触发。" #: doc/classes/PopupMenu.xml msgid "" "Emitted when an item of some [code]id[/code] is pressed or its accelerator " "is activated." msgstr "当按下某个[code]id[/code]的项目或激活其加速器时触发。" #: doc/classes/PopupMenu.xml msgid "" "Emitted when an item of some [code]index[/code] is pressed or its " "accelerator is activated." msgstr "当按下某个[code]index[/code]的项或激活其加速器时触发。" #: doc/classes/PopupMenu.xml msgid "The default text [Color] for menu items' names." msgstr "菜单项名称的默认文本[Color]。" #: doc/classes/PopupMenu.xml msgid "" "The text [Color] used for shortcuts and accelerators that show next to the " "menu item name when defined. See [method get_item_accelerator] for more info " "on accelerators." msgstr "" "文本[Color]用于快捷键和加速器,当定义时显示在菜单项名称旁边。有关加速器的更多" "信息,请参阅[method get_item_accelerator]。" #: doc/classes/PopupMenu.xml msgid "[Color] used for disabled menu items' text." msgstr "用于禁用菜单项的文本 [Color]。" #: doc/classes/PopupMenu.xml msgid "[Color] used for the hovered text." msgstr "用于悬停文本的 [Color]。" #: doc/classes/PopupMenu.xml msgid "[Color] used for labeled separators' text. See [method add_separator]." msgstr "用于标注分隔符文本的颜色 [Color]。见 [method add_separator]。" #: doc/classes/PopupMenu.xml msgid "" "The horizontal space between the item's name and the shortcut text/submenu " "arrow." msgstr "项目名称与快捷文本/子菜单箭头之间的水平空间。" #: doc/classes/PopupMenu.xml msgid "The vertical space between each menu item." msgstr "每个菜单项之间的垂直间距。" #: doc/classes/PopupMenu.xml msgid "[Font] used for the menu items." msgstr "用于菜单项的 [Font] 字体。" #: doc/classes/PopupMenu.xml msgid "[Font] used for the labeled separator." msgstr "用于带文字分隔线的 [Font] 字体。" #: doc/classes/PopupMenu.xml msgid "[Texture] icon for the checked checkbox items." msgstr "复选菜单项被勾选时使用的 [Texture] 图标。" #: doc/classes/PopupMenu.xml msgid "[Texture] icon for the checked radio button items." msgstr "单选菜单项被选中时使用的 [Texture] 图标。" #: doc/classes/PopupMenu.xml msgid "[Texture] icon for the unchecked radio button items." msgstr "单选菜单项未被选中时使用的 [Texture] 图标。" #: doc/classes/PopupMenu.xml msgid "[Texture] icon for the submenu arrow." msgstr "子菜单箭头使用的 [Texture] 图标。" #: doc/classes/PopupMenu.xml msgid "[Texture] icon for the unchecked checkbox items." msgstr "复选菜单项未被勾选时使用的 [Texture] 图标。" #: doc/classes/PopupMenu.xml msgid "[StyleBox] displayed when the [PopupMenu] item is hovered." msgstr "当 [PopupMenu] 菜单项被悬停时显示的 [StyleBox]。" #: doc/classes/PopupMenu.xml msgid "" "[StyleBox] for the left side of labeled separator. See [method " "add_separator]." msgstr "用于标签分隔器的左侧 [StyleBox]。请参阅 [method add_separator]。" #: doc/classes/PopupMenu.xml msgid "" "[StyleBox] for the right side of labeled separator. See [method " "add_separator]." msgstr "用于标签分隔器的右侧 [StyleBox]。请参阅 [method add_separator]。" #: doc/classes/PopupMenu.xml msgid "Default [StyleBox] of the [PopupMenu] items." msgstr "[PopupMenu] 菜单项的默认 [StyleBox]。" #: doc/classes/PopupMenu.xml msgid "[StyleBox] used when the [PopupMenu] item is disabled." msgstr "[PopupMenu] 菜单项被禁用时使用的 [StyleBox]。" #: doc/classes/PopupMenu.xml msgid "[StyleBox] used for the separators. See [method add_separator]." msgstr "用于分隔符的 [StyleBox]。请参阅 [method add_separator]。" #: doc/classes/PopupPanel.xml msgid "Class for displaying popups with a panel background." msgstr "用于显示带有面板背景的弹出窗口的类。" #: doc/classes/PopupPanel.xml msgid "" "Class for displaying popups with a panel background. In some cases it might " "be simpler to use than [Popup], since it provides a configurable background. " "If you are making windows, better check [WindowDialog]." msgstr "" "用于显示具有面板背景的弹出窗口的类。在某些情况下,它可能比 [Popup] 更容易使" "用,因为它提供了一个可配置的背景。如果你正在制作窗口,最好是查看 " "[WindowDialog]。" #: doc/classes/PopupPanel.xml msgid "The background panel style of this [PopupPanel]." msgstr "这个 [PopupPanel] 的背景面板样式。" #: doc/classes/Portal.xml msgid "Portal nodes are used to enable visibility between [Room]s." msgstr "入口节点用于实现 [Room] 之间的可见性。" #: doc/classes/Portal.xml msgid "" "[Portal]s are a special type of [MeshInstance] that allow the portal culling " "system to 'see' from one room to the next. They often correspond to doors " "and windows in level geometry. By only allowing [Camera]s to see through " "portals, this allows the system to cull out all the objects in rooms that " "cannot be seen through portals. This is a form of [b]occlusion culling[/b], " "and can greatly increase performance.\n" "There are some limitations to the form of portals:\n" "They must be single sided convex polygons, and usually you would orientate " "their front faces [b]outward[/b] from the [Room] they are placed in. The " "vertices should be positioned on a single plane (although their positioning " "does not have to be perfect).\n" "There is no need to place an opposite portal in an adjacent room, links are " "made two-way automatically." msgstr "" "[Portal] 是一种特殊类型的 [MeshInstance],允许入口剔除系统从一个空间“看到”到" "另一个空间。它们通常对应于水平几何中的门窗。只允许 [Camera] 透过入口看到,这" "允许系统剔除空间中无法透过入口看到的所有物体。这是[b]遮挡剔除[/b]的一种形式," "可以大大提高性能。\n" "入口的形式有一些限制:\n" "它们必须是单面凸多边形,并且通常您会将它们的正面[b]朝外[/b]从它们所在的 " "[Room] 定向。顶点应该位于一个平面上(尽管它们的位置不必完美)。\n" "无需在相邻空间放置对面的入口,它们会自动建立双向链接。" #: doc/classes/Portal.xml doc/classes/Room.xml msgid "Sets individual points. Primarily for use by the editor." msgstr "设置单个点。主要供编辑器使用。" #: doc/classes/Portal.xml msgid "" "This is a shortcut for setting the linked [Room] in the name of the [Portal] " "(the name is used during conversion)." msgstr "" "这是在 [Portal] 的名称中设置链接 [Room] 的快捷方式(名称在转换过程中使用)。" #: doc/classes/Portal.xml msgid "" "The points defining the shape of the [Portal] polygon (which should be " "convex).\n" "These are defined in 2D, with [code]0,0[/code] being the origin of the " "[Portal] node's [member Spatial.global_transform].\n" "[b]Note:[/b] These raw points are sanitized for winding order internally." msgstr "" "定义 [Portal] 多边形形状的点(应该是凸面)。\n" "这些是在 2D 中定义的,[code]0,0[/code] 是 [Portal] 节点的 [member Spatial." "global_transform] 的原点。\n" "[b]注意:[/b]这些原始点会被整理以便在内部缠绕顺序。" #: doc/classes/Portal.xml msgid "" "Visibility through [Portal]s can be turned on and off at runtime - this is " "useful for having closable doors." msgstr "" "可以在运行时打开和关闭通过 [Portal] 的可见性 - 这对于具有可关闭的门很有用。" #: doc/classes/Portal.xml msgid "" "Some objects are so big that they may be present in more than one [Room] " "('sprawling'). As we often don't want objects that *just* breach the edges " "to be assigned to neighbouring rooms, you can assign an extra margin through " "the [Portal] to allow objects to breach without sprawling." msgstr "" "有些物体非常大,以至于它们可能会出现在不止一个 [Room]中(“蔓延”)。由于我们通" "常不希望将*只是*突破边缘的对象分配给相邻的房间,因此您可以通过 [Portal] 分配" "额外的边距,以允许对象在不蔓延的情况下突破。" #: doc/classes/Portal.xml msgid "" "Portals default to being two way - see through in both directions, however " "you can make them one way, visible from the source room only." msgstr "" "Portal默认为双向 - 在两个方向都可以看到,但是您可以将它们设为一种从源房间可见" "的方式。" #: doc/classes/Portal.xml msgid "" "In most cases you will want to use the default [Portal] margin in your " "portals (this is set in the [RoomManager]).\n" "If you want to override this default, set this value to [code]false[/code], " "and the local [member portal_margin] will take effect." msgstr "" "在大多数情况下,您会希望在Portal中使用默认的 [Portal] 边距(这是在 " "[RoomManager] 中设置的)。\n" "如果要覆盖这个默认值,把这个值设置为 [code]false[/code],本地的[member " "portal_margin]就会生效。" #: doc/classes/Position2D.xml msgid "Generic 2D position hint for editing." msgstr "用于编辑的通用2D位置提示。" #: doc/classes/Position2D.xml msgid "" "Generic 2D position hint for editing. It's just like a plain [Node2D], but " "it displays as a cross in the 2D editor at all times. You can set cross' " "visual size by using the gizmo in the 2D editor while the node is selected." msgstr "" "用于编辑的通用2D位置提示。它就像一个普通的[Node2D],但它在2D编辑器中始终显示" "为一个十字。选择节点时,可以使用2D编辑器中的小控件来设置十字的视觉大小。" #: doc/classes/Position3D.xml msgid "Generic 3D position hint for editing." msgstr "用于编辑的通用 3D 位置提示。" #: doc/classes/Position3D.xml msgid "" "Generic 3D position hint for editing. It's just like a plain [Spatial], but " "it displays as a cross in the 3D editor at all times." msgstr "" "用于编辑的通用 3D 位置提示。它就像一个普通的 [Spatial],但它始终在 3D 编辑器" "中显示为一个十字。" #: doc/classes/PrimitiveMesh.xml msgid "" "Base class for all primitive meshes. Handles applying a [Material] to a " "primitive mesh." msgstr "所有图元网格的基类。处理将 [Material] 应用到图元网格的问题。" #: doc/classes/PrimitiveMesh.xml msgid "" "Base class for all primitive meshes. Handles applying a [Material] to a " "primitive mesh. Examples include [CapsuleMesh], [CubeMesh], [CylinderMesh], " "[PlaneMesh], [PrismMesh], [QuadMesh], and [SphereMesh]." msgstr "" "所有图元网格的基类。处理将 [Material] 应用到图元网格的问题。示例包括 " "[CapsuleMesh]、[CubeMesh]、[CylinderMesh]、[PlaneMesh]、[PrismMesh]、" "[QuadMesh]、[SphereMesh] 等。" #: doc/classes/PrimitiveMesh.xml msgid "" "Returns mesh arrays used to constitute surface of [Mesh]. The result can be " "passed to [method ArrayMesh.add_surface_from_arrays] to create a new " "surface. For example:\n" "[codeblock]\n" "var c := CylinderMesh.new()\n" "var arr_mesh := ArrayMesh.new()\n" "arr_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, c." "get_mesh_arrays())\n" "[/codeblock]" msgstr "" "返回用于构成[Mesh]表面的网格数组。结果可以传递给 [method ArrayMesh." "add_surface_from_arrays]来创建一个新的曲面。例如:\n" "[codeblock]\n" "var c := CylinderMesh.new()\n" "var arr_mesh := ArrayMesh.new()\n" "arr_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, c." "get_mesh_arrays())\n" "[/codeblock]" #: doc/classes/PrimitiveMesh.xml msgid "" "If set, the order of the vertices in each triangle are reversed resulting in " "the backside of the mesh being drawn.\n" "This gives the same result as using [constant SpatialMaterial.CULL_BACK] in " "[member SpatialMaterial.params_cull_mode]." msgstr "" "如果设置,则每个三角形中顶点的顺序会颠倒,从而绘制网格的背面。\n" "这与在 [member SpatialMaterial.params_cull_mode] 中使用 [constant " "SpatialMaterial.CULL_BACK] 的结果相同。" #: doc/classes/PrimitiveMesh.xml msgid "The current [Material] of the primitive mesh." msgstr "该图元网格的当前 [Material]。" #: doc/classes/PrismMesh.xml msgid "Class representing a prism-shaped [PrimitiveMesh]." msgstr "表示棱柱形 [PrimitiveMesh] 的类。" #: doc/classes/PrismMesh.xml msgid "" "Displacement of the upper edge along the X axis. 0.0 positions edge straight " "above the bottom-left edge." msgstr "上边缘沿 X 轴的位移。0.0 将边缘定位在左下边缘的正上方。" #: doc/classes/PrismMesh.xml msgid "Size of the prism." msgstr "棱镜的大小。" #: doc/classes/PrismMesh.xml msgid "Number of added edge loops along the Z axis." msgstr "沿 Z 轴添加的边循环数。" #: doc/classes/PrismMesh.xml msgid "Number of added edge loops along the Y axis." msgstr "沿 Y 轴添加的边循环数。" #: doc/classes/PrismMesh.xml msgid "Number of added edge loops along the X axis." msgstr "沿 X 轴添加的边循环数。" #: doc/classes/ProceduralSky.xml msgid "" "Type of [Sky] that is generated procedurally based on user input parameters." msgstr "根据用户输入的参数按程序生成的 [Sky] 类型。" #: doc/classes/ProceduralSky.xml msgid "" "ProceduralSky provides a way to create an effective background quickly by " "defining procedural parameters for the sun, the sky and the ground. The sky " "and ground are very similar, they are defined by a color at the horizon, " "another color, and finally an easing curve to interpolate between these two " "colors. Similarly, the sun is described by a position in the sky, a color, " "and an easing curve. However, the sun also defines a minimum and maximum " "angle, these two values define at what distance the easing curve begins and " "ends from the sun, and thus end up defining the size of the sun in the sky.\n" "The ProceduralSky is updated on the CPU after the parameters change. It is " "stored in a texture and then displayed as a background in the scene. This " "makes it relatively unsuitable for real-time updates during gameplay. " "However, with a small enough texture size, it can still be updated " "relatively frequently, as it is updated on a background thread when multi-" "threading is available." msgstr "" "ProceduralSky 提供了一种方法,通过定义太阳、天空和地面的程序性参数,以快速创" "建一个有效的背景。天空和地面非常相似,它们是由地平线上的两种颜色以及在这两种" "颜色之间插值渐变曲线来定义。同样,太阳也是由天空中的位置、颜色和平缓曲线来描" "述。同时,太阳也定义了最小和最大的角度,这两个值定义了太阳从开始和结束的距离" "的平缓曲线,进而,最终定义了天空中太阳的大小。\n" "在参数改变后,ProceduralSky 会在 CPU 上更新。它被存储在一个纹理中,然后在场景" "中作为背景显示。这使得它相对来说,不适合在游戏进行过程中实时更新。但,如果纹" "理尺寸足够小,它仍然可以相对频繁地更新,因为当多线程可用时,它是在后台线程" "上。" #: doc/classes/ProceduralSky.xml msgid "Color of the ground at the bottom." msgstr "地面底部的颜色。" #: doc/classes/ProceduralSky.xml msgid "" "How quickly the [member ground_horizon_color] fades into the [member " "ground_bottom_color]." msgstr "" "从 [member ground_horizon_color] 渐变到 [member ground_bottom_color] 的速度。" #: doc/classes/ProceduralSky.xml msgid "Amount of energy contribution from the ground." msgstr "来自地面的能量贡献量。" #: doc/classes/ProceduralSky.xml msgid "Color of the ground at the horizon." msgstr "地面在地平线上的颜色。" #: doc/classes/ProceduralSky.xml msgid "" "How quickly the [member sky_horizon_color] fades into the [member " "sky_top_color]." msgstr "从 [member sky_horizon_color] 渐变到 [member sky_top_color] 的速度。" #: doc/classes/ProceduralSky.xml msgid "Amount of energy contribution from the sky." msgstr "来自天空的能量贡献量。" #: doc/classes/ProceduralSky.xml msgid "Color of the sky at the horizon." msgstr "天空在地平线上的颜色。" #: doc/classes/ProceduralSky.xml msgid "Color of the sky at the top." msgstr "天空顶部的颜色。" #: doc/classes/ProceduralSky.xml msgid "Distance from center of sun where it fades out completely." msgstr "太阳完全淡出消失的位置与太阳中心的距离。" #: doc/classes/ProceduralSky.xml msgid "Distance from sun where it goes from solid to starting to fade." msgstr "太阳开始从实心淡出的距离。" #: doc/classes/ProceduralSky.xml msgid "The sun's color." msgstr "太阳的颜色。" #: doc/classes/ProceduralSky.xml msgid "" "How quickly the sun fades away between [member sun_angle_min] and [member " "sun_angle_max]." msgstr "" "太阳在 [member sun_angle_min] 和 [member sun_angle_max] 之间淡出消失的速度。" #: doc/classes/ProceduralSky.xml msgid "Amount of energy contribution from the sun." msgstr "来自太阳的能量贡献量。" #: doc/classes/ProceduralSky.xml msgid "The sun's height using polar coordinates." msgstr "太阳的极坐标高度。" #: doc/classes/ProceduralSky.xml msgid "The direction of the sun using polar coordinates." msgstr "太阳的极坐标方向。" #: doc/classes/ProceduralSky.xml msgid "" "Size of [Texture] that the ProceduralSky will generate. The size is set " "using [enum TextureSize]." msgstr "" "ProceduralSky 将生成的 [Texture] 的大小。该大小是用 [enum TextureSize] 来设置" "的。" #: doc/classes/ProceduralSky.xml msgid "Sky texture will be 256x128." msgstr "天空纹理将为 256x128。" #: doc/classes/ProceduralSky.xml msgid "Sky texture will be 512x256." msgstr "天空纹理将为 512x256。" #: doc/classes/ProceduralSky.xml msgid "Sky texture will be 1024x512. This is the default size." msgstr "天空纹理将为 1024x512。这是默认大小。" #: doc/classes/ProceduralSky.xml msgid "Sky texture will be 2048x1024." msgstr "天空纹理将为 2048x1024。" #: doc/classes/ProceduralSky.xml msgid "Sky texture will be 4096x2048." msgstr "天空纹理将为 4096x2048。" #: doc/classes/ProceduralSky.xml msgid "Represents the size of the [enum TextureSize] enum." msgstr "代表 [enum TextureSize] 枚举的大小。" #: doc/classes/ProgressBar.xml msgid "General-purpose progress bar." msgstr "通用进度条。" #: doc/classes/ProgressBar.xml msgid "General-purpose progress bar. Shows fill percentage from right to left." msgstr "通用进度条。从右向左显示百分比。" #: doc/classes/ProgressBar.xml msgid "If [code]true[/code], the fill percentage is displayed on the bar." msgstr "为 [code]true[/code] 时,将在进度条上显示百分比。" #: doc/classes/ProgressBar.xml msgid "The color of the text." msgstr "文本的颜色。" #: doc/classes/ProgressBar.xml msgid "The color of the text's shadow." msgstr "文本阴影的颜色。" #: doc/classes/ProgressBar.xml msgid "" "Font used to draw the fill percentage if [member percent_visible] is " "[code]true[/code]." msgstr "" "[member percent_visible] 为 [code]true[/code] 时,用于绘制填充百分比的字体。" #: doc/classes/ProgressBar.xml msgid "The style of the background." msgstr "背景的样式。" #: doc/classes/ProgressBar.xml msgid "The style of the progress (i.e. the part that fills the bar)." msgstr "进度的样式(即填充进度条的部分)。" #: doc/classes/ProjectSettings.xml msgid "Contains global variables accessible from everywhere." msgstr "包含全局变量,可以从任何地方访问。" #: doc/classes/ProjectSettings.xml msgid "" "Contains global variables accessible from everywhere. Use [method " "get_setting], [method set_setting] or [method has_setting] to access them. " "Variables stored in [code]project.godot[/code] are also loaded into " "ProjectSettings, making this object very useful for reading custom game " "configuration options.\n" "When naming a Project Settings property, use the full path to the setting " "including the category. For example, [code]\"application/config/name\"[/" "code] for the project name. Category and property names can be viewed in the " "Project Settings dialog.\n" "[b]Feature tags:[/b] Project settings can be overridden for specific " "platforms and configurations (debug, release, ...) using [url=$DOCS_URL/" "tutorials/export/feature_tags.html]feature tags[/url].\n" "[b]Overriding:[/b] Any project setting can be overridden by creating a file " "named [code]override.cfg[/code] in the project's root directory. This can " "also be used in exported projects by placing this file in the same directory " "as the project binary. Overriding will still take the base project " "settings' [url=$DOCS_URL/tutorials/export/feature_tags.html]feature tags[/" "url] in account. Therefore, make sure to [i]also[/i] override the setting " "with the desired feature tags if you want them to override base project " "settings on all platforms and configurations." msgstr "" "包含全局变量,可以从任何地方访问。使用 [method get_setting]、[method " "set_setting]、[method has_setting] 访问。存储在 [code]project.godot[/code] 中" "的变量也会被加载到 ProjectSettings 中,因此这个对象在读取自定义游戏配置选项时" "非常有用。\n" "指定“项目设置”的属性时,请使用设置的完整路径,包括类别。例如项目名称应使用 " "[code]\"application/config/name\"[/code]。类别和属性名称可以在“项目设置”对话" "框中查看。\n" "[b]特性标签:[/b]可以使用[url=$DOCS_URL/tutorials/export/feature_tags.html]特" "性标签[/url]来针对特定的平台和配置(调试、发布……)做项目设置的覆盖。\n" "[b]覆盖:[/b]在项目的根目录下创建名为 [code]override.cfg[/code] 的文件,就可" "以对任意项目设置进行覆盖。对于已导出的项目,把这个文件放在与项目二进制文件相" "同的目录下,也可以达到覆盖的目的。覆盖时仍会考虑基础项目设置的[url=$DOCS_URL/" "tutorials/export/feature_tags.html]特性标签[/url]。因此,如果你想让它们在所有" "平台和配置上覆盖基础项目设置,请确保[i]也用[/i]所需的特性标签覆盖该设置。" #: doc/classes/ProjectSettings.xml msgid "" "Adds a custom property info to a property. The dictionary must contain:\n" "- [code]name[/code]: [String] (the property's name)\n" "- [code]type[/code]: [int] (see [enum Variant.Type])\n" "- optionally [code]hint[/code]: [int] (see [enum PropertyHint]) and " "[code]hint_string[/code]: [String]\n" "[b]Example:[/b]\n" "[codeblock]\n" "ProjectSettings.set(\"category/property_name\", 0)\n" "\n" "var property_info = {\n" " \"name\": \"category/property_name\",\n" " \"type\": TYPE_INT,\n" " \"hint\": PROPERTY_HINT_ENUM,\n" " \"hint_string\": \"one,two,three\"\n" "}\n" "\n" "ProjectSettings.add_property_info(property_info)\n" "[/codeblock]" msgstr "" "向属性添加自定义属性信息。字典必须包含:\n" "-[code]name[/code]:[String](属性的名称)\n" "-[code]type[/code]:[int](请参阅 [enum Variant.Type])\n" "-可选的 [code]hint[/code]:[int](请参阅 [enum PropertyHint])和 " "[code]hint_string[/code]: [String]\n" "[b]示例:[/b]\n" "[codeblock]\n" "ProjectSettings.set(\"category/property_name\", 0)\n" "\n" "var property_info = {\n" " \"name\": \"category/property_name\",\n" " \"type\": TYPE_INT,\n" " \"hint\": PROPERTY_HINT_ENUM,\n" " \"hint_string\": \"one,two,three\"\n" "}\n" "\n" "ProjectSettings.add_property_info(property_info)\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "Clears the whole configuration (not recommended, may break things)." msgstr "清除整个配置(不推荐,可能会弄坏东西)。" #: doc/classes/ProjectSettings.xml msgid "" "Returns the order of a configuration value (influences when saved to the " "config file)." msgstr "返回配置值的顺序(保存到配置文件时会产生影响)。" #: doc/classes/ProjectSettings.xml msgid "" "Returns the value of a setting.\n" "[b]Example:[/b]\n" "[codeblock]\n" "print(ProjectSettings.get_setting(\"application/config/name\"))\n" "[/codeblock]" msgstr "" "返回设置的值。\n" "[b]示例:[/b]\n" "[codeblock]\n" "print(ProjectSettings.get_setting(\"application/config/name\"))\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "" "Returns the absolute, native OS path corresponding to the localized " "[code]path[/code] (starting with [code]res://[/code] or [code]user://[/" "code]). The returned path will vary depending on the operating system and " "user preferences. See [url=$DOCS_URL/tutorials/io/data_paths.html]File paths " "in Godot projects[/url] to see what those paths convert to. See also [method " "localize_path].\n" "[b]Note:[/b] [method globalize_path] with [code]res://[/code] will not work " "in an exported project. Instead, prepend the executable's base directory to " "the path when running from an exported project:\n" "[codeblock]\n" "var path = \"\"\n" "if OS.has_feature(\"editor\"):\n" " # Running from an editor binary.\n" " # `path` will contain the absolute path to `hello.txt` located in the " "project root.\n" " path = ProjectSettings.globalize_path(\"res://hello.txt\")\n" "else:\n" " # Running from an exported project.\n" " # `path` will contain the absolute path to `hello.txt` next to the " "executable.\n" " # This is *not* identical to using `ProjectSettings.globalize_path()` " "with a `res://` path,\n" " # but is close enough in spirit.\n" " path = OS.get_executable_path().get_base_dir().plus_file(\"hello.txt\")\n" "[/codeblock]" msgstr "" "返回与本地化 [code]path[/code](以 [code]res://[/code] 或 [code]user://[/" "code] 开头)相对应的绝对原生 OS 路径。返回的路径将因操作系统和用户首选项而" "异。这些路径会转换为什么请参阅[url=$DOCS_URL/tutorials/io/data_paths.html]" "《Godot 项目中的文件路径》[/url]。另请参阅 [method localize_path]。\n" "[b]注意:[/b]对 [code]res://[/code] 调用 [method globalize_path] 在导出的项目" "中不会起作用。当从导出的项目运行时,请将可执行文件的基目录添加到路径中:\n" "[codeblock]\n" "var path = \"\"\n" "if OS.has_feature(\"editor\"):\n" " # 从编辑器二进制文件运行。\n" " # `path` 将包含位于项目根目录中的 `hello.txt` 的绝对路径。\n" " path = ProjectSettings.globalize_path(\"res://hello.txt\")\n" "else:\n" " # 从导出的项目运行。\n" " # `path` 将包含可执行文件旁边的 `hello.txt` 的绝对路径。\n" " # 这与使用 `ProjectSettings.globalize_path()` 和 `res://` 路径*不*相" "同,\n" " # 但在目的上足够接近。\n" " path = OS.get_executable_path().get_base_dir().plus_file(\"hello.txt\")\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "Returns [code]true[/code] if a configuration value is present." msgstr "配置值存在时返回 [code]true[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "Loads the contents of the .pck or .zip file specified by [code]pack[/code] " "into the resource filesystem ([code]res://[/code]). Returns [code]true[/" "code] on success.\n" "[b]Note:[/b] If a file from [code]pack[/code] shares the same path as a file " "already in the resource filesystem, any attempts to load that file will use " "the file from [code]pack[/code] unless [code]replace_files[/code] is set to " "[code]false[/code].\n" "[b]Note:[/b] The optional [code]offset[/code] parameter can be used to " "specify the offset in bytes to the start of the resource pack. This is only " "supported for .pck files." msgstr "" "将 [code]pack[/code] 指定的 .pck 或 .zip 文件的内容加载到资源文件系统" "([code]res://[/code])。成功时返回 [code]true[/code]。\n" "[b]注意:[/b]如果 [code]pack[/code] 中的文件与已经在资源文件系统中的文件路径" "相同,尝试加载该文件时,将使用 [code]pack[/code] 中的文件,除非 " "[code]replace_files[/code] 被设置为 [code]false[/code]。\n" "[b]注意:[/b]可选的 [code]offset[/code] 参数,可以用来指定资源包开始的字节偏" "移量。这只支持 .pck 文件。" #: doc/classes/ProjectSettings.xml msgid "" "Returns the localized path (starting with [code]res://[/code]) corresponding " "to the absolute, native OS [code]path[/code]. See also [method " "globalize_path]." msgstr "" "返回对应于绝对原生 OS [code]path[/code] 的本地化路径(以 [code]res://[/code] " "开头)。另见[method globalize_path]。" #: doc/classes/ProjectSettings.xml msgid "" "Returns [code]true[/code] if the specified property exists and its initial " "value differs from the current value." msgstr "" "如果指定的属性存在,并且其初始值与当前值不同,则返回 [code]true[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "Returns the specified property's initial value. Returns [code]null[/code] if " "the property does not exist." msgstr "返回指定属性的初始值。如果属性不存在,则返回 [code]null[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "Saves the configuration to the [code]project.godot[/code] file.\n" "[b]Note:[/b] This method is intended to be used by editor plugins, as " "modified [ProjectSettings] can't be loaded back in the running app. If you " "want to change project settings in exported projects, use [method " "save_custom] to save [code]override.cfg[/code] file." msgstr "" "将配置保存到 [code]project.godot[/code] 文件中。\n" "[b]注意:[/b]此方法是为编辑器插件使用的,因为修改后的 [ProjectSettings] 无法" "在运行的应用程序中加载回来。如果要更改导出项目中的项目设置,请使用 [method " "save_custom] 保存 [code]override.cfg[/code] 文件。" #: doc/classes/ProjectSettings.xml msgid "" "Saves the configuration to a custom file. The file extension must be [code]." "godot[/code] (to save in text-based [ConfigFile] format) or [code].binary[/" "code] (to save in binary format). You can also save [code]override.cfg[/" "code] file, which is also text, but can be used in exported projects unlike " "other formats." msgstr "" "将配置保存到自定义文件。文件扩展名必须是 [code].godot[/code](以基于文本的 " "[ConfigFile] 格式保存)或 [code].binary[/code](以二进制格式保存)。你也可以" "保存为 [code]override.cfg[/code] 文件,它也是文本,但与其他格式不同,可以在导" "出的项目中使用。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the specified property's initial value. This is the value the property " "reverts to." msgstr "设置指定属性的初始值。这是属性恢复到的值。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the order of a configuration value (influences when saved to the config " "file)." msgstr "设置配置值的顺序(保存到配置文件时会产生影响)。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the value of a setting.\n" "[b]Example:[/b]\n" "[codeblock]\n" "ProjectSettings.set_setting(\"application/config/name\", \"Example\")\n" "[/codeblock]\n" "This can also be used to erase custom project settings. To do this change " "the setting value to [code]null[/code]." msgstr "" "设置给定配置项的值。\n" "[b]示例:[/b]\n" "[codeblock]\n" "ProjectSettings.set_setting(\"application/config/name\", \"Example\")\n" "[/codeblock]\n" "也可以用于清除自定义项目设置。可通过将值修改为 [code]null[/code] 实现。" #: doc/classes/ProjectSettings.xml msgid "" "Comma-separated list of custom Android modules (which must have been built " "in the Android export templates) using their Java package path, e.g. " "[code]\"org/godotengine/godot/MyCustomSingleton,com/example/foo/" "FrenchFriesFactory\"[/code].\n" "[b]Note:[/b] Since Godot 3.2.2, the [code]org/godotengine/godot/" "GodotPaymentV3[/code] module was deprecated and replaced by the " "[code]GodotPayment[/code] plugin which should be enabled in the Android " "export preset under [code]Plugins[/code] section. The singleton to access in " "code was also renamed to [code]GodotPayment[/code]." msgstr "" "逗号分隔的自定义 Android 模块列表(必须已在 Android 导出模板中构建)使用其 " "Java 包路径,例如 [code]\"org/godotengine/godot/MyCustomSingleton,com/" "example/foo/FrenchFriesFactory\"[/code]。\n" "[b]注意:[/b]自 Godot 3.2.2 起,[code]org/godotengine/godot/GodotPaymentV3[/" "code] 模块被弃用,取而代之的是 [code]GodotPayment[/code] 插件,该插件应在 " "Android 中启用在 [code]Plugins[/code] 部分下导出预设。在代码中访问的单例也被" "重命名为 [code]GodotPayment[/code]。" #: doc/classes/ProjectSettings.xml msgid "Background color for the boot splash." msgstr "启动界面的背景色。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], scale the boot splash image to the full window size " "(preserving the aspect ratio) when the engine starts. If [code]false[/code], " "the engine will leave it at the default pixel size." msgstr "" "如果为 [code]true[/code],引擎启动时会将启动图片缩放到整个窗口的大小(保持长" "宽比)。如果为 [code]false[/code],引擎将保持其默认像素大小。" #: doc/classes/ProjectSettings.xml msgid "" "Path to an image used as the boot splash. If left empty, the default Godot " "Engine splash will be displayed instead.\n" "[b]Note:[/b] Only effective if [member application/boot_splash/show_image] " "is [code]true[/code]." msgstr "" "用作启动画面的图片的路径。留空时将使用默认的 Godot 引擎启动画面。\n" "[b]注意:[/b]仅在 [member application/boot_splash/show_image] 为 [code]true[/" "code] 时有效。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], displays the image specified in [member application/" "boot_splash/image] when the engine starts. If [code]false[/code], only " "displays the plain color specified in [member application/boot_splash/" "bg_color]." msgstr "" "为 [code]true[/code] 时,将在引擎启动时显示 [member application/boot_splash/" "image] 所指定的图片。为 [code]false[/code] 时,仅显示 [member application/" "boot_splash/bg_color] 所指定的纯色。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], applies linear filtering when scaling the image " "(recommended for high-resolution artwork). If [code]false[/code], uses " "nearest-neighbor interpolation (recommended for pixel art)." msgstr "" "如果为 [code]true[/code],缩放图像时会应用线性过滤(推荐用于高分辨率图稿)。" "如果为 [code]false[/code],则使用最近邻插值(推荐用于像素画)。" #: doc/classes/ProjectSettings.xml msgid "" "This user directory is used for storing persistent data ([code]user://[/" "code] filesystem). If left empty, [code]user://[/code] resolves to a project-" "specific folder in Godot's own configuration folder (see [method OS." "get_user_data_dir]). If a custom directory name is defined, this name will " "be used instead and appended to the system-specific user data directory " "(same parent folder as the Godot configuration folder documented in [method " "OS.get_user_data_dir]).\n" "The [member application/config/use_custom_user_dir] setting must be enabled " "for this to take effect." msgstr "" "该用户目录用于存储持久数据([code]user://[/code]文件系统)。如果留空," "[code]user://[/code]将解析为Godot自己的配置文件夹中特定于项目的文件夹(请参阅" "[method OS.get_user_data_dir])。如果定义了自定义目录名,将使用该名称并将其附" "加到系统特定的用户数据目录(与[method OS.get_user_data_dir]中记录的Godot配置文" "件夹相同的父文件夹)。\n" "必须启用 [member application/config/use_custom_user_dir]设置才能使其生效。" #: doc/classes/ProjectSettings.xml msgid "" "The project's description, displayed as a tooltip in the Project Manager " "when hovering the project." msgstr "项目的描述,在项目管理器中悬停时显示为工具提示。" #: doc/classes/ProjectSettings.xml msgid "" "Icon used for the project, set when project loads. Exporters will also use " "this icon when possible." msgstr "项目所使用的图标,在项目加载时设置。导出时也将尽可能使用此图标。" #: doc/classes/ProjectSettings.xml msgid "" "Icon set in [code].icns[/code] format used on macOS to set the game's icon. " "This is done automatically on start by calling [method OS.set_native_icon]." msgstr "" "在macOS上使用的[code].icns[/code]格式的图标集,用于设置游戏的图标。这在启动时" "通过调用[method OS.set_native_icon]自动完成。" #: doc/classes/ProjectSettings.xml msgid "" "The project's name. It is used both by the Project Manager and by exporters. " "The project name can be translated by translating its value in localization " "files. The window title will be set to match the project name automatically " "on startup.\n" "[b]Note:[/b] Changing this value will also change the user data folder's " "path if [member application/config/use_custom_user_dir] is [code]false[/" "code]. After renaming the project, you will no longer be able to access " "existing data in [code]user://[/code] unless you rename the old folder to " "match the new project name. See [url=$DOCS_URL/tutorials/io/data_paths." "html]Data paths[/url] in the documentation for more information." msgstr "" "项目名称。会在项目管理器和导出器中使用。可以通过翻译本地化文件中的值来翻译项" "目名称。窗口标题将设置为在启动时自动匹配项目名称。\n" "[b]注意:[/b]如果 [member application/config/use_custom_user_dir] 为 " "[code]false[/code],更改此值也会更改用户数据文件夹的路径。重命名项目后,您将" "无法再访问 [code]user://[/code] 中的现有数据,除非您重命名旧文件夹以匹配新项" "目名称。有关更多信息,请参阅文档中的 [url=$DOCS_URL/tutorials/io/data_paths." "html]《数据路径》[/url]。" #: doc/classes/ProjectSettings.xml msgid "" "Specifies a file to override project settings. For example: [code]user://" "custom_settings.cfg[/code]. See \"Overriding\" in the [ProjectSettings] " "class description at the top for more information.\n" "[b]Note:[/b] Regardless of this setting's value, [code]res://override.cfg[/" "code] will still be read to override the project settings." msgstr "" "指定一个文件来覆盖项目设置。比如说。[code]user://custom_settings.cfg[/code]。" "参见 [ProjectSettings] 顶部类描述中的“Overriding”以获取更多信息。\n" "[b]注意:[/b]不管这个设置的值如何,[code]res://override.cfg[/code] 仍然会被读" "取来覆盖项目设置。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the project will save user data to its own user " "directory (see [member application/config/custom_user_dir_name]). This " "setting is only effective on desktop platforms. A name must be set in the " "[member application/config/custom_user_dir_name] setting for this to take " "effect. If [code]false[/code], the project will save user data to [code](OS " "user data directory)/Godot/app_userdata/(project name)[/code]." msgstr "" "如果[code]true[/code],项目将把用户数据保存到自己的用户目录中(请参阅[member " "application/config/custom_user_dir_name])。此设置仅在桌面平台上有效。必须在" "[member application/config/custom_user_dir_name]设置中设置名称才能生效。如果" "[code]false[/code],项目将把用户数据保存到[code](OS user data directory)/" "Godot/app_userdata/(project name)[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the project will use a hidden directory ([code]." "import[/code]) for storing project-specific data (metadata, shader cache, " "etc.).\n" "If [code]false[/code], a non-hidden directory ([code]import[/code]) will be " "used instead.\n" "[b]Note:[/b] Restart the application after changing this setting.\n" "[b]Note:[/b] Changing this value can help on platforms or with third-party " "tools where hidden directory patterns are disallowed. Only modify this " "setting if you know that your environment requires it, as changing the " "default can impact compatibility with some external tools or plugins which " "expect the default [code].import[/code] folder." msgstr "" "如果 [code]true[/code],项目将使用一个隐藏目录([code].import[/code])来存储" "项目特定的数据(元数据、着色器缓存等)。\n" "如果 [code]false[/code],将使用非隐藏目录 ([code]import[/code])。\n" "[b]注意:[/b]更改此设置后重新启动应用程序。\n" "[b]注意:[/b]更改此值有助于在平台上或使用不允许隐藏目录模式的第三方工具。仅当" "您知道您的环境需要时才修改此设置,因为更改默认设置会影响与某些需要默认 " "[code].import[/code] 文件夹的外部工具或插件的兼容性。" #: doc/classes/ProjectSettings.xml msgid "" "Icon set in [code].ico[/code] format used on Windows to set the game's icon. " "This is done automatically on start by calling [method OS.set_native_icon]." msgstr "" "以[code].ico[/code]格式设置的图标,在Windows上用于设置游戏的图标。这在启动时" "通过调用[method OS.set_native_icon]自动完成。" #: doc/classes/ProjectSettings.xml msgid "" "Time samples for frame deltas are subject to random variation introduced by " "the platform, even when frames are displayed at regular intervals thanks to " "V-Sync. This can lead to jitter. Delta smoothing can often give a better " "result by filtering the input deltas to correct for minor fluctuations from " "the refresh rate.\n" "[b]Note:[/b] Delta smoothing is only attempted when [member display/window/" "vsync/use_vsync] is switched on, as it does not work well without V-Sync.\n" "It may take several seconds at a stable frame rate before the smoothing is " "initially activated. It will only be active on machines where performance is " "adequate to render frames at the refresh rate." msgstr "" "帧增量的时间样本会受到平台引入的随机变化的影响,即使由于 V-Sync 以固定间隔显" "示帧也是如此。这会导致抖动。通过过滤输入增量以校正刷新率的微小波动,增量平滑" "通常可以提供更好的结果。\n" "[b]注意:[/b]Delta 平滑仅在 [member display/window/vsync/use_vsync] 开启时尝" "试,因为它在没有 V-Sync 的情况下无法正常工作。\n" "在最初激活平滑之前,以稳定的帧速率可能需要几秒钟的时间。它只会在性能足以以刷" "新率渲染帧的机器上激活。" #: doc/classes/ProjectSettings.xml msgid "" "[b]Experimental.[/b] Shifts the measurement of delta time for each frame to " "just after the drawing has taken place. This may lead to more consistent " "deltas and a reduction in frame stutters." msgstr "" "[b]实验性的。[/b] 将每一帧的delta时间的测量转移到绘图发生之后。这可能会导致更" "一致的延迟和减少帧的停顿。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], disables printing to standard error. If [code]true[/" "code], this also hides error and warning messages printed by [method " "@GDScript.push_error] and [method @GDScript.push_warning]. See also [member " "application/run/disable_stdout].\n" "Changes to this setting will only be applied upon restarting the application." msgstr "" "如果 [code]true[/code],则禁用打印到标准错误。如果 [code]true[/code],这也会" "隐藏由 [method @GDScript.push_error] 和 [method @GDScript.push_warning] 打印" "的错误和警告消息。另见[member application/run/disable_stdout]。\n" "对此设置的更改只会在重新启动应用程序时应用。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], disables printing to standard output. This is " "equivalent to starting the editor or project with the [code]--quiet[/code] " "command line argument. See also [member application/run/disable_stderr].\n" "Changes to this setting will only be applied upon restarting the application." msgstr "" "如果 [code]true[/code],则禁用打印到标准输出。这相当于使用 [code]--quiet[/" "code] 命令行参数启动编辑器或项目。另见[member application/run/" "disable_stderr]。\n" "对此设置的更改只会在重新启动应用程序时应用。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], flushes the standard output stream every time a line " "is printed. This affects both terminal logging and file logging.\n" "When running a project, this setting must be enabled if you want logs to be " "collected by service managers such as systemd/journalctl. This setting is " "disabled by default on release builds, since flushing on every printed line " "will negatively affect performance if lots of lines are printed in a rapid " "succession. Also, if this setting is enabled, logged files will still be " "written successfully if the application crashes or is otherwise killed by " "the user (without being closed \"normally\").\n" "[b]Note:[/b] Regardless of this setting, the standard error stream " "([code]stderr[/code]) is always flushed when a line is printed to it.\n" "Changes to this setting will only be applied upon restarting the application." msgstr "" "如果 [code]true[/code],则每次打印一行时刷新标准输出流。这会影响终端日志记录" "和文件日志记录。\n" "运行项目时,如果希望由 systemd/journalctl 等服务管理器收集日志,则必须启用此" "设置。默认情况下,在发布版本中禁用此设置,因为如果快速连续打印大量行,则在每" "个打印行上刷新都会对性能产生负面影响。此外,如果启用此设置,如果应用程序崩溃" "或以其他方式被用户杀死(不会“正常”关闭),则仍会成功写入日志文件。\n" "[b]注意:[/b]无论此设置如何,标准错误流 ([code]stderr[/code]) 在打印一行时总" "是被刷新。\n" "对此设置的更改只会在重新启动应用程序时应用。" #: doc/classes/ProjectSettings.xml msgid "" "Debug build override for [member application/run/flush_stdout_on_print], as " "performance is less important during debugging.\n" "Changes to this setting will only be applied upon restarting the application." msgstr "" "调试构建覆盖[member application/run/flush_stdout_on_print],因为在调试过程中" "性能不那么重要。\n" "仅在重新启动应用程序时才会应用此设置的更改。" #: doc/classes/ProjectSettings.xml msgid "" "Forces a delay between frames in the main loop (in milliseconds). This may " "be useful if you plan to disable vertical synchronization." msgstr "" "强制主循环中帧之间的延迟(以毫秒为单位)。如果您计划禁用垂直同步,这可能很有" "用。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables low-processor usage mode. This setting only " "works on desktop platforms. The screen is not redrawn if nothing changes " "visually. This is meant for writing applications and editors, but is pretty " "useless (and can hurt performance) in most games." msgstr "" "如果 [code]true[/code],则启用低处理器使用模式。此设置仅适用于桌面平台。如果" "视觉上没有任何变化,屏幕不会被重绘。这是为了编写应用程序和编辑器,但在大多数" "游戏中这是非常无用的(并可能损害性能)。" #: doc/classes/ProjectSettings.xml msgid "" "Amount of sleeping between frames when the low-processor usage mode is " "enabled (in microseconds). Higher values will result in lower CPU usage." msgstr "启用低处理器使用模式时帧间的睡眠量(以微秒计)。值越高,CPU占用率越低。" #: doc/classes/ProjectSettings.xml msgid "Path to the main scene file that will be loaded when the project runs." msgstr "项目运行时将加载的主场景文件的路径。" #: doc/classes/ProjectSettings.xml msgid "" "Audio buses will disable automatically when sound goes below a given dB " "threshold for a given time. This saves CPU as effects assigned to that bus " "will no longer do any processing." msgstr "" "当声音在给定的时间内低于给定的 dB 阈值时,音频总线将自动关闭。这可以节省 " "CPU,因为分配给该总线的效果将不再做任何处理。" #: doc/classes/ProjectSettings.xml msgid "" "Default [AudioBusLayout] resource file to use in the project, unless " "overridden by the scene." msgstr "项目中使用的默认 [AudioBusLayout] 资源文件,除非被场景覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "Specifies the audio driver to use. This setting is platform-dependent as " "each platform supports different audio drivers. If left empty, the default " "audio driver will be used." msgstr "" "指定要使用的音频驱动程序。此设置取决于平台,因为每个平台支持不同的音频驱动程" "序。如果留空,将使用默认音频驱动程序。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], microphone input will be allowed. This requires " "appropriate permissions to be set when exporting to Android or iOS." msgstr "" "如果为 [code]true[/code],将允许麦克风输入。导出到 Android 或 iOS 时须设置适" "当的权限。" #: doc/classes/ProjectSettings.xml msgid "" "The mixing rate used for audio (in Hz). In general, it's better to not touch " "this and leave it to the host operating system." msgstr "" "用于音频的混合率(单位:Hz)。一般来说,最好不要碰这个,把它留给主机操作系" "统。" #: doc/classes/ProjectSettings.xml msgid "" "Safer override for [member audio/mix_rate] in the Web platform. Here " "[code]0[/code] means \"let the browser choose\" (since some browsers do not " "like forcing the mix rate)." msgstr "" "更安全地覆盖 Web 平台中的 [member audio/mix_rate]。这里 [code]0[/code] 的意思" "是“让浏览器选择”(因为有些浏览器不喜欢强制混音率)。" #: doc/classes/ProjectSettings.xml msgid "" "Specifies the preferred output latency in milliseconds for audio. Lower " "values will result in lower audio latency at the cost of increased CPU " "usage. Low values may result in audible cracking on slower hardware.\n" "Audio output latency may be constrained by the host operating system and " "audio hardware drivers. If the host can not provide the specified audio " "output latency then Godot will attempt to use the nearest latency allowed by " "the host. As such you should always use [method AudioServer." "get_output_latency] to determine the actual audio output latency.\n" "[b]Note:[/b] This setting is ignored on Windows." msgstr "" "指定偏好的音频输出延迟,单位为毫秒。值越低,音频延迟越小,代价是 CPU 占用率会" "更高。在较慢的硬件上,使用较低的值可能产生爆裂声。\n" "音频输出延迟可能受到宿主的操作系统和音频硬件驱动的限制。如果宿主无法提供指定" "的音频输出延迟,Godot 会尝试使用主机所允许范围内与其最接近的值。因此你应当始" "终使用 [method AudioServer.get_output_latency] 获取实际的音频输出延迟。\n" "[b]注意:[/b]此设置在 Windows 上会被忽略。" #: doc/classes/ProjectSettings.xml msgid "" "Safer override for [member audio/output_latency] in the Web platform, to " "avoid audio issues especially on mobile devices." msgstr "" "在网络平台中更安全地覆盖 [member audio/output_latency],以避免音频问题,尤其" "是在移动设备上。" #: doc/classes/ProjectSettings.xml msgid "" "Setting to hardcode audio delay when playing video. Best to leave this " "untouched unless you know what you are doing." msgstr "" "播放视频时设置为硬编码音频延迟。除非你知道自己在做什么,否则最好不要动它。" #: doc/classes/ProjectSettings.xml msgid "" "The default compression level for gzip. Affects compressed scenes and " "resources. Higher levels result in smaller files at the cost of compression " "speed. Decompression speed is mostly unaffected by the compression level. " "[code]-1[/code] uses the default gzip compression level, which is identical " "to [code]6[/code] but could change in the future due to underlying zlib " "updates." msgstr "" "gzip 的默认压缩级别。影响压缩的场景和资源。较高的级别会以压缩速度为代价导致文" "件变小。解压缩速度大多不受压缩级别的影响。[code]-1[/code] 使用默认的 gzip 压" "缩级别,该级别与 [code]6[/code] 相同,但由于底层 zlib 更新,未来可能会发生变" "化。" #: doc/classes/ProjectSettings.xml msgid "" "The default compression level for Zlib. Affects compressed scenes and " "resources. Higher levels result in smaller files at the cost of compression " "speed. Decompression speed is mostly unaffected by the compression level. " "[code]-1[/code] uses the default gzip compression level, which is identical " "to [code]6[/code] but could change in the future due to underlying zlib " "updates." msgstr "" "Zlib 的默认压缩级别。影响压缩的场景和资源。较高的级别会以压缩速度为代价导致文" "件变小。解压缩速度大多不受压缩级别的影响。[code]-1[/code] 使用默认的 gzip 压" "缩级别,该级别与 [code]6[/code] 相同,但由于底层 zlib 更新,未来可能会发生变" "化。" #: doc/classes/ProjectSettings.xml msgid "" "The default compression level for Zstandard. Affects compressed scenes and " "resources. Higher levels result in smaller files at the cost of compression " "speed. Decompression speed is mostly unaffected by the compression level." msgstr "" "Zstandard 的默认压缩级别。影响压缩的场景和资源。较高的级别会以压缩速度为代价" "导致文件变小。解压缩速度大多不受压缩级别的影响。" #: doc/classes/ProjectSettings.xml msgid "" "Enables [url=https://github.com/facebook/zstd/releases/tag/v1.3.2]long-" "distance matching[/url] in Zstandard." msgstr "" "在 Zstandard 中启用[url=https://github.com/facebook/zstd/releases/tag/v1.3.2]" "长距离匹配[/url] 。" #: doc/classes/ProjectSettings.xml msgid "" "Largest size limit (in power of 2) allowed when compressing using long-" "distance matching with Zstandard. Higher values can result in better " "compression, but will require more memory when compressing and decompressing." msgstr "" "使用 Zstandard 的长距离匹配进行压缩时,允许的最大大小限制(2 的幂)。更高的值" "可以产生更好的压缩,但是在压缩和解压缩时需要更多的内存。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], displays getters and setters in autocompletion results " "in the script editor. This setting is meant to be used when porting old " "projects (Godot 2), as using member variables is the preferred style from " "Godot 3 onwards." msgstr "" "如果为 [code]true[/code],则在脚本编辑器的自动完成结果中显示 Getter 和 " "Setter。这个设置是为了在移植旧项目(Godot 2)时使用,因为使用成员变量是从 " "Godot 3 开始的首选风格。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a constant is used as a function." msgstr "如果为 [code]true[/code],则当常量用作函数时会发出警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when deprecated keywords such as " "[code]slave[/code] are used." msgstr "" "如果为 [code]true[/code],当使用已废弃的 [code]slave[/code] 等关键字时,将启" "用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables specific GDScript warnings (see [code]debug/" "gdscript/warnings/*[/code] settings). If [code]false[/code], disables all " "GDScript warnings." msgstr "" "如果为 [code]true[/code],则启用特定的 GDScript 警告(请参阅 [code]debug/" "gdscript/warnings/*[/code] 设置)。如果为 [code]false[/code],则禁用所有 " "GDScript 警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], scripts in the [code]res://addons[/code] folder will " "not generate warnings." msgstr "" "如果为 [code]true[/code],则 [code]res://addons[/code] 文件夹中的脚本不会生成" "警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when the type of the default value " "set to an exported variable is different than the specified export type." msgstr "" "如果为 [code]true[/code],则启用导出变量的默认值类型与其导出类型不一致时的警" "告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a function is declared with the " "same name as a constant." msgstr "如果为 [code]true[/code],当函数被声明为与常量同名时,启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a function is declared with the " "same name as a variable. This will turn into an error in a future version " "when first-class functions become supported in GDScript." msgstr "" "如果为 [code]true[/code], 当一个函数与一个变量同名声明时,启用警告。在未来的" "版本中,当GDScript支持第一类函数时,这将变成一个错误。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a function assigned to a " "variable may yield and return a function state instead of a value." msgstr "" "如果为 [code]true[/code],则当分配给变量的函数可能产生并返回函数状态而不是值" "时,启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when using a function as if it was a " "property." msgstr "如果[code]true[/code],则在使用函数时启用警告,就像它是属性一样。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a ternary operator may emit " "values with incompatible types." msgstr "" "如果[code]true[/code],则当三元运算符可能发出类型不兼容的值时,将启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when dividing an integer by another " "integer (the decimal part will be discarded)." msgstr "" "如果为 [code]true[/code],则在用一个整数除以另一个整数时启用警告(小数部分将" "被丢弃)。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when passing a floating-point value " "to a function that expects an integer (it will be converted and lose " "precision)." msgstr "" "如果为 [code]true[/code],则在将浮点值传递给需要整数的函数时启用警告(它将被" "转换并失去精度)。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when using a property as if it was a " "function." msgstr "如果[code]true[/code],则在将属性当作函数使用时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when calling a function without using " "its return value (by assigning it to a variable or using it as a function " "argument). Such return values are sometimes used to denote possible errors " "using the [enum Error] enum." msgstr "" "如果[code]true[/code],则在不使用函数返回值(通过将其赋值给变量或将其用作函数" "参数)调用函数时启用警告。这样的返回值有时使用[enum Error] 枚举来表示可能的错" "误。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when defining a local or subclass " "member variable that would shadow a variable at an upper level (such as a " "member variable)." msgstr "" "如果[code]true[/code],则在定义局部或子类成员变量时启用警告,该局部或子类成员" "变量将在上层阴影变量(如成员变量)。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when calling an expression that has " "no effect on the surrounding code, such as writing [code]2 + 2[/code] as a " "statement." msgstr "" "如果[code]true[/code],则在调用对周围代码没有影响的表达式时启用警告,例如将" "[code]2 + 2[/code]写成语句。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when calling a ternary expression " "that has no effect on the surrounding code, such as writing [code]42 if " "active else 0[/code] as a statement." msgstr "" "如果[code]true[/code],则在调用对周围代码没有影响的三元表达式时启用警告,例如" "将[code]42(如果激活else 0[/code])写入语句。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], all warnings will be reported as if they were errors." msgstr "如果[code]true[/code],所有警告将被报告为错误。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when using a variable that wasn't " "previously assigned." msgstr "如果[code]true[/code],则在使用以前没有赋值的变量时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when assigning a variable using an " "assignment operator like [code]+=[/code] if the variable wasn't previously " "assigned." msgstr "" "如果[code]true[/code],则在使用赋值操作符[code]+=[/code](如果变量之前没有赋" "值)为变量赋值时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when unreachable code is detected " "(such as after a [code]return[/code] statement that will always be executed)." msgstr "" "如果[code]true[/code],则在检测到不可达的代码时启用警告(例如在始终执行的" "[code]return[/code]语句之后)。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when using an expression whose type " "may not be compatible with the function parameter expected." msgstr "" "如果[code]true[/code],则在使用类型可能与期望的函数参数不兼容的表达式时启用警" "告。" #: doc/classes/ProjectSettings.xml msgid "If [code]true[/code], enables warnings when performing an unsafe cast." msgstr "如果[code]true[/code],则在执行不安全的强制转换时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when calling a method whose presence " "is not guaranteed at compile-time in the class." msgstr "" "如果[code]true[/code],则在调用类中不能保证在编译时存在的方法时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when accessing a property whose " "presence is not guaranteed at compile-time in the class." msgstr "" "如果[code]true[/code],则在访问类中不能保证在编译时存在的属性时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a function parameter is unused." msgstr "如果[code]true[/code],当一个函数参数未使用时,启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a member variable is unused." msgstr "如果[code]true[/code],当一个成员变量未使用时,启用警告。" #: doc/classes/ProjectSettings.xml msgid "If [code]true[/code], enables warnings when a signal is unused." msgstr "如果[code]true[/code],则在信号未使用时启用警告。" #: doc/classes/ProjectSettings.xml msgid "If [code]true[/code], enables warnings when a local variable is unused." msgstr "如果[code]true[/code],则在局部变量未使用时启用警告。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when a variable is declared with the " "same name as a function. This will turn into an error in a future version " "when first-class functions become supported in GDScript." msgstr "" "如果 [code]true[/code],则在声明与函数同名的变量时启用警告。当 GDScript 支持" "一流函数时,这将在未来版本中变成错误。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings when assigning the result of a " "function that returns [code]void[/code] to a variable." msgstr "" "如果[code]true[/code],则在将返回 [code]void[/code]的函数的结果赋值给变量时启" "用警告。" #: doc/classes/ProjectSettings.xml msgid "Message to be displayed before the backtrace when the engine crashes." msgstr "当引擎崩溃时,在回溯之前显示的消息。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum number of frames per second allowed. The actual number of frames per " "second may still be below this value if the game is lagging. See also " "[member physics/common/physics_fps].\n" "If [member display/window/vsync/use_vsync] is enabled, it takes precedence " "and the forced FPS number cannot exceed the monitor's refresh rate.\n" "This setting is therefore mostly relevant for lowering the maximum FPS below " "VSync, e.g. to perform non-real-time rendering of static frames, or test the " "project under lag conditions.\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the rendering FPS cap at runtime, set [member Engine.target_fps] instead." msgstr "" "允许的每秒最大帧数。如果游戏发生延迟,实际的帧率可能低于这个值。另请参阅 " "[member physics/common/physics_fps]。\n" "如果启用了 [member display/window/vsync/use_vsync],就会优先考虑它,强制的 " "FPS 值不能超过显示器的刷新率。\n" "因此,这个设置主要是降低低于 VSync 的最大 FPS,例如,对静态帧进行非实时渲染," "或者在延迟条件下测试项目。\n" "[b]注意:[/b]这个属性在项目启动时只读。要在运行时调整渲染 FPS,请设置 " "[member Engine.target_fps]。" #: doc/classes/ProjectSettings.xml msgid "Maximum call stack allowed for debugging GDScript." msgstr "调试GDScript时允许的最大调用堆栈。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables warnings which can help pinpoint where nodes " "are being incorrectly updated, which will result in incorrect interpolation " "and visual glitches.\n" "When a node is being interpolated, it is essential that the transform is set " "during [method Node._physics_process] (during a physics tick) rather than " "[method Node._process] (during a frame)." msgstr "" "为 [code]true[/code] 时,启用利于定位不正确更新的节点的警告,不正确的更新会导" "致不正确的插值和画面问题。\n" "对节点进行插值时,在 [method Node._physics_process](位于物理周期)而不是 " "[method Node._process](位于帧)中更新变换非常关键。" #: doc/classes/ProjectSettings.xml msgid "Maximum amount of functions per frame allowed when profiling." msgstr "分析时每个帧允许的最大函数数量。" #: doc/classes/ProjectSettings.xml msgid "Print frames per second to standard output every second." msgstr "每秒钟打印帧到标准输出。" #: doc/classes/ProjectSettings.xml msgid "" "Print more information to standard output when running. It displays " "information such as memory leaks, which scenes and resources are being " "loaded, etc." msgstr "" "运行时打印更多信息到标准输出。它显示诸如内存泄漏、哪些场景和资源正在加载等信" "息。" #: doc/classes/ProjectSettings.xml msgid "Maximum call stack in visual scripting, to avoid infinite recursion." msgstr "最大的可视脚本调用堆栈,以避免无限递归。" #: doc/classes/ProjectSettings.xml msgid "" "Color of the contact points between collision shapes, visible when \"Visible " "Collision Shapes\" is enabled in the Debug menu." msgstr "碰撞形状之间接触点的颜色,在调试菜单中启用“可见碰撞形状”时可见。" #: doc/classes/ProjectSettings.xml msgid "" "Sets whether 2D physics will display collision outlines in game when " "\"Visible Collision Shapes\" is enabled in the Debug menu." msgstr "" "设置当调试菜单中的启用 \"可见的碰撞形状\" 时,2D物理是否会在游戏中显示碰撞轮" "廓。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum number of contact points between collision shapes to display when " "\"Visible Collision Shapes\" is enabled in the Debug menu." msgstr "当在调试菜单中启用“可见碰撞形状”时,碰撞形状之间显示的最大接触点数。" #: doc/classes/ProjectSettings.xml msgid "" "Color of the collision shapes, visible when \"Visible Collision Shapes\" is " "enabled in the Debug menu." msgstr "碰撞形状的颜色,当在调试菜单中启用“可见碰撞形状”时可见。" #: doc/classes/ProjectSettings.xml msgid "" "Color of the disabled navigation geometry, visible when \"Visible " "Navigation\" is enabled in the Debug menu." msgstr "被禁用的导航几何图形的颜色,在调试菜单中启用“可见导航”时可见。" #: doc/classes/ProjectSettings.xml msgid "" "Color of the navigation geometry, visible when \"Visible Navigation\" is " "enabled in the Debug menu." msgstr "导航几何图形的颜色,在调试菜单中启用“可见导航”时可见。" #: doc/classes/ProjectSettings.xml msgid "Custom image for the mouse cursor (limited to 256×256)." msgstr "鼠标光标的自定义图像(最大256×256)。" #: doc/classes/ProjectSettings.xml msgid "Hotspot for the custom mouse cursor image." msgstr "自定义鼠标光标图像的热点。" #: doc/classes/ProjectSettings.xml msgid "Position offset for tooltips, relative to the mouse cursor's hotspot." msgstr "工具提示相对于鼠标光标热点的位置偏移量。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], allows HiDPI display on Windows, macOS, and the HTML5 " "platform. This setting has no effect on desktop Linux, as DPI-awareness " "fallbacks are not supported there." msgstr "" "如果为 [code]true[/code],则允许在 Windows、macOS 和 HTML5 平台上显示 HiDPI。" "这个设置对桌面 Linux 没有影响,因为它不支持 DPI 感知回退。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], keeps the screen on (even in case of inactivity), so " "the screensaver does not take over. Works on desktop and mobile platforms." msgstr "" "如果为 [code]true[/code],则保持屏幕打开(即使在不活动的情况下),因此屏幕保" "护程序不会接管。适用于桌面和移动平台。" #: doc/classes/ProjectSettings.xml msgid "" "The default screen orientation to use on mobile devices.\n" "[b]Note:[/b] When set to a portrait orientation, this project setting does " "not flip the project resolution's width and height automatically. Instead, " "you have to set [member display/window/size/width] and [member display/" "window/size/height] accordingly." msgstr "" "在移动设备上使用的默认屏幕朝向。\n" "[b]注意:[/b]设置为竖屏(Portrait)时,此项目设置不会自动翻转项目分辨率的宽度" "和高度。相反,您必须相应地设置 [member display/window/size/width] 和 [member " "display/window/size/height]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the home indicator is hidden automatically. This only " "affects iOS devices without a physical home button." msgstr "" "如果为 [code]true[/code],主指示器将自动隐藏。这只会影响没有物理 home 键的 " "iOS 设备。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], allows per-pixel transparency for the window " "background. This affects performance, so leave it on [code]false[/code] " "unless you need it.\n" "See [member OS.window_per_pixel_transparency_enabled] for more details.\n" "[b]Note:[/b] This feature is implemented on HTML5, Linux, macOS, Windows, " "and Android." msgstr "" "如果为 [code]true[/code],则允许窗口背景的逐像素透明度。这会影响性能,因此除" "非需要,否则将其保留为 [code]false[/code]。\n" "有关更多详细信息,请参阅 [member OS." "window_per_pixel_transparency_enabled]。\n" "[b]注意:[/b]此功能在 HTML5、Linux、macOS、Windows 和 Android 上实现。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the window background to transparent when it starts.\n" "See [member OS.window_per_pixel_transparency_enabled] for more details.\n" "[b]Note:[/b] This feature is implemented on HTML5, Linux, macOS, Windows, " "and Android." msgstr "" "启动时将窗口背景设置为透明。\n" "有关更多详细信息,请参阅 [member OS." "window_per_pixel_transparency_enabled]。\n" "[b]注意:[/b]此功能在 HTML5、Linux、macOS、Windows 和 Android 上实现。" #: doc/classes/ProjectSettings.xml msgid "" "Forces the main window to be always on top.\n" "[b]Note:[/b] This setting is ignored on iOS, Android, and HTML5." msgstr "" "强制主窗口始终在顶部。\n" "[b]注意:[/b]此设置在 iOS、Android 和 HTML5 上被忽略。" #: doc/classes/ProjectSettings.xml msgid "" "Forces the main window to be borderless.\n" "[b]Note:[/b] This setting is ignored on iOS, Android, and HTML5." msgstr "" "强制主窗口无边框。\n" "[b]注意:[/b]此设置在 iOS、Android 和 HTML5 上被忽略。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the main window to full screen when the project starts. Note that this " "is not [i]exclusive[/i] fullscreen. On Windows and Linux, a borderless " "window is used to emulate fullscreen. On macOS, a new desktop is used to " "display the running project.\n" "Regardless of the platform, enabling fullscreen will change the window size " "to match the monitor's size. Therefore, make sure your project supports " "[url=$DOCS_URL/tutorials/rendering/multiple_resolutions.html]multiple " "resolutions[/url] when enabling fullscreen mode.\n" "[b]Note:[/b] This setting is ignored on iOS, Android, and HTML5." msgstr "" "项目启动时将主窗口设置为全屏。请注意,这不是[i]独占的[/i]全屏显示。在 " "Windows 和 Linux 上,无边框窗口用于模拟全屏。在 macOS 上,会创建一个新的桌面" "用于显示正在运行的项目。\n" "无论平台如何,启用全屏都会更改窗口大小以匹配显示器的大小。因此,请确保您的项" "目在启用全屏模式时支持[url=$DOCS_URL/tutorials/rendering/" "multiple_resolutions.html]多种分辨率[/url]。\n" "[b]注意:[/b]此设置在 iOS、Android 和 HTML5 上被忽略。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the game's main viewport height. On desktop platforms, this is the " "default window size. Stretch mode settings also use this as a reference when " "enabled." msgstr "" "设置游戏的主视窗高度。在桌面平台上,这是默认的窗口大小。当启用拉伸模式设置" "时,也使用此参数作为参考。" #: doc/classes/ProjectSettings.xml msgid "" "Allows the window to be resizable by default.\n" "[b]Note:[/b] This setting is ignored on iOS." msgstr "" "允许窗口默认可调整大小。\n" "[b]注意:[/b]这个设置在 iOS 上将忽略。" #: doc/classes/ProjectSettings.xml msgid "" "If greater than zero, overrides the window height when running the game. " "Useful for testing stretch modes." msgstr "如果大于 0,则在运行游戏时覆盖窗口高度。用于测试拉伸模式。" #: doc/classes/ProjectSettings.xml msgid "" "If greater than zero, overrides the window width when running the game. " "Useful for testing stretch modes." msgstr "如果大于 0,则在运行游戏时覆盖窗口宽度。用于测试拉伸模式。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the game's main viewport width. On desktop platforms, this is the " "default window size. Stretch mode settings also use this as a reference when " "enabled." msgstr "" "设置游戏的主视窗宽度。在桌面平台上,这是默认的窗口大小。当启用拉伸模式设置" "时,也使用此参数作为参考。" #: doc/classes/ProjectSettings.xml msgid "" "Specifies the tablet driver to use. If left empty, the default driver will " "be used." msgstr "指定要使用的数位板驱动程序。如果为空,将使用默认驱动程序。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables vertical synchronization. This eliminates " "tearing that may appear in moving scenes, at the cost of higher input " "latency and stuttering at lower framerates. If [code]false[/code], vertical " "synchronization will be disabled, however, many platforms will enforce it " "regardless (such as mobile platforms and HTML5)." msgstr "" "如果为 [code]true[/code],则启用垂直同步。这消除了在移动场景中可能出现的撕" "裂,以较高的输入延迟和较低的帧率为代价。如果为 [code]false[/code],垂直同步将" "被禁用,然而,许多平台仍将执行它(如移动平台和 HTML5)。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]Use Vsync[/code] is enabled and this setting is [code]true[/code], " "enables vertical synchronization via the operating system's window " "compositor when in windowed mode and the compositor is enabled. This will " "prevent stutter in certain situations. (Windows only.)\n" "[b]Note:[/b] This option is experimental and meant to alleviate stutter " "experienced by some users. However, some users have experienced a Vsync " "framerate halving (e.g. from 60 FPS to 30 FPS) when using it." msgstr "" "如果[code]使用垂直同步[/code]已启用,且这个设置为 [code]true[/code],则在窗口" "模式下且启用了合成器时,会通过操作系统的窗口合成器启用垂直同步。这将防止在某" "些情况下卡顿。(仅限 Windows)。\n" "[b]注意:[/b]这个选项是实验性的,旨在缓解一些用户的卡顿体验。然而,有些用户在" "使用它时体验到垂直同步帧率减半(例如从 60 FPS 降至 30 FPS)。" #: doc/classes/ProjectSettings.xml msgid "" "The command-line arguments to append to Godot's own command line when " "running the project. This doesn't affect the editor itself.\n" "It is possible to make another executable run Godot by using the " "[code]%command%[/code] placeholder. The placeholder will be replaced with " "Godot's own command line. Program-specific arguments should be placed " "[i]before[/i] the placeholder, whereas Godot-specific arguments should be " "placed [i]after[/i] the placeholder.\n" "For example, this can be used to force the project to run on the dedicated " "GPU in a NVIDIA Optimus system on Linux:\n" "[codeblock]\n" "prime-run %command%\n" "[/codeblock]" msgstr "" "运行项目时附加到 Godot 自己的命令行的命令行参数。这不会影响编辑器本身。\n" "可以使用 [code]%command%[/code] 占位符使另一个可执行文件运行 Godot。占位符将" "替换为 Godot 自己的命令行。程序特定的参数应该放在[i]占位符之前[/i],而 Godot " "特定参数应该放在[i]占位符之后[/i]。\n" "例如,这可用于强制项目在 Linux 上的 NVIDIA Optimus 系统中的专用 GPU 上运" "行:\n" "[codeblock]\n" "prime-run %command%\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "" "Search path for project-specific script templates. Godot will search for " "script templates both in the editor-specific path and in this project-" "specific path." msgstr "" "对于项目特定的脚本模板的搜索路径。 Godot 将在编辑器的特定路径和此项目的路径中" "搜索。" #: doc/classes/ProjectSettings.xml msgid "" "Text-based file extensions to include in the script editor's \"Find in " "Files\" feature. You can add e.g. [code]tscn[/code] if you wish to also " "parse your scene files, especially if you use built-in scripts which are " "serialized in the scene files." msgstr "" "脚本编辑器的“在文件中查找”特性中包含的基于文本的文件扩展名。你可以添加例如 " "[code]tscn[/code],如果你也想解析你的场景文件,特别是如果你使用的是在场景文件" "中序列化的内置脚本。" #: doc/classes/ProjectSettings.xml msgid "" "Load the previously opened VCS plugin when the editor starts up. This is set " "to [code]true[/code] whenever a new VCS plugin is initialized." msgstr "" "编辑器启动时加载上一次打开的 VCS 插件。初始化新 VCS 插件时,会被设为 " "[code]true[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "Last loaded VCS plugin name. Used to autoload the plugin when the editor " "starts up." msgstr "上次加载的 VCS 插件名称。用于在编辑器启动时自动加载该插件。" #: doc/classes/ProjectSettings.xml msgid "" "Default value for [member ScrollContainer.scroll_deadzone], which will be " "used for all [ScrollContainer]s unless overridden." msgstr "" "[member ScrollContainer.scroll_deadzone],它将用于所有[ScrollContainer]s,除" "非重写。" #: doc/classes/ProjectSettings.xml msgid "" "If enabled, the moment [member Viewport.gui_disable_input] is set to " "[code]false[/code] to disable GUI input in a viewport, current mouse over " "and mouse focus will be dropped.\n" "That behavior helps to keep a robust GUI state, with no surprises when input " "is resumed regardless what has happened in the meantime.\n" "If disabled, the legacy behavior is used, which consists in just not doing " "anything besides the GUI input disable itself.\n" "[b]Note:[/b] This is set to [code]true[/code] by default for new projects " "and is the recommended setting." msgstr "" "如果已启用,则会在将 [member Viewport.gui_disable_input] 设为 [code]false[/" "code] 禁用视区的 GUI 输入时,将当前的鼠标悬停及聚焦丢弃。\n" "这样的行为能够帮助保持 GUI 状态的健壮,输入恢复时,无论当时发生了什么都不会产" "生意外的结果。\n" "如果已禁用,会使用旧有行为,除了禁用 GUI 输入本身不会进行额外操作。\n" "[b]注意:[/b]新项目会默认将其设为 [code]true[/code],这也是推荐的设置。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], swaps OK and Cancel buttons in dialogs on Windows and " "UWP to follow interface conventions." msgstr "" "如果[code]true[/code],在Windows和UWP的对话框中交换确定和取消按钮,以遵循界面" "惯例。" #: doc/classes/ProjectSettings.xml msgid "" "Path to a custom [Theme] resource file to use for the project ([code]theme[/" "code] or generic [code]tres[/code]/[code]res[/code] extension)." msgstr "" "用于项目的自定义 [Theme] 资源文件的路径([code]theme[/code] 或通用 " "[code]tres[/code]/[code]res[/code] 扩展名)。" #: doc/classes/ProjectSettings.xml msgid "" "Path to a custom [Font] resource to use as default for all GUI elements of " "the project." msgstr "自定义 [Font] 资源的路径,用于项目的所有 GUI 元素的默认字体。" #: doc/classes/ProjectSettings.xml msgid "If [code]true[/code], makes sure the theme used works with HiDPI." msgstr "如果[code]true[/code],确保使用的主题将在HiDPI下工作。" #: doc/classes/ProjectSettings.xml msgid "" "Timer setting for incremental search in [Tree], [ItemList], etc. controls " "(in milliseconds)." msgstr "在[Tree], [ItemList]等控件中为增量搜索设置计时器(以毫秒为单位)。" #: doc/classes/ProjectSettings.xml msgid "Timer for detecting idle in [TextEdit] (in seconds)." msgstr "检测[TextEdit]空闲的计时器(单位为秒)。" #: doc/classes/ProjectSettings.xml msgid "Default delay for tooltips (in seconds)." msgstr "工具提示的默认延迟(单位为秒)。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to confirm a focused button, menu or list item, " "or validate input.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认用于确认焦点按钮、菜单或列表项,或验证输入的[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to discard a modal or pending input.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认放弃一个模态或挂起的输入的[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to move down in the UI.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认在UI中向下移动的[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to go to the end position of a [Control] (e.g. " "last item in an [ItemList] or a [Tree]), matching the behavior of [constant " "KEY_END] on typical desktop UI systems.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认[InputEventAction]去[Control]的结束位置(例如[ItemList]或[Tree]中的最后一" "项),匹配典型桌面UI系统中[constant KEY_END]的行为。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to focus the next [Control] in the scene. The " "focus behavior can be configured via [member Control.focus_next].\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认聚焦场景中的下一个[Control]的[InputEventAction]。焦点行为可以通过[member " "Control.focus_next]配置。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to focus the previous [Control] in the scene. The " "focus behavior can be configured via [member Control.focus_previous].\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认聚焦场景中的前一个[Control]的[InputEventAction]。焦点行为可以通过[member " "Control.focus_previous]配置。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to go to the start position of a [Control] (e.g. " "first item in an [ItemList] or a [Tree]), matching the behavior of [constant " "KEY_HOME] on typical desktop UI systems.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认的将进入[Control]的起始位置(例如[ItemList]或[Tree]中的第一个项目)时的" "[InputEventAction],与典型的桌面UI系统中[constant KEY_HOME]的行为相匹配。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们对于几个[Control]" "的内部逻辑是必要的。然而,分配给动作的事件可以被修改。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to move left in the UI.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认在UI中向左移动的[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to go down a page in a [Control] (e.g. in an " "[ItemList] or a [Tree]), matching the behavior of [constant KEY_PAGEDOWN] on " "typical desktop UI systems.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认的在[Control](例如[ItemList]或[Tree])中下拉页面的[InputEventAction],与典" "型桌面UI系统中[constant KEY_PAGEDOWN]的行为相匹配。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to go up a page in a [Control] (e.g. in an " "[ItemList] or a [Tree]), matching the behavior of [constant KEY_PAGEUP] on " "typical desktop UI systems.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认在[Control](例如[ItemList]或[Tree])中上移页面的[InputEventAction],与典型" "桌面UI系统中[constant KEY_PAGEUP]的行为相匹配。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to move right in the UI.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认在UI中右移的[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to select an item in a [Control] (e.g. in an " "[ItemList] or a [Tree]).\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认选择[Control](例如[ItemList]或[Tree])中的一个项目[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "Default [InputEventAction] to move up in the UI.\n" "[b]Note:[/b] Default [code]ui_*[/code] actions cannot be removed as they are " "necessary for the internal logic of several [Control]s. The events assigned " "to the action can however be modified." msgstr "" "默认在UI中向上移动[InputEventAction]。\n" "[b]注意:[/b]默认的[code]ui_*[/code]动作不能被删除,因为它们是几个[Control]的" "内部逻辑所必需的。但是,可以修改分配给该操作的事件。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], key/touch/joystick events will be flushed just before " "every idle and physics frame.\n" "If [code]false[/code], such events will be flushed only once per idle frame, " "between iterations of the engine.\n" "Enabling this can greatly improve the responsiveness to input, specially in " "devices that need to run multiple physics frames per visible (idle) frame, " "because they can't run at the target frame rate.\n" "[b]Note:[/b] Currently implemented only in Android." msgstr "" "如果 [code]true[/code],按键/触摸/操纵杆事件将在每个空闲帧和物理帧之前刷" "新。\n" "如果 [code]false[/code],此类事件将在引擎迭代之间每个空闲帧仅刷新一次。\n" "启用此功能可以大大提高对输入的响应能力,特别是在需要每个可见(空闲)帧运行多" "个物理帧的设备中,因为它们无法以目标帧速率运行。\n" "[b]注:[/b] 目前仅在 Android 中实现。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], sends mouse input events when tapping or swiping on " "the touchscreen." msgstr "如果为 [code]true[/code],则在点击或滑动触摸屏时发送鼠标输入事件。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], sends touch input events when clicking or dragging the " "mouse." msgstr "如果为 [code]true[/code],则在点击或拖动鼠标时发送触摸输入事件。" #: doc/classes/ProjectSettings.xml msgid "Default delay for touch events. This only affects iOS devices." msgstr "触摸事件的默认延迟(单位为秒)。仅影响 iOS 设备。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 1." msgstr "2D 物理层 1 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 10." msgstr "2D 物理层 10 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 11." msgstr "2D 物理层 11 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 12." msgstr "2D 物理层 12 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 13." msgstr "2D 物理层 13 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 14." msgstr "2D 物理层 14 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 15." msgstr "2D 物理层 15 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 16." msgstr "2D 物理层 16 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 17." msgstr "2D 物理层 17 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 18." msgstr "2D 物理层 18 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 19." msgstr "2D 物理层 19 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 2." msgstr "2D 物理层 2 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 20." msgstr "2D 物理层 20 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 21." msgstr "2D 物理层 21 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 22." msgstr "2D 物理层 22 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 23." msgstr "2D 物理层 23 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 24." msgstr "2D 物理层 24 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 25." msgstr "2D 物理层 25 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 26." msgstr "2D 物理层 26 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 27." msgstr "2D 物理层 27 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 28." msgstr "2D 物理层 28 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 29." msgstr "2D 物理层 29 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 3." msgstr "2D 物理层 3 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 30." msgstr "2D 物理层 30 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 31." msgstr "2D 物理层 31 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 32." msgstr "2D 物理层 32 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 4." msgstr "2D 物理层 4 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 5." msgstr "2D 物理层 5 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 6." msgstr "2D 物理层 6 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 7." msgstr "2D 物理层 7 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 8." msgstr "2D 物理层 8 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D physics layer 9." msgstr "2D 物理层 9 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 1." msgstr "2D 渲染层 1 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 10." msgstr "2D 渲染层 10 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 11." msgstr "2D 渲染层 11 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 12." msgstr "2D 渲染层 12 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 13." msgstr "2D 渲染层 13 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 14." msgstr "2D 渲染层 14 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 15." msgstr "2D 渲染层 15 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 16." msgstr "2D 渲染层 16 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 17." msgstr "2D 渲染层 17 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 18." msgstr "2D 渲染层 18 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 19." msgstr "2D 渲染层 19 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 2." msgstr "2D 渲染层 2 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 20." msgstr "2D 渲染层 20 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 3." msgstr "2D 渲染层 3 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 4." msgstr "2D 渲染层 4 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 5." msgstr "2D 渲染层 5 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 6." msgstr "2D 渲染层 6 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 7." msgstr "2D 渲染层 7 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 8." msgstr "2D 渲染层 8 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 2D render layer 9." msgstr "2D 渲染层 9 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 1." msgstr "3D 物理层 1 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 10." msgstr "3D 物理层 10 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 11." msgstr "3D 物理层 11 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 12." msgstr "3D 物理层 12 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 13." msgstr "3D 物理层 13 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 14." msgstr "3D 物理层 14 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 15." msgstr "3D 物理层 15 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 16." msgstr "3D 物理层 16 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 17." msgstr "3D 物理层 17 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 18." msgstr "3D 物理层 18 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 19." msgstr "3D 物理层 19 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 2." msgstr "3D 物理层 2 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 20." msgstr "3D 物理层 20 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 21." msgstr "3D 物理层 21 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 22." msgstr "3D 物理层 22 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 23." msgstr "3D 物理层 23 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 24." msgstr "3D 物理层 24 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 25." msgstr "3D 物理层 25 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 26." msgstr "3D 物理层 26 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 27." msgstr "3D 物理层 27 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 28." msgstr "3D 物理层 28 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 29." msgstr "3D 物理层 29 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 3." msgstr "3D 物理层 3 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 30." msgstr "3D 物理层 30 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 31." msgstr "3D 物理层 31 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 32." msgstr "3D 物理层 32 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 4." msgstr "3D 物理层 4 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 5." msgstr "3D 物理层 5 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 6." msgstr "3D 物理层 6 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 7." msgstr "3D 物理层 7 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 8." msgstr "3D 物理层 8 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D physics layer 9." msgstr "3D 物理层 9 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 1." msgstr "3D 渲染层 1 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 10." msgstr "3D 渲染层 10 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 11." msgstr "3D 渲染层 11 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 12." msgstr "3D 渲染层 12 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 13." msgstr "3D 渲染层 13 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 14." msgstr "3D 渲染层 14 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 15." msgstr "3D 渲染层 15 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 16." msgstr "3D 渲染层 16 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 17." msgstr "3D 渲染层 17 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 18." msgstr "3D 渲染层 18 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 19." msgstr "3D 渲染层 19 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 2." msgstr "3D 渲染层 2 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 20." msgstr "3D 渲染层 20 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 3." msgstr "3D 渲染层 3 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 4." msgstr "3D 渲染层 4 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 5." msgstr "3D 渲染层 5 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 6." msgstr "3D 渲染层 6 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 7." msgstr "3D 渲染层 7 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 8." msgstr "3D 渲染层 8 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "Optional name for the 3D render layer 9." msgstr "3D 渲染层 9 的可选名称。" #: doc/classes/ProjectSettings.xml msgid "" "The locale to fall back to if a translation isn't available in a given " "language. If left empty, [code]en[/code] (English) will be used." msgstr "" "如果给定语言的翻译不可用,则使用默认区域设置。如果留空,将使用 [code]en[/" "code],即英文。" #: doc/classes/ProjectSettings.xml msgid "" "If non-empty, this locale will be used when running the project from the " "editor." msgstr "如果不为空,那么当从编辑器中运行项目时,将使用该区域设置。" #: doc/classes/ProjectSettings.xml msgid "If [code]true[/code], logs all output to files." msgstr "如果为 [code]true[/code],将所有输出记录到文件中。" #: doc/classes/ProjectSettings.xml msgid "" "Desktop override for [member logging/file_logging/enable_file_logging], as " "log files are not readily accessible on mobile/Web platforms." msgstr "" "[member logging/file_logging/enable_file_logging] 的桌面覆盖,因为在 移动 / " "Web 平台上不容易访问日志文件。" #: doc/classes/ProjectSettings.xml msgid "" "Path to logs within the project. Using an [code]user://[/code] path is " "recommended." msgstr "项目中日志的路径。建议使用 [code]user://[/code] 路径。" #: doc/classes/ProjectSettings.xml msgid "Specifies the maximum amount of log files allowed (used for rotation)." msgstr "指定允许的最大日志文件数量(用于轮换)。" #: doc/classes/ProjectSettings.xml msgid "" "Godot uses a message queue to defer some function calls. If you run out of " "space on it (you will see an error), you can increase the size here." msgstr "" "Godot 使用一个消息队列来延迟一些函数调用。如果你的空间用完了(你会看到一个错" "误),你可以在这里增加大小。" #: doc/classes/ProjectSettings.xml msgid "" "This is used by servers when used in multi-threading mode (servers and " "visual). RIDs are preallocated to avoid stalling the server requesting them " "on threads. If servers get stalled too often when loading resources in a " "thread, increase this number." msgstr "" "在多线程模式下使用时,服务器会使用它(服务器和可视化端)。 RID 是预先分配的," "以避免在线程上停止请求它们的服务器。如果在线程中加载资源时服务器经常卡顿,请" "增加此数字。" #: doc/classes/ProjectSettings.xml msgid "" "The policy to use for unhandled Mono (C#) exceptions. The default " "\"Terminate Application\" exits the project as soon as an unhandled " "exception is thrown. \"Log Error\" logs an error message to the console " "instead, and will not interrupt the project execution when an unhandled " "exception is thrown.\n" "[b]Note:[/b] The unhandled exception policy is always set to \"Log Error\" " "in the editor, which also includes C# [code]tool[/code] scripts running " "within the editor as well as editor plugin code." msgstr "" "针对未处理的 Mono(C#)异常的策略。默认的“Terminate Application”会在抛出未处" "理的异常时立即退出项目。“Log Error”会在抛出未处理的异常时向控制台日志中写入错" "误消息,不会打断项目的运行。\n" "[b]注意:[/b]编辑器中,未处理异常策略始终会被设为“Log Error”,包括在编辑器中" "执行的 C# [code]tool[/code] 脚本和编辑器插件代码。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum amount of characters allowed to send as output from the debugger. " "Over this value, content is dropped. This helps not to stall the debugger " "connection." msgstr "" "允许调试器输出的最大字符量。超过这个值,内容就会被放弃。这有助于避免调试器的" "连接停滞。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum number of errors allowed to be sent as output from the debugger. " "Over this value, content is dropped. This helps not to stall the debugger " "connection." msgstr "" "允许作为调试器输出发送的最大错误数。超过此值,内容将被删除。这有助于避免调试" "器的连接停滞。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum amount of messages allowed to send as output from the debugger. Over " "this value, content is dropped. This helps not to stall the debugger " "connection." msgstr "" "允许作为调试器输出发送的最大消息量。超过此值,内容将被删除。这有助于避免调试" "器的连接停滞。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum number of warnings allowed to be sent as output from the debugger. " "Over this value, content is dropped. This helps not to stall the debugger " "connection." msgstr "" "允许作为调试器输出发送的最大警告数。超过此值,内容将被删除。这有助于避免调试" "器的连接停滞。" #: doc/classes/ProjectSettings.xml msgid "" "Default size of packet peer stream for deserializing Godot data (in bytes, " "specified as a power of two). The default value [code]16[/code] is equal to " "65,536 bytes. Over this size, data is dropped." msgstr "" "用于反序列化 Godot 数据的数据包对等流 (stream) 的默认大小(以字节为单位,指定" "为 2 的幂)。默认值 [code]16[/code] 等于 65,536 字节。超过此大小,数据将被丢" "弃。" #: doc/classes/ProjectSettings.xml msgid "Timeout (in seconds) for connection attempts using TCP." msgstr "使用TCP的连接尝试的超时(以秒为单位)。" #: doc/classes/ProjectSettings.xml msgid "Maximum size (in kiB) for the [WebRTCDataChannel] input buffer." msgstr "[WebRTCDataChannel] 输入缓冲区的最大尺寸(单位:千字节)。" #: doc/classes/ProjectSettings.xml msgid "Maximum size (in kiB) for the [WebSocketClient] input buffer." msgstr "[WebSocketClient] 输入缓冲区的最大尺寸,以 kiB 为单位。" #: doc/classes/ProjectSettings.xml msgid "Maximum number of concurrent input packets for [WebSocketClient]." msgstr "[WebSocketClient] 的最大并发输入数据包数。" #: doc/classes/ProjectSettings.xml msgid "Maximum size (in kiB) for the [WebSocketClient] output buffer." msgstr "[WebSocketClient]输出缓冲区的最大尺寸,以kiB为单位。" #: doc/classes/ProjectSettings.xml msgid "Maximum number of concurrent output packets for [WebSocketClient]." msgstr "[WebSocketClient]的最大并发输出数据包数量。" #: doc/classes/ProjectSettings.xml msgid "Maximum size (in kiB) for the [WebSocketServer] input buffer." msgstr "[WebSocketServer]输入缓冲区的最大尺寸,以kiB为单位。" #: doc/classes/ProjectSettings.xml msgid "Maximum number of concurrent input packets for [WebSocketServer]." msgstr "[WebSocketServer] 的最大并发输入数据包数量。" #: doc/classes/ProjectSettings.xml msgid "Maximum size (in kiB) for the [WebSocketServer] output buffer." msgstr "[WebSocketServer] 输出缓冲区的最大尺寸,以 kiB 为单位。" #: doc/classes/ProjectSettings.xml msgid "Maximum number of concurrent output packets for [WebSocketServer]." msgstr "[WebSocketServer] 的最大并发输出数据包数量。" #: doc/classes/ProjectSettings.xml msgid "" "Amount of read ahead used by remote filesystem. Higher values decrease the " "effects of latency at the cost of higher bandwidth usage." msgstr "" "对远程文件系统的预读取量。更高的值可以减少延迟的影响,但代价是更高的带宽消" "耗。" #: doc/classes/ProjectSettings.xml msgid "Page size used by remote filesystem (in bytes)." msgstr "远程文件系统使用的页面大小(字节)。" #: doc/classes/ProjectSettings.xml msgid "" "The CA certificates bundle to use for SSL connections. If this is set to a " "non-empty value, this will [i]override[/i] Godot's default [url=https://" "github.com/godotengine/godot/blob/master/thirdparty/certs/ca-certificates." "crt]Mozilla certificate bundle[/url]. If left empty, the default certificate " "bundle will be used.\n" "If in doubt, leave this setting empty." msgstr "" "用于SSL连接的CA证书包。如果设置为非空值,这将[i]覆盖[/i]Godot默认的" "[url=https://github.com/godotengine/godot/blob/master/thirdparty/certs/ca-" "certificates.crt]Mozilla证书包[/url]。如果留空,将使用默认的证书包。\n" "如果有疑问,让这个设置为空。" #: doc/classes/ProjectSettings.xml msgid "" "When creating node names automatically, set the type of casing in this " "project. This is mostly an editor setting." msgstr "" "当自动创建节点名称时,在这个项目中设置大小写的类型。这主要是编辑器设置。" #: doc/classes/ProjectSettings.xml msgid "" "What to use to separate node name from number. This is mostly an editor " "setting." msgstr "用什么来分隔节点名称和编号。这主要是一个编辑器的设置。" #: doc/classes/ProjectSettings.xml msgid "" "Size of the hash table used for the broad-phase 2D hash grid algorithm.\n" "[b]Note:[/b] Not used if [member ProjectSettings.physics/2d/use_bvh] is " "enabled." msgstr "" "用于宽相 2D 哈希网格算法的哈希表的大小。\n" "[b]注意:[/b]如果启用了 [member ProjectSettings.physics/2d/use_bvh],则不使" "用。" #: doc/classes/ProjectSettings.xml msgid "" "Additional expansion applied to object bounds in the 2D physics bounding " "volume hierarchy. This can reduce BVH processing at the cost of a slightly " "coarser broadphase, which can stress the physics more in some situations.\n" "The default value will work well in most situations. A value of 0.0 will " "turn this optimization off, and larger values may work better for larger, " "faster moving objects.\n" "[b]Note:[/b] Used only if [member ProjectSettings.physics/2d/use_bvh] is " "enabled." msgstr "" "在 2D 物理包围体积层次结构中,为对象的界限进行的额外扩展。可以减小 BVH 的处理" "量,代价是让宽相略变粗糙,可能在某些情况下为物理带来压力。\n" "默认值在大多数情况下可以很好地工作。为 0.0 时将关闭该优化,较大的值可能能够更" "好地处理较大、较快的运动物体。\n" "[b]注意:[/b]仅在启用 [member ProjectSettings.physics/2d/use_bvh] 时使用。" #: doc/classes/ProjectSettings.xml msgid "" "Cell size used for the broad-phase 2D hash grid algorithm (in pixels).\n" "[b]Note:[/b] Not used if [member ProjectSettings.physics/2d/use_bvh] is " "enabled." msgstr "" "用于宽相 2D 哈希网格算法的单元尺寸,像素单位。\n" "[b]注意:[/b]如果启用了 [member ProjectSettings.physics/2d/use_bvh],则不使" "用。" #: doc/classes/ProjectSettings.xml msgid "" "The default angular damp in 2D.\n" "[b]Note:[/b] Good values are in the range [code]0[/code] to [code]1[/code]. " "At value [code]0[/code] objects will keep moving with the same velocity. " "Values greater than [code]1[/code] will aim to reduce the velocity to " "[code]0[/code] in less than a second e.g. a value of [code]2[/code] will aim " "to reduce the velocity to [code]0[/code] in half a second. A value equal to " "or greater than the physics frame rate ([member ProjectSettings.physics/" "common/physics_fps], [code]60[/code] by default) will bring the object to a " "stop in one iteration." msgstr "" "2D 中的默认角阻尼。\n" "[b]注意:[/b]在 [code]0[/code] 到 [code]1[/code] 的范围内取值比较好。在值为 " "[code]0[/code] 时,对象将继续以相同的速度移动。大于 [code]1[/code] 的值将旨在" "不到一秒的时间内将速度降低到 [code]0[/code],例如取 [code]2[/code] 将旨在在半" "秒内将速度降低到 [code]0[/code]。等于或大于物理帧速率的值将使对象在一次迭代中" "停止,[member ProjectSettings.physics/common/physics_fps] 默认情况下为 " "[code]60[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "The default gravity strength in 2D (in pixels per second squared).\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the default gravity at runtime, use the following code sample:\n" "[codeblock]\n" "# Set the default gravity strength to 98.\n" "Physics2DServer.area_set_param(get_viewport().find_world_2d().get_space(), " "Physics2DServer.AREA_PARAM_GRAVITY, 98)\n" "[/codeblock]" msgstr "" "2D 中默认的重力强度(单位:每秒平方像素)。\n" "[b]注意:[/b]这个属性只在项目启动时被读取。要在运行时改变默认的重力,请使用以" "下代码示例:\n" "[codeblock]\n" "# 设置默认的重力强度为 98。\n" "Physics2DServer.area_set_param(get_viewport().find_world_2d().get_space(), " "Physics2DServer.AREA_PARAM_GRAVITY, 98)\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "" "The default gravity direction in 2D.\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the default gravity vector at runtime, use the following code sample:\n" "[codeblock]\n" "# Set the default gravity direction to `Vector2(0, 1)`.\n" "Physics2DServer.area_set_param(get_viewport().find_world_2d().get_space(), " "Physics2DServer.AREA_PARAM_GRAVITY_VECTOR, Vector2(0, 1))\n" "[/codeblock]" msgstr "" "2D 中的默认重力方向。\n" "[b]注意:[/b]该属性仅在项目启动时读取。要在运行时更改默认重力向量,请使用以下" "代码示例:\n" "[codeblock]\n" "# 设置默认重力方向为 `Vector2(0, 1)`。\n" "Physics2DServer.area_set_param(get_viewport().find_world_2d().get_space(), " "Physics2DServer.AREA_PARAM_GRAVITY_VECTOR, Vector2(0, 1))\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "" "The default linear damp in 2D.\n" "[b]Note:[/b] Good values are in the range [code]0[/code] to [code]1[/code]. " "At value [code]0[/code] objects will keep moving with the same velocity. " "Values greater than [code]1[/code] will aim to reduce the velocity to " "[code]0[/code] in less than a second e.g. a value of [code]2[/code] will aim " "to reduce the velocity to [code]0[/code] in half a second. A value equal to " "or greater than the physics frame rate ([member ProjectSettings.physics/" "common/physics_fps], [code]60[/code] by default) will bring the object to a " "stop in one iteration." msgstr "" "2D 中的默认线性阻尼。\n" "[b]注意:[/b]在 [code]0[/code] 到 [code]1[/code] 的范围内取值比较好。在值为 " "[code]0[/code] 时,对象将继续以相同的速度移动。大于 [code]1[/code] 的值将旨在" "不到一秒的时间内将速度降低到 [code]0[/code],例如取 [code]2[/code] 将旨在半秒" "内将速度降低到 [code]0[/code]。等于或大于物理帧速率的值将使对象在一次迭代中停" "止([member ProjectSettings.physics/common/physics_fps],默认情况下为 " "[code]60[/code])。" #: doc/classes/ProjectSettings.xml msgid "" "Threshold defining the surface size that constitutes a large object with " "regard to cells in the broad-phase 2D hash grid algorithm.\n" "[b]Note:[/b] Not used if [member ProjectSettings.physics/2d/use_bvh] is " "enabled." msgstr "" "定义构成大对象的表面尺寸的阈值,与宽相 2D 散列网格算法中的单元有关。\n" "[b]注意:[/b]如果启用了 [member ProjectSettings.physics/2d/use_bvh],则不使" "用。" #: doc/classes/ProjectSettings.xml msgid "" "Sets which physics engine to use for 2D physics.\n" "\"DEFAULT\" and \"GodotPhysics\" are the same, as there is currently no " "alternative 2D physics server implemented." msgstr "" "设置用于 2D 物理的物理引擎。\n" "“DEFAULT”和“GodotPhysics”是一样的,因为目前没有实现可替代的 2D 物理服务器。" #: doc/classes/ProjectSettings.xml msgid "" "Threshold angular velocity under which a 2D physics body will be considered " "inactive. See [constant Physics2DServer." "SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD]." msgstr "" "角速度阈值,低于该阈值的 2D 物理体将被视为非活动。参阅 [constant " "Physics2DServer.SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD]。" #: doc/classes/ProjectSettings.xml msgid "" "Threshold linear velocity under which a 2D physics body will be considered " "inactive. See [constant Physics2DServer." "SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD]." msgstr "" "线速度阈值,低于该阈值的 2D 物理体被认为是非活动。参阅 [constant " "Physics2DServer.SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD]。" #: doc/classes/ProjectSettings.xml msgid "" "Sets whether physics is run on the main thread or a separate one. Running " "the server on a thread increases performance, but restricts API access to " "only physics process.\n" "[b]Warning:[/b] As of Godot 3.2, there are mixed reports about the use of a " "Multi-Threaded thread model for physics. Be sure to assess whether it does " "give you extra performance and no regressions when using it." msgstr "" "设置物理运算是在主线程上运行还是单独的线程上运行。在一个线程上运行服务器可以" "提高性能,但限制了对物理过程的 API 访问。\n" "[b]警告:[/b]从 Godot 3.2 开始,关于物理运算使用多线程的反馈不一。请务必评估" "它是否确实给你带来了额外的性能,并且在使用它时没有过时。" #: doc/classes/ProjectSettings.xml msgid "" "Time (in seconds) of inactivity before which a 2D physics body will put to " "sleep. See [constant Physics2DServer.SPACE_PARAM_BODY_TIME_TO_SLEEP]." msgstr "" "2D 物理物体非活动的时间,以秒为单位。在此时间之后,2D 物理物体将进入休眠状" "态。参阅 [constant Physics2DServer.SPACE_PARAM_BODY_TIME_TO_SLEEP]。" #: doc/classes/ProjectSettings.xml msgid "" "Enables the use of bounding volume hierarchy instead of hash grid for 2D " "physics spatial partitioning. This may give better performance." msgstr "" "启用边界体积层次结构而不是散列网格,用于 2D 物理空间分区。这可能会提供更好的" "性能。" #: doc/classes/ProjectSettings.xml msgid "" "Sets whether the 3D physics world will be created with support for " "[SoftBody] physics. Only applies to the Bullet physics engine." msgstr "" "设置是否在支持 [SoftBody] 物理的情况下创建 3D 物理世界。仅适用于 Bullet 物理" "引擎。" #: doc/classes/ProjectSettings.xml msgid "" "The default angular damp in 3D.\n" "[b]Note:[/b] Good values are in the range [code]0[/code] to [code]1[/code]. " "At value [code]0[/code] objects will keep moving with the same velocity. " "Values greater than [code]1[/code] will aim to reduce the velocity to " "[code]0[/code] in less than a second e.g. a value of [code]2[/code] will aim " "to reduce the velocity to [code]0[/code] in half a second. A value equal to " "or greater than the physics frame rate ([member ProjectSettings.physics/" "common/physics_fps], [code]60[/code] by default) will bring the object to a " "stop in one iteration." msgstr "" "3D 中的默认角阻尼。\n" "[b]注意:[/b]在 [code]0[/code] 到 [code]1[/code] 的范围内取值比较好。在值为 " "[code]0[/code] 时,对象将继续以相同的速度移动。大于 [code]1[/code] 的值将旨在" "不到一秒的时间内将速度降低到 [code]0[/code],例如取 [code]2[/code] 将旨在半秒" "内将速度降低到 [code]0[/code]。等于或大于物理帧速率的值将使对象在一次迭代中停" "止,[member ProjectSettings.physics/common/physics_fps] 默认情况下为 " "[code]60[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "The default gravity strength in 3D (in meters per second squared).\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the default gravity at runtime, use the following code sample:\n" "[codeblock]\n" "# Set the default gravity strength to 9.8.\n" "PhysicsServer.area_set_param(get_viewport().find_world().get_space(), " "PhysicsServer.AREA_PARAM_GRAVITY, 9.8)\n" "[/codeblock]" msgstr "" "3D 中的默认重力强度,单位:米/秒平方。\n" "[b]注意:[/b]该属性仅在项目启动时读取。要在运行时更改默认重力,请使用以下代码" "示例:\n" "[codeblock]\n" "# 设置默认重力强度为 9.8。\n" "PhysicsServer.area_set_param(get_viewport().find_world().get_space(), " "PhysicsServer.AREA_PARAM_GRAVITY, 9.8)\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "" "The default gravity direction in 3D.\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the default gravity vector at runtime, use the following code sample:\n" "[codeblock]\n" "# Set the default gravity direction to `Vector3(0, -1, 0)`.\n" "PhysicsServer.area_set_param(get_viewport().find_world().get_space(), " "PhysicsServer.AREA_PARAM_GRAVITY_VECTOR, Vector3(0, -1, 0))\n" "[/codeblock]" msgstr "" "3D 中的默认重力方向。\n" "[b]注意:[/b]该属性仅在项目启动时读取。要在运行时更改默认重力向量,请使用以下" "代码示例:\n" "[codeblock]\n" "# 设置默认重力方向为 `Vector3(0, -1, 0)`。\n" "PhysicsServer.area_set_param(get_viewport().find_world().get_space(), " "PhysicsServer.AREA_PARAM_GRAVITY_VECTOR, Vector3(0, -1, 0))\n" "[/codeblock]" #: doc/classes/ProjectSettings.xml msgid "" "The default linear damp in 3D.\n" "[b]Note:[/b] Good values are in the range [code]0[/code] to [code]1[/code]. " "At value [code]0[/code] objects will keep moving with the same velocity. " "Values greater than [code]1[/code] will aim to reduce the velocity to " "[code]0[/code] in less than a second e.g. a value of [code]2[/code] will aim " "to reduce the velocity to [code]0[/code] in half a second. A value equal to " "or greater than the physics frame rate ([member ProjectSettings.physics/" "common/physics_fps], [code]60[/code] by default) will bring the object to a " "stop in one iteration." msgstr "" "3D 中的默认线性阻尼。\n" "[b]注意:[/b]在 [code]0[/code] 到 [code]1[/code] 的范围内取值比较好。在值为 " "[code]0[/code] 时,对象将继续以相同的速度移动。大于 [code]1[/code] 的值将旨在" "不到一秒的时间内将速度降低到 [code]0[/code],例如取 [code]2[/code] 将旨在半秒" "内将速度降低到 [code]0[/code]。等于或大于物理帧速率的值将使对象在一次迭代中停" "止,[member ProjectSettings.physics/common/physics_fps] 默认情况下为 " "[code]60[/code]。" #: doc/classes/ProjectSettings.xml msgid "" "Additional expansion applied to object bounds in the 3D physics bounding " "volume hierarchy. This can reduce BVH processing at the cost of a slightly " "coarser broadphase, which can stress the physics more in some situations.\n" "The default value will work well in most situations. A value of 0.0 will " "turn this optimization off, and larger values may work better for larger, " "faster moving objects.\n" "[b]Note:[/b] Used only if [member ProjectSettings.physics/3d/godot_physics/" "use_bvh] is enabled." msgstr "" "在 3D 物理包围体积层次结构中,为对象的界限进行的额外扩展。可以减小 BVH 的处理" "量,代价是让宽相略变粗糙,可能在某些情况下为物理带来压力。\n" "默认值在大多数情况下可以很好地工作。为 0.0 时将关闭该优化,较大的值可能能够更" "好地处理较大、较快的运动物体。\n" "[b]注意:[/b]仅在启用 [member ProjectSettings.physics/3d/godot_physics/" "use_bvh] 时使用。" #: doc/classes/ProjectSettings.xml msgid "" "Enables the use of bounding volume hierarchy instead of octree for 3D " "physics spatial partitioning. This may give better performance." msgstr "" "允许使用边界体积层次结构而不是八叉树进行 3D 物理空间分区。这可能会提供更好的" "性能。" #: doc/classes/ProjectSettings.xml msgid "" "Sets which physics engine to use for 3D physics.\n" "\"DEFAULT\" is currently the [url=https://bulletphysics.org]Bullet[/url] " "physics engine. The \"GodotPhysics\" engine is still supported as an " "alternative." msgstr "" "设置用于 3D 物理的物理引擎。\n" "“DEFAULT”目前是 [url=https://bulletphysics.org]Bullet[/url] 物理引擎。仍然支" "持“GodotPhysics”引擎作为替代。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], smooths out collision with trimesh shapes " "([ConcavePolygonShape]) by telling the Bullet physics engine to generate " "internal edge information for every trimesh shape created.\n" "[b]Note:[/b] Only effective if [member physics/3d/physics_engine] is set to " "[code]DEFAULT[/code] or [code]Bullet[/code], [i]not[/i] [code]GodotPhysics[/" "code]." msgstr "" "如果为 [code]true[/code],会让 Bullet 物理引擎为每一个三角网格形状生成内部边" "缘信息,让与三角网格形状([ConcavePolygonShape])的碰撞变平滑。\n" "[b]注意:[/b]仅在 [member physics/3d/physics_engine] 被设为 [code]DEFAULT[/" "code] 或 [code]Bullet[/code] 时有效,为 [code]GodotPhysics[/code] 时[i]无效[/" "i]。" #: doc/classes/ProjectSettings.xml msgid "Enables [member Viewport.physics_object_picking] on the root viewport." msgstr "在根视图上启用 [member Viewport.physics_object_picking]。" #: doc/classes/ProjectSettings.xml msgid "" "If enabled, 2D and 3D physics picking behaves this way in relation to " "pause:\n" "- When pause is started, every collision object that is hovered or captured " "(3D only) is released from that condition, getting the relevant mouse-exit " "callback, unless its pause mode makes it immune to pause.\n" "- During pause, picking only considers collision objects immune to pause, " "sending input events and enter/exit callbacks to them as expected.\n" "If disabled, the legacy behavior is used, which consists in queuing the " "picking input events during pause (so nodes won't get them) and flushing " "that queue on resume, against the state of the 2D/3D world at that point." msgstr "" "如果启用,2D 和 3D 物理拾取在暂停时会这样表现:\n" "- 暂停开始时,悬停或捕获的每个碰撞对象(仅限 3D)都会从该状态中释放出来,获得" "相关的鼠标退出回调,除非其暂停模式使其免于暂停。\n" "- 在暂停期间,拾取只会考虑不受暂停影响的碰撞对象,正常发送输入事件和进入/退出" "回调。\n" "如果禁用,则使用旧有行为,包括在暂停期间排队等待拾取输入事件(因此节点不会获" "取它们),并在恢复时根据 2D/3D 世界的状态刷新该队列。" #: doc/classes/ProjectSettings.xml msgid "" "The number of fixed iterations per second. This controls how often physics " "simulation and [method Node._physics_process] methods are run. See also " "[member debug/settings/fps/force_fps].\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the physics FPS at runtime, set [member Engine.iterations_per_second] " "instead.\n" "[b]Note:[/b] Only 8 physics ticks may be simulated per rendered frame at " "most. If more than 8 physics ticks have to be simulated per rendered frame " "to keep up with rendering, the game will appear to slow down (even if " "[code]delta[/code] is used consistently in physics calculations). Therefore, " "it is recommended not to increase [member physics/common/physics_fps] above " "240. Otherwise, the game will slow down when the rendering framerate goes " "below 30 FPS." msgstr "" "每秒执行的固定迭代次数。用于控制物理模拟和 [method Node._physics_process] 的" "执行频率。另请参见 [member debug/settings/fps/force_fps]。\n" "[b]注意:[/b]本属性在程序开始运行时是只读的。要在运行时修改物理 FPS,请设置 " "[member Engine.iterations_per_second]。\n" "[b]注意:[/b]每个渲染帧最多只能模拟 8 个物理周期。如果为了追赶渲染,需要在每" "个渲染帧中模拟多于 8 个物理周期,游戏看上去会是降速的(即便在物理计算中始终使" "用 [code]delta[/code])。因此,建议不要将 [member physics/common/" "physics_fps] 设为大于 240 的值。否则,渲染帧率低于 30 FPS 时游戏就会低速运" "行。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the renderer will interpolate the transforms of " "physics objects between the last two transforms, such that smooth motion is " "seen when physics ticks do not coincide with rendered frames.\n" "[b]Note:[/b] When moving objects to new positions (rather than the usual " "physics motion) you may want to temporarily turn off interpolation to " "prevent a visible glitch. You can do this using the [method Node." "reset_physics_interpolation] function." msgstr "" "为 [code]true[/code] 时,渲染器会根据物理对象最近两次的变换对其变换进行插值," "从而在物理周期与渲染帧不一致时得到平滑的运动。\n" "[b]注意:[/b]将对象移动到新位置时(并非一般的物理运动)你可能会想要临时关闭插" "值,避免显示问题。你可以使用 [method Node.reset_physics_interpolation] 函数实" "现。" #: doc/classes/ProjectSettings.xml msgid "" "Controls how much physics ticks are synchronized with real time. For 0 or " "less, the ticks are synchronized. Such values are recommended for network " "games, where clock synchronization matters. Higher values cause higher " "deviation of in-game clock and real clock, but allows smoothing out " "framerate jitters. The default value of 0.5 should be fine for most; values " "above 2 could cause the game to react to dropped frames with a noticeable " "delay and are not recommended.\n" "[b]Note:[/b] For best results, when using a custom physics interpolation " "solution, the physics jitter fix should be disabled by setting [member " "physics/common/physics_jitter_fix] to [code]0[/code].\n" "[b]Note:[/b] Jitter fix is automatically disabled at runtime when [member " "physics/common/physics_interpolation] is enabled.\n" "[b]Note:[/b] This property is only read when the project starts. To change " "the value at runtime, set [member Engine.physics_jitter_fix] instead." msgstr "" "控制物理周期与实际时间的同步程度。如果小于等于 0,则周期是同步的。这样的值建" "议用于网络游戏,因为时钟的同步性很重要。较高的值会导致游戏中的时钟和真实时钟" "的偏差较大,但可以平滑帧速率的抖动。默认值 0.5 对大多数人来说应是不错的;超" "过 2 的值可能会导致游戏对掉帧的反应有明显的延迟,因此不建议使用。\n" "[b]注意:[/b]为了获得最佳效果,当使用自定义物理插值解决方案时,应该通过将 " "[member physics/common/physics_jitter_fix] 设置为 [code]0[/code] 来禁用物理抖" "动修复。\n" "[b]注意:[/b]如果启用了 [member physics/common/physics_interpolation],运行时" "会自动禁用抖动修复。\n" "[b]注意:[/b]这个属性只在项目启动时被读取。要在运行时改变物理 FPS,请设置 " "[member Engine.physics_jitter_fix]。" #: doc/classes/ProjectSettings.xml msgid "" "[b]Experimental.[/b] Calls [code]glBufferData[/code] with NULL data prior to " "uploading batching data. This may not be necessary but can be used for " "safety.\n" "[b]Note:[/b] Use with care. You are advised to leave this as default for " "exports. A non-default setting that works better on your machine may " "adversely affect performance for end users." msgstr "" "[b]实验性的。[/b]在上传批处理数据之前使用NULL数据调用[code]glBufferData[/" "code]。这可能不是必需的,但可以用于安全。\n" "[b]注意:[/b]请小心使用。建议您将其保留为导出的默认值。在您的计算机上效果更好" "的非默认设置可能会对最终用户的性能产生不利影响。" #: doc/classes/ProjectSettings.xml msgid "" "[b]Experimental.[/b] If set to on, uses the [code]GL_STREAM_DRAW[/code] flag " "for batching buffer uploads. If off, uses the [code]GL_DYNAMIC_DRAW[/code] " "flag.\n" "[b]Note:[/b] Use with care. You are advised to leave this as default for " "exports. A non-default setting that works better on your machine may " "adversely affect performance for end users." msgstr "" "[b]实验性的。[/b] 如果设置为 on,则使用 [code]GL_STREAM_DRAW[/code] 标志进行" "批处理缓冲区上传。如果关闭,则使用 [code]GL_DYNAMIC_DRAW[/code] 标志。\n" "[b]注意:[/b]请小心使用。建议您将其保留为导出的默认值。在您的计算机上效果更好" "的非默认设置可能会对最终用户的性能产生不利影响。" #: doc/classes/ProjectSettings.xml msgid "" "[b]Experimental.[/b] If set to on, this applies buffer orphaning - " "[code]glBufferData[/code] is called with NULL data and the full buffer size " "prior to uploading new data. This can be important to avoid stalling on some " "hardware.\n" "[b]Note:[/b] Use with care. You are advised to leave this as default for " "exports. A non-default setting that works better on your machine may " "adversely affect performance for end users." msgstr "" "[b]实验性的。[/b]如果设置为,则适用缓冲孤立 - [code]glBufferData[/code] 在上" "传新数据之前使用 NULL 数据和完整缓冲器大小进行调用。这对于避免某些硬件出现停" "滞非常重要。\n" "[b]注意:[/b]请小心使用。建议您将此作为导出的默认值。在机器上效果更好的非默认" "设置可能会对最终用户的性能产生不利影响。" #: doc/classes/ProjectSettings.xml msgid "" "[b]Experimental.[/b] If set to on, uses the [code]GL_STREAM_DRAW[/code] flag " "for legacy buffer uploads. If off, uses the [code]GL_DYNAMIC_DRAW[/code] " "flag.\n" "[b]Note:[/b] Use with care. You are advised to leave this as default for " "exports. A non-default setting that works better on your machine may " "adversely affect performance for end users." msgstr "" "[b]实验性的。[/b] 如果设置为开启,则使用 [code]GL_STREAM_DRAW[/code] 标志进行" "旧缓冲区上传。如果关闭,则使用 [code]GL_DYNAMIC_DRAW[/code] 标志。\n" "[b]注意:[/b]请小心使用。建议您将其保留为导出的默认值。在您的计算机上效果更好" "的非默认设置可能会对最终用户的性能产生不利影响。" #: doc/classes/ProjectSettings.xml msgid "" "Choose between fixed mode where corner scalings are preserved matching the " "artwork, and scaling mode.\n" "Not available in GLES3 when [member rendering/batching/options/use_batching] " "is off." msgstr "" "在固定模式和缩放模式之间进行选择,前者保留了与图稿相匹配的角缩放。\n" "当 [member rendering/batching/options/use_batching] 关闭时,在 GLES3 中不可" "用。" #: doc/classes/ProjectSettings.xml msgid "" "Some NVIDIA GPU drivers have a bug which produces flickering issues for the " "[code]draw_rect[/code] method, especially as used in [TileMap]. Refer to " "[url=https://github.com/godotengine/godot/issues/9913]GitHub issue 9913[/" "url] for details.\n" "If [code]true[/code], this option enables a \"safe\" code path for such " "NVIDIA GPUs at the cost of performance. This option affects GLES2 and GLES3 " "rendering, but only on desktop platforms." msgstr "" "一些 NVIDIA GPU 驱动有 bug,对 [code]draw_rect[/code] 方法产生闪烁问题,特别" "是在 [TileMap] 中使用时。详情参阅 [url=https://github.com/godotengine/godot/" "issues/9913]GitHub issue 9913[/url]。\n" "如果为 [code]true[/code],该选项将为此类 NVIDIA GPU 启用“安全”的代码路径,但" "会牺牲性能。这个选项会影响 GLES2 和 GLES3 的渲染,但只在桌面平台上。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], performs 2D skinning on the CPU rather than the GPU. " "This provides greater compatibility with a wide range of hardware, and also " "may be faster in some circumstances.\n" "Currently only available when [member rendering/batching/options/" "use_batching] is active.\n" "[b]Note:[/b] Antialiased software skinned polys are not supported, and will " "be rendered without antialiasing.\n" "[b]Note:[/b] Custom shaders that use the [code]VERTEX[/code] built-in " "operate with [code]VERTEX[/code] position [i]after[/i] skinning, whereas " "with hardware skinning, [code]VERTEX[/code] is the position [i]before[/i] " "skinning." msgstr "" "如果 [code]true[/code],则在 CPU 而非 GPU 上执行 2D 蒙皮。这提供了与各种硬件" "的更大兼容性,并且在某些情况下也可能更快。\n" "当前仅在 [member rendering/batching/options/use_batching] 处于活动状态时可" "用。\n" "[b]注意:[/b]不支持抗锯齿软件蒙皮多边形,将在没有抗锯齿的情况下渲染。\n" "[b]注意:[/b]使用内置 [code]VERTEX[/code] 的自定义着色器在应用蒙皮[i]之后[/i]" "以 [code]VERTEX[/code] 位置运行,而使用硬件蒙皮,[code]VERTEX[/code] 是被应用" "蒙皮[i]之前[/i]的位置。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], forces snapping of vertices to pixels in 2D rendering. " "May help in some pixel art styles.\n" "This snapping is performed on the GPU in the vertex shader.\n" "Consider using the project setting [member rendering/batching/precision/" "uv_contract] to prevent artifacts." msgstr "" "如果 [code]true[/code],则在 2D 渲染中强制将顶点对齐到像素。可能有助于某些像" "素艺术风格。\n" "这种捕捉是在顶点着色器中的 GPU 上执行的。\n" "考虑使用项目设置[member rendering/batching/precision/uv_contract] 来防止出现" "伪影。" #: doc/classes/ProjectSettings.xml msgid "" "When batching is on, this regularly prints a frame diagnosis log. Note that " "this will degrade performance." msgstr "当批处理打开时,这会定期打印帧诊断日志。请注意,这会降低性能。" #: doc/classes/ProjectSettings.xml msgid "" "[b]Experimental.[/b] For regression testing against the old renderer. If " "this is switched on, and [code]use_batching[/code] is set, the renderer will " "swap alternately between using the old renderer, and the batched renderer, " "on each frame. This makes it easy to identify visual differences. " "Performance will be degraded." msgstr "" "[b]实验性的。[/b] 用于针对旧渲染器的回归测试。如果打开并设置 " "[code]use_batching[/code],渲染器将在每一帧上交替使用旧渲染器和批处理渲染器。" "这使得识别视觉差异变得容易。性能会下降。" #: doc/classes/ProjectSettings.xml msgid "" "Lights have the potential to prevent joining items, and break many of the " "performance benefits of batching. This setting enables some complex logic to " "allow joining items if their lighting is similar, and overlap tests pass. " "This can significantly improve performance in some games. Set to 0 to switch " "off. With large values the cost of overlap tests may lead to diminishing " "returns." msgstr "" "灯有可能阻止连接项目,并破坏批处理的许多性能优势。此设置启用了一些复杂的逻" "辑,如果它们的照明相似,并且重叠测试通过,则允许加入项目。这可以显着提高某些" "游戏的性能。设置为 0 以关闭。对于较大的值,重叠测试的成本可能会导致收益递减。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the proportion of the total screen area (in pixels) that must be saved " "by a scissor operation in order to activate light scissoring. This can " "prevent parts of items being rendered outside the light area. Lower values " "scissor more aggressively. A value of 1 scissors none of the items, a value " "of 0 scissors every item. The power of 4 of the value is used, in order to " "emphasize the lower range, and multiplied by the total screen area in pixels " "to give the threshold. This can reduce fill rate requirements in scenes with " "a lot of lighting." msgstr "" "设置必须由剪切操作保存以激活光剪切的总屏幕区域的比例(以像素为单位)。这可以" "防止部分物体被渲染到光照区域之外。较低的值会让剪切更强。值为 1 不剪切任何项," "值为 0 剪切每个项。使用该值的4的幂,以强调较低的范围,并乘以以像素为单位的总" "屏幕面积以给出阈值。这可以降低具有大量照明的场景中的填充率要求。" #: doc/classes/ProjectSettings.xml msgid "" "Enabling this setting uses the legacy method to draw batches containing only " "one rect. The legacy method is faster (approx twice as fast), but can cause " "flicker on some systems. In order to directly compare performance with the " "non-batching renderer you can set this to true, but it is recommended to " "turn this off unless you can guarantee your target hardware will work with " "this method." msgstr "" "启用此设置使用传统方法绘制仅包含一个矩形的批次。传统方法更快(大约快两倍)," "但可能会导致某些系统出现闪烁。为了直接与非批处理渲染器比较性能,您可以将其设" "置为 true,但建议将其关闭,除非您可以保证您的目标硬件可以使用此方法。" #: doc/classes/ProjectSettings.xml msgid "" "Turns 2D batching on and off. Batching increases performance by reducing the " "amount of graphics API drawcalls." msgstr "" "打开和关闭 2D 批处理。批处理通过减少图形 API 绘制调用的数量来提高性能。" #: doc/classes/ProjectSettings.xml msgid "Switches on 2D batching within the editor." msgstr "在编辑器中打开 2D 批处理。" #: doc/classes/ProjectSettings.xml msgid "" "Size of buffer reserved for batched vertices. Larger size enables larger " "batches, but there are diminishing returns for the memory used. This should " "only have a minor effect on performance." msgstr "" "为批处理顶点保留的缓冲区大小。更大的尺寸支持更大的批次,但所用内存的收益递" "减。这应该只会对性能产生很小的影响。" #: doc/classes/ProjectSettings.xml msgid "" "Including color in the vertex format has a cost, however, not including " "color prevents batching across color changes. This threshold determines the " "ratio of [code]number of vertex color changes / total number of vertices[/" "code] above which vertices will be translated to colored format. A value of " "0 will always use colored vertices, 1 will never use colored vertices." msgstr "" "在顶点格式中包含颜色是有代价的,但是,不包含颜色会阻止跨颜色更改进行批处理。" "此阈值会确定 [code]顶点颜色更改次数 / 顶点总数[/code] 的比率,高于该值的顶点" "将被转换为彩色格式。值 0 将始终使用彩色顶点,1 永远不会使用彩色顶点。" #: doc/classes/ProjectSettings.xml msgid "" "In certain circumstances, the batcher can reorder items in order to better " "join them. This may result in better performance. An overlap test is needed " "however for each item lookahead, so there is a trade off, with diminishing " "returns. If you are getting no benefit, setting this to 0 will switch it off." msgstr "" "在某些情况下,批处理程序可以重新排序项目以便更好地加入它们。这可能会有更好的" "性能。然而,每个项的预先查看(lookahead)都需要重叠测试,但收益递减,因此需要权" "衡。如果您没有得到任何好处,将此设置为 0 将关闭它。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the number of commands to lookahead to determine whether to batch " "render items. A value of 1 can join items consisting of single commands, 0 " "turns off joining. Higher values are in theory more likely to join, however " "this has diminishing returns and has a runtime cost so a small value is " "recommended." msgstr "" "设置命令数以预先查看(lookahead),以确定是否批量渲染项目。值为 1 可以加入由单" "个命令组成的项目,0 关闭连接。理论上,较高的值更有可能加入,但这会降低回报," "并且具有运行成本,因此建议使用少量值。" #: doc/classes/ProjectSettings.xml msgid "" "On some platforms (especially mobile), precision issues in shaders can lead " "to reading 1 texel outside of bounds, particularly where rects are scaled. " "This can particularly lead to border artifacts around tiles in tilemaps.\n" "This adjustment corrects for this by making a small contraction to the UV " "coordinates used. Note that this can result in a slight squashing of border " "texels." msgstr "" "在某些平台(尤其是移动平台)上,着色器中的精度问题可能会导致读取 1 纹素超出边" "界,尤其是在缩放矩形的情况下。这尤其会导致图块地图中图块周围的边界伪影。\n" "此调整通过对使用的 UV 坐标进行小幅收缩来对此进行校正。请注意,这可能会导致边" "界纹素的轻微挤压。" #: doc/classes/ProjectSettings.xml msgid "" "The amount of UV contraction. This figure is divided by 1000000, and is a " "proportion of the total texture dimensions, where the width and height are " "both ranged from 0.0 to 1.0.\n" "Use the default unless correcting for a problem on particular hardware." msgstr "" "UV 收缩量。这个数字除以 1000000,是总纹理尺寸的一个比例,宽度和高度都在 0.0 " "到 1.0 之间。\n" "除非为了纠正特定硬件上的问题,否则请使用默认值。" #: doc/classes/ProjectSettings.xml msgid "" "Amount of light samples taken when using [constant BakedLightmap." "BAKE_QUALITY_HIGH]." msgstr "使用 [constant BakedLightmap.BAKE_QUALITY_HIGH] 时采集的光样本量。" #: doc/classes/ProjectSettings.xml msgid "" "Amount of light samples taken when using [constant BakedLightmap." "BAKE_QUALITY_LOW]." msgstr "使用 [constant BakedLightmap.BAKE_QUALITY_LOW] 时采集的光样本量。" #: doc/classes/ProjectSettings.xml msgid "" "Amount of light samples taken when using [constant BakedLightmap." "BAKE_QUALITY_MEDIUM]." msgstr "使用 [constant BakedLightmap.BAKE_QUALITY_MEDIUM] 时采集的光样本量。" #: doc/classes/ProjectSettings.xml msgid "" "Amount of light samples taken when using [constant BakedLightmap." "BAKE_QUALITY_ULTRA]." msgstr "使用 [constant BakedLightmap.BAKE_QUALITY_ULTRA] 时采集的光样本量。" #: doc/classes/ProjectSettings.xml msgid "" "Default background clear color. Overridable per [Viewport] using its " "[Environment]. See [member Environment.background_mode] and [member " "Environment.background_color] in particular. To change this default color " "programmatically, use [method VisualServer.set_default_clear_color]." msgstr "" "默认背景透明颜色。使用 [Environment] 可覆盖每个[Viewport]。具体请参阅 " "[member Environment.background_mode] 和 [member Environment." "background_color]。要以代码方式更改此默认颜色,请使用 [method VisualServer." "set_default_clear_color]。" #: doc/classes/ProjectSettings.xml msgid "" "[Environment] that will be used as a fallback environment in case a scene " "does not specify its own environment. The default environment is loaded in " "at scene load time regardless of whether you have set an environment or not. " "If you do not rely on the fallback environment, it is best to delete " "[code]default_env.tres[/code], or to specify a different default environment " "here." msgstr "" "[Environment] 将用作后备环境,以防场景未指定自己的环境。无论您是否设置了环" "境,都会在场景加载时加载默认环境。如果不依赖默认环境,最好删除" "[code]default_env.tres[/code],或者在这里指定不同的默认环境。" #: doc/classes/ProjectSettings.xml msgid "" "The use of half-float vertex compression may be producing rendering errors " "on some platforms (especially iOS). These have been seen particularly in " "particles. Disabling half-float may resolve these problems." msgstr "" "使用半精度浮点顶点压缩可能会在某些平台上产生渲染错误(尤其是iOS)。这些在粒子" "中尤为明显。禁用半精度浮点可能会解决这些问题。" #: doc/classes/ProjectSettings.xml msgid "" "iOS specific override for [member rendering/gles2/compatibility/" "disable_half_float], due to poor support for half-float vertex compression " "on many devices." msgstr "" "对[member rendering/gles2/compatibility/disable_half_float]的iOS特定重写,因" "为在许多设备上对半精度浮点顶点压缩的支持不佳。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code] and available on the target Android device, enables " "high floating point precision for all shader computations in GLES2.\n" "[b]Warning:[/b] High floating point precision can be extremely slow on older " "devices and is often not available at all. Use with caution." msgstr "" "如果 [code]true[/code] 并且在目标 Android 设备上可用,则为 GLES2 中的所有着色" "器计算启用高浮点精度。\n" "[b]警告:[/b]高浮点精度在旧设备上可能非常慢,而且通常根本不可用。谨慎使用。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], every time an asynchronous shader compilation or an " "asynchronous shader reconstruction from cache starts or finishes, a line " "will be logged telling how many of those are happening.\n" "If the platform doesn't support parallel shader compile, but only the " "compile queue via a secondary GL context, what the message will tell is the " "number of shader compiles currently queued.\n" "[b]Note:[/b] This setting is only meaningful if [code]rendering/gles3/" "shaders/shader_compilation_mode[/code] is [b]not[/b] [code]Synchronous[/" "code]." msgstr "" "如果为 [code]true[/code],每当着色器开始或结束异步编译、开始或结束从缓存的重" "建,都会在日志中对发生了什么添加一行记录。\n" "如果平台不支持着色器的并行编译,只支持使用二级 GL 上下文实现编译队列,则消息" "中显示的是当前队列中等待编译的着色器的数量。\n" "[b]注意:[/b]本设置仅在 [code]rendering/gles3/shaders/" "shader_compilation_mode[/code] [b]不为[/b] [code]Synchronous[/code] 时有意" "义。" #: doc/classes/ProjectSettings.xml msgid "" "This is the maximum number of shaders that can be compiled (or reconstructed " "from cache) at the same time.\n" "At runtime, while that count is reached, other shaders that can be " "asynchronously compiled will just use their fallback, without their setup " "being started until the count gets lower.\n" "This is a way to balance the CPU work between running the game and compiling " "the shaders. The goal is to have as many asynchronous compiles in flight as " "possible without impacting the responsiveness of the game, which beyond some " "point would destroy the benefits of asynchronous compilation. In other " "words, you may be able to afford that the FPS lowers a bit, and that will " "already be better than the stalling that synchronous compilation could " "cause.\n" "The default value is a conservative one, so you are advised to tweak it " "according to the hardware you are targeting.\n" "[b]Note:[/b] This setting is only meaningful if [code]rendering/gles3/" "shaders/shader_compilation_mode[/code] is [b]not[/b] [code]Synchronous[/" "code]." msgstr "" "这是同一时间所能编译(或者从缓存中重建)的着色器的最大数量。\n" "在运行时,如果已经达到了这个数量,其他能够进行异步编译的着色器会直接使用它们" "的备用方案,等到数量降低时才会开始设置。\n" "这是用来让 CPU 负载在运行游戏和编译着色器之间得到平衡的手段。目的是在进行尽可" "能多的异步编译的同时,不对游戏的响应性造成影响,否则就会辜负异步编译所带来的" "好处。换句话说,你可能会牺牲一点点的 FPS,总比同步编译让整个游戏停滞要好。\n" "默认值比较保守,所以建议你根据自己的目标硬件作出调整。\n" "[b]注意:[/b]本设置仅在 [code]rendering/gles3/shaders/" "shader_compilation_mode[/code] [b]不为[/b] [code]Synchronous[/code] 时有意" "义。" #: doc/classes/ProjectSettings.xml msgid "" "The default is a very conservative override for [code]rendering/gles3/" "shaders/max_concurrent_compiles[/code].\n" "Depending on the specific devices you are targeting, you may want to raise " "it.\n" "[b]Note:[/b] This setting is only meaningful if [code]rendering/gles3/" "shaders/shader_compilation_mode[/code] is [b]not[/b] [code]Synchronous[/" "code]." msgstr "" "默认是针对 [code]rendering/gles3/shaders/max_concurrent_compiles[/code] 的覆" "盖,取值非常保守。\n" "根据你所设定为目标的特定设备,你可能会想要提高这个值。\n" "[b]注意:[/b]本设置仅在 [code]rendering/gles3/shaders/" "shader_compilation_mode[/code] [b]不为[/b] [code]Synchronous[/code] 时有意" "义。" #: doc/classes/ProjectSettings.xml msgid "" "The maximum size, in megabytes, that the ubershader cache can grow up to. On " "startup, the least recently used entries will be deleted until the total " "size is within bounds.\n" "[b]Note:[/b] This setting is only meaningful if [code]rendering/gles3/" "shaders/shader_compilation_mode[/code] is set to [code]Asynchronous + Cache[/" "code]." msgstr "" "超级着色器缓存所能增长到的最大大小,单位为兆字节。在启动时,会删除最久未用的" "条目,直到总大小到达范围内。\n" "[b]注意:[/b]本设置仅在 [code]rendering/gles3/shaders/" "shader_compilation_mode[/code] 为 [code]Asynchronous + Cache[/code] 时有意" "义。" #: doc/classes/ProjectSettings.xml msgid "" "An override for [code]rendering/gles3/shaders/ubershader_cache_size_mb[/" "code], so a smaller maximum size can be configured for mobile platforms, " "where storage space is more limited.\n" "[b]Note:[/b] This setting is only meaningful if [code]rendering/gles3/" "shaders/shader_compilation_mode[/code] is set to [code]Asynchronous + Cache[/" "code]." msgstr "" "[code]rendering/gles3/shaders/ubershader_cache_size_mb[/code] 的覆盖项,为针" "对移动平台配置更小的最大大小,移动平台的存储空间更有限。\n" "[b]注意:[/b]本设置仅在 [code]rendering/gles3/shaders/" "shader_compilation_mode[/code] 为 [code]Asynchronous + Cache[/code] 时有意" "义。" #: doc/classes/ProjectSettings.xml msgid "" "If set to [code]Asynchronous[/code] and available on the target device, " "asynchronous compilation of shaders is enabled (in contrast to " "[code]Asynchronous[/code]).\n" "That means that when a shader is first used under some new rendering " "situation, the game won't stall while such shader is being compiled. " "Instead, a fallback will be used and the real shader will be compiled in the " "background. Once the actual shader is compiled, it will be used the next " "times it's used to draw a frame.\n" "Depending on the async mode configured for a given material/shader, the " "fallback will be an \"ubershader\" (the default) or just skip rendering any " "item it is applied to.\n" "An ubershader is a very complex shader, slow but suited to any rendering " "situation, that the engine generates internally so it can be used from the " "beginning while the traditional conditioned, optimized version of it is " "being compiled.\n" "To reduce loading times after the project has been launched at least once, " "you can use [code]Asynchronous + Cache[/code]. This also causes the " "ubershaders to be cached into storage so they can be ready faster next time " "they are used (provided the platform provides support for it).\n" "[b]Note:[/b] Asynchronous compilation is currently only supported for " "spatial (3D) and particle materials/shaders. CanvasItem (2D) shaders will " "not use asynchronous compilation even if this setting is set to " "[code]Asynchronous[/code] or [code]Asynchronous + Cache[/code]." msgstr "" "设为 [code]Asynchronous[/code] 时,如果目标设备具备条件,就会启用着色器的异步" "编译(此处点题 [code]Asynchronous[/code])。\n" "这意味着,在全新的渲染环境中首次使用某个着色器时,编译着色器不会导致游戏停" "滞。取而代之的是使用后备方案,而实际的着色器会在后台进行编译。一旦实际的着色" "器完成编译,就会在下一次需要用它进行帧绘图时使用。\n" "根据给定材质/着色器所配置的异步模式的不同,后备方案可能是使用“超级着色器”(默" "认)也可能是直接跳过对使用它的对象的渲染。\n" "超级着色器是一个非常复杂的着色器,虽然慢但是可以用于任何渲染环境。引擎会在内" "部生成这个着色器,这样在一开始就能使用,而传统的根据不同条件优化的版本则需要" "进行编译。\n" "如果想要在项目运行至少一次后减少加载时间,你可以使用 [code]Asynchronous + " "Cache[/code]。这样会让超级着色器也被缓存到存储之中,这样下一次使用时准备起来" "就会更快(前提是平台支持这么做)。\n" "[b]注意:[/b]异步编译目前只支持空间(3D)和粒子材质/着色器。即使该设置为 " "[code]Asynchronous[/code] 或 [code]Asynchronous + Cache[/code],画布项(2D)" "着色器也不会使用异步编译。" #: doc/classes/ProjectSettings.xml msgid "" "An override for [code]rendering/gles3/shaders/shader_compilation_mode[/" "code], so asynchronous compilation can be disabled for mobile.\n" "You may want to do that since mobile GPUs generally won't support " "ubershaders due to their complexity." msgstr "" "[code]rendering/gles3/shaders/shader_compilation_mode[/code] 的覆盖项,用于为" "移动设备禁用异步编译。\n" "移动 GPU 通常不会支持超级着色器,因为其复杂度较高。" #: doc/classes/ProjectSettings.xml msgid "" "Max buffer size for blend shapes. Any blend shape bigger than this will not " "work." msgstr "混合形状的最大缓冲区大小。任何比这更大的混合形状都不起作用。" #: doc/classes/ProjectSettings.xml msgid "" "Max buffer size for drawing polygons. Any polygon bigger than this will not " "work." msgstr "绘制多边形的最大缓冲区大小。任何大于此的多边形都不起作用。" #: doc/classes/ProjectSettings.xml msgid "" "Max index buffer size for drawing polygons. Any polygon bigger than this " "will not work." msgstr "绘制多边形的最大索引缓冲区大小。任何大于此的多边形都不起作用。" #: doc/classes/ProjectSettings.xml msgid "" "Max buffer size for drawing immediate objects (ImmediateGeometry nodes). " "Nodes using more than this size will not work." msgstr "" "用于绘制直接对象(ImmediateGeometry 节点)的最大缓冲区大小。使用超过此大小的" "节点将无法工作。" #: doc/classes/ProjectSettings.xml msgid "" "Max number of lights renderable per object. This is further limited by " "hardware support. Most devices only support 409 lights, while many devices " "(especially mobile) only support 102. Setting this low will slightly reduce " "memory usage and may decrease shader compile times." msgstr "" "每个对象可渲染的最大灯光数。这进一步受到硬件支持的限制。大多数设备仅支持 409 " "个灯光,而许多设备(尤其是移动设备)仅支持 102 灯。将此设置为低会略微减少内存" "使用并可能减少着色器编译时间。" #: doc/classes/ProjectSettings.xml msgid "" "Max amount of elements renderable in a frame. If more elements than this are " "visible per frame, they will not be drawn. Keep in mind elements refer to " "mesh surfaces and not meshes themselves. Setting this low will slightly " "reduce memory usage and may decrease shader compile times, particularly on " "web. For most uses, the default value is suitable, but consider lowering as " "much as possible on web export." msgstr "" "一帧中可渲染元素的最大数量。如果每帧可见更多元素,则不会绘制它们。请记住,元" "素是指网格表面而不是网格本身。将此值设置得较低会略微减少内存使用量并可能减少" "着色器编译时间,尤其是在 Web 上。对于大多数用途,默认值是合适的,但考虑在 " "Web 导出时尽可能降低。" #: doc/classes/ProjectSettings.xml msgid "" "Max number of lights renderable in a frame. If more lights than this number " "are used, they will be ignored. Setting this low will slightly reduce memory " "usage and may decrease shader compile times, particularly on web. For most " "uses, the default value is suitable, but consider lowering as much as " "possible on web export." msgstr "" "一帧中可渲染的最大灯光数。如果使用的灯光数超过此数量,则它们将被忽略。将此值" "设置得较低会略微减少内存使用量并可能减少着色器编译时间,尤其是在 Web 上。对于" "大多数用途,默认值是合适的,但考虑在 Web 导出时尽可能降低。" #: doc/classes/ProjectSettings.xml msgid "" "Max number of reflection probes renderable in a frame. If more reflection " "probes than this number are used, they will be ignored. Setting this low " "will slightly reduce memory usage and may decrease shader compile times, " "particularly on web. For most uses, the default value is suitable, but " "consider lowering as much as possible on web export." msgstr "" "一帧中可渲染的最大反射探针数。如果使用的反射探针数超过此数量,则它们将被忽" "略。将此值设置得较低会略微减少内存使用量并可能减少着色器编译时间,尤其是在 " "Web 上。对于大多数用途,默认值是合适的,但考虑在 Web 导出时尽可能降低。" #: doc/classes/ProjectSettings.xml msgid "" "Shaders have a time variable that constantly increases. At some point, it " "needs to be rolled back to zero to avoid precision errors on shader " "animations. This setting specifies when (in seconds)." msgstr "" "着色器有一个不断增加的时间变量。在某些时候,它需要回滚到零以避免着色器动画的" "精度错误。此设置用于设定时间(以秒为单位)。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the texture importer will import lossless textures " "using the PNG format. Otherwise, it will default to using WebP." msgstr "" "如果为 [code]true[/code],纹理导入器将使用 PNG 格式导入无损纹理。否则默认使" "用 WebP。" #: doc/classes/ProjectSettings.xml msgid "" "The default compression level for lossless WebP. Higher levels result in " "smaller files at the cost of compression speed. Decompression speed is " "mostly unaffected by the compression level. Supported values are 0 to 9. " "Note that compression levels above 6 are very slow and offer very little " "savings." msgstr "" "无损 WebP 的默认压缩级别。更高的级别会产生更小的文件,但会牺牲压缩速度。解压" "速度大多不受压缩级别的影响。支持的值是 0 到 9。请注意,高于 6 的压缩级别非常" "慢,而且节省的占用非常少。" #: doc/classes/ProjectSettings.xml msgid "" "On import, mesh vertex data will be split into two streams within a single " "vertex buffer, one for position data and the other for interleaved " "attributes data. Recommended to be enabled if targeting mobile devices. " "Requires manual reimport of meshes after toggling." msgstr "" "导入时,网格顶点数据将在单个顶点缓冲区内分成两个流,一个用于位置数据,另一个" "用于交错属性数据。如果用于移动设备,建议启用。切换后需要手动重新导入网格。" #: doc/classes/ProjectSettings.xml msgid "" "Determines the maximum number of polygon occluders that will be used at any " "one time.\n" "Although you can have many occluders in a scene, each frame the system will " "choose from these the most relevant based on a screen space metric, in order " "to give the best overall performance.\n" "A greater number of polygons can potentially cull more objects, however the " "cost of culling calculations scales with the number of occluders." msgstr "" "确定将在任何时候使用的球体遮挡器的最大数量。\n" "尽管一个场景中可以有许多遮挡物,但系统会根据屏幕空间度量从这些遮挡物中选择最" "相关的每一帧,以提供最佳的整体性能。\n" "大量的多边形可能剔除更多的对象,但是剔除计算的消耗也会随遮挡物的数量增加。" #: doc/classes/ProjectSettings.xml msgid "" "Determines the maximum number of sphere occluders that will be used at any " "one time.\n" "Although you can have many occluders in a scene, each frame the system will " "choose from these the most relevant based on a screen space metric, in order " "to give the best overall performance." msgstr "" "确定将在任何时候使用的球体遮挡器的最大数量。\n" "尽管一个场景中可以有许多遮挡物,但系统会根据屏幕空间度量从这些遮挡物中选择最" "相关的每一帧,以提供最佳的整体性能。" #: doc/classes/ProjectSettings.xml msgid "" "The default convention is for portal normals to point outward (face outward) " "from the source room.\n" "If you accidentally build your level with portals facing the wrong way, this " "setting can fix the problem.\n" "It will flip named portal meshes (i.e. [code]-portal[/code]) on the initial " "conversion to [Portal] nodes." msgstr "" "默认的惯例是,入口的法线指向源房间外部(面朝外)。\n" "如果你在建造关卡时不小心将入口都朝向了错误的方向,这个设置可以解决这个问" "题。\n" "它将在初始转换为 [Portal] 节点时翻转命名的入口网格(即 [code]-portal[/" "code])。" #: doc/classes/ProjectSettings.xml msgid "" "Show conversion logs.\n" "[b]Note:[/b] This will automatically be disabled in exports." msgstr "" "显示转换日志。\n" "[b]注意:[/b]这将在导出时自动禁用。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], gameplay callbacks will be sent as [code]signals[/" "code]. If [code]false[/code], they will be sent as [code]notifications[/" "code]." msgstr "" "如果为 [code]true[/code],游戏回调将作为 [code]signal[/code] 发送。如果为 " "[code]false[/code],它们将作为[code]通知[/code]发送。" #: doc/classes/ProjectSettings.xml msgid "" "If enabled, while merging meshes, the system will also attempt to remove " "[Spatial] nodes that no longer have any children.\n" "Reducing the number of [Node]s in the scene tree can make traversal more " "efficient, but can be switched off in case you wish to use empty [Spatial]s " "for markers or some other purpose." msgstr "" "如果启用,在合并网格时,系统还将尝试删除不再有任何子项的 [Spatial] 节点。\n" "减少场景树中 [Node] 的数量可以提高遍历效率,但如果您希望将空的 [Spatial] 用于" "标记或其他目的,则可以将其关闭。" #: doc/classes/ProjectSettings.xml msgid "" "Show logs during PVS generation.\n" "[b]Note:[/b] This will automatically be disabled in exports." msgstr "" "在 PVS 生成期间显示日志。\n" "[b]注意:[/b]这将在导出时自动禁用。" #: doc/classes/ProjectSettings.xml msgid "" "Uses a simplified method of generating PVS (potentially visible set) data. " "The results may not be accurate where more than one portal join adjacent " "rooms.\n" "[b]Note:[/b] Generally you should only use this option if you encounter bugs " "when it is set to [code]false[/code], i.e. there are problems with the " "default method." msgstr "" "使用生成 PVS(潜在可见集)数据的简化方法。当多个入口连接相邻空间时,结果可能" "不准确。\n" "[b]注意:[/b]一般只有在设置为 [code]false[/code] 遇到问题,即默认方法有问题" "时,才应该使用该选项。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], allocates the root [Viewport]'s framebuffer with high " "dynamic range. High dynamic range allows the use of [Color] values greater " "than 1. This must be set to [code]true[/code] for glow rendering to work if " "[member Environment.glow_hdr_threshold] is greater than or equal to " "[code]1.0[/code].\n" "[b]Note:[/b] Only available on the GLES3 backend." msgstr "" "如果为 [code]true[/code],分配根 [Viewport] 的帧缓冲时将使用高动态范围。高动" "态范围允许使用大于 1 的 [Color] 值。如果 [member Environment." "glow_hdr_threshold] 大于等于 [code]1.0[/code],那么就必须将其设为 " "[code]true[/code],辉光渲染才能正常工作。\n" "[b]注意:[/b]仅在 GLES3 后端中可用。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/depth/hdr] on mobile " "devices, due to performance concerns or driver support. This must be set to " "[code]true[/code] for glow rendering to work if [member Environment." "glow_hdr_threshold] is greater than or equal to [code]1.0[/code].\n" "[b]Note:[/b] Only available on the GLES3 backend." msgstr "" "[member rendering/quality/depth/hdr] 在移动设备上的低端的覆盖项,为的是性能考" "量或驱动支持。如果 [member Environment.glow_hdr_threshold] 大于等于 " "[code]1.0[/code],那么就必须将其设为 [code]true[/code],辉光渲染才能正常工" "作。\n" "[b]注意:[/b]仅在 GLES3 后端中可用。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], allocates the root [Viewport]'s framebuffer with full " "floating-point precision (32-bit) instead of half floating-point precision " "(16-bit). Only effective when [member rendering/quality/depth/hdr] is also " "enabled.\n" "[b]Note:[/b] Enabling this setting does not improve rendering quality. Using " "full floating-point precision is slower, and is generally only needed for " "advanced shaders that require a high level of precision. To reduce banding, " "enable [member rendering/quality/filters/use_debanding] instead.\n" "[b]Note:[/b] Only available on the GLES3 backend." msgstr "" "如果为 [code]true[/code],分配根 [Viewport] 的帧缓冲时将使用完整浮点数精度" "(32 位)而不是半浮点数精度(16 位)。仅在同时启用 [member rendering/quality/" "depth/hdr] 时有效。\n" "[b]注意:[/b]启用这个设置不会提升渲染质量。使用完整浮点数精度较慢,一般只有要" "求更高精度的高级着色器需要使用。如果是要减少条带效应,请启用 [member " "rendering/quality/filters/use_debanding]。\n" "[b]注意:[/b]仅在 GLES3 后端中可用。" #: doc/classes/ProjectSettings.xml msgid "" "Disables depth pre-pass for some GPU vendors (usually mobile), as their " "architecture already does this." msgstr "" "对一些 GPU 供应商(通常是移动设备)禁用深度预处理,因为他们的架构已经做了这" "个。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], performs a previous depth pass before rendering " "materials. This increases performance in scenes with high overdraw, when " "complex materials and lighting are used." msgstr "" "如果为 [code]true[/code],则在渲染材质之前执行更早的深度阶段。当使用复杂的材" "质和照明时,会提高高度重绘场景的性能。" #: doc/classes/ProjectSettings.xml msgid "" "The directional shadow's size in pixels. Higher values will result in " "sharper shadows, at the cost of performance. The value will be rounded up to " "the nearest power of 2. This setting can be changed at run-time; the change " "will be applied immediately." msgstr "" "方向性阴影的大小,以像素为单位。更高的值会导致更清晰的阴影,但会以性能为代" "价。该值将被四舍五入到最接近的 2 的指数倍。该设置可以在运行时修改;修改会立即" "生效。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/directional_shadow/size] on " "mobile devices, due to performance concerns or driver support." msgstr "" "由于性能和驱动支持的问题,在移动设备上会对[member rendering/quality/" "directional_shadow/size] 以低配数值覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "The video driver to use (\"GLES2\" or \"GLES3\").\n" "[b]Note:[/b] The backend in use can be overridden at runtime via the [code]--" "video-driver[/code] command line argument, or by the [member rendering/" "quality/driver/fallback_to_gles2] option if the target system does not " "support GLES3 and falls back to GLES2. In such cases, this property is not " "updated, so use [method OS.get_current_video_driver] to query it at run-time." msgstr "" "要使用的视频驱动(\"GLES2\"或 \"GLES3\")。\n" "[b]注意:[/b]使用中的后端可以在运行时通过[code]--video-driver[/code]命令行参" "数而覆盖,如果目标系统不支持GLES3,要退回到GLES2,则可以通过[member " "rendering/quality/driver/fallback_to_gles2]选项。在这种情况下,这个属性不会被" "更新,所以在运行时使用[method OS.get_current_video_driver]来查询。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], allows falling back to the GLES2 driver if the GLES3 " "driver is not supported.\n" "[b]Note:[/b] The two video drivers are not drop-in replacements for each " "other, so a game designed for GLES3 might not work properly when falling " "back to GLES2. In particular, some features of the GLES3 backend are not " "available in GLES2. Enabling this setting also means that both ETC and ETC2 " "VRAM-compressed textures will be exported on Android and iOS, increasing the " "data pack's size." msgstr "" "如果 [code]true[/code],且不支持 GLES3 驱动程序,则允许回退到 GLES2 驱动程" "序。\n" "[b]注意:[/b]两个显卡驱动不是互相替代的,所以为 GLES3 设计的游戏在回退到 " "GLES2 时可能无法正常运行。特别是,GLES3 后端的某些功能在 GLES2 中不可用。启用" "此设置还意味着 ETC 和 ETC2 VRAM 压缩纹理将在 Android 和 iOS 上导出,从而增加" "数据包的大小。" #: doc/classes/ProjectSettings.xml msgid "" "Maximum anisotropic filter level used for textures with anisotropy enabled. " "Higher values will result in sharper textures when viewed from oblique " "angles, at the cost of performance. Only power-of-two values are valid (2, " "4, 8, 16)." msgstr "" "用于启用各向异性的纹理的最大各向异性过滤器级别。从倾斜角度查看时,较高的值将" "导致更清晰的纹理,但会牺牲性能。只有二的指数倍的值是有效(如 2、4、8、16)。" #: doc/classes/ProjectSettings.xml msgid "" "Sets the number of MSAA samples to use. MSAA is used to reduce aliasing " "around the edges of polygons. A higher MSAA value results in smoother edges " "but can be significantly slower on some hardware.\n" "[b]Note:[/b] MSAA is not available on HTML5 export using the GLES2 backend." msgstr "" "设置要使用的 MSAA 样本数。MSAA 可用于减少多边形边缘的混叠。较高的 MSAA 值可以" "使边缘更平滑,但在某些硬件上会明显变慢。\n" "[b]注意:[/b]MSAA 在使用 GLES2 后端的 HTML5 导出中不可用。" #: doc/classes/ProjectSettings.xml msgid "" "If set to a value greater than [code]0.0[/code], contrast-adaptive " "sharpening will be applied to the 3D viewport. This has a low performance " "cost and can be used to recover some of the sharpness lost from using FXAA. " "Values around [code]0.5[/code] generally give the best results. See also " "[member rendering/quality/filters/use_fxaa]." msgstr "" "如果设置为大于 [code]0.0[/code] 的值,对比度自适应锐化将应用于 3D 视口。这具" "有较低的性能成本,可用于恢复使用 FXAA 时损失的一些锐度。 [code]0.5[/code] 附" "近的值通常会给出最好的结果。另见 [member rendering/quality/filters/" "use_fxaa]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], uses a fast post-processing filter to make banding " "significantly less visible. In some cases, debanding may introduce a " "slightly noticeable dithering pattern. It's recommended to enable debanding " "only when actually needed since the dithering pattern will make lossless-" "compressed screenshots larger.\n" "[b]Note:[/b] Only available on the GLES3 backend. [member rendering/quality/" "depth/hdr] must also be [code]true[/code] for debanding to be effective.\n" "[b]Note:[/b] There are known issues with debanding breaking rendering on " "mobile platforms. Due to this, it is recommended to leave this option " "disabled when targeting mobile platforms." msgstr "" "如果为 [code]true[/code],则使用快速后处理过滤器使条带明显不那么明显。在某些" "情况下,去带可能会引入稍微明显的抖动模式。建议仅在实际需要时启用去条带,因为" "抖动模式会使无损压缩的屏幕截图更大。\n" "[b]注意:[/b]仅在 GLES3 后端可用。 [member rendering/quality/depth/hdr] 也必" "须为 [code]true[/code] 才能使去色带有效。\n" "[b]注意:[/b]已知在移动平台上的去色带存在破坏渲染的问题。因此,建议在用于移动" "平台时禁用此选项。" #: doc/classes/ProjectSettings.xml msgid "" "Enables FXAA in the root Viewport. FXAA is a popular screen-space " "antialiasing method, which is fast but will make the image look blurry, " "especially at lower resolutions. It can still work relatively well at large " "resolutions such as 1440p and 4K. Some of the lost sharpness can be " "recovered by enabling contrast-adaptive sharpening (see [member rendering/" "quality/filters/sharpen_intensity])." msgstr "" "在根 Viewport 中启用 FXAA。FXAA 是一种流行的屏幕空间抗锯齿方法,它速度快,但" "会使图像看起来很模糊,特别是在低分辨率下。在 1440p 和 4K 这样的大分辨率下,可" "以工作得比较好。一些损失的锐度可以通过启用对比度适应性锐化来恢复,参阅 " "[member rendering/quality/filters/sharpen_intensity]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], uses nearest-neighbor mipmap filtering when using " "mipmaps (also called \"bilinear filtering\"), which will result in visible " "seams appearing between mipmap stages. This may increase performance in " "mobile as less memory bandwidth is used. If [code]false[/code], linear " "mipmap filtering (also called \"trilinear filtering\") is used." msgstr "" "如果 [code]true[/code],则在使用 mipmap 时使用最近邻 mipmap 过滤(也称为“双线" "性过滤”),这将导致 mipmap 阶段之间出现可见的接缝。由于使用较少的内存带宽,这" "可能会提高移动设备的性能。如果 [code]false[/code],则使用线性 mipmap 过滤(也" "称为“三线性过滤”)。" #: doc/classes/ProjectSettings.xml msgid "" "Strategy used for framebuffer allocation. The simpler it is, the less " "resources it uses (but the less features it supports). If set to \"2D " "Without Sampling\" or \"3D Without Effects\", sample buffers will not be " "allocated. This means [code]SCREEN_TEXTURE[/code] and [code]DEPTH_TEXTURE[/" "code] will not be available in shaders and post-processing effects such as " "glow will not be available in [Environment]." msgstr "" "用于帧缓冲区的分配策略。它越简单,使用的资源就越少(但支持的功能也越少)。如" "果设置为“2D Without Sampling”(2D 无采样)或“3D Without Effects”(3D 无特" "效),将不分配采样缓冲区。这意味着 [code]SCREEN_TEXTURE[/code] 和 " "[code]DEPTH_TEXTURE[/code] 将不能在着色器中使用,辉光等后处理特效将不能在 " "[Environment] 中使用。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/intended_usage/" "framebuffer_allocation] on mobile devices, due to performance concerns or " "driver support." msgstr "" "由于性能或驱动支持问题,在移动设备上对[member rendering/quality/" "intended_usage/framebuffer_allocation]以低配数值覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "Enable usage of bicubic sampling in baked lightmaps. This results in " "smoother looking lighting at the expense of more bandwidth usage. On GLES2, " "changes to this setting will only be applied upon restarting the application." msgstr "" "在烘焙光照贴图中启用双三次采样。这会导致更平滑的照明,但会占用更多带宽。在 " "GLES2 上,只有在重新启动应用程序时才会应用对此设置的更改。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/lightmapping/" "use_bicubic_sampling] on mobile devices, in order to reduce bandwidth usage." msgstr "" "在移动设备上对[member rendering/quality/lightmapping/use_bicubic_sampling]进" "行低端覆盖,以减少带宽使用。" #: doc/classes/ProjectSettings.xml msgid "" "Size of the atlas used by reflection probes. A larger size can result in " "higher visual quality, while a smaller size will be faster and take up less " "memory." msgstr "" "反射探针使用的图集的大小。较大的尺寸可以带来更高的视觉质量,而较小的尺寸会更" "快并占用更少的内存。" #: doc/classes/ProjectSettings.xml msgid "" "Number of subdivisions to use for the reflection atlas. A higher number " "lowers the quality of each atlas, but allows you to use more." msgstr "" "用于反射图集的细分数。较高的数字会降低每个图集的质量,但允许您使用更多细分。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], uses a high amount of samples to create blurred " "variants of reflection probes and panorama backgrounds (sky). Those blurred " "variants are used by rough materials." msgstr "" "如果 [code]true[/code],则使用大量样本来创建反射探针和全景背景(天空)的模糊" "变体。这些模糊的变体可以被粗糙的材质使用。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/reflections/" "high_quality_ggx] on mobile devices, due to performance concerns or driver " "support." msgstr "" "由于性能问题或驱动器支持,在移动设备上对[member rendering/quality/" "reflections/high_quality_ggx]进行低端覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "Limits the size of the irradiance map which is normally determined by " "[member Sky.radiance_size]. A higher size results in a higher quality " "irradiance map similarly to [member rendering/quality/reflections/" "high_quality_ggx]. Use a higher value when using high-frequency HDRI maps, " "otherwise keep this as low as possible.\n" "[b]Note:[/b] Low and mid range hardware do not support complex irradiance " "maps well and may crash if this is set too high." msgstr "" "限制辐照度贴图的大小,通常由 [member Sky.radiance_size] 确定。与[member " "rendering/quality/reflections/high_quality_ggx] 类似,更大的尺寸会产生更高质" "量的辐照度贴图。使用高频 HDRI 贴图时使用较高的值,否则请尽可能降低该值。\n" "[b]注意:[/b]中低档硬件不能很好地支持复杂的辐照度贴图,如果设置太高可能会崩" "溃。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], uses texture arrays instead of mipmaps for reflection " "probes and panorama backgrounds (sky). This reduces jitter noise on " "reflections, but costs more performance and memory." msgstr "" "为 [code]true[/code] 时将对反射探针和全景背景(天空)使用纹理数组而不是多级渐" "远纹理。这可以减少反射的抖动噪声,但要消耗更多的性能和内存。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/reflections/" "texture_array_reflections] on mobile devices, due to performance concerns or " "driver support." msgstr "" "由于性能问题或驱动支持,在移动设备上将对 [member rendering/quality/" "reflections/texture_array_reflections] 以低性能数值覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], uses faster but lower-quality Blinn model to generate " "blurred reflections instead of the GGX model." msgstr "" "如果为 [code]true[/code],则使用速度更快但质量较低的 Blinn 模型来生成模糊反" "射,不使用 GGX 模型。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/shading/" "force_blinn_over_ggx] on mobile devices, due to performance concerns or " "driver support." msgstr "" "由于性能或驱动支持问题,在移动设备上将对 [member rendering/quality/shading/" "force_blinn_over_ggx] 以低值覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], uses faster but lower-quality Lambert material " "lighting model instead of Burley." msgstr "" "如果为 [code]true[/code],则使用速度更快但质量较低的 Lambert 材质照明模型,不" "使用 Burley 模型。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/shading/" "force_lambert_over_burley] on mobile devices, due to performance concerns or " "driver support." msgstr "" "由于性能问题或驱动支持,在移动设备上将对 [member rendering/quality/shading/" "force_lambert_over_burley] 以低配数值覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], forces vertex shading for all 3D [SpatialMaterial] and " "[ShaderMaterial] rendering. This can be used to improve performance on low-" "end mobile devices. The downside is that shading becomes much less accurate, " "with visible linear interpolation between vertices that are joined together. " "This can be compensated by ensuring meshes have a sufficient level of " "subdivision (but not too much, to avoid reducing performance). Some material " "features are also not supported when vertex shading is enabled.\n" "See also [member SpatialMaterial.flags_vertex_lighting] which can be used to " "enable vertex shading on specific materials only.\n" "[b]Note:[/b] This setting does not affect unshaded materials." msgstr "" "如果为 [code]true[/code],会强制所有 3D [SpatialMaterial] 和 " "[ShaderMaterial] 使用顶点着色渲染。可用于在低端移动设备上提升性能。缺点是着色" "精度会大幅下降,相连的顶点间会有可见的线性插值。可以通过确保网格有足够的细分" "层级来补偿(但层级不能过多,否则会降低性能)。启用顶点着色时,不支持某些材质" "特性。\n" "另请参阅 [member SpatialMaterial.flags_vertex_lighting],可以仅在特定的材质启" "用顶点着色。\n" "[b]注意:[/b]这个设置不会影响未着色材质。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/shading/" "force_vertex_shading] on mobile devices, due to performance concerns or " "driver support. If lighting looks broken after exporting the project to a " "mobile platform, try disabling this setting." msgstr "" "由于性能问题或驱动支持,在移动设备上将对 [member rendering/quality/shading/" "force_vertex_shading] 以低配数值覆盖。如果将项目导出至移动平台后,光照出现问" "题,请尝试禁用此设置。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], enables new physical light attenuation for " "[OmniLight]s and [SpotLight]s. This results in more realistic lighting " "appearance with a very small performance cost. When physical light " "attenuation is enabled, lights will appear to be darker as a result of the " "new attenuation formula. This can be compensated by adjusting the lights' " "energy or attenuation values.\n" "Changes to this setting will only be applied upon restarting the application." msgstr "" "如果为 [code]true[/code],则为 [OmniLight] 和 [SpotLight] 启用新的物理光衰" "减。这会以非常小的性能成本获得更逼真的照明外观。启用物理光衰减后,由于新的衰" "减公式,灯光会显得更暗。这可以通过调整灯光的能量或衰减值来补偿。\n" "对此设置的更改只会在重新启动应用程序时应用。" #: doc/classes/ProjectSettings.xml msgid "" "Size for cubemap into which the shadow is rendered before being copied into " "the shadow atlas. A higher number can result in higher resolution shadows " "when used with a higher [member rendering/quality/shadow_atlas/size]. " "Setting higher than a quarter of the [member rendering/quality/shadow_atlas/" "size] will not result in a perceptible increase in visual quality." msgstr "" "立方体贴图的大小,在将阴影复制到阴影图集中之前将其渲染到其中。当与更高的 " "[member rendering/quality/shadow_atlas/size] 一起使用时,更高的数字会导致更高" "分辨率的阴影。设置高于 [member rendering/quality/shadow_atlas/size] 的四分之" "一不会导致视觉质量的明显提高。" #: doc/classes/ProjectSettings.xml msgid "" "Subdivision quadrant size for shadow mapping. See shadow mapping " "documentation." msgstr "阴影贴图的细分象限大小。请参阅阴影映射文档。" #: doc/classes/ProjectSettings.xml msgid "" "Size for shadow atlas (used for OmniLights and SpotLights). See " "documentation." msgstr "阴影图集的尺寸(用于 OmniLight 和 SpotLight)。见文档。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/shadow_atlas/size] on " "mobile devices, due to performance concerns or driver support." msgstr "" "由于性能或驱动支持问题,在移动设备上将对 [member rendering/quality/" "shadow_atlas/size] 以低配数值覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "Shadow filter mode. Higher-quality settings result in smoother shadows that " "flicker less when moving. \"Disabled\" is the fastest option, but also has " "the lowest quality. \"PCF5\" is smoother but is also slower. \"PCF13\" is " "the smoothest option, but is also the slowest.\n" "[b]Note:[/b] When using the GLES2 backend, the \"PCF13\" option actually " "uses 16 samples to emulate linear filtering in the shader. This results in a " "shadow appearance similar to the one produced by the GLES3 backend." msgstr "" "阴影过滤模式。较高的质量设置会产生更平滑的阴影,在移动时闪烁更" "少。“Disabled”是最快的选项,但也有最低的质量。“PCF5”更平滑,但也更" "慢。“PCF13”是最平滑的选项,但也是最慢的。\n" "[b]注意:[/b]当使用 GLES2 后端时,“PCF13”选项实际上使用 16 个样本来模拟着色器" "中的线性滤波。这导致了与 GLES3 后端产生的阴影外观相似。" #: doc/classes/ProjectSettings.xml msgid "" "Lower-end override for [member rendering/quality/shadows/filter_mode] on " "mobile devices, due to performance concerns or driver support." msgstr "" "由于性能问题或驱动器支持,在移动设备上对 [member rendering/quality/shadows/" "filter_mode] 进行低端覆盖。" #: doc/classes/ProjectSettings.xml msgid "" "Forces [MeshInstance] to always perform skinning on the CPU (applies to both " "GLES2 and GLES3).\n" "See also [member rendering/quality/skinning/software_skinning_fallback]." msgstr "" "强制 [MeshInstance] 始终在 CPU 上执行蒙皮(适用于 GLES2 和 GLES3)。\n" "另见 [member rendering/quality/skinning/software_skinning_fallback]。" #: doc/classes/ProjectSettings.xml msgid "" "Allows [MeshInstance] to perform skinning on the CPU when the hardware " "doesn't support the default GPU skinning process with GLES2.\n" "If [code]false[/code], an alternative skinning process on the GPU is used in " "this case (slower in most cases).\n" "See also [member rendering/quality/skinning/force_software_skinning].\n" "[b]Note:[/b] When the software skinning fallback is triggered, custom vertex " "shaders will behave in a different way, because the bone transform will be " "already applied to the modelview matrix." msgstr "" "当硬件不支持 GLES2 的默认 GPU 蒙皮过程时,允许 [MeshInstance] 在 CPU 上执行蒙" "皮。\n" "如果 [code]false[/code],则在这种情况下使用 GPU 上的替代蒙皮过程(在大多数情" "况下较慢)。\n" "另见[member rendering/quality/skinning/force_software_skinning]。\n" "[b]注意:[/b]当触发软件蒙皮回退时,自定义顶点着色器将以不同的方式运行,因为骨" "骼变换已经应用于模型视图矩阵。" #: doc/classes/ProjectSettings.xml msgid "" "Additional expansion applied to object bounds in the 3D rendering bounding " "volume hierarchy. This can reduce BVH processing at the cost of a slightly " "reduced accuracy.\n" "The default value will work well in most situations. A value of 0.0 will " "turn this optimization off, and larger values may work better for larger, " "faster moving objects.\n" "[b]Note:[/b] Used only if [member ProjectSettings.rendering/quality/" "spatial_partitioning/use_bvh] is enabled." msgstr "" "在 3D 渲染包围体积层次结构中,为对象的界限进行的额外扩展。可以减小 BVH 的处理" "量,代价是让精确度稍微降低。\n" "默认值在大多数情况下可以很好地工作。为 0.0 时将关闭该优化,较大的值可能能够更" "好地处理较大、较快的运动物体。\n" "[b]注意:[/b]仅在启用 [member ProjectSettings.rendering/quality/" "spatial_partitioning/use_bvh] 时使用。" #: doc/classes/ProjectSettings.xml msgid "" "The rendering octree balance can be changed to favor smaller ([code]0[/" "code]), or larger ([code]1[/code]) branches.\n" "Larger branches can increase performance significantly in some projects.\n" "[b]Note:[/b] Not used if [member ProjectSettings.rendering/quality/" "spatial_partitioning/use_bvh] is enabled." msgstr "" "渲染八叉树的平衡值可以改变为有利于更小的([code]0[/code])或更大的([code]1[/" "code])的分支。\n" "在某些项目中,较大的分支可以显着提高性能。\n" "[b]注意:[/b]启用 [member ProjectSettings.rendering/quality/" "spatial_partitioning/use_bvh] 时不会使用。" #: doc/classes/ProjectSettings.xml msgid "" "Enables the use of bounding volume hierarchy instead of octree for rendering " "spatial partitioning. This may give better performance." msgstr "" "启用边界体积层次结构而不是八叉树来渲染空间分区。这可能会带来更好的性能。" #: doc/classes/ProjectSettings.xml msgid "" "Improves quality of subsurface scattering, but cost significantly increases." msgstr "提高次表面散射的质量,但成本显着增加。" #: doc/classes/ProjectSettings.xml msgid "Quality setting for subsurface scattering (samples taken)." msgstr "次表面散射的质量设置(采样)。" #: doc/classes/ProjectSettings.xml msgid "Max radius used for subsurface scattering samples." msgstr "用于次表面散射样本的最大半径。" #: doc/classes/ProjectSettings.xml msgid "" "Weight subsurface scattering samples. Helps to avoid reading samples from " "unrelated parts of the screen." msgstr "加权次表面散射样本。有助于避免从屏幕的不相关部分读取样本。" #: doc/classes/ProjectSettings.xml msgid "" "Use high-quality voxel cone tracing. This results in better-looking " "reflections, but is much more expensive on the GPU." msgstr "使用高质量的体素锥体追踪。这会产生更好看的反射,但 GPU 消耗要高得多。" #: doc/classes/ProjectSettings.xml msgid "" "Thread model for rendering. Rendering on a thread can vastly improve " "performance, but synchronizing to the main thread can cause a bit more " "jitter." msgstr "" "渲染的线程模型。在线程上进行渲染可以极大地提高性能,但同步到主线程上会导致更" "多的抖动。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], a thread safe version of BVH (bounding volume " "hierarchy) will be used in rendering and Godot physics.\n" "Try enabling this option if you see any visual anomalies in 3D (such as " "incorrect object visibility)." msgstr "" "如果 [code]true[/code],则将在渲染和 Godot 物理中使用线程安全版本的 BVH(边界" "体积层次结构)。\n" "如果您在 3D 中看到任何视觉异常,例如不正确的可见性对象,请尝试启用此选项。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the texture importer will import VRAM-compressed " "textures using the BPTC algorithm. This texture compression algorithm is " "only supported on desktop platforms, and only when using the GLES3 " "renderer.\n" "[b]Note:[/b] Changing this setting does [i]not[/i] impact textures that were " "already imported before. To make this setting apply to textures that were " "already imported, exit the editor, remove the [code].import/[/code] folder " "located inside the project folder then restart the editor (see [member " "application/config/use_hidden_project_data_directory])." msgstr "" "如果为 [code]true[/code],纹理导入器将使用 BPTC 算法导入 VRAM 压缩的纹理。此" "纹理压缩算法仅在桌面平台得到支持,并且仅在使用 GLES3 渲染器时才受支持。\n" "[b]注意:[/b]更改此设置不会[i]不[/i]影响之前已经导入的纹理。要将此设置应用于" "已导入的纹理,请退出编辑器,删除位于项目文件夹内的 [code].import/[/code] 文件" "夹,然后重新启动编辑器(参阅 [member application/config/" "use_hidden_project_data_directory])。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the texture importer will import VRAM-compressed " "textures using the Ericsson Texture Compression algorithm. This algorithm " "doesn't support alpha channels in textures.\n" "[b]Note:[/b] Changing this setting does [i]not[/i] impact textures that were " "already imported before. To make this setting apply to textures that were " "already imported, exit the editor, remove the [code].import/[/code] folder " "located inside the project folder then restart the editor (see [member " "application/config/use_hidden_project_data_directory])." msgstr "" "如果为 [code]true[/code],纹理导入器将使用爱立信纹理压缩算法导入 VRAM 压缩的" "纹理。此算法不支持纹理中的 Alpha 通道。\n" "[b]注意:[/b]更改此设置[i]不会[/i]影响之前已经导入的纹理。要将此设置应用于已" "导入的纹理,请退出编辑器,删除位于项目中的 [code].import/[/code] 文件夹,然后" "重新启动编辑器,参阅 [member application/config/" "use_hidden_project_data_directory]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the texture importer will import VRAM-compressed " "textures using the Ericsson Texture Compression 2 algorithm. This texture " "compression algorithm is only supported when using the GLES3 renderer.\n" "[b]Note:[/b] Changing this setting does [i]not[/i] impact textures that were " "already imported before. To make this setting apply to textures that were " "already imported, exit the editor, remove the [code].import/[/code] folder " "located inside the project folder then restart the editor (see [member " "application/config/use_hidden_project_data_directory])." msgstr "" "如果为 [code]true[/code],纹理导入器将使用爱立信纹理压缩 2 算法导入 VRAM 压缩" "的纹理。仅在使用 GLES3 渲染器时,才支持此纹理压缩算法。\n" "[b]注意:[/b]更改此设置[i]不会[/i]影响之前已经导入的纹理。要将此设置应用于已" "导入的纹理,请退出编辑器,删除位于项目中的 [code].import/[/code] 文件夹,然后" "重新启动编辑器,参阅 [member application/config/" "use_hidden_project_data_directory]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the texture importer will import VRAM-compressed " "textures using the PowerVR Texture Compression algorithm. This texture " "compression algorithm is only supported on iOS.\n" "[b]Note:[/b] Changing this setting does [i]not[/i] impact textures that were " "already imported before. To make this setting apply to textures that were " "already imported, exit the editor, remove the [code].import/[/code] folder " "located inside the project folder then restart the editor (see [member " "application/config/use_hidden_project_data_directory])." msgstr "" "如果为 [code]true[/code],纹理导入器将使用 PowerVR 纹理压缩算法导入 VRAM 压缩" "的纹理。此纹理压缩算法仅在 iOS 上受支持。\n" "[b]注意:[/b]更改此设置[i]不会[/i]影响之前已经导入的纹理。要将此设置应用于已" "导入的纹理,请退出编辑器,删除位于项目中的 [code].import/[/code] 文件夹,然后" "重新启动编辑器,参阅 [member application/config/" "use_hidden_project_data_directory]。" #: doc/classes/ProjectSettings.xml msgid "" "If [code]true[/code], the texture importer will import VRAM-compressed " "textures using the S3 Texture Compression algorithm. This algorithm is only " "supported on desktop platforms and consoles.\n" "[b]Note:[/b] Changing this setting does [i]not[/i] impact textures that were " "already imported before. To make this setting apply to textures that were " "already imported, exit the editor, remove the [code].import/[/code] folder " "located inside the project folder then restart the editor (see [member " "application/config/use_hidden_project_data_directory])." msgstr "" "如果为 [code]true[/code],纹理导入器将使用 S3 纹理压缩算法导入 VRAM 压缩的纹" "理。此算法仅在桌面平台和控制台中受支持。\n" "[b]注意:[/b]更改此设置[i]不会[/i]影响之前已经导入的纹理。要将此设置应用于已" "导入的纹理,请退出编辑器,删除位于项目中的 [code].import/[/code] 文件夹,然后" "重新启动编辑器,参阅 [member application/config/" "use_hidden_project_data_directory]。" #: doc/classes/ProjectSettings.xml msgid "" "Cell size used for the 2D hash grid that [VisibilityNotifier2D] uses (in " "pixels)." msgstr "" "用于 [VisibilityNotifier2D] 使用的 2D 哈希网格的单元格大小,以像素为单位。" #: doc/classes/ProjectSettings.xml msgid "" "Objects can use this signal to restrict reading of settings only to " "situations where a change has been made." msgstr "对象可以利用该信号,只在发生修改时才读取设置。" #: doc/classes/PropertyTweener.xml msgid "Interpolates an [Object]'s property over time." msgstr "随时间对 [Object] 的属性进行插值。" #: doc/classes/PropertyTweener.xml msgid "" "[PropertyTweener] is used to interpolate a property in an object. See " "[method SceneTreeTween.tween_property] for more usage information.\n" "[b]Note:[/b] [method SceneTreeTween.tween_property] is the only correct way " "to create [PropertyTweener]. Any [PropertyTweener] created manually will not " "function correctly." msgstr "" "[PropertyTweener] 可用于对某个对象的某个属性进行插值。更多用法信息请参阅 " "[method SceneTreeTween.tween_property]。\n" "[b]注意:[/b]创建 [PropertyTweener] 的唯一正确方法是 [method SceneTreeTween." "tween_property]。任何手动创建的 [PropertyTweener] 都无法正常工作。" #: doc/classes/PropertyTweener.xml msgid "" "When called, the final value will be used as a relative value instead. " "Example:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property(self, \"position\", Vector2.RIGHT * 100, 1)." "as_relative() #the node will move by 100 pixels to the right\n" "[/codeblock]" msgstr "" "调用后,最终值会被作为相对值使用。示例:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property(self, \"position\", Vector2.RIGHT * 100, 1)." "as_relative() # 该节点会向右移动 100 个像素\n" "[/codeblock]" #: doc/classes/PropertyTweener.xml msgid "" "Sets a custom initial value to the [PropertyTweener]. Example:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property(self, \"position\", Vector2(200, 100), 1)." "from(Vector2(100, 100) #this will move the node from position (100, 100) to " "(200, 100)\n" "[/codeblock]" msgstr "" "设置该 [PropertyTweener] 的自定义初始值。示例:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property(self, \"position\", Vector2(200, 100), 1)." "from(Vector2(100, 100) # 会将该节点从 (100, 100) 移动到 (200, 100)\n" "[/codeblock]" #: doc/classes/PropertyTweener.xml msgid "" "Makes the [PropertyTweener] use the current property value (i.e. at the time " "of creating this [PropertyTweener]) as a starting point. This is equivalent " "of using [method from] with the current value. These two calls will do the " "same:\n" "[codeblock]\n" "tween.tween_property(self, \"position\", Vector2(200, 100), 1)." "from(position)\n" "tween.tween_property(self, \"position\", Vector2(200, 100), 1)." "from_current()\n" "[/codeblock]" msgstr "" "让该 [PropertyTweener] 使用当前属性值作为起点(即创建这个 [PropertyTweener] " "时的值)。与使用当前值调用 [method from] 等价。以下两种调用方法效果相同:\n" "[codeblock]\n" "tween.tween_property(self, \"position\", Vector2(200, 100), 1)." "from(position)\n" "tween.tween_property(self, \"position\", Vector2(200, 100), 1)." "from_current()\n" "[/codeblock]" #: doc/classes/PropertyTweener.xml msgid "" "Sets the time in seconds after which the [PropertyTweener] will start " "interpolating. By default there's no delay." msgstr "设置该 [PropertyTweener] 开始插值的时间,单位为秒。默认无延迟。" #: doc/classes/ProximityGroup.xml msgid "General-purpose 3D proximity detection node." msgstr "通用的 3D 邻近检测节点。" #: doc/classes/ProximityGroup.xml msgid "" "General-purpose proximity detection node. [ProximityGroup] can be used for " "[i]approximate[/i] distance checks, which are faster than exact distance " "checks using [method Vector3.distance_to] or [method Vector3." "distance_squared_to].\n" "[ProximityGroup] nodes are automatically grouped together, as long as they " "share the same [member group_name] and intersect with each other. By calling " "the [method broadcast], you can invoke a specified method with various " "parameters to all intersecting members.\n" "[ProximityGroup] is cuboid-shaped and consists of a cluster of [Vector3] " "coordinates. The coordinates are automatically calculated by calling [member " "grid_radius]. To allow [ProximityGroup] to find its peers (and perform " "automatic grouping), you need to define its [member group_name] to a non-" "empty [String]. As soon as this object's shape intersects with another " "[ProximityGroup] object' shape, and both share the same [member group_name], " "they will belong together for as long as they intersect.\n" "Since [ProximityGroup] doesn't rely the physics engine, you don't need to " "add any other node as a child (unlike [PhysicsBody]).\n" "The [ProximityGroup] uses the [SceneTree] groups in the background by " "calling the method [method Node.add_to_group] internally. The [SceneTree] " "group names are constructed by combining the [member group_name] with its " "coordinates, which are calculated using the [member grid_radius] you defined " "beforehand.\n" "[b]Example:[/b] A [ProximityGroup] node named [code]\"PlanetEarth\"[/code] " "at position [code]Vector3(6, 6, 6)[/code] with a [member group_name] set to " "[code]\"planets\"[/code] and a [member grid_radius] of [code]Vector3(1, 2, 3)" "[/code] will create the following [SceneTree] group names:\n" "[codeblock]\n" "- \"planets|5|4|3\"\n" "- \"planets|5|4|4\"\n" "- \"planets|5|4|5\"\n" "- \"planets|5|4|6\"\n" "- \"planets|5|4|7\"\n" "- \"planets|5|4|8\"\n" "- \"planets|5|4|9\"\n" "- ...\n" "[/codeblock]\n" "If there is another [ProximityGroup] named [code]\"PlanetMars\"[/code] with " "group name [code]\"planets\"[/code], and one of its coordinates is " "[code]Vector3(5, 4, 7)[/code], it would normally create the [SceneTree] " "group called [code]\"planets|5|4|7\"[/code]. However, since this group name " "already exists, this [ProximityGroup] object will be [i]added[/i] to the " "existing one. [code]\"PlanetEarth\"[/code] is already in this group. As long " "as both nodes don't change their transform and stop intersecting (or exit " "the scene tree), they are grouped together. As long as this intersection " "exists, any call to [method broadcast] will affect [i]both[/i] " "[ProximityGroup] nodes.\n" "There are 3 caveats to keep in mind when using [ProximityGroup]:\n" "- The larger the grid radius, the more coordinates and the more [SceneTree] " "groups are created. This can have a performance impact if too many groups " "are created.\n" "- If the [ProximityGroup] node is transformed in any way (or is removed from " "the scene tree), the groupings will have to be recalculated. This can also " "have a performance impact.\n" "- If your [member grid_radius] is smaller than [code]Vector3(1, 1, 1)[/" "code], it will be rounded up to [code]Vector3(1, 1, 1)[/code]. Therefore, " "small grid radius values may lead to unwanted groupings.\n" "[/codeblock]\n" "[b]Note:[/b] [ProximityGroup] will be removed in Godot 4.0 in favor of more " "effective and faster [VisibilityNotifier] functionality. For most use cases, " "[method Vector3.distance_to] or [method Vector3.distance_squared_to] are " "fast enough too, especially if you call them less often using a [Timer] node." msgstr "" "通用邻近检测节点。[ProximityGroup] 可用于[i]大致的[/i]距离检查,比使用 " "[method Vector3.distance_to] 或 [method Vector3.distance_squared_to] 进行精确" "检查要快。\n" "[member group_name] 相同的 [ProximityGroup] 节点如果相交,就会自动组合。你可" "以通过调用 [method broadcast] 来对所有相交的成员调用特定的方法,参数任意。\n" "[ProximityGroup] 是立方体形状的,包含一组 [Vector3] 坐标。这些坐标是自动调用 " "[member grid_radius] 计算的。要让 [ProximityGroup] 找到其对等体(并进行自动组" "合),你需要将其 [member group_name] 设为非空的 [String]。当这个对象的形状与" "另一个 [ProximityGroup] 对象的形状相交时,如果它们的 [member group_name] 一" "致,就会被组合在一起,直到不再相交。\n" "因为 [ProximityGroup] 不依赖于物理引擎,你不需要为其添加任何其他子节点(不同" "于 [PhysicsBody])。\n" "[ProximityGroup] 实际使用的是 [SceneTree] 的分组,会在内部调用 [method Node." "add_to_group]。[SceneTree] 分组名称是通过将 [member group_name] 及其坐标组合" "而来的,其中的坐标则是根据你事先定义的 [member grid_radius] 计算而来的。\n" "[b]示例:[/b]名为 [code]\"PlanetEarth\"[/code] 的 [ProximityGroup] 节点位于 " "[code]Vector3(6, 6, 6)[/code],其 [member group_name] 为 [code]\"planets\"[/" "code],[member grid_radius] 为 [code]Vector3(1, 2, 3)[/code],那么就会创建下" "列 [SceneTree] 分组名:\n" "[codeblock]\n" "- \"planets|5|4|3\"\n" "- \"planets|5|4|4\"\n" "- \"planets|5|4|5\"\n" "- \"planets|5|4|6\"\n" "- \"planets|5|4|7\"\n" "- \"planets|5|4|8\"\n" "- \"planets|5|4|9\"\n" "- ...\n" "[/codeblock]\n" "如果有另一个名叫 [code]\"PlanetMars\"[/code] 的 [ProximityGroup],分组名为 " "[code]\"planets\"[/code],包含 [code]Vector3(5, 4, 7)[/code] 坐标,那么正常就" "会创建一个名叫 [code]\"planets|5|4|7\"[/code] 的 [SceneTree] 分组。然而,因为" "这个分组名已存在,这个 [ProximityGroup] 对象就会[i]加入[/i]这个现有的分组。" "[code]\"PlanetEarth\"[/code] 已经存在于这个分组中。只要这两个节点都不改变其变" "换、不停止相交(或者退出场景树),那么它们就会被组合在一起。相交时,任何 " "[method broadcast] 都会影响到[i]这两个[/i] [ProximityGroup] 节点。\n" "使用 [ProximityGroup] 时有 3 个需要记住的缺陷:\n" "- 网格半径越大,坐标数量越多,创建的 [SceneTree] 分组也越多。如果创建了太多的" "分组,就会影响性能。\n" "- 如果通过任何手段改变了 [ProximityGroup] 节点的变换(或者从场景树中移除)," "就需要重新计算分组,也会影响性能。\n" "- 如果你的 [member grid_radius] 比 [code]Vector3(1, 1, 1)[/code] 小,就会被舍" "入到 [code]Vector3(1, 1, 1)[/code]。因此,较小的网格半径可能会导致意外的分" "组。\n" "[/codeblock]\n" "[b]注意:[/b]Godot 4.0 会移除 [ProximityGroup],使用更高效、快速的 " "[VisibilityNotifier] 功能。对于大多数情况,[method Vector3.distance_to] 和 " "[method Vector3.distance_squared_to] 都足够快了,尤其是在使用 [Timer] 节点减" "少调用次数时。" #: doc/classes/ProximityGroup.xml msgid "" "Calls on all intersecting [ProximityGroup] the given method and parameters.\n" "If the [member dispatch_mode] is set to [constant MODE_PROXY] (the default), " "all calls are delegated to their respective parent [Node]." msgstr "" "对所有相交的 [ProximityGroup] 使用给定的参数调用给定的方法。\n" "如果 [member dispatch_mode] 为 [constant MODE_PROXY](默认值),这些调用会被" "代理到它们各自的父级 [Node] 上。" #: doc/classes/ProximityGroup.xml msgid "" "Specifies which node gets contacted on a call of method [method broadcast]." msgstr "指定调用 [method broadcast] 方法时联系到的节点。" #: doc/classes/ProximityGroup.xml msgid "" "The size of the space in 3D units. This also sets the amount of coordinates " "required to calculate whether two [ProximityGroup] nodes are intersecting or " "not. Smaller [member grid_radius] values can be used for more precise " "proximity checks at the cost of performance, since more groups will be " "created." msgstr "" "空间的大小,使用 3D 单位。同时还会设置坐标的数量,用于计算两个 " "[ProximityGroup] 节点是否相交。较小的 [member grid_radius] 会牺牲性能实现更精" "确的临近检测,因为会创建更多的分组。" #: doc/classes/ProximityGroup.xml msgid "" "Specify the common group name, to let other [ProximityGroup] nodes know, if " "they should be auto-grouped with this node in case they intersect with each " "other.\n" "For example, if you have a [ProximityGroup] node named [code]\"Earth\"[/" "code] and another called [code]\"Mars\"[/code], with both nodes having " "[code]\"planet\"[/code] as their [member group_name]. Give both planets a " "significantly larger [member grid_radius] than their actual radius, position " "them close enough and they'll be automatically grouped." msgstr "" "指定共用的分组名称,其它 [ProximityGroup] 节点可以借此得知相交时是否应该与这" "个节点自动组合。\n" "例如,假设你有一个名为 [code]\"地球\"[/code] 的 [ProximityGroup] 节点,另一个" "名叫 [code]\"火星\"[/code],这两个节点的 [member group_name] 都叫 [code]\"星" "球\"[/code]。如果为这两个星球设置比它们实际半径更大的 [member grid_radius]," "那么只要将它们放得足够近,就会自动组合到一起。" #: doc/classes/ProximityGroup.xml msgid "" "Emitted when the user calls the [method broadcast] method and has set " "[member dispatch_mode] to [constant MODE_SIGNAL].\n" "The given method and its parameters are passed on to the listeners who " "connected to this signal of this object, as well as any [ProximityGroup] " "node this node is grouped together with.\n" "[b]Note:[/b] This signal is [i]not[/i] emitted by default, as the default " "[member dispatch_mode] is [constant MODE_PROXY]." msgstr "" "当用户调用 [method broadcast] 方法且 [member dispatch_mode] 为 [constant " "MODE_SIGNAL] 时触发。\n" "给定的方法和参数会传递给连接到这个信号的监听者,无论是这个对象的信号,还是与" "这个节点组合的 [ProximityGroup] 节点的信号。\n" "[b]注意:[/b]这个信号默认[i]不会[/i]触发,因为 [member dispatch_mode] 默认为 " "[constant MODE_PROXY]。" #: doc/classes/ProximityGroup.xml msgid "This [ProximityGroup]'s parent will be target of [method broadcast]." msgstr "这个 [ProximityGroup] 的父级会成为 [method broadcast] 的目标。" #: doc/classes/ProximityGroup.xml msgid "" "This [ProximityGroup] will emit the [signal broadcast] [i]signal[/i] when " "calling the [method broadcast] [i]method[/i]." msgstr "" "这个 [ProximityGroup] 会在调用 [method broadcast] [i]方法[/i]时发出 [signal " "broadcast] [i]信号[/i]。" #: doc/classes/QuadMesh.xml msgid "Class representing a square mesh." msgstr "表示方形网格的类。" #: doc/classes/QuadMesh.xml msgid "" "Class representing a square [PrimitiveMesh]. This flat mesh does not have a " "thickness. By default, this mesh is aligned on the X and Y axes; this " "default rotation is more suited for use with billboarded materials. Unlike " "[PlaneMesh], this mesh doesn't provide subdivision options." msgstr "" "代表正方形 [PrimitiveMesh] 的类。这个平面网格没有厚度。默认情况下,这个网格" "在 X 轴和 Y 轴上是对齐的;这个默认的旋转方式更适合于使用广告牌的材质。与 " "[PlaneMesh] 不同,这个网格不提供细分选项。" #: doc/classes/QuadMesh.xml doc/classes/Viewport.xml #: doc/classes/ViewportTexture.xml msgid "2D in 3D Demo" msgstr "3D 中的 2D 演示" #: doc/classes/QuadMesh.xml msgid "Offset of the generated Quad. Useful for particles." msgstr "生成的 Quad 的偏移量。对粒子有用。" #: doc/classes/QuadMesh.xml msgid "Size on the X and Y axes." msgstr "X 和 Y 轴上的大小。" #: doc/classes/Quat.xml msgid "Quaternion." msgstr "四元数." #: doc/classes/Quat.xml msgid "" "A unit quaternion used for representing 3D rotations. Quaternions need to be " "normalized to be used for rotation.\n" "It is similar to Basis, which implements matrix representation of rotations, " "and can be parametrized using both an axis-angle pair or Euler angles. Basis " "stores rotation, scale, and shearing, while Quat only stores rotation.\n" "Due to its compactness and the way it is stored in memory, certain " "operations (obtaining axis-angle and performing SLERP, in particular) are " "more efficient and robust against floating-point errors." msgstr "" "一个用于表示 3D 旋转的单位四元数。四元数需要经过归一化才能用于旋转。\n" "它类似于 Basis,后者实现了旋转的矩阵表示,并且可以使用轴-角对或欧拉角进行参数" "化。Basis 可以存储旋转、缩放和错切,而 Quat 只存储旋转。\n" "由于它的紧凑性和在内存中的存储方式,某些操作(特别是获得轴角和执行 SLERP)更" "加有效,并且对浮点错误有很强的抵抗力。" #: doc/classes/Quat.xml msgid "Constructs a quaternion from the given [Basis]." msgstr "从给定的 [Basis] 构造一个四元数。" #: doc/classes/Quat.xml msgid "" "Constructs a quaternion that will perform a rotation specified by Euler " "angles (in the YXZ convention: when decomposing, first Z, then X, and Y " "last), given in the vector format as (X angle, Y angle, Z angle)." msgstr "" "构造一个四元数,该四元数将执行由欧拉角指定的旋转(按照YXZ惯例:分解时,首先是" "Z,然后是X,最后是Y),以向量格式给出(X角,Y角,Z角)。" #: doc/classes/Quat.xml msgid "" "Constructs a quaternion that will rotate around the given axis by the " "specified angle. The axis must be a normalized vector." msgstr "" "构造一个四元数,它将围绕给定的轴旋转指定的角度。轴必须是一个归一化的向量。" #: doc/classes/Quat.xml msgid "Constructs a quaternion defined by the given values." msgstr "构建一个由给定值定义的四元数。" #: doc/classes/Quat.xml msgid "" "Returns the angle between this quaternion and [code]to[/code]. This is the " "magnitude of the angle you would need to rotate by to get from one to the " "other.\n" "[b]Note:[/b] This method has an abnormally high amount of floating-point " "error, so methods such as [method @GDScript.is_zero_approx] will not work " "reliably." msgstr "" "返回此四元数与 [code]to[/code] 之间的角度。这是从一个到另一个旋转所需的角度大" "小。\n" "[b]注意:[/b]该方法的浮点错误率异常高,因此[method @GDScript.is_zero_approx]" "等方法结果不可靠。" #: doc/classes/Quat.xml msgid "" "Performs a cubic spherical interpolation between quaternions [code]pre_a[/" "code], this vector, [code]b[/code], and [code]post_b[/code], by the given " "amount [code]weight[/code]." msgstr "" "在四元数 [code]pre_a[/code]、该向量 [code]b[/code] 和 [code]post_b[/code] 之" "间执行三次球面插值,按给定的 [code]weight[/code]。" #: doc/classes/Quat.xml msgid "Returns the dot product of two quaternions." msgstr "返回两个四元数的点积。" #: doc/classes/Quat.xml msgid "" "Returns Euler angles (in the YXZ convention: when decomposing, first Z, then " "X, and Y last) corresponding to the rotation represented by the unit " "quaternion. Returned vector contains the rotation angles in the format (X " "angle, Y angle, Z angle)." msgstr "" "返回与单位四元数所代表的旋转相对应的欧拉角(按照 YXZ 惯例:分解时先 Z 后 X," "最后是 Y)。返回的向量包含格式为(X角、Y角、Z角)的旋转角。" #: doc/classes/Quat.xml msgid "Returns the inverse of the quaternion." msgstr "返回四元数的取逆。" #: doc/classes/Quat.xml msgid "" "Returns [code]true[/code] if this quaternion and [code]quat[/code] are " "approximately equal, by running [method @GDScript.is_equal_approx] on each " "component." msgstr "" "通过在每个分量上进行 [method @GDScript.is_equal_approx],如果此四元数和 " "[code]quat[/code] 近似相等,则返回 [code]true[/code]。" #: doc/classes/Quat.xml msgid "Returns whether the quaternion is normalized or not." msgstr "返回四元数是否被归一化。" #: doc/classes/Quat.xml msgid "Returns the length of the quaternion." msgstr "返回四元数的长度。" #: doc/classes/Quat.xml msgid "Returns the length of the quaternion, squared." msgstr "返回四元数的长度的平方。" #: doc/classes/Quat.xml msgid "Returns a copy of the quaternion, normalized to unit length." msgstr "返回四元数的副本,归一化为单位长度。" #: doc/classes/Quat.xml msgid "" "Sets the quaternion to a rotation which rotates around axis by the specified " "angle, in radians. The axis must be a normalized vector." msgstr "" "将四元数设置为绕轴旋转指定角度(以弧度为单位)的旋转。轴必须是归一化向量。" #: doc/classes/Quat.xml msgid "" "Sets the quaternion to a rotation specified by Euler angles (in the YXZ " "convention: when decomposing, first Z, then X, and Y last), given in the " "vector format as (X angle, Y angle, Z angle)." msgstr "" "将四元数设置为由欧拉角指定的旋转(按照惯例:分解时,首先是 Z,然后是 X,最后" "是 Y),以向量格式给出(X 角、Y 角、Z 角)。" #: doc/classes/Quat.xml msgid "" "Returns the result of the spherical linear interpolation between this " "quaternion and [code]to[/code] by amount [code]weight[/code].\n" "[b]Note:[/b] Both quaternions must be normalized." msgstr "" "返回四元数 [code]to[/code]和 [code]weight[/code]值的球面线性插值的结果。\n" "[b]注意:[/b]四元数必须被归一化。" #: doc/classes/Quat.xml msgid "" "Returns the result of the spherical linear interpolation between this " "quaternion and [code]to[/code] by amount [code]weight[/code], but without " "checking if the rotation path is not bigger than 90 degrees." msgstr "" "以[code]weight[/code]值为权重,返回这个四元数和[code]to[/code]之间的球面线性插" "值的结果,但不会检查旋转路径是否不大于90度。" #: doc/classes/Quat.xml msgid "Returns a vector transformed (multiplied) by this quaternion." msgstr "返回一个由该四元数转换(相乘)的向量。" #: doc/classes/Quat.xml msgid "" "W component of the quaternion (real part).\n" "Quaternion components should usually not be manipulated directly." msgstr "" "四元数的W分量(实数部分)。\n" "四元数分量通常不应该被直接操作。" #: doc/classes/Quat.xml msgid "" "X component of the quaternion (imaginary [code]i[/code] axis part).\n" "Quaternion components should usually not be manipulated directly." msgstr "" "四元数的X分量(虚轴[code]i[/code]部分)。\n" "四元数分量通常不应直接操作。" #: doc/classes/Quat.xml msgid "" "Y component of the quaternion (imaginary [code]j[/code] axis part).\n" "Quaternion components should usually not be manipulated directly." msgstr "" "四元数的Y分量(虚轴[code]j[/code]部分)。\n" "四元数分量通常不应直接操作。" #: doc/classes/Quat.xml msgid "" "Z component of the quaternion (imaginary [code]k[/code] axis part).\n" "Quaternion components should usually not be manipulated directly." msgstr "" "四元数的Z分量(虚轴[code]k[/code]部分)。\n" "四元数分量通常不应该被直接操作。" #: doc/classes/Quat.xml msgid "" "The identity quaternion, representing no rotation. Equivalent to an identity " "[Basis] matrix. If a vector is transformed by an identity quaternion, it " "will not change." msgstr "" "单位四元数,代表无旋转。等效于单位 [Basis] 矩阵。如果一个向量被一个单位四元数" "变换,它不会改变。" #: doc/classes/RandomNumberGenerator.xml msgid "A class for generating pseudo-random numbers." msgstr "一个用于生成伪随机数的类。" #: doc/classes/RandomNumberGenerator.xml msgid "" "RandomNumberGenerator is a class for generating pseudo-random numbers. It " "currently uses [url=http://www.pcg-random.org/]PCG32[/url].\n" "[b]Note:[/b] The underlying algorithm is an implementation detail. As a " "result, it should not be depended upon for reproducible random streams " "across Godot versions.\n" "To generate a random float number (within a given range) based on a time-" "dependant seed:\n" "[codeblock]\n" "var rng = RandomNumberGenerator.new()\n" "func _ready():\n" " rng.randomize()\n" " var my_random_number = rng.randf_range(-10.0, 10.0)\n" "[/codeblock]\n" "[b]Note:[/b] The default values of [member seed] and [member state] " "properties are pseudo-random, and changes when calling [method randomize]. " "The [code]0[/code] value documented here is a placeholder, and not the " "actual default seed." msgstr "" "RandomNumberGenerator 是一个用于生成伪随机数的类。它目前使用 [url=http://www." "pcg-random.org/]PCG32[/url]。\n" "[b]注:[/b]底层算法是实现细节。因此,跨 Godot 版本的可重复随机流不应该依赖于" "此。\n" "要根据时间相关种子生成随机浮点数,在给定范围内:\n" "[codeblock]\n" "var rng = RandomNumberGenerator.new()\n" "func _ready():\n" " rng.randomize()\n" " var my_random_number = rng.randf_range(-10.0, 10.0)\n" "[/codeblock]\n" "[b]注:[/b] [member seed] 和 [member state] 属性的默认值是伪随机的,在调用" "[method randomize] 时会发生变化。此处记录的 [code]0[/code] 值是一个占位符,而" "不是实际的默认种子。" #: doc/classes/RandomNumberGenerator.xml msgid "Random number generation" msgstr "随机数生成" #: doc/classes/RandomNumberGenerator.xml msgid "" "Generates a pseudo-random float between [code]0.0[/code] and [code]1.0[/" "code] (inclusive)." msgstr "" "产生一个[code]0.0[/code]和[code]1.0[/code](包括端点)之间的伪随机浮点数。" #: doc/classes/RandomNumberGenerator.xml msgid "" "Generates a pseudo-random float between [code]from[/code] and [code]to[/" "code] (inclusive)." msgstr "" "产生一个[code]from[/code]和[code]to[/code](包括端点)之间的伪随机浮点数。" #: doc/classes/RandomNumberGenerator.xml msgid "" "Generates a [url=https://en.wikipedia.org/wiki/Normal_distribution]normally-" "distributed[/url] pseudo-random number, using Box-Muller transform with the " "specified [code]mean[/code] and a standard [code]deviation[/code]. This is " "also called Gaussian distribution." msgstr "" "产生一个[url=https://en.wikipedia.org/wiki/Normal_distribution]正态分布[/url]" "的伪随机数,使用Box-Muller变换,具有指定的[code]mean[/code]和标准" "[code]deviation[/code]。这也被称为高斯分布。" #: doc/classes/RandomNumberGenerator.xml msgid "" "Generates a pseudo-random 32-bit unsigned integer between [code]0[/code] and " "[code]4294967295[/code] (inclusive)." msgstr "" "产生一个[code]0[/code]和[code]4294967295[/code](含端点)之间的伪随机32位无符" "号整数。" #: doc/classes/RandomNumberGenerator.xml msgid "" "Generates a pseudo-random 32-bit signed integer between [code]from[/code] " "and [code]to[/code] (inclusive)." msgstr "" "产生一个[code]to[/code]和[code]from[/code](含端点)之间的伪随机32位有符号整" "数。" #: doc/classes/RandomNumberGenerator.xml msgid "Setups a time-based seed to generator." msgstr "为生成器设置一个基于时间的种子。" #: doc/classes/RandomNumberGenerator.xml msgid "" "Initializes the random number generator state based on the given seed value. " "A given seed will give a reproducible sequence of pseudo-random numbers.\n" "[b]Note:[/b] The RNG does not have an avalanche effect, and can output " "similar random streams given similar seeds. Consider using a hash function " "to improve your seed quality if they're sourced externally.\n" "[b]Note:[/b] Setting this property produces a side effect of changing the " "internal [member state], so make sure to initialize the seed [i]before[/i] " "modifying the [member state]:\n" "[codeblock]\n" "var rng = RandomNumberGenerator.new()\n" "rng.seed = hash(\"Godot\")\n" "rng.state = 100 # Restore to some previously saved state.\n" "[/codeblock]\n" "[b]Warning:[/b] the getter of this property returns the previous [member " "state], and not the initial seed value, which is going to be fixed in Godot " "4.0." msgstr "" "根据给定的种子值初始化随机数生成器状态。给定的种子将提供可重复的伪随机数序" "列。\n" "[b]注:[/b] RNG 没有雪崩效应,可以输出相似的随机流给定相似的种子。如果种子来" "自外部,请考虑使用哈希函数来提高种子质量。\n" "[b]注:[/b]设置这个属性会产生改变内部[member state]的副作用,所以一定要在修改" "[member state][i]之前[/i]初始化种子:\n" "[codeblock]\n" "var rng = RandomNumberGenerator.new()\n" "rng.seed = hash(\"Godot\")\n" "rng.state = 100 # Restore to some previously saved state.\n" "[/codeblock]\n" "[b]警告:[/b]该属性的getter返回之前的[member state],而不是初始种子值,这将在" "Godot 4.0中修复。" #: doc/classes/RandomNumberGenerator.xml msgid "" "The current state of the random number generator. Save and restore this " "property to restore the generator to a previous state:\n" "[codeblock]\n" "var rng = RandomNumberGenerator.new()\n" "print(rng.randf())\n" "var saved_state = rng.state # Store current state.\n" "print(rng.randf()) # Advance internal state.\n" "rng.state = saved_state # Restore the state.\n" "print(rng.randf()) # Prints the same value as in previous.\n" "[/codeblock]\n" "[b]Note:[/b] Do not set state to arbitrary values, since the random number " "generator requires the state to have certain qualities to behave properly. " "It should only be set to values that came from the state property itself. To " "initialize the random number generator with arbitrary input, use [member " "seed] instead." msgstr "" "随机数生成器的当前状态。保存并恢复此属性,以将生成器恢复到之前的状态:\n" "[codeblock]\n" "var rng = RandomNumberGenerator.new()\n" "print(rng.randf())\n" "var saved_state = rng.state # Store current state.\n" "print(rng.randf()) # Advance internal state.\n" "rng.state = saved_state # Restore the state.\n" "print(rng.randf()) # Prints the same value as in previous.\n" "[/codeblock]\n" "[b]注意:[/b]不要将状态设置为任意值,因为随机数生成器要求状态具有某些特性才能" "正常运行。它应该只设置为来自状态属性本身的值。要使用任意输入初始化随机数生成" "器,请改用 [member seed]。" #: doc/classes/Range.xml msgid "Abstract base class for range-based controls." msgstr "基于范围的控件的抽象基类。" #: doc/classes/Range.xml #, fuzzy msgid "" "Range is a base class for [Control] nodes that change a floating-point " "[member value] between a [member min_value] and [member max_value], using a " "configured [member step] and [member page] size. See e.g. [ScrollBar] and " "[Slider] for examples of higher level nodes using Range." msgstr "" "Range是一个用于[Control]节点的基类,它在[i]最小值[/i]和[i]最大值[/i]之间改变" "一个浮点[i]值[/i],用于[i]步进[/i]和[i]页面[/i],例如[ScrollBar]。" #: doc/classes/Range.xml msgid "" "Binds two [Range]s together along with any ranges previously grouped with " "either of them. When any of range's member variables change, it will share " "the new value with all other ranges in its group." msgstr "" "将两个 [Range] 绑定,之前已与两者之中的任何一个组合的 Range 也会被绑定在一" "起。其中任何一个 Range 的成员变量改变时,它将与它的组中的所有其他 Range 共享" "新值。" #: doc/classes/Range.xml msgid "Stops the [Range] from sharing its member variables with any other." msgstr "使该 [Range] 停止与任何其他 Range 共享其成员变量。" #: doc/classes/Range.xml msgid "" "If [code]true[/code], [member value] may be greater than [member max_value]." msgstr "如果[code]true[/code],[member value]可能大于[member max_value]。" #: doc/classes/Range.xml msgid "" "If [code]true[/code], [member value] may be less than [member min_value]." msgstr "如果[code]true[/code],[member value]可能小于[member min_value]。" #: doc/classes/Range.xml msgid "" "If [code]true[/code], and [code]min_value[/code] is greater than 0, " "[code]value[/code] will be represented exponentially rather than linearly." msgstr "" "如果[code]true[/code],并且[code]min_value[/code]大于0,[code]value[/code]将" "以指数方式而不是线性方式表示。" #: doc/classes/Range.xml msgid "" "Maximum value. Range is clamped if [code]value[/code] is greater than " "[code]max_value[/code]." msgstr "" "最大值。如果[code]value[/code]大于[code]max_value[/code],则会被范围限制。" #: doc/classes/Range.xml msgid "" "Minimum value. Range is clamped if [code]value[/code] is less than " "[code]min_value[/code]." msgstr "" "最小值。如果[code]value[/code]小于[code]min_value[/code],则会被范围限制。" #: doc/classes/Range.xml msgid "" "Page size. Used mainly for [ScrollBar]. ScrollBar's length is its size " "multiplied by [code]page[/code] over the difference between [code]min_value[/" "code] and [code]max_value[/code]." msgstr "" "页面大小。主要用于[ScrollBar]。ScrollBar的长度是它的尺寸乘以[code]page[/code]" "超过[code]min_value[/code]和[code]max_value[/code]之间的差值。" #: doc/classes/Range.xml msgid "The value mapped between 0 and 1." msgstr "该值在0和1之间进行映射。" #: doc/classes/Range.xml msgid "" "If [code]true[/code], [code]value[/code] will always be rounded to the " "nearest integer." msgstr "" "如果 [code]true[/code],[code]value[/code] 将始终四舍五入到最接近的整数。" #: doc/classes/Range.xml msgid "" "If greater than 0, [code]value[/code] will always be rounded to a multiple " "of [code]step[/code]. If [code]rounded[/code] is also [code]true[/code], " "[code]value[/code] will first be rounded to a multiple of [code]step[/code] " "then rounded to the nearest integer." msgstr "" "如果大于0,[code]value[/code]将总是被四舍五入为[code]step[/code]的倍数。如果" "[code]rounded[/code]也是[code]true[/code],[code]value[/code]将首先被四舍五入" "为[code]step[/code]的倍数,然后舍入为最近的整数。" #: doc/classes/Range.xml msgid "Range's current value." msgstr "当前的范围值。" #: doc/classes/Range.xml msgid "" "Emitted when [member min_value], [member max_value], [member page], or " "[member step] change." msgstr "" "在 [member min_value], [member max_value], [member page], 或 [member step] 改" "变时释放信号。" #: doc/classes/Range.xml msgid "" "Emitted when [member value] changes. When used on a [Slider], this is called " "continuously while dragging (potentially every frame). If you are performing " "an expensive operation in a function connected to [signal value_changed], " "consider using a [i]debouncing[/i] [Timer] to call the function less often.\n" "[b]Note:[/b] Unlike signals such as [signal LineEdit.text_changed], [signal " "value_changed] is also emitted when [code]value[/code] is set directly via " "code." msgstr "" "[member value] 变化时触发。用于 [Slider] 时,拖拽时会连续调用(可能每帧都会调" "用)。如果你在与 [signal value_changed] 相连的函数中执行较昂贵的操作,请考虑" "使用 [Timer] [i]去除抖动[/i],降低该函数的调用频率。\n" "[b]注意:[/b]与 [signal LineEdit.text_changed] 等信号不同,[signal " "value_changed] 还会在 [code]value[/code] 由代码直接修改时触发。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "Query the closest object intersecting a ray." msgstr "查询与射线相交的最近物体。" #: doc/classes/RayCast.xml msgid "" "A RayCast represents a line from its origin to its destination position, " "[code]cast_to[/code]. It is used to query the 3D space in order to find the " "closest object along the path of the ray.\n" "RayCast can ignore some objects by adding them to the exception list via " "[code]add_exception[/code] or by setting proper filtering with collision " "layers and masks.\n" "RayCast can be configured to report collisions with [Area]s ([member " "collide_with_areas]) and/or [PhysicsBody]s ([member collide_with_bodies]).\n" "Only enabled raycasts will be able to query the space and report " "collisions.\n" "RayCast calculates intersection every physics frame (see [Node]), and the " "result is cached so it can be used later until the next frame. If multiple " "queries are required between physics frames (or during the same frame), use " "[method force_raycast_update] after adjusting the raycast." msgstr "" "RayCast 表示从起点到终点位置的线,[code]cast_to[/code]。它用于检测 3D 空间," "以便找到沿光线路径最近的对象。\n" "RayCast 可以忽略某些对象,方法是通过 [code]add_exception[/code] 将它们添加到" "例外列表中,或者通过使用碰撞层和掩码设置,进行适当的过滤。\n" "RayCast 可以配置为报告与 [Area]([member collide_with_areas]) 和/或 " "[PhysicsBody]([member collide_with_bodies]) 的碰撞。\n" "只有启用的光线投射才能检测空间并报告碰撞。\n" "RayCast 计算每个物理帧的交集(参阅 [Node]),并将结果缓存起来,以便稍后使用," "直到下一帧。如果物理帧之间(或同一帧期间)需要多次检测,请在调整光线投射后使" "用[method force_raycast_update]。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Adds a collision exception so the ray does not report collisions with the " "specified node." msgstr "添加碰撞例外,这样射线就不会报告与指定节点的碰撞情况。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Adds a collision exception so the ray does not report collisions with the " "specified [RID]." msgstr "添加碰撞例外,这样射线就不会报告与指定 [RID] 的碰撞。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "Removes all collision exceptions for this ray." msgstr "删除此射线的所有碰撞例外。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Updates the collision information for the ray. Use this method to update the " "collision information immediately instead of waiting for the next " "[code]_physics_process[/code] call, for example if the ray or its parent has " "changed state.\n" "[b]Note:[/b] [code]enabled[/code] is not required for this to work." msgstr "" "更新射线的碰撞信息。使用此方法立即更新碰撞信息,而不是等待下一次 " "[code]_physics_process[/code] 调用,例如,如果光线或其父级已更改状态。\n" "[b]注意:[/b][code]enabled[/code]不需要此功能。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Returns the first object that the ray intersects, or [code]null[/code] if no " "object is intersecting the ray (i.e. [method is_colliding] returns " "[code]false[/code])." msgstr "" "返回射线相交的第一个对象,如果没有对象与射线相交,则返回 [code]null[/code]" "(即 [method is_colliding] 返回 [code]false[/code])。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Returns the shape ID of the first object that the ray intersects, or " "[code]0[/code] if no object is intersecting the ray (i.e. [method " "is_colliding] returns [code]false[/code])." msgstr "" "返回射线相交的第一个对象的形状 ID,如果没有对象与射线相交,则返回 [code]0[/" "code](即 [method is_colliding] 返回 [code]false[/code])。" #: doc/classes/RayCast.xml msgid "" "Returns [code]true[/code] if the bit index passed is turned on.\n" "[b]Note:[/b] Bit indices range from 0-19." msgstr "" "如果通过的位索引被打开,则返回 [code]true[/code]。\n" "[b]注意:[/b]位指数范围为0-19。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Returns the normal of the intersecting object's shape at the collision point." msgstr "返回碰撞点相交物体形状的法线。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Returns the collision point at which the ray intersects the closest object.\n" "[b]Note:[/b] This point is in the [b]global[/b] coordinate system." msgstr "" "返回射线与最近的物体相交的碰撞点。\n" "[b]注意:[/b]这个点是在[b]全局[/b]坐标系中。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Returns whether any object is intersecting with the ray's vector " "(considering the vector length)." msgstr "返回是否有任何对象与射线的向量相交(考虑向量长度)。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Removes a collision exception so the ray does report collisions with the " "specified node." msgstr "移除碰撞例外,这样射线就会报告与指定节点的碰撞。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "Removes a collision exception so the ray does report collisions with the " "specified [RID]." msgstr "移除碰撞例外,这样射线就会报告与指定的 [RID] 的碰撞。" #: doc/classes/RayCast.xml msgid "" "Sets the bit index passed to the [code]value[/code] passed.\n" "[b]Note:[/b] Bit indexes range from 0-19." msgstr "" "将传递的位索引设置为传递的[code]值[/code]。\n" "[b]注意:[/b]位索引的范围是0-19。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "The ray's destination point, relative to the RayCast's [code]position[/code]." msgstr "光线的目标点,相对于该 RayCast 的 [code]position[/code]。" #: doc/classes/RayCast.xml msgid "If [code]true[/code], collision with [Area]s will be reported." msgstr "如果为 [code]true[/code],将报告与 [Area] 的碰撞。" #: doc/classes/RayCast.xml msgid "If [code]true[/code], collision with [PhysicsBody]s will be reported." msgstr "如果为 [code]true[/code],将报告与 [PhysicsBody] 的碰撞。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "" "The ray's collision mask. Only objects in at least one collision layer " "enabled in the mask will be detected. See [url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]Collision layers and " "masks[/url] in the documentation for more information." msgstr "" "光线的碰撞遮罩。只有在遮罩中启用至少一个碰撞层中物体,才会被检测到。有关更多" "信息,请参阅文档中的 [url=$DOCS_URL/tutorials/physics/physics_introduction." "html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: doc/classes/RayCast.xml msgid "" "The custom color to use to draw the shape in the editor and at run-time if " "[b]Visible Collision Shapes[/b] is enabled in the [b]Debug[/b] menu. This " "color will be highlighted at run-time if the [RayCast] is colliding with " "something.\n" "If set to [code]Color(0.0, 0.0, 0.0)[/code] (by default), the color set in " "[member ProjectSettings.debug/shapes/collision/shape_color] is used." msgstr "" "如果在 [b]Debug[/b] 菜单中启用了可见碰撞形状 [b]Visible Collision Shapes[/" "b],则可用于在编辑器中和运行时绘制形状的自定义颜色。如果 [RayCast] 与某物体发" "生碰撞,此颜色将在运行时突出显示。\n" "如果设置为 [code]Color(0.0, 0.0, 0.0)[/code](默认),则使用 [member " "ProjectSettings.debug/shapes/collision/shape_color] 中设置的颜色。" #: doc/classes/RayCast.xml msgid "" "If set to [code]1[/code], a line is used as the debug shape. Otherwise, a " "truncated pyramid is drawn to represent the [RayCast]. Requires [b]Visible " "Collision Shapes[/b] to be enabled in the [b]Debug[/b] menu for the debug " "shape to be visible at run-time." msgstr "" "如果设置为 [code]1[/code],则将一条线用作调试形状。否则,将绘制一个截断的金字" "塔来表示 [RayCast]。需要在 [b]调试[/b] 菜单中启用可见碰撞形状 [b]Visible " "Collision Shapes[/b],以便调试形状在运行时可见。" #: doc/classes/RayCast.xml doc/classes/RayCast2D.xml msgid "If [code]true[/code], collisions will be reported." msgstr "如果为 [code]true[/code],将报告碰撞。" #: doc/classes/RayCast.xml msgid "" "If [code]true[/code], collisions will be ignored for this RayCast's " "immediate parent." msgstr "如果为 [code]true[/code],将忽略与这个 RayCast 的直接父级的碰撞。" #: doc/classes/RayCast2D.xml msgid "" "A RayCast represents a line from its origin to its destination position, " "[code]cast_to[/code]. It is used to query the 2D space in order to find the " "closest object along the path of the ray.\n" "RayCast2D can ignore some objects by adding them to the exception list via " "[code]add_exception[/code], by setting proper filtering with collision " "layers, or by filtering object types with type masks.\n" "RayCast2D can be configured to report collisions with [Area2D]s ([member " "collide_with_areas]) and/or [PhysicsBody2D]s ([member " "collide_with_bodies]).\n" "Only enabled raycasts will be able to query the space and report " "collisions.\n" "RayCast2D calculates intersection every physics frame (see [Node]), and the " "result is cached so it can be used later until the next frame. If multiple " "queries are required between physics frames (or during the same frame) use " "[method force_raycast_update] after adjusting the raycast." msgstr "" "RayCast 表示一条从原点到目标位置 [code]cast_to[/code] 的直线。它被用来查询2D" "空间,以便沿着射线的路径找到最近的物体。\n" "RayCast2D 可以忽略一些物体,通过 [code]add_exception[/code] 将它们添加到异常" "列表中,通过设置碰撞层进行适当的过滤,或者通过类型掩码过滤物体类型。\n" "RayCast2D 可以被配置为报告 [Area2D]([member collide_with_areas])和 " "[PhysicsBody2D]([member collide_with_bodies])之间或彼此间的碰撞。\n" "只有被激活的 Raycast 才能够查询空间并报告碰撞情况。\n" "RayCast2D 在每一个物理帧中计算交集(见 [Node]),结果被缓存起来,以便以后可以" "用到下一帧。如果在物理帧之间需要多次查询(或在同一帧中),请在调整射线广播后" "使用 [method force_raycast_update]。" #: doc/classes/RayCast2D.xml msgid "" "Sets or clears individual bits on the collision mask. This makes selecting " "the areas scanned easier." msgstr "设置或清除碰撞掩码上的单个位。这使得选择扫描区域更容易。" #: doc/classes/RayCast2D.xml msgid "If [code]true[/code], collision with [Area2D]s will be reported." msgstr "如果为 [code]true[/code],将报告与 [Area2D] 的碰撞。" #: doc/classes/RayCast2D.xml msgid "If [code]true[/code], collision with [PhysicsBody2D]s will be reported." msgstr "如果为 [code]true[/code],将报告与 [PhysicsBody2D] 的碰撞。" #: doc/classes/RayCast2D.xml msgid "" "If [code]true[/code], the parent node will be excluded from collision " "detection." msgstr "如果为 [code]true[/code],父节点将被排除在碰撞检测之外。" #: doc/classes/RayShape.xml msgid "Ray shape for 3D collisions." msgstr "用于 3D 碰撞的射线形状。" #: doc/classes/RayShape.xml msgid "" "Ray shape for 3D collisions, which can be set into a [PhysicsBody] or " "[Area]. A ray is not really a collision body; instead, it tries to separate " "itself from whatever is touching its far endpoint. It's often useful for " "characters." msgstr "" "用于3D碰撞的射线形状,它可以被设置成一个[PhysicsBody]或[Area]。一条射线并不是" "真正的碰撞体;然而,它试图将自己与其远端点接触的东西分开。这通常对角色很有" "用。" #: doc/classes/RayShape.xml doc/classes/RayShape2D.xml msgid "The ray's length." msgstr "射线的长度。" #: doc/classes/RayShape.xml doc/classes/RayShape2D.xml msgid "If [code]true[/code], allow the shape to return the correct normal." msgstr "如果 [code]true[/code],则允许形状返回正确的法线。" #: doc/classes/RayShape2D.xml msgid "Ray shape for 2D collisions." msgstr "用于 2D 碰撞的射线形状。" #: doc/classes/RayShape2D.xml msgid "" "Ray shape for 2D collisions. A ray is not really a collision body; instead, " "it tries to separate itself from whatever is touching its far endpoint. It's " "often useful for characters." msgstr "" "二维碰撞的射线形状。射线并不是真正的碰撞体;相反,它试图将自己与接触其远端的" "任何东西分开。它通常对角色很有用。" #: doc/classes/Rect2.xml msgid "2D axis-aligned bounding box." msgstr "2D 轴对齐边界框。" #: doc/classes/Rect2.xml msgid "" "[Rect2] consists of a position, a size, and several utility functions. It is " "typically used for fast overlap tests.\n" "It uses floating-point coordinates.\n" "The 3D counterpart to [Rect2] is [AABB]." msgstr "" "[Rect2] 由一个坐标、一个大小和若干实用函数组成。它通常用于快速重叠测试。\n" "它使用浮点坐标。\n" "[Rect2] 在 3D 中对应 [AABB]。" #: doc/classes/Rect2.xml msgid "Constructs a [Rect2] by position and size." msgstr "按位置和大小构造一个[Rect2]。" #: doc/classes/Rect2.xml msgid "Constructs a [Rect2] by x, y, width, and height." msgstr "通过x、y、宽度和高度构造一个[Rect2]。" #: doc/classes/Rect2.xml msgid "" "Returns a [Rect2] with equivalent position and area, modified so that the " "top-left corner is the origin and [code]width[/code] and [code]height[/code] " "are positive." msgstr "" "返回具有相同位置和面积的 [Rect2],经过修改,使左上角为原点,[code]width[/" "code] 和 [code]height[/code] 为正数。" #: doc/classes/Rect2.xml msgid "Returns the intersection of this [Rect2] and b." msgstr "返回此 [Rect2] 和 b 的交集。" #: doc/classes/Rect2.xml msgid "" "Returns [code]true[/code] if this [Rect2] completely encloses another one." msgstr "如果此 [Rect2] 完全包含另一个,则返回 [code]true[/code]。" #: doc/classes/Rect2.xml msgid "" "Returns a copy of this [Rect2] expanded to include a given point.\n" "[b]Example:[/b]\n" "[codeblock]\n" "# position (-3, 2), size (1, 1)\n" "var rect = Rect2(Vector2(-3, 2), Vector2(1, 1))\n" "# position (-3, -1), size (3, 4), so we fit both rect and Vector2(0, -1)\n" "var rect2 = rect.expand(Vector2(0, -1))\n" "[/codeblock]" msgstr "" "返回该 [Rect2] 的副本,该副本扩展至包含给出的点。\n" "[b]例子:[/b]\n" "[codeblock]\n" "# position (-3, 2), size (1, 1)\n" "var rect = Rect2(Vector2(-3, 2), Vector2(1, 1))\n" "# position (-3, -1), size (3, 4), 包含原来的 Rect 和 Vector2(0, -1)\n" "var rect2 = rect.expand(Vector2(0, -1))\n" "[/codeblock]" #: doc/classes/Rect2.xml msgid "Returns the area of the [Rect2]. See also [method has_no_area]." msgstr "返回该 [Rect2] 的面积。另请参阅 [method has_no_area]。" #: doc/classes/Rect2.xml msgid "" "Returns the center of the [Rect2], which is equal to [member position] + " "([member size] / 2)." msgstr "返回该 [Rect2] 的中心,等于 [member position] + ([member size] / 2)。" #: doc/classes/Rect2.xml msgid "" "Returns a copy of the [Rect2] grown a given amount of units towards all the " "sides." msgstr "返回 [Rect2] 的副本,该副本向所有边增长了给定数量的单位。" #: doc/classes/Rect2.xml msgid "" "Returns a copy of the [Rect2] grown a given amount of units towards each " "direction individually." msgstr "返回 [Rect2] 的副本,该副本分别向各边增长了给定数量的单位。" #: doc/classes/Rect2.xml msgid "" "Returns a copy of the [Rect2] grown a given amount of units towards the " "[enum Margin] direction." msgstr "返回[Rect2]向[enum Margin]方向增长给定数量单位的副本。" #: doc/classes/Rect2.xml msgid "" "Returns [code]true[/code] if the [Rect2] is flat or empty, [code]false[/" "code] otherwise. See also [method get_area].\n" "[b]Note:[/b] If the [Rect2] has a negative size and is not flat or empty, " "[method has_no_area] will return [code]true[/code]." msgstr "" "如果该 [Rect2] 为线段或为空,则返回 [code]true[/code],否则返回 [code]false[/" "code]。另请参阅 [method get_area]。\n" "[b]注意:[/b]如果该 [Rect2] 的大小为负数,且既不是线段也不为空,则 [method " "has_no_area] 会返回 [code]true[/code]。" #: doc/classes/Rect2.xml msgid "" "Returns [code]true[/code] if the [Rect2] contains a point. By convention, " "the right and bottom edges of the [Rect2] are considered exclusive, so " "points on these edges are [b]not[/b] included.\n" "[b]Note:[/b] This method is not reliable for [Rect2] with a [i]negative " "size[/i]. Use [method abs] to get a positive sized equivalent rectangle to " "check for contained points." msgstr "" "返回 [code]true[/code] 时,该 [Rect2] 包含此点。依照惯例,[Rect2] 的右边缘和" "下边缘是被排除在外的,因此[b]不[/b]包含位于这两条边上的点。\n" "[b]注意:[/b]对于[i]大小为负[/i]的 [Rect2],该方法并不可靠。请使用 [method " "abs] 获取等价的正数大小矩形再检查是否包含某个点。" #: doc/classes/Rect2.xml msgid "" "Returns [code]true[/code] if the [Rect2] overlaps with [code]b[/code] (i.e. " "they have at least one point in common).\n" "If [code]include_borders[/code] is [code]true[/code], they will also be " "considered overlapping if their borders touch, even without intersection." msgstr "" "如果 [Rect2] 与 [code]b[/code] 重叠(即它们至少有一个共同点),则返回 " "[code]true[/code]。\n" "如果 [code]include_borders[/code] 是 [code]true[/code],如果它们的边界接触," "即使没有交叉,它们也会被视为重叠。" #: doc/classes/Rect2.xml msgid "" "Returns [code]true[/code] if this [Rect2] and [code]rect[/code] are " "approximately equal, by calling [code]is_equal_approx[/code] on each " "component." msgstr "" "如果此 [Rect2] 和 [code]rect[/code] 大致相等,则返回 [code]true[/code],方法" "是对每个分量运行 [code]is_equal_approx[/code]。" #: doc/classes/Rect2.xml msgid "Returns a larger [Rect2] that contains this [Rect2] and [code]b[/code]." msgstr "返回一个更大的 [Rect2],其中包含这个 [Rect2] 和 [code]b[/code]。" #: doc/classes/RectangleShape2D.xml msgid "Rectangle shape for 2D collisions." msgstr "二维碰撞的矩形。" #: doc/classes/RectangleShape2D.xml msgid "" "Rectangle shape for 2D collisions. This shape is useful for modeling box-" "like 2D objects." msgstr "二维碰撞的矩形。这个形状对于建模盒状2D对象很有用。" #: doc/classes/RectangleShape2D.xml msgid "" "The rectangle's half extents. The width and height of this shape is twice " "the half extents." msgstr "矩形大小的一半。即该形状的宽度和高度是该一半数值的两倍。" #: doc/classes/Reference.xml msgid "Base class for reference-counted objects." msgstr "引用计数对象的基类。" #: doc/classes/Reference.xml msgid "" "Base class for any object that keeps a reference count. [Resource] and many " "other helper objects inherit this class.\n" "Unlike other [Object] types, References keep an internal reference counter " "so that they are automatically released when no longer in use, and only " "then. References therefore do not need to be freed manually with [method " "Object.free].\n" "In the vast majority of use cases, instantiating and using [Reference]-" "derived types is all you need to do. The methods provided in this class are " "only for advanced users, and can cause issues if misused.\n" "[b]Note:[/b] In C#, references will not be freed instantly after they are no " "longer in use. Instead, garbage collection will run periodically and will " "free references that are no longer in use. This means that unused references " "will linger on for a while before being removed." msgstr "" "任何保持引用计数对象的基类。 [Resource] 和许多其他辅助对象继承了这个类。\n" "与其他 [Object] 类型不同,Reference 保留一个内部引用计数器,以便在不使用且仅" "在那时自动释放。因此,不需要使用 [method Object.free] 手动释放引用。\n" "在绝大多数用例中,您只需要实例化和使用 [Reference] 派生类型。此类中提供的方法" "仅适用于高级用户,如果误用可能会导致问题。\n" "[b]注意:[/b]在 C# 中,引用不再使用后不会立即释放。相反,垃圾收集将定期运行并" "释放不再使用的引用。这意味着未使用的引用会在被删除之前停留一段时间。" #: doc/classes/Reference.xml msgid "" "Initializes the internal reference counter. Use this only if you really know " "what you are doing.\n" "Returns whether the initialization was successful." msgstr "" "初始化内部引用计数器。只有在你真的知道你在做什么的时候才使用这个。\n" "返回初始化是否成功。" #: doc/classes/Reference.xml msgid "" "Increments the internal reference counter. Use this only if you really know " "what you are doing.\n" "Returns [code]true[/code] if the increment was successful, [code]false[/" "code] otherwise." msgstr "" "内部引用增量计数器。只有在你真的知道你在做什么的时候才使用这个。\n" "如果增量成功,返回 [code]true[/code],否则返回 [code]false[/code]。" #: doc/classes/Reference.xml msgid "" "Decrements the internal reference counter. Use this only if you really know " "what you are doing.\n" "Returns [code]true[/code] if the decrement was successful, [code]false[/" "code] otherwise." msgstr "" "内部引用减量计数器。只有在你真的知道你在做什么的时候才使用这个。\n" "如果减量成功,返回 [code]true[/code],否则返回 [code]false[/code]。" #: doc/classes/ReferenceRect.xml msgid "Reference frame for GUI." msgstr "GUI的引用框架。" #: doc/classes/ReferenceRect.xml msgid "" "A rectangle box that displays only a [member border_color] border color " "around its rectangle. [ReferenceRect] has no fill [Color]. If you need to " "display a rectangle filled with a solid color, consider using [ColorRect] " "instead." msgstr "" "矩形框,仅在其矩形周围显示 [member border_color] 边框颜色。 [ReferenceRect] " "没有填充 [Color]。如果你需要显示填充纯色的矩形,请考虑使用 [ColorRect] 。" #: doc/classes/ReferenceRect.xml msgid "Sets the border [Color] of the [ReferenceRect]." msgstr "设置 [ReferenceRect] 的边框 [Color]。" #: doc/classes/ReferenceRect.xml msgid "" "Sets the border width of the [ReferenceRect]. The border grows both inwards " "and outwards with respect to the rectangle box." msgstr "设置 [ReferenceRect] 的边框宽度。边界相对于矩形框向内和向外生长。" #: doc/classes/ReferenceRect.xml msgid "" "If set to [code]true[/code], the [ReferenceRect] will only be visible while " "in editor. Otherwise, [ReferenceRect] will be visible in game." msgstr "" "如果设置为 [code]true[/code],[ReferenceRect]将只在编辑器中可见。否则," "[ReferenceRect]将在游戏中可见。" #: doc/classes/ReflectionProbe.xml msgid "" "Captures its surroundings to create fast, accurate reflections from a given " "point." msgstr "捕捉某个位置周围的环境,用于快速创建准确的反射。" #: doc/classes/ReflectionProbe.xml msgid "" "Capture its surroundings as a dual paraboloid image, and stores versions of " "it with increasing levels of blur to simulate different material " "roughnesses.\n" "The [ReflectionProbe] is used to create high-quality reflections at a low " "performance cost (when [member update_mode] is [constant UPDATE_ONCE]). " "[ReflectionProbe]s can be blended together and with the rest of the scene " "smoothly. [ReflectionProbe]s can also be combined with [GIProbe] and screen-" "space reflections ([member Environment.ss_reflections_enabled]) to get more " "accurate reflections in specific areas. [ReflectionProbe]s render all " "objects within their [member cull_mask], so updating them can be quite " "expensive. It is best to update them once with the important static objects " "and then leave them as-is.\n" "[b]Note:[/b] Unlike [GIProbe], [ReflectionProbe]s only source their " "environment from a [WorldEnvironment] node. If you specify an [Environment] " "resource within a [Camera] node, it will be ignored by the " "[ReflectionProbe]. This can lead to incorrect lighting within the " "[ReflectionProbe].\n" "[b]Note:[/b] By default, Godot will only render 16 reflection probes. If you " "need more, increase the number of atlas subdivisions. This setting can be " "found in [member ProjectSettings.rendering/quality/reflections/" "atlas_subdiv].\n" "[b]Note:[/b] The GLES2 backend will only display two reflection probes at " "the same time for a single mesh. If possible, split up large meshes that " "span over multiple reflection probes into smaller ones." msgstr "" "将其周围环境捕捉为双抛物面图像,并以越来越高的模糊度存储其版本,以模拟不同的" "材质粗糙度。\n" "[ReflectionProbe] 可以用较低的性能消耗创建高质量的反射([member update_mode] " "为 [constant UPDATE_ONCE] 时)。多个 [ReflectionProbe] 可以与场景平滑地混合到" "一起。[ReflectionProbe] 还可以与 [GIProbe]、屏幕空间的反射([member " "Environment.ss_reflections_enabled])相结合,在特定区域获取更精确的反射。" "[ReflectionProbe] 会渲染其 [member cull_mask] 内的所有对象,所以更新可能相当" "消耗资源。最好是用重要的静态对象更新一次,然后就不去管了。\n" "[b]注意:[/b]与 [GIProbe] 不同,[ReflectionProbe] 只会从 [WorldEnvironment] " "节点获取环境。如果你是在 [Camera] 节点上指定的 [Environment],就会被 " "[ReflectionProbe] 忽略,导致 [ReflectionProbe] 中获取到错误的光照。\n" "[b]注意:[/b]默认情况下,Godot 只会渲染 16 个反射探针。如果需要更多,可以增加" "图集的细分数量。这个设置可以在[member ProjectSettings.rendering/quality/" "reflections/atlas_subdiv]找到。\n" "[b]注意:[/b]对于一个网格,GLES2 后端只能同时显示两个反射探针。如果可能的话," "把跨越多个反射探针的大网格分割成小网格。" #: doc/classes/ReflectionProbe.xml msgid "" "If [code]true[/code], enables box projection. This makes reflections look " "more correct in rectangle-shaped rooms by offsetting the reflection center " "depending on the camera's location.\n" "[b]Note:[/b] To better fit rectangle-shaped rooms that are not aligned to " "the grid, you can rotate the [ReflectionProbe] node." msgstr "" "为 [code]true[/code] 时将启用箱体投影。通过根据相机的位置偏移反射中心,这使得" "在矩形房间中的反射看起来更正确。\n" "[b]注意:[/b]为了更好地适应未与网格对齐的区域,你可以旋转 [ReflectionProbe] " "节点。" #: doc/classes/ReflectionProbe.xml msgid "" "Sets the cull mask which determines what objects are drawn by this probe. " "Every [VisualInstance] with a layer included in this cull mask will be " "rendered by the probe. To improve performance, it is best to only include " "large objects which are likely to take up a lot of space in the reflection." msgstr "" "设置剔除遮罩,确定此探针绘制的对象。只要 [VisualInstance] 的层包含在这个剔除" "遮罩中,就会被该探针渲染。最好只包含可能在反射中占用大量空间的大物体,以节省" "渲染成本。" #: doc/classes/ReflectionProbe.xml msgid "" "If [code]true[/code], computes shadows in the reflection probe. This makes " "the reflection probe slower to render; you may want to disable this if using " "the [constant UPDATE_ALWAYS] [member update_mode]." msgstr "" "如果[code]true[/code],则在反射探测中计算阴影。这使得反射探针渲染更慢;如果想" "禁用它,可以使用 [constant UPDATE_ALWAYS] [member update_mode]。" #: doc/classes/ReflectionProbe.xml msgid "" "The size of the reflection probe. The larger the extents the more space " "covered by the probe which will lower the perceived resolution. It is best " "to keep the extents only as large as you need them.\n" "[b]Note:[/b] To better fit areas that are not aligned to the grid, you can " "rotate the [ReflectionProbe] node." msgstr "" "反射探针的大小。范围越大,探针覆盖的空间就越大,这将降低感知的分辨率。最好的" "办法是把范围保持在你需要的程度上。\n" "[b]注意:[/b]为了更好地适应未与网格对齐的区域,你可以旋转 [ReflectionProbe] " "节点。" #: doc/classes/ReflectionProbe.xml msgid "" "Defines the reflection intensity. Intensity modulates the strength of the " "reflection." msgstr "定义反射强度。" #: doc/classes/ReflectionProbe.xml msgid "" "Sets the ambient light color to be used when this probe is set to [member " "interior_enable]." msgstr "设置环境光的颜色,当此探针被设置为[member interior_enable]时使用。" #: doc/classes/ReflectionProbe.xml msgid "" "Sets the contribution value for how much the reflection affects the ambient " "light for this reflection probe when set to [member interior_enable]. Useful " "so that ambient light matches the color of the room." msgstr "" "当设置为 [member interior_enable] 时,设置反射对该反射探测器的环境光的影响程" "度的贡献值。环境光与房间的颜色相匹配中很有用。" #: doc/classes/ReflectionProbe.xml msgid "" "Sets the energy multiplier for this reflection probe's ambient light " "contribution when set to [member interior_enable]." msgstr "" "当设置为[member interior_enable]时,为该反射探针的环境光贡献设置能量乘数。" #: doc/classes/ReflectionProbe.xml msgid "" "If [code]true[/code], reflections will ignore sky contribution. Ambient " "lighting is then controlled by the [code]interior_ambient_*[/code] " "properties." msgstr "" "如果[code]true[/code],反射将忽略天空的贡献。然后环境照明由" "[code]internal_ambient_*[/code]属性控制。" #: doc/classes/ReflectionProbe.xml msgid "" "The maximum distance away from the [ReflectionProbe] an object can be before " "it is culled. Decrease this to improve performance, especially when using " "the [constant UPDATE_ALWAYS] [member update_mode].\n" "[b]Note:[/b] The maximum reflection distance is always at least equal to the " "[member extents]. This means that decreasing [member max_distance] will not " "always cull objects from reflections, especially if the reflection probe's " "[member extents] are already large." msgstr "" "设置对象在被剔除前与该 [ReflectionProbe] 的最大距离。调低可以提升性能,尤其是" "使用 [constant UPDATE_ALWAYS] 作为 [member update_mode] 时。\n" "[b]注意:[/b]最大反射距离总是至少等于 [member extents] 的。这意味着减小 " "[member max_distance] 并不总能将对象剔除出反射,尤其是在反射探针的 [member " "extents] 相当大时。" #: doc/classes/ReflectionProbe.xml msgid "" "Sets the origin offset to be used when this [ReflectionProbe] is in [member " "box_projection] mode. This can be set to a non-zero value to ensure a " "reflection fits a rectangle-shaped room, while reducing the amount of " "objects that \"get in the way\" of the reflection." msgstr "" "设置该 [ReflectionProbe] 在 [member box_projection] 模式下所使用的原点偏移" "量。设为非 0 值可以保证反射适用于矩形房间,同时减少“挡住”反射的对象数量。" #: doc/classes/ReflectionProbe.xml msgid "" "Sets how frequently the [ReflectionProbe] is updated. Can be [constant " "UPDATE_ONCE] or [constant UPDATE_ALWAYS]." msgstr "" "设置 [ReflectionProbe] 的更新频率。可以是 [constant UPDATE_ONCE] 或 " "[constant UPDATE_ALWAYS]。" #: doc/classes/ReflectionProbe.xml msgid "" "Update the probe once on the next frame (recommended for most objects). The " "corresponding radiance map will be generated over the following six frames. " "This takes more time to update than [constant UPDATE_ALWAYS], but it has a " "lower performance cost and can result in higher-quality reflections. The " "ReflectionProbe is updated when its transform changes, but not when nearby " "geometry changes. You can force a [ReflectionProbe] update by moving the " "[ReflectionProbe] slightly in any direction." msgstr "" "在下一帧更新一次探针(建议大多数对象使用)。对应的辐照度贴图会在后续六帧中陆" "续生成。更新所花费的时间比 [constant UPDATE_ALWAYS] 多,但消耗的性能比它少、" "产生的反射质量也更高。ReflectionProbe 的变换发生变化时也会进行更新,但不会在" "周围几何体变化时更新。你可以通过将该 [ReflectionProbe] 在任意方向上进行小幅度" "移动来强制更新 [ReflectionProbe]。" #: doc/classes/ReflectionProbe.xml msgid "" "Update the probe every frame. This provides better results for fast-moving " "dynamic objects (such as cars). However, it has a significant performance " "cost. Due to the cost, it's recommended to only use one ReflectionProbe with " "[constant UPDATE_ALWAYS] at most per scene. For all other use cases, use " "[constant UPDATE_ONCE]." msgstr "" "每一帧都更新该探针。可以为快速移动的对象(如汽车)提供更好的结果。然而,带来" "的性能消耗也是显著的。因此,建议同一个场景中最多只使用一个 [constant " "UPDATE_ALWAYS] 的 ReflectionProbe。其他用途请使用 [constant UPDATE_ONCE]。" #: modules/regex/doc_classes/RegEx.xml msgid "Class for searching text for patterns using regular expressions." msgstr "使用正则表达式搜索文本的类。" #: modules/regex/doc_classes/RegEx.xml msgid "" "A regular expression (or regex) is a compact language that can be used to " "recognise strings that follow a specific pattern, such as URLs, email " "addresses, complete sentences, etc. For instance, a regex of [code]ab[0-9][/" "code] would find any string that is [code]ab[/code] followed by any number " "from [code]0[/code] to [code]9[/code]. For a more in-depth look, you can " "easily find various tutorials and detailed explanations on the Internet.\n" "To begin, the RegEx object needs to be compiled with the search pattern " "using [method compile] before it can be used.\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"\\\\w-(\\\\d+)\")\n" "[/codeblock]\n" "The search pattern must be escaped first for GDScript before it is escaped " "for the expression. For example, [code]compile(\"\\\\d+\")[/code] would be " "read by RegEx as [code]\\d+[/code]. Similarly, [code]compile(\"\\\"(?:\\\\\\" "\\.|[^\\\"])*\\\"\")[/code] would be read as [code]\"(?:\\\\.|[^\"])*\"[/" "code].\n" "Using [method search], you can find the pattern within the given text. If a " "pattern is found, [RegExMatch] is returned and you can retrieve details of " "the results using methods such as [method RegExMatch.get_string] and [method " "RegExMatch.get_start].\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"\\\\w-(\\\\d+)\")\n" "var result = regex.search(\"abc n-0123\")\n" "if result:\n" " print(result.get_string()) # Would print n-0123\n" "[/codeblock]\n" "The results of capturing groups [code]()[/code] can be retrieved by passing " "the group number to the various methods in [RegExMatch]. Group 0 is the " "default and will always refer to the entire pattern. In the above example, " "calling [code]result.get_string(1)[/code] would give you [code]0123[/code].\n" "This version of RegEx also supports named capturing groups, and the names " "can be used to retrieve the results. If two or more groups have the same " "name, the name would only refer to the first one with a match.\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"d(?[0-9]+)|x(?[0-9a-f]+)\")\n" "var result = regex.search(\"the number is x2f\")\n" "if result:\n" " print(result.get_string(\"digit\")) # Would print 2f\n" "[/codeblock]\n" "If you need to process multiple results, [method search_all] generates a " "list of all non-overlapping results. This can be combined with a [code]for[/" "code] loop for convenience.\n" "[codeblock]\n" "for result in regex.search_all(\"d01, d03, d0c, x3f and x42\"):\n" " print(result.get_string(\"digit\"))\n" "# Would print 01 03 0 3f 42\n" "[/codeblock]\n" "[b]Example of splitting a string using a RegEx:[/b]\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"\\\\S+\") # Negated whitespace character class.\n" "var results = []\n" "for result in regex.search_all(\"One Two \\n\\tThree\"):\n" " results.push_back(result.get_string())\n" "# The `results` array now contains \"One\", \"Two\", \"Three\".\n" "[/codeblock]\n" "[b]Note:[/b] Godot's regex implementation is based on the [url=https://www." "pcre.org/]PCRE2[/url] library. You can view the full pattern reference " "[url=https://www.pcre.org/current/doc/html/pcre2pattern.html]here[/url].\n" "[b]Tip:[/b] You can use [url=https://regexr.com/]Regexr[/url] to test " "regular expressions online." msgstr "" "正则表达式(或称regex)是一种紧凑的语言,可用于识别遵循特定模式的字符串,如" "URL、电子邮件地址、完整句子等。例如,一个[code]ab[0-9][/code]的正则表达式可以" "找到[code]ab[/code]后面跟着[code]0[/code]到[code]9[/code]的任何数字的字符串。" "要想更深入地了解,你可以很容易地在互联网上找到各种教程和详细解释。\n" "首先,在使用RegEx对象之前,需要用[method compile] 对其进行搜索模式的编译。\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"\\\\w-(\\\\d+)\")\n" "[/codeblock]\n" "在为表达式转义之前,必须先为GDScript转义搜索模式。例如,[code]compile(\"\\" "\\d+\")[/code]会被RegEx读成[code]\\d+[/code]。同样,[code]compile(\"\\\"(?:\\" "\\\\\\.|[^\\\"])*\\\")[/code]会被读作[code]\"(?:\\.|[^\"])*\"[/code]。\n" "使用 [method search] ,你可以在给定的文本中匹配模式。如果匹配到一个模式,将返" "回[RegExMatch],你可以使用[method RegExMatch.get_string]和[method RegExMatch." "get_start]等方法检索结果的细节。\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"\\\\w-(\\\\d+)\")\n" "var result = regex.search(\"abc n-0123\")\n" "if result:\n" " print(result.get_string()) # Would print n-0123\n" "[/codeblock]\n" "捕获组的结果[code]()[/code]可以通过向[RegExMatch]中的各种方法传递组号来检索。" "默认是组0,并且将总是指整个模式。在上面的例子中,调用[code]result." "get_string(1)[/code]会得到[code]0123[/code]。\n" "这个版本的RegEx也支持命名的捕获组,名称可以用来检索结果。如果两个或更多的组有" "相同的名称,那么这个名称将只指第一个有匹配的组。\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"d(?[0-9]+)|x(?[0-9a-f]+)\")\n" "var result = regex.search(\"the number is x2f\")\n" "if result:\n" " print(result.get_string(\"digit\")) # Would print 2f\n" "[/codeblock]\n" "如果你需要处理多个结果,[method search_all]会生成一个所有不重叠的结果列表。为" "了方便起见,这可以和一个[code]for[/code]循环结合起来。\n" "[codeblock]\n" "for result in regex.search_all(\"d01, d03, d0c, x3f and x42\"):\n" " print(result.get_string(\"digit\"))\n" "# Would print 01 03 0 3f 42\n" "[/codeblock]\n" "[b]使用RegEx分割字符串的例子:[/b]\n" "[codeblock]\n" "var regex = RegEx.new()\n" "regex.compile(\"\\\\S+\") # Negated whitespace character class.\n" "var results = []\n" "for result in regex.search_all(\"One Two \\n\\tThree\"):\n" " results.push_back(result.get_string())\n" "# The `results` array now contains \"One\", \"Two\", \"Three\".\n" "[/codeblock]\n" "[b]注意:[/b]Godot的regex实现是基于[url=https://www.pcre.org/]PCRE2[/url] " "库。你可以查看完整的模式参考[url=https://www.pcre.org/current/doc/html/" "pcre2pattern.html]这里[/url]。\n" "[b]提示:[/b] 你可以使用[url=https://regexr.com/]Regexr[/url]来在线测试正则表" "达式。" #: modules/regex/doc_classes/RegEx.xml msgid "" "This method resets the state of the object, as if it was freshly created. " "Namely, it unassigns the regular expression of this object." msgstr "" "这个方法重置了对象的状态,就像它是新创建的一样。也就是说,它取消了这个对象的" "正则表达式的赋值。" #: modules/regex/doc_classes/RegEx.xml msgid "" "Compiles and assign the search pattern to use. Returns [constant OK] if the " "compilation is successful. If an error is encountered, details are printed " "to standard output and an error is returned." msgstr "" "编译并指定要使用的搜索模式。如果编译成功,返回[constant OK]。如果遇到错误,细" "节将被打印到标准输出,并返回一个错误。" #: modules/regex/doc_classes/RegEx.xml msgid "Returns the number of capturing groups in compiled pattern." msgstr "返回编译模式中捕获组的数量。" #: modules/regex/doc_classes/RegEx.xml msgid "" "Returns an array of names of named capturing groups in the compiled pattern. " "They are ordered by appearance." msgstr "" "返回一个数组,该数组是编译模式中命名的捕获组的名称。它们是按外观排序的。" #: modules/regex/doc_classes/RegEx.xml msgid "Returns the original search pattern that was compiled." msgstr "返回被编译的原始搜索模式。" #: modules/regex/doc_classes/RegEx.xml msgid "Returns whether this object has a valid search pattern assigned." msgstr "返回此对象是否分配了有效的搜索模式。" #: modules/regex/doc_classes/RegEx.xml msgid "" "Searches the text for the compiled pattern. Returns a [RegExMatch] container " "of the first matching result if found, otherwise [code]null[/code]. The " "region to search within can be specified without modifying where the start " "and end anchor would be." msgstr "" "在文本中搜索编译后的模式。如果找到,返回第一个匹配结果的[RegExMatch]容器,否" "则返回 [code]null[/code]。可以指定要搜索的区域,而不需要修改开始和结束锚点的" "位置。" #: modules/regex/doc_classes/RegEx.xml msgid "" "Searches the text for the compiled pattern. Returns an array of [RegExMatch] " "containers for each non-overlapping result. If no results were found, an " "empty array is returned instead. The region to search within can be " "specified without modifying where the start and end anchor would be." msgstr "" "在文本中搜索编译过的模式。为每个不重叠的结果返回一个[RegExMatch]容器数组。如" "果没有发现任何结果,则返回一个空数组。可以指定要搜索的区域,而不需要修改开始" "和结束锚点的位置。" #: modules/regex/doc_classes/RegEx.xml msgid "" "Searches the text for the compiled pattern and replaces it with the " "specified string. Escapes and backreferences such as [code]$1[/code] and " "[code]$name[/code] are expanded and resolved. By default, only the first " "instance is replaced, but it can be changed for all instances (global " "replacement). The region to search within can be specified without modifying " "where the start and end anchor would be." msgstr "" "搜索文本中的编译模式,并将其替换为指定的字符串。诸如[code]$1[/code]和" "[code]$name[/code]等转义和反向引用会被展开和解决。默认情况下,只有第一个实例" "被替换,但可以对所有实例进行修改(全局替换)。可以指定要搜索的区域,而不需要" "修改开始和结束锚的位置。" #: modules/regex/doc_classes/RegExMatch.xml msgid "Contains the results of a [RegEx] search." msgstr "包含[RegEx]搜索的结果。" #: modules/regex/doc_classes/RegExMatch.xml msgid "" "Contains the results of a single [RegEx] match returned by [method RegEx." "search] and [method RegEx.search_all]. It can be used to find the position " "and range of the match and its capturing groups, and it can extract its " "substring for you." msgstr "" "包含由[method RegEx.search]和[method RegEx.search_all]返回的单个[RegEx]匹配结" "果。它可以用来查找匹配的位置和范围以及它的捕获组,并且可以提取其子字符串。" #: modules/regex/doc_classes/RegExMatch.xml msgid "" "Returns the end position of the match within the source string. The end " "position of capturing groups can be retrieved by providing its group number " "as an integer or its string name (if it's a named group). The default value " "of 0 refers to the whole pattern.\n" "Returns -1 if the group did not match or doesn't exist." msgstr "" "返回源字符串中匹配的结束位置。捕获组的结束位置可以通过提供其组号的整数或其字" "符串名称(如果它是一个命名组)来检索。默认值为0,指的是整个表达式。\n" "如果该组没有匹配或不存在,则返回-1。" #: modules/regex/doc_classes/RegExMatch.xml msgid "Returns the number of capturing groups." msgstr "返回捕获组的数量。" #: modules/regex/doc_classes/RegExMatch.xml msgid "" "Returns the starting position of the match within the source string. The " "starting position of capturing groups can be retrieved by providing its " "group number as an integer or its string name (if it's a named group). The " "default value of 0 refers to the whole pattern.\n" "Returns -1 if the group did not match or doesn't exist." msgstr "" "返回源字符串中匹配的起始位置。捕获组的起始位置可以通过提供它的组号作为一个整" "数或它的字符串名称(如果它是一个命名组)来检索。默认值为0,指的是整个表达" "式。\n" "如果组没有匹配或不存在,返回-1。" #: modules/regex/doc_classes/RegExMatch.xml msgid "" "Returns the substring of the match from the source string. Capturing groups " "can be retrieved by providing its group number as an integer or its string " "name (if it's a named group). The default value of 0 refers to the whole " "pattern.\n" "Returns an empty string if the group did not match or doesn't exist." msgstr "" "返回源字符串中匹配的子串。捕获组可以通过提供它的组号作为整数或它的字符串名称" "(如果它是一个命名组)来检索。默认值为0,指的是整个表达式。\n" "如果组没有匹配或不存在,则返回一个空字符串。" #: modules/regex/doc_classes/RegExMatch.xml msgid "" "A dictionary of named groups and its corresponding group number. Only groups " "that were matched are included. If multiple groups have the same name, that " "name would refer to the first matching one." msgstr "" "一个命名组的字典和它相应的组号。只有被匹配的组才被包括在内。如果多个组有相同" "的名称,该名称将指第一个匹配的组。" #: modules/regex/doc_classes/RegExMatch.xml msgid "An [Array] of the match and its capturing groups." msgstr "匹配项及其捕获组的 [Array]。" #: modules/regex/doc_classes/RegExMatch.xml msgid "" "The source string used with the search pattern to find this matching result." msgstr "与搜索模式一起使用的源字符串,以找到这个匹配结果。" #: doc/classes/RemoteTransform.xml msgid "" "RemoteTransform pushes its own [Transform] to another [Spatial] derived Node " "in the scene." msgstr "" "RemoteTransform将自己的[Transform]推送到场景中另一个[Spatial]派生节点。" #: doc/classes/RemoteTransform.xml msgid "" "RemoteTransform pushes its own [Transform] to another [Spatial] derived Node " "(called the remote node) in the scene.\n" "It can be set to update another Node's position, rotation and/or scale. It " "can use either global or local coordinates." msgstr "" "RemoteTransform将自己的[Transform]推送到场景中另一个[Spatial]派生节点(称为远" "程节点)。\n" "它可以被设置为更新另一个节点的位置、旋转和/或比例。它可以使用全局坐标或局部坐" "标。" #: doc/classes/RemoteTransform.xml msgid "" "[RemoteTransform] caches the remote node. It may not notice if the remote " "node disappears; [method force_update_cache] forces it to update the cache " "again." msgstr "" "[RemoteTransform] 缓存了远程节点。如果远程节点消失了,它可能不会注意到;" "[method force_update_cache] 强制它再次更新缓存。" #: doc/classes/RemoteTransform.xml msgid "" "The [NodePath] to the remote node, relative to the RemoteTransform's " "position in the scene." msgstr "远程节点的节点位置 [NodePath],相对于 RemoteTransform 在场景中的位置。" #: doc/classes/RemoteTransform.xml doc/classes/RemoteTransform2D.xml msgid "If [code]true[/code], the remote node's position is updated." msgstr "如果 [code]true[/code],则更新远程节点的位置。" #: doc/classes/RemoteTransform.xml doc/classes/RemoteTransform2D.xml msgid "If [code]true[/code], the remote node's rotation is updated." msgstr "如果 [code]true[/code],则更新远程节点的旋转。" #: doc/classes/RemoteTransform.xml doc/classes/RemoteTransform2D.xml msgid "If [code]true[/code], the remote node's scale is updated." msgstr "如果 [code]true[/code],则更新远程节点的比例。" #: doc/classes/RemoteTransform.xml doc/classes/RemoteTransform2D.xml msgid "" "If [code]true[/code], global coordinates are used. If [code]false[/code], " "local coordinates are used." msgstr "" "如果 [code]true[/code],则使用全局坐标。如果 [code]false[/code],则使用本地坐" "标。" #: doc/classes/RemoteTransform2D.xml msgid "" "RemoteTransform2D pushes its own [Transform2D] to another [CanvasItem] " "derived Node in the scene." msgstr "" "RemoteTransform2D将自己的[Transform2D]推送到场景中另一个[CanvasItem]派生节" "点。" #: doc/classes/RemoteTransform2D.xml msgid "" "RemoteTransform2D pushes its own [Transform2D] to another [CanvasItem] " "derived Node (called the remote node) in the scene.\n" "It can be set to update another Node's position, rotation and/or scale. It " "can use either global or local coordinates." msgstr "" "RemoteTransform2D 将自己的 [Transform2D] 推送到场景中另一个 [CanvasItem] 派生" "的节点(称为远程节点)。\n" "它可以被设置为更新另一个Node的位置、旋转或比例。它可以使用全局坐标或局部坐" "标。" #: doc/classes/RemoteTransform2D.xml msgid "" "[RemoteTransform2D] caches the remote node. It may not notice if the remote " "node disappears; [method force_update_cache] forces it to update the cache " "again." msgstr "" "[RemoteTransform2D] 缓存了远程节点。如果远程节点消失了,它可能不会通知;" "[method force_update_cache] 强制它再次更新缓存。" #: doc/classes/RemoteTransform2D.xml msgid "" "The [NodePath] to the remote node, relative to the RemoteTransform2D's " "position in the scene." msgstr "到远程节点的 [NodePath],相对于 RemoteTransform2D 在场景中的位置。" #: doc/classes/Resource.xml msgid "Base class for all resources." msgstr "所有资源的基类。" #: doc/classes/Resource.xml msgid "" "Resource is the base class for all Godot-specific resource types, serving " "primarily as data containers. Since they inherit from [Reference], resources " "are reference-counted and freed when no longer in use. They are also cached " "once loaded from disk, so that any further attempts to load a resource from " "a given path will return the same reference (all this in contrast to a " "[Node], which is not reference-counted and can be instanced from disk as " "many times as desired). Resources can be saved externally on disk or bundled " "into another object, such as a [Node] or another resource.\n" "[b]Note:[/b] In C#, resources will not be freed instantly after they are no " "longer in use. Instead, garbage collection will run periodically and will " "free resources that are no longer in use. This means that unused resources " "will linger on for a while before being removed." msgstr "" "资源是所有Godot特定资源类型的基类,主要作为数据容器。由于它们继承自" "[Reference],资源被引用计数,并在不再使用时被释放。一旦从磁盘加载,它们也会被" "缓存,因此任何从给定路径加载资源的尝试都会返回相同的引用(这与[Node]相反," "[Node]没有引用计数,可以根据需要从磁盘实例化多次)。资源可以从外部保存在磁盘" "上,也可以捆绑在另一个对象中,如[Node]或另一个资源。\n" "[b]注意:[/b]在C#中,资源不再被使用后不会立即被释放。相反,垃圾回收将定期运" "行,并释放不再使用的资源。这意味着未使用的资源在被删除之前会停留一段时间。" #: doc/classes/Resource.xml msgid "Resources" msgstr "资源" #: doc/classes/Resource.xml msgid "" "Virtual function which can be overridden to customize the behavior value of " "[method setup_local_to_scene]." msgstr "可以重写的虚函数,用于自定义 [method setup_local_to_scene] 的行为值。" #: doc/classes/Resource.xml msgid "" "Duplicates the resource, returning a new resource with the exported members " "copied. [b]Note:[/b] To duplicate the resource the constructor is called " "without arguments. This method will error when the constructor doesn't have " "default values.\n" "By default, sub-resources are shared between resource copies for efficiency. " "This can be changed by passing [code]true[/code] to the [code]subresources[/" "code] argument which will copy the subresources.\n" "[b]Note:[/b] If [code]subresources[/code] is [code]true[/code], this method " "will only perform a shallow copy. Nested resources within subresources will " "not be duplicated and will still be shared.\n" "[b]Note:[/b] When duplicating a resource, only [code]export[/code]ed " "properties are copied. Other properties will be set to their default value " "in the new resource." msgstr "" "复制资源,返回一个复制了导出成员属性的新资源。[b]注意:[/b]为了复制资源,构造" "函数被调用,没有参数。当构造函数没有默认值时,这个方法会出错。\n" "默认情况下,为了提高效率,子资源在资源副本之间被共享。这可以通过向" "[code]subresources[/code]参数传递[code]true[/code]来改变,它将复制子资源。\n" "[b]注意:[/b]如果[code]subresources[/code]是[code]true[/code],这个方法将只执" "行一个浅层拷贝。子资源中的嵌套资源不会被复制,仍然会被共享。\n" "[b]注意:[/b]当复制一个资源时,只有导出[code]export[/code]的属性被复制。其他" "属性将被设置为新资源中的默认值。" #: doc/classes/Resource.xml msgid "" "Emits the [signal changed] signal.\n" "If external objects which depend on this resource should be updated, this " "method must be called manually whenever the state of this resource has " "changed (such as modification of properties).\n" "The method is equivalent to:\n" "[codeblock]\n" "emit_signal(\"changed\")\n" "[/codeblock]\n" "[b]Note:[/b] This method is called automatically for built-in resources." msgstr "" "发出[signal changed]更改信号。\n" "如果依赖该资源的外部对象应该被更新,那么每当该资源的状态发生变化(如属性的修" "改)时,必须手动调用该方法。\n" "该方法等同于。\n" "[codeblock]\n" "emit_signal(\"change\")\n" "[/codeblock]\n" "[b]注意:[/b]这个方法对于内置资源来说是自动调用的。" #: doc/classes/Resource.xml msgid "" "If [member resource_local_to_scene] is enabled and the resource was loaded " "from a [PackedScene] instantiation, returns the local scene where this " "resource's unique copy is in use. Otherwise, returns [code]null[/code]." msgstr "" "如果启用了 [member resource_local_to_scene],并且该资源是从 [PackedScene] 实" "例中加载的,则返回该资源的唯一副本正在使用的本地场景。否则返回 [code]null[/" "code]。" #: doc/classes/Resource.xml msgid "" "Returns the RID of the resource (or an empty RID). Many resources (such as " "[Texture], [Mesh], etc) are high-level abstractions of resources stored in a " "server, so this function will return the original RID." msgstr "" "返回该资源的 RID(或者空的 RID)。许多资源(如 [Texture]、[Mesh] 等)是存储在" "服务器中的资源的高级抽象,所以这个函数将返回原始的 RID。" #: doc/classes/Resource.xml msgid "" "This method is called when a resource with [member resource_local_to_scene] " "enabled is loaded from a [PackedScene] instantiation. Its behavior can be " "customized by overriding [method _setup_local_to_scene] from script.\n" "For most resources, this method performs no base logic. [ViewportTexture] " "performs custom logic to properly set the proxy texture and flags in the " "local viewport." msgstr "" "当启用了 [member resource_local_to_scene] 的资源从 [PackedScene] 实例化中加载" "时,这个方法会被调用。它的行为可以通过覆盖脚本中的 [method " "_setup_local_to_scene] 进行定制。\n" "对于大多数资源,该方法不执行任何基本逻辑。[ViewportTexture] 执行自定义逻辑以" "正确设置本地视窗中的代理纹理和标志。" #: doc/classes/Resource.xml msgid "" "Sets the path of the resource, potentially overriding an existing cache " "entry for this path. This differs from setting [member resource_path], as " "the latter would error out if another resource was already cached for the " "given path." msgstr "" "设置资源的路径,可能会覆盖这个路径的现有缓存条目。这与设置 [member " "resource_path] 不同,因为后者会在其他资源已经被缓存在给定的路径上时出错。" #: doc/classes/Resource.xml msgid "" "If [code]true[/code], the resource will be made unique in each instance of " "its local scene. It can thus be modified in a scene instance without " "impacting other instances of that same scene." msgstr "" "如果为 [code]true[/code],那么在本地场景的各个实例中,该资源都会被唯一化。因" "此,在场景的某个实例中对其进行修改,不会影响同一场景中的其他实例。" #: doc/classes/Resource.xml msgid "" "The name of the resource. This is an optional identifier. If [member " "resource_name] is not empty, its value will be displayed to represent the " "current resource in the editor inspector. For built-in scripts, the [member " "resource_name] will be displayed as the tab name in the script editor." msgstr "" "资源的名称,是可选的标识符。如果 [member resource_name] 不为空,则编辑器检查" "器中将用这个值来表示当前的资源。对于内置脚本,[member resource_name] 将作为脚" "本编辑器中的选项卡名称显示。" #: doc/classes/Resource.xml msgid "" "The path to the resource. In case it has its own file, it will return its " "filepath. If it's tied to the scene, it will return the scene's path, " "followed by the resource's index." msgstr "" "资源的路径。如果它有自己的文件,它将返回其文件路径。如果它是与场景绑定的,它" "将返回场景的路径和资源的索引。" #: doc/classes/Resource.xml msgid "" "Emitted whenever the resource changes.\n" "[b]Note:[/b] This signal is not emitted automatically for custom resources, " "which means that you need to create a setter and emit the signal yourself." msgstr "" "每当资源发生变化时就会触发。\n" "[b]注意:[/b]自定义资源不会自动触发这个信号,这意味着你需要自己创建一个 " "Setter 并触发信号。" #: doc/classes/ResourceFormatLoader.xml msgid "Loads a specific resource type from a file." msgstr "从文件中加载特定资源类型。" #: doc/classes/ResourceFormatLoader.xml msgid "" "Godot loads resources in the editor or in exported games using " "ResourceFormatLoaders. They are queried automatically via the " "[ResourceLoader] singleton, or when a resource with internal dependencies is " "loaded. Each file type may load as a different resource type, so multiple " "ResourceFormatLoaders are registered in the engine.\n" "Extending this class allows you to define your own loader. Be sure to " "respect the documented return types and values. You should give it a global " "class name with [code]class_name[/code] for it to be registered. Like built-" "in ResourceFormatLoaders, it will be called automatically when loading " "resources of its handled type(s). You may also implement a " "[ResourceFormatSaver].\n" "[b]Note:[/b] You can also extend [EditorImportPlugin] if the resource type " "you need exists but Godot is unable to load its format. Choosing one way " "over another depends on if the format is suitable or not for the final " "exported game. For example, it's better to import [code].png[/code] textures " "as [code].stex[/code] ([StreamTexture]) first, so they can be loaded with " "better efficiency on the graphics card." msgstr "" "Godot使用ResourceFormatLoaders在编辑器或导出的游戏中加载资源。它们通过" "[ResourceLoader]单例自动查询,或者在加载具有内部依赖性的资源时被查询。每个文" "件类型可以作为不同的资源类型加载,因此在引擎中注册了多个" "ResourceFormatLoaders。\n" "扩展这个类允许你定义你自己的加载器。请确保尊重文档中的返回类型和值。你应该给" "它一个带有[code]class_name[/code]的全局类名,这样它才能被注册。像内置的" "ResourceFormatLoaders一样,它将在加载其处理的类型的资源时被自动调用。你也可以" "实现一个[ResourceFormatSaver]。\n" "[b]注意:[/b]如果你需要的资源类型存在,但Godot无法加载其格式,你也可以扩展" "[EditorImportPlugin]。选择一种方式而不是另一种方式,取决于该格式是否适合于最" "终导出的游戏。例如,最好先把[code].png[/code]纹理导入为[code].stex[/code]" "([StreamTexture]),这样它们在显卡上的加载效率会更好。" #: doc/classes/ResourceFormatLoader.xml msgid "" "If implemented, gets the dependencies of a given resource. If " "[code]add_types[/code] is [code]true[/code], paths should be appended " "[code]::TypeName[/code], where [code]TypeName[/code] is the class name of " "the dependency.\n" "[b]Note:[/b] Custom resource types defined by scripts aren't known by the " "[ClassDB], so you might just return [code]\"Resource\"[/code] for them." msgstr "" "如果实现,则获取给定资源的依赖项。如果 [code]add_types[/code] 是 [code]true[/" "code],路径应该附加 [code]::TypeName[/code],其中 [code]TypeName[/code] 是依" "赖的类名。\n" "[b]注意:[/b][ClassDB] 不知道脚本定义的自定义资源类型,因此您可能只为它们返" "回 [code]\"Resource\"[/code]。" #: doc/classes/ResourceFormatLoader.xml msgid "Gets the list of extensions for files this loader is able to read." msgstr "获取该加载器能够读取的文件的扩展名列表。" #: doc/classes/ResourceFormatLoader.xml msgid "" "Gets the class name of the resource associated with the given path. If the " "loader cannot handle it, it should return [code]\"\"[/code].\n" "[b]Note:[/b] Custom resource types defined by scripts aren't known by the " "[ClassDB], so you might just return [code]\"Resource\"[/code] for them." msgstr "" "获取与给定路径相关的资源的类名。如果加载器不能处理它,它应该返回 [code]\"\"[/" "code]。\n" "[b]注意:[/b][ClassDB] 不知道脚本定义的自定义资源类型,因此您可能只为它们返" "回 [code]\"Resource\"[/code]。" #: doc/classes/ResourceFormatLoader.xml msgid "" "Tells which resource class this loader can load.\n" "[b]Note:[/b] Custom resource types defined by scripts aren't known by the " "[ClassDB], so you might just handle [code]\"Resource\"[/code] for them." msgstr "" "说明这个加载器可以加载哪个资源类。\n" "[b]注意:[/b][ClassDB] 不知道脚本定义的自定义资源类型,因此您可以只为它们处" "理 [code]\"Resource\"[/code]。" #: doc/classes/ResourceFormatLoader.xml msgid "" "Loads a resource when the engine finds this loader to be compatible. If the " "loaded resource is the result of an import, [code]original_path[/code] will " "target the source file. Returns a [Resource] object on success, or an [enum " "Error] constant in case of failure." msgstr "" "当引擎发现这个加载器是兼容的,就会加载一个资源。如果加载的资源是导入的结果," "[code]original_path[/code]将针对源文件。成功时返回一个[Resource]对象,失败时" "返回一个[enum Error]常量。" #: doc/classes/ResourceFormatLoader.xml msgid "" "If implemented, renames dependencies within the given resource and saves it. " "[code]renames[/code] is a dictionary [code]{ String => String }[/code] " "mapping old dependency paths to new paths.\n" "Returns [constant OK] on success, or an [enum Error] constant in case of " "failure." msgstr "" "如果实现,重命名给定资源中的依赖项并保存它。 [code]renames[/code] 是一个将旧" "的依赖路径映射到新的路径的 [code]{ String => String }[/code]的字典 。\n" "成功时返回 [constant OK],失败时返回 [enum Error] 常量。" #: doc/classes/ResourceFormatSaver.xml msgid "Saves a specific resource type to a file." msgstr "将特定资源类型保存到文件。" #: doc/classes/ResourceFormatSaver.xml msgid "" "The engine can save resources when you do it from the editor, or when you " "use the [ResourceSaver] singleton. This is accomplished thanks to multiple " "[ResourceFormatSaver]s, each handling its own format and called " "automatically by the engine.\n" "By default, Godot saves resources as [code].tres[/code] (text-based), [code]." "res[/code] (binary) or another built-in format, but you can choose to create " "your own format by extending this class. Be sure to respect the documented " "return types and values. You should give it a global class name with " "[code]class_name[/code] for it to be registered. Like built-in " "ResourceFormatSavers, it will be called automatically when saving resources " "of its recognized type(s). You may also implement a [ResourceFormatLoader]." msgstr "" "当您从编辑器执行此操作或使用 [ResourceSaver] 单例时,引擎可以节省资源。这要归" "功于多个 [ResourceFormatSaver],每个都处理自己的格式并由引擎自动调用。\n" "默认情况下,Godot 将资源保存为 [code].tres[/code](基于文本)、[code].res[/" "code](二进制)或其他内置格式,但您可以选择通过扩展这个类来创建自己的格式。请" "务必遵守记录的返回类型和值。你应该给它一个全局类名 [code]class_name[/code] 以" "便它被注册。与内置的 ResourceFormatSavers 一样,它会在保存其识别类型的资源时" "自动调用。你也可以实现一个 [ResourceFormatLoader]。" #: doc/classes/ResourceFormatSaver.xml msgid "" "Returns the list of extensions available for saving the resource object, " "provided it is recognized (see [method recognize])." msgstr "" "返回可用于保存资源对象的扩展列表,前提是它被识别(见[method recognize])。" #: doc/classes/ResourceFormatSaver.xml msgid "Returns whether the given resource object can be saved by this saver." msgstr "返回此保存程序能否保存给定的资源对象。" #: doc/classes/ResourceFormatSaver.xml msgid "" "Saves the given resource object to a file at the target [code]path[/code]. " "[code]flags[/code] is a bitmask composed with [enum ResourceSaver." "SaverFlags] constants.\n" "Returns [constant OK] on success, or an [enum Error] constant in case of " "failure." msgstr "" "将给定的资源对象保存到目标[code]path[/code]处的文件。[code]flags[/code]是一个" "由[enum ResourceSaver.SaverFlags]常量组成的位掩码。\n" "成功时返回[constant OK],失败时返回[enum Error]常量。" #: doc/classes/ResourceImporter.xml msgid "Base class for the implementation of core resource importers." msgstr "用于实现核心资源导入器的基类。" #: doc/classes/ResourceImporter.xml msgid "" "This is the base class for the resource importers implemented in core. To " "implement your own resource importers using editor plugins, see " "[EditorImportPlugin]." msgstr "" "这是在核心部分实现的资源导入器的基类。要使用编辑器插件实现你自己的资源导入" "器,请参阅[EditorImportPlugin]。" #: doc/classes/ResourceImporter.xml msgid "Import plugins" msgstr "导入插件" #: doc/classes/ResourceImporter.xml msgid "The default import order." msgstr "默认导入顺序。" #: doc/classes/ResourceImporter.xml msgid "" "The import order for scenes, which ensures scenes are imported [i]after[/i] " "all other core resources such as textures. Custom importers should generally " "have an import order lower than [code]100[/code] to avoid issues when " "importing scenes that rely on custom resources." msgstr "" "场景的导入顺序,确保场景被导入在所有其他核心资源(如纹理)[i]之后[/i]。自定义" "导入器的导入顺序一般应低于[code]100[/code],以避免导入依赖自定义资源的场景时" "出现问题。" #: doc/classes/ResourceInteractiveLoader.xml msgid "Interactive [Resource] loader." msgstr "交互式 [Resource] 加载器。" #: doc/classes/ResourceInteractiveLoader.xml msgid "" "Interactive [Resource] loader. This object is returned by [ResourceLoader] " "when performing an interactive load. It allows loading resources with high " "granularity, which makes it mainly useful for displaying loading bars or " "percentages." msgstr "" "交互式资源[Resource]加载器。这个对象在执行交互式加载时由[ResourceLoader]返" "回。它允许以高粒度(high granularity)加载资源,这使得它主要用于显示加载条或" "百分比。" #: doc/classes/ResourceInteractiveLoader.xml msgid "" "Returns the loaded resource if the load operation completed successfully, " "[code]null[/code] otherwise." msgstr "如果加载操作成功完成,返回加载的资源,否则为空[code]null[/code]。" #: doc/classes/ResourceInteractiveLoader.xml msgid "" "Returns the load stage. The total amount of stages can be queried with " "[method get_stage_count]." msgstr "返回加载阶段。可以使用[method get_stage_count]查询阶段总数。" #: doc/classes/ResourceInteractiveLoader.xml msgid "" "Returns the total amount of stages (calls to [method poll]) needed to " "completely load this resource." msgstr "返回完全加载此资源所需的阶段总数(调用 [method poll])。" #: doc/classes/ResourceInteractiveLoader.xml msgid "" "Polls the loading operation, i.e. loads a data chunk up to the next stage.\n" "Returns [constant OK] if the poll is successful but the load operation has " "not finished yet (intermediate stage). This means [method poll] will have to " "be called again until the last stage is completed.\n" "Returns [constant ERR_FILE_EOF] if the load operation has completed " "successfully. The loaded resource can be obtained by calling [method " "get_resource].\n" "Returns another [enum Error] code if the poll has failed." msgstr "" "对加载操作进行轮询,即加载一个数据块到下一个阶段。\n" "如果轮询成功,但加载操作还没有完成(中间阶段),则返回[constant OK]。这意味着" "[method poll]将不得不再次被调用,直到最后阶段完成。\n" "如果加载操作已经成功完成,返回[constant ERR_FILE_EOF]。可以通过调用[method " "get_resource]获得加载的资源。\n" "如果轮询失败,返回另一个[enum Error]错误代码。" #: doc/classes/ResourceInteractiveLoader.xml msgid "" "Polls the loading operation successively until the resource is completely " "loaded or a [method poll] fails.\n" "Returns [constant ERR_FILE_EOF] if the load operation has completed " "successfully. The loaded resource can be obtained by calling [method " "get_resource].\n" "Returns another [enum Error] code if a poll has failed, aborting the " "operation." msgstr "" "连续地对加载操作进行轮询,直到资源被完全加载或方法[method poll]轮询失败。\n" "如果加载操作成功完成,返回[constant ERR_FILE_EOF]。可以通过调用[method " "get_resource]获得加载的资源。\n" "如果轮询失败,返回另一个[enum Error]错误代码,中止操作。" #: doc/classes/ResourceLoader.xml msgid "Singleton used to load resource files." msgstr "用于加载资源文件的单例。" #: doc/classes/ResourceLoader.xml msgid "" "Singleton used to load resource files from the filesystem.\n" "It uses the many [ResourceFormatLoader] classes registered in the engine " "(either built-in or from a plugin) to load files into memory and convert " "them to a format that can be used by the engine." msgstr "" "用于从文件系统加载资源文件的单例。\n" "它使用在引擎中注册的许多[ResourceFormatLoader]类(无论是内置的还是来自插件" "的)来将文件加载到内存中,并将它们转换为引擎可以使用的格式。" #: doc/classes/ResourceLoader.xml msgid "" "Returns whether a recognized resource exists for the given [code]path[/" "code].\n" "An optional [code]type_hint[/code] can be used to further specify the " "[Resource] type that should be handled by the [ResourceFormatLoader]." msgstr "" "返回给定的[code]path[/code]是否存在已识别的资源。\n" "一个可选的[code]type_hint[/code]可以用来进一步指定[ResourceFormatLoader]应该" "处理的[Resource]类型。" #: doc/classes/ResourceLoader.xml msgid "" "Returns the dependencies for the resource at the given [code]path[/code]." msgstr "返回给定[code]path[/code]处资源的依赖关系。" #: doc/classes/ResourceLoader.xml msgid "Returns the list of recognized extensions for a resource type." msgstr "返回资源类型的已识别扩展名列表。" #: doc/classes/ResourceLoader.xml msgid "" "[i]Deprecated method.[/i] Use [method has_cached] or [method exists] instead." msgstr "[i]废弃的方法。[/i]使用[method has_cached]或[method exists]代替。" #: doc/classes/ResourceLoader.xml msgid "" "Returns whether a cached resource is available for the given [code]path[/" "code].\n" "Once a resource has been loaded by the engine, it is cached in memory for " "faster access, and future calls to the [method load] or [method " "load_interactive] methods will use the cached version. The cached resource " "can be overridden by using [method Resource.take_over_path] on a new " "resource for that same path." msgstr "" "返回给定路径[code]path[/code]的缓存资源是否可用。\n" "一旦资源被引擎加载,它就会被缓存在内存中,以便更快地访问,未来对[method load]" "或[method load_interactive]方法的调用将使用缓存的版本。缓存的资源可以通过对同" "一路径的新资源使用[method Resource.take_over_path]来覆盖。" #: doc/classes/ResourceLoader.xml msgid "" "Loads a resource at the given [code]path[/code], caching the result for " "further access.\n" "The registered [ResourceFormatLoader]s are queried sequentially to find the " "first one which can handle the file's extension, and then attempt loading. " "If loading fails, the remaining ResourceFormatLoaders are also attempted.\n" "An optional [code]type_hint[/code] can be used to further specify the " "[Resource] type that should be handled by the [ResourceFormatLoader]. " "Anything that inherits from [Resource] can be used as a type hint, for " "example [Image].\n" "If [code]no_cache[/code] is [code]true[/code], the resource cache will be " "bypassed and the resource will be loaded anew. Otherwise, the cached " "resource will be returned if it exists.\n" "Returns an empty resource if no [ResourceFormatLoader] could handle the " "file.\n" "GDScript has a simplified [method @GDScript.load] built-in method which can " "be used in most situations, leaving the use of [ResourceLoader] for more " "advanced scenarios." msgstr "" "在给定的路径[code]path[/code]上加载一个资源,缓存结果以便进一步访问。\n" "依次查询注册的[ResourceFormatLoader],找到第一个可以处理该文件扩展名的加载" "器,然后尝试加载。如果加载失败,其余的ResourceFormatLoaders也会被尝试。\n" "一个可选的[code]type_hint[/code]类型提示可以用来进一步指定" "[ResourceFormatLoader]应处理的[Resource]资源类型。任何继承自[Resource]的东西" "都可以被用作类型提示,例如图像[Image]。\n" "如果[code]no_cache[/code]是[code]true[/code],资源缓存将被绕过,资源将被重新" "加载。否则,如果缓存的资源存在,将被返回。\n" "如果没有[ResourceFormatLoader]可以处理该文件,则返回一个空资源。\n" "GDScript有一个简化的[method @GDScript.load]内置方法,可以在大多数情况下使用," "把[ResourceLoader]的使用留给更高级的场景。" #: doc/classes/ResourceLoader.xml msgid "" "Starts loading a resource interactively. The returned " "[ResourceInteractiveLoader] object allows to load with high granularity, " "calling its [method ResourceInteractiveLoader.poll] method successively to " "load chunks.\n" "An optional [code]type_hint[/code] can be used to further specify the " "[Resource] type that should be handled by the [ResourceFormatLoader]. " "Anything that inherits from [Resource] can be used as a type hint, for " "example [Image]." msgstr "" "开始交互式加载一个资源。返回的[ResourceInteractiveLoader]对象允许以高粒度加" "载,连续调用其[method ResourceInteractiveLoader.poll]轮询方法来加载分块。\n" "一个可选的[code]type_hint[/code]类型提示可以用来进一步指定应该由" "[ResourceFormatLoader]处理的资源[Resource]类型。任何继承自[Resource]的东西都" "可以被用作类型提示,例如[Image]。" #: doc/classes/ResourceLoader.xml msgid "" "Changes the behavior on missing sub-resources. The default behavior is to " "abort loading." msgstr "更改缺少子资源时的行为。默认行为是中止加载。" #: doc/classes/ResourcePreloader.xml msgid "Resource Preloader Node." msgstr "资源预加载器节点。" #: doc/classes/ResourcePreloader.xml msgid "" "This node is used to preload sub-resources inside a scene, so when the scene " "is loaded, all the resources are ready to use and can be retrieved from the " "preloader.\n" "GDScript has a simplified [method @GDScript.preload] built-in method which " "can be used in most situations, leaving the use of [ResourcePreloader] for " "more advanced scenarios." msgstr "" "该节点用于预加载场景内的子资源,因此当场景加载时,所有资源都可以使用并且可以" "从预加载器中检索。\n" "GDScript 有一个简化的 [method @GDScript.preload] 内置方法,可以在大多数情况下" "使用,让 [ResourcePreloader] 用于更高级的场景。" #: doc/classes/ResourcePreloader.xml msgid "" "Adds a resource to the preloader with the given [code]name[/code]. If a " "resource with the given [code]name[/code] already exists, the new resource " "will be renamed to \"[code]name[/code] N\" where N is an incrementing number " "starting from 2." msgstr "" "将一个资源添加到预加载器中,并给出[code]name[/code]。如果给定的[code]name[/" "code]的资源已经存在,新的资源将被重命名为\"[code]name[/code] N\",其中N是一个" "从2开始的递增数字。" #: doc/classes/ResourcePreloader.xml msgid "Returns the resource associated to [code]name[/code]." msgstr "返回与 [code]name[/code] 关联的资源。" #: doc/classes/ResourcePreloader.xml msgid "Returns the list of resources inside the preloader." msgstr "返回预加载器内的资源列表。" #: doc/classes/ResourcePreloader.xml msgid "" "Returns [code]true[/code] if the preloader contains a resource associated to " "[code]name[/code]." msgstr "" "如果预加载器包含一个与[code]name[/code]相关的资源,则返回 [code]true[/code]。" #: doc/classes/ResourcePreloader.xml msgid "" "Removes the resource associated to [code]name[/code] from the preloader." msgstr "从预加载器中删除与[code]name[/code]有关的资源。" #: doc/classes/ResourcePreloader.xml msgid "" "Renames a resource inside the preloader from [code]name[/code] to " "[code]newname[/code]." msgstr "将预加载器中的资源从[code]name[/code]重命名为[code]newname[/code]。" #: doc/classes/ResourceSaver.xml msgid "Singleton for saving Godot-specific resource types." msgstr "用于保存Godot特定资源类型的单例。" #: doc/classes/ResourceSaver.xml msgid "" "Singleton for saving Godot-specific resource types to the filesystem.\n" "It uses the many [ResourceFormatSaver] classes registered in the engine " "(either built-in or from a plugin) to save engine-specific resource data to " "text-based (e.g. [code].tres[/code] or [code].tscn[/code]) or binary files " "(e.g. [code].res[/code] or [code].scn[/code])." msgstr "" "用于将Godot特定的资源类型保存到文件系统的单例。\n" "它使用在引擎中注册的许多[ResourceFormatSaver]类(无论是内置的还是来自插件" "的),将引擎特定的资源数据保存到基于文本(如[code].res[/code]或[code].tscn[/" "code])或二进制文件(如[code].res[/code]或[code].scn[/code])。" #: doc/classes/ResourceSaver.xml msgid "" "Returns the list of extensions available for saving a resource of a given " "type." msgstr "返回可用于保存给定类型的资源的扩展列表。" #: doc/classes/ResourceSaver.xml msgid "" "Saves a resource to disk to the given path, using a [ResourceFormatSaver] " "that recognizes the resource object.\n" "The [code]flags[/code] bitmask can be specified to customize the save " "behavior.\n" "Returns [constant OK] on success." msgstr "" "使用识别资源对象的[ResourceFormatSaver]将资源保存到给定路径的磁盘。\n" "可以指定 [code]flags[/code] 位掩码来自定义保存行为。\n" "成功后返回[constant OK]。" #: doc/classes/ResourceSaver.xml msgid "Save the resource with a path relative to the scene which uses it." msgstr "用相对于使用该资源的场景的路径来保存该资源。" #: doc/classes/ResourceSaver.xml msgid "Bundles external resources." msgstr "捆绑外部资源。" #: doc/classes/ResourceSaver.xml msgid "" "Changes the [member Resource.resource_path] of the saved resource to match " "its new location." msgstr "更改已保存资源的 [member Resource.resource_path] 以匹配其新位置。" #: doc/classes/ResourceSaver.xml msgid "" "Do not save editor-specific metadata (identified by their [code]__editor[/" "code] prefix)." msgstr "不要保存编辑器特定的元数据(由其 [code]__editor[/code] 前缀标识)。" #: doc/classes/ResourceSaver.xml msgid "Save as big endian (see [member File.endian_swap])." msgstr "保存为大端(参阅 [member File.endian_swap])。" #: doc/classes/ResourceSaver.xml msgid "" "Compress the resource on save using [constant File.COMPRESSION_ZSTD]. Only " "available for binary resource types." msgstr "" "在保存时使用 [constant File.COMPRESSION_ZSTD] 压缩资源。仅适用于二进制资源类" "型。" #: doc/classes/ResourceSaver.xml msgid "" "Take over the paths of the saved subresources (see [method Resource." "take_over_path])." msgstr "接管保存的子资源的路径(见[method Resource.take_over_path])。" #: doc/classes/RichTextEffect.xml msgid "A custom effect for use with [RichTextLabel]." msgstr "与 [RichTextLabel] 一起使用的自定义效果。" #: doc/classes/RichTextEffect.xml msgid "" "A custom effect for use with [RichTextLabel].\n" "[b]Note:[/b] For a [RichTextEffect] to be usable, a BBCode tag must be " "defined as a member variable called [code]bbcode[/code] in the script.\n" "[codeblock]\n" "# The RichTextEffect will be usable like this: `[example]Some text[/" "example]`\n" "var bbcode = \"example\"\n" "[/codeblock]\n" "[b]Note:[/b] As soon as a [RichTextLabel] contains at least one " "[RichTextEffect], it will continuously process the effect unless the project " "is paused. This may impact battery life negatively." msgstr "" "用于 [RichTextLabel] 的自定义效果。\n" "[b]注意:[/b]为了使 [RichTextEffect] 能够使用,必须在脚本中定义一个名为 " "[code]bbcode[/code] 的 BBCode 标签作为成员变量。\n" "[codeblock]\n" "# 这个 RichTextEffect 的用法就会是:`[example]一些文本[/example]`.\n" "var bbcode = \"example\"\n" "[/codeblock]\n" "[b]注意:[/b]只要 [RichTextLabel] 中包含至少一个 [RichTextEffect],它就会持续" "处理这个效果,除非项目暂停。这可能会对电池寿命产生负面影响。" #: doc/classes/RichTextEffect.xml msgid "" "Override this method to modify properties in [code]char_fx[/code]. The " "method must return [code]true[/code] if the character could be transformed " "successfully. If the method returns [code]false[/code], it will skip " "transformation to avoid displaying broken text." msgstr "" "覆盖这个方法来修改[code]char_fx[/code]中的属性。如果字符可以被成功转换,该方" "法必须返回 [code]true[/code]。如果该方法返回 [code]false[/code],它将跳过转" "换,以避免显示破碎的文本。" #: doc/classes/RichTextLabel.xml msgid "Label that displays rich text." msgstr "显示富文本的标签。" #: doc/classes/RichTextLabel.xml msgid "" "Rich text can contain custom text, fonts, images and some basic formatting. " "The label manages these as an internal tag stack. It also adapts itself to " "given width/heights.\n" "[b]Note:[/b] Assignments to [member bbcode_text] clear the tag stack and " "reconstruct it from the property's contents. Any edits made to [member " "bbcode_text] will erase previous edits made from other manual sources such " "as [method append_bbcode] and the [code]push_*[/code] / [method pop] " "methods.\n" "[b]Note:[/b] RichTextLabel doesn't support entangled BBCode tags. For " "example, instead of using [code][b]bold[i]bold italic[/b]italic[/i][/code], " "use [code][b]bold[i]bold italic[/i][/b][i]italic[/i][/code].\n" "[b]Note:[/b] [code]push_*/pop[/code] functions won't affect BBCode.\n" "[b]Note:[/b] Unlike [Label], RichTextLabel doesn't have a [i]property[/i] to " "horizontally align text to the center. Instead, enable [member " "bbcode_enabled] and surround the text in a [code][center][/code] tag as " "follows: [code][center]Example[/center][/code]. There is currently no built-" "in way to vertically align text either, but this can be emulated by relying " "on anchors/containers and the [member fit_content_height] property.\n" "[b]Note:[/b] Unicode characters after [code]0xffff[/code] (such as most " "emoji) are [i]not[/i] supported on Windows. They will display as unknown " "characters instead. This will be resolved in Godot 4.0." msgstr "" "富文本可以包含自定义文本、字体、图像和一些基本格式。该标签会将这些以内部标签" "堆栈的形式进行管理。它还可以适应给定的宽度/高度。\n" "[b]注意:[/b]为 [member bbcode_text] 设置内容会清除标签堆栈并根据该属性的内容" "重建。对 [member bbcode_text] 所做的任何编辑都将删除先前从其他手动来源(例如 " "[method append_bbcode] 和 [code]push_*[/code] / [method pop] 方法)所做的编" "辑。\n" "[b]注意:[/b]RichTextLabel 不支持纠缠的 BBCode 标签。例如,不要使用 [code]" "[b]bold[i]bold italic[/b]italic[/i][/code],应该使用 [code][b]bold[i]bold " "italic[/i][/b][i]italic[/i][/code]。\n" "[b]注意:[/b][code]push_*/pop[/code] 函数不会影响 BBCode。\n" "[b]注意:[/b]与 [Label] 不同,RichTextLabel 没有可以将文本水平居中对其的[i]属" "性[/i]。不过你可以启用 [member bbcode_enabled] 并将文本括在 [code][center][/" "code] 标签中,类似:[code][center]例子[/center][/code]。目前也没有垂直对齐文" "本的内置方法,但这可以通过依赖锚点/容器和 [member fit_content_height] 属性来" "模拟。\n" "[b]注意:[/b]Windows 上[i]不支持[/i] [code]0xffff[/code] 之后的 Unicode 字符" "(例如大多数表情符号)。它们将显示为未知字符。这将在 Godot 4.0 中解决。" #: doc/classes/RichTextLabel.xml msgid "BBCode in RichTextLabel" msgstr "RichTextLabel 中的 BBCode" #: doc/classes/RichTextLabel.xml msgid "GUI Rich Text/BBcode Demo" msgstr "GUI 富文本/BBcode 演示" #: doc/classes/RichTextLabel.xml msgid "" "Adds an image's opening and closing tags to the tag stack, optionally " "providing a [code]width[/code] and [code]height[/code] to resize the image.\n" "If [code]width[/code] or [code]height[/code] is set to 0, the image size " "will be adjusted in order to keep the original aspect ratio." msgstr "" "将图像的开头和结尾标签添加到标签堆中,可以选择提供 [code]width[/code] 和 " "[code]height[/code] 来调整图像的大小。\n" "如果 [code]width[/code] 或 [code]height[/code] 被设置为 0,图像的大小被调整为" "保持原始长宽比。" #: doc/classes/RichTextLabel.xml msgid "Adds raw non-BBCode-parsed text to the tag stack." msgstr "将非 BBCode 解析的原始文本添加到标签栈中。" #: doc/classes/RichTextLabel.xml msgid "" "Parses [code]bbcode[/code] and adds tags to the tag stack as needed.\n" "[b]Note:[/b] Using this method, you can't close a tag that was opened in a " "previous [method append_bbcode] call. This is done to improve performance, " "especially when updating large RichTextLabels since rebuilding the whole " "BBCode every time would be slower. If you absolutely need to close a tag in " "a future method call, append the [member bbcode_text] instead of using " "[method append_bbcode].\n" "[b]Note:[/b] This method internals' can't possibly fail, but an error code " "is returned for backwards compatibility, which will always be [constant OK]." msgstr "" "解析 [code]bbcode[/code] 并根据需要将标签添加到标签堆栈中。\n" "[b]注意:[/b]使用此方法,您无法关闭在之前的 [method append_bbcode] 调用中打开" "的标签。这样做是为了提高性能,特别是在更新大型 RichTextLabel 时,因为每次重建" "整个 BBCode 会更慢。如果您绝对需要在将来的方法调用中关闭标签,请附加 [member " "bbcode_text] 而不是使用 [method append_bbcode]。\n" "[b]注意:[/b]这个方法内部是不可能失败的,返回错误码是为了向后兼容,始终为 " "[constant OK]。" #: doc/classes/RichTextLabel.xml msgid "Clears the tag stack and sets [member bbcode_text] to an empty string." msgstr "清除标记堆栈并将 [member bbcode_text] 设置为空字符串。" #: doc/classes/RichTextLabel.xml msgid "Returns the height of the content." msgstr "返回内容的高度。" #: doc/classes/RichTextLabel.xml msgid "" "Returns the total number of newlines in the tag stack's text tags. Considers " "wrapped text as one line." msgstr "返回标签栈中文本标签的换行总数。将被包裹的文本视为一行。" #: doc/classes/RichTextLabel.xml msgid "Returns the current selection text. Does not include BBCodes." msgstr "返回当前选中的文本。不包括 BBCode。" #: doc/classes/RichTextLabel.xml msgid "" "Returns the total number of characters from text tags. Does not include " "BBCodes." msgstr "返回文本标签的总字符数。不包括 BBCode。" #: doc/classes/RichTextLabel.xml msgid "Returns the number of visible lines." msgstr "返回可见行数。" #: doc/classes/RichTextLabel.xml msgid "" "Installs a custom effect. [code]effect[/code] should be a valid " "[RichTextEffect]." msgstr "" "安装自定义效果。 [code]effect[/code] 应该是一个有效的 [RichTextEffect]。" #: doc/classes/RichTextLabel.xml msgid "Adds a newline tag to the tag stack." msgstr "在标签堆中添加一个换行标签。" #: doc/classes/RichTextLabel.xml msgid "" "The assignment version of [method append_bbcode]. Clears the tag stack and " "inserts the new content.\n" "[b]Note:[/b] This method internals' can't possibly fail, but an error code " "is returned for backwards compatibility, which will always be [constant OK]." msgstr "" "[method append_bbcode] 的赋值版本。会清除标签栈并插入新内容。\n" "[b]注意:[/b]这个方法内部是不可能失败的,返回错误码是为了向后兼容,始终为 " "[constant OK]。" #: doc/classes/RichTextLabel.xml msgid "Parses BBCode parameter [code]expressions[/code] into a dictionary." msgstr "将 BBCode 参数 [code]expressions[/code] 解析为字典。" #: doc/classes/RichTextLabel.xml msgid "" "Terminates the current tag. Use after [code]push_*[/code] methods to close " "BBCodes manually. Does not need to follow [code]add_*[/code] methods." msgstr "" "终止当前标签。使用 [code]push_*[/code] 方法之后手动关闭 BBCodes。不需要遵循 " "[code]add_*[/code] 方法。" #: doc/classes/RichTextLabel.xml msgid "" "Adds an [code][align][/code] tag based on the given [code]align[/code] " "value. See [enum Align] for possible values." msgstr "" "根据给定的[code][align][/code]值,添加一个[code]align[/code]标签。可能的值见" "[enum Align]。" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][font][/code] tag with a bold font to the tag stack. This is " "the same as adding a [code][b][/code] tag if not currently in a [code][i][/" "code] tag." msgstr "" "在标签堆中添加一个[code][font][/code]标签,字体为黑体。如果当前没有[code][i]" "[/code]标签,这与添加一个[code][b][/code]标签相同。" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][font][/code] tag with a bold italics font to the tag stack." msgstr "在标签堆中添加一个[code][font][/code]标签,字体为粗斜体。" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][cell][/code] tag to the tag stack. Must be inside a [code]" "[table][/code] tag. See [method push_table] for details." msgstr "" "将一个[code][cell][/code]标签添加到标签堆中。必须在一个[code][table][/code]标" "签内。详情见[method push_table]。" #: doc/classes/RichTextLabel.xml msgid "Adds a [code][color][/code] tag to the tag stack." msgstr "将一个[code][color][/code]标签添加到标签堆。" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][font][/code] tag to the tag stack. Overrides default fonts for " "its duration." msgstr "" "将一个[code][font][/code]标签添加到标签堆中。在其有效期内覆盖默认字体。" #: doc/classes/RichTextLabel.xml msgid "" "Adds an [code][indent][/code] tag to the tag stack. Multiplies [code]level[/" "code] by current [member tab_size] to determine new margin length." msgstr "" "将 [code][indent][/code] 标签添加到标签堆栈。将 [code]level[/code] 乘以当前 " "[member tab_size] 以确定新的边距长度。" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][font][/code] tag with a italics font to the tag stack. This is " "the same as adding a [code][i][/code] tag if not currently in a [code][b][/" "code] tag." msgstr "" "在标签堆中添加一个[code][font][/code]标签,字体为斜体。如果当前没有[code][b]" "[/code]标签,这与添加[code][i][/code]标签相同。" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][list][/code] tag to the tag stack. Similar to the BBCodes " "[code][ol][/code] or [code][ul][/code], but supports more list types. Not " "fully implemented!" msgstr "" "在标签栈中添加一个[code][list][/code]标签。类似于BBCodes [code][ol][/code] " "或 [code][ul][/code] ,但支持更多的列表类型。未完全实现!" #: doc/classes/RichTextLabel.xml msgid "" "Adds a [code][meta][/code] tag to the tag stack. Similar to the BBCode [code]" "[url=something]{text}[/url][/code], but supports non-[String] metadata types." msgstr "" "添加一个[code][meta][/code]标签到标签堆中。类似于BBCode [code][url=something]" "{text}[/url][/code],但支持非[String]元数据类型。" #: doc/classes/RichTextLabel.xml msgid "Adds a [code][font][/code] tag with a monospace font to the tag stack." msgstr "在标签堆中添加一个[code][font][/code]标签,该标签为等宽字体。" #: doc/classes/RichTextLabel.xml msgid "Adds a [code][font][/code] tag with a normal font to the tag stack." msgstr "在标签堆中添加一个具有正常字体的[code][font][/code]标签。" #: doc/classes/RichTextLabel.xml msgid "Adds a [code][s][/code] tag to the tag stack." msgstr "将一个[code][s][/code]标签添加到标签堆中。" #: doc/classes/RichTextLabel.xml msgid "Adds a [code][table=columns][/code] tag to the tag stack." msgstr "将一个[code][table=columns][/code]标签添加到标签栈。" #: doc/classes/RichTextLabel.xml msgid "Adds a [code][u][/code] tag to the tag stack." msgstr "将一个[code][u][/code]标签添加到标签堆中。" #: doc/classes/RichTextLabel.xml msgid "" "Removes a line of content from the label. Returns [code]true[/code] if the " "line exists.\n" "The [code]line[/code] argument is the index of the line to remove, it can " "take values in the interval [code][0, get_line_count() - 1][/code]." msgstr "" "删除标签中的一行内容。如果该行存在,则返回 [code]true[/code]。\n" "参数 [code]line[/code] 是要删除的行的索引,可以在 [code][0, get_line_count() " "- 1][/code] 的区间内取值。" #: doc/classes/RichTextLabel.xml msgid "Scrolls the window's top line to match [code]line[/code]." msgstr "滚动窗口的顶行以匹配[code]line[/code]。" #: doc/classes/RichTextLabel.xml msgid "" "Edits the selected column's expansion options. If [code]expand[/code] is " "[code]true[/code], the column expands in proportion to its expansion ratio " "versus the other columns' ratios.\n" "For example, 2 columns with ratios 3 and 4 plus 70 pixels in available width " "would expand 30 and 40 pixels, respectively.\n" "If [code]expand[/code] is [code]false[/code], the column will not contribute " "to the total ratio." msgstr "" "编辑选中的列的扩展选项。如果[code]expand[/code]是[code]true[/code],该列会按" "其扩展比例与其他列的比例进行扩展。\n" "例如,2个比率为3和4的列加上70像素的可用宽度将分别扩展30和40像素。\n" "如果[code]expand[/code]是[code]false[/code],该列将不会对总的比例产生影响。" #: doc/classes/RichTextLabel.xml msgid "" "If [code]true[/code], the label uses BBCode formatting.\n" "[b]Note:[/b] Trying to alter the [RichTextLabel]'s text with [method " "add_text] will reset this to [code]false[/code]. Use instead [method " "append_bbcode] to preserve BBCode formatting." msgstr "" "如果 [code]true[/code],标签使用 BBCode 格式。\n" "[b]注意:[/b]尝试使用 [method add_text] 更改 [RichTextLabel] 的文本会将其重置" "为 [code]false[/code]。改用 [method append_bbcode] 来保留 BBCode 格式。" #: doc/classes/RichTextLabel.xml msgid "" "The label's text in BBCode format. Is not representative of manual " "modifications to the internal tag stack. Erases changes made by other " "methods when edited.\n" "[b]Note:[/b] It is unadvised to use the [code]+=[/code] operator with " "[code]bbcode_text[/code] (e.g. [code]bbcode_text += \"some string\"[/code]) " "as it replaces the whole text and can cause slowdowns. It will also erase " "all BBCode that was added to stack using [code]push_*[/code] methods. Use " "[method append_bbcode] for adding text instead, unless you absolutely need " "to close a tag that was opened in an earlier method call." msgstr "" "BBCode 格式的标签文本。不代表对内部标签栈的手动修改。编辑时擦除通过其他方法所" "做的更改。\n" "[b]注意:[/b]不建议将 [code]+=[/code] 运算符与 [code]bbcode_text[/code] 一起" "使用(例如 [code]bbcode_text += \"some string\"[/code]),因为它会替换整个文" "本并可能导致速度变慢。它还会清除所有使用 [code]push_*[/code] 方法入栈的 " "BBCode。使用 [method append_bbcode] 代替添加文本,除非你必须关闭在先前方法调" "用中打开的标签。" #: doc/classes/RichTextLabel.xml msgid "" "The currently installed custom effects. This is an array of " "[RichTextEffect]s.\n" "To add a custom effect, it's more convenient to use [method install_effect]." msgstr "" "当前配置的自定义效果。这是一个[RichTextEffect]的数组。\n" "要添加一个自定义效果,使用[method install_effect]会更方便。" #: doc/classes/RichTextLabel.xml msgid "" "If [code]true[/code], the label's height will be automatically updated to " "fit its content.\n" "[b]Note:[/b] This property is used as a workaround to fix issues with " "[RichTextLabel] in [Container]s, but it's unreliable in some cases and will " "be removed in future versions." msgstr "" "如果 [code]true[/code],标签的高度将自动更新以适应其内容。\n" "[b]注意:[/b]此属性用作解决 [Container] 中 [RichTextLabel] 问题的解决方法,但" "在某些情况下不可靠,将在未来版本中删除。" #: doc/classes/RichTextLabel.xml msgid "" "If [code]true[/code], the label underlines meta tags such as [code][url]" "{text}[/url][/code]." msgstr "" "如果 [code]true[/code],则会在元标签下划线,例如 [code][url]{text}[/url][/" "code]。" #: doc/classes/RichTextLabel.xml msgid "If [code]true[/code], the label uses the custom font color." msgstr "如果 [code]true[/code],则标签使用自定义字体颜色。" #: doc/classes/RichTextLabel.xml msgid "" "The range of characters to display, as a [float] between 0.0 and 1.0. When " "assigned an out of range value, it's the same as assigning 1.0.\n" "[b]Note:[/b] Setting this property updates [member visible_characters] based " "on current [method get_total_character_count]." msgstr "" "要显示的字符范围,数值为0.0和1.0之间的[float]。当分配一个超出范围的值时,它和" "分配1.0是一样的。\n" "[b]注意:[/b]设置这个属性会根据当前的[method get_total_character_count]更新" "[member visible_characters]。" #: doc/classes/RichTextLabel.xml msgid "" "If [code]true[/code], the scrollbar is visible. Setting this to [code]false[/" "code] does not block scrolling completely. See [method scroll_to_line]." msgstr "" "如果 [code]true[/code],则滚动条可见。将此设置为 [code]false[/code] 不会完全" "阻止滚动。见[method scroll_to_line]。" #: doc/classes/RichTextLabel.xml msgid "" "If [code]true[/code], the window scrolls down to display new content " "automatically." msgstr "如果 [code]true[/code],则窗口向下滚动以自动显示新内容。" #: doc/classes/RichTextLabel.xml msgid "If [code]true[/code], the label allows text selection." msgstr "如果 [code]true[/code],标签允许文本选择。" #: doc/classes/RichTextLabel.xml msgid "" "The number of spaces associated with a single tab length. Does not affect " "[code]\\t[/code] in text tags, only indent tags." msgstr "" "与单个制表符长度关联的空格数。不影响文本标签中的 [code]\\t[/code],只影响缩进" "标签。" #: doc/classes/RichTextLabel.xml msgid "" "The raw text of the label.\n" "When set, clears the tag stack and adds a raw text tag to the top of it. " "Does not parse BBCodes. Does not modify [member bbcode_text]." msgstr "" "标签的原始文本。\n" "设置后,清除标签堆栈并在其顶部添加一个原始文本标签。不解析 BBCode。不修改 " "[member bbcode_text]。" #: doc/classes/RichTextLabel.xml msgid "" "The restricted number of characters to display in the label. If [code]-1[/" "code], all characters will be displayed.\n" "[b]Note:[/b] Setting this property updates [member percent_visible] based on " "current [method get_total_character_count]." msgstr "" "在标签中显示的字符数限制。如果[code]-1[/code],将显示所有字符。\n" "[b]注意:[/b]设置此属性会根据当前的[method get_total_character_count]更新" "[member percent_visible]。" #: doc/classes/RichTextLabel.xml msgid "" "Triggered when the user clicks on content between meta tags. If the meta is " "defined in text, e.g. [code][url={\"data\"=\"hi\"}]hi[/url][/code], then the " "parameter for this signal will be a [String] type. If a particular type or " "an object is desired, the [method push_meta] method must be used to manually " "insert the data into the tag stack." msgstr "" "当用户点击元标记之间的内容时触发。如果元是在文本中定义的,例如[code]" "[url={\"data\"=\"hi\"}]hi[/url][/code],则该信号的参数为[String]类型。如果需" "要特定类型或对象,则必须使用 [method push_meta] 方法将数据手动插入标签堆栈。" #: doc/classes/RichTextLabel.xml msgid "Triggers when the mouse exits a meta tag." msgstr "当鼠标退出元标签时触发。" #: doc/classes/RichTextLabel.xml msgid "Triggers when the mouse enters a meta tag." msgstr "当鼠标进入元标签时触发。" #: doc/classes/RichTextLabel.xml msgid "Makes text left aligned." msgstr "使文本左对齐。" #: doc/classes/RichTextLabel.xml msgid "Makes text centered." msgstr "使文本居中。" #: doc/classes/RichTextLabel.xml msgid "Makes text right aligned." msgstr "使文本右对齐。" #: doc/classes/RichTextLabel.xml msgid "Makes text fill width." msgstr "使文本填充宽度。" #: doc/classes/RichTextLabel.xml msgid "Each list item has a number marker." msgstr "每个列表项都有一个数字标记。" #: doc/classes/RichTextLabel.xml msgid "Each list item has a letter marker." msgstr "每个列表项都有一个字母标记。" #: doc/classes/RichTextLabel.xml msgid "Each list item has a filled circle marker." msgstr "每个列表项都有一个实心圆圈标记。" #: doc/classes/RichTextLabel.xml msgid "The default text color." msgstr "默认文本颜色。" #: doc/classes/RichTextLabel.xml msgid "" "The color of selected text, used when [member selection_enabled] is " "[code]true[/code]." msgstr "" "选定文本的颜色(当[member selection_enabled]为 [code]true[/code] 时使用)。" #: doc/classes/RichTextLabel.xml msgid "The color of the font's shadow." msgstr "字体阴影的颜色。" #: doc/classes/RichTextLabel.xml msgid "The color of the selection box." msgstr "选择框的颜色。" #: doc/classes/RichTextLabel.xml msgid "The vertical space between lines." msgstr "行之间的垂直空间。" #: doc/classes/RichTextLabel.xml msgid "" "Boolean value. If 1 ([code]true[/code]), the shadow will be displayed around " "the whole text as an outline." msgstr "" "布尔值。如果是1([code]true[/code]),阴影将以轮廓的形式围绕整个文本显示。" #: doc/classes/RichTextLabel.xml msgid "The horizontal offset of the font's shadow." msgstr "字体阴影的水平偏移量。" #: doc/classes/RichTextLabel.xml msgid "The vertical offset of the font's shadow." msgstr "字体阴影的垂直偏移。" #: doc/classes/RichTextLabel.xml msgid "The horizontal separation of elements in a table." msgstr "表中元素的水平间距。" #: doc/classes/RichTextLabel.xml msgid "The vertical separation of elements in a table." msgstr "表中元素的垂直间距。" #: doc/classes/RichTextLabel.xml msgid "The font used for bold text." msgstr "用于粗体字的字体。" #: doc/classes/RichTextLabel.xml msgid "The font used for bold italics text." msgstr "用于粗斜体文字的字体。" #: doc/classes/RichTextLabel.xml msgid "The font used for italics text." msgstr "用于斜体字的字体。" #: doc/classes/RichTextLabel.xml msgid "The font used for monospace text." msgstr "用于等宽文本的字体。" #: doc/classes/RichTextLabel.xml msgid "The default text font." msgstr "默认的文本字体。" #: doc/classes/RichTextLabel.xml msgid "The background used when the [RichTextLabel] is focused." msgstr "[RichTextLabel] 获得焦点时使用的背景。" #: doc/classes/RichTextLabel.xml msgid "The normal background for the [RichTextLabel]." msgstr "[RichTextLabel] 的正常背景。" #: doc/classes/RID.xml msgid "Handle for a [Resource]'s unique ID." msgstr "[Resource] 的唯一 ID 的句柄。" #: doc/classes/RID.xml msgid "" "The RID type is used to access the unique integer ID of a resource. They are " "opaque, which means they do not grant access to the associated resource by " "themselves. They are used by and with the low-level Server classes such as " "[VisualServer]." msgstr "" "RID类型用于访问资源的唯一整数ID。它们不透明,这意味着其本身并不授予对相关资源" "的访问。它们被低级别的服务类使用,如[VisualServer]。" #: doc/classes/RID.xml msgid "" "Creates a new RID instance with the ID of a given resource. When not handed " "a valid resource, silently stores the unused ID 0." msgstr "" "用给定资源的ID创建一个新的RID实例。当没有得到一个有效的资源时,默认存储未使用" "的ID 0。" #: doc/classes/RID.xml msgid "Returns the ID of the referenced resource." msgstr "返回引用资源的 ID。" #: doc/classes/RigidBody.xml msgid "" "Physics Body whose position is determined through physics simulation in 3D " "space." msgstr "物理物体,其位置是通过 3D 空间中的物理模拟确定的。" #: doc/classes/RigidBody.xml msgid "" "This is the node that implements full 3D physics. This means that you do not " "control a RigidBody directly. Instead, you can apply forces to it (gravity, " "impulses, etc.), and the physics simulation will calculate the resulting " "movement, collision, bouncing, rotating, etc.\n" "A RigidBody has 4 behavior [member mode]s: Rigid, Static, Character, and " "Kinematic.\n" "[b]Note:[/b] Don't change a RigidBody's position every frame or very often. " "Sporadic changes work fine, but physics runs at a different granularity " "(fixed Hz) than usual rendering (process callback) and maybe even in a " "separate thread, so changing this from a process loop may result in strange " "behavior. If you need to directly affect the body's state, use [method " "_integrate_forces], which allows you to directly access the physics state.\n" "If you need to override the default physics behavior, you can write a custom " "force integration function. See [member custom_integrator].\n" "With Bullet physics (the default), the center of mass is the RigidBody3D " "center. With GodotPhysics, the center of mass is the average of the " "[CollisionShape] centers." msgstr "" "这是实现完整 3D 物理的节点。这意味着你是不直接控制刚体。而是,可以对其施加" "力,重力、冲力等,模拟物理将计算由此产生的运动、碰撞、弹跳、旋转等。\n" "刚体有 4 种行为 [member mode]:刚体、静态、角色和运动。\n" "[b]注意:[/b]不要每帧或非常频繁地改变刚体的位置。零星的更改将正常工作,但物理" "运行的粒度(固定 Hz)与通常的渲染(进程回调)不同,甚至可能在单独的线程中运" "行,因此从进程循环更改它可能会导致异常。如果需要直接影响物体的状态,使用" "[method _integrate_forces],可以直接访问物理状态。\n" "如果你需要覆盖默认的物理行为,可以编写自定义的力积分函数。参阅[member " "custom_integrator]。\n" "对于子弹物理(默认),质心是 RigidBody3D 中心。对于 GodotPhysics,质心是 " "[CollisionShape] 中心的平均值。" #: doc/classes/RigidBody.xml msgid "" "Called during physics processing, allowing you to read and safely modify the " "simulation state for the object. By default, it works in addition to the " "usual physics behavior, but the [member custom_integrator] property allows " "you to disable the default behavior and do fully custom force integration " "for a body." msgstr "" "在物理处理过程中被调用,允许你读取并安全地修改对象的模拟状态。默认情况下,它" "是在通常的物理行为之外工作的,但是[member custom_integrator]属性允许你禁用默" "认行为,为一个物体施加完全自定义的合力。" #: doc/classes/RigidBody.xml msgid "" "Adds a constant directional force (i.e. acceleration) without affecting " "rotation.\n" "This is equivalent to [code]add_force(force, Vector3(0,0,0))[/code]." msgstr "" "在不影响旋转的情况下添加恒定的方向力(即加速度)。\n" "这相当于 [code]add_force(force, Vector3(0,0,0))[/code]。" #: doc/classes/RigidBody.xml msgid "" "Adds a constant directional force (i.e. acceleration).\n" "The position uses the rotation of the global coordinate system, but is " "centered at the object's origin." msgstr "" "添加一个恒定的方向力(即加速度)。\n" "位置使用全局坐标系的旋转,但以物体的原点为中心。" #: doc/classes/RigidBody.xml msgid "" "Adds a constant rotational force (i.e. a motor) without affecting position." msgstr "在不影响位置的情况下添加恒定的旋转力。" #: doc/classes/RigidBody.xml msgid "" "Applies a directional impulse without affecting rotation.\n" "This is equivalent to [code]apply_impulse(Vector3(0,0,0), impulse)[/code]." msgstr "" "施加单一方向的冲量而不影响旋转。\n" "这等价于[code]apply_impulse(Vector3(0,0,0), impulse)[/code]。" #: doc/classes/RigidBody.xml msgid "" "Applies a positioned impulse to the body. An impulse is time independent! " "Applying an impulse every frame would result in a framerate-dependent force. " "For this reason it should only be used when simulating one-time impacts. The " "position uses the rotation of the global coordinate system, but is centered " "at the object's origin." msgstr "" "对物体施加一个有向的冲量。冲量是与时间无关的! 在每一帧中施加一个冲量将产生一" "个与帧率相关的力。出于这个原因,它应该只在模拟一次性影响时使用。该位置使用全" "局坐标系的旋转,但以物体的原点为中心。" #: doc/classes/RigidBody.xml msgid "" "Applies a torque impulse which will be affected by the body mass and shape. " "This will rotate the body around the [code]impulse[/code] vector passed." msgstr "" "施加一个冲量矩,它将受到物体质量和形状的影响。这将使物体围绕所传递的" "[code]impulse[/code]向量进行旋转。" #: doc/classes/RigidBody.xml msgid "" "Returns [code]true[/code] if the specified linear or rotational axis is " "locked." msgstr "如果指定的线性或旋转轴被锁定,则返回 [code]true[/code]。" #: doc/classes/RigidBody.xml doc/classes/RigidBody2D.xml msgid "" "Returns a list of the bodies colliding with this one. Requires [member " "contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions.\n" "[b]Note:[/b] The result of this test is not immediate after moving objects. " "For performance, list of collisions is updated once per frame and before the " "physics step. Consider using signals instead." msgstr "" "返回一个与此碰撞的物体的列表。要求[member contact_monitor]设置为 [code]true[/" "code],[member contacts_reported]设置得足够高,以检测所有碰撞。\n" "[b]注意:[/b]在移动物体后,这个测试的结果不是立即的。为了性能,碰撞列表每帧在" "物理运算之前更新一次。可以考虑使用信号来代替。" #: doc/classes/RigidBody.xml msgid "" "Returns the inverse inertia tensor basis. This is used to calculate the " "angular acceleration resulting from a torque applied to the RigidBody." msgstr "返回逆惯性张力基。这用于计算由施加到 RigidBody 的扭矩产生的角加速度。" #: doc/classes/RigidBody.xml msgid "Locks the specified linear or rotational axis." msgstr "锁定指定的线性或旋转轴。" #: doc/classes/RigidBody.xml #, fuzzy msgid "" "Damps the body's rotational forces. If this value is different from -1.0 it " "will be added to any angular damp derived from the world or areas.\n" "See [member ProjectSettings.physics/3d/default_angular_damp] for more " "details about damping." msgstr "" "对 RigidBody 的旋转力进行阻尼运算。如果这个值与 -1.0 不同,将会追加到任何从世" "界或区域派生的线性阻尼中。\n" "关于阻尼的更多细节,请参阅 [member ProjectSettings.physics/3d/" "default_angular_damp]。" #: doc/classes/RigidBody.xml msgid "Lock the body's rotation in the X axis." msgstr "锁定实体在 X 轴上的旋转。" #: doc/classes/RigidBody.xml msgid "Lock the body's rotation in the Y axis." msgstr "锁定实体在 Y 轴上的旋转。" #: doc/classes/RigidBody.xml msgid "Lock the body's rotation in the Z axis." msgstr "锁定实体在 Z 轴上的旋转。" #: doc/classes/RigidBody.xml msgid "Lock the body's movement in the X axis." msgstr "锁定实体在 X 轴上的移动。" #: doc/classes/RigidBody.xml msgid "Lock the body's movement in the Y axis." msgstr "锁定实体在 Y 轴上的移动。" #: doc/classes/RigidBody.xml msgid "Lock the body's movement in the Z axis." msgstr "锁定实体在 Z 轴上的移动。" #: doc/classes/RigidBody.xml doc/classes/RigidBody2D.xml #: doc/classes/StaticBody.xml doc/classes/StaticBody2D.xml msgid "" "The body's bounciness. Values range from [code]0[/code] (no bounce) to " "[code]1[/code] (full bounciness).\n" "Deprecated, use [member PhysicsMaterial.bounce] instead via [member " "physics_material_override]." msgstr "" "实体的弹性。值范围从 [code]0[/code](无弹跳)到 [code]1[/code](完全弹" "跳)。\n" "已废弃,请通过 [member physics_material_override] 使用 [member " "PhysicsMaterial.bounce] 代替。" #: doc/classes/RigidBody.xml msgid "" "If [code]true[/code], the body can enter sleep mode when there is no " "movement. See [member sleeping].\n" "[b]Note:[/b] A RigidBody3D will never enter sleep mode automatically if its " "[member mode] is [constant MODE_CHARACTER]. It can still be put to sleep " "manually by setting its [member sleeping] property to [code]true[/code]." msgstr "" "如果[code]true[/code],实体可以在没有运动的情况下进入睡眠模式。见[member " "sleeping]。\n" "[b]注意:[/b]RigidBody3D 的模式[member mode] 为常量[constant MODE_CHARACTER] " "时不会自动进入休眠模式。仍然可以通过将其 [member sleeping] 属性设置为 " "[code]true[/code] 来手动使其进入休眠状态。" #: doc/classes/RigidBody.xml msgid "" "If [code]true[/code], the RigidBody will emit signals when it collides with " "another RigidBody. See also [member contacts_reported]." msgstr "" "如果[code]true[/code],当RigidBody与另一个RigidBody碰撞时会发出信号。参阅" "[member contacts_reported]。" #: doc/classes/RigidBody.xml msgid "" "The maximum number of contacts that will be recorded. Requires [member " "contact_monitor] to be set to [code]true[/code].\n" "[b]Note:[/b] The number of contacts is different from the number of " "collisions. Collisions between parallel edges will result in two contacts " "(one at each end), and collisions between parallel faces will result in four " "contacts (one at each corner)." msgstr "" "将被记录的最大接触次数。需要将 [member contact_monitor] 设置为 [code]true[/" "code]。\n" "[b]注:[/b]接触次数与碰撞次数不同。平行边之间的碰撞将导致两个接触(每端一" "个),平行面之间的碰撞将导致四个接触(每个角一个)。" #: doc/classes/RigidBody.xml msgid "" "If [code]true[/code], continuous collision detection is used.\n" "Continuous collision detection tries to predict where a moving body will " "collide, instead of moving it and correcting its movement if it collided. " "Continuous collision detection is more precise, and misses fewer impacts by " "small, fast-moving objects. Not using continuous collision detection is " "faster to compute, but can miss small, fast-moving objects." msgstr "" "如果 [code]true[/code],则使用连续碰撞检测。\n" "连续碰撞检测尝试预测一个移动的物体会在哪里碰撞,而不是移动它并在它发生碰撞时" "纠正它的运动。连续碰撞检测更精确,并且错过了较小的、快速移动的物体的撞击。不" "使用连续碰撞检测的计算速度更快,但可能会错过小的、快速移动的物体。" #: doc/classes/RigidBody.xml msgid "" "If [code]true[/code], internal force integration will be disabled (like " "gravity or air friction) for this body. Other than collision response, the " "body will only move as determined by the [method _integrate_forces] " "function, if defined." msgstr "" "如果 [code]true[/code],则该物体的内力积分将被禁用(如重力或空气摩擦)。除了" "碰撞响应之外,物体将仅根据 [method _integrate_forces] 函数确定的方式移动(如" "果已定义)。" #: doc/classes/RigidBody.xml msgid "" "The body's friction, from 0 (frictionless) to 1 (max friction).\n" "Deprecated, use [member PhysicsMaterial.friction] instead via [member " "physics_material_override]." msgstr "" "该实体的摩擦力,从 0(无摩擦)到 1(最大摩擦)。\n" "已废弃,请通过 [member physics_material_override] 使用 [member " "PhysicsMaterial.friction] 代替。" #: doc/classes/RigidBody.xml msgid "" "This is multiplied by the global 3D gravity setting found in [b]Project > " "Project Settings > Physics > 3d[/b] to produce RigidBody's gravity. For " "example, a value of 1 will be normal gravity, 2 will apply double gravity, " "and 0.5 will apply half gravity to this object." msgstr "" "这与在[b]项目 > 项目设置 > 物理 > 3D[/b] 中找到的全局 3D 重力设置相乘,产生 " "RigidBody 的重力。例如,1 的值将是正常的重力,2 将应用双倍的重力,0.5 将对这" "个物体应用一半的重力。" #: doc/classes/RigidBody.xml msgid "" "The body's linear damp. Cannot be less than -1.0. If this value is different " "from -1.0 it will be added to any linear damp derived from the world or " "areas.\n" "See [member ProjectSettings.physics/3d/default_linear_damp] for more details " "about damping." msgstr "" "该实体的线性阻尼。不能小于 -1.0。如果这个值与 -1.0 不同,将会追加到任何从世界" "或区域派生的线性阻尼中。\n" "关于阻尼的更多细节,请参阅 [member ProjectSettings.physics/3d/" "default_linear_damp]。" #: doc/classes/RigidBody.xml msgid "" "The body's linear velocity in units per second. Can be used sporadically, " "but [b]don't set this every frame[/b], because physics may run in another " "thread and runs at a different granularity. Use [method _integrate_forces] " "as your process loop for precise control of the body state." msgstr "" "物体的线速度,单位为单位每秒。可以偶尔使用,但是[b]不要每一帧都设置它[/b],因" "为物理可能在另一个线程中运行,并且以不同的间隔。使用 [method " "_integrate_forces] 作为你的进程循环,以精确控制物体状态。" #: doc/classes/RigidBody.xml doc/classes/RigidBody2D.xml msgid "The body's mass." msgstr "实体的质量。" #: doc/classes/RigidBody.xml msgid "The body mode. See [enum Mode] for possible values." msgstr "物体的模式。可能的值见[enum Mode]。" #: doc/classes/RigidBody.xml doc/classes/RigidBody2D.xml #: doc/classes/StaticBody.xml doc/classes/StaticBody2D.xml msgid "" "The physics material override for the body.\n" "If a material is assigned to this property, it will be used instead of any " "other physics material, such as an inherited one." msgstr "" "物体的物理材质。\n" "如果为该属性指定了一种材质,则将使用该材质代替任何其他物理材质,例如继承的材" "质。" #: doc/classes/RigidBody.xml doc/classes/RigidBody2D.xml msgid "" "If [code]true[/code], the body will not move and will not calculate forces " "until woken up by another body through, for example, a collision, or by " "using the [method apply_impulse] or [method add_force] methods." msgstr "" "如果 [code]true[/code],物体不会移动并且不会计算力,直到被另一个物体唤醒,例" "如碰撞,或使用 [method apply_impulse] 或 [method add_force] 方法。" #: doc/classes/RigidBody.xml msgid "" "The body's weight based on its mass and the global 3D gravity. Global values " "are set in [b]Project > Project Settings > Physics > 3d[/b]." msgstr "" "实体的重量基于其质量和全局 3D 重力。全局值在[b]项目 > 项目设置 > Physics > " "3D[/b] 中设置。" #: doc/classes/RigidBody.xml msgid "" "Emitted when a collision with another [PhysicsBody] or [GridMap] occurs. " "Requires [member contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions. " "[GridMap]s are detected if the [MeshLibrary] has Collision [Shape]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody] or [GridMap]." msgstr "" "当与另一个[PhysicsBody]或[GridMap]发生碰撞时触发。需要将[member " "contact_monitor]设置为 [code]true[/code],并且将[member contacts_reported]设" "置得足够高以检测所有的碰撞。如果[MeshLibrary]有碰撞[Shape],[GridMap]就会被检" "测到。\n" "[code]body[/code]的[Node],如果它存在于树中,则是其他[PhysicsBody]或[GridMap]" "的节点。" #: doc/classes/RigidBody.xml msgid "" "Emitted when the collision with another [PhysicsBody] or [GridMap] ends. " "Requires [member contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions. " "[GridMap]s are detected if the [MeshLibrary] has Collision [Shape]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody] or [GridMap]." msgstr "" "当与另一个[PhysicsBody]或[GridMap]的碰撞结束时触发。需要将[member " "contact_monitor]设置为 [code]true[/code],并且将[member contacts_reported]设" "置得足够高以检测到所有的碰撞。如果[MeshLibrary]有碰撞[Shape],[GridMap]就会被" "检测到。\n" "[code]body[/code]的[Node],如果它存在于树中,则是其他[PhysicsBody]或[GridMap]" "的节点。" #: doc/classes/RigidBody.xml msgid "" "Emitted when one of this RigidBody's [Shape]s collides with another " "[PhysicsBody] or [GridMap]'s [Shape]s. Requires [member contact_monitor] to " "be set to [code]true[/code] and [member contacts_reported] to be set high " "enough to detect all the collisions. [GridMap]s are detected if the " "[MeshLibrary] has Collision [Shape]s.\n" "[code]body_rid[/code] the [RID] of the other [PhysicsBody] or " "[MeshLibrary]'s [CollisionObject] used by the [PhysicsServer].\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody] or [GridMap].\n" "[code]body_shape_index[/code] the index of the [Shape] of the other " "[PhysicsBody] or [GridMap] used by the [PhysicsServer]. Get the " "[CollisionShape] node with [code]body.shape_owner_get_owner(body_shape_index)" "[/code].\n" "[code]local_shape_index[/code] the index of the [Shape] of this RigidBody " "used by the [PhysicsServer]. Get the [CollisionShape] node with [code]self." "shape_owner_get_owner(local_shape_index)[/code].\n" "[b]Note:[/b] Bullet physics cannot identify the shape index when using a " "[ConcavePolygonShape]. Don't use multiple [CollisionShape]s when using a " "[ConcavePolygonShape] with Bullet physics if you need shape indices." msgstr "" "当[PhysicsBody]或[GridMap]的一个形状[Shape]进入这个区域的一个形状[Shape]时发" "出的。需要将监控[member contact_monitor]设置为 [code]true[/code],且[member " "contacts_reported]设置的足够高以检测所有碰撞。如果[MeshLibrary]有碰撞形状" "[Shape],就会检测到[GridMap]。\n" "[code]body_id[/code]由[PhysicsServer]使用的其他[PhysicsBody]或[MeshLibrary]的" "[CollisionObject]的[RID]。\n" "[code]body[/code] 其他[PhysicsBody]或[GridMap]的[Node](如果它存在于树中)。\n" "[code]body_shape_index[/code] 由[PhysicsServer]使用的其他[PhysicsBody]或" "[GridMap]的[Shape]的索引。用 [code]body." "shape_owner_get_owner(body_shape_index)[/code]获取 [CollisionShape] 节点。\n" "[code]local_shape[/code] 由[PhysicsServer]使用的这个刚体(RigidBody)的[Shape]" "的索引。用[code]self.shape_owner_get_owner(local_shape_index)[/code]获取" "[CollisionShape]节点。\n" "[b]注意:[/b]当使用[ConcavePolygonShape]时,对于子弹的物理运算无法识别形状索" "引。如果你需要形状指数,在使用[ConcavePolygonShape]和对于子弹的物理运算时,不" "要使用多个[CollisionShape]。" #: doc/classes/RigidBody.xml msgid "" "Emitted when the collision between one of this RigidBody's [Shape]s and " "another [PhysicsBody] or [GridMap]'s [Shape]s ends. Requires [member " "contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions. " "[GridMap]s are detected if the [MeshLibrary] has Collision [Shape]s.\n" "[code]body_rid[/code] the [RID] of the other [PhysicsBody] or " "[MeshLibrary]'s [CollisionObject] used by the [PhysicsServer]. [GridMap]s " "are detected if the Meshes have [Shape]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody] or [GridMap].\n" "[code]body_shape_index[/code] the index of the [Shape] of the other " "[PhysicsBody] or [GridMap] used by the [PhysicsServer]. Get the " "[CollisionShape] node with [code]body.shape_owner_get_owner(body_shape_index)" "[/code].\n" "[code]local_shape_index[/code] the index of the [Shape] of this RigidBody " "used by the [PhysicsServer]. Get the [CollisionShape] node with [code]self." "shape_owner_get_owner(local_shape_index)[/code].\n" "[b]Note:[/b] Bullet physics cannot identify the shape index when using a " "[ConcavePolygonShape]. Don't use multiple [CollisionShape]s when using a " "[ConcavePolygonShape] with Bullet physics if you need shape indices." msgstr "" "当此 RigidBody 的 [Shape] 之一与另一个 [PhysicsBody] 或 [GridMap] 的 [Shape] " "之间的碰撞结束时发出。需要将 [member contact_monitor] 设置为 [code]true[/" "code] 并将 [member contacts_reported] 设置为足够高以检测所有碰撞。如果 " "[MeshLibrary] 有碰撞 [Shape],就会检测到 [GridMap]。\n" "[code]body_rid[/code] [PhysicsServer] 使用的其他 [PhysicsBody] 或 " "[MeshLibrary] 的 [CollisionObject] 的 [RID]。如果网格具有 [Shape],则检测到 " "[GridMap]。\n" "[code]body[/code] 其他 [PhysicsBody] 或 [GridMap] 的 [Node],如果它存在于树" "中。\n" "[code]body_shape_index[/code] [PhysicsServer] 使用的其他 [PhysicsBody] 或 " "[GridMap] 的 [Shape] 的索引。使用 [code]body." "shape_owner_get_owner(body_shape_index)[/code] 来获取 [CollisionShape] 节" "点。\n" "[code]local_shape_index[/code] [PhysicsServer] 使用的这个 RigidBody 的 " "[Shape] 的索引。使用 [code]self.shape_owner_get_owner(local_shape_index)[/" "code] 获取 [CollisionShape] 节点。\n" "[b]注意:[/b]使用[ConcavePolygonShape]时,对于子弹的物理运算无法识别形状索" "引。如果需要形状索引,请不要在使用带有对于子弹的物理运算的 " "[ConcavePolygonShape] 时使用多个 [CollisionShape]。" #: doc/classes/RigidBody.xml doc/classes/RigidBody2D.xml msgid "" "Emitted when the physics engine changes the body's sleeping state.\n" "[b]Note:[/b] Changing the value [member sleeping] will not trigger this " "signal. It is only emitted if the sleeping state is changed by the physics " "engine or [code]emit_signal(\"sleeping_state_changed\")[/code] is used." msgstr "" "当物理引擎改变物体的睡眠状态时发出。\n" "[b]注意:[/b]改变[member sleeping]的值不会触发这个信号。只有当物理引擎改变了" "睡眠状态或者使用了[code]emit_signal(\"sleeping_state_changed\")[/code]时,它" "才会被发出。" #: doc/classes/RigidBody.xml msgid "" "Rigid body mode. This is the \"natural\" state of a rigid body. It is " "affected by forces, and can move, rotate, and be affected by user code." msgstr "" "刚体模式。这是一个刚体的 \"自然 \"状态。它受到力的影响,可以移动、旋转,并受" "到用户代码的影响。" #: doc/classes/RigidBody.xml msgid "" "Static mode. The body behaves like a [StaticBody], and can only move by user " "code." msgstr "静止模式。实体的行为就像一个[StaticBody],只能通过用户代码移动。" #: doc/classes/RigidBody.xml msgid "" "Character body mode. This behaves like a rigid body, but can not rotate." msgstr "角色模式。这与刚体的行为类似,但不能旋转。" #: doc/classes/RigidBody.xml msgid "" "Kinematic body mode. The body behaves like a [KinematicBody], and can only " "move by user code." msgstr "" "运动体模式。这个实体的行为就像一个[KinematicBody],只能通过用户代码来移动。" #: doc/classes/RigidBody2D.xml msgid "A body that is controlled by the 2D physics engine." msgstr "由 2D 物理引擎控制的实体。" #: doc/classes/RigidBody2D.xml msgid "" "This node implements simulated 2D physics. You do not control a RigidBody2D " "directly. Instead, you apply forces to it (gravity, impulses, etc.) and the " "physics simulation calculates the resulting movement based on its mass, " "friction, and other physical properties.\n" "A RigidBody2D has 4 behavior [member mode]s: Rigid, Static, Character, and " "Kinematic.\n" "[b]Note:[/b] You should not change a RigidBody2D's [code]position[/code] or " "[code]linear_velocity[/code] every frame or even very often. If you need to " "directly affect the body's state, use [method _integrate_forces], which " "allows you to directly access the physics state.\n" "Please also keep in mind that physics bodies manage their own transform " "which overwrites the ones you set. So any direct or indirect transformation " "(including scaling of the node or its parent) will be visible in the editor " "only, and immediately reset at runtime.\n" "If you need to override the default physics behavior or add a transformation " "at runtime, you can write a custom force integration. See [member " "custom_integrator].\n" "The center of mass is always located at the node's origin without taking " "into account the [CollisionShape2D] centroid offsets." msgstr "" "该节点实现了模拟的 2D 物理。你不能直接控制 RigidBody2D。而是,你对它施加力" "(重力、冲力等),物理模拟会根据它的质量、摩擦力和其他物理属性来计算出运动结" "果。\n" "RigidBody2D 有 4 种行为 [member mode]。刚性、静态、角色和运动。\n" "[b]注意:[/b]你不应该每一帧或经常改变 RigidBody2D 的 [code]position[/code] " "或 [code]linear_velocity[/code]。如果需要直接影响物体的状态,请使用 [method " "_integrate_forces],它允许你直接访问物理状态。\n" "要记住,物理物体在自己管理变换,它会覆盖你的变换设置。所以任何直接或间接的变" "换(包括节点或其父级的缩放)将只在编辑器中可见,并在运行时立即重置。\n" "如果你需要覆盖默认的物理行为或者在运行时添加变换,你可以写一个自定义的合力。" "参阅 [member custom_integrator]。\n" "质量中心总是位于节点的原点,而不考虑 [CollisionShape2D] 中心点的偏移。" #: doc/classes/RigidBody2D.xml msgid "2D Physics Platformer Demo" msgstr "2D 物理平台跳跃演示" #: doc/classes/RigidBody2D.xml doc/classes/Sprite.xml msgid "Instancing Demo" msgstr "实例化演示" #: doc/classes/RigidBody2D.xml msgid "" "Allows you to read and safely modify the simulation state for the object. " "Use this instead of [method Node._physics_process] if you need to directly " "change the body's [code]position[/code] or other physics properties. By " "default, it works in addition to the usual physics behavior, but [member " "custom_integrator] allows you to disable the default behavior and write " "custom force integration for a body." msgstr "" "允许你读取并安全地修改对象的模拟状态。如果你需要直接改变物体的" "[code]position[/code]或其他物理属性,请使用它代替[method Node." "_physics_process]。默认情况下,它是在通常的物理行为之外工作的,但是[member " "custom_integrator]允许你禁用默认行为并为一个物体编写自定义的合力。" #: doc/classes/RigidBody2D.xml msgid "" "Applies a positioned impulse to the body. An impulse is time-independent! " "Applying an impulse every frame would result in a framerate-dependent force. " "For this reason it should only be used when simulating one-time impacts (use " "the \"_force\" functions otherwise). The position uses the rotation of the " "global coordinate system, but is centered at the object's origin." msgstr "" "对物体施加一个有向的冲量。冲量是与时间无关的。每一帧应用一个冲量会有一个与帧" "相关的力。由于这个原因,它只应该在模拟一次性冲击时使用(否则就使用\"_force " "\"函数)。位置使用全局坐标系的旋转,但以物体的原点为中心。" #: doc/classes/RigidBody2D.xml msgid "" "Sets the body's velocity on the given axis. The velocity in the given vector " "axis will be set as the given vector length. This is useful for jumping " "behavior." msgstr "" "设置物体在给定轴上的速度。给定矢量轴上的速度将设置为给定向量长度。这对于跳跃" "行为很有用。" #: doc/classes/RigidBody2D.xml msgid "" "Returns [code]true[/code] if a collision would result from moving in the " "given vector. [code]margin[/code] increases the size of the shapes involved " "in the collision detection, and [code]result[/code] is an object of type " "[Physics2DTestMotionResult], which contains additional information about the " "collision (should there be one)." msgstr "" "如果在给定的向量中移动会导致碰撞,则返回 [code]true[/code]。[code]margin[/" "code]增加参与碰撞检测的形状的大小,[code]result[/code] 是一个 " "[Physics2DTestMotionResult] 类型的对象,它包含关于碰撞的额外信息(如果有的" "话)。" #: doc/classes/RigidBody2D.xml msgid "" "Damps the body's [member angular_velocity]. If [code]-1[/code], the body " "will use the [b]Default Angular Damp[/b] defined in [b]Project > Project " "Settings > Physics > 2d[/b]. If greater than [code]-1[/code] it will be " "added to the default project value.\n" "See [member ProjectSettings.physics/2d/default_angular_damp] for more " "details about damping." msgstr "" "对该实体的 [member angular_velocity] 进行阻尼运算。如果为 [code]-1[/code],物" "体将使用[b]项目 > 项目设置 > 物理 > 2D[/b] 中定义的[b]默认角度阻尼[/b]。如果" "大于 [code]-1[/code],会加入到项目默认值之上。\n" "有关阻尼的更多详细信息,请参阅 [member ProjectSettings.physics/2d/" "default_angular_damp]。" #: doc/classes/RigidBody2D.xml msgid "The body's total applied force." msgstr "对物体施加的合力。" #: doc/classes/RigidBody2D.xml msgid "The body's total applied torque." msgstr "对物体施加总力矩。" #: doc/classes/RigidBody2D.xml msgid "" "If [code]true[/code], the body can enter sleep mode when there is no " "movement. See [member sleeping].\n" "[b]Note:[/b] A RigidBody2D will never enter sleep mode automatically if its " "[member mode] is [constant MODE_CHARACTER]. It can still be put to sleep " "manually by setting its [member sleeping] property to [code]true[/code]." msgstr "" "如果[code]true[/code],身体可以在没有运动的情况下进入睡眠模式。见[member " "sleeping]。\n" "[b]注意:[/b]RigidBody2D 的[member mode] 为[constant MODE_CHARACTER] 时不会自" "动进入休眠模式。仍然可以通过将其 [member sleeping] 属性设置为 [code]true[/" "code] 来手动使其休眠。" #: doc/classes/RigidBody2D.xml msgid "" "If [code]true[/code], the body will emit signals when it collides with " "another RigidBody2D. See also [member contacts_reported]." msgstr "" "如果[code]true[/code],则物体在与另一个RigidBody2D碰撞时会发出信号。参阅" "[member contacts_reported]。" #: doc/classes/RigidBody2D.xml msgid "" "The maximum number of contacts that will be recorded. Requires [member " "contact_monitor] to be set to [code]true[/code].\n" "[b]Note:[/b] The number of contacts is different from the number of " "collisions. Collisions between parallel edges will result in two contacts " "(one at each end)." msgstr "" "将被记录的最大接触次数。需要将 [member contact_monitor] 设置为 [code]true[/" "code]。\n" "[b]注意:[/b]接触次数与碰撞次数不同。平行边之间的碰撞将意味着两次接触(两端各" "一次)。" #: doc/classes/RigidBody2D.xml msgid "" "Continuous collision detection mode.\n" "Continuous collision detection tries to predict where a moving body will " "collide instead of moving it and correcting its movement after collision. " "Continuous collision detection is slower, but more precise and misses fewer " "collisions with small, fast-moving objects. Raycasting and shapecasting " "methods are available. See [enum CCDMode] for details." msgstr "" "连续碰撞检测模式。\n" "连续碰撞检测尝试预测一个移动的物体会在哪里碰撞,而不是移动它并在碰撞后纠正它" "的运动。连续碰撞检测速度较慢,但更精确,并且与快速移动的小物体发生碰撞时遗漏" "更少。可以使用光线投射和形状投射方法。有关详细信息,请参阅 [enum CCDMode]。" #: doc/classes/RigidBody2D.xml msgid "" "If [code]true[/code], internal force integration is disabled for this body. " "Aside from collision response, the body will only move as determined by the " "[method _integrate_forces] function." msgstr "" "如果 [code]true[/code],则禁用该物体的内力积分。除了碰撞响应,物体只会按照 " "[method _integrate_forces] 函数确定的方式移动。" #: doc/classes/RigidBody2D.xml msgid "" "The body's friction. Values range from [code]0[/code] (frictionless) to " "[code]1[/code] (maximum friction).\n" "Deprecated, use [member PhysicsMaterial.friction] instead via [member " "physics_material_override]." msgstr "" "物体的摩擦。取值范围从 [code]0[/code](无摩擦)到 [code]1[/code](最大摩" "擦)。\n" "已弃用,请通过 [member physics_material_override] 使用 [member " "PhysicsMaterial.friction]。" #: doc/classes/RigidBody2D.xml msgid "" "Multiplies the gravity applied to the body. The body's gravity is calculated " "from the [b]Default Gravity[/b] value in [b]Project > Project Settings > " "Physics > 2d[/b] and/or any additional gravity vector applied by [Area2D]s." msgstr "" "乘以施加在物体上的重力。物体的重力是由[b]项目 > 项目设置 > 物理 > 2D[/b]中的" "[b]默认重力[/b]值和/或任何由 [Area2D] 应用的额外重力向量计算出来的。" #: doc/classes/RigidBody2D.xml msgid "" "The body's moment of inertia. This is like mass, but for rotation: it " "determines how much torque it takes to rotate the body. The moment of " "inertia is usually computed automatically from the mass and the shapes, but " "this function allows you to set a custom value. Set 0 inertia to return to " "automatically computing it." msgstr "" "该实体的惯性力矩。类似于质量,但是针对旋转的:它决定了旋转物体需要多大的力" "矩。惯性力矩通常是由质量和形状自动计算出来的,但是这个函数允许你设置一个自定" "义值。设置 0 惯性会切换回自动计算。" #: doc/classes/RigidBody2D.xml msgid "" "Damps the body's [member linear_velocity]. If [code]-1[/code], the body will " "use the [b]Default Linear Damp[/b] in [b]Project > Project Settings > " "Physics > 2d[/b]. If greater than [code]-1[/code] it will be added to the " "default project value.\n" "See [member ProjectSettings.physics/2d/default_linear_damp] for more details " "about damping." msgstr "" "对该实体的 [member linear_velocity] 进行阻尼运算。如果为 [code]-1[/code],物" "体将使用[b]项目 > 项目设置 > 物理 > 2D[/b] 中的[b]默认线性阻尼[/b]。如果大于 " "[code]-1[/code],会加入到项目默认值之上。\n" "有关阻尼的更多详细信息,请参阅 [member ProjectSettings.physics/2d/" "default_linear_damp]。" #: doc/classes/RigidBody2D.xml msgid "" "The body's linear velocity in pixels per second. Can be used sporadically, " "but [b]don't set this every frame[/b], because physics may run in another " "thread and runs at a different granularity. Use [method _integrate_forces] " "as your process loop for precise control of the body state." msgstr "" "该实体的线速度,单位为像素每秒。可以偶尔使用,但是[b]不要每一帧都设置它[/b]," "因为物理可能在另一个线程中运行,并且以不同的间隔。使用 [method " "_integrate_forces] 作为你的进程循环,以精确控制物体状态。" #: doc/classes/RigidBody2D.xml msgid "The body's mode. See [enum Mode] for possible values." msgstr "该实体的模式。可能的取值见 [enum Mode]。" #: doc/classes/RigidBody2D.xml msgid "" "The body's weight based on its mass and the [b]Default Gravity[/b] value in " "[b]Project > Project Settings > Physics > 2d[/b]." msgstr "" "该实体的重量,基于其质量和[b]项目 > 项目设置 > 物理 > 2D[/b] 中的[b]默认重力" "[/b]值。" #: doc/classes/RigidBody2D.xml msgid "" "Emitted when a collision with another [PhysicsBody2D] or [TileMap] occurs. " "Requires [member contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions. " "[TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody2D] or [TileMap]." msgstr "" "当与另一个[PhysicsBody2D]或[TileMap]发生碰撞时触发。需要将[member " "contact_monitor]设置为 [code]true[/code],并且将[member contacts_reported]设" "置得足够高以检测所有的碰撞。如果[TileSet]有碰撞[Shape2D],就会检测到[TileMap]" "的。\n" "[code]body[/code]是其他[PhysicsBody2D]或[TileMap]的[Node],如果它存在于树中。" #: doc/classes/RigidBody2D.xml msgid "" "Emitted when the collision with another [PhysicsBody2D] or [TileMap] ends. " "Requires [member contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions. " "[TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody2D] or [TileMap]." msgstr "" "当与另一个[PhysicsBody2D]或[TileMap]的碰撞结束时发出的。需要将 [member " "contact_monitor] 设置为 [code]true[/code] 并将 [member contacts_reported] 设" "置为足够高以检测所有碰撞。如果[TileSet]有碰撞[Shape2D],就会检测到" "[TileMap]。\n" "[code]body[/code] 其他[PhysicsBody2D]或[TileMap]的[Node](如果它存在于树中)。" #: doc/classes/RigidBody2D.xml msgid "" "Emitted when one of this RigidBody2D's [Shape2D]s collides with another " "[PhysicsBody2D] or [TileMap]'s [Shape2D]s. Requires [member contact_monitor] " "to be set to [code]true[/code] and [member contacts_reported] to be set high " "enough to detect all the collisions. [TileMap]s are detected if the " "[TileSet] has Collision [Shape2D]s.\n" "[code]body_rid[/code] the [RID] of the other [PhysicsBody2D] or [TileSet]'s " "[CollisionObject2D] used by the [Physics2DServer].\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody2D] or [TileMap].\n" "[code]body_shape_index[/code] the index of the [Shape2D] of the other " "[PhysicsBody2D] or [TileMap] used by the [Physics2DServer]. Get the " "[CollisionShape2D] node with [code]body." "shape_owner_get_owner(body_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape2D] of this " "RigidBody2D used by the [Physics2DServer]. Get the [CollisionShape2D] node " "with [code]self.shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当这个 RigidBody2D 的 [Shape2D] 与另一个 [PhysicsBody2D] 或 [TileMap] 的 " "[Shape2D] 碰撞时发出。要求 [member contact_monitor] 设置为 [code]true[/code] " "并且 [member contacts_reported] 设置得足够高,以检测所有碰撞。如果 [TileMap] " "具有碰撞 [Shape2D],就会检测到 [TileSet]。\n" "[code]body_rid[/code] 由 [Physics2DServer] 使用的其他 [PhysicsBody2D] 或 " "[TileSet] 的 [CollisionObject2D] 的 [RID]。\n" "[code]body[/code]其他 [PhysicsBody2D] 或 [TileMap] 的 [Node](如果它存在于树" "上)。\n" "[code]body_shape_index[/code] 其他 [PhysicsBody2D] 或 [TileMap] 使用 " "[Physics2DServer] 的 [Shape2D] 索引。获得带有 [code]body." "shape_owner_get_owner(body_shape_index)[/code] 的 [CollisionShape2D] 节点。\n" "[code]local_shape_index[/code] [Physics2DServer] 使用的此 RigidBody2D 的 " "[Shape2D] 索引。获得带有 [code]self.shape_owner_get_owner (local_shape_index)" "[/code] 的 [CollisionShape2D] 节点。" #: doc/classes/RigidBody2D.xml msgid "" "Emitted when the collision between one of this RigidBody2D's [Shape2D]s and " "another [PhysicsBody2D] or [TileMap]'s [Shape2D]s ends. Requires [member " "contact_monitor] to be set to [code]true[/code] and [member " "contacts_reported] to be set high enough to detect all the collisions. " "[TileMap]s are detected if the [TileSet] has Collision [Shape2D]s.\n" "[code]body_rid[/code] the [RID] of the other [PhysicsBody2D] or [TileSet]'s " "[CollisionObject2D] used by the [Physics2DServer].\n" "[code]body[/code] the [Node], if it exists in the tree, of the other " "[PhysicsBody2D] or [TileMap].\n" "[code]body_shape_index[/code] the index of the [Shape2D] of the other " "[PhysicsBody2D] or [TileMap] used by the [Physics2DServer]. Get the " "[CollisionShape2D] node with [code]body." "shape_owner_get_owner(body_shape_index)[/code].\n" "[code]local_shape_index[/code] the index of the [Shape2D] of this " "RigidBody2D used by the [Physics2DServer]. Get the [CollisionShape2D] node " "with [code]self.shape_owner_get_owner(local_shape_index)[/code]." msgstr "" "当这个RigidBody2D的一个[Shape2D]和另一个[PhysicsBody2D]或[TileMap]的[Shape2D]" "之间的碰撞结束时触发。要求[member contact_monitor]设置为 [code]true[/code]," "[member contacts_reported]设置得足够高以检测所有的碰撞。如果[TileSet]有碰撞" "[Shape2D],就会检测到[TileMap]的。\n" "[code]body_rid[/code] [Physics2DServer]使用的其他[PhysicsBody2D]或[TileSet]的" "[CollisionObject2D]的 [RID]。\n" "[code]body[/code] 另一个[PhysicsBody2D]或[TileMap]的[Node],如果它存在于树" "中。\n" "[code]body_shape_index[/code] 由[Physics2DServer]使用的其他[PhysicsBody2D]或" "[TileMap]的[Shape2D]的索引。用[code]body." "shape_owner_get_owner(body_shape_index)[/code]获得[CollisionShape2D]节点。\n" "[code]local_shape_index[/code]这个RigidBody2D的[Shape2D]的索引,由" "[Physics2DServer]使用。用[code]self.shape_owner_get_owner(local_shape_index)" "[/code]获取[CollisionShape2D]节点。" #: doc/classes/RigidBody2D.xml msgid "" "Rigid mode. The body behaves as a physical object. It collides with other " "bodies and responds to forces applied to it. This is the default mode." msgstr "" "刚性模式。物体的行为就像一个物理物体。它与其他物体发生碰撞,并对施加在它身上" "的力做出反应。这是默认模式。" #: doc/classes/RigidBody2D.xml msgid "Static mode. The body behaves like a [StaticBody2D] and does not move." msgstr "静态模式。物体的行为就像一个[StaticBody2D],不会移动。" #: doc/classes/RigidBody2D.xml msgid "" "Character mode. Similar to [constant MODE_RIGID], but the body can not " "rotate." msgstr "角色模式。与[constant MODE_RIGID]类似,但主体不能旋转。" #: doc/classes/RigidBody2D.xml msgid "" "Kinematic mode. The body behaves like a [KinematicBody2D], and must be moved " "by code." msgstr "" "运动学模式。这个物体的行为就像一个[KinematicBody2D],必须通过代码来移动。" #: doc/classes/RigidBody2D.xml msgid "" "Continuous collision detection disabled. This is the fastest way to detect " "body collisions, but can miss small, fast-moving objects." msgstr "" "禁用连续碰撞检测。这是检测物体碰撞的最快方法,但可能会错过小型、快速移动的物" "体。" #: doc/classes/RigidBody2D.xml msgid "" "Continuous collision detection enabled using raycasting. This is faster than " "shapecasting but less precise." msgstr "使用射线投射启用连续碰撞检测。这比 shapecasting 快,但精度较低。" #: doc/classes/RigidBody2D.xml msgid "" "Continuous collision detection enabled using shapecasting. This is the " "slowest CCD method and the most precise." msgstr "" "使用 shapecasting 启用连续碰撞检测。这是最慢的 CCD 方法,也是最精确的。" #: doc/classes/Room.xml msgid "Room node, used to group objects together locally for [Portal] culling." msgstr "Room 节点,用于在本地将对象组合在一起以进行 [Portal] 剔除。" #: doc/classes/Room.xml msgid "" "The [Portal] culling system requires levels to be built using objects " "grouped together by location in areas called [Room]s. In many cases these " "will correspond to actual rooms in buildings, but not necessarily (a canyon " "area may be treated as a room).\n" "Any [VisualInstance] that is a child or grandchild of a [Room] will be " "assigned to that room, if the [code]portal_mode[/code] of that " "[VisualInstance] is set to [code]STATIC[/code] (does not move) or " "[code]DYNAMIC[/code] (moves only within the room).\n" "Internally the room boundary must form a [b]convex hull[/b], and by default " "this is determined automatically by the geometry of the objects you place " "within the room.\n" "You can alternatively precisely specify a [b]manual bound[/b]. If you place " "a [MeshInstance] with a name prefixed by [code]Bound_[/code], it will turn " "off the bound generation from geometry, and instead use the vertices of this " "MeshInstance to directly calculate a convex hull during the conversion stage " "(see [RoomManager]).\n" "In order to see from one room into an adjacent room, [Portal]s must be " "placed over non-occluded openings between rooms. These will often be placed " "over doors and windows." msgstr "" "[Portal] 剔除系统需要使用在称为 [Room] 的区域中按位置分组在一起的对象来构建关" "卡。在许多情况下,这些将对应于建筑物中的实际空间,但不一定(峡谷区域可能被视" "为空间)。\n" "如果 [VisualInstance] 的 [code]portal_mode[/code] 设置为 [code]STATIC[/code]" "(不移动) 或 [code]DYNAMIC[/code](仅在空间内移动),那么任何作为 [Room] 的子" "代或孙代的 [VisualInstance] 将被分配到该空间。\n" "在内部,空间边界必须形成一个[b]凸多边形[/b],默认情况下,这由您放置在空间内的" "对象的几何形状自动确定。\n" "您也可以精确指定[b]手动绑定[/b]。如果放置一个名称以 [code]Bound_[/code] 为前" "缀的 [MeshInstance],它将关闭几何体的边界生成,而是在转换阶段使用这个" "MeshInstance 的顶点直接计算凸多边形(见[RoomManager])。\n" "为了从一个空间看到相邻的空间,[Portal] 必须放置在空间之间的非遮挡开口上。这些" "通常会放置在门窗上。" #: doc/classes/Room.xml msgid "" "If [code]points[/code] are set, the [Room] bounding convex hull will be " "built from these points. If no points are set, the room bound will either be " "derived from a manual bound ([MeshInstance] with name prefix [code]Bound_[/" "code]), or from the geometry within the room.\n" "Note that you can use the [code]Generate Points[/code] editor button to get " "started. This will use either the geometry or manual bound to generate the " "room hull, and save the resulting points, allowing you to edit them to " "further refine the bound." msgstr "" "如果设置了 [code]points[/code],则会从这些点构建 [Room] 边界凸多边形。如果未" "设置点,则空间边界将来自手动边界([MeshInstance] 名称前缀为 [code]Bound_[/" "code]),或来自空间内的几何体。\n" "请注意,您可以使用 [code]Generate Points[/code] 编辑器按钮开始。这将使用几何" "体或手动绑定来生成空间外壳,并保存结果点,允许您编辑它们以进一步细化边界。" #: doc/classes/Room.xml msgid "" "The [code]simplify[/code] value determines to what degree room hulls " "(bounds) are simplified, by removing similar planes. A value of 0 gives no " "simplification, 1 gives maximum simplification." msgstr "" "[code]simplify[/code] 值通过移除相似的平面来确定空间外壳(边界)的简化程度。" "值 0 表示不简化,1 表示最大程度的简化。" #: doc/classes/Room.xml msgid "" "The room hull simplification can either use the default value set in the " "[RoomManager], or override this and use the per room setting." msgstr "" "空间外壳简化可以使用 [RoomManager] 中设置的默认值,也可以覆盖它并使用每个空间" "的设置。" #: doc/classes/RoomGroup.xml msgid "Groups [Room]s together to allow common functionality." msgstr "将 [Room] 组合在一起以实现通用功能。" #: doc/classes/RoomGroup.xml msgid "" "Although [Room] behavior can be specified individually, sometimes it is " "faster and more convenient to write functionality for a group of rooms.\n" "[RoomGroup]s should be placed as children of the [b]room list[/b] (the " "parent [Node] of your [Room]s), and [Room]s should be placed in turn as " "children of a [RoomGroup] in order to assign them to the RoomGroup.\n" "A [RoomGroup] can for example be used to specify [Room]s that are " "[b]outside[/b], and switch on or off a directional light, sky, or rain " "effect as the player enters / exits the area.\n" "[RoomGroup]s receive [b]gameplay callbacks[/b] when the " "[code]gameplay_monitor[/code] is switched on, as [code]signal[/code]s or " "[code]notification[/code]s as they enter and exit the [b]gameplay area[/b] " "(see [RoomManager] for details)." msgstr "" "尽管可以单独指定 [Room] 行为,但有时为一组房间编写功能会更快更方便。\n" "[RoomGroup] 应作为[b]空间列表[/b](您的 [Room] 的父 [Node])的子项,而 " "[Room] 应作为 [RoomGroup] 的子项依次放置以便将它们分配给 RoomGroup。\n" "例如,[RoomGroup] 可用于指定[b]处于外部[/b]的 [Room],并在玩家进入/退出该区域" "时打开或关闭平行光、天空或雨效果。\n" "当 [code]gameplay_monitor[/code] 开启时,[RoomGroup] 可以收到[b]游戏回调[/" "b],在他们进入和退出[b]游戏区域[/b]时,以[code]信号[/code]或[code]通知[/code]" "的形式(详见 [RoomManager])。" #: doc/classes/RoomGroup.xml msgid "" "This priority will be applied to [Room]s within the group. The [Room] " "priority allows the use of [b]internal rooms[/b], rooms [i]within[/i] " "another room or rooms.\n" "When the [Camera] is within more than one room (regular and internal), the " "higher priority room will take precedence. So with for example, a house " "inside a terrain 'room', you would make the house higher priority, so that " "when the camera is within the house, the house is used as the source room, " "but outside the house, the terrain room would be used instead." msgstr "" "此优先级将应用于组内的 [Room]。可以使用 [Room] 优先级来制作[b]内部房间[/b]," "即位于房间[i]内[/i]的另一个房间或多个房间。\n" "当 [Camera] 位于多个(常规和内部)房间内时,优先级较高的房间将优先处理。因" "此,例如,在地形“房间”内的房屋,您可以使房屋具有更高的优先级,以便当相机在房" "屋内时,房屋用作源空间,但在房屋外,将改为使用地形房间。" #: doc/classes/RoomManager.xml msgid "The RoomManager node is used to control the portal culling system." msgstr "RoomManager 节点可用于控制入口剔除系统。" #: doc/classes/RoomManager.xml msgid "" "In order to utilize the portal occlusion culling system, you must build your " "level using [Room]s and [Portal]s. Before these can be used at runtime, they " "must undergo a short conversion process to build the [code]room graph[/" "code], runtime data needed for portal culling. The [code]room graph[/code] " "is controlled by the [RoomManager] node, and the [RoomManager] also contains " "settings that are common throughout the portal system." msgstr "" "为了使用入口遮挡剔除系统,您必须使用 [Room] 和 [Portal] 来构建您的关卡。在这" "些可以在运行时使用之前,它们必须经过一个简短的转换过程来构建 [code]room " "graph[/code],这是入口剔除所需的运行时数据。 [code]portal graph[/code] 由 " "[RoomManager] 节点控制,[RoomManager] 还包含整个入口系统通用的设置。" #: doc/classes/RoomManager.xml msgid "" "This function clears all converted data from the [b]room graph[/b]. Use this " "before unloading a level, when transitioning from level to level, or " "returning to a main menu." msgstr "" "该方法会从 [b]portal graph[/b] 清除所有转换数据。在卸载关卡、从关卡转换到关卡" "或返回主菜单时使用此选项。" #: doc/classes/RoomManager.xml msgid "" "This is the most important function in the whole portal culling system. " "Without it, the system cannot function.\n" "First it goes through every [Room] that is a child of the [code]room list[/" "code] node (and [RoomGroup]s within) and converts and adds it to the " "[code]room graph[/code].\n" "This works for both [Room] nodes, and [Spatial] nodes that follow a special " "naming convention. They should begin with the prefix [i]'Room_'[/i], " "followed by the name you wish to give the room, e.g. [i]'Room_lounge'[/i]. " "This will automatically convert such [Spatial]s to [Room] nodes for you. " "This is useful if you want to build you entire room system in e.g. Blender, " "and reimport multiple times as you work on the level.\n" "The conversion will try to assign [VisualInstance]s that are children and " "grandchildren of the [Room] to the room. These should be given a suitable " "[code]portal mode[/code] (see the [CullInstance] documentation). The default " "[code]portal mode[/code] is [code]STATIC[/code] - objects which are not " "expected to move while the level is played, which will typically be most " "objects.\n" "The conversion will usually use the geometry of these [VisualInstance]s (and " "the [Portal]s) to calculate a convex hull bound for the room. These bounds " "will be shown in the editor with a wireframe. Alternatively you can specify " "a manual custom bound for any room, see the [Room] documentation.\n" "By definition, [Camera]s within a room can see everything else within the " "room (that is one advantage to using convex hulls). However, in order to see " "from one room into adjacent rooms, you must place [Portal]s, which represent " "openings that the camera can see through, like windows and doors.\n" "[Portal]s are really just specialized [MeshInstance]s. In fact you will " "usually first create a portal by creating a [MeshInstance], especially a " "[code]plane[/code] mesh instance. You would move the plane in the editor to " "cover a window or doorway, with the front face pointing outward from the " "room. To let the conversion process know you want this mesh to be a portal, " "again we use a special naming convention. [MeshInstance]s to be converted to " "a [Portal] should start with the prefix [i]'Portal_'[/i].\n" "You now have a choice - you can leave the name as [i]'Portal_'[/i] and allow " "the system to automatically detect the nearest [Room] to link. In most cases " "this will work fine.\n" "An alternative method is to specify the [Room] to link to manually, " "appending a suffix to the portal name, which should be the name of the room " "you intend to link to. For example [i]'Portal_lounge'[/i] will attempt to " "link to the room named [i]'Room_lounge'[/i].\n" "There is a special case here - Godot does not allow two nodes to share the " "same name. What if you want to manually have more than one portal leading " "into the same room? Surely they will need to both be called, e.g. " "[i]'Portal_lounge'[/i]?\n" "The solution is a wildcard character. After the room name, if you use the " "character [i]'*'[/i], this character and anything following it will be " "ignored. So you can use for example [i]'Portal_lounge*0'[/i], " "[i]'Portal_lounge*1'[/i] etc.\n" "Note that [Portal]s that have already been converted to [Portal] nodes " "(rather than [MeshInstance]s) still need to follow the same naming " "convention, as they will be relinked each time during conversion.\n" "It is recommended that you only place objects in rooms that are desired to " "stay within those rooms - i.e. [code]portal mode[/code]s [code]STATIC[/code] " "or [code]DYNAMIC[/code] (not crossing portals). [code]GLOBAL[/code] and " "[code]ROAMING[/code] objects are best placed in another part of the scene " "tree, to avoid confusion. See [CullInstance] for a full description of " "portal modes." msgstr "" "这是整个入口剔除系统中最重要的功能。没有它,系统就无法运行。\n" "首先,它遍历作为 [code]room list[/code] 的节点(以及其中的 [RoomGroup])子节" "点的每个 [Room],并将其转换并添加到 [code]room graph[/code]。\n" "这适用于遵循特殊命名约定的 [Room] 节点和 [Spatial] 节点。它们应该以前缀 " "[i]'Room_'[/i] 开头,然后是您希望为空间命名的名称,例如[i]'Room_lounge'[/i]。" "这将自动为您将此类 [Room] 转换为 [Room] 节点。如果您想构建整个空间系统,这很" "有用,例如Blender,并在您处理关卡时多次重新导入。\n" "转换将尝试将作为 [Room] 的子代和孙代的 [VisualInstance] 分配给空间。这些应该" "被赋予合适的 [code]portal mode[/code](参见 [CullInstance] 文档)。默认的 " "[code]portal mode[/code] 是 [code]STATIC[/code] - 运行关卡时不会移动的对象," "通常是大多数对象。\n" "转换通常会使用这些 [VisualInstance](和 [Portal])的几何形状来计算空间的凸多" "边形边界。这些边界将显示在带有线框的编辑器中。或者,您可以为任何空间指定手动" "自定义边界,请参阅 [Room] 文档。\n" "根据定义,空间内的 [Camera] 可以看到空间内的所有其他东西(这是使用凸多边形的" "一个优势)。但是,为了从一个空间看到相邻的空间,您必须放置 [Portal],它代表摄" "像机可以看到的开口,如窗户和门。\n" "[Portal] 实际上只是专门的 [MeshInstance]。实际上,您通常会首先通过创建 " "[MeshInstance],尤其是 [code]plane[/code] 网格实例来创建入口。您可以在编辑器" "中移动平面以覆盖窗户或门口,正面朝空间外。为了让转换过程知道您希望此网格成为" "portal,我们再次使用特殊的命名约定。要转换为 [Portal] 的 [MeshInstance] 应以" "前缀 [i]'Portal_'[/i] 开头。\n" "您现在有一个选择 - 您可以将名称保留为 [i]'Portal_'[/i],并允许系统自动检测最" "近的 [Room] 进行链接。在大多数情况下,这将正常工作。\n" "另一种方法是手动指定要链接到的 [Room],在入口名称后附加一个后缀,该后缀应该是" "您要链接到的空间的名称。例如,[i]'Portal_lounge'[/i] 将尝试链接到名为 " "[i]'Room_lounge'[/i] 的空间。\n" "这里有一个特殊情况——Godot 不允许两个节点共享相同的名称。如果您想手动将多个入" "口通向同一个空间怎么办?当然,它们都需要被调用,例如[i]'Portal_lounge'[/" "i]?\n" "解决方案是通配符。在空间名称之后,如果您使用字符 [i]'*'[/i],则该字符及其后的" "任何内容都将被忽略。因此,您可以使用例如 [i]'Portal_lounge*0'[/i]、" "[i]'Portal_lounge*1'[/i] 等。\n" "请注意,已经转换为 [Portal] 节点(而不是 [MeshInstance])的 [Portal] 仍然需要" "遵循相同的命名约定,因为它们在转换过程中每次都会重新链接。\n" "建议您仅将对象放置在希望留在这些空间内的空间中 - 即 [code]portal mode[/code]" "是 [code]STATIC[/code] 或 [code]DYNAMIC[/code](不穿越 Portal)。 " "[code]GLOBAL[/code] 和 [code]ROAMING[/code] 对象最好放置在场景树的另一部分," "以避免混淆。有关portal模式的完整说明,请参阅 [CullInstance]。" #: doc/classes/RoomManager.xml msgid "" "Switches the portal culling system on and off.\n" "It is important to note that when portal culling is active, it is " "responsible for [b]all[/b] the 3d culling. Some editor functionality may be " "more difficult to use, so switching the active flag is intended to be used " "to make sure your [Room] / [Portal] layout works within the editor.\n" "Switching to [code]active[/code] will have no effect when the [code]room " "graph[/code] is unloaded (the rooms have not yet been converted)." msgstr "" "打开和关闭入口剔除系统。\n" "需要注意的是,当入口剔除处于活动状态时,它负责[b]所有[/b] 3d 剔除。某些编辑器" "功能可能更难使用,因此切换活动标志旨在确保您的 [Room] / [Portal] 布局在编辑器" "中工作。\n" "当 [code]room graph[/code] 被卸载(空间尚未转换)时,切换到 [code]active[/" "code] 将不起作用。" #: doc/classes/RoomManager.xml msgid "" "Large objects can 'sprawl' over (be present in) more than one room. It can " "be useful to visualize which objects are sprawling outside the current " "room.\n" "Toggling this setting turns this debug view on and off." msgstr "" "大型物体可以“蔓延”超过一个以上的空间。该设置对于可视化那些蔓延在当前空间外的" "对象会很有用。\n" "切换此设置可打开和关闭此调试视图。" #: doc/classes/RoomManager.xml msgid "" "Usually we don't want objects that only [b]just[/b] cross a boundary into an " "adjacent [Room] to sprawl into that room. To prevent this, each [Portal] has " "an extra margin, or tolerance zone where objects can enter without sprawling " "to a neighbouring room.\n" "In most cases you can set this here for all portals. It is possible to " "override the margin for each portal." msgstr "" "通常我们不希望只有[b]刚好[/b]跨越边界进入相邻[Room]的物体蔓延到那个空间。为防" "止这种情况发生,每个 [Portal] 都有一个额外的边距或容差区,物体可以在其中进入" "而不会蔓延到相邻的空间。\n" "在大多数情况下,您可以在此处为所有入口设置此项。可以覆盖每个入口的边距。" #: doc/classes/RoomManager.xml msgid "" "When using a partial or full PVS, the gameplay monitor allows you to receive " "callbacks when roaming objects or rooms enter or exit the [b]gameplay area[/" "b]. The gameplay area is defined as either the primary, or secondary PVS.\n" "These callbacks allow you to, for example, reduce processing for objects " "that are far from the player, or turn on and off AI.\n" "You can either choose to receive callbacks as notifications through the " "[code]_notification[/code] function, or as signals.\n" "[code]NOTIFICATION_ENTER_GAMEPLAY[/code]\n" "[code]NOTIFICATION_EXIT_GAMEPLAY[/code]\n" "Signals: [code]\"gameplay_entered\"[/code], [code]\"gameplay_exited\"[/code]" msgstr "" "使用部分或完整 PVS 时,游戏监视器允许您在漫游对象或空间进入或退出[b]游戏区域" "[/b]时接收回调。游戏区域被定义为主要或次要 PVS。\n" "例如,这些回调允许您减少对远离玩家的对象的处理,或者打开和关闭 AI。\n" "您可以选择通过 [code]_notification[/code] 函数接收回调作为通知,或作为信号接" "收。\n" "[code]NOTIFICATION_ENTER_GAMEPLAY[/code]\n" "[code]NOTIFICATION_EXIT_GAMEPLAY[/code]\n" "信号:[code]\"gameplay_entered\"[/code], [code]\"gameplay_exited\"[/code]" #: doc/classes/RoomManager.xml msgid "" "If enabled, the system will attempt to merge similar meshes (particularly in " "terms of materials) within [Room]s during conversion. This can significantly " "reduce the number of drawcalls and state changes required during rendering, " "albeit at a cost of reduced culling granularity.\n" "[b]Note:[/b] This operates at runtime during the conversion process, and " "will only operate on exported or running projects, in order to prevent " "accidental alteration to the scene and loss of data." msgstr "" "如果启用,系统将在转换期间尝试合并 [Room] 内的相似网格(特别是在材质方面)。" "这可以显着减少渲染期间所需的绘制调用和状态更改的数量,尽管代价是降低了剔除粒" "度。\n" "[b]注意:[/b]此操作在转换过程中的运行时运行,并且只会在导出或运行的项目上运" "行,以防止意外更改场景和丢失数据。" #: doc/classes/RoomManager.xml msgid "" "When converting rooms, the editor will warn you if overlap is detected " "between rooms. Overlap can interfere with determining the room that cameras " "and objects are within. A small amount can be acceptable, depending on your " "level. Here you can alter the threshold at which the editor warning appears. " "There are no other side effects." msgstr "" "转换房间时,如果检测到空间之间有重叠,编辑器会警告您。重叠会干扰确定摄像机和" "物体所在的空间。根据您的 level,少量是可以接受的。您可以在此处更改出现编辑器" "警告的阈值。没有其他副作用。" #: doc/classes/RoomManager.xml msgid "" "Portal rendering is recursive - each time a portal is seen through an " "earlier portal there is some cost. For this reason, and to prevent the " "possibility of infinite loops, this setting provides a hard limit on the " "recursion depth.\n" "[b]Note:[/b] This value is unused when using [code]Full[/code] PVS mode." msgstr "" "入口的渲染是递归的——每次通过较早的入口看到一个入口时,都会产生一些成本。出于" "这个原因,并为了防止无限循环的可能性,此设置对递归深度提供了硬性限制。\n" "[b]注意:[/b]使用 [code]Full[/code] PVS 模式时不使用该值。" #: doc/classes/RoomManager.xml msgid "" "Portal culling normally operates using the current [Camera] / [Camera]s, " "however for debugging purposes within the editor, you can use this setting " "to override this behavior and force it to use a particular camera to get a " "better idea of what the occlusion culling is doing." msgstr "" "入口剔除通常使用当前的 [Camera] 或多个 [Camera] 进行操作,但是为了在编辑器中" "进行调试,您可以使用此设置来覆盖此行为并强制它使用特定的相机,以更好地了解遮" "挡剔除的效果。" #: doc/classes/RoomManager.xml msgid "" "Optionally during conversion the potentially visible set (PVS) of rooms that " "are potentially visible from each room can be calculated. This can be used " "either to aid in dynamic portal culling, or to totally replace portal " "culling.\n" "In [code]Full[/code] PVS Mode, all objects within the potentially visible " "rooms will be frustum culled, and rendered if they are within the view " "frustum." msgstr "" "可选地,在转换期间,可以计算从每个空间可能可见的空间的潜在可见集(PVS)。这可" "用于帮助动态入口剔除,或完全替代入口剔除。\n" "在 [code]Full[/code] PVS 模式下,潜在可见空间内的所有对象都将被剔除,如果它们" "在视锥体内,则进行渲染。" #: doc/classes/RoomManager.xml msgid "" "In order to reduce processing for roaming objects, an expansion is applied " "to their AABB as they move. This expanded volume is used to calculate which " "rooms the roaming object is within. If the object's exact AABB is still " "within this expanded volume on the next move, there is no need to reprocess " "the object, which can save considerable CPU.\n" "The downside is that if the expansion is too much, the object may end up " "unexpectedly sprawling into neighbouring rooms and showing up where it might " "otherwise be culled.\n" "In order to balance roaming performance against culling accuracy, this " "expansion margin can be customized by the user. It will typically depend on " "your room and object sizes, and movement speeds. The default value should " "work reasonably in most circumstances." msgstr "" "为了减少对漫游对象的处理,会在它们移动时扩展其 AABB。用扩展后的空间计算漫游对" "象所处的房间。下次移动时,如果该对象的精确 AABB 仍然位于扩展后的空间,则无须" "再次处理该对象,可以相当节省 CPU。\n" "缺点是如果扩展得过多,该对象就可能意外蔓延到隔壁房间,在本该剔除的地方出" "现。\n" "为了在高效漫游和精准剔除之间达到平衡,用户可以自定义扩展的距离。这个距离一般" "由房间、对象的大小以及移动速度决定。大多数情况下,默认值应该都能达到合适的效" "果。" #: doc/classes/RoomManager.xml msgid "" "During the conversion process, the geometry of objects within [Room]s, or a " "custom specified manual bound, are used to generate a [b]convex hull bound[/" "b].\n" "This convex hull is [b]required[/b] in the visibility system, and is used " "for many purposes. Most importantly, it is used to decide whether the " "[Camera] (or an object) is within a [Room]. The convex hull generating " "algorithm is good, but occasionally it can create too many (or too few) " "planes to give a good representation of the room volume.\n" "The [code]room_simplify[/code] value can be used to gain fine control over " "this process. It determines how similar planes can be for them to be " "considered the same (and duplicates removed). The value can be set between 0 " "(no simplification) and 1 (maximum simplification).\n" "The value set here is the default for all rooms, but individual rooms can " "override this value if desired.\n" "The room convex hulls are shown as a wireframe in the editor." msgstr "" "在转换过程中,[Room] 内对象的几何形状,或自定义指定的手动绑定,用于生成 [b]凸" "多边形绑定[/b]。\n" "这个凸多边形在可见性系统中是 [b]必需的[/b],并且用于许多目的。最重要的是,它" "用于决定[Camera](或物体)是否在[Room]内。凸多边形生成算法很好,但有时它会创" "建太多(或太少)的平面,无法很好地表示空间体积。\n" "[code]room_simplify[/code] 值可用于对该过程进行精细控制。它决定了如何相似平面" "才能将它们视为相同(并删除重复项)。该值可以设置在 0(无简化)和 1(最大简" "化)之间。\n" "此处设置的值是所有空间的默认值,但如果需要,个别空间可以覆盖此值。\n" "空间凸包在编辑器中显示为线框。" #: doc/classes/RoomManager.xml msgid "" "For the [Room] conversion process to succeed, you must point the " "[RoomManager] to the parent [Node] of your [Room]s and [RoomGroup]s, which " "we refer to as the [code]roomlist[/code] (the roomlist is not a special node " "type, it is normally just a [Spatial])." msgstr "" "要使 [Room] 转换过程成功,您必须将 [RoomManager] 指向 [Room] 和 [RoomGroup] " "的父 [Node],我们将其称为 [code]roomlist[/code](roomlist 不是一个特殊的节点" "类型,它通常只是一个 [Room])。" #: doc/classes/RoomManager.xml msgid "Shows the [Portal] margins when the portal gizmo is used in the editor." msgstr "当在编辑器中使用portal工具时,显示[Portal]的边界。" #: doc/classes/RoomManager.xml msgid "" "When receiving gameplay callbacks when objects enter and exit gameplay, the " "[b]gameplay area[/b] can be defined by either the primary PVS (potentially " "visible set) of [Room]s, or the secondary PVS (the primary PVS and their " "neighbouring [Room]s).\n" "Sometimes using the larger gameplay area of the secondary PVS may be " "preferable." msgstr "" "当对象进入和退出游戏时接收游戏回调时,[b]游戏区域[/b]可以由[Room]的主要PVS" "(潜在可见集)或次要PVS(主要PVS及其相邻的PVS)定义[Room])。\n" "有时使用次要 PVS 的较大游戏区域可能更可取。" #: doc/classes/RoomManager.xml msgid "" "Use only [Portal]s at runtime to determine visibility. PVS will not be " "generated at [Room]s conversion, and gameplay notifications cannot be used." msgstr "" "在运行时仅使用 [Portal] 来确定可见性。 [Room] 的转换不会产生 PVS,无法使用游" "戏通知。" #: doc/classes/RoomManager.xml msgid "" "Use a combination of PVS and [Portal]s to determine visibility (this is " "usually fastest and most accurate)." msgstr "使用 PVS 和 [Portal] 的组合来确定可见性(这通常是最快和最准确的)。" #: doc/classes/RoomManager.xml msgid "" "Use only the PVS (potentially visible set) of [Room]s to determine " "visibility." msgstr "仅使用 [Room] 的 PVS(潜在可见集)来确定可见性。" #: doc/classes/RootMotionView.xml msgid "Editor-only helper for setting up root motion in [AnimationTree]." msgstr "在[AnimationTree]中设置根运动的仅编辑器可用的辅助工具。" #: doc/classes/RootMotionView.xml msgid "" "[i]Root motion[/i] refers to an animation technique where a mesh's skeleton " "is used to give impulse to a character. When working with 3D animations, a " "popular technique is for animators to use the root skeleton bone to give " "motion to the rest of the skeleton. This allows animating characters in a " "way where steps actually match the floor below. It also allows precise " "interaction with objects during cinematics. See also [AnimationTree].\n" "[b]Note:[/b] [RootMotionView] is only visible in the editor. It will be " "hidden automatically in the running project, and will also be converted to a " "plain [Node] in the running project. This means a script attached to a " "[RootMotionView] node [i]must[/i] have [code]extends Node[/code] instead of " "[code]extends RootMotionView[/code]. Additionally, it must not be a " "[code]tool[/code] script." msgstr "" "[i]根运动[/i](Root Motion)指的是一种动画技术,其中使用网格的骨架为角色提供" "动力。在处理 3D 动画时,一种流行的技术是动画师使用骨架的根骨骼来为骨架的其余" "部分提供运动。这允许以步骤实际匹配下方地板的方式为角色设置动画。它还允许在过" "场动画期间与对象进行精确交互。另见 [AnimationTree]。\n" "[b]注意:[/b][RootMotionView] 仅在编辑器中可见。在运行的项目中会自动隐藏,在" "运行的项目中也会转换为普通的 [Node]。这意味着附加到 [RootMotionView] 节点的脚" "本[i]必须[/i]具写 [code]extends Node[/code] 而不是 [code]extends " "RootMotionView[/code]。此外,它不能是 [code]tool[/code] 脚本。" #: doc/classes/RootMotionView.xml msgid "Using AnimationTree - Root motion" msgstr "使用 AnimationTree - 根运动" #: doc/classes/RootMotionView.xml msgid "Path to an [AnimationTree] node to use as a basis for root motion." msgstr "用作根运动的基的 [AnimationTree] 节点的路径。" #: doc/classes/RootMotionView.xml msgid "The grid's cell size in 3D units." msgstr "以 3D 单位表示的网格单元大小。" #: doc/classes/RootMotionView.xml msgid "The grid's color." msgstr "网格的颜色。" #: doc/classes/RootMotionView.xml msgid "" "The grid's radius in 3D units. The grid's opacity will fade gradually as the " "distance from the origin increases until this [member radius] is reached." msgstr "" "以 3D 单位表示的网格半径。随着与原点的距离增加,网格的不透明度将逐渐消失,直" "到达到此半径 [member radius]。" #: doc/classes/RootMotionView.xml msgid "" "If [code]true[/code], the grid's points will all be on the same Y coordinate " "([i]local[/i] Y = 0). If [code]false[/code], the points' original Y " "coordinate is preserved." msgstr "" "如果 [code]true[/code],则网格的点都将位于相同的 Y 坐标上([i]local[/i] Y = " "0)。如果 [code]false[/code],则保留点的原始 Y 坐标。" #: doc/classes/SceneState.xml msgid "A script interface to a scene file's data." msgstr "场景文件数据的脚本接口。" #: doc/classes/SceneState.xml msgid "" "Maintains a list of resources, nodes, exported, and overridden properties, " "and built-in scripts associated with a scene.\n" "This class cannot be instantiated directly, it is retrieved for a given " "scene as the result of [method PackedScene.get_state]." msgstr "" "维护一个与场景相关的资源、节点、导出的和重写的属性以及内置脚本的列表。\n" "这个类不能直接实例化,它是作为[method PackedScene.get_state]的结果为一个给定" "的场景检索的。" #: doc/classes/SceneState.xml msgid "" "Returns the list of bound parameters for the signal at [code]idx[/code]." msgstr "返回 [code]idx[/code] 处信号的绑定参数列表。" #: doc/classes/SceneState.xml msgid "" "Returns the number of signal connections in the scene.\n" "The [code]idx[/code] argument used to query connection metadata in other " "[code]get_connection_*[/code] methods in the interval [code][0, " "get_connection_count() - 1][/code]." msgstr "" "返回场景中的信号连接数。\n" "用于查询其他[code]get_connection_*[/code]方法中的连接元数据的[code]idx[/code]" "参数,其间隔时间为[code][0, get_connection_count() - 1][/code]。" #: doc/classes/SceneState.xml msgid "" "Returns the connection flags for the signal at [code]idx[/code]. See [enum " "Object.ConnectFlags] constants." msgstr "" "返回 [code]idx[/code] 处的信号的连接标志。请参阅 [enum Object.ConnectFlags] " "常量。" #: doc/classes/SceneState.xml msgid "Returns the method connected to the signal at [code]idx[/code]." msgstr "返回连接到[code]idx[/code]处信号的方法。" #: doc/classes/SceneState.xml msgid "Returns the name of the signal at [code]idx[/code]." msgstr "返回 [code]idx[/code] 处的信号名称。" #: doc/classes/SceneState.xml msgid "" "Returns the path to the node that owns the signal at [code]idx[/code], " "relative to the root node." msgstr "返回拥有[code]idx[/code]处信号的节点的相对于根节点的路径。" #: doc/classes/SceneState.xml msgid "" "Returns the path to the node that owns the method connected to the signal at " "[code]idx[/code], relative to the root node." msgstr "" "返回到拥有连接到 [code]idx[/code] 处的信号的方法的节点的相对于根节点的路径。" #: doc/classes/SceneState.xml msgid "" "Returns the number of nodes in the scene.\n" "The [code]idx[/code] argument used to query node data in other " "[code]get_node_*[/code] methods in the interval [code][0, get_node_count() - " "1][/code]." msgstr "" "返回场景中节点的数量。\n" "[code]idx[/code]参数用于在其他[code]get_node_*[/code]方法中查询节点数据,其间" "隔为[code][0, get_node_count() - 1][/code]。" #: doc/classes/SceneState.xml msgid "" "Returns the list of group names associated with the node at [code]idx[/code]." msgstr "返回与 [code]idx[/code] 处的节点关联的组名列表。" #: doc/classes/SceneState.xml msgid "" "Returns the node's index, which is its position relative to its siblings. " "This is only relevant and saved in scenes for cases where new nodes are " "added to an instanced or inherited scene among siblings from the base scene. " "Despite the name, this index is not related to the [code]idx[/code] argument " "used here and in other methods." msgstr "" "返回节点的索引,即它相对于其兄弟节点的位置。这仅在将新节点添加到基础场景的兄" "弟节点之间的实例化或继承场景中的情况下,才关联并保存在场景中。尽管名称如此," "但该索引与此处和其他方法中使用的 [code]idx[/code] 参数无关。" #: doc/classes/SceneState.xml msgid "" "Returns a [PackedScene] for the node at [code]idx[/code] (i.e. the whole " "branch starting at this node, with its child nodes and resources), or " "[code]null[/code] if the node is not an instance." msgstr "" "返回 [code]idx[/code]处的节点的[PackedScene](即从该节点开始的整个分支,包括" "其子节点和资源),如果该节点不是一个实例,则返回 [code]null[/code]。" #: doc/classes/SceneState.xml msgid "" "Returns the path to the represented scene file if the node at [code]idx[/" "code] is an [InstancePlaceholder]." msgstr "" "如果[code]idx[/code]处的节点是一个[InstancePlaceholder],返回所代表的场景文件" "的路径。" #: doc/classes/SceneState.xml msgid "Returns the name of the node at [code]idx[/code]." msgstr "返回 [code]idx[/code]处的节点名称。" #: doc/classes/SceneState.xml msgid "" "Returns the path to the owner of the node at [code]idx[/code], relative to " "the root node." msgstr "返回相对于根节点的 在[code]idx[/code] 处节点的所有者的路径。" #: doc/classes/SceneState.xml msgid "" "Returns the path to the node at [code]idx[/code].\n" "If [code]for_parent[/code] is [code]true[/code], returns the path of the " "[code]idx[/code] node's parent instead." msgstr "" "返回 [code]idx[/code]处的节点的路径。\n" "如果[code]for_parent[/code]是[code]true[/code],则返回 [code]idx[/code]节点的" "父节点的路径。" #: doc/classes/SceneState.xml msgid "" "Returns the number of exported or overridden properties for the node at " "[code]idx[/code].\n" "The [code]prop_idx[/code] argument used to query node property data in other " "[code]get_node_property_*[/code] methods in the interval [code][0, " "get_node_property_count() - 1][/code]." msgstr "" "返回节点在 [code]idx[/code] 处导出或覆盖的属性数。\n" "[code]prop_idx[/code] 参数用于在区间 [code][0, get_node_property_count() - 1]" "[/code] 的其他 [code]get_node_property_*[/code] 方法中查询节点属性数据。" #: doc/classes/SceneState.xml msgid "" "Returns the name of the property at [code]prop_idx[/code] for the node at " "[code]idx[/code]." msgstr "返回 [code]prop_idx[/code]处的属性名称,用于[code]idx[/code]处的节点。" #: doc/classes/SceneState.xml msgid "" "Returns the value of the property at [code]prop_idx[/code] for the node at " "[code]idx[/code]." msgstr "返回 [code]idx[/code] 节点的 [code]prop_idx[/code] 属性值。" #: doc/classes/SceneState.xml msgid "Returns the type of the node at [code]idx[/code]." msgstr "返回 [code]idx[/code]处节点的类型。" #: doc/classes/SceneState.xml msgid "" "Returns [code]true[/code] if the node at [code]idx[/code] is an " "[InstancePlaceholder]." msgstr "" "如果[code]idx[/code]处的节点是一个[InstancePlaceholder],返回 [code]true[/" "code]。" #: doc/classes/SceneState.xml msgid "" "If passed to [method PackedScene.instance], blocks edits to the scene state." msgstr "传给 [method PackedScene.instance] 时,将阻止对场景状态的编辑。" #: doc/classes/SceneState.xml msgid "" "If passed to [method PackedScene.instance], provides inherited scene " "resources to the local scene.\n" "[b]Note:[/b] Only available in editor builds." msgstr "" "传给 [method PackedScene.instance] 时,将提供继承的场景资源给本地场景。\n" "[b]注意:[/b]只在编辑器构建中可用。" #: doc/classes/SceneState.xml msgid "" "If passed to [method PackedScene.instance], provides local scene resources " "to the local scene. Only the main scene should receive the main edit state.\n" "[b]Note:[/b] Only available in editor builds." msgstr "" "传给 [method PackedScene.instance] 时,将向本地场景提供本地场景资源。只有主场" "景应该接收主编辑状态。\n" "[b]注意:[/b]只在编辑器构建中可用。" #: doc/classes/SceneState.xml msgid "" "If passed to [method PackedScene.instance], it's similar to [constant " "GEN_EDIT_STATE_MAIN], but for the case where the scene is being instantiated " "to be the base of another one.\n" "[b]Note:[/b] Only available in editor builds." msgstr "" "传给 [method PackedScene.instance] 时,类似于 [constant " "GEN_EDIT_STATE_MAIN],但适用于将场景实例用作另一个场景的基类的情况。\n" "[b]注意:[/b]只在编辑器构建中可用。" #: doc/classes/SceneTree.xml msgid "Manages the game loop via a hierarchy of nodes." msgstr "通过节点层次结构管理游戏循环。" #: doc/classes/SceneTree.xml msgid "" "As one of the most important classes, the [SceneTree] manages the hierarchy " "of nodes in a scene as well as scenes themselves. Nodes can be added, " "retrieved and removed. The whole scene tree (and thus the current scene) can " "be paused. Scenes can be loaded, switched and reloaded.\n" "You can also use the [SceneTree] to organize your nodes into groups: every " "node can be assigned as many groups as you want to create, e.g. an \"enemy\" " "group. You can then iterate these groups or even call methods and set " "properties on all the group's members at once.\n" "[SceneTree] is the default [MainLoop] implementation used by scenes, and is " "thus in charge of the game loop." msgstr "" "作为最重要的类之一,[SceneTree] 管理着场景中节点的层次结构以及场景本身。节点" "可以被添加、检索和删除。整个场景树可以被暂停,包括当前场景。场景可以被加载、" "切换和重新加载。\n" "你也可以使用 [SceneTree] 将你的节点组织成组,每个节点都可以被分配到你想要创建" "的组,例如“敌人”组。然后你可以遍历这些组,甚至可以统一对所有组成员调用方法并" "设置属性。\n" "[SceneTree] 是场景所使用的默认 [MainLoop] 实现,因此掌控着游戏循环。" #: doc/classes/SceneTree.xml msgid "" "Calls [code]method[/code] on each member of the given group. You can pass " "arguments to [code]method[/code] by specifying them at the end of the method " "call. This method is equivalent of calling [method call_group_flags] with " "[constant GROUP_CALL_DEFAULT] flag.\n" "[b]Note:[/b] [code]method[/code] may only have 5 arguments at most (7 " "arguments passed to this method in total).\n" "[b]Note:[/b] Due to design limitations, [method call_group] will fail " "silently if one of the arguments is [code]null[/code].\n" "[b]Note:[/b] [method call_group] will always call methods with an one-frame " "delay, in a way similar to [method Object.call_deferred]. To call methods " "immediately, use [method call_group_flags] with the [constant " "GROUP_CALL_REALTIME] flag." msgstr "" "对给定组的每个成员调用 [code]method[/code]。您可以通过在方法调用结束时指定参" "数来将参数传递给 [code]method[/code]。此方法等效于使用 [constant " "GROUP_CALL_DEFAULT] 标志调用 [method call_group_flags]。\n" "[b]注:[/b] [code]method[/code]最多只能有5个参数(总共7个参数传递给这个方" "法)。\n" "[b]注意:[/b]由于设计限制,如果参数之一为 [code]null[/code],[method " "call_group] 将静默失败。\n" "[b]注意:[/b][method call_group] 将始终调用具有一帧延迟的方法,其方式类似于 " "[method Object.call_deferred]。要立即调用方法,请将 [method " "call_group_flags] 与 [constant GROUP_CALL_REALTIME] 标志一起使用。" #: doc/classes/SceneTree.xml msgid "" "Calls [code]method[/code] on each member of the given group, respecting the " "given [enum GroupCallFlags]. You can pass arguments to [code]method[/code] " "by specifying them at the end of the method call.\n" "[b]Note:[/b] [code]method[/code] may only have 5 arguments at most (8 " "arguments passed to this method in total).\n" "[b]Note:[/b] Due to design limitations, [method call_group_flags] will fail " "silently if one of the arguments is [code]null[/code].\n" "[codeblock]\n" "# Call the method immediately and in reverse order.\n" "get_tree().call_group_flags(SceneTree.GROUP_CALL_REALTIME | SceneTree." "GROUP_CALL_REVERSE, \"bases\", \"destroy\")\n" "[/codeblock]" msgstr "" "对给定组的每个成员调用 [code]method[/code],遵从给定的 [enum " "GroupCallFlags]。您可以通过在方法调用结束时指定参数来将参数传递给 " "[code]method[/code]。\n" "[b]注:[/b] [code]method[/code]最多只能有5个参数(总共8个参数传递给这个方" "法)。\n" "[b]注意:[/b]由于设计限制,如果参数之一为 [code]null[/code],[method " "call_group_flags] 将静默失败。\n" "[codeblock]\n" "# 立即以相反的顺序调用该方法。\n" "get_tree().call_group_flags(SceneTree.GROUP_CALL_REALTIME | SceneTree." "GROUP_CALL_REVERSE, \"bases\", \"destroy\")\n" "[/codeblock]" #: doc/classes/SceneTree.xml msgid "" "Changes the running scene to the one at the given [code]path[/code], after " "loading it into a [PackedScene] and creating a new instance.\n" "Returns [constant OK] on success, [constant ERR_CANT_OPEN] if the " "[code]path[/code] cannot be loaded into a [PackedScene], or [constant " "ERR_CANT_CREATE] if that scene cannot be instantiated.\n" "[b]Note:[/b] The scene change is deferred, which means that the new scene " "node is added on the next idle frame. You won't be able to access it " "immediately after the [method change_scene] call." msgstr "" "将位于给定路径 [code]path[/code] 的场景加载进一个 [PackedScene] 并新建其实" "例,然后将正在运行的场景修改为这个场景。\n" "成功时返回 [constant OK],如果 [code]path[/code] 不能被加载到一个 " "[PackedScene] 中则返回 [constant ERR_CANT_OPEN],如果该场景不能被实例化,则返" "回 [constant ERR_CANT_CREATE]。\n" "[b]注意:[/b]场景改变有延迟,即新的场景节点是在下一个空闲帧中添加的。在 " "[method change_scene] 调用之后,你无法立即访问到它。" #: doc/classes/SceneTree.xml msgid "" "Changes the running scene to a new instance of the given [PackedScene].\n" "Returns [constant OK] on success or [constant ERR_CANT_CREATE] if the scene " "cannot be instantiated.\n" "[b]Note:[/b] The scene change is deferred, which means that the new scene " "node is added on the next idle frame. You won't be able to access it " "immediately after the [method change_scene_to] call." msgstr "" "将正在运行的场景改变为给定的 [PackedScene] 的新实例。\n" "成功时返回 [constant OK],如果场景不能被实例化,则返回 [constant " "ERR_CANT_CREATE]。\n" "[b]注意:[/b]场景改变有延迟,即新的场景节点是在下一个空闲帧中添加的。在 " "[method change_scene_to] 调用之后,你无法立即访问到它。" #: doc/classes/SceneTree.xml msgid "" "Returns a [SceneTreeTimer] which will [signal SceneTreeTimer.timeout] after " "the given time in seconds elapsed in this [SceneTree]. If " "[code]pause_mode_process[/code] is set to [code]false[/code], pausing the " "[SceneTree] will also pause the timer.\n" "Commonly used to create a one-shot delay timer as in the following example:\n" "[codeblock]\n" "func some_function():\n" " print(\"start\")\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(\"end\")\n" "[/codeblock]\n" "The timer will be automatically freed after its time elapses." msgstr "" "返回一个 [SceneTreeTimer],在这个 [SceneTree] 中经过给定的时间(秒)后,将发" "出 [signal SceneTreeTimer.timeout] 信号。如果 [code]pause_mode_process[/" "code] 被设置为 [code]false[/code],暂停 [SceneTree] 也将暂停该定时器。\n" "常用于创建一次性的延迟定时器,如下面的例子:\n" "[codeblock]\n" "func some_function():\n" " print(\"开始\")\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(\"结束\")\n" "[/codeblock]\n" "计时器将在其时间结束后被自动释放。" #: doc/classes/SceneTree.xml msgid "Creates and returns a new [SceneTreeTween]." msgstr "创建并返回一个新的 [SceneTreeTween]。" #: doc/classes/SceneTree.xml msgid "" "Returns the current frame number, i.e. the total frame count since the " "application started." msgstr "返回当前的帧数,即自应用程序启动以来的总帧数。" #: doc/classes/SceneTree.xml msgid "" "Returns the peer IDs of all connected peers of this [SceneTree]'s [member " "network_peer]." msgstr "" "返回此 [SceneTree] 的 [member network_peer] 的所有连接对等方的对等 ID。" #: doc/classes/SceneTree.xml msgid "Returns the unique peer ID of this [SceneTree]'s [member network_peer]." msgstr "返回此 [SceneTree] 的 [member network_peer] 的唯一对等 ID。" #: doc/classes/SceneTree.xml msgid "Returns the number of nodes in this [SceneTree]." msgstr "返回此[SceneTree]中的节点数。" #: doc/classes/SceneTree.xml msgid "Returns a list of all nodes assigned to the given group." msgstr "返回一个分配给给定组的所有节点的列表。" #: doc/classes/SceneTree.xml msgid "" "Returns an array of currently existing [SceneTreeTween]s in the [SceneTree] " "(both running and paused)." msgstr "" "返回当前在该 [SceneTree] 中存在的 [SceneTreeTween] 的数组(包含正在执行的和已" "暂停的)。" #: doc/classes/SceneTree.xml msgid "Returns the sender's peer ID for the most recently received RPC call." msgstr "返回最近收到的RPC调用的发送者的对等ID。" #: doc/classes/SceneTree.xml msgid "Returns [code]true[/code] if the given group exists." msgstr "如果给定的组存在,返回 [code]true[/code]。" #: doc/classes/SceneTree.xml msgid "" "Returns [code]true[/code] if the most recent [InputEvent] was marked as " "handled with [method set_input_as_handled]." msgstr "" "如果最近的 [InputEvent] 被使用 [method set_input_as_handled] 设置为已处理,返" "回 [code]true[/code]。" #: doc/classes/SceneTree.xml msgid "" "Returns [code]true[/code] if this [SceneTree]'s [member network_peer] is in " "server mode (listening for connections)." msgstr "" "如果此 [SceneTree] 的 [member network_peer] 处于服务器模式(侦听连接),则返" "回 [code]true[/code]。" #: doc/classes/SceneTree.xml msgid "Sends the given notification to all members of the [code]group[/code]." msgstr "将给定的通知发送给 [code]group[/code] 的所有成员。" #: doc/classes/SceneTree.xml msgid "" "Sends the given notification to all members of the [code]group[/code], " "respecting the given [enum GroupCallFlags]." msgstr "" "将给定的通知发送给 [code]group[/code] 的所有成员,遵从给定的 [enum " "GroupCallFlags]。" #: doc/classes/SceneTree.xml msgid "" "Queues the given object for deletion, delaying the call to [method Object." "free] to after the current frame." msgstr "将给定的对象排队准备删除,即在当前帧之后调用 [method Object.free] 。" #: doc/classes/SceneTree.xml msgid "" "Quits the application at the end of the current iteration. A process " "[code]exit_code[/code] can optionally be passed as an argument. If this " "argument is [code]0[/code] or greater, it will override the [member OS." "exit_code] defined before quitting the application.\n" "[b]Note:[/b] On iOS this method doesn't work. Instead, as recommended by the " "iOS Human Interface Guidelines, the user is expected to close apps via the " "Home button." msgstr "" "在当前迭代结束时退出应用程序。进程的 [code]exit_code[/code] 可以选择性地作为" "参数传递。如果这个参数大于等于 [code]0[/code],它将覆盖在退出应用程序之前定义" "的 [member OS.exit_code]。\n" "[b]注意:[/b]这个方法在 iOS 上不起作用。根据《iOS 人机界面指南》中的建议,用" "户应该通过 Home 键来关闭应用程序。" #: doc/classes/SceneTree.xml msgid "" "Reloads the currently active scene.\n" "Returns [constant OK] on success, [constant ERR_UNCONFIGURED] if no [member " "current_scene] was defined yet, [constant ERR_CANT_OPEN] if [member " "current_scene] cannot be loaded into a [PackedScene], or [constant " "ERR_CANT_CREATE] if the scene cannot be instantiated." msgstr "" "重新加载当前活动的场景。\n" "成功时返回 [constant OK],如果尚未定义 [member current_scene],则返回 " "[constant ERR_UNCONFIGURED],如果 [member current_scene] 无法加载到 " "[PackedScene] 中,则返回 [constant ERR_CANT_OPEN],如果场景无法加载,则返回 " "[constant ERR_CANT_CREATE]。" #: doc/classes/SceneTree.xml msgid "" "Sets the given [code]property[/code] to [code]value[/code] on all members of " "the given group." msgstr "" "在给定组的所有成员上将给定的属性 [code]property[/code] 设置为 [code]value[/" "code]。" #: doc/classes/SceneTree.xml msgid "" "Sets the given [code]property[/code] to [code]value[/code] on all members of " "the given group, respecting the given [enum GroupCallFlags]." msgstr "" "将给定的 [code]property[/code] 设置为给定组的所有成员的 [code]value[/code]," "尊重给定的 [enum GroupCallFlags]。" #: doc/classes/SceneTree.xml msgid "Marks the most recent [InputEvent] as handled." msgstr "将最新的 [InputEvent] 标记为已处理。" #: doc/classes/SceneTree.xml msgid "" "Configures screen stretching to the given [enum StretchMode], [enum " "StretchAspect], minimum size and [code]scale[/code]." msgstr "" "将屏幕拉伸配置为给定的 [enum StretchMode]、[enum StretchAspect]、最小尺寸和 " "[code]scale[/code]。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], the application automatically accepts quitting.\n" "For mobile platforms, see [member quit_on_go_back]." msgstr "" "为 [code]true[/code] 时应用程序将自动接受退出。\n" "对于移动平台,请参阅 [member quit_on_go_back]。" #: doc/classes/SceneTree.xml msgid "The current scene." msgstr "当前场景。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], collision shapes will be visible when running the game " "from the editor for debugging purposes." msgstr "" "如果 [code]true[/code],以调试为目的从编辑器运行游戏时,碰撞形状将是可见的。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], navigation polygons will be visible when running the " "game from the editor for debugging purposes." msgstr "" "如果 [code]true[/code],以调试为目的从编辑器运行游戏时,导航多边形将是可见" "的。" #: doc/classes/SceneTree.xml msgid "The root of the edited scene." msgstr "编辑场景的根。" #: doc/classes/SceneTree.xml msgid "The default [MultiplayerAPI] instance for this [SceneTree]." msgstr "此 [SceneTree] 的默认 [MultiplayerAPI] 实例。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code] (default value), enables automatic polling of the " "[MultiplayerAPI] for this SceneTree during [signal idle_frame].\n" "If [code]false[/code], you need to manually call [method MultiplayerAPI." "poll] to process network packets and deliver RPCs/RSETs. This allows running " "RPCs/RSETs in a different loop (e.g. physics, thread, specific time step) " "and for manual [Mutex] protection when accessing the [MultiplayerAPI] from " "threads." msgstr "" "如果 [code]true[/code](默认值),则在 [signal idle_frame] 期间启用此 " "SceneTree 的 [MultiplayerAPI] 自动轮询。\n" "如果[code]false[/code],则需要手动调用[method MultiplayerAPI.poll]来处理网络" "数据包并投递RPCs/RSETs。这允许在不同的循环(例如物理、线程、特定时间步长)中" "运行 RPC/RSET,并在从线程访问 [MultiplayerAPI] 时进行手动 [Mutex] 保护。" #: doc/classes/SceneTree.xml msgid "" "The peer object to handle the RPC system (effectively enabling networking " "when set). Depending on the peer itself, the [SceneTree] will become a " "network server (check with [method is_network_server]) and will set the root " "node's network mode to master, or it will become a regular peer with the " "root node set to puppet. All child nodes are set to inherit the network mode " "by default. Handling of networking-related events (connection, " "disconnection, new clients) is done by connecting to [SceneTree]'s signals." msgstr "" "处理 RPC 系统的对等对象(设置后有效地启用网络)。根据peer本身的不同," "[SceneTree]将成为网络服务器(检查[method is_network_server])并将根节点的网络" "模式设置为master,或者它将成为根节点被设置为puppet的普通对等体。所有子节点默" "认设置为继承网络模式。与网络相关的事件(连接、断开连接、新客户端)的处理是通" "过连接到 [SceneTree] 的信号来完成的。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], the [SceneTree] is paused. Doing so will have the " "following behavior:\n" "- 2D and 3D physics will be stopped. This includes signals and collision " "detection.\n" "- [method Node._process], [method Node._physics_process] and [method Node." "_input] will not be called anymore in nodes." msgstr "" "如果[code]true[/code],[SceneTree]会暂停。这样做会有以下行为:\n" "- 2D和3D物理将停止。这包括信号和碰撞检测。\n" "- 节点不再调用[method Node._process]、[method Node._physics_process]和" "[method Node._input]。" #: doc/classes/SceneTree.xml msgid "" "Although physics interpolation would normally be globally turned on and off " "using [member ProjectSettings.physics/common/physics_interpolation], this " "property allows control over interpolation at runtime." msgstr "" "尽管一般是使用 [member ProjectSettings.physics/common/physics_interpolation] " "来全局开关物理插值的,这个属性可以在运行时控制插值。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], the application quits automatically on going back (e." "g. on Android).\n" "To handle 'Go Back' button when this option is disabled, use [constant " "MainLoop.NOTIFICATION_WM_GO_BACK_REQUEST]." msgstr "" "为 [code]true[/code] 时应用程序将在返回时自动退出(例如在 Android 上)。\n" "要在这个选项被禁用时处理“返回”按钮,请使用 [constant MainLoop." "NOTIFICATION_WM_GO_BACK_REQUEST]。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], the [SceneTree]'s [member network_peer] refuses new " "incoming connections." msgstr "" "如果 [code]true[/code],则 [SceneTree] 的 [member network_peer] 拒绝新的传入" "连接。" #: doc/classes/SceneTree.xml msgid "The [SceneTree]'s root [Viewport]." msgstr "[SceneTree] 的根 [Viewport]。" #: doc/classes/SceneTree.xml msgid "" "If [code]true[/code], font oversampling is enabled. This means that " "[DynamicFont]s will be rendered at higher or lower size than configured " "based on the viewport's scaling ratio. For example, in a viewport scaled " "with a factor 1.5, a font configured with size 14 would be rendered with " "size 21 ([code]14 * 1.5[/code]).\n" "[b]Note:[/b] Font oversampling is only used if the viewport stretch mode is " "[constant STRETCH_MODE_VIEWPORT], and if the stretch aspect mode is " "different from [constant STRETCH_ASPECT_IGNORE].\n" "[b]Note:[/b] This property is set automatically for the active [SceneTree] " "when the project starts based on the configuration of [code]rendering/" "quality/dynamic_fonts/use_oversampling[/code] in [ProjectSettings]. The " "property can however be overridden at runtime as needed." msgstr "" "为 [code]true[/code] 时启用字体过采样。这意味着根据视窗的缩放比例不同," "[DynamicFont] 渲染的大小会比配置大小更高或更低。例如,如果视窗的缩放系数为 " "1.5,那么配置为 14 号大小的字体将会按照 21 号大小渲染([code]14 * 1.5[/" "code])。\n" "[b]注意:[/b]字体过采样仅在视窗拉伸模式为 [constant STRETCH_MODE_VIEWPORT] 且" "拉伸比例模式不是 [constant STRETCH_ASPECT_IGNORE] 时有效。\n" "[b]注意:[/b]项目启动时会为活动的 [SceneTree] 自动设置该属性,取值为 " "[ProjectSettings] 的 [code]rendering/quality/dynamic_fonts/use_oversampling[/" "code]。不过运行时可以根据需要对该属性进行覆盖。" #: doc/classes/SceneTree.xml msgid "" "Emitted whenever this [SceneTree]'s [member network_peer] successfully " "connected to a server. Only emitted on clients." msgstr "" "当这个[SceneTree]的[member network_peer]成功连接到一个服务器时发出。只在客户" "端发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted whenever this [SceneTree]'s [member network_peer] fails to establish " "a connection to a server. Only emitted on clients." msgstr "" "每当此 [SceneTree] 的 [member network_peer] 无法与服务器建立连接时发出。仅在" "客户端上发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted when files are dragged from the OS file manager and dropped in the " "game window. The arguments are a list of file paths and the identifier of " "the screen where the drag originated." msgstr "" "当文件从操作系统的文件管理器中被拖到游戏窗口中时发出。参数是一个文件路径列表" "和拖动文件的屏幕标识符。" #: doc/classes/SceneTree.xml msgid "Emitted whenever global menu item is clicked." msgstr "每当单击全局菜单项时触发。" #: doc/classes/SceneTree.xml msgid "" "Emitted immediately before [method Node._process] is called on every node in " "the [SceneTree]." msgstr "在对[SceneTree]中的每个节点调用[method Node._process]之前立即发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted whenever this [SceneTree]'s [member network_peer] connects with a " "new peer. ID is the peer ID of the new peer. Clients get notified when other " "clients connect to the same server. Upon connecting to a server, a client " "also receives this signal for the server (with ID being 1)." msgstr "" "当这个[SceneTree]的[member network_peer]与一个新的对等体连接时发出。ID是新对" "等体的对等体ID。当其他客户端连接到同一个服务器时,客户端会得到通知。当连接到" "一个服务器时,客户端也会收到该服务器的这个信号(ID为1)。" #: doc/classes/SceneTree.xml msgid "" "Emitted whenever this [SceneTree]'s [member network_peer] disconnects from a " "peer. Clients get notified when other clients disconnect from the same " "server." msgstr "" "每当此 [SceneTree] 的 [member network_peer] 与对等方断开连接时发出。当其他客" "户端与同一服务器断开连接时,客户端会收到通知。" #: doc/classes/SceneTree.xml msgid "Emitted whenever a node is added to the [SceneTree]." msgstr "当将节点添加到 [SceneTree] 时发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted when a node's configuration changed. Only emitted in [code]tool[/" "code] mode." msgstr "当节点的配置更改时发出。仅在 [code]tool[/code] 模式下发射。" #: doc/classes/SceneTree.xml msgid "Emitted whenever a node is removed from the [SceneTree]." msgstr "当从 [SceneTree] 中删除节点时发出。" #: doc/classes/SceneTree.xml msgid "Emitted whenever a node is renamed." msgstr "当节点重命名时发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted immediately before [method Node._physics_process] is called on every " "node in the [SceneTree]." msgstr "" "在 [SceneTree] 中的每个节点上调用 [method Node._physics_process] 之前立即发" "出。" #: doc/classes/SceneTree.xml msgid "" "Emitted when the screen resolution (fullscreen) or window size (windowed) " "changes." msgstr "当屏幕分辨率(全屏)或窗口大小(窗口化)改变时发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted whenever this [SceneTree]'s [member network_peer] disconnected from " "server. Only emitted on clients." msgstr "" "当此 [SceneTree] 的 [member network_peer] 与服务器断开连接时发出。仅在客户端" "上发出。" #: doc/classes/SceneTree.xml msgid "" "Emitted whenever the [SceneTree] hierarchy changed (children being moved or " "renamed, etc.)." msgstr "当 [SceneTree] 层次结构发生变化(移动或重命名子项等)时发出。" #: doc/classes/SceneTree.xml msgid "Call a group with no flags (default)." msgstr "调用没有标志的组(默认)。" #: doc/classes/SceneTree.xml msgid "Call a group in reverse scene order." msgstr "以相反的场景顺序调用组。" #: doc/classes/SceneTree.xml msgid "Call a group immediately (calls are normally made on idle)." msgstr "立即调用一个组(调用通常在空闲时进行)。" #: doc/classes/SceneTree.xml msgid "Call a group only once even if the call is executed many times." msgstr "即使调用多次执行,也只调用一次组。" #: doc/classes/SceneTree.xml msgid "No stretching." msgstr "未拉伸。" #: doc/classes/SceneTree.xml msgid "Render stretching in higher resolution (interpolated)." msgstr "以更高的分辨率渲染拉伸(插值)。" #: doc/classes/SceneTree.xml msgid "" "Keep the specified display resolution. No interpolation. Content may appear " "pixelated." msgstr "保持指定的显示分辨率。没有插值。内容可能会出现像素化。" #: doc/classes/SceneTree.xml msgid "" "Fill the window with the content stretched to cover excessive space. Content " "may appear stretched." msgstr "用拉伸的内容填充窗口以覆盖过多的空间。内容可能会被拉伸。" #: doc/classes/SceneTree.xml msgid "" "Retain the same aspect ratio by padding with black bars on either axis. This " "prevents distortion." msgstr "在任意轴上用黑条填充来保持相同的长宽比。这可以防止失真。" #: doc/classes/SceneTree.xml msgid "" "Expand vertically. Left/right black bars may appear if the window is too " "wide." msgstr "垂直展开。如果窗口太宽,可能会出现左/右黑条。" #: doc/classes/SceneTree.xml msgid "" "Expand horizontally. Top/bottom black bars may appear if the window is too " "tall." msgstr "水平展开。如果窗口太高,可能会出现顶部/底部黑条。" #: doc/classes/SceneTree.xml msgid "" "Expand in both directions, retaining the same aspect ratio. This prevents " "distortion while avoiding black bars." msgstr "在两个方向上扩展,保持相同的纵横比。这可以防止失真,同时避免黑条。" #: doc/classes/SceneTreeTimer.xml msgid "One-shot timer." msgstr "一次性定时器。" #: doc/classes/SceneTreeTimer.xml #, fuzzy msgid "" "A one-shot timer managed by the scene tree, which emits [signal timeout] on " "completion. See also [method SceneTree.create_timer].\n" "As opposed to [Timer], it does not require the instantiation of a node. " "Commonly used to create a one-shot delay timer as in the following example:\n" "[codeblock]\n" "func some_function():\n" " print(\"Timer started.\")\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(\"Timer ended.\")\n" "[/codeblock]\n" "The timer will be automatically freed after its time elapses, so be aware " "that any reference you might have kept to it will become invalid." msgstr "" "由场景树管理的一次性定时器,它在完成时发[signal timeout] 信号。请参阅 " "[method SceneTree.create_timer]。\n" "与 [Timer] 相反,它不需要实例化节点。常用于创建一次性的延迟定时器,如下面的例" "子:\n" "[codeblock]\n" "func some_function():\n" " print(\"计时器开始。\")\n" " yield(get_tree().create_timer(1.0), \"timeout\")\n" " print(\"计时器结束。\")\n" "[/codeblock]\n" "时间结束后,该计时器将被自动释放。" #: doc/classes/SceneTreeTimer.xml msgid "The time remaining (in seconds)." msgstr "剩余时间(单位为秒)。" #: doc/classes/SceneTreeTimer.xml doc/classes/Timer.xml msgid "Emitted when the timer reaches 0." msgstr "当计时器到 0 时发出。" #: doc/classes/SceneTreeTween.xml msgid "" "Lightweight object used for general-purpose animation via script, using " "[Tweener]s." msgstr "通过脚本进行通用动画的轻量级对象,使用 [Tweener]。" #: doc/classes/SceneTreeTween.xml msgid "" "[SceneTreeTween] is a tween managed by the scene tree. As opposed to " "[Tween], it does not require the instantiation of a node.\n" "[SceneTreeTween]s are more light-weight than [AnimationPlayer], so they are " "very much suited for simple animations or general tasks that don't require " "visual tweaking provided by the editor. They can be used in a fire-and-" "forget manner for some logic that normally would be done by code. You can e." "g. make something shoot periodically by using a looped [CallbackTweener] " "with a delay.\n" "A [SceneTreeTween] can be created by using either [method SceneTree." "create_tween] or [method Node.create_tween]. [SceneTreeTween]s created " "manually (i.e. by using [code]Tween.new()[/code]) are invalid. They can't be " "used for tweening values, but you can do manual interpolation with [method " "interpolate_value].\n" "A [SceneTreeTween] animation is composed of a sequence of [Tweener]s, which " "by default are executed one after another. You can create a sequence by " "appending [Tweener]s to the [SceneTreeTween]. Animating something with a " "[Tweener] is called tweening. Example tweening sequence looks like this:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property($Sprite, \"modulate\", Color.red, 1)\n" "tween.tween_property($Sprite, \"scale\", Vector2(), 1)\n" "tween.tween_callback($Sprite, \"queue_free\")\n" "[/codeblock]\n" "This sequence will make the [code]$Sprite[/code] node turn red, then shrink " "and finally the [method Node.queue_free] is called to remove the sprite. See " "methods [method tween_property], [method tween_interval], [method " "tween_callback] and [method tween_method] for more usage information.\n" "When a [Tweener] is created with one of the [code]tween_*[/code] methods, a " "chained method call can be used to tweak the properties of this [Tweener]. " "For example, if you want to set different transition type in the above " "example, you can do:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property($Sprite, \"modulate\", Color.red, 1).set_trans(Tween." "TRANS_SINE)\n" "tween.tween_property($Sprite, \"scale\", Vector2(), 1).set_trans(Tween." "TRANS_BOUNCE)\n" "tween.tween_callback($Sprite, \"queue_free\")\n" "[/codeblock]\n" "Most of the [SceneTreeTween] methods can be chained this way too. In this " "example the [SceneTreeTween] is bound and have set a default transition:\n" "[codeblock]\n" "var tween = get_tree().create_tween().bind_node(self).set_trans(Tween." "TRANS_ELASTIC)\n" "tween.tween_property($Sprite, \"modulate\", Color.red, 1)\n" "tween.tween_property($Sprite, \"scale\", Vector2(), 1)\n" "tween.tween_callback($Sprite, \"queue_free\")\n" "[/codeblock]\n" "Another interesting use for [SceneTreeTween]s is animating arbitrary set of " "objects:\n" "[codeblock]\n" "var tween = create_tween()\n" "for sprite in get_children():\n" " tween.tween_property(sprite, \"position\", Vector2(), 1)\n" "[/codeblock]\n" "In the example above, all children of a node are moved one after another to " "position (0, 0).\n" "Some [Tweener]s use transitions and eases. The first accepts an [enum Tween." "TransitionType] constant, and refers to the way the timing of the animation " "is handled (see [url=https://easings.net/]easings.net[/url] for some " "examples). The second accepts an [enum Tween.EaseType] constant, and " "controls where the [code]trans_type[/code] is applied to the interpolation " "(in the beginning, the end, or both). If you don't know which transition and " "easing to pick, you can try different [enum Tween.TransitionType] constants " "with [constant Tween.EASE_IN_OUT], and use the one that looks best.\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "tween_cheatsheet.png]Tween easing and transition types cheatsheet[/url]\n" "[b]Note:[/b] All [SceneTreeTween]s will automatically start by default. To " "prevent a [SceneTreeTween] from autostarting, you can call [method stop] " "immediately after it was created." msgstr "" "[SceneTreeTween] 是由场景树管理的补间动画。与 [Tween] 相对,不需要实例化节" "点。\n" "[SceneTreeTween] 比 [AnimationPlayer] 更轻量,非常适合简单的动画,以及不需要" "编辑器可视化操作的通用任务。可以即发即弃,无需再编写额外的代码。例如,你可以" "循环使用带延迟的 [CallbackTweener],让某些对象不断地进行射击。\n" "可以使用 [method SceneTree.create_tween] 或 [method Node.create_tween] 来创" "建 [SceneTreeTween]。手动创建的 [SceneTreeTween](即使用 [code]Tween.new()[/" "code])是无效的,不能用于对值进行补间,但你可以用 [method interpolate_value] " "来手动插值。\n" "[SceneTreeTween] 动画是由 [Tweener] 序列构成的,默认串行执行。向该 " "[SceneTreeTween] 追加 [Tweener] 即可创建序列。使用 [Tweener] 来做动画就叫做补" "间(Tweening)。示例补间序列是类似这样的:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property($Sprite, \"modulate\", Color.red, 1)\n" "tween.tween_property($Sprite, \"scale\", Vector2(), 1)\n" "tween.tween_callback($Sprite, \"queue_free\")\n" "[/codeblock]\n" "这个序列会让 [code]$Sprite[/code] 变红,然后缩小,最后调用 [method Node." "queue_free] 来移除精灵。更多用法信息请参阅 [method tween_property]、[method " "tween_interval]、[method tween_callback]、[method tween_method] 方法。\n" "使用 [code]tween_*[/code] 方法创建 [Tweener] 后,可以使用链式方法调用来调整" "该 [Tweener] 的属性。例如,如果你想要在上面的例子中设置不同的过渡类型,那么你" "可以:\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_property($Sprite, \"modulate\", Color.red, 1).set_trans(Tween." "TRANS_SINE)\n" "tween.tween_property($Sprite, \"scale\", Vector2(), 1).set_trans(Tween." "TRANS_BOUNCE)\n" "tween.tween_callback($Sprite, \"queue_free\")\n" "[/codeblock]\n" "[SceneTreeTween] 的大部分方法都可以用这种方法进行链式调用。在这个示例中,我们" "对该 [SceneTreeTween] 进行了绑定,并设置了默认的过渡:\n" "[codeblock]\n" "var tween = get_tree().create_tween().bind_node(self).set_trans(Tween." "TRANS_ELASTIC)\n" "tween.tween_property($Sprite, \"modulate\", Color.red, 1)\n" "tween.tween_property($Sprite, \"scale\", Vector2(), 1)\n" "tween.tween_callback($Sprite, \"queue_free\")\n" "[/codeblock]\n" "[SceneTreeTween] 还有一种有意思的用法,可以对任意一组对象进行动画:\n" "[codeblock]\n" "var tween = create_tween()\n" "for sprite in get_children():\n" " tween.tween_property(sprite, \"position\", Vector2(), 1)\n" "[/codeblock]\n" "上面的示例中,该节点的所有子节点都会依次被移动到 (0, 0)。\n" "一些 [Tweener] 会用到过渡和缓动。前者接受 [enum Tween.TransitionType] 常量," "指的是如何处理该动画的时间(示例见 [url=https://easings.net/]easings.net[/" "url])。第二个接受的是 [enum Tween.EaseType] 常量,控制 [code]trans_type[/" "code] 应用到插值中的位置(开头、结尾、头尾均有)。如果你不知道该选用哪种过渡" "和缓动,可以使用 [constant Tween.EASE_IN_OUT] 配合尝试不同的 [enum Tween." "TransitionType],然后选用看上去最好的那种。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "tween_cheatsheet.png]补间缓动与过渡类型速查表[/url]\n" "[b]注意:[/b]所有 [SceneTreeTween] 都默认会自动启动。如果要阻止某个 " "[SceneTreeTween] 自动启动,你可以在创建后立即调用 [method stop]。" #: doc/classes/SceneTreeTween.xml msgid "" "Binds this [SceneTreeTween] with the given [code]node[/code]. " "[SceneTreeTween]s are processed directly by the [SceneTree], so they run " "independently of the animated nodes. When you bind a [Node] with the " "[SceneTreeTween], the [SceneTreeTween] will halt the animation when the " "object is not inside tree and the [SceneTreeTween] will be automatically " "killed when the bound object is freed. Also [constant TWEEN_PAUSE_BOUND] " "will make the pausing behavior dependent on the bound node.\n" "For a shorter way to create and bind a [SceneTreeTween], you can use [method " "Node.create_tween]." msgstr "" "将这个 [SceneTreeTween] 绑定到给定的 [code]node[/code] 上。[SceneTreeTween] " "是由 [SceneTree] 直接处理的,所以不依赖被动画的节点运行。将该 " "[SceneTreeTween] 绑定到某个 [Node] 后,该对象不在树中时该 [SceneTreeTween] 就" "会暂停动画,绑定对象被释放时该 [SceneTreeTween] 会被自动销毁。另外," "[constant TWEEN_PAUSE_BOUND] 会让暂停行为依赖于绑定的节点。\n" "使用 [method Node.create_tween] 来创建并绑定 [SceneTreeTween] 更简单。" #: doc/classes/SceneTreeTween.xml msgid "" "Used to chain two [Tweener]s after [method set_parallel] is called with " "[code]true[/code].\n" "[codeblock]\n" "var tween = create_tween().set_parallel(true)\n" "tween.tween_property(...)\n" "tween.tween_property(...) # Will run parallelly with above.\n" "tween.chain().tween_property(...) # Will run after two above are finished.\n" "[/codeblock]" msgstr "" "用于在使用 [code]true[/code] 调用 [method set_parallel] 后,将两个 [Tweener] " "串联。\n" "[codeblock]\n" "var tween = create_tween().set_parallel(true)\n" "tween.tween_property(...)\n" "tween.tween_property(...) # 会和上一条并行执行。\n" "tween.chain().tween_property(...) # 会在前两条完成后执行。\n" "[/codeblock]" #: doc/classes/SceneTreeTween.xml msgid "" "Processes the [SceneTreeTween] by given [code]delta[/code] value, in " "seconds. Mostly useful when the [SceneTreeTween] is paused, for controlling " "it manually. Can also be used to end the [SceneTreeTween] animation " "immediately, by using [code]delta[/code] longer than the whole duration.\n" "Returns [code]true[/code] if the [SceneTreeTween] still has [Tweener]s that " "haven't finished.\n" "[b]Note:[/b] The [SceneTreeTween] will become invalid after finished, but " "you can call [method stop] after the step, to keep it and reset." msgstr "" "使用给定的增量秒数 [code]delta[/code] 处理该 [SceneTreeTween]。最常见的用法是" "在该 [SceneTreeTween] 暂停时对其进行手动控制。也可用于立即停止该 " "[SceneTreeTween] 的动画,使用比完整长度更大的 [code]delta[/code] 即可。\n" "如果该 [SceneTreeTween] 仍然有未完成的 [Tweener],则返回 [code]true[/" "code]。\n" "[b]注意:[/b]该 [SceneTreeTween] 在完成后会失效,但你可以在 step 后调用 " "[method stop] 将其保留并重置。" #: doc/classes/SceneTreeTween.xml msgid "" "Returns the total time in seconds the [SceneTreeTween] has been animating (i." "e. time since it started, not counting pauses etc.). The time is affected by " "[method set_speed_scale] and [method stop] will reset it to [code]0[/code].\n" "[b]Note:[/b] As it results from accumulating frame deltas, the time returned " "after the [SceneTreeTween] has finished animating will be slightly greater " "than the actual [SceneTreeTween] duration." msgstr "" "返回该 [SceneTreeTween] 已进行动画的总时长(即自开始以来经过的时间,不计算暂" "停等时间),单位为秒。时长会受到 [method set_speed_scale] 影响,[method " "stop] 会将其重置为 [code]0[/code]。\n" "[b]注意:[/b]由于时长是由帧的增量时间累计而来的,该 [SceneTreeTween] 完成动画" "后所返回的时长会比 [SceneTreeTween] 的实际时长略大。" #: doc/classes/SceneTreeTween.xml msgid "" "This method can be used for manual interpolation of a value, when you don't " "want [SceneTreeTween] to do animating for you. It's similar to [method " "@GDScript.lerp], but with support for custom transition and easing.\n" "[code]initial_value[/code] is the starting value of the interpolation.\n" "[code]delta_value[/code] is the change of the value in the interpolation, i." "e. it's equal to [code]final_value - initial_value[/code].\n" "[code]elapsed_time[/code] is the time in seconds that passed after the " "interpolation started and it's used to control the position of the " "interpolation. E.g. when it's equal to half of the [code]duration[/code], " "the interpolated value will be halfway between initial and final values. " "This value can also be greater than [code]duration[/code] or lower than 0, " "which will extrapolate the value.\n" "[code]duration[/code] is the total time of the interpolation.\n" "[b]Note:[/b] If [code]duration[/code] is equal to [code]0[/code], the method " "will always return the final value, regardless of [code]elapsed_time[/code] " "provided." msgstr "" "不想使用 [SceneTreeTween] 进行动画时,可以使用这个方法进行手动插值。与 " "[method @GDScript.lerp] 类似,但支持自定义过渡和缓动。\n" "[code]initial_value[/code] 为插值的起始值。\n" "[code]delta_value[/code] 为插值的变化值,即等于 [code]final_value - " "initial_value[/code]。\n" "[code]elapsed_time[/code] 为插值开始后所经过的秒数,用于控制插值的位置。例" "如,等于 [code]duration[/code] 的一半时,插值后的值位于初始值和最终值的一半。" "这个值也可以比 [code]duration[/code] 大或者比 0 小,此时会进行外插。\n" "[code]duration[/code] 为插值的总时长。\n" "[b]注意:[/b]如果 [code]duration[/code] 等于 [code]0[/code],那么无论提供的 " "[code]elapsed_time[/code] 为多少,该方法返回的始终是最终值。" #: doc/classes/SceneTreeTween.xml msgid "" "Returns whether the [SceneTreeTween] is currently running, i.e. it wasn't " "paused and it's not finished." msgstr "返回该 [SceneTreeTween] 目前是否正在执行,即未暂停且未完成。" #: doc/classes/SceneTreeTween.xml msgid "" "Returns whether the [SceneTreeTween] is valid. A valid [SceneTreeTween] is a " "[SceneTreeTween] contained by the scene tree (i.e. the array from [method " "SceneTree.get_processed_tweens] will contain this [SceneTreeTween]). " "[SceneTreeTween] might become invalid when it has finished tweening or was " "killed, also when created with [code]Tween.new()[/code]. Invalid " "[SceneTreeTween] can't have [Tweener]s appended, because it can't animate " "them. You can however still use [method interpolate_value]." msgstr "" "返回该 [SceneTreeTween] 是否有效。有效的 [SceneTreeTween] 是由场景树包含的 " "[SceneTreeTween](即 [method SceneTree.get_processed_tweens] 返回的数组中包含" "这个 [SceneTreeTween])。[SceneTreeTween] 失效的情况有:补间完成、被销毁、使" "用 [code]Tween.new()[/code] 创建。无效的 [SceneTreeTween] 不能追加 " "[Tweener],因为无法进行动画。不过 [method interpolate_value] 还是可以使用的。" #: doc/classes/SceneTreeTween.xml msgid "Aborts all tweening operations and invalidates the [SceneTreeTween]." msgstr "终止所有补间操作并将该 [SceneTreeTween] 置为无效。" #: doc/classes/SceneTreeTween.xml msgid "" "Makes the next [Tweener] run parallelly to the previous one. Example:\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_property(...)\n" "tween.parallel().tween_property(...)\n" "tween.parallel().tween_property(...)\n" "[/codeblock]\n" "All [Tweener]s in the example will run at the same time.\n" "You can make the [SceneTreeTween] parallel by default by using [method " "set_parallel]." msgstr "" "让下一个 [Tweener] 与上一个并行执行。示例:\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_property(...)\n" "tween.parallel().tween_property(...)\n" "tween.parallel().tween_property(...)\n" "[/codeblock]\n" "该示例中的所有 [Tweener] 都会同时执行。\n" "你可以通过使用 [method set_parallel] 让该 [SceneTreeTween] 默认并行。" #: doc/classes/SceneTreeTween.xml msgid "" "Pauses the tweening. The animation can be resumed by using [method play]." msgstr "暂停补间。可以使用 [method play] 恢复动画。" #: doc/classes/SceneTreeTween.xml msgid "Resumes a paused or stopped [SceneTreeTween]." msgstr "恢复暂停或停止的 [SceneTreeTween]。" #: doc/classes/SceneTreeTween.xml msgid "" "Sets the default ease type for [PropertyTweener]s and [MethodTweener]s " "animated by this [SceneTreeTween]." msgstr "" "设置由这个 [SceneTreeTween] 进行动画的 [PropertyTweener] 和 [MethodTweener] " "的默认缓动类型。" #: doc/classes/SceneTreeTween.xml msgid "" "Sets the number of times the tweening sequence will be repeated, i.e. " "[code]set_loops(2)[/code] will run the animation twice.\n" "Calling this method without arguments will make the [SceneTreeTween] run " "infinitely, until it is either killed by [method kill] or by freeing bound " "node, or all the animated objects have been freed (which makes further " "animation impossible).\n" "[b]Warning:[/b] Make sure to always add some duration/delay when using " "infinite loops. 0-duration looped animations (e.g. single [CallbackTweener] " "with no delay or [PropertyTweener] with invalid node) are equivalent to " "infinite [code]while[/code] loops and will freeze your game. If a " "[SceneTreeTween]'s lifetime depends on some node, always use [method " "bind_node]." msgstr "" "这只该补间序列的重复次数,即 [code]set_loops(2)[/code] 会让动画执行两次。\n" "调用这个方法时如果不带参数,那么该 [SceneTreeTween] 会无限执行,直到被 " "[method kill] 销毁、绑定节点被释放、或者所有进行动画的对象都被释放(无法再进" "行任何动画)。\n" "[b]警告:[/b]使用无限循环时请一定要加入一些时长/延迟。0 时长的循环动画(例如" "单个不带延迟的 [CallbackTweener] 或者节点无效的 [PropertyTweener])和无限 " "[code]while[/code] 循环是一样的,会导致游戏冻结。如果 [SceneTreeTween] 的生命" "期依赖于某个节点,请一定使用 [method bind_node]。" #: doc/classes/SceneTreeTween.xml msgid "" "If [code]parallel[/code] is [code]true[/code], the [Tweener]s appended after " "this method will by default run simultaneously, as opposed to sequentially." msgstr "" "如果 [code]parallel[/code] 为 [code]true[/code],那么在这个方法之后追加的 " "[Tweener] 将默认同时执行,而不是顺序执行。" #: doc/classes/SceneTreeTween.xml msgid "" "Determines the behavior of the [SceneTreeTween] when the [SceneTree] is " "paused. Check [enum TweenPauseMode] for options.\n" "Default value is [constant TWEEN_PAUSE_BOUND]." msgstr "" "决定该 [SceneTreeTween] 在 [SceneTree] 暂停时的行为。可选项请查看 [enum " "TweenPauseMode]。\n" "默认值为 [constant TWEEN_PAUSE_BOUND]。" #: doc/classes/SceneTreeTween.xml msgid "" "Determines whether the [SceneTreeTween] should run during idle frame (see " "[method Node._process]) or physics frame (see [method Node." "_physics_process].\n" "Default value is [constant Tween.TWEEN_PROCESS_IDLE]." msgstr "" "决定该 [SceneTreeTween] 应当在空闲帧(见 [method Node._process])还是物理帧" "(见 [method Node._physics_process])执行。\n" "默认值为 [constant Tween.TWEEN_PROCESS_IDLE]。" #: doc/classes/SceneTreeTween.xml msgid "" "Scales the speed of tweening. This affects all [Tweener]s and their delays." msgstr "补间的速度缩放。影响所有 [Tweener] 及其延迟。" #: doc/classes/SceneTreeTween.xml msgid "" "Sets the default transition type for [PropertyTweener]s and [MethodTweener]s " "animated by this [SceneTreeTween]." msgstr "" "设置由这个 [SceneTreeTween] 进行动画的 [PropertyTweener] 和 [MethodTweener] " "的默认过渡类型。" #: doc/classes/SceneTreeTween.xml msgid "" "Stops the tweening and resets the [SceneTreeTween] to its initial state. " "This will not remove any appended [Tweener]s." msgstr "" "停止补间,并将该 [SceneTreeTween] 重置为初始状态。不会移除已追加的 " "[Tweener]。" #: doc/classes/SceneTreeTween.xml msgid "" "Creates and appends a [CallbackTweener]. This method can be used to call an " "arbitrary method in any object. Use [code]binds[/code] to bind additional " "arguments for the call.\n" "Example: object that keeps shooting every 1 second.\n" "[codeblock]\n" "var tween = get_tree().create_tween().set_loops()\n" "tween.tween_callback(self, \"shoot\").set_delay(1)\n" "[/codeblock]\n" "Example: turning a sprite red and then blue, with 2 second delay.\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_callback($Sprite, \"set_modulate\", [Color.red]).set_delay(2)\n" "tween.tween_callback($Sprite, \"set_modulate\", [Color.blue]).set_delay(2)\n" "[/codeblock]" msgstr "" "创建并追加一个 [CallbackTweener]。这个方法可用于调用任意对象的任意方法。请使" "用 [code]binds[/code] 绑定额外的调用参数。\n" "示例:总是每隔 1 秒射击一次的对象。\n" "[codeblock]\n" "var tween = get_tree().create_tween().set_loops()\n" "tween.tween_callback(self, \"shoot\").set_delay(1)\n" "[/codeblock]\n" "示例:将精灵变红然后变蓝,带有 2 秒延迟。\n" "[codeblock]\n" "var tween = get_tree().create_tween()\n" "tween.tween_callback($Sprite, \"set_modulate\", [Color.red]).set_delay(2)\n" "tween.tween_callback($Sprite, \"set_modulate\", [Color.blue]).set_delay(2)\n" "[/codeblock]" #: doc/classes/SceneTreeTween.xml msgid "" "Creates and appends an [IntervalTweener]. This method can be used to create " "delays in the tween animation, as an alternative for using the delay in " "other [Tweener]s or when there's no animation (in which case the " "[SceneTreeTween] acts as a timer). [code]time[/code] is the length of the " "interval, in seconds.\n" "Example: creating an interval in code execution.\n" "[codeblock]\n" "# ... some code\n" "yield(create_tween().tween_interval(2), \"finished\")\n" "# ... more code\n" "[/codeblock]\n" "Example: creating an object that moves back and forth and jumps every few " "seconds.\n" "[codeblock]\n" "var tween = create_tween().set_loops()\n" "tween.tween_property($Sprite, \"position:x\", 200.0, 1).as_relative()\n" "tween.tween_callback(self, \"jump\")\n" "tween.tween_interval(2)\n" "tween.tween_property($Sprite, \"position:x\", -200.0, 1).as_relative()\n" "tween.tween_callback(self, \"jump\")\n" "tween.tween_interval(2)\n" "[/codeblock]" msgstr "" "创建并追加一个 [IntervalTweener]。这个方法可用于在补间动画中创建延迟,可以替" "代在其他 [Tweener] 中使用延迟,或无动画的情况(此时 [SceneTreeTween] 充当计时" "器的角色)。[code]time[/code] 为间隔时间,单位为秒。\n" "示例:创建代码执行的间隔。\n" "[codeblock]\n" "# ... 一些代码\n" "yield(create_tween().tween_interval(2), \"finished\")\n" "# ... 更多代码\n" "[/codeblock]\n" "示例:创建每隔几秒就来回移动并跳跃的对象。\n" "[codeblock]\n" "var tween = create_tween().set_loops()\n" "tween.tween_property($Sprite, \"position:x\", 200.0, 1).as_relative()\n" "tween.tween_callback(self, \"jump\")\n" "tween.tween_interval(2)\n" "tween.tween_property($Sprite, \"position:x\", -200.0, 1).as_relative()\n" "tween.tween_callback(self, \"jump\")\n" "tween.tween_interval(2)\n" "[/codeblock]" #: doc/classes/SceneTreeTween.xml msgid "" "Creates and appends a [MethodTweener]. This method is similar to a " "combination of [method tween_callback] and [method tween_property]. It calls " "a method over time with a tweened value provided as an argument. The value " "is tweened between [code]from[/code] and [code]to[/code] over the time " "specified by [code]duration[/code], in seconds. Use [code]binds[/code] to " "bind additional arguments for the call. You can use [method MethodTweener." "set_ease] and [method MethodTweener.set_trans] to tweak the easing and " "transition of the value or [method MethodTweener.set_delay] to delay the " "tweening.\n" "Example: making a 3D object look from one point to another point.\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_method(self, \"look_at\", Vector3(-1, 0, -1), Vector3(1, 0, -1), " "1, [Vector3.UP]) # The look_at() method takes up vector as second argument.\n" "[/codeblock]\n" "Example: setting a text of a [Label], using an intermediate method and after " "a delay.\n" "[codeblock]\n" "func _ready():\n" " var tween = create_tween()\n" " tween.tween_method(self, \"set_label_text\", 0, 10, 1).set_delay(1)\n" "\n" "func set_label_text(value: int):\n" " $Label.text = \"Counting \" + str(value)\n" "[/codeblock]" msgstr "" "创建并追加一个 [MethodTweener]。这个方法与 [method tween_callback] 和 " "[method tween_property] 的组合类似,会使用补间后的值作为参数去持续调用某个方" "法。该值是从 [code]from[/code] 到 [code]to[/code] 进行补间的,时长为 " "[code]duration[/code] 秒。请使用 [code]binds[/code] 绑定额外的调用参数。你可" "以使用 [method MethodTweener.set_ease] 和 [method MethodTweener.set_trans] 来" "调整该值的缓动和过渡,可以使用 [method MethodTweener.set_delay] 来延迟补" "间。\n" "示例:让 3D 对象面向另一个点。\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_method(self, \"look_at\", Vector3(-1, 0, -1), Vector3(1, 0, -1), " "1, [Vector3.UP]) # look_at() 方法的第二个参数接受的是上向量。\n" "[/codeblock]\n" "示例:在一段延迟后,使用中间方法来设置 [Label] 的文本。\n" "[codeblock]\n" "func _ready():\n" " var tween = create_tween()\n" " tween.tween_method(self, \"set_label_text\", 0, 10, 1).set_delay(1)\n" "\n" "func set_label_text(value: int):\n" " $Label.text = \"Counting \" + str(value)\n" "[/codeblock]" #: doc/classes/SceneTreeTween.xml msgid "" "Creates and appends a [PropertyTweener]. This method tweens a " "[code]property[/code] of an [code]object[/code] between an initial value and " "[code]final_val[/code] in a span of time equal to [code]duration[/code], in " "seconds. The initial value by default is a value at the time the tweening of " "the [PropertyTweener] start. For example:\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_property($Sprite, \"position\", Vector2(100, 200), 1)\n" "tween.tween_property($Sprite, \"position\", Vector2(200, 300), 1)\n" "[/codeblock]\n" "will move the sprite to position (100, 200) and then to (200, 300). If you " "use [method PropertyTweener.from] or [method PropertyTweener.from_current], " "the starting position will be overwritten by the given value instead. See " "other methods in [PropertyTweener] to see how the tweening can be tweaked " "further.\n" "[b]Note:[/b] You can find the correct property name by hovering over the " "property in the Inspector. You can also provide the components of a property " "directly by using [code]\"property:component\"[/code] (eg. [code]position:x[/" "code]), where it would only apply to that particular component.\n" "Example: moving object twice from the same position, with different " "transition types.\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_property($Sprite, \"position\", Vector2.RIGHT * 300, 1)." "as_relative().set_trans(Tween.TRANS_SINE)\n" "tween.tween_property($Sprite, \"position\", Vector2.RIGHT * 300, 1)." "as_relative().from_current().set_trans(Tween.TRANS_EXPO)\n" "[/codeblock]" msgstr "" "创建并追加一个 [PropertyTweener]。这个方法会将 [code]object[/code] 对象的 " "[code]property[/code] 属性在初始值和最终值 [code]final_val[/code] 之间进行补" "间,持续时间为 [code]duration[/code] 秒。初始值默认为该 [PropertyTweener] 启" "动时的值。例如:\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_property($Sprite, \"position\", Vector2(100, 200), 1)\n" "tween.tween_property($Sprite, \"position\", Vector2(200, 300), 1)\n" "[/codeblock]\n" "会将该精灵移动到 (100, 200) 然后再移动到 (200, 300)。如果你使用了 [method " "PropertyTweener.from] 或 [method PropertyTweener.from_current],那么起始位置" "就会被给定的值所覆盖。更多调整项请参阅 [PropertyTweener] 中的其他方法。\n" "[b]注意:[/b]鼠标悬停在检查器中的属性上即可查看正确的属性名称。你还可以用 " "[code]\"属性:组件\"[/code] 的形式提供属性中的组件(例如 [code]position:x[/" "code]),这样就只会修改这个特定的组件。\n" "示例:使用不同的过渡类型从同一位置开始移动两次。\n" "[codeblock]\n" "var tween = create_tween()\n" "tween.tween_property($Sprite, \"position\", Vector2.RIGHT * 300, 1)." "as_relative().set_trans(Tween.TRANS_SINE)\n" "tween.tween_property($Sprite, \"position\", Vector2.RIGHT * 300, 1)." "as_relative().from_current().set_trans(Tween.TRANS_EXPO)\n" "[/codeblock]" #: doc/classes/SceneTreeTween.xml msgid "" "Emitted when the [SceneTreeTween] has finished all tweening. Never emitted " "when the [SceneTreeTween] is set to infinite looping (see [method " "set_loops]).\n" "[b]Note:[/b] The [SceneTreeTween] is removed (invalidated) after this signal " "is emitted, but it doesn't happen immediately, but on the next processing " "frame. Calling [method stop] inside the signal callback will preserve the " "[SceneTreeTween]." msgstr "" "在该 [SceneTreeTween] 完成所有补间时触发。该 [SceneTreeTween] 被设为无限循环" "时不会触发(见 [method set_loops])。\n" "[b]注意:[/b]触发这个信号后,该 [SceneTreeTween] 会被移除(置为无效),但不是" "立即发生的,而是在下一个处理帧中发生。在该信号的回调中调用 [method stop] 会保" "留该 [SceneTreeTween]。" #: doc/classes/SceneTreeTween.xml msgid "" "Emitted when a full loop is complete (see [method set_loops]), providing the " "loop index. This signal is not emitted after final loop, use [signal " "finished] instead for this case." msgstr "" "完成一次循环时触发(见 [method set_loops]),会提供该循环的索引号。这个信号不" "会在最后一次循环后触发,这种情况请使用 [signal finished] 代替。" #: doc/classes/SceneTreeTween.xml msgid "" "Emitted when one step of the [SceneTreeTween] is complete, providing the " "step index. One step is either a single [Tweener] or a group of [Tweener]s " "running parallelly." msgstr "" "完成该 [SceneTreeTween] 的一步完成后触发,会提供这一步的索引号。一步指的是单" "个 [Tweener] 或一组并行执行的 [Tweener]。" #: doc/classes/SceneTreeTween.xml msgid "" "If the [SceneTreeTween] has a bound node, it will process when that node can " "process (see [member Node.pause_mode]). Otherwise it's the same as [constant " "TWEEN_PAUSE_STOP]." msgstr "" "如果该 [SceneTreeTween] 绑定了节点,会在该节点能够处理时进行处理(见 [member " "Node.pause_mode])。否则与 [constant TWEEN_PAUSE_STOP] 相同。" #: doc/classes/SceneTreeTween.xml msgid "If [SceneTree] is paused, the [SceneTreeTween] will also pause." msgstr "如果 [SceneTree] 暂停了,则该 [SceneTreeTween] 也会暂停。" #: doc/classes/SceneTreeTween.xml msgid "" "The [SceneTreeTween] will process regardless of whether [SceneTree] is " "paused." msgstr "无论 [SceneTree] 是否暂停,该 [SceneTreeTween] 都会进行处理。" #: doc/classes/Script.xml msgid "A class stored as a resource." msgstr "作为资源存储的类。" #: doc/classes/Script.xml msgid "" "A class stored as a resource. A script extends the functionality of all " "objects that instance it.\n" "The [code]new[/code] method of a script subclass creates a new instance. " "[method Object.set_script] extends an existing object, if that object's " "class matches one of the script's base classes." msgstr "" "作为资源存储的类。脚本可以扩展所有以它为实例的对象的功能。\n" "脚本子类的 [code]new[/code] 方法会创建新的实例。如果一个现有的对象的类与脚本" "的基类之一相匹配,[method Object.set_script] 会扩展该对象。" #: doc/classes/Script.xml msgid "Returns [code]true[/code] if the script can be instanced." msgstr "如果脚本可以实例化,则返回 [code]true[/code]。" #: doc/classes/Script.xml msgid "Returns the script directly inherited by this script." msgstr "返回由该脚本直接继承的脚本。" #: doc/classes/Script.xml msgid "Returns the script's base type." msgstr "返回脚本的基类类型。" #: doc/classes/Script.xml msgid "Returns the default value of the specified property." msgstr "返回指定属性的默认值。" #: doc/classes/Script.xml msgid "Returns a dictionary containing constant names and their values." msgstr "返回一个包含常量名称及其值的字典。" #: doc/classes/Script.xml msgid "Returns the list of methods in this [Script]." msgstr "返回此 [Script] 中的方法列表。" #: doc/classes/Script.xml msgid "Returns the list of properties in this [Script]." msgstr "返回此 [Script] 中的属性列表。" #: doc/classes/Script.xml msgid "Returns the list of user signals defined in this [Script]." msgstr "返回在此 [Script] 中定义的用户信号列表。" #: doc/classes/Script.xml msgid "" "Returns [code]true[/code] if the script, or a base class, defines a signal " "with the given name." msgstr "如果脚本或基类定义了具有给定名称的信号,则返回 [code]true[/code]。" #: doc/classes/Script.xml msgid "Returns [code]true[/code] if the script contains non-empty source code." msgstr "如果脚本包含非空源代码,则返回 [code]true[/code]。" #: doc/classes/Script.xml msgid "" "Returns [code]true[/code] if [code]base_object[/code] is an instance of this " "script." msgstr "" "如果 [code]base_object[/code] 是此脚本的实例,则返回 [code]true[/code]。" #: doc/classes/Script.xml msgid "" "Returns [code]true[/code] if the script is a tool script. A tool script can " "run in the editor." msgstr "" "如果脚本是工具脚本,则返回 [code]true[/code]。工具脚本可以在编辑器中运行。" #: doc/classes/Script.xml msgid "Reloads the script's class implementation. Returns an error code." msgstr "重新加载脚本的类的实现。返回一个错误代码。" #: doc/classes/Script.xml msgid "" "The script source code or an empty string if source code is not available. " "When set, does not reload the class implementation automatically." msgstr "" "脚本的源代码,如果源代码不可用,则为空字符串。当设置时,不会自动重新加载类的" "实现。" #: doc/classes/ScriptCreateDialog.xml msgid "The Editor's popup dialog for creating new [Script] files." msgstr "用于创建新 [Script] 文件的编辑器弹出对话框。" #: doc/classes/ScriptCreateDialog.xml msgid "" "The [ScriptCreateDialog] creates script files according to a given template " "for a given scripting language. The standard use is to configure its fields " "prior to calling one of the [method Popup.popup] methods.\n" "[codeblock]\n" "func _ready():\n" " dialog.config(\"Node\", \"res://new_node.gd\") # For in-engine types\n" " dialog.config(\"\\\"res://base_node.gd\\\"\", \"res://derived_node.gd\") " "# For script types\n" " dialog.popup_centered()\n" "[/codeblock]" msgstr "" "[ScriptCreateDialog] 根据指定脚本语言的特定模板创建脚本文件。标准用法是在类似" "调用 [method Popup.popup] 方法之前配置其字段。\n" "[codeblock]\n" "func _ready():\n" " dialog.config(\"Node\", \"res://new_node.gd\") # For in-engine types\n" " dialog.config(\"\\\"res://base_node.gd\\\"\", \"res://derived_node.gd\") " "# For script types\n" " dialog.popup_centered()\n" "[/codeblock]" #: doc/classes/ScriptCreateDialog.xml msgid "Prefills required fields to configure the ScriptCreateDialog for use." msgstr "预填必填字段以配置 ScriptCreateDialog 以供使用。" #: doc/classes/ScriptCreateDialog.xml msgid "Emitted when the user clicks the OK button." msgstr "当用户点击OK按钮时发出。" #: doc/classes/ScriptEditor.xml msgid "Godot editor's script editor." msgstr "Godot编辑器的脚本编辑器。" #: doc/classes/ScriptEditor.xml msgid "" "[b]Note:[/b] This class shouldn't be instantiated directly. Instead, access " "the singleton using [method EditorInterface.get_script_editor]." msgstr "" "[b]注意:[/b]这个类不应该被直接实例化。相反,使用[method EditorInterface." "get_script_editor]来访问这个单例。" #: doc/classes/ScriptEditor.xml msgid "Returns a [Script] that is currently active in editor." msgstr "返回当前在编辑器中处于活动状态的 [Script]。" #: doc/classes/ScriptEditor.xml msgid "" "Returns an array with all [Script] objects which are currently open in " "editor." msgstr "返回一个包含当前在编辑器中打开的所有 [Script] 对象的数组。" #: doc/classes/ScriptEditor.xml msgid "Goes to the specified line in the current script." msgstr "转到当前脚本中的指定行。" #: doc/classes/ScriptEditor.xml msgid "" "Opens the script create dialog. The script will extend [code]base_name[/" "code]. The file extension can be omitted from [code]base_path[/code]. It " "will be added based on the selected scripting language." msgstr "" "打开创建脚本的对话框。脚本将扩展[code]base_name[/code]。文件扩展名可以从" "[code]base_path[/code]中省略。它将根据所选择的脚本语言添加。" #: doc/classes/ScriptEditor.xml msgid "" "Reload all currently opened scripts from disk in case the file contents are " "newer." msgstr "从磁盘重新加载所有当前打开的脚本,假设文件内容更新。" #: doc/classes/ScriptEditor.xml msgid "" "Emitted when user changed active script. Argument is a freshly activated " "[Script]." msgstr "当用户更改活动脚本时发出。参数是新激活的 [Script]。" #: doc/classes/ScriptEditor.xml msgid "" "Emitted when editor is about to close the active script. Argument is a " "[Script] that is going to be closed." msgstr "当编辑器即将关闭活动脚本时发出。参数是将要关闭的 [Script]。" #: doc/classes/ScrollBar.xml msgid "Base class for scroll bars." msgstr "滚动条的基类。" #: doc/classes/ScrollBar.xml msgid "" "Scrollbars are a [Range]-based [Control], that display a draggable area (the " "size of the page). Horizontal ([HScrollBar]) and Vertical ([VScrollBar]) " "versions are available." msgstr "" "滚动条是基于 [Range] 的 [Control],显示可拖动区域(页面大小)。提供水平 " "([HScrollBar]) 和垂直 ([VScrollBar]) 版本。" #: doc/classes/ScrollBar.xml msgid "" "Overrides the step used when clicking increment and decrement buttons or " "when using arrow keys when the [ScrollBar] is focused." msgstr "" "覆盖 在按下增和减按钮时或在 [ScrollBar] 已获得焦点且使用箭头键时 的步长。" #: doc/classes/ScrollBar.xml msgid "Emitted when the scrollbar is being scrolled." msgstr "当滚动条滚动时发出。" #: doc/classes/ScrollContainer.xml msgid "A helper node for displaying scrollable elements such as lists." msgstr "用于显示可滚动元素(例如列表)的辅助节点。" #: doc/classes/ScrollContainer.xml msgid "" "A ScrollContainer node meant to contain a [Control] child. ScrollContainers " "will automatically create a scrollbar child ([HScrollBar], [VScrollBar], or " "both) when needed and will only draw the Control within the ScrollContainer " "area. Scrollbars will automatically be drawn at the right (for vertical) or " "bottom (for horizontal) and will enable dragging to move the viewable " "Control (and its children) within the ScrollContainer. Scrollbars will also " "automatically resize the grabber based on the [member Control.rect_min_size] " "of the Control relative to the ScrollContainer. Works great with a [Panel] " "control. You can set [code]EXPAND[/code] on the children's size flags, so " "they will upscale to the ScrollContainer's size if it's larger (scroll is " "invisible for the chosen dimension)." msgstr "" "滚动容器节点,用于包含 [Control] 子节点。 滚动容器将在需要时自动创建滚动条子" "项([HScrollBar]、[VScrollBar] 或两者),且仅在滚动容器区域内绘制控件。滚动条" "将自动绘制在右侧或底部,即垂直或水平,并允许拖动以在滚动容器内移动可视控件及" "其子项。滚动条还将根据控件相对于滚动容器的 [member Control.rect_min_size] 自" "动调整抓取器的大小。与 [Panel] 控件配合使用效果很好。您可以将子项的大小标志设" "置为 [code]EXPAND[/code],当滚动容器的大小更大(滚动对于所选维度不可见),它" "们将放大到滚动容器的大小。" #: doc/classes/ScrollContainer.xml msgid "" "Ensures the given [code]control[/code] is visible (must be a direct or " "indirect child of the ScrollContainer). Used by [member follow_focus].\n" "[b]Note:[/b] This will not work on a node that was just added during the " "same frame. If you want to scroll to a newly added child, you must wait " "until the next frame using [signal SceneTree.idle_frame]:\n" "[codeblock]\n" "add_child(child_node)\n" "yield(get_tree(), \"idle_frame\")\n" "ensure_control_visible(child_node)\n" "[/codeblock]" msgstr "" "保证给定的 [code]control[/code] 控件可见(必须是 ScrollContainer 的直接或间接" "子节点)。会被 [member follow_focus] 使用。\n" "[b]注意:[/b]在同一帧内刚被加入的节点上无效。如果你希望滚动至新加的子节点,就" "必须使用 [signal SceneTree.idle_frame] 等待至下一帧:\n" "[codeblock]\n" "add_child(child_node)\n" "yield(get_tree(), \"idle_frame\")\n" "ensure_control_visible(child_node)\n" "[/codeblock]" #: doc/classes/ScrollContainer.xml msgid "" "Returns the horizontal scrollbar [HScrollBar] of this [ScrollContainer].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to disable the horizontal scrollbar, use " "[member scroll_horizontal_enabled]. If you want to only hide it instead, use " "its [member CanvasItem.visible] property." msgstr "" "返回此 [ScrollContainer] 的水平滚动条 [HScrollBar]。\n" "[b]警告:[/b]这是一个必须的内部节点,移除和释放它可能会导致崩溃。如果你想禁用" "水平滚动条,请使用 [member scroll_horizontal_enabled]。如果你只想隐藏它,则使" "用其 [member CanvasItem.visible] 属性。" #: doc/classes/ScrollContainer.xml msgid "" "Returns the vertical scrollbar [VScrollBar] of this [ScrollContainer].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to disable the vertical scrollbar, use " "[member scroll_vertical_enabled]. If you want to only hide it instead, use " "its [member CanvasItem.visible] property." msgstr "" "返回此 [ScrollContainer] 的垂直滚动条 [VScrollBar]。\n" "[b]警告:[/b]这是一个必需的内部节点,移除和释放它可能会导致崩溃。如果你想禁用" "垂直滚动条,请使用 [member scroll_vertical_enabled]。如果你只想隐藏它,则使用" "其 [member CanvasItem.visible] 属性。" #: doc/classes/ScrollContainer.xml msgid "" "If [code]true[/code], the ScrollContainer will automatically scroll to " "focused children (including indirect children) to make sure they are fully " "visible." msgstr "" "如果 [code]true[/code],则 ScrollContainer 将自动滚动到获得焦点的子项(包括间" "接子项)以确保它们完全可见。" #: doc/classes/ScrollContainer.xml msgid "The current horizontal scroll value." msgstr "当前水平滚动值。" #: doc/classes/ScrollContainer.xml msgid "If [code]true[/code], enables horizontal scrolling." msgstr "如果 [code]true[/code],启用水平滚动。" #: doc/classes/ScrollContainer.xml msgid "The current vertical scroll value." msgstr "当前垂直滚动值。" #: doc/classes/ScrollContainer.xml msgid "If [code]true[/code], enables vertical scrolling." msgstr "如果 [code]true[/code],则启用垂直滚动。" #: doc/classes/ScrollContainer.xml msgid "Emitted when scrolling stops." msgstr "滚动停止时发出。" #: doc/classes/ScrollContainer.xml msgid "Emitted when scrolling is started." msgstr "滚动开始时发出。" #: doc/classes/ScrollContainer.xml msgid "The background [StyleBox] of the [ScrollContainer]." msgstr "[ScrollContainer] 的背景 [StyleBox]。" #: doc/classes/SegmentShape2D.xml msgid "Segment shape for 2D collisions." msgstr "2D 碰撞的分段形状。" #: doc/classes/SegmentShape2D.xml msgid "" "Segment shape for 2D collisions. Consists of two points, [code]a[/code] and " "[code]b[/code]." msgstr "2D 碰撞的分段形状。由[code]a[/code] 和 [code]b[/code]两点组成。" #: doc/classes/SegmentShape2D.xml msgid "The segment's first point position." msgstr "该段的第一点的位置。" #: doc/classes/SegmentShape2D.xml msgid "The segment's second point position." msgstr "该段的第二个点的位置。" #: doc/classes/Semaphore.xml msgid "A synchronization semaphore." msgstr "同步信号量。" #: doc/classes/Semaphore.xml msgid "" "A synchronization semaphore which can be used to synchronize multiple " "[Thread]s. Initialized to zero on creation. Be careful to avoid deadlocks. " "For a binary version, see [Mutex]." msgstr "" "可用于同步多个 [Thread] 的同步信号量。创建时初始化为零。小心避免死锁。对于二" "进制版本,请参阅 [Mutex]。" #: doc/classes/Semaphore.xml msgid "" "Lowers the [Semaphore], allowing one more thread in.\n" "[b]Note:[/b] This method internals' can't possibly fail, but an error code " "is returned for backwards compatibility, which will always be [constant OK]." msgstr "" "减小 [Semaphore],允许再进入一个线程。\n" "[b]注意:[/b]这个方法内部是不可能失败的,返回错误码是为了向后兼容,始终为 " "[constant OK]。" #: doc/classes/Semaphore.xml msgid "" "Like [method wait], but won't block, so if the value is zero, fails " "immediately and returns [constant ERR_BUSY]. If non-zero, it returns " "[constant OK] to report success." msgstr "" "与 [method wait] 类似,但不会阻塞,所以如果值为零,则会立即失败并返回 " "[constant ERR_BUSY]。如果非零,则会返回 [constant OK],表示成功。" #: doc/classes/Semaphore.xml msgid "" "Waits for the [Semaphore], if its value is zero, blocks until non-zero.\n" "[b]Note:[/b] This method internals' can't possibly fail, but an error code " "is returned for backwards compatibility, which will always be [constant OK]." msgstr "" "等待该 [Semaphore],如果其值为零,则阻塞至非零。\n" "[b]注意:[/b]这个方法内部是不可能失败的,返回错误码是为了向后兼容,始终为 " "[constant OK]。" #: doc/classes/Separator.xml msgid "Base class for separators." msgstr "分离器的基类。" #: doc/classes/Separator.xml msgid "" "Separator is a [Control] used for separating other controls. It's purely a " "visual decoration. Horizontal ([HSeparator]) and Vertical ([VSeparator]) " "versions are available." msgstr "" "Separator 是一个用于分隔其他控件的[Control] 。它纯粹是一种视觉装饰。提供水平 " "([HSeparator]) 和垂直 ([VSeparator]) 版本。" #: doc/classes/Shader.xml msgid "A custom shader program." msgstr "自定义着色器程序。" #: doc/classes/Shader.xml msgid "" "This class allows you to define a custom shader program that can be used by " "a [ShaderMaterial]. Shaders allow you to write your own custom behavior for " "rendering objects or updating particle information. For a detailed " "explanation and usage, please see the tutorials linked below." msgstr "" "此类允许您定义一个 [ShaderMaterial] 可以使用的自定义着色器程序。着色器允许您" "编写自己的自定义行为来渲染对象或更新粒子信息。有关详细说明和用法,请参阅下面" "链接的教程。" #: doc/classes/Shader.xml msgid "" "Returns the texture that is set as default for the specified parameter.\n" "[b]Note:[/b] [code]param[/code] must match the name of the uniform in the " "code exactly." msgstr "" "返回被设置为指定参数的默认纹理。\n" "[b]注意:[/b][code]param[/code]必须与代码中的uniform名称完全匹配。" #: doc/classes/Shader.xml msgid "" "Returns the shader mode for the shader, either [constant MODE_CANVAS_ITEM], " "[constant MODE_SPATIAL] or [constant MODE_PARTICLES]." msgstr "" "返回着色器的着色器模式,[constant MODE_CANVAS_ITEM]、[constant MODE_SPATIAL] " "或 [constant MODE_PARTICLES]。" #: doc/classes/Shader.xml msgid "" "Returns [code]true[/code] if the shader has this param defined as a uniform " "in its code.\n" "[b]Note:[/b] [code]param[/code] must match the name of the uniform in the " "code exactly." msgstr "" "如果着色器在其代码中把这个参数定义为uniform,则返回 [code]true[/code]。\n" "[b]注意:[/b][code]param[/code] 必须与代码中的uniform名称完全匹配。" #: doc/classes/Shader.xml msgid "" "Sets the default texture to be used with a texture uniform. The default is " "used if a texture is not set in the [ShaderMaterial].\n" "[b]Note:[/b] [code]param[/code] must match the name of the uniform in the " "code exactly." msgstr "" "设置默认纹理,以用于纹理 uniform。如果 [ShaderMaterial] 中没有设置纹理,则使" "用默认值。\n" "[b]注意:[/b][code]param[/code] 必须与代码中的 uniform 名称完全匹配。" #: doc/classes/Shader.xml msgid "" "Returns the shader's code as the user has written it, not the full generated " "code used internally." msgstr "返回用户编写的着色器代码,而不是内部使用的完整生成代码。" #: doc/classes/Shader.xml msgid "" "Returns the shader's custom defines. Custom defines can be used in Godot to " "add GLSL preprocessor directives (e.g: extensions) required for the shader " "logic.\n" "[b]Note:[/b] Custom defines are not validated by the Godot shader parser, so " "care should be taken when using them." msgstr "" "返回该着色器的自定义。自定义可以在Godot中用于添加着色器逻辑所需的GLSL预处理指" "令(例如:扩展)。\n" "[b]注意:[/b]自定义没有经过Godot着色器解析器的验证,所以使用时要注意。" #: doc/classes/Shader.xml msgid "Mode used to draw all 3D objects." msgstr "用于绘制所有 3D 对象的模式。" #: doc/classes/Shader.xml msgid "Mode used to draw all 2D objects." msgstr "用于绘制所有 2D 对象的模式。" #: doc/classes/Shader.xml msgid "" "Mode used to calculate particle information on a per-particle basis. Not " "used for drawing." msgstr "用于基于每个粒子计算粒子信息的模式。不用于绘图。" #: doc/classes/ShaderMaterial.xml msgid "A material that uses a custom [Shader] program." msgstr "使用自定义 [Shader] 程序的材质。" #: doc/classes/ShaderMaterial.xml msgid "" "A material that uses a custom [Shader] program to render either items to " "screen or process particles. You can create multiple materials for the same " "shader but configure different values for the uniforms defined in the " "shader.\n" "[b]Note:[/b] Due to a renderer limitation, emissive [ShaderMaterial]s cannot " "emit light when used in a [GIProbe]. Only emissive [SpatialMaterial]s can " "emit light in a [GIProbe]." msgstr "" "使用自定义 [Shader] 程序渲染项目以筛选或处理粒子的材质。您可以为同一个着色器" "创建多种材质,但可以为着色器中定义的 uniform 配置不同的值。\n" "[b]注意:[/b]由于渲染器限制,在 [GIProbe] 中使用时,发光的 [ShaderMaterial] " "无法发光。只有发光的 [SpatialMaterial] 可以在 [GIProbe] 中发光。" #: doc/classes/ShaderMaterial.xml msgid "" "Returns the current value set for this material of a uniform in the shader." msgstr "返回在着色器中此uniform材质的当前值。" #: doc/classes/ShaderMaterial.xml msgid "" "Returns [code]true[/code] if the property identified by [code]name[/code] " "can be reverted to a default value." msgstr "" "如果由[code]name[/code]标识的属性可以恢复到默认值,则返回 [code]true[/code]。" #: doc/classes/ShaderMaterial.xml msgid "" "Returns the default value of the material property with given [code]name[/" "code]." msgstr "返回具有给定 [code]name[/code] 的材质属性的默认值。" #: doc/classes/ShaderMaterial.xml msgid "" "Changes the value set for this material of a uniform in the shader.\n" "[b]Note:[/b] [code]param[/code] must match the name of the uniform in the " "code exactly." msgstr "" "改变着色器中材质的uniform值。\n" "[b]注意:[/b][code]param[/code]必须与代码中的uniform名称完全匹配。" #: doc/classes/ShaderMaterial.xml msgid "The [Shader] program used to render this material." msgstr "用于渲染此材质的 [Shader] 程序。" #: doc/classes/Shape.xml msgid "Base class for all 3D shape resources." msgstr "所有 3D 形状资源的基类。" #: doc/classes/Shape.xml msgid "" "Base class for all 3D shape resources. Nodes that inherit from this can be " "used as shapes for a [PhysicsBody] or [Area] objects." msgstr "" "所有3D形状资源的基类。继承于此的节点可以作为[PhysicsBody]或[Area]对象的形状。" #: doc/classes/Shape.xml msgid "" "Returns the [ArrayMesh] used to draw the debug collision for this [Shape]." msgstr "返回用于绘制此[Shape]的调试碰撞的[ArrayMesh]。" #: doc/classes/Shape.xml msgid "" "The collision margin for the shape. Used in Bullet Physics only.\n" "Collision margins allow collision detection to be more efficient by adding " "an extra shell around shapes. Collision algorithms are more expensive when " "objects overlap by more than their margin, so a higher value for margins is " "better for performance, at the cost of accuracy around edges as it makes " "them less sharp." msgstr "" "形状的碰撞边距。只在Bullet物理运算中使用。\n" "碰撞边距允许通过在形状周围添加额外的外壳来使碰撞检测更有效。当物体重叠的部分" "超过其边距时,碰撞算法的成本会更高,所以边距的数值越高对性能越好,但代价是边" "缘的精度会降低。" #: doc/classes/Shape2D.xml msgid "Base class for all 2D shapes." msgstr "所有2D形状的基类。" #: doc/classes/Shape2D.xml msgid "Base class for all 2D shapes. All 2D shape types inherit from this." msgstr "所有2D形状的基类。所有的2D形状类型都继承于此。" #: doc/classes/Shape2D.xml msgid "" "Returns [code]true[/code] if this shape is colliding with another.\n" "This method needs the transformation matrix for this shape " "([code]local_xform[/code]), the shape to check collisions with " "([code]with_shape[/code]), and the transformation matrix of that shape " "([code]shape_xform[/code])." msgstr "" "如果这个形状与另一个形状发生碰撞,返回 [code]true[/code]。\n" "这个方法需要这个形状的变换矩阵([code]local_xform[/code]),要检查碰撞的形状" "([code]with_shape[/code]),以及那个形状的变换矩阵([code]shape_xform[/" "code])。" #: doc/classes/Shape2D.xml msgid "" "Returns a list of contact point pairs where this shape touches another.\n" "If there are no collisions, the returned list is empty. Otherwise, the " "returned list contains contact points arranged in pairs, with entries " "alternating between points on the boundary of this shape and points on the " "boundary of [code]with_shape[/code].\n" "A collision pair A, B can be used to calculate the collision normal with " "[code](B - A).normalized()[/code], and the collision depth with [code](B - " "A).length()[/code]. This information is typically used to separate shapes, " "particularly in collision solvers.\n" "This method needs the transformation matrix for this shape " "([code]local_xform[/code]), the shape to check collisions with " "([code]with_shape[/code]), and the transformation matrix of that shape " "([code]shape_xform[/code])." msgstr "" "返回这个形状与其他形状的接触点列表。\n" "如果不存在碰撞,则返回的列表为空。否则,返回的列表中包含的是一对对出现的接触" "点,这个形状上的点和 [code]with_shape[/code] 上的点交替排列。\n" "有了碰撞对 A 和 B,就可以通过 [code](B - A).normalized()[/code] 计算碰撞法" "线,通过 [code](B - A).length()[/code] 计算碰撞深度。这些信息通常用于分离形" "状,在碰撞求解器中比较常见。\n" "这个方法需要用到这个形状的变换矩阵([code]local_xform[/code])、对方形状" "([code]with_shape[/code])、对方形状的变换矩阵([code]shape_xform[/code])。" #: doc/classes/Shape2D.xml msgid "" "Returns whether this shape would collide with another, if a given movement " "was applied.\n" "This method needs the transformation matrix for this shape " "([code]local_xform[/code]), the movement to test on this shape " "([code]local_motion[/code]), the shape to check collisions with " "([code]with_shape[/code]), the transformation matrix of that shape " "([code]shape_xform[/code]), and the movement to test onto the other object " "([code]shape_motion[/code])." msgstr "" "如果应用一个给定的运动,返回这个形状是否会与另一个形状发生碰撞。\n" "这个方法需要这个形状的变换矩阵([code]local_xform[/code]),要在这个形状上测" "试的运动([code]local_motion[/code]),检查碰撞的形状([code]with_shape[/" "code]),那个形状的变换矩阵([code]shape_xform[/code]),以及用于测试其他物体" "的运动([code]shape_motion[/code])。" #: doc/classes/Shape2D.xml msgid "" "Returns a list of contact point pairs where this shape would touch another, " "if a given movement was applied.\n" "If there would be no collisions, the returned list is empty. Otherwise, the " "returned list contains contact points arranged in pairs, with entries " "alternating between points on the boundary of this shape and points on the " "boundary of [code]with_shape[/code].\n" "A collision pair A, B can be used to calculate the collision normal with " "[code](B - A).normalized()[/code], and the collision depth with [code](B - " "A).length()[/code]. This information is typically used to separate shapes, " "particularly in collision solvers.\n" "This method needs the transformation matrix for this shape " "([code]local_xform[/code]), the movement to test on this shape " "([code]local_motion[/code]), the shape to check collisions with " "([code]with_shape[/code]), the transformation matrix of that shape " "([code]shape_xform[/code]), and the movement to test onto the other object " "([code]shape_motion[/code])." msgstr "" "返回在进行给定的移动后,这个形状与其他形状的接触点列表。\n" "如果不存在碰撞,则返回的列表为空。否则,返回的列表中包含的是一对对出现的接触" "点,这个形状上的点和 [code]with_shape[/code] 上的点交替排列。\n" "有了碰撞对 A 和 B,就可以通过 [code](B - A).normalized()[/code] 计算碰撞法" "线,通过 [code](B - A).length()[/code] 计算碰撞深度。这些信息通常用于分离形" "状,在碰撞求解器中比较常见。\n" "这个方法需要用到这个形状的变换矩阵([code]local_xform[/code])、这个形状的测" "试移动([code]local_motion[/code])、对方形状([code]with_shape[/code])、对" "方形状的变换矩阵([code]shape_xform[/code])、对方形状的测试移动" "([code]shape_motion[/code])。" #: doc/classes/Shape2D.xml msgid "" "Draws a solid shape onto a [CanvasItem] with the [VisualServer] API filled " "with the specified [code]color[/code]. The exact drawing method is specific " "for each shape and cannot be configured." msgstr "" "用 [VisualServer] API 在 [CanvasItem] 上绘制实体形状,并填充指定的 " "[code]color[/code]。确切的绘制方法是每个形状特有的,无法配置。" #: doc/classes/Shape2D.xml msgid "The shape's custom solver bias." msgstr "形状的自定义求解器偏差。" #: doc/classes/ShortCut.xml msgid "A shortcut for binding input." msgstr "绑定输入的快捷方式。" #: doc/classes/ShortCut.xml msgid "" "A shortcut for binding input.\n" "Shortcuts are commonly used for interacting with a [Control] element from a " "[InputEvent]." msgstr "" "绑定输入的快捷方式。\n" "快捷方式通常用于与来自 [InputEvent] 的 [Control] 元素进行交互。" #: doc/classes/ShortCut.xml msgid "Returns the shortcut's [InputEvent] as a [String]." msgstr "将快捷方式的 [InputEvent] 作为 [String] 返回。" #: doc/classes/ShortCut.xml msgid "" "Returns [code]true[/code] if the shortcut's [InputEvent] equals [code]event[/" "code]." msgstr "" "如果快捷方式的 [InputEvent] 等于 [code]event[/code],则返回 [code]true[/" "code]。" #: doc/classes/ShortCut.xml msgid "If [code]true[/code], this shortcut is valid." msgstr "如果 [code]true[/code],则此快捷方式有效。" #: doc/classes/ShortCut.xml msgid "" "The shortcut's [InputEvent].\n" "Generally the [InputEvent] is a keyboard key, though it can be any " "[InputEvent]." msgstr "" "快捷方式的 [InputEvent]。\n" "通常 [InputEvent] 是一个键盘按键,但它可以是任何 [InputEvent]。" #: doc/classes/Skeleton.xml msgid "Skeleton for characters and animated objects." msgstr "角色和动画对象的骨架。" #: doc/classes/Skeleton.xml msgid "" "Skeleton provides a hierarchical interface for managing bones, including " "pose, rest and animation (see [Animation]). It can also use ragdoll " "physics.\n" "The overall transform of a bone with respect to the skeleton is determined " "by the following hierarchical order: rest pose, custom pose and pose.\n" "Note that \"global pose\" below refers to the overall transform of the bone " "with respect to skeleton, so it not the actual global/world transform of the " "bone." msgstr "" "骨架为管理骨骼提供了分层的界面,包括姿势、放松和动画(请参阅 [Animation])。" "它还可以使用布娃娃物理。\n" "骨骼相对于骨架的整体变换是由以下层次顺序决定的:放松姿势、自定义姿势和姿" "势。\n" "注意,下面的“全局姿势”是指骨骼相对于骨架的整体变换,所以它不是骨骼的实际全局" "或世界变换。" #: doc/classes/Skeleton.xml msgid "" "Adds a bone, with name [code]name[/code]. [method get_bone_count] will " "become the bone index." msgstr "" "添加一个骨骼,名称为 [code]name[/code]。 [method get_bone_count] 将成为骨骼索" "引。" #: doc/classes/Skeleton.xml msgid "[i]Deprecated soon.[/i]" msgstr "[i]很快就会弃用。[/i]" #: doc/classes/Skeleton.xml msgid "Clear all the bones in this skeleton." msgstr "清除这个骨架上的所有骨骼。" #: doc/classes/Skeleton.xml msgid "Returns the bone index that matches [code]name[/code] as its name." msgstr "返回 [code]name[/code]与其名称匹配的的骨骼索引。" #: doc/classes/Skeleton.xml msgid "Returns the amount of bones in the skeleton." msgstr "返回骨架中的骨骼数量。" #: doc/classes/Skeleton.xml msgid "" "Returns the custom pose of the specified bone. Custom pose is applied on top " "of the rest pose." msgstr "返回指定骨骼的自定义姿势。自定义姿势应用于放松姿势之上。" #: doc/classes/Skeleton.xml msgid "" "Returns the overall transform of the specified bone, with respect to the " "skeleton. Being relative to the skeleton frame, this is not the actual " "\"global\" transform of the bone." msgstr "" "返回指定骨骼的整体变换,相对于骨架。由于是相对于骨架的,这不是该骨骼的实际“全" "局”变换。" #: doc/classes/Skeleton.xml msgid "" "Returns the overall transform of the specified bone, with respect to the " "skeleton, but without any global pose overrides. Being relative to the " "skeleton frame, this is not the actual \"global\" transform of the bone." msgstr "" "返回指定骨骼的整体变换,相对于骨架,不包含任何全局姿势覆盖。由于是相对于骨架" "的,这不是该骨骼的实际“全局”变换。" #: doc/classes/Skeleton.xml msgid "Returns the name of the bone at index [code]index[/code]." msgstr "返回索引 [code]index[/code] 处的骨骼名称。" #: doc/classes/Skeleton.xml msgid "" "Returns the bone index which is the parent of the bone at [code]bone_idx[/" "code]. If -1, then bone has no parent.\n" "[b]Note:[/b] The parent bone returned will always be less than " "[code]bone_idx[/code]." msgstr "" "返回在[code]bone_idx[/code]处的骨骼的父级索引。如果是-1,那么骨骼就没有父骨" "骼。\n" "[b]注意:[/b]返回的父骨骼将总是小于[code]bone_idx[/code]。" #: doc/classes/Skeleton.xml msgid "" "Returns the pose transform of the specified bone. Pose is applied on top of " "the custom pose, which is applied on top the rest pose." msgstr "" "返回指定骨骼的姿势变换。姿势应用于自定义姿势之上,自定义姿势应用于放松姿势之" "上。" #: doc/classes/Skeleton.xml msgid "Returns the rest transform for a bone [code]bone_idx[/code]." msgstr "返回骨骼 [code]bone_idx[/code] 的休息变换。" #: doc/classes/Skeleton.xml msgid "" "Sets the bone index [code]parent_idx[/code] as the parent of the bone at " "[code]bone_idx[/code]. If -1, then bone has no parent.\n" "[b]Note:[/b] [code]parent_idx[/code] must be less than [code]bone_idx[/code]." msgstr "" "将骨骼索引 [code]parent_idx[/code] 设置为 [code]bone_idx[/code] 处骨骼的父" "级。如果 -1,则骨骼没有父级。\n" "[b]注意:[/b][code]parent_idx[/code] 必须小于 [code]bone_idx[/code]。" #: doc/classes/Skeleton.xml msgid "Sets the pose transform for bone [code]bone_idx[/code]." msgstr "设置骨骼 [code]bone_idx[/code] 的姿势变换。" #: doc/classes/Skeleton.xml msgid "Sets the rest transform for bone [code]bone_idx[/code]." msgstr "为骨骼[code]bone_idx[/code]设置休息变换。" #: doc/classes/Skeleton2D.xml msgid "Skeleton for 2D characters and animated objects." msgstr "2D 角色和动画对象的骨架。" #: doc/classes/Skeleton2D.xml msgid "" "Skeleton2D parents a hierarchy of [Bone2D] objects. It is a requirement of " "[Bone2D]. Skeleton2D holds a reference to the rest pose of its children and " "acts as a single point of access to its bones." msgstr "" "Skeleton2D 是 [Bone2D] 对象的层次结构。它是 [Bone2D] 的要求。Skeleton2D 持有" "对其子项的放松姿势的引用,并作为对其骨骼的单一访问点。" #: doc/classes/Skeleton2D.xml msgid "" "Returns a [Bone2D] from the node hierarchy parented by Skeleton2D. The " "object to return is identified by the parameter [code]idx[/code]. Bones are " "indexed by descending the node hierarchy from top to bottom, adding the " "children of each branch before moving to the next sibling." msgstr "" "从由 Skeleton2D 为父节点的节点层次结构中返回 [Bone2D]。要返回的对象由参数 " "[code]idx[/code] 标识。骨骼通过从上到下降低节点层次结构来索引,在移动到下一个" "兄弟节点之前添加每个分支的子节点。" #: doc/classes/Skeleton2D.xml msgid "" "Returns the number of [Bone2D] nodes in the node hierarchy parented by " "Skeleton2D." msgstr "返回由 Skeleton2D 为父节点的节点层次结构中 [Bone2D] 节点的数量。" #: doc/classes/Skeleton2D.xml msgid "Returns the [RID] of a Skeleton2D instance." msgstr "返回 Skeleton2D 实例的 [RID]。" #: doc/classes/SkeletonIK.xml msgid "" "SkeletonIK is used to place the end bone of a [Skeleton] bone chain at a " "certain point in 3D by rotating all bones in the chain accordingly." msgstr "" "SkeletonIK 可用于将 [Skeleton] 的骨骼链的末端骨骼置于 3D 中的某一点,并相应地" "旋转骨骼链中的所有骨骼。" #: doc/classes/SkeletonIK.xml msgid "" "SkeletonIK is used to place the end bone of a [Skeleton] bone chain at a " "certain point in 3D by rotating all bones in the chain accordingly. A " "typical scenario for IK in games is to place a characters feet on the ground " "or a characters hands on a currently hold object. SkeletonIK uses " "FabrikInverseKinematic internally to solve the bone chain and applies the " "results to the [Skeleton] [code]bones_global_pose_override[/code] property " "for all affected bones in the chain. If fully applied this overwrites any " "bone transform from [Animation]s or bone custom poses set by users. The " "applied amount can be controlled with the [code]interpolation[/code] " "property.\n" "[codeblock]\n" "# Apply IK effect automatically on every new frame (not the current)\n" "skeleton_ik_node.start()\n" "\n" "# Apply IK effect only on the current frame\n" "skeleton_ik_node.start(true)\n" "\n" "# Stop IK effect and reset bones_global_pose_override on Skeleton\n" "skeleton_ik_node.stop()\n" "\n" "# Apply full IK effect\n" "skeleton_ik_node.set_interpolation(1.0)\n" "\n" "# Apply half IK effect\n" "skeleton_ik_node.set_interpolation(0.5)\n" "\n" "# Apply zero IK effect (a value at or below 0.01 also removes " "bones_global_pose_override on Skeleton)\n" "skeleton_ik_node.set_interpolation(0.0)\n" "[/codeblock]" msgstr "" "SkeletonIK 用于将 [Skeleton] 骨骼链的末端骨骼放置在 3D 某一点上,并相应地旋转" "骨骼链中的所有骨骼。游戏中 IK 的典型场景是将角色的脚放在地面上,或者将角色的" "手放在当前持有的物体上。SkeletonIK 在内部使用 FabrikInverseKinematic 来解决骨" "骼链,并将结果应用于 [Skeleton] [code]bones_global_pose_override[/code] 属性" "中所有受影响的骨骼链。如果完全应用,这将覆盖任何来自 [Animation] 的骨骼变换或" "用户设置的骨骼自定义姿势。应用量可以用 [code]interpolation[/code] 属性来控" "制。\n" "[codeblock]\n" "# 在每一个新的帧上自动应用 IK 效果(不是当前的)。\n" "skeleton_ik_node.start()\n" "\n" "# 只在当前帧上应用 IK 效果\n" "skeleton_ik_node.start(true)\n" "\n" "# 停止 IK 效果并重置骨骼上的 bones_global_pose_override\n" "skeleton_ik_node.stop()\n" "\n" "# 应用完整的 IK 效果\n" "skeleton_ik_node.set_interpolation(1.0)\n" "\n" "# 应用一半的 IK 效果\n" "skeleton_ik_node.set_interpolation(0.5)\n" "\n" "# 应用零 IK 效果(数值为 0.01 或低于 0.01 也会移除骨骼上的 " "bones_global_pose_override)。\n" "skeleton_ik_node.set_interpolation(0.0)\n" "[/codeblock]" #: doc/classes/SkeletonIK.xml msgid "" "Returns the parent [Skeleton] Node that was present when SkeletonIK entered " "the [SceneTree]. Returns null if the parent node was not a [Skeleton] Node " "when SkeletonIK entered the [SceneTree]." msgstr "" "返回 SkeletonIK 进入 [SceneTree] 时存在的父 [Skeleton] 节点。如果父节点在 " "SkeletonIK 进入 [SceneTree] 时不是 [Skeleton] 节点,则返回 null。" #: doc/classes/SkeletonIK.xml msgid "" "Returns [code]true[/code] if SkeletonIK is applying IK effects on continues " "frames to the [Skeleton] bones. Returns [code]false[/code] if SkeletonIK is " "stopped or [method start] was used with the [code]one_time[/code] parameter " "set to [code]true[/code]." msgstr "" "如果 SkeletonIK 将 IK 效果应用到 [Skeleton] 骨骼的连续帧上,则返回 " "[code]true[/code]。如果 SkeletonIK 停止或使用 [method start] 且 " "[code]one_time[/code] 参数设置为 [code]true[/code],则返回 [code]false[/" "code]。" #: doc/classes/SkeletonIK.xml msgid "" "Starts applying IK effects on each frame to the [Skeleton] bones but will " "only take effect starting on the next frame. If [code]one_time[/code] is " "[code]true[/code], this will take effect immediately but also reset on the " "next frame." msgstr "" "开始将 IK 效果应用到每一帧的 [Skeleton] 骨骼,但只会在下一帧开始生效。如果 " "[code]one_time[/code] 为 [code]true[/code],这将立即生效,但会在下一帧重置。" #: doc/classes/SkeletonIK.xml msgid "" "Stops applying IK effects on each frame to the [Skeleton] bones and also " "calls [method Skeleton.clear_bones_global_pose_override] to remove existing " "overrides on all bones." msgstr "" "停止将 IK 效果应用到每帧的 [Skeleton] 骨骼,并调用 [method Skeleton." "clear_bones_global_pose_override] 以移除所有骨骼上的现有覆盖。" #: doc/classes/SkeletonIK.xml msgid "" "Interpolation value for how much the IK results are applied to the current " "skeleton bone chain. A value of [code]1.0[/code] will overwrite all skeleton " "bone transforms completely while a value of [code]0.0[/code] will visually " "disable the SkeletonIK. A value at or below [code]0.01[/code] also calls " "[method Skeleton.clear_bones_global_pose_override]." msgstr "" "IK 效果应用于当前骨架骨骼链的插值。 [code]1.0[/code] 的值将完全覆盖所有骨架骨" "骼变换,而 [code]0.0[/code] 的值将在视觉上禁用 SkeletonIK。等于或低于 " "[code]0.01[/code] 的值也调用 [method Skeleton." "clear_bones_global_pose_override]。" #: doc/classes/SkeletonIK.xml msgid "" "Secondary target position (first is [member target] property or [member " "target_node]) for the IK chain. Use magnet position (pole target) to control " "the bending of the IK chain. Only works if the bone chain has more than 2 " "bones. The middle chain bone position will be linearly interpolated with the " "magnet position." msgstr "" "IK 链的次要目标位置(首先是 [member target] 属性或 [member target_node])。使" "用磁铁位置(极点目标)来控制 IK 链的弯曲。仅当骨骼链具有 2 个以上的骨骼时才有" "效。中间链骨位置将与磁铁位置进行线性插值。" #: doc/classes/SkeletonIK.xml msgid "" "Number of iteration loops used by the IK solver to produce more accurate " "(and elegant) bone chain results." msgstr "IK解算器使用的迭代循环的数量,以产生更准确(和优雅)的骨链效果。" #: doc/classes/SkeletonIK.xml msgid "" "The minimum distance between bone and goal target. If the distance is below " "this value, the IK solver stops further iterations." msgstr "" "骨骼与目标对象之间的最小距离。如果距离低于这个值,IK解算器将停止进一步的迭" "代。" #: doc/classes/SkeletonIK.xml msgid "" "If [code]true[/code] overwrites the rotation of the tip bone with the " "rotation of the [member target] (or [member target_node] if defined)." msgstr "" "如果[code]true[/code],则用 [member target] (或者如果定义了[member " "target_node]])的旋转覆盖尖端骨骼的旋转。" #: doc/classes/SkeletonIK.xml msgid "The name of the current root bone, the first bone in the IK chain." msgstr "当前根骨的名称,即IK链中的第一个骨。" #: doc/classes/SkeletonIK.xml msgid "" "First target of the IK chain where the tip bone is placed and, if [member " "override_tip_basis] is [code]true[/code], how the tip bone is rotated. If a " "[member target_node] path is available the nodes transform is used instead " "and this property is ignored." msgstr "" "放置尖端骨骼的 IK 链的第一个目标,如果 [member override_tip_basis] 是 " "[code]true[/code],尖端骨骼的旋转方式。如果 [member target_node] 路径可用,则" "使用节点变换,并忽略此属性。" #: doc/classes/SkeletonIK.xml msgid "" "Target node [NodePath] for the IK chain. If available, the node's current " "[Transform] is used instead of the [member target] property." msgstr "" "IK链的目标节点[NodePath]。如果有的话,将使用节点当前的[Transform],而不是" "[member target]属性。" #: doc/classes/SkeletonIK.xml msgid "" "The name of the current tip bone, the last bone in the IK chain placed at " "the [member target] transform (or [member target_node] if defined)." msgstr "" "当前尖端骨骼的名称,IK 链中放置在 [member target] 变换处的最后一个骨骼(或者" "已定义 [member target_node])。" #: doc/classes/SkeletonIK.xml msgid "" "If [code]true[/code], instructs the IK solver to consider the secondary " "magnet target (pole target) when calculating the bone chain. Use the magnet " "position (pole target) to control the bending of the IK chain." msgstr "" "如果[code]true[/code],指示IK求解器在解算器链时考虑次要磁铁目标(极点目标)。" "使用磁铁位置(磁极目标)来控制IK链的弯曲。" #: doc/classes/Sky.xml msgid "The base class for [PanoramaSky] and [ProceduralSky]." msgstr "[PanoramaSky] 和 [ProceduralSky] 的基类。" #: doc/classes/Sky.xml msgid "" "The [Sky]'s radiance map size. The higher the radiance map size, the more " "detailed the lighting from the [Sky] will be.\n" "See [enum RadianceSize] constants for values.\n" "[b]Note:[/b] You will only benefit from high radiance sizes if you have " "perfectly sharp reflective surfaces in your project and are not using " "[ReflectionProbe]s or [GIProbe]s. For most projects, keeping [member " "radiance_size] to the default value is the best compromise between visuals " "and performance. Be careful when using high radiance size values as these " "can cause crashes on low-end GPUs." msgstr "" "[Sky] 的辐射贴图大小。辐射贴图尺寸越大,[Sky] 的照明就越详细。\n" "有关值,参阅 [enum RadianceSize] 常量。\n" "[b]注意:[/b]如果您的项目中有非常清晰的反射表面,并且不使用 " "[ReflectionProbe] 或 [GIProbe],您才会受益于高辐射尺寸。对于大多数项目,将 " "[member radiance_size] 保持为默认值是视觉效果和性能之间的最佳折衷。使用高辐射" "大小值时要小心,因为这可能会导致低端 GPU 崩溃。" #: doc/classes/Sky.xml msgid "Radiance texture size is 32×32 pixels." msgstr "辐照度纹理尺寸为 32×32 像素。" #: doc/classes/Sky.xml msgid "Radiance texture size is 64×64 pixels." msgstr "辐照度纹理尺寸为 64×64 像素。" #: doc/classes/Sky.xml msgid "Radiance texture size is 128×128 pixels." msgstr "辐照度纹理尺寸为128×128像素。" #: doc/classes/Sky.xml msgid "Radiance texture size is 256×256 pixels." msgstr "辐照度纹理大小为 256×256 像素。" #: doc/classes/Sky.xml msgid "Radiance texture size is 512×512 pixels." msgstr "辐照度纹理大小为 512×512 像素。" #: doc/classes/Sky.xml msgid "" "Radiance texture size is 1024×1024 pixels.\n" "[b]Note:[/b] [constant RADIANCE_SIZE_1024] is not exposed in the inspector " "as it is known to cause GPU hangs on certain systems." msgstr "" "辐射纹理尺寸为1024×1024像素。\n" "[b]注意:[/b][constant RADIANCE_SIZE_1024]在检查器中没有公开,因为它在某些系" "统上会导致GPU挂起。" #: doc/classes/Sky.xml msgid "" "Radiance texture size is 2048×2048 pixels.\n" "[b]Note:[/b] [constant RADIANCE_SIZE_2048] is not exposed in the inspector " "as it is known to cause GPU hangs on certain systems." msgstr "" "辐射纹理尺寸为2048×2048像素。\n" "[b]注意:[/b][constant RADIANCE_SIZE_2048]没有在检查器中公开,因为它在某些系" "统上会导致GPU挂起。" #: doc/classes/Sky.xml msgid "Represents the size of the [enum RadianceSize] enum." msgstr "代表[enum RadianceSize]枚举的大小。" #: doc/classes/Slider.xml msgid "Base class for GUI sliders." msgstr "GUI 滑动条的基类。" #: doc/classes/Slider.xml msgid "" "Base class for GUI sliders.\n" "[b]Note:[/b] The [signal Range.changed] and [signal Range.value_changed] " "signals are part of the [Range] class which this class inherits from." msgstr "" "GUI 滑动条的基类。\n" "[b]注意:[/b][signal Range.changed] 和 [signal Range.value_changed] 信号是该" "类继承的 [Range] 类的一部分。" #: doc/classes/Slider.xml msgid "" "If [code]true[/code], the slider can be interacted with. If [code]false[/" "code], the value can be changed only by code." msgstr "" "如果为 [code]true[/code],则滑动条可以交互。如果为 [code]false[/code],则只能" "通过代码更改该值。" #: doc/classes/Slider.xml msgid "If [code]true[/code], the value can be changed using the mouse wheel." msgstr "如果为 [code]true[/code],则可以使用鼠标滚轮更改该值。" #: doc/classes/Slider.xml msgid "" "Number of ticks displayed on the slider, including border ticks. Ticks are " "uniformly-distributed value markers." msgstr "滑动条上显示的刻度线数量,包括边界刻度线。刻度是均匀分布的数值标记。" #: doc/classes/Slider.xml msgid "" "If [code]true[/code], the slider will display ticks for minimum and maximum " "values." msgstr "如果为 [code]true[/code],则滑动条将显示最小值和最大值的刻度。" #: doc/classes/Slider.xml msgid "" "Emitted when dragging stops. If [code]value_changed[/code] is true, [member " "Range.value] is different from the value when you started the dragging." msgstr "" "拖拽停止时触发。如果 [code]value_changed[/code] 为真,则 [member Range." "value] 与开始拖拽时的值不同。" #: doc/classes/Slider.xml msgid "Emitted when dragging is started." msgstr "拖拽开始时触发。" #: doc/classes/SliderJoint.xml msgid "Slider between two PhysicsBodies in 3D." msgstr "3D 中,两个 PhysicsBody 之间的滑动条。" #: doc/classes/SliderJoint.xml msgid "" "Slides across the X axis of the pivot object. See also [Generic6DOFJoint]." msgstr "在轴心对象的 X 轴上滑动。参阅 [Generic6DOFJoint]。" #: doc/classes/SliderJoint.xml msgid "" "The amount of damping of the rotation when the limit is surpassed.\n" "A lower damping value allows a rotation initiated by body A to travel to " "body B slower." msgstr "" "超过限制时旋转的阻尼量。\n" "较低的阻尼值允许由主体 A 发起的旋转以较慢的速度传播到主体 B。" #: doc/classes/SliderJoint.xml msgid "" "The amount of restitution of the rotation when the limit is surpassed.\n" "Does not affect damping." msgstr "" "当超过极限时,旋转的恢复量。\n" "不影响阻尼。" #: doc/classes/SliderJoint.xml msgid "" "A factor applied to the all rotation once the limit is surpassed.\n" "Makes all rotation slower when between 0 and 1." msgstr "" "应用于所有旋转超过限制后的系数。\n" "在 0 和 1 之间时使所有旋转变慢。" #: doc/classes/SliderJoint.xml msgid "A factor applied to the all rotation in the limits." msgstr "应用于所有受限旋转的系数。" #: doc/classes/SliderJoint.xml msgid "" "A factor applied to the all rotation across axes orthogonal to the slider." msgstr "应用于与滑动条正交的轴的所有旋转的系数。" #: doc/classes/SliderJoint.xml msgid "" "The amount of damping that happens once the limit defined by [member " "linear_limit/lower_distance] and [member linear_limit/upper_distance] is " "surpassed." msgstr "" "一旦超过[member linear_limit/lower_distance]和[member linear_limit/" "upper_distance]所定义的极限,就会产生的阻尼量。" #: doc/classes/SliderJoint.xml msgid "" "The amount of restitution once the limits are surpassed. The lower, the more " "velocity-energy gets lost." msgstr "超出限制后的补偿。数值越低,损失的速度能量越多。" #: doc/classes/SoftBody.xml msgid "A soft mesh physics body." msgstr "柔性网格物理体。" #: doc/classes/SoftBody.xml msgid "" "A deformable physics body. Used to create elastic or deformable objects such " "as cloth, rubber, or other flexible materials.\n" "[b]Note:[/b] There are many known bugs in [SoftBody]. Therefore, it's not " "recommended to use them for things that can affect gameplay (such as a " "player character made entirely out of soft bodies)." msgstr "" "可发生形变的物理体。用于创建布料、橡胶等柔性材质的可拉伸或变形的对象。\n" "[b]注意:[/b][SoftBody] 存在很多已知的问题。因此,建议不要用于对游戏性有影响" "的地方(例如完全由柔体制作的玩家角色)。" #: doc/classes/SoftBody.xml msgid "Returns local translation of a vertex in the surface array." msgstr "返回表面数组中顶点的局部平移。" #: doc/classes/SoftBody.xml msgid "Returns [code]true[/code] if vertex is set to pinned." msgstr "如果顶点设置为固定,则返回 [code]true[/code]。" #: doc/classes/SoftBody.xml msgid "" "Sets the pinned state of a surface vertex. When set to [code]true[/code], " "the optional [code]attachment_path[/code] can define a [Spatial] the pinned " "vertex will be attached to." msgstr "" "设置表面顶点的固定状态。当设置为 [code]true[/code] 时,可选的" "[code]attachment_path[/code]可以定义一个空间[Spatial],被固定的顶点将连接到这" "个空间。" #: doc/classes/SoftBody.xml msgid "" "The physics layers this SoftBody is in.\n" "Collidable objects can exist in any of 32 different layers. These layers " "work like a tagging system, and are not visual. A collidable can use these " "layers to select with which objects it can collide, using the collision_mask " "property.\n" "A contact is detected if object A is in any of the layers that object B " "scans, or object B is in any layer scanned by object A. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "这个 SoftBody 所处的物理层。\n" "可碰撞的物体可以存在于 32 个不同层中的任何一个。这些层的工作就像一个标签系" "统,并不是可视化的。一个可碰撞物体可以使用这些层来选择它可以与哪些物体碰撞," "使用 collision_mask 属性。\n" "如果对象 A 在对象 B 所扫描的任何层中,或者对象 B 在对象 A 所扫描的任何层中," "就会检测到接触。更多信息请参阅文档中的[url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》[/url]。" #: doc/classes/SoftBody.xml msgid "" "The physics layers this SoftBody scans for collisions. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "此 SoftBody 扫描碰撞的物理层。更多信息请参阅文档中的[url=$DOCS_URL/tutorials/" "physics/physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》" "[/url]。" #: doc/classes/SoftBody.xml msgid "[NodePath] to a [CollisionObject] this SoftBody should avoid clipping." msgstr "指向 [CollisionObject] 的 [NodePath],这个 SoftBody 应该避免穿过它。" #: doc/classes/SoftBody.xml msgid "" "If [code]true[/code], the [SoftBody] is simulated in physics. Can be set to " "[code]false[/code] to pause the physics simulation." msgstr "" "为 [code]true[/code] 时 [SoftBody] 会进行物理模拟。可以通过设置为 " "[code]false[/code] 来暂停物理模拟。" #: doc/classes/SoftBody.xml msgid "If [code]true[/code], the [SoftBody] will respond to [RayCast]s." msgstr "为 [code]true[/code] 时该 [SoftBody] 会响应 [RayCast]。" #: doc/classes/SoftBody.xml msgid "" "Increasing this value will improve the resulting simulation, but can affect " "performance. Use with care." msgstr "增加这个值会改善模拟结果,但会影响性能。请小心使用。" #: doc/classes/SoftBody.xml msgid "The SoftBody's mass." msgstr "该 SoftBody 的质量。" #: doc/classes/Spatial.xml msgid "Most basic 3D game object, parent of all 3D-related nodes." msgstr "最基本的 3D 游戏对象,是所有与 3D 相关的节点的父节点。" #: doc/classes/Spatial.xml msgid "" "Most basic 3D game object, with a 3D [Transform] and visibility settings. " "All other 3D game objects inherit from Spatial. Use [Spatial] as a parent " "node to move, scale, rotate and show/hide children in a 3D project.\n" "Affine operations (rotate, scale, translate) happen in parent's local " "coordinate system, unless the [Spatial] object is set as top-level. Affine " "operations in this coordinate system correspond to direct affine operations " "on the [Spatial]'s transform. The word local below refers to this coordinate " "system. The coordinate system that is attached to the [Spatial] object " "itself is referred to as object-local coordinate system.\n" "[b]Note:[/b] Unless otherwise specified, all methods that have angle " "parameters must have angles specified as [i]radians[/i]. To convert degrees " "to radians, use [method @GDScript.deg2rad]." msgstr "" "最基本的 3D 游戏对象,具有 3D [Transform] 和可见性设置。所有其他的 3D 游戏对" "象都继承自 Spatial。使用 [Spatial] 作为父节点,在 3D 项目中移动、缩放、旋转和" "显示/隐藏子节点。\n" "除非 [Spatial] 对象被设置为顶层,否则仿射操作(旋转、缩放、平移)会在父节点的" "本地坐标系中进行。在这个坐标系中的仿射操作对应于对 [Spatial] 变换的直接仿射运" "算。下面的本地一词指的是局部坐标系。附加到 [Spatial] 对象本身的坐标系被称为对" "象-本地坐标系。\n" "[b]注意:[/b]除非另有规定,所有有角度参数的方法必须将角度指定为[i]弧度[/i]。" "使用 [method @GDScript.deg2rad] 将度数转换为弧度。" #: doc/classes/Spatial.xml msgid "Introduction to 3D" msgstr "3D 简介" #: doc/classes/Spatial.xml doc/classes/Vector3.xml msgid "All 3D Demos" msgstr "所有 3D 演示" #: doc/classes/Spatial.xml msgid "" "When using physics interpolation, there will be circumstances in which you " "want to know the interpolated (displayed) transform of a node rather than " "the standard transform (which may only be accurate to the most recent " "physics tick).\n" "This is particularly important for frame-based operations that take place in " "[method Node._process], rather than [method Node._physics_process]. Examples " "include [Camera]s focusing on a node, or finding where to fire lasers from " "on a frame rather than physics tick." msgstr "" "使用物理插值时,你可能会想要知道节点在插值后(显示)的变换,而不是标准的变换" "(只有对最近的一次物理周期而言才准确)。\n" "这对于基于帧的操作而言尤为重要,这些操作是在 [method Node._process] 中进行" "的,而不是 [method Node._physics_process]。例如让 [Camera] 聚焦到某个节点上," "在某一帧中查找应该从哪里发射激光,而不是物理帧。" #: doc/classes/Spatial.xml msgid "" "Returns the parent [Spatial], or an empty [Object] if no parent exists or " "parent is not of type [Spatial]." msgstr "" "返回父对象 [Spatial],如果不存在父对象或父对象不是 [Spatial] 类型,则返回一个" "空的 [Object]。" #: doc/classes/Spatial.xml msgid "" "Returns the current [World] resource this [Spatial] node is registered to." msgstr "返回此 [Spatial] 节点所注册的当前 [World] 资源。" #: doc/classes/Spatial.xml msgid "" "Rotates the global (world) transformation around axis, a unit [Vector3], by " "specified angle in radians. The rotation axis is in global coordinate system." msgstr "" "将全局(世界)变换围绕某个轴(单位 [Vector3])旋转指定的弧度。旋转轴使用全局" "坐标系。" #: doc/classes/Spatial.xml msgid "" "Scales the global (world) transformation by the given [Vector3] scale " "factors." msgstr "将全局(世界)变换按照给定的 [Vector3] 缩放因子进行缩放。" #: doc/classes/Spatial.xml msgid "" "Moves the global (world) transformation by [Vector3] offset. The offset is " "in global coordinate system." msgstr "" "将全局(世界)变换按照 [Vector3] 偏移量进行移动。偏移量使用全局坐标系。" #: doc/classes/Spatial.xml msgid "" "Disables rendering of this node. Changes [member visible] to [code]false[/" "code]." msgstr "禁用该节点的渲染。会将 [member visible] 改为 [code]false[/code]。" #: doc/classes/Spatial.xml msgid "" "Returns whether node notifies about its local transformation changes. " "[Spatial] will not propagate this by default." msgstr "" "返回节点是否通知其局部变换的变化。[Spatial] 默认情况下不会对此进行传播。" #: doc/classes/Spatial.xml msgid "" "Returns whether this node uses a scale of [code](1, 1, 1)[/code] or its " "local transformation scale." msgstr "返回该节点是否使用[code](1, 1, 1)[/code]的比例或其本地转换比例。" #: doc/classes/Spatial.xml msgid "" "Returns whether this node is set as Toplevel, that is whether it ignores its " "parent nodes transformations." msgstr "返回该节点是否被设置为Toplevel,也就是是否忽略其父节点的变换。" #: doc/classes/Spatial.xml msgid "" "Returns whether the node notifies about its global and local transformation " "changes. [Spatial] will not propagate this by default." msgstr "" "返回节点是否通知其全局和局部的变换变化。默认情况下,[Spatial]不会对此进行传" "播。" #: doc/classes/Spatial.xml msgid "" "Rotates the node so that the local forward axis (-Z) points toward the " "[code]target[/code] position.\n" "The local up axis (+Y) points as close to the [code]up[/code] vector as " "possible while staying perpendicular to the local forward axis. The " "resulting transform is orthogonal, and the scale is preserved. Non-uniform " "scaling may not work correctly.\n" "The [code]target[/code] position cannot be the same as the node's position, " "the [code]up[/code] vector cannot be zero, and the direction from the node's " "position to the [code]target[/code] vector cannot be parallel to the " "[code]up[/code] vector.\n" "Operations take place in global space." msgstr "" "旋转该节点,让向前的局部坐标轴(-Z)指向目标位置 [code]target[/code]。\n" "向上的局部坐标轴(+Y)在与向前的局部坐标轴保持垂直的前提下,指向尽量接近 " "[code]up[/code] 向量的方向。最终的变换是正交的,位置原有缩放。如果是非统一缩" "放,可能无法正常工作。\n" "目标位置 [code]target[/code] 不能与该节点的位置相同,[code]up[/code] 向量不能" "是零,从该节点的位置到 [code]target[/code] 向量的方向不能与 [code]up[/code] " "平行。\n" "操作发生在全局空间。" #: doc/classes/Spatial.xml msgid "" "Moves the node to the specified [code]position[/code], and then rotates " "itself to point toward the [code]target[/code] as per [method look_at]. " "Operations take place in global space." msgstr "" "将节点移动到指定的[code]position[/code],然后按照[method look_at]的要求旋转自" "己以指向[code]target[/code]。操作是在全局空间进行的。" #: doc/classes/Spatial.xml msgid "" "Resets this node's transformations (like scale, skew and taper) preserving " "its rotation and translation by performing Gram-Schmidt orthonormalization " "on this node's [Transform]." msgstr "" "通过对该节点的 [Transform] 进行 Gram-Schmidt 正则化,重新设置该节点的变换(如" "比例、倾斜和锥度),保留其旋转和平移。" #: doc/classes/Spatial.xml msgid "" "Rotates the local transformation around axis, a unit [Vector3], by specified " "angle in radians." msgstr "围绕轴(一个单位[Vector3])旋转局部变换,指定角度(弧度)。" #: doc/classes/Spatial.xml msgid "" "Rotates the local transformation around axis, a unit [Vector3], by specified " "angle in radians. The rotation axis is in object-local coordinate system." msgstr "" "围绕轴(一个单位[Vector3])旋转本地变换,指定角度(弧度)。旋转轴是在物体的本" "地坐标系中。" #: doc/classes/Spatial.xml msgid "Rotates the local transformation around the X axis by angle in radians." msgstr "围绕 X 轴旋转局部变换,旋转角度为弧度。" #: doc/classes/Spatial.xml msgid "Rotates the local transformation around the Y axis by angle in radians." msgstr "围绕 Y 轴旋转局部变换,旋转角度为弧度。" #: doc/classes/Spatial.xml msgid "Rotates the local transformation around the Z axis by angle in radians." msgstr "围绕 Z 轴旋转局部变换,旋转角度为弧度。" #: doc/classes/Spatial.xml msgid "" "Scales the local transformation by given 3D scale factors in object-local " "coordinate system." msgstr "在物体局部坐标系中,通过给定的 3D 比例因子来缩放局部变换。" #: doc/classes/Spatial.xml msgid "" "Makes the node ignore its parents transformations. Node transformations are " "only in global space." msgstr "使得节点忽略其父级的变换。节点的变换只在全局空间进行。" #: doc/classes/Spatial.xml msgid "" "Sets whether the node uses a scale of [code](1, 1, 1)[/code] or its local " "transformation scale. Changes to the local transformation scale are " "preserved." msgstr "" "设置节点是否使用[code](1, 1, 1)[/code]的比例或其本地变换比例。对本地变换比例" "的改变会被保留下来。" #: doc/classes/Spatial.xml msgid "" "Reset all transformations for this node (sets its [Transform] to the " "identity matrix)." msgstr "重置该节点的所有变换(将其 [Transform] 重置为单位矩阵)。" #: doc/classes/Spatial.xml msgid "" "Sets whether the node ignores notification that its transformation (global " "or local) changed." msgstr "设置节点是否忽略其转换(全局或局部)改变的通知。" #: doc/classes/Spatial.xml msgid "" "Sets whether the node notifies about its local transformation changes. " "[Spatial] will not propagate this by default." msgstr "" "设置节点是否通知它的局部变换变化。默认情况下,[Spatial]不会传播这一点。" #: doc/classes/Spatial.xml msgid "" "Sets whether the node notifies about its global and local transformation " "changes. [Spatial] will not propagate this by default, unless it is in the " "editor context and it has a valid gizmo." msgstr "" "设置节点是否通知其全局和局部变换的变化。[Spatial]默认情况下不会传播,除非是在" "编辑器上下文中,并且它有一个有效的gizmo。" #: doc/classes/Spatial.xml msgid "" "Enables rendering of this node. Changes [member visible] to [code]true[/" "code]." msgstr "启用此节点的呈现。将[member visible]更改为 [code]true[/code]。" #: doc/classes/Spatial.xml msgid "" "Transforms [code]local_point[/code] from this node's local space to world " "space." msgstr "将[code]local_point[/code]从该节点的本地空间转换为世界空间。" #: doc/classes/Spatial.xml msgid "" "Transforms [code]global_point[/code] from world space to this node's local " "space." msgstr "将[code]global_point[/code]从世界空间转换到这个节点的本地空间。" #: doc/classes/Spatial.xml msgid "" "Changes the node's position by the given offset [Vector3].\n" "Note that the translation [code]offset[/code] is affected by the node's " "scale, so if scaled by e.g. [code](10, 1, 1)[/code], a translation by an " "offset of [code](2, 0, 0)[/code] would actually add 20 ([code]2 * 10[/code]) " "to the X coordinate." msgstr "" "通过给定的偏移量[Vector3]改变节点的位置。\n" "注意,平移[code]offset[/code]受节点比例因子(scale)的影响,所以如果按例如" "[code](10,1,1)[/code]进行缩放,平移[code](2,0,0)[/code]实际上会在X坐标上增加" "20 ([code]2 * 10[/code])。" #: doc/classes/Spatial.xml msgid "" "Changes the node's position by the given offset [Vector3] in local space." msgstr "通过给定的偏移量[Vector3]改变节点在局部空间中的位置。" #: doc/classes/Spatial.xml msgid "Updates the [SpatialGizmo] of this node." msgstr "更新该节点的 [SpatialGizmo]。" #: doc/classes/Spatial.xml msgid "" "The [SpatialGizmo] for this node. Used for example in [EditorSpatialGizmo] " "as custom visualization and editing handles in Editor." msgstr "" "此节点的 [SpatialGizmo]。例如在 [EditorSpatialGizmo] 中用作编辑器中的自定义可" "视化和编辑手柄。" #: doc/classes/Spatial.xml msgid "World space (global) [Transform] of this node." msgstr "此节点的世界空间(全局)[Transform]。" #: doc/classes/Spatial.xml msgid "" "Rotation part of the local transformation in radians, specified in terms of " "YXZ-Euler angles in the format (X angle, Y angle, Z angle).\n" "[b]Note:[/b] In the mathematical sense, rotation is a matrix and not a " "vector. The three Euler angles, which are the three independent parameters " "of the Euler-angle parametrization of the rotation matrix, are stored in a " "[Vector3] data structure not because the rotation is a vector, but only " "because [Vector3] exists as a convenient data-structure to store 3 floating-" "point numbers. Therefore, applying affine operations on the rotation " "\"vector\" is not meaningful." msgstr "" "局部变换的旋转部分以弧度表示,以YXZ-Euler角的形式表示(X角、Y角、Z角)。\n" "[b]注:[/b]在数学意义上,旋转是一个矩阵而不是一个向量。这三个欧拉角是旋转矩阵" "欧拉角参数化的三个独立参数,存储在[Vector3]数据结构中并不是因为旋转是一个矢" "量,而是因为[Vector3]是一种方便存储3个浮点数的数据结构。因此,对旋转“向量”应" "用仿射操作是没有意义的。" #: doc/classes/Spatial.xml msgid "" "Rotation part of the local transformation in degrees, specified in terms of " "YXZ-Euler angles in the format (X angle, Y angle, Z angle)." msgstr "旋转部分局部变换为度,按YXZ-Euler角格式指定(X角、Y角、Z角)。" #: doc/classes/Spatial.xml msgid "Scale part of the local transformation." msgstr "局部变换的缩放部分。" #: doc/classes/Spatial.xml msgid "Local space [Transform] of this node, with respect to the parent node." msgstr "该节点相对于父节点的局部空间[Transform]。" #: doc/classes/Spatial.xml msgid "Local translation of this node." msgstr "此节点的局部变换。" #: doc/classes/Spatial.xml msgid "" "If [code]true[/code], this node is drawn. The node is only visible if all of " "its antecedents are visible as well (in other words, [method " "is_visible_in_tree] must return [code]true[/code])." msgstr "" "如果[code]true[/code],这个节点就会被画出来。只有当它的所有前项也是可见的时" "候,这个节点才是可见的(换句话说,[method is_visible_in_tree]必须返回 " "[code]true[/code])。" #: doc/classes/Spatial.xml msgid "" "Emitted by portal system gameplay monitor when a node enters the gameplay " "area." msgstr "当节点进入游戏区域时由入口系统游戏监视器触发。" #: doc/classes/Spatial.xml msgid "" "Emitted by portal system gameplay monitor when a node exits the gameplay " "area." msgstr "当节点退出游戏区域时,由界面系统的游戏监视器触发。" #: doc/classes/Spatial.xml msgid "Emitted when node visibility changes." msgstr "当节点可见性更改时触发。" #: doc/classes/Spatial.xml msgid "" "Spatial nodes receives this notification when their global transform " "changes. This means that either the current or a parent node changed its " "transform.\n" "In order for [constant NOTIFICATION_TRANSFORM_CHANGED] to work, users first " "need to ask for it, with [method set_notify_transform]. The notification is " "also sent if the node is in the editor context and it has a valid gizmo." msgstr "" "当空间节点的全局变换发生变化时,空间节点会收到这个通知。这意味着当前节点或父" "节点改变了它的变换。\n" "为了使[constant NOTIFICATION_TRANSFORM_CHANGED]生效,用户首先需要用[method " "set_notify_transform]发送请求。如果节点是在编辑器的上下文中,并且它有一个有效" "的gizmo,那么该通知也会被发送。" #: doc/classes/Spatial.xml msgid "" "Spatial nodes receives this notification when they are registered to new " "[World] resource." msgstr "空间节点在注册到新的 [World] 资源时会收到此通知。" #: doc/classes/Spatial.xml msgid "" "Spatial nodes receives this notification when they are unregistered from " "current [World] resource." msgstr "当空间节点从当前的 [World] 资源中取消注册时,它们会收到此通知。" #: doc/classes/Spatial.xml msgid "Spatial nodes receives this notification when their visibility changes." msgstr "空间节点在其可见性发生变化时会收到此通知。" #: doc/classes/Spatial.xml msgid "" "Spatial nodes receives this notification if the portal system gameplay " "monitor detects they have entered the gameplay area." msgstr "如果入口系统游戏监视器检测到它们已进入游戏区域,空间节点会收到此通知。" #: doc/classes/Spatial.xml msgid "" "Spatial nodes receives this notification if the portal system gameplay " "monitor detects they have exited the gameplay area." msgstr "如果入口系统游戏监视器检测到它们已退出游戏区域,空间节点会收到此通知。" #: doc/classes/SpatialMaterial.xml msgid "Default 3D rendering material." msgstr "默认的 3D 渲染材质。" #: doc/classes/SpatialMaterial.xml msgid "" "This provides a default material with a wide variety of rendering features " "and properties without the need to write shader code. See the tutorial below " "for details." msgstr "" "这提供了一个默认的材质,具有多种渲染功能和属性,无需编写着色器代码。详情请看" "下面的教程。" #: doc/classes/SpatialMaterial.xml msgid "Returns [code]true[/code], if the specified [enum Feature] is enabled." msgstr "如果指定的 [enum Feature] 被启用,返回 [code]true[/code]。" #: doc/classes/SpatialMaterial.xml msgid "" "Returns [code]true[/code], if the specified flag is enabled. See [enum " "Flags] enumerator for options." msgstr "" "如果指定的标志被启用,返回 [code]true[/code]。参阅 [enum Flags] 枚举器的选" "项。" #: doc/classes/SpatialMaterial.xml msgid "" "Returns the [Texture] associated with the specified [enum TextureParam]." msgstr "返回与指定的 [enum TextureParam] 关联的 [Texture]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], enables the specified [enum Feature]. Many features " "that are available in [SpatialMaterial]s need to be enabled before use. This " "way the cost for using the feature is only incurred when specified. Features " "can also be enabled by setting the corresponding member to [code]true[/code]." msgstr "" "如果 [code]true[/code],则启用指定的 [enum Feature]。 [SpatialMaterial]s 中可" "用的许多功能需要在使用前启用。这样,只有在指定时才会产生使用该功能的成本。也" "可以通过将相应的成员设置为 [code]true[/code] 来启用功能。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], enables the specified flag. Flags are optional " "behavior that can be turned on and off. Only one flag can be enabled at a " "time with this function, the flag enumerators cannot be bit-masked together " "to enable or disable multiple flags at once. Flags can also be enabled by " "setting the corresponding member to [code]true[/code]. See [enum Flags] " "enumerator for options." msgstr "" "如果为 [code]true[/code],则启用指定的标志。标志是可以打开和关闭的可选行为。" "使用该函数一次只能启用一个标志,不能将标志枚举值像位掩码一样进行合并,一次启" "用或禁用多个标志。也可以通过将相应成员设置为 [code]true[/code] 来启用标志。有" "关选项,请参阅 [enum Flags] 枚举器。" #: doc/classes/SpatialMaterial.xml msgid "" "Sets the [Texture] to be used by the specified [enum TextureParam]. This " "function is called when setting members ending in [code]*_texture[/code]." msgstr "" "设置指定的 [enum TextureParam] 所使用的 [Texture]。该函数在设置以 " "[code]*_texture[/code] 结尾的成员时调用。" #: doc/classes/SpatialMaterial.xml msgid "The material's base color." msgstr "材质的底色。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture to multiply by [member albedo_color]. Used for basic texturing of " "objects." msgstr "纹理乘以 [member albedo_color]。用于对象的基本纹理。" #: doc/classes/SpatialMaterial.xml msgid "" "The strength of the anisotropy effect. This is multiplied by [member " "anisotropy_flowmap]'s alpha channel if a texture is defined there and the " "texture contains an alpha channel." msgstr "" "各向异性效果的强度。如果 [member anisotropy_flowmap] 是一张带有 Alpha 通道的" "纹理,那么这个值会与其 Alpha 通道相乘。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], anisotropy is enabled. Anisotropy changes the shape of " "the specular blob and aligns it to tangent space. This is useful for brushed " "aluminium and hair reflections.\n" "[b]Note:[/b] Mesh tangents are needed for anisotropy to work. If the mesh " "does not contain tangents, the anisotropy effect will appear broken.\n" "[b]Note:[/b] Material anisotropy should not to be confused with anisotropic " "texture filtering. Anisotropic texture filtering can be enabled by selecting " "a texture in the FileSystem dock, going to the Import dock, checking the " "[b]Anisotropic[/b] checkbox then clicking [b]Reimport[/b]." msgstr "" "如果为 [code]true[/code],则启用各向异性。各向异性会改变镜面反射斑点的形状并" "将其与切线空间对其。可用于拉丝铝材和毛发反射。\n" "[b]注意:[/b]各向异性需要网格切线才能正常工作。如果网格中不包含切线,各向异性" "效果就会看上去有问题。\n" "[b]注意:[/b]材质的各向异性不应与纹理的各向异性过滤相混淆。纹理各向异性过滤的" "启用方法是,在“文件系统”面板中选中纹理,然后在“导入”面板中勾选[b]各向异性[/b]" "复选框,然后点击[b]重新导入[/b]。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture that offsets the tangent map for anisotropy calculations and " "optionally controls the anisotropy effect (if an alpha channel is present). " "The flowmap texture is expected to be a derivative map, with the red channel " "representing distortion on the X axis and green channel representing " "distortion on the Y axis. Values below 0.5 will result in negative " "distortion, whereas values above 0.5 will result in positive distortion.\n" "If present, the texture's alpha channel will be used to multiply the " "strength of the [member anisotropy] effect. Fully opaque pixels will keep " "the anisotropy effect's original strength while fully transparent pixels " "will disable the anisotropy effect entirely. The flowmap texture's blue " "channel is ignored." msgstr "" "用于对切线图进行偏移的纹理,用于各向异性的计算,(如果存在 Alpha 通道)还可以" "控制各向异性的效果。Flowmap 方向图纹理应该是一张派生图,红色通道表示 X 轴上的" "变形、绿色通道表示 Y 轴上的变形。小于 0.5 的值会朝负方向进行变形,而大于 0.5 " "的值则朝正方向变形。\n" "纹理的 Alpha 通道如果存在,则会用于与 [member anisotropy] 效果的强度相乘。完" "全不透明的像素会保持原始强度,而完全透明的像素则会完全禁用各向异性效果。方向" "图纹理的蓝色通道会被忽略。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], ambient occlusion is enabled. Ambient occlusion " "darkens areas based on the [member ao_texture]." msgstr "" "如果 [code]true[/code],启用环境遮挡。环境遮挡根据 [member ao_texture] 使区域" "变暗。" #: doc/classes/SpatialMaterial.xml msgid "" "Amount that ambient occlusion affects lighting from lights. If [code]0[/" "code], ambient occlusion only affects ambient light. If [code]1[/code], " "ambient occlusion affects lights just as much as it affects ambient light. " "This can be used to impact the strength of the ambient occlusion effect, but " "typically looks unrealistic." msgstr "" "环境遮挡对灯光照明的影响程度。如果 [code]0[/code],环境遮挡只影响环境光。如" "果 [code]1[/code],环境遮挡对灯光的影响和对环境光的影响一样大。这可以用来影响" "环境遮挡效果的强度,但通常看起来不真实。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], use [code]UV2[/code] coordinates to look up from the " "[member ao_texture]." msgstr "" "如果 [code]true[/code],请使用 [code]UV2[/code] 坐标从[member ao_texture]中查" "找。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture that defines the amount of ambient occlusion for a given point on " "the object." msgstr "定义物体上给定点的环境遮挡量的纹理。" #: doc/classes/SpatialMaterial.xml msgid "" "Specifies the channel of the [member ao_texture] in which the ambient " "occlusion information is stored. This is useful when you store the " "information for multiple effects in a single texture. For example if you " "stored metallic in the red channel, roughness in the blue, and ambient " "occlusion in the green you could reduce the number of textures you use." msgstr "" "指定 [member ao_texture] 的通道,其中存储环境遮挡信息。当您在一个纹理中存储多" "个效果的信息时,这很有用。例如,如果您将金属效果存储在R通道中,将粗糙度存储在" "B通道中,将环境遮挡存储在G通道中,就可以减少您使用的纹理数量。" #: doc/classes/SpatialMaterial.xml msgid "" "If [member ProjectSettings.rendering/gles3/shaders/shader_compilation_mode] " "is [code]Synchronous[/code] (with or without cache), this determines how " "this material must behave in regards to asynchronous shader compilation.\n" "[constant ASYNC_MODE_VISIBLE] is the default and the best for most cases." msgstr "" "当 [member ProjectSettings.rendering/gles3/shaders/shader_compilation_mode] " "为 [code]Synchronous[/code](无论是否使用缓存)时,决定该材质在异步着色器编译" "时的行为。\n" "默认值是 [constant ASYNC_MODE_VISIBLE],也是大多数情况下的最佳值。" #: doc/classes/SpatialMaterial.xml msgid "" "Sets the strength of the clearcoat effect. Setting to [code]0[/code] looks " "the same as disabling the clearcoat effect." msgstr "设置清漆效果的强度。设置为 [code]0[/code] 与禁用清漆效果相同。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], clearcoat rendering is enabled. Adds a secondary " "transparent pass to the lighting calculation resulting in an added specular " "blob. This makes materials appear as if they have a clear layer on them that " "can be either glossy or rough.\n" "[b]Note:[/b] Clearcoat rendering is not visible if the material has [member " "flags_unshaded] set to [code]true[/code]." msgstr "" "如果 [code]true[/code],则启用清漆渲染。在照明计算中添加二级透明通路,从而导" "致添加镜面反射斑点。这使得材质看起来好像有一层透明层,可以是有光泽的也可以是" "粗糙的。\n" "[b]注意:[/b]如果材质将 [member flags_unshaded] 设置为 [code]true[/code],则" "透明涂层渲染不可见。" #: doc/classes/SpatialMaterial.xml msgid "" "Sets the roughness of the clearcoat pass. A higher value results in a " "smoother clearcoat while a lower value results in a rougher clearcoat." msgstr "" "设置清漆通道的粗糙度,数值越高,清漆越光滑,数值越低,清漆越粗糙。值越高,清" "漆越光滑,值越低,清漆越粗糙。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture that defines the strength of the clearcoat effect and the glossiness " "of the clearcoat. Strength is specified in the red channel while glossiness " "is specified in the green channel." msgstr "" "定义清漆效果的强度和清漆的光泽度的纹理。强度在红色通道中指定,光泽度在绿色通" "道中指定。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the shader will read depth texture at multiple points " "along the view ray to determine occlusion and parrallax. This can be very " "performance demanding, but results in more realistic looking depth mapping." msgstr "" "如果 [code]true[/code],着色器将在沿视图射线的多个点上读取深度纹理以确定遮挡" "和视差。这可能对性能要求很高,但会产生更逼真的深度映射。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], depth mapping is enabled (also called \"parallax " "mapping\" or \"height mapping\"). See also [member normal_enabled].\n" "[b]Note:[/b] Depth mapping is not supported if triplanar mapping is used on " "the same material. The value of [member depth_enabled] will be ignored if " "[member uv1_triplanar] is enabled." msgstr "" "如果 [code]true[/code],则启用深度映射(也称为“视差映射”或“高度映射”)。另见 " "[member normal_enabled]。\n" "[b]注意:[/b]如果在同一材质上使用三平面贴图,则不支持深度贴图。如果启用 " "[member uv1_triplanar],则 [member depth_enabled] 的值将被忽略。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], direction of the binormal is flipped before using in " "the depth effect. This may be necessary if you have encoded your binormals " "in a way that is conflicting with the depth effect." msgstr "" "如果 [code]true[/code],则在深度效果中使用之前会翻转副法线的方向。如果你对你" "的副法线的编码方式与深度效果有冲突,这可能是必要的。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], direction of the tangent is flipped before using in " "the depth effect. This may be necessary if you have encoded your tangents in " "a way that is conflicting with the depth effect." msgstr "" "如果 [code]true[/code],切线方向在深度效果中使用前会翻转。如果你对切线的编码" "方式与深度效果有冲突,这可能是必要的。" #: doc/classes/SpatialMaterial.xml msgid "" "Number of layers to use when using [member depth_deep_parallax] and the view " "direction is perpendicular to the surface of the object. A higher number " "will be more performance demanding while a lower number may not look as " "crisp." msgstr "" "使用 [member depth_deep_parallax] 且视图方向垂直于对象表面时使用的层数。较高" "的数字对性能的要求更高,而较低的数字可能看起来不那么清晰。" #: doc/classes/SpatialMaterial.xml msgid "" "Number of layers to use when using [member depth_deep_parallax] and the view " "direction is parallel to the surface of the object. A higher number will be " "more performance demanding while a lower number may not look as crisp." msgstr "" "使用 [member depth_deep_parallax] 且视图方向平行于对象表面时使用的层数。较高" "的数字对性能的要求更高,而较低的数字可能看起来不那么清晰。" #: doc/classes/SpatialMaterial.xml msgid "" "Scales the depth offset effect. A higher number will create a larger depth." msgstr "缩放深度偏移效果。更高的数字将创建更大的深度。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to determine depth at a given pixel. Depth is always stored in " "the red channel." msgstr "用来确定某个像素深度的纹理。深度总是存储在红色通道中。" #: doc/classes/SpatialMaterial.xml msgid "Texture that specifies the color of the detail overlay." msgstr "指定细节叠加的颜色的纹理。" #: doc/classes/SpatialMaterial.xml msgid "" "Specifies how the [member detail_albedo] should blend with the current " "[code]ALBEDO[/code]. See [enum BlendMode] for options." msgstr "" "指定 [member detail_albedo] 应如何与当前 [code]ALBEDO[/code] 混合。参阅 " "[enum BlendMode] 选项。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], enables the detail overlay. Detail is a second texture " "that gets mixed over the surface of the object based on [member " "detail_mask]. This can be used to add variation to objects, or to blend " "between two different albedo/normal textures." msgstr "" "如果[code]true[/code],启用细节叠加。Detail是基于[member detail_mask]在对象表" "面混合的第二个纹理。这可以用来给物体增加变化,或者在两种不同的反射率/法线纹理" "之间进行混合。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to specify how the detail textures get blended with the base " "textures." msgstr "纹理用于指定细节纹理与基础纹理的混合方式。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture that specifies the per-pixel normal of the detail overlay.\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y+, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "指定细节叠加层每像素法线的纹理。\n" "[b]注意:[/b]Godot 希望法线贴图使用 X+、Y+ 和 Z+ 坐标。请参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]该页[/url],了解流行" "引擎所期望的法线贴图坐标的比较。" #: doc/classes/SpatialMaterial.xml msgid "" "Specifies whether to use [code]UV[/code] or [code]UV2[/code] for the detail " "layer. See [enum DetailUV] for options." msgstr "" "指定细节层是使用[code]UV[/code]还是[code]UV2[/code]。选项请参阅[enum " "DetailUV]。" #: doc/classes/SpatialMaterial.xml msgid "" "Distance at which the object appears fully opaque.\n" "[b]Note:[/b] If [code]distance_fade_max_distance[/code] is less than " "[code]distance_fade_min_distance[/code], the behavior will be reversed. The " "object will start to fade away at [code]distance_fade_max_distance[/code] " "and will fully disappear once it reaches [code]distance_fade_min_distance[/" "code]." msgstr "" "物体看起来完全不透明的距离。\n" "[b]注意:[/b]如果 [code]distance_fade_max_distance[/code] 小于 " "[code]distance_fade_min_distance[/code],则行为相反。物体将在 " "[code]distance_fade_max_distance[/code] 处开始逐渐消失,并在到达 " "[code]distance_fade_min_distance[/code] 时完全消失。" #: doc/classes/SpatialMaterial.xml msgid "" "Distance at which the object starts to become visible. If the object is less " "than this distance away, it will be invisible.\n" "[b]Note:[/b] If [code]distance_fade_min_distance[/code] is greater than " "[code]distance_fade_max_distance[/code], the behavior will be reversed. The " "object will start to fade away at [code]distance_fade_max_distance[/code] " "and will fully disappear once it reaches [code]distance_fade_min_distance[/" "code]." msgstr "" "物体开始变得可见的距离。如果物体的距离小于这个距离,它将是不可见的。\n" "[b]注意:[/b]如果 [code]distance_fade_min_distance[/code] 大于 " "[code]distance_fade_max_distance[/code],则行为将相反。物体将在 " "[code]distance_fade_max_distance[/code] 处开始逐渐消失,并在到达 " "[code]distance_fade_min_distance[/code] 时完全消失。" #: doc/classes/SpatialMaterial.xml msgid "" "Specifies which type of fade to use. Can be any of the [enum " "DistanceFadeMode]s." msgstr "指定要使用的淡入淡出类型。可以是任何一个[enum DistanceFadeMode]。" #: doc/classes/SpatialMaterial.xml msgid "The emitted light's color. See [member emission_enabled]." msgstr "发出的光的颜色。参阅[member emission_enabled]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the body emits light. Emitting light makes the object " "appear brighter. The object can also cast light on other objects if a " "[GIProbe] or [BakedLightmap] is used and this object is used in baked " "lighting." msgstr "" "如果 [code]true[/code],物体会发光。发光使物体看起来更亮。如果使用 [GIProbe] " "或 [BakedLightmap] 并且此对象用于烘焙照明,则该对象还可以将光投射到其他对象" "上。" #: doc/classes/SpatialMaterial.xml msgid "The emitted light's strength. See [member emission_enabled]." msgstr "发出的光的强度。参阅[member emission_enabled]。" #: doc/classes/SpatialMaterial.xml msgid "Use [code]UV2[/code] to read from the [member emission_texture]." msgstr "使用[code]UV2[/code]从[member emission_texture]中读取。" #: doc/classes/SpatialMaterial.xml msgid "" "Sets how [member emission] interacts with [member emission_texture]. Can " "either add or multiply. See [enum EmissionOperator] for options." msgstr "" "设置[member emission]与[member emission_texture]的交互方式。可以是加法或乘" "法。选项参阅 [enum EmissionOperator] 。" #: doc/classes/SpatialMaterial.xml msgid "Texture that specifies how much surface emits light at a given point." msgstr "纹理,指定某点的表面发光的程度。" #: doc/classes/SpatialMaterial.xml msgid "" "Forces a conversion of the [member albedo_texture] from sRGB space to linear " "space." msgstr "强制将 [member albedo_texture] 从sRGB空间转换为线性空间。" #: doc/classes/SpatialMaterial.xml msgid "Enables signed distance field rendering shader." msgstr "启用有符号距离场渲染着色器。" #: doc/classes/SpatialMaterial.xml msgid "If [code]true[/code], the object receives no ambient light." msgstr "如果[code]true[/code],则对象不接收环境光。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the object receives no shadow that would otherwise be " "cast onto it." msgstr "如果[code]true[/code],则对象不会收到投射到其上的阴影。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the shader will compute extra operations to make sure " "the normal stays correct when using a non-uniform scale. Only enable if " "using non-uniform scaling." msgstr "" "如果 [code]true[/code],着色器将计算额外的操作,以确保在使用非均匀比例时法线" "保持正确。仅在使用非均匀缩放时启用。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the object is rendered at the same size regardless of " "distance." msgstr "如果[code]true[/code],则无论距离远近,对象都以相同的尺寸呈现。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], transparency is enabled on the body. See also [member " "params_blend_mode]." msgstr "" "如果[code]true[/code],则启用物体的透明度。参阅 [member params_blend_mode]。" #: doc/classes/SpatialMaterial.xml msgid "If [code]true[/code], the object is unaffected by lighting." msgstr "如果 [code]true[/code],则物体不受光照影响。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], render point size can be changed.\n" "[b]Note:[/b] This is only effective for objects whose geometry is point-" "based rather than triangle-based. See also [member params_point_size]." msgstr "" "如果[code]true[/code],可以改变渲染点的大小。\n" "[b]注意:[/b]这只对几何体是基于点而不是基于三角形的对象有效。参阅[member " "params_point_size]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], enables the \"shadow to opacity\" render mode where " "lighting modifies the alpha so shadowed areas are opaque and non-shadowed " "areas are transparent. Useful for overlaying shadows onto a camera feed in " "AR." msgstr "" "如果 [code]true[/code],启用 \"阴影到不透明度 \"的渲染模式,在该模式下,光照" "会修改 alpha,使阴影区域不透明,非阴影区域透明。对于在AR中把阴影叠加到相机画" "面上很有用。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], lighting is calculated per vertex rather than per " "pixel. This may increase performance on low-end devices, especially for " "meshes with a lower polygon count. The downside is that shading becomes much " "less accurate, with visible linear interpolation between vertices that are " "joined together. This can be compensated by ensuring meshes have a " "sufficient level of subdivision (but not too much, to avoid reducing " "performance). Some material features are also not supported when vertex " "shading is enabled.\n" "See also [member ProjectSettings.rendering/quality/shading/" "force_vertex_shading] which can globally enable vertex shading on all " "materials.\n" "[b]Note:[/b] By default, vertex shading is enforced on mobile platforms by " "[member ProjectSettings.rendering/quality/shading/force_vertex_shading]'s " "[code]mobile[/code] override.\n" "[b]Note:[/b] [member flags_vertex_lighting] has no effect if [member " "flags_unshaded] is [code]true[/code]." msgstr "" "如果为 [code]true[/code],会按顶点计算光照,而不是按像素。可能在低端设备上提" "升性能,尤其是针对多边形数量较低的网格。缺点是着色精度会大幅下降,相连的顶点" "间会有可见的线性插值。可以通过确保网格有足够的细分层级来补偿(但层级不能过" "多,否则会降低性能)。启用顶点着色时,不支持某些材质特性。\n" "另请参阅 [member ProjectSettings.rendering/quality/shading/" "force_vertex_shading],可以全局启用对所有材质的顶点着色。\n" "[b]注意:[/b]默认情况下,[member ProjectSettings.rendering/quality/shading/" "force_vertex_shading] 的 [code]mobile[/code] 覆盖项会强制在移动平台上启用顶点" "着色。\n" "[b]注意:[/b]如果 [member flags_unshaded] 为 [code]true[/code],则 [member " "flags_vertex_lighting] 无效。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], triplanar mapping is calculated in world space rather " "than object local space. See also [member uv1_triplanar]." msgstr "" "如果 [code]true[/code],则在世界空间而不是物体局部空间中计算三平面映射。另见 " "[member uv1_triplanar]。" #: doc/classes/SpatialMaterial.xml msgid "" "A high value makes the material appear more like a metal. Non-metals use " "their albedo as the diffuse color and add diffuse to the specular " "reflection. With non-metals, the reflection appears on top of the albedo " "color. Metals use their albedo as a multiplier to the specular reflection " "and set the diffuse color to black resulting in a tinted reflection. " "Materials work better when fully metal or fully non-metal, values between " "[code]0[/code] and [code]1[/code] should only be used for blending between " "metal and non-metal sections. To alter the amount of reflection use [member " "roughness]." msgstr "" "高值使材质看起来更像金属。非金属使用其反射率作为漫射色,并在镜面反射上添加漫" "射。对于非金属,反射出现在反照率颜色之上。金属使用其反射率作为镜面反射的倍" "数,并将漫射色设置为黑色,从而产生有色反射。材质在全金属或全非金属时效果更" "好,介于 [code]0[/code] 和 [code]1[/code] 之间的值只能用于金属和非金属部分之" "间的混合。要改变反射量,请使用[member roughness]。" #: doc/classes/SpatialMaterial.xml msgid "" "Sets the size of the specular lobe. The specular lobe is the bright spot " "that is reflected from light sources.\n" "[b]Note:[/b] Unlike [member metallic], this is not energy-conserving, so it " "should be left at [code]0.5[/code] in most cases. See also [member " "roughness]." msgstr "" "设置镜面反射光叶的大小。镜面反射光叶是光源反射的亮点。\n" "[b]注意:[/b]这与 [member metallic] 不同,能量不守恒,所以在大多数情况下,应" "该将其保留在 [code]0.5[/code]。请参阅 [member roughness]。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to specify metallic for an object. This is multiplied by " "[member metallic]." msgstr "用于指定对象的金属质感。此值乘[member metallic]。" #: doc/classes/SpatialMaterial.xml msgid "" "Specifies the channel of the [member metallic_texture] in which the metallic " "information is stored. This is useful when you store the information for " "multiple effects in a single texture. For example if you stored metallic in " "the red channel, roughness in the blue, and ambient occlusion in the green " "you could reduce the number of textures you use." msgstr "" "指定存储金属信息的 [member metallic_texture] 的通道。当您在一个纹理中存储多个" "效果的信息时,这很有用。例如,如果您将金属效果存储在红色通道中,将粗糙度存储" "在蓝色通道中,将环境遮挡存储在绿色通道中,就可以减少您使用的纹理数量。" #: doc/classes/SpatialMaterial.xml msgid "If [code]true[/code], normal mapping is enabled." msgstr "如果[code]true[/code],则启用法线映射。" #: doc/classes/SpatialMaterial.xml msgid "The strength of the normal map's effect." msgstr "法线贴图的效果强度。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to specify the normal at a given pixel. The " "[code]normal_texture[/code] only uses the red and green channels; the blue " "and alpha channels are ignored. The normal read from [code]normal_texture[/" "code] is oriented around the surface normal provided by the [Mesh].\n" "[b]Note:[/b] The mesh must have both normals and tangents defined in its " "vertex data. Otherwise, the normal map won't render correctly and will only " "appear to darken the whole surface. If creating geometry with [SurfaceTool], " "you can use [method SurfaceTool.generate_normals] and [method SurfaceTool." "generate_tangents] to automatically generate normals and tangents " "respectively.\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y+, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "用来指定像素点的法线的纹理。[code]normal_texture[/code] 只使用红色和绿色通" "道,忽略蓝色和 Alpha 通道。从 [code]normal_texture[/code] 读取的法线围绕 " "[Mesh] 提供的表面法线定向。\n" "[b]注意:[/b]Mesh 必须在其顶点数据中同时定义法线和切线。否则,法线贴图将无法" "正确渲染,会出现整个表面变暗的情况。如果用 [SurfaceTool] 创建几何体,可以使" "用 [method SurfaceTool.generate_normals] 和 [method SurfaceTool." "generate_tangents] 来分别自动生成法线和切线。\n" "[b]注意:[/b]Godot 希望法线贴图使用 X+、Y+ 和 Z+ 坐标。请参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]该页[/url],了解流行" "引擎所期望的法线贴图坐标的比较。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the shader will keep the scale set for the mesh. " "Otherwise the scale is lost when billboarding. Only applies when [member " "params_billboard_mode] is [constant BILLBOARD_ENABLED]." msgstr "" "如果 [code]true[/code],着色器将保持为网格缩放设置。否则,当做广告牌时,缩放" "会丢失。仅在 [member params_billboard_mode] 为 [constant BILLBOARD_ENABLED] " "时适用。" #: doc/classes/SpatialMaterial.xml msgid "" "Controls how the object faces the camera. See [enum BillboardMode].\n" "[b]Note:[/b] Billboard mode is not suitable for VR because the left-right " "vector of the camera is not horizontal when the screen is attached to your " "head instead of on the table. See [url=https://github.com/godotengine/godot/" "issues/41567]GitHub issue #41567[/url] for details." msgstr "" "控制对象如何面向摄像机。参阅[enum BillboardMode]。\n" "[b]注意:[/b]广告牌模式不适合VR,因为当屏幕贴在你的头部而不是在桌子上时,摄像" "机的左右向量不是水平的。参阅[url=https://github.com/godotengine/godot/" "issues/41567]GitHub issue #41567[/url]。" #: doc/classes/SpatialMaterial.xml msgid "" "The material's blend mode.\n" "[b]Note:[/b] Values other than [code]Mix[/code] force the object into the " "transparent pipeline. See [enum BlendMode]." msgstr "" "材质的混合模式。\n" "[b]注意:[/b]除 [code]Mix[/code] 以外的值会强制对象进入透明管道。参阅 [enum " "BlendMode]。" #: doc/classes/SpatialMaterial.xml msgid "" "Which side of the object is not drawn when backfaces are rendered. See [enum " "CullMode]." msgstr "渲染背面时,不绘制对象的哪一面。参阅 [enum CullMode]。" #: doc/classes/SpatialMaterial.xml msgid "" "Determines when depth rendering takes place. See [enum DepthDrawMode]. See " "also [member flags_transparent]." msgstr "" "确定深度渲染发生的时间。请参阅深度绘制模式 [enum DepthDrawMode] 。另见" "[member flags_transparent]。" #: doc/classes/SpatialMaterial.xml msgid "" "The algorithm used for diffuse light scattering. See [enum DiffuseMode]." msgstr "用于漫反射光散射的算法。参见 [enum DiffuseMode]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], enables the vertex grow setting. See [member " "params_grow_amount]." msgstr "" "如果[code]true[/code],启用顶点生长设置。参见[member params_grow_amount]。" #: doc/classes/SpatialMaterial.xml msgid "Grows object vertices in the direction of their normals." msgstr "沿着法线的方向生长对象顶点。" #: doc/classes/SpatialMaterial.xml msgid "Currently unimplemented in Godot." msgstr "目前在 Godot 中未实现。" #: doc/classes/SpatialMaterial.xml msgid "The point size in pixels. See [member flags_use_point_size]." msgstr "点的大小,以像素为单位。参见[member flags_use_point_size]。" #: doc/classes/SpatialMaterial.xml msgid "The method for rendering the specular blob. See [enum SpecularMode]." msgstr "镜面反射斑点的渲染方法。请参阅 [enum SpecularMode]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the shader will discard all pixels that have an alpha " "value less than [member params_alpha_scissor_threshold]." msgstr "" "如果[code]true[/code],着色器将丢弃所有alpha值小于[member " "params_alpha_scissor_threshold]的像素。" #: doc/classes/SpatialMaterial.xml msgid "" "The number of horizontal frames in the particle sprite sheet. Only enabled " "when using [constant BILLBOARD_PARTICLES]. See [member " "params_billboard_mode]." msgstr "" "粒子精灵表中的水平帧数。仅在使用 [constant BILLBOARD_PARTICLES] 时启用。参阅" "[member params_billboard_mode]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], particle animations are looped. Only enabled when " "using [constant BILLBOARD_PARTICLES]. See [member params_billboard_mode]." msgstr "" "如果 [code]true[/code],循环粒子动画。仅在使用 [constant " "BILLBOARD_PARTICLES] 时启用。参阅[member params_billboard_mode]。" #: doc/classes/SpatialMaterial.xml msgid "" "The number of vertical frames in the particle sprite sheet. Only enabled " "when using [constant BILLBOARD_PARTICLES]. See [member " "params_billboard_mode]." msgstr "" "粒子精灵表中的垂直帧数。仅在使用 [constant BILLBOARD_PARTICLES] 时启用。参阅" "[member params_billboard_mode]。" #: doc/classes/SpatialMaterial.xml msgid "" "Distance over which the fade effect takes place. The larger the distance the " "longer it takes for an object to fade." msgstr "渐变效果发生的距离。距离越大,物体褪色的时间越长。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the proximity fade effect is enabled. The proximity " "fade effect fades out each pixel based on its distance to another object." msgstr "" "如果[code]true[/code],则启用接近淡出效果。邻近淡出效果会根据每个像素与另一个" "对象的距离淡出。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the refraction effect is enabled. Refraction distorts " "transparency based on light from behind the object. When using the GLES3 " "backend, the material's roughness value will affect the blurriness of the " "refraction. Higher roughness values will make the refraction look blurrier." msgstr "" "如果[code]true[/code],则启用折射效果。折射是根据来自物体后面的光线来扭曲透明" "度的。当使用GLES3后端时,材质的粗糙度值会影响折射的模糊度。较高的粗糙度值会使" "折射看起来更模糊。" #: doc/classes/SpatialMaterial.xml msgid "" "The strength of the refraction effect. Higher values result in a more " "distorted appearance for the refraction." msgstr "折射效果的强度。较高的值会使折射的表现更加扭曲。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture that controls the strength of the refraction per-pixel. Multiplied " "by [member refraction_scale]." msgstr "控制每个像素折射强度的纹理。乘以[member refraction_scale]。" #: doc/classes/SpatialMaterial.xml msgid "" "Specifies the channel of the [member refraction_texture] in which the " "refraction information is stored. This is useful when you store the " "information for multiple effects in a single texture. For example if you " "stored metallic in the red channel, roughness in the blue, and ambient " "occlusion in the green you could reduce the number of textures you use." msgstr "" "指定存储折射信息的[member refraction_texture]的通道。当你在纹理中存储多种效果" "的信息时,这很有用。例如,如果你在红色通道中存储金属效果,在蓝色通道中存储粗" "糙度,在绿色通道中存储环境遮挡,就可以减少使用纹理的数量。" #: doc/classes/SpatialMaterial.xml msgid "Sets the strength of the rim lighting effect." msgstr "设置边缘照明效果的强度。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], rim effect is enabled. Rim lighting increases the " "brightness at glancing angles on an object.\n" "[b]Note:[/b] Rim lighting is not visible if the material has [member " "flags_unshaded] set to [code]true[/code]." msgstr "" "如果 [code]true[/code],则启用边缘效果。边缘照明增加了物体上掠过角度的亮" "度。\n" "[b]注意:[/b]如果材质将 [member flags_unshaded] 设置为 [code]true[/code],则" "边缘光照不可见。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to set the strength of the rim lighting effect per-pixel. " "Multiplied by [member rim]." msgstr "纹理用于设置每个像素的边缘光照效果的强度。乘以[member rim]。" #: doc/classes/SpatialMaterial.xml msgid "" "The amount of to blend light and albedo color when rendering rim effect. If " "[code]0[/code] the light color is used, while [code]1[/code] means albedo " "color is used. An intermediate value generally works best." msgstr "" "渲染边缘效果时,混合光照色和反射色的数量。如果[code]0[/code]表示使用光色," "[code]1[/code]表示使用反照色。一般来说,中间值的效果最好。" #: doc/classes/SpatialMaterial.xml msgid "" "Surface reflection. A value of [code]0[/code] represents a perfect mirror " "while a value of [code]1[/code] completely blurs the reflection. See also " "[member metallic]." msgstr "" "表面反射。[code]0[/code] 值表示一面完美的镜像,而 [code]1[/code] 值则完全模糊" "了反射。另请参阅[member metallic]。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to control the roughness per-pixel. Multiplied by [member " "roughness]." msgstr "用于控制每个像素粗糙度的纹理。乘以[member roughness]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], subsurface scattering is enabled. Emulates light that " "penetrates an object's surface, is scattered, and then emerges." msgstr "" "如果[code]true[/code],则启用次表面散射。模拟光线穿透物体表面,被散射,然后出" "现。" #: doc/classes/SpatialMaterial.xml msgid "The strength of the subsurface scattering effect." msgstr "地下散射效应的强度。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to control the subsurface scattering strength. Stored in the " "red texture channel. Multiplied by [member subsurf_scatter_strength]." msgstr "" "用于控制次表面散射强度的纹理。存储在红色纹理通道中。乘以[member " "subsurf_scatter_strength]。" #: doc/classes/SpatialMaterial.xml msgid "" "The color used by the transmission effect. Represents the light passing " "through an object." msgstr "传输效果使用的颜色。表示穿过物体的光。" #: doc/classes/SpatialMaterial.xml msgid "If [code]true[/code], the transmission effect is enabled." msgstr "如果 [code]true[/code],则启用传输效果。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture used to control the transmission effect per-pixel. Added to [member " "transmission]." msgstr "纹理用于控制每个像素的传输效果。添加到[member transmission]。" #: doc/classes/SpatialMaterial.xml msgid "" "How much to offset the [code]UV[/code] coordinates. This amount will be " "added to [code]UV[/code] in the vertex function. This can be used to offset " "a texture." msgstr "" "[code]UV[/code]坐标的偏移量。这个量将被添加到顶点函数中的 [code]UV[/code] " "中。这可以用来偏移纹理。" #: doc/classes/SpatialMaterial.xml msgid "" "How much to scale the [code]UV[/code] coordinates. This is multiplied by " "[code]UV[/code] in the vertex function." msgstr "" "缩放 [code]UV[/code] 坐标的多少。这个值乘以顶点函数中的[code]UV[/code]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], instead of using [code]UV[/code] textures will use a " "triplanar texture lookup to determine how to apply textures. Triplanar uses " "the orientation of the object's surface to blend between texture " "coordinates. It reads from the source texture 3 times, once for each axis " "and then blends between the results based on how closely the pixel aligns " "with each axis. This is often used for natural features to get a realistic " "blend of materials. Because triplanar texturing requires many more texture " "reads per-pixel it is much slower than normal UV texturing. Additionally, " "because it is blending the texture between the three axes, it is unsuitable " "when you are trying to achieve crisp texturing." msgstr "" "如果 [code]true[/code],纹理将不使用 [code]UV[/code],而是使用三平面纹理查找" "来确定如何应用纹理。三平面纹理使用对象表面的方向来混合纹理坐标之间。它从源纹" "理中读取3次,每个轴一次,然后根据像素与每个轴的紧密程度在结果之间进行混合。这" "通常用于自然特征,以获得真实的材质混合。由于三平面纹理处理每一个像素需要更多" "的纹理读取,所以它比普通的UV纹理处理要慢得多。此外,由于它是在三个轴之间混合" "纹理,所以当你试图实现清晰的纹理时,它是不合适的。" #: doc/classes/SpatialMaterial.xml msgid "" "A lower number blends the texture more softly while a higher number blends " "the texture more sharply." msgstr "较低的数字能使纹理更加柔和,而较高的数字则能使纹理更加锐利。" #: doc/classes/SpatialMaterial.xml msgid "" "How much to offset the [code]UV2[/code] coordinates. This amount will be " "added to [code]UV2[/code] in the vertex function. This can be used to offset " "a texture." msgstr "" "[code]UV2[/code]坐标的偏移量。这个量将被添加到顶点函数中的 [code]UV2[/code] " "中。这可以用来偏移纹理。" #: doc/classes/SpatialMaterial.xml msgid "" "How much to scale the [code]UV2[/code] coordinates. This is multiplied by " "[code]UV2[/code] in the vertex function." msgstr "" "缩放 [code]UV[/code] 坐标的多少。这个值乘以顶点函数中的[code]UV[/code]。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], instead of using [code]UV2[/code] textures will use a " "triplanar texture lookup to determine how to apply textures. Triplanar uses " "the orientation of the object's surface to blend between texture " "coordinates. It reads from the source texture 3 times, once for each axis " "and then blends between the results based on how closely the pixel aligns " "with each axis. This is often used for natural features to get a realistic " "blend of materials. Because triplanar texturing requires many more texture " "reads per-pixel it is much slower than normal UV texturing. Additionally, " "because it is blending the texture between the three axes, it is unsuitable " "when you are trying to achieve crisp texturing." msgstr "" "如果 [code]true[/code],纹理将不使用 [code]UV[/code],而是使用三平面纹理查找" "来确定如何应用纹理。三平面纹理使用对象表面的方向来混合纹理坐标之间。它从源纹" "理中读取 3 次,每个轴一次,然后根据像素与每个轴的紧密程度在结果之间进行混合。" "这通常用于自然特征,以获得真实的材质混合。由于三平面纹理处理每一个像素需要更" "多的纹理读取,所以它比普通的 UV 纹理处理要慢得多。此外,由于它是在三个轴之间" "混合纹理,所以当你试图实现清晰的纹理时,它是不合适的。" #: doc/classes/SpatialMaterial.xml msgid "" "If [code]true[/code], the model's vertex colors are processed as sRGB mode." msgstr "如果[code]true[/code],则模型的顶点颜色将作为 sRGB 模式处理。" #: doc/classes/SpatialMaterial.xml msgid "If [code]true[/code], the vertex color is used as albedo color." msgstr "如果[code]true[/code],则使用顶点颜色作为反射率颜色。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel color." msgstr "指定每个像素颜色的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel metallic value." msgstr "指定每个像素金属值的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel roughness value." msgstr "指定每个像素粗糙度值的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel emission color." msgstr "指定每个像素发射颜色的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel normal vector." msgstr "指定每像素法向量的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel rim value." msgstr "指定每个像素边缘值的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel clearcoat value." msgstr "指定每像素清漆值的纹理。" #: doc/classes/SpatialMaterial.xml msgid "" "Texture specifying per-pixel flowmap direction for use with [member " "anisotropy]." msgstr "指定每个像素流图方向的纹理,用于[member anisotropy]。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel ambient occlusion value." msgstr "指定每个像素环境遮挡值的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel depth." msgstr "指定每个像素深度的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel subsurface scattering." msgstr "指定每个像素的亚表面散射的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel transmission color." msgstr "指定每个像素传输颜色的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel refraction strength." msgstr "指定每个像素折射强度的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel detail mask blending value." msgstr "指定每像素细节蒙版混合值的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel detail color." msgstr "指定每个像素细节颜色的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Texture specifying per-pixel detail normal." msgstr "指定每个像素细节法线的纹理。" #: doc/classes/SpatialMaterial.xml msgid "Represents the size of the [enum TextureParam] enum." msgstr "表示[enum TextureParam]枚举的大小。" #: doc/classes/SpatialMaterial.xml msgid "Use [code]UV[/code] with the detail texture." msgstr "使用[code]UV[/code]与细节纹理。" #: doc/classes/SpatialMaterial.xml msgid "Use [code]UV2[/code] with the detail texture." msgstr "使用[code]UV2[/code]与细节纹理。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member flags_transparent]." msgstr "用于设置 [member flags_transparent] 的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member emission_enabled]." msgstr "用于设置[member emission_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member normal_enabled]." msgstr "用于设置[member normal_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member rim_enabled]." msgstr "用于设置[member rim_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member clearcoat_enabled]." msgstr "用于设置[member clearcoat_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member anisotropy_enabled]." msgstr "用于设置 [member anisotropy_enabled] 的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member ao_enabled]." msgstr "用于设置[member ao_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member depth_enabled]." msgstr "用于设置 [member depth_enabled] 的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member subsurf_scatter_enabled]." msgstr "用于设置[member subsurf_scatter_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member transmission_enabled]." msgstr "用于设置 [member transmission_enabled] 的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member refraction_enabled]." msgstr "用于设置[member refraction_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "Constant for setting [member detail_enabled]." msgstr "用于设置[member detail_enabled]的常量。" #: doc/classes/SpatialMaterial.xml msgid "" "Default blend mode. The color of the object is blended over the background " "based on the object's alpha value." msgstr "默认的混合模式。根据对象的 Alpha 值,在背景上混合对象的颜色。" #: doc/classes/SpatialMaterial.xml msgid "The color of the object is added to the background." msgstr "对象的颜色被添加到背景中。" #: doc/classes/SpatialMaterial.xml msgid "The color of the object is subtracted from the background." msgstr "从背景中减去对象的颜色。" #: doc/classes/SpatialMaterial.xml msgid "The color of the object is multiplied by the background." msgstr "对象的颜色与背景相乘。" #: doc/classes/SpatialMaterial.xml msgid "Default depth draw mode. Depth is drawn only for opaque objects." msgstr "默认的深度绘制模式。深度只针对不透明的对象绘制。" #: doc/classes/SpatialMaterial.xml msgid "Depth draw is calculated for both opaque and transparent objects." msgstr "不透明和透明的对象都要计算深度绘制。" #: doc/classes/SpatialMaterial.xml msgid "No depth draw." msgstr "没有深度的绘制。" #: doc/classes/SpatialMaterial.xml msgid "" "For transparent objects, an opaque pass is made first with the opaque parts, " "then transparency is drawn." msgstr "对于透明对象,首先对不透明部分进行不透明传递,然后绘制透明度。" #: doc/classes/SpatialMaterial.xml msgid "Default cull mode. The back of the object is culled when not visible." msgstr "默认的裁剪模式。当不可见时,对象的背面会被剔除。" #: doc/classes/SpatialMaterial.xml msgid "The front of the object is culled when not visible." msgstr "物体的正面不可见时,就会被剔除。" #: doc/classes/SpatialMaterial.xml msgid "No culling is performed." msgstr "不进行剔除。" #: doc/classes/SpatialMaterial.xml msgid "" "No lighting is used on the object. Color comes directly from [code]ALBEDO[/" "code]." msgstr "物体上不使用照明。颜色直接来自 [code]ALBEDO[/code]。" #: doc/classes/SpatialMaterial.xml msgid "" "Lighting is calculated per-vertex rather than per-pixel. This can be used to " "increase the speed of the shader at the cost of quality." msgstr "" "光照是按顶点计算的,而不是按像素计算。这可用于以牺牲质量为代价提高着色器的速" "度。" #: doc/classes/SpatialMaterial.xml msgid "Set [code]ALBEDO[/code] to the per-vertex color specified in the mesh." msgstr "将 [code]ALBEDO[/code] 设置为网格中指定的每顶点颜色。" #: doc/classes/SpatialMaterial.xml msgid "" "Vertex color is in sRGB space and needs to be converted to linear. Only " "applies in the GLES3 renderer." msgstr "顶点颜色在sRGB空间,需要转成线性。仅适用于 GLES3 渲染器。" #: doc/classes/SpatialMaterial.xml msgid "" "Uses point size to alter the size of primitive points. Also changes the " "albedo texture lookup to use [code]POINT_COORD[/code] instead of [code]UV[/" "code]." msgstr "" "使用点大小来改变图元点的大小。同时改变反射率纹理查找,使用 " "[code]POINT_COORD[/code] 而不是 [code]UV[/code]。" #: doc/classes/SpatialMaterial.xml msgid "" "Object is scaled by depth so that it always appears the same size on screen." msgstr "按深度缩放对象,使其在屏幕上显示的大小始终相同。" #: doc/classes/SpatialMaterial.xml msgid "" "Shader will keep the scale set for the mesh. Otherwise the scale is lost " "when billboarding. Only applies when [member params_billboard_mode] is " "[constant BILLBOARD_ENABLED]." msgstr "" "着色器将保持为网格的缩放设置。否则,当做广告牌时,缩放会丢失。仅在 [member " "params_billboard_mode] 为 [constant BILLBOARD_ENABLED] 时适用。" #: doc/classes/SpatialMaterial.xml msgid "" "Use triplanar texture lookup for all texture lookups that would normally use " "[code]UV[/code]." msgstr "对所有通常会使用[code]UV[/code]的纹理查找使用三平面纹理查找。" #: doc/classes/SpatialMaterial.xml msgid "" "Use triplanar texture lookup for all texture lookups that would normally use " "[code]UV2[/code]." msgstr "对所有通常会使用[code]UV2[/code]的纹理查找使用三平面纹理查找。" #: doc/classes/SpatialMaterial.xml msgid "" "Use [code]UV2[/code] coordinates to look up from the [member ao_texture]." msgstr "使用[code]UV2[/code]坐标从[member ao_texture]中查找。" #: doc/classes/SpatialMaterial.xml msgid "" "Use [code]UV2[/code] coordinates to look up from the [member " "emission_texture]." msgstr "使用[code]UV2[/code]坐标,从[member emission_texture]中查找。" #: doc/classes/SpatialMaterial.xml msgid "Use alpha scissor. Set by [member params_use_alpha_scissor]." msgstr "使用alpha剪刀。由 [member params_use_alpha_scissor] 设置。" #: doc/classes/SpatialMaterial.xml msgid "" "Use world coordinates in the triplanar texture lookup instead of local " "coordinates." msgstr "在三平面纹理查找中使用世界坐标而不是局部坐标。" #: doc/classes/SpatialMaterial.xml msgid "Forces the shader to convert albedo from sRGB space to linear space." msgstr "强制着色器将反射率从sRGB空间转换为线性空间。" #: doc/classes/SpatialMaterial.xml msgid "Disables receiving shadows from other objects." msgstr "禁用从其他对象接收阴影。" #: doc/classes/SpatialMaterial.xml msgid "Disables receiving ambient light." msgstr "禁用接收环境光。" #: doc/classes/SpatialMaterial.xml msgid "Ensures that normals appear correct, even with non-uniform scaling." msgstr "确保法线显示正确,即使缩放比例不均匀。" #: doc/classes/SpatialMaterial.xml msgid "Enables the shadow to opacity feature." msgstr "启用阴影到不透明度功能。" #: doc/classes/SpatialMaterial.xml msgid "Default diffuse scattering algorithm." msgstr "默认的漫反射散射算法。" #: doc/classes/SpatialMaterial.xml msgid "Diffuse scattering ignores roughness." msgstr "漫散射忽略了粗糙度。" #: doc/classes/SpatialMaterial.xml msgid "Extends Lambert to cover more than 90 degrees when roughness increases." msgstr "当粗糙度增加时,将Lambert延伸到90度以上。" #: doc/classes/SpatialMaterial.xml msgid "Attempts to use roughness to emulate microsurfacing." msgstr "尝试使用粗糙度来模拟微表面处理。" #: doc/classes/SpatialMaterial.xml msgid "Uses a hard cut for lighting, with smoothing affected by roughness." msgstr "使用硬切口进行照明,平滑度受粗糙度影响。" #: doc/classes/SpatialMaterial.xml msgid "Default specular blob." msgstr "默认镜面反射斑点。" #: doc/classes/SpatialMaterial.xml msgid "Older specular algorithm, included for compatibility." msgstr "旧的镜面反射算法,为了兼容而加入。" #: doc/classes/SpatialMaterial.xml msgid "Toon blob which changes size based on roughness." msgstr "基于粗糙度更改大小的 Toon 斑点。" #: doc/classes/SpatialMaterial.xml msgid "No specular blob." msgstr "无镜面反射斑点。" #: doc/classes/SpatialMaterial.xml msgid "Billboard mode is disabled." msgstr "广告牌模式被禁用。" #: doc/classes/SpatialMaterial.xml msgid "The object's Z axis will always face the camera." msgstr "对象的Z轴将始终面向相机。" #: doc/classes/SpatialMaterial.xml msgid "The object's X axis will always face the camera." msgstr "对象的X轴将始终面向相机。" #: doc/classes/SpatialMaterial.xml msgid "" "Used for particle systems when assigned to [Particles] and [CPUParticles] " "nodes. Enables [code]particles_anim_*[/code] properties.\n" "The [member ParticlesMaterial.anim_speed] or [member CPUParticles." "anim_speed] should also be set to a positive value for the animation to play." msgstr "" "当分配给[Particles]和[CPUParticles]节点时用于粒子系统。启用" "[code]particles_anim_*[/code]属性。\n" "为了播放动画,[member ParticlesMaterial.anim_speed]或[member CPUParticles." "anim_speed]也应该被设置为正值。" #: doc/classes/SpatialMaterial.xml msgid "Used to read from the red channel of a texture." msgstr "用来读取纹理的红色通道。" #: doc/classes/SpatialMaterial.xml msgid "Used to read from the green channel of a texture." msgstr "用来读取纹理的绿色通道。" #: doc/classes/SpatialMaterial.xml msgid "Used to read from the blue channel of a texture." msgstr "用来读取纹理的蓝色通道。" #: doc/classes/SpatialMaterial.xml msgid "Used to read from the alpha channel of a texture." msgstr "用来读取纹理的alpha通道。" #: doc/classes/SpatialMaterial.xml msgid "Adds the emission color to the color from the emission texture." msgstr "将发射颜色添加到发射纹理的颜色上。" #: doc/classes/SpatialMaterial.xml msgid "Multiplies the emission color by the color from the emission texture." msgstr "将发射颜色乘以发射纹理的颜色。" #: doc/classes/SpatialMaterial.xml msgid "Do not use distance fade." msgstr "不要使用距离淡化。" #: doc/classes/SpatialMaterial.xml msgid "" "Smoothly fades the object out based on each pixel's distance from the camera " "using the alpha channel." msgstr "根据每个像素与相机的距离,使用 Alpha 通道平滑地淡化对象。" #: doc/classes/SpatialMaterial.xml msgid "" "Smoothly fades the object out based on each pixel's distance from the camera " "using a dither approach. Dithering discards pixels based on a set pattern to " "smoothly fade without enabling transparency. On certain hardware this can be " "faster than [constant DISTANCE_FADE_PIXEL_ALPHA]." msgstr "" "根据每个像素与相机的距离,使用抖动方法平滑地淡化对象。抖动会根据设定的模式丢" "弃像素,在不启用透明的情况下平滑淡化。在某些硬件上,这比 [constant " "DISTANCE_FADE_PIXEL_ALPHA] 更快。" #: doc/classes/SpatialMaterial.xml msgid "" "Smoothly fades the object out based on the object's distance from the camera " "using a dither approach. Dithering discards pixels based on a set pattern to " "smoothly fade without enabling transparency. On certain hardware this can be " "faster than [constant DISTANCE_FADE_PIXEL_ALPHA]." msgstr "" "根据对象与相机的距离,使用抖动的方法平滑地淡化对象。抖动根据设定的模式丢弃像" "素,在不启用透明度的情况下平滑淡化。在某些硬件上,这可能比[constant " "DISTANCE_FADE_PIXEL_ALPHA]更快。" #: doc/classes/SpatialMaterial.xml msgid "" "The real conditioned shader needed on each situation will be sent for " "background compilation. In the meantime, a very complex shader that adapts " "to every situation will be used (\"ubershader\"). This ubershader is much " "slower to render, but will keep the game running without stalling to " "compile. Once shader compilation is done, the ubershader is replaced by the " "traditional optimized shader." msgstr "" "各个情况所需的实际条件着色器会被送往后台编译。此时会使用一个非常复杂、适用于" "任何情况的着色器(“超级着色器”)。超级着色器的渲染要慢上很多,但可以避免因编" "译而导致游戏运行停滞。着色器编译完成后,超级着色器就会被替换为传统的优化后的" "着色器。" #: doc/classes/SpatialMaterial.xml msgid "" "Anything with this material applied won't be rendered while this material's " "shader is being compiled.\n" "This is useful for optimization, in cases where the visuals won't suffer " "from having certain non-essential elements missing during the short time " "their shaders are being compiled." msgstr "" "编译该材质的着色器时,任何使用该材质的东西都不会进行渲染。\n" "常用于优化,适用于着色器编译时,短期缺少某些非关键性元素也不影响画面的情况。" #: doc/classes/SphereMesh.xml msgid "Class representing a spherical [PrimitiveMesh]." msgstr "表示球形 [PrimitiveMesh] 的类。" #: doc/classes/SphereMesh.xml msgid "Full height of the sphere." msgstr "球体的全高。" #: doc/classes/SphereMesh.xml msgid "" "If [code]true[/code], a hemisphere is created rather than a full sphere.\n" "[b]Note:[/b] To get a regular hemisphere, the height and radius of the " "sphere must be equal." msgstr "" "如果 [code]true[/code],则创建一个半球而不是一个完整的球体。\n" "[b]注:[/b]要得到一个规则的半球,球体的高度和半径必须相等。" #: doc/classes/SphereMesh.xml msgid "Number of radial segments on the sphere." msgstr "球体上的径向段数。" #: doc/classes/SphereMesh.xml msgid "Radius of sphere." msgstr "球体半径." #: doc/classes/SphereMesh.xml msgid "Number of segments along the height of the sphere." msgstr "沿着球体高度的段数。" #: doc/classes/SphereShape.xml msgid "Sphere shape for 3D collisions." msgstr "用于 3D 碰撞的球形。" #: doc/classes/SphereShape.xml msgid "" "Sphere shape for 3D collisions, which can be set into a [PhysicsBody] or " "[Area]. This shape is useful for modeling sphere-like 3D objects." msgstr "" "3D 碰撞的球体形状,可以设置为 [PhysicsBody] 或 [Area]。此形状对于模拟球状 3D " "对象很有用。" #: doc/classes/SphereShape.xml msgid "The sphere's radius. The shape's diameter is double the radius." msgstr "球体的半径。形状的直径是半径的两倍。" #: doc/classes/SpinBox.xml msgid "Numerical input text field." msgstr "数值输入文本字段。" #: doc/classes/SpinBox.xml msgid "" "SpinBox is a numerical input text field. It allows entering integers and " "floats.\n" "[b]Example:[/b]\n" "[codeblock]\n" "var spin_box = SpinBox.new()\n" "add_child(spin_box)\n" "var line_edit = spin_box.get_line_edit()\n" "line_edit.context_menu_enabled = false\n" "spin_box.align = LineEdit.ALIGN_RIGHT\n" "[/codeblock]\n" "The above code will create a [SpinBox], disable context menu on it and set " "the text alignment to right.\n" "See [Range] class for more options over the [SpinBox].\n" "[b]Note:[/b] [SpinBox] relies on an underlying [LineEdit] node. To theme a " "[SpinBox]'s background, add theme items for [LineEdit] and customize them.\n" "[b]Note:[/b] If you want to implement drag and drop for the underlying " "[LineEdit], you can use [method Control.set_drag_forwarding] on the node " "returned by [method get_line_edit]." msgstr "" "SpinBox 是输入数字的文本字段。允许输入整数和浮点数。\n" "[b]例子:[/b]\n" "[codeblock]\n" "var spin_box = SpinBox.new()\n" "add_child(spin_box)\n" "var line_edit = spin_box.get_line_edit()\n" "line_edit.context_menu_enabled = false\n" "spin_box.align = LineEdit.ALIGN_RIGHT\n" "[/codeblock]\n" "上面的代码将创建一个 [SpinBox]、禁用其上下文菜单,并将文本设置为右对齐。\n" "更多关于 [SpinBox] 的选项请参阅 [Range] 类。\n" "[b]注意:[/b][SpinBox] 依赖于内部的 [LineEdit] 节点。要为 [SpinBox] 的背景设" "置主题,请为 [LineEdit] 添加主题项,并对其进行定制。\n" "[b]注意:[/b]如果你想为内部的 [LineEdit] 节点实现拖放操作,可以在 [method " "get_line_edit] 返回的节点上使用 [method Control.set_drag_forwarding]。" #: doc/classes/SpinBox.xml msgid "Applies the current value of this [SpinBox]." msgstr "应用此 [SpinBox] 的当前值。" #: doc/classes/SpinBox.xml msgid "" "Returns the [LineEdit] instance from this [SpinBox]. You can use it to " "access properties and methods of [LineEdit].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回这个 [SpinBox] 中的 [LineEdit] 实例。你可以用它来访问 [LineEdit] 的属性和" "方法。\n" "[b]警告:[/b]这是一个必要的内部节点,移除和释放它可能会导致崩溃。如果你想隐藏" "它或它的任何子节点,请使用其 [member CanvasItem.visible] 属性。" #: doc/classes/SpinBox.xml msgid "Sets the text alignment of the [SpinBox]." msgstr "设置 [SpinBox] 的文本对齐方式。" #: doc/classes/SpinBox.xml msgid "" "If [code]true[/code], the [SpinBox] will be editable. Otherwise, it will be " "read only." msgstr "" "如果 [code]true[/code],则 [SpinBox] 将是可编辑的。否则,它将是只读的。" #: doc/classes/SpinBox.xml msgid "" "Adds the specified [code]prefix[/code] string before the numerical value of " "the [SpinBox]." msgstr "在 [SpinBox] 的数值前添加指定的 [code]prefix[/code] 字符串。" #: doc/classes/SpinBox.xml msgid "" "Adds the specified [code]suffix[/code] string after the numerical value of " "the [SpinBox]." msgstr "在 [SpinBox] 的数值后添加指定的 [code]suffix[/code] 字符串。" #: doc/classes/SpinBox.xml msgid "Sets a custom [Texture] for up and down arrows of the [SpinBox]." msgstr "为 [SpinBox] 的上下箭头设置自定义 [Texture]。" #: doc/classes/SplitContainer.xml msgid "Container for splitting and adjusting." msgstr "用于拆分和调整的容器。" #: doc/classes/SplitContainer.xml msgid "" "Container for splitting two [Control]s vertically or horizontally, with a " "grabber that allows adjusting the split offset or ratio." msgstr "" "用于垂直或水平拆分两个 [Control] 的容器,带有允许调整拆分偏移或比率的抓取器。" #: doc/classes/SplitContainer.xml msgid "" "Clamps the [member split_offset] value to not go outside the currently " "possible minimal and maximum values." msgstr "限制 [member split_offset] 值不超出当前可能的最小值和最大值。" #: doc/classes/SplitContainer.xml msgid "" "If [code]true[/code], the area of the first [Control] will be collapsed and " "the dragger will be disabled." msgstr "" "如果 [code]true[/code],第一个 [Control] 的区域将被折叠并且拖动器将被禁用。" #: doc/classes/SplitContainer.xml msgid "" "Determines the dragger's visibility. See [enum DraggerVisibility] for " "details." msgstr "确定拖动器的可见性。有关详细信息,请参阅 [enum DraggerVisibility]。" #: doc/classes/SplitContainer.xml msgid "" "The initial offset of the splitting between the two [Control]s, with " "[code]0[/code] being at the end of the first [Control]." msgstr "" "两个 [Control] 之间拆分的初始偏移量,[code]0[/code] 位于第一个 [Control] 的末" "尾。" #: doc/classes/SplitContainer.xml msgid "Emitted when the dragger is dragged by user." msgstr "当用户拖动拖动器时发出。" #: doc/classes/SplitContainer.xml msgid "The split dragger is visible when the cursor hovers it." msgstr "当光标悬停时,拆分拖动器是可见的。" #: doc/classes/SplitContainer.xml msgid "The split dragger is never visible." msgstr "拆分拖动器永远不可见。" #: doc/classes/SplitContainer.xml msgid "The split dragger is never visible and its space collapsed." msgstr "拆分拖动器永远不可见,其空间也被折叠。" #: doc/classes/SpotLight.xml msgid "A spotlight, such as a reflector spotlight or a lantern." msgstr "聚光灯,如反射器聚光灯或灯笼。" #: doc/classes/SpotLight.xml msgid "" "A Spotlight is a type of [Light] node that emits lights in a specific " "direction, in the shape of a cone. The light is attenuated through the " "distance. This attenuation can be configured by changing the energy, radius " "and attenuation parameters of [Light].\n" "[b]Note:[/b] By default, only 32 SpotLights may affect a single mesh " "[i]resource[/i] at once. Consider splitting your level into several meshes " "to decrease the likelihood that more than 32 lights will affect the same " "mesh resource. Splitting the level mesh will also improve frustum culling " "effectiveness, leading to greater performance. If you need to use more " "lights per mesh, you can increase [member ProjectSettings.rendering/limits/" "rendering/max_lights_per_object] at the cost of shader compilation times." msgstr "" "聚光灯是一种 [Light] 节点,它在特定方向上以圆锥体的形状发光。光线在远处衰减。" "这种衰减可以通过改变 [Light] 的能量、半径和衰减参数来配置。\n" "[b]注意:[/b]默认情况下,只有 32 个 聚光灯可以同时影响单个网格[i]资源[/i]。考" "虑将关卡拆分为多个网格,以降低超过 32 个灯光影响同一网格资源的可能性。拆分水" "平网格也可提高视锥剔除效果,从而提高性能。如果您需要为每个网格使用更多灯光," "您可以增加 [member ProjectSettings.rendering/limits/rendering/" "max_lights_per_object],以着色器编译时间为代价。" #: doc/classes/SpotLight.xml msgid "The spotlight's angle in degrees." msgstr "聚光灯的角度,单位是度。" #: doc/classes/SpotLight.xml msgid "The spotlight's angular attenuation curve." msgstr "聚光灯的角度衰减曲线。" #: doc/classes/SpotLight.xml msgid "The spotlight's light energy attenuation curve." msgstr "聚光灯的光量衰减曲线。" #: doc/classes/SpotLight.xml msgid "" "The maximal range that can be reached by the spotlight. Note that the " "effectively lit area may appear to be smaller depending on the [member " "spot_attenuation] in use. No matter the [member spot_attenuation] in use, " "the light will never reach anything outside this range." msgstr "" "聚光灯可以达到的最大范围。请注意,根据使用的 [member spot_attenuation],有效" "照明区域可能看起来更小。无论使用[member spot_attenuation],光都不会到达此范围" "之外的任何东西。" #: doc/classes/SpringArm.xml msgid "A helper node, mostly used in 3rd person cameras." msgstr "辅助节点,主要用于第三人称相机。" #: doc/classes/SpringArm.xml msgid "" "The SpringArm node is a node that casts a ray (or collision shape) along its " "z axis and moves all its direct children to the collision point, minus a " "margin.\n" "The most common use case for this is to make a 3rd person camera that reacts " "to collisions in the environment.\n" "The SpringArm will either cast a ray, or if a shape is given, it will cast " "the shape in the direction of its z axis.\n" "If you use the SpringArm as a camera controller for your player, you might " "need to exclude the player's collider from the SpringArm's collision check." msgstr "" "SpringArm节点是沿其Z轴投射射线(或碰撞形状)的节点,并将其所有的直接子节点移" "动到碰撞点,减去边距。\n" "最常见的使用情况是制作第三人称相机,对环境中的碰撞做出反应。\n" "SpringArm将投射一条射线,或者给出形状,它将在其Z轴的方向上投射该形状。\n" "如果你使用SpringArm作为玩家的相机控制器,你可能需要将玩家的碰撞器排除在" "SpringArm的碰撞检查之外。" #: doc/classes/SpringArm.xml msgid "" "Adds the [PhysicsBody] object with the given [RID] to the list of " "[PhysicsBody] objects excluded from the collision check." msgstr "" "将具有指定 [RID] 的 [PhysicsBody] 对象添加到排除在碰撞检查之外的 " "[PhysicsBody] 对象列表中。" #: doc/classes/SpringArm.xml msgid "" "Clears the list of [PhysicsBody] objects excluded from the collision check." msgstr "清除从碰撞检查中排除的 [PhysicsBody] 对象列表。" #: doc/classes/SpringArm.xml msgid "Returns the spring arm's current length." msgstr "返回弹簧臂的当前长度。" #: doc/classes/SpringArm.xml msgid "" "Removes the given [RID] from the list of [PhysicsBody] objects excluded from " "the collision check." msgstr "从碰撞检查排除的 [PhysicsBody] 对象列表中删除指定的 [RID]。" #: doc/classes/SpringArm.xml msgid "" "The layers against which the collision check shall be done. See " "[url=$DOCS_URL/tutorials/physics/physics_introduction.html#collision-layers-" "and-masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "碰撞检测的目标层。更多信息请参阅文档中的[url=$DOCS_URL/tutorials/physics/" "physics_introduction.html#collision-layers-and-masks]《碰撞层与遮罩》[/url]。" #: doc/classes/SpringArm.xml msgid "" "When the collision check is made, a candidate length for the SpringArm is " "given.\n" "The margin is then subtracted to this length and the translation is applied " "to the child objects of the SpringArm.\n" "This margin is useful for when the SpringArm has a [Camera] as a child node: " "without the margin, the [Camera] would be placed on the exact point of " "collision, while with the margin the [Camera] would be placed close to the " "point of collision." msgstr "" "进行碰撞检查时,会给出 SpringArm 的候选长度。\n" "然后将边距减去此长度,并将平移应用于 SpringArm 的子对象。\n" "当 SpringArm 将 [Camera] 作为子节点时,此边距很有用:没有边距,[Camera] 将放" "置在碰撞的确切点上,而有边距时,[Camera] 将放置在靠近碰撞点。" #: doc/classes/SpringArm.xml msgid "" "The [Shape] to use for the SpringArm.\n" "When the shape is set, the SpringArm will cast the [Shape] on its z axis " "instead of performing a ray cast." msgstr "" "用于 SpringArm 的 [Shape] 形状。\n" "当形状被设置时,SpringArm 将在其 Z 轴上投射 [Shape],而不是执行光线投射。" #: doc/classes/SpringArm.xml msgid "" "The maximum extent of the SpringArm. This is used as a length for both the " "ray and the shape cast used internally to calculate the desired position of " "the SpringArm's child nodes.\n" "To know more about how to perform a shape cast or a ray cast, please consult " "the [PhysicsDirectSpaceState] documentation." msgstr "" "SpringArm 的最大范围。这用作内部使用的光线和形状投射的长度,以计算 SpringArm " "子节点的所需位置。\n" "要了解有关如何执行形状投射或光线投射的更多信息,请参阅 " "[PhysicsDirectSpaceState] 文档。" #: doc/classes/Sprite.xml msgid "General-purpose sprite node." msgstr "通用精灵图节点。" #: doc/classes/Sprite.xml msgid "" "A node that displays a 2D texture. The texture displayed can be a region " "from a larger atlas texture, or a frame from a sprite sheet animation." msgstr "" "显示 2D 纹理的节点。显示的纹理可以是来自较大图集纹理的区域,也可以是来自精灵" "表动画的帧。" #: doc/classes/Sprite.xml msgid "" "Returns a [Rect2] representing the Sprite's boundary in local coordinates. " "Can be used to detect if the Sprite was clicked. Example:\n" "[codeblock]\n" "func _input(event):\n" " if event is InputEventMouseButton and event.pressed and event." "button_index == BUTTON_LEFT:\n" " if get_rect().has_point(to_local(event.position)):\n" " print(\"A click!\")\n" "[/codeblock]" msgstr "" "返回 [Rect2] 表示局部坐标中 Sprite 的边界。可用于检测 Sprite 是否被点击。例" "子:\n" "[codeblock]\n" "func _input(event):\n" " if event is InputEventMouseButton and event.pressed and event." "button_index == BUTTON_LEFT:\n" " if get_rect().has_point(to_local(event.position)):\n" " print(\"点击!\")\n" "[/codeblock]" #: doc/classes/Sprite.xml msgid "" "Returns [code]true[/code], if the pixel at the given position is opaque and " "[code]false[/code] in other case.\n" "[b]Note:[/b] It also returns [code]false[/code], if the sprite's texture is " "[code]null[/code] or if the given position is invalid." msgstr "" "如果给定位置的像素不透明,则返回 [code]true[/code],其他情况下返回 " "[code]false[/code]。\n" "[b]注意:[/b]如果精灵的纹理为[code]null[/code]或者给定的位置无效,它也会返回 " "[code]false[/code]。" #: doc/classes/Sprite.xml msgid "If [code]true[/code], texture is centered." msgstr "如果 [code]true[/code],纹理居中。" #: doc/classes/Sprite.xml doc/classes/Sprite3D.xml msgid "" "Current frame to display from sprite sheet. [member hframes] or [member " "vframes] must be greater than 1." msgstr "" "当前显示的精灵表中的帧。[member vframes] 或 [member hframes] 必须大于 1。" #: doc/classes/Sprite.xml doc/classes/Sprite3D.xml msgid "" "Coordinates of the frame to display from sprite sheet. This is as an alias " "for the [member frame] property. [member hframes] or [member vframes] must " "be greater than 1." msgstr "" "显示的帧在精灵表中的坐标。这是 [member frame] 属性的别名。[member vframes] " "或 [member hframes] 必须大于 1。" #: doc/classes/Sprite.xml doc/classes/Sprite3D.xml msgid "The number of columns in the sprite sheet." msgstr "精灵表中的列数。" #: doc/classes/Sprite.xml msgid "" "The normal map gives depth to the Sprite.\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "为 Sprite 提供深度的法线贴图。\n" "[b]注意:[/b]Godot 期望法线贴图使用 X+、Y- 和 Z+ 坐标系。参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]这个页面[/url]比较流" "行引擎所期望的法线贴图坐标系。" #: doc/classes/Sprite.xml msgid "" "If [code]true[/code], texture is cut from a larger atlas texture. See " "[member region_rect]." msgstr "" "如果 [code]true[/code],则从较大的图集纹理中剪切纹理。参阅 [member " "region_rect]。" #: doc/classes/Sprite.xml msgid "If [code]true[/code], the outermost pixels get blurred out." msgstr "如果 [code]true[/code],最外面的像素会变得模糊。" #: doc/classes/Sprite.xml doc/classes/Sprite3D.xml msgid "" "The region of the atlas texture to display. [member region_enabled] must be " "[code]true[/code]." msgstr "" "要显示的图集纹理区域。 [member region_enabled] 必须是 [code]true[/code]。" #: doc/classes/Sprite.xml msgid "[Texture] object to draw." msgstr "[Texture] 要绘制的对象。" #: doc/classes/Sprite.xml doc/classes/Sprite3D.xml msgid "The number of rows in the sprite sheet." msgstr "精灵表中的行数。" #: doc/classes/Sprite.xml doc/classes/Sprite3D.xml msgid "Emitted when the [member frame] changes." msgstr "当 [member frame] 更改时发出。" #: doc/classes/Sprite.xml msgid "Emitted when the [member texture] changes." msgstr "当 [member texture] 更改时发出。" #: doc/classes/Sprite3D.xml msgid "2D sprite node in a 3D world." msgstr "3D 世界中的 2D 精灵节点。" #: doc/classes/Sprite3D.xml msgid "" "A node that displays a 2D texture in a 3D environment. The texture displayed " "can be a region from a larger atlas texture, or a frame from a sprite sheet " "animation." msgstr "" "在 3D 环境中显示 2D 纹理的节点。显示的纹理可以是来自较大图集纹理的区域,也可" "以是来自精灵表动画的帧。" #: doc/classes/Sprite3D.xml msgid "" "If [code]true[/code], texture will be cut from a larger atlas texture. See " "[member region_rect]." msgstr "" "如果 [code]true[/code],纹理将从较大的图集纹理中剪切。参阅 [member " "region_rect]。" #: doc/classes/Sprite3D.xml msgid "" "[Texture] object to draw. If [member GeometryInstance.material_override] is " "used, this will be overridden." msgstr "" "要绘制的 [Texture] 对象。如果 [member GeometryInstance.material_override] 被" "使用,这将被覆盖。" #: doc/classes/SpriteBase3D.xml msgid "2D sprite node in 3D environment." msgstr "3D 环境中的 2D 精灵节点。" #: doc/classes/SpriteBase3D.xml msgid "A node that displays 2D texture information in a 3D environment." msgstr "在 3D 环境中显示 2D 纹理信息的节点。" #: doc/classes/SpriteBase3D.xml msgid "Returns the rectangle representing this sprite." msgstr "返回表示此精灵的矩形。" #: doc/classes/SpriteBase3D.xml msgid "If [code]true[/code], the specified flag will be enabled." msgstr "如果为 [code]true[/code],指定的标志将被启用。" #: doc/classes/SpriteBase3D.xml msgid "The direction in which the front of the texture faces." msgstr "纹理正面朝向的方向。" #: doc/classes/SpriteBase3D.xml msgid "" "If [code]true[/code], texture can be seen from the back as well, if " "[code]false[/code], it is invisible when looking at it from behind." msgstr "" "如果为 [code]true[/code],则从后面也可以看到纹理,如果为 [code]false[/code]," "则从后面看它是不可见的。" #: doc/classes/SpriteBase3D.xml msgid "" "A color value used to [i]multiply[/i] the texture's colors. Can be used for " "mood-coloring or to simulate the color of light.\n" "[b]Note:[/b] If a [member GeometryInstance.material_override] is defined on " "the [SpriteBase3D], the material override must be configured to take vertex " "colors into account for albedo. Otherwise, the color defined in [member " "modulate] will be ignored. For a [SpatialMaterial], [member SpatialMaterial." "vertex_color_use_as_albedo] must be [code]true[/code]. For a " "[ShaderMaterial], [code]ALBEDO *= COLOR.rgb;[/code] must be inserted in the " "shader's [code]fragment()[/code] function." msgstr "" "用于与该纹理颜色[i]相乘[/i]的颜色值。可用于渲染情绪,或者模拟灯光的颜色。\n" "[b]注意:[/b]如果 [SpriteBase3D] 定义了 [member GeometryInstance." "material_override],则必须对该材质覆盖项进行配置,让其在反照率中考虑顶点颜" "色。否则会忽略 [member modulate] 中所定义的颜色。对于 [SpatialMaterial],必须" "让 [member SpatialMaterial.vertex_color_use_as_albedo] 为 [code]true[/code]。" "对于 [ShaderMaterial],着色器的 [code]fragment()[/code] 函数中必须插入 " "[code]ALBEDO *= COLOR.rgb;[/code]。" #: doc/classes/SpriteBase3D.xml msgid "" "The texture's visibility on a scale from [code]0[/code] (fully invisible) to " "[code]1[/code] (fully visible). [member opacity] is a multiplier for the " "[member modulate] color's alpha channel.\n" "[b]Note:[/b] If a [member GeometryInstance.material_override] is defined on " "the [SpriteBase3D], the material override must be configured to take vertex " "colors into account for albedo. Otherwise, the opacity defined in [member " "opacity] will be ignored. For a [SpatialMaterial], [member SpatialMaterial." "vertex_color_use_as_albedo] must be [code]true[/code]. For a " "[ShaderMaterial], [code]ALPHA *= COLOR.a;[/code] must be inserted in the " "shader's [code]fragment()[/code] function." msgstr "" "该纹理的可见性,从 [code]0[/code](完全不可见)到 [code]1[/code](完全可" "见)。[member opacity] 是 [member modulate] 颜色的 Alpha 通道。\n" "[b]注意:[/b]如果 [SpriteBase3D] 定义了 [member GeometryInstance." "material_override],则必须对该材质覆盖项进行配置,让其在反照率中考虑顶点颜" "色。否则会忽略 [member opacity] 中所定义的不透明度。对于 [SpatialMaterial]," "必须让 [member SpatialMaterial.vertex_color_use_as_albedo] 为 [code]true[/" "code]。对于 [ShaderMaterial],着色器的 [code]fragment()[/code] 函数中必须插" "入 [code]ALPHA *= COLOR.a;[/code]。" #: doc/classes/SpriteBase3D.xml msgid "The size of one pixel's width on the sprite to scale it in 3D." msgstr "精灵上一个像素宽度的大小,以 3D 缩放。" #: doc/classes/SpriteBase3D.xml msgid "" "Sets the render priority for the sprite. Higher priority objects will be " "sorted in front of lower priority objects.\n" "[b]Node:[/b] This only applies if [member alpha_cut] is set to [constant " "ALPHA_CUT_DISABLED] (default value).\n" "[b]Note:[/b] This only applies to sorting of transparent objects. This will " "not impact how transparent objects are sorted relative to opaque objects. " "This is because opaque objects are not sorted, while transparent objects are " "sorted from back to front (subject to priority)." msgstr "" "设置精灵的渲染优先级。优先级高的物体将被排序在优先级低的物体前面。\n" "[b]注意:[/b]仅在 [member alpha_cut] 为 [constant ALPHA_CUT_DISABLED](默认" "值)时适用。\n" "[b]注意:[/b]仅适用于透明物体的排序。这不会影响透明物体相对于不透明物体的排序" "方式。这是因为不透明对象不被排序,而透明对象则从后往前排序(取决于优先级)。" #: doc/classes/SpriteBase3D.xml msgid "" "If [code]true[/code], the [Light] in the [Environment] has effects on the " "sprite." msgstr "如果 [code]true[/code],则 [Environment] 中的 [Light] 对精灵有影响。" #: doc/classes/SpriteBase3D.xml msgid "" "If [code]true[/code], the texture's transparency and the opacity are used to " "make those parts of the sprite invisible." msgstr "" "如果 [code]true[/code],纹理的透明度和不透明度用于使精灵的这些部分不可见。" #: doc/classes/SpriteBase3D.xml msgid "" "If set, the texture's transparency and the opacity are used to make those " "parts of the sprite invisible." msgstr "如果设置,纹理的透明度和不透明性用于使精灵的这些部分不可见。" #: doc/classes/SpriteBase3D.xml msgid "If set, lights in the environment affect the sprite." msgstr "如果设置,环境中的灯光会影响精灵。" #: doc/classes/SpriteBase3D.xml msgid "" "If set, texture can be seen from the back as well, if not, it is invisible " "when looking at it from behind." msgstr "如果设置,从后面也可以看到纹理,如果没有,从后面看它是不可见的。" #: doc/classes/SpriteBase3D.xml msgid "" "Sprite is scaled by depth so that it always appears the same size on screen." msgstr "精灵会根据深度进行缩放,从而在屏幕上始终以相同的大小显示。" #: doc/classes/SpriteFrames.xml msgid "Sprite frame library for AnimatedSprite and AnimatedSprite3D." msgstr "AnimatedSprite 和 AnimatedSprite3D 的精灵帧库。" #: doc/classes/SpriteFrames.xml msgid "" "Sprite frame library for an [AnimatedSprite] or [AnimatedSprite3D] node. " "Contains frames and animation data for playback.\n" "[b]Note:[/b] You can associate a set of normal maps by creating additional " "[SpriteFrames] resources with a [code]_normal[/code] suffix. For example, " "having 2 [SpriteFrames] resources [code]run[/code] and [code]run_normal[/" "code] will make it so the [code]run[/code] animation uses the normal map." msgstr "" "[AnimatedSprite] 或 [AnimatedSprite3D] 节点的精灵帧库。包含可用于播放的帧和动" "画数据。\n" "[b]注意:[/b]你可以通过创建带有 [code]_normal[/code] 后缀的 [SpriteFrames] 来" "关联一组法线贴图。例如,同时存在两个分别叫做 [code]run[/code] 和 " "[code]run_normal[/code] 的 [SpriteFrames] 资源,那么 [code]run[/code] 中的动" "画就会使用法线贴图。" #: doc/classes/SpriteFrames.xml msgid "Adds a new animation to the library." msgstr "向库添加新动画。" #: doc/classes/SpriteFrames.xml msgid "Adds a frame to the given animation." msgstr "为给定的动画添加一帧。" #: doc/classes/SpriteFrames.xml msgid "Removes all frames from the given animation." msgstr "删除给定动画中的所有帧。" #: doc/classes/SpriteFrames.xml msgid "Removes all animations. A \"default\" animation will be created." msgstr "删除所有动画。将创建“default”动画。" #: doc/classes/SpriteFrames.xml msgid "" "Returns [code]true[/code] if the given animation is configured to loop when " "it finishes playing. Otherwise, returns [code]false[/code]." msgstr "" "当指定的动画被配置为结束播放后循环时,返回 [code]true[/code],否则返回 " "[code]false[/code]。" #: doc/classes/SpriteFrames.xml msgid "" "Returns an array containing the names associated to each animation. Values " "are placed in alphabetical order." msgstr "返回一个包含每个动画的名称的数组。值按字母顺序排列。" #: doc/classes/SpriteFrames.xml msgid "The animation's speed in frames per second." msgstr "动画的每秒帧数。" #: doc/classes/SpriteFrames.xml msgid "Returns the animation's selected frame." msgstr "返回动画所选帧。" #: doc/classes/SpriteFrames.xml msgid "Returns the number of frames in the animation." msgstr "返回动画中的帧数。" #: doc/classes/SpriteFrames.xml msgid "If [code]true[/code], the named animation exists." msgstr "为 [code]true[/code] 时存在指定名称的动画。" #: doc/classes/SpriteFrames.xml msgid "Removes the given animation." msgstr "移除给定的动画。" #: doc/classes/SpriteFrames.xml msgid "Removes the animation's selected frame." msgstr "移除动画的选定帧。" #: doc/classes/SpriteFrames.xml msgid "Changes the animation's name to [code]newname[/code]." msgstr "将动画的名称更改为 [code]newname[/code]。" #: doc/classes/SpriteFrames.xml msgid "If [code]true[/code], the animation will loop." msgstr "为 [code]true[/code] 时动画将循环播放。" #: doc/classes/SpriteFrames.xml msgid "Sets the texture of the given frame." msgstr "设置给定帧的纹理。" #: doc/classes/SpriteFrames.xml msgid "Compatibility property, always equals to an empty array." msgstr "兼容性属性,总是等于一个空数组。" #: doc/classes/StaticBody.xml msgid "Static body for 3D physics." msgstr "用于 3D 物理的静态物体。" #: doc/classes/StaticBody.xml msgid "" "Static body for 3D physics. A static body is a simple body that is not " "intended to move. In contrast to [RigidBody], they don't consume any CPU " "resources as long as they don't move.\n" "Additionally, a constant linear or angular velocity can be set for the " "static body, so even if it doesn't move, it affects other bodies as if it " "was moving (this is useful for simulating conveyor belts or conveyor wheels)." msgstr "" "用于 3D 物理的静态物体。静态物体是不应移动的简单物体。与 [RigidBody] 相比,它" "们只要不动就不会消耗任何 CPU 资源。\n" "此外,可以为静态物体设置恒定的线速度或角速度,因此即使它不移动,也会像移动一" "样影响其他物体(这对于模拟传送带或传送轮很有用)。" #: doc/classes/StaticBody.xml msgid "" "The body's constant angular velocity. This does not rotate the body, but " "affects other bodies that touch it, as if it was in a state of rotation." msgstr "" "物体的恒定角速度。这不会旋转物体,但会影响其他接触它的物体,就好像它处于旋转" "状态一样。" #: doc/classes/StaticBody.xml msgid "" "The body's constant linear velocity. This does not move the body, but " "affects other bodies that touch it, as if it was in a state of movement." msgstr "" "物体的恒定线速度。这不会移动物体,但会影响接触它的其他物体,就好像它处于运动" "状态一样。" #: doc/classes/StaticBody.xml msgid "" "The body's friction, from 0 (frictionless) to 1 (full friction).\n" "Deprecated, use [member PhysicsMaterial.friction] instead via [member " "physics_material_override]." msgstr "" "物体的摩擦力,从 0(无摩擦)到 1(最大摩擦)。\n" "已废弃,请通过 [member physics_material_override] 使用 [member " "PhysicsMaterial.friction] 代替。" #: doc/classes/StaticBody2D.xml msgid "Static body for 2D physics." msgstr "用于 2D 物理的静态物体。" #: doc/classes/StaticBody2D.xml msgid "" "Static body for 2D physics. A StaticBody2D is a body that is not intended to " "move. It is ideal for implementing objects in the environment, such as walls " "or platforms.\n" "Additionally, a constant linear or angular velocity can be set for the " "static body, which will affect colliding bodies as if it were moving (for " "example, a conveyor belt)." msgstr "" "用于 2D 物理的静态物体。StaticBody2D 是不准备移动的物体。它是实现环境对象的理" "想方式,例如墙壁或平台。\n" "此外,可以为静态物体设置恒定的线速度或角速度,这将影响到与之碰撞的物体,让它" "就像在移动一样(例如传送带)。" #: doc/classes/StaticBody2D.xml msgid "" "The body's constant angular velocity. This does not rotate the body, but " "affects colliding bodies, as if it were rotating." msgstr "" "物体的恒定角速度。这不会使物体旋转,但会影响碰撞的物体,就像它在旋转一样。" #: doc/classes/StaticBody2D.xml msgid "" "The body's constant linear velocity. This does not move the body, but " "affects colliding bodies, as if it were moving." msgstr "" "物体的恒定线速度。这不会移动物体,但会影响碰撞的物体,就像它在移动一样。" #: doc/classes/StaticBody2D.xml msgid "" "The body's friction. Values range from [code]0[/code] (no friction) to " "[code]1[/code] (full friction).\n" "Deprecated, use [member PhysicsMaterial.friction] instead via [member " "physics_material_override]." msgstr "" "物体的摩擦力。取值范围从 [code]0[/code](无摩擦)到 [code]1[/code](最大摩" "擦)。\n" "已废弃,请通过 [member physics_material_override] 使用 [member " "PhysicsMaterial.friction] 代替。" #: doc/classes/StreamPeer.xml msgid "Abstraction and base class for stream-based protocols." msgstr "基于流的协议的抽象和基类。" #: doc/classes/StreamPeer.xml msgid "" "StreamPeer is an abstraction and base class for stream-based protocols (such " "as TCP). It provides an API for sending and receiving data through streams " "as raw data or strings." msgstr "" "StreamPeer 是对流式协议(如 TCP)的抽象和基类。它提供了用于通过流发送和接收原" "始数据或字符串的数据的 API。" #: doc/classes/StreamPeer.xml msgid "Gets a signed 16-bit value from the stream." msgstr "从流中获取一个有符号 16 位值。" #: doc/classes/StreamPeer.xml msgid "Gets a signed 32-bit value from the stream." msgstr "从流中获取一个有符号 32 位值。" #: doc/classes/StreamPeer.xml msgid "Gets a signed 64-bit value from the stream." msgstr "从流中获取一个有符号 64 位值。" #: doc/classes/StreamPeer.xml msgid "Gets a signed byte from the stream." msgstr "从流中获取一个有符号字节。" #: doc/classes/StreamPeer.xml msgid "Returns the amount of bytes this [StreamPeer] has available." msgstr "返回该 [StreamPeer] 可用的字节数。" #: doc/classes/StreamPeer.xml msgid "" "Returns a chunk data with the received bytes. The amount of bytes to be " "received can be requested in the [code]bytes[/code] argument. If not enough " "bytes are available, the function will block until the desired amount is " "received. This function returns two values, an [enum @GlobalScope.Error] " "code and a data array." msgstr "" "返回接收到的块数据。可以使用 [code]bytes[/code] 参数设置所需接收的字节数。如" "果可用的字节数不足,函数会阻塞至接收到所需字节数为止。该函数返回两个值,一个 " "[enum @GlobalScope.Error] 错误码以及一个数据数组。" #: doc/classes/StreamPeer.xml msgid "Gets a double-precision float from the stream." msgstr "从流中获取一个双精度浮点数。" #: doc/classes/StreamPeer.xml msgid "Gets a single-precision float from the stream." msgstr "从流中获取一个单精度浮点数。" #: doc/classes/StreamPeer.xml msgid "" "Returns a chunk data with the received bytes. The amount of bytes to be " "received can be requested in the \"bytes\" argument. If not enough bytes are " "available, the function will return how many were actually received. This " "function returns two values, an [enum @GlobalScope.Error] code, and a data " "array." msgstr "" "返回接收到的块数据。可以使用“bytes”参数设置所需接收的字节数。如果可用的字节数" "不足,函数会阻塞至接收到所需字节数为止。该函数返回两个值,一个 [enum " "@GlobalScope.Error] 错误码以及一个数据数组。" #: doc/classes/StreamPeer.xml msgid "" "Gets an ASCII string with byte-length [code]bytes[/code] from the stream. If " "[code]bytes[/code] is negative (default) the length will be read from the " "stream using the reverse process of [method put_string]." msgstr "" "从流中获取一个字节长度为 [code]bytes[/code] 的 ASCII 字符串。如果 " "[code]bytes[/code] 为负(默认),会按照 [method put_string] 的逆向操作从流中" "读取长度。" #: doc/classes/StreamPeer.xml msgid "Gets an unsigned 16-bit value from the stream." msgstr "从流中获取一个无符号 16 位值。" #: doc/classes/StreamPeer.xml msgid "Gets an unsigned 32-bit value from the stream." msgstr "从流中获取一个无符号 32 位值。" #: doc/classes/StreamPeer.xml msgid "Gets an unsigned 64-bit value from the stream." msgstr "从流中获取一个无符号 64 位值。" #: doc/classes/StreamPeer.xml msgid "Gets an unsigned byte from the stream." msgstr "从流中获取一个无符号字节。" #: doc/classes/StreamPeer.xml msgid "" "Gets an UTF-8 string with byte-length [code]bytes[/code] from the stream " "(this decodes the string sent as UTF-8). If [code]bytes[/code] is negative " "(default) the length will be read from the stream using the reverse process " "of [method put_utf8_string]." msgstr "" "从流中获取一个字节长度为 [code]bytes[/code] 的 UTF-8 字符串(将发送的字符串解" "码为 UTF-8)。如果 [code]bytes[/code] 为负(默认),会按照 [method " "put_utf8_string] 的逆向操作从流中读取长度。" #: doc/classes/StreamPeer.xml msgid "" "Gets a Variant from the stream. If [code]allow_objects[/code] is [code]true[/" "code], decoding objects is allowed.\n" "[b]Warning:[/b] Deserialized objects can contain code which gets executed. " "Do not use this option if the serialized object comes from untrusted sources " "to avoid potential security threats such as remote code execution." msgstr "" "从流中获取一个 Variant。如果 [code]allow_object[/code] 为 [code]true[/code]," "则会允许解码出对象。\n" "[b]警告:[/b]反序列化的对象可能包含会被执行的代码。如果序列化的对象来自不可信" "的来源,请勿使用该选项,以免造成远程代码执行等安全威胁。" #: doc/classes/StreamPeer.xml msgid "Puts a signed 16-bit value into the stream." msgstr "向流中放入一个有符号 16 位值。" #: doc/classes/StreamPeer.xml msgid "Puts a signed 32-bit value into the stream." msgstr "向流中放入一个有符号 32 位值。" #: doc/classes/StreamPeer.xml msgid "Puts a signed 64-bit value into the stream." msgstr "向流中放入一个有符号 64 位值。" #: doc/classes/StreamPeer.xml msgid "Puts a signed byte into the stream." msgstr "向流中放入一个有符号字节。" #: doc/classes/StreamPeer.xml msgid "" "Sends a chunk of data through the connection, blocking if necessary until " "the data is done sending. This function returns an [enum @GlobalScope.Error] " "code." msgstr "" "通过连接发送块数据,数据完成发送前会阻塞。该函数返回 [enum @GlobalScope." "Error] 错误码。" #: doc/classes/StreamPeer.xml msgid "Puts a double-precision float into the stream." msgstr "向流中放入一个双精度浮点数。" #: doc/classes/StreamPeer.xml msgid "Puts a single-precision float into the stream." msgstr "向流中放入一个单精度浮点数。" #: doc/classes/StreamPeer.xml msgid "" "Sends a chunk of data through the connection. If all the data could not be " "sent at once, only part of it will. This function returns two values, an " "[enum @GlobalScope.Error] code and an integer, describing how much data was " "actually sent." msgstr "" "通过连接发送数据。如果数据无法一次性发完,则仅会发送部分数据。该函数返回两个" "值,一个 [enum @GlobalScope.Error] 错误码以及一个整数,表示实际发送的数据量。" #: doc/classes/StreamPeer.xml msgid "" "Puts a zero-terminated ASCII string into the stream prepended by a 32-bit " "unsigned integer representing its size.\n" "[b]Note:[/b] To put an ASCII string without prepending its size, you can use " "[method put_data]:\n" "[codeblock]\n" "put_data(\"Hello world\".to_ascii())\n" "[/codeblock]" msgstr "" "向流中放入一个以零结尾的 ASCII 字符串,前缀一个表示其长度的 32 位无符号整" "数。\n" "[b]注意:[/b]如果想发送不包含长度前缀的 ASCII 字符串,可以使用 [method " "put_data]:\n" "[codeblock]\n" "put_data(\"Hello world\".to_ascii())\n" "[/codeblock]" #: doc/classes/StreamPeer.xml msgid "Puts an unsigned 16-bit value into the stream." msgstr "向流中放入一个无符号 16 位值。" #: doc/classes/StreamPeer.xml msgid "Puts an unsigned 32-bit value into the stream." msgstr "向流中放入一个无符号 32 位值。" #: doc/classes/StreamPeer.xml msgid "Puts an unsigned 64-bit value into the stream." msgstr "向流中放入一个无符号 64 位值。" #: doc/classes/StreamPeer.xml msgid "Puts an unsigned byte into the stream." msgstr "向流中放入一个无符号字节。" #: doc/classes/StreamPeer.xml msgid "" "Puts a zero-terminated UTF-8 string into the stream prepended by a 32 bits " "unsigned integer representing its size.\n" "[b]Note:[/b] To put an UTF-8 string without prepending its size, you can use " "[method put_data]:\n" "[codeblock]\n" "put_data(\"Hello world\".to_utf8())\n" "[/codeblock]" msgstr "" "向流中放入一个以零结尾的 UTF-8 字符串,前缀一个表示其长度的 32 位无符号整" "数。\n" "[b]注意:[/b]如果想发送不包含长度前缀的 UTF-8 字符串,可以使用 [method " "put_data]:\n" "[codeblock]\n" "put_data(\"Hello world\".to_utf8())\n" "[/codeblock]" #: doc/classes/StreamPeer.xml msgid "" "Puts a Variant into the stream. If [code]full_objects[/code] is [code]true[/" "code] encoding objects is allowed (and can potentially include code)." msgstr "" "向流中放入一个 Variant。如果 [code]full_objects[/code] 为 [code]true[/code]," "则会允许将对象编码(其中可能包含代码)。" #: doc/classes/StreamPeer.xml msgid "" "If [code]true[/code], this [StreamPeer] will using big-endian format for " "encoding and decoding." msgstr "为 [code]true[/code] 时,该 [StreamPeer] 进行编解码时会使用大端格式。" #: doc/classes/StreamPeerBuffer.xml msgid "Data buffer stream peer." msgstr "数据缓冲区流对等体。" #: doc/classes/StreamPeerBuffer.xml msgid "" "Data buffer stream peer that uses a byte array as the stream. This object " "can be used to handle binary data from network sessions. To handle binary " "data stored in files, [File] can be used directly.\n" "A [StreamPeerBuffer] object keeps an internal cursor which is the offset in " "bytes to the start of the buffer. Get and put operations are performed at " "the cursor position and will move the cursor accordingly." msgstr "" "使用字节数组作为流的数据缓冲区流对等体。该对象可用于处理来自网络会话的二进制" "数据。要处理保存在文件中的二进制数据,可以直接使用 [File]。\n" "[StreamPeerBuffer] 对象会保存一个内部指针,是距离该缓冲区开头的字节偏移量。" "Get 和 put 操作都在该指针处进行,并会将其进行对应的移动。" #: doc/classes/StreamPeerBuffer.xml msgid "Clears the [member data_array] and resets the cursor." msgstr "清除 [member data_array] 并重置指针。" #: doc/classes/StreamPeerBuffer.xml msgid "" "Returns a new [StreamPeerBuffer] with the same [member data_array] content." msgstr "返回新的 [StreamPeerBuffer],具有相同的 [member data_array] 内容。" #: doc/classes/StreamPeerBuffer.xml msgid "Returns the current cursor position." msgstr "返回当前的指针位置。" #: doc/classes/StreamPeerBuffer.xml msgid "Returns the size of [member data_array]." msgstr "返回 [member data_array] 的大小。" #: doc/classes/StreamPeerBuffer.xml msgid "Resizes the [member data_array]. This [i]doesn't[/i] update the cursor." msgstr "调整 [member data_array] 的大小。[i]不会[/i]更新指针。" #: doc/classes/StreamPeerBuffer.xml msgid "" "Moves the cursor to the specified position. [code]position[/code] must be a " "valid index of [member data_array]." msgstr "" "将指针移动到指定的位置。[code]position[/code] 必须是 [member data_array] 的有" "效索引。" #: doc/classes/StreamPeerBuffer.xml msgid "The underlying data buffer. Setting this value resets the cursor." msgstr "内部的数据缓冲。设置该值会重置指针。" #: doc/classes/StreamPeerSSL.xml msgid "SSL stream peer." msgstr "SSL 流对等体。" #: doc/classes/StreamPeerSSL.xml msgid "" "SSL stream peer. This object can be used to connect to an SSL server or " "accept a single SSL client connection." msgstr "SSL 流对等体。此对象可用于连接到 SSL 服务器或接受单个 SSL 客户端连接。" #: doc/classes/StreamPeerSSL.xml msgid "" "Accepts a peer connection as a server using the given [code]private_key[/" "code] and providing the given [code]certificate[/code] to the client. You " "can pass the optional [code]chain[/code] parameter to provide additional CA " "chain information along with the certificate." msgstr "" "使用给定的 [code]private_key[/code] 接受对等连接作为服务器,并向客户端提供给" "定的 [code]certificate[/code]。您可以传递可选的 [code]chain[/code] 参数以提供" "额外的 CA 链信息以及证书。" #: doc/classes/StreamPeerSSL.xml msgid "" "Connects to a peer using an underlying [StreamPeer] [code]stream[/code]. If " "[code]validate_certs[/code] is [code]true[/code], [StreamPeerSSL] will " "validate that the certificate presented by the peer matches the " "[code]for_hostname[/code].\n" "[b]Note:[/b] Specifying a custom [code]valid_certificate[/code] is not " "supported in HTML5 exports due to browsers restrictions." msgstr "" "使用底层 [StreamPeer] [code]stream[/code] 连接到对等点。如果 " "[code]validate_certs[/code] 是 [code]true[/code],[StreamPeerSSL] 将验证对等" "方提供的证书是否与 [code]for_hostname[/code] 匹配。\n" "[b]注意:[/b]由于浏览器限制,HTML5 导出不支持指定自定义 " "[code]valid_certificate[/code]。" #: doc/classes/StreamPeerSSL.xml doc/classes/StreamPeerTCP.xml msgid "Disconnects from host." msgstr "与主机断开连接。" #: doc/classes/StreamPeerSSL.xml msgid "" "Poll the connection to check for incoming bytes. Call this right before " "[method StreamPeer.get_available_bytes] for it to work properly." msgstr "" "轮询连接以检查传入的字节。在 [method StreamPeer.get_available_bytes] 之前调用" "它以使其正常工作。" #: doc/classes/StreamPeerSSL.xml msgid "A status representing a [StreamPeerSSL] that is disconnected." msgstr "表示已断开连接的 [StreamPeerSSL] 的状态。" #: doc/classes/StreamPeerSSL.xml msgid "A status representing a [StreamPeerSSL] during handshaking." msgstr "代表在握手期间[StreamPeerSSL]的状态。" #: doc/classes/StreamPeerSSL.xml msgid "A status representing a [StreamPeerSSL] that is connected to a host." msgstr "表示连接到主机的 [StreamPeerSSL] 的状态。" #: doc/classes/StreamPeerSSL.xml msgid "A status representing a [StreamPeerSSL] in error state." msgstr "代表[StreamPeerSSL]处于错误状态的状态。" #: doc/classes/StreamPeerSSL.xml msgid "" "An error status that shows a mismatch in the SSL certificate domain " "presented by the host and the domain requested for validation." msgstr "一种错误状态,显示主机提交的SSL证书域与请求验证的域不匹配。" #: doc/classes/StreamPeerTCP.xml msgid "TCP stream peer." msgstr "TCP流对等体。" #: doc/classes/StreamPeerTCP.xml msgid "" "TCP stream peer. This object can be used to connect to TCP servers, or also " "is returned by a TCP server." msgstr "TCP 流对等体。此对象可用于连接到 TCP 服务器,也可由 TCP 服务器返回。" #: doc/classes/StreamPeerTCP.xml msgid "" "Connects to the specified [code]host:port[/code] pair. A hostname will be " "resolved if valid. Returns [constant OK] on success or [constant FAILED] on " "failure." msgstr "" "连接到指定的 [code]host:port[/code] 对。如果有效,将解析主机名。成功或失败时" "返回[constant OK]或[constant FAILED]。" #: doc/classes/StreamPeerTCP.xml msgid "Returns the IP of this peer." msgstr "返回该对等体的IP。" #: doc/classes/StreamPeerTCP.xml msgid "Returns the port of this peer." msgstr "返回该对等体的端口。" #: doc/classes/StreamPeerTCP.xml msgid "Returns the status of the connection, see [enum Status]." msgstr "返回连接的状态,见[enum Status]。" #: doc/classes/StreamPeerTCP.xml msgid "" "Returns [code]true[/code] if this peer is currently connected or is " "connecting to a host, [code]false[/code] otherwise." msgstr "" "当本对等体当前已连接到主机或者正在连接主机,则返回 [code]true[/code],否则返" "回 [code]false[/code]。" #: doc/classes/StreamPeerTCP.xml msgid "" "If [code]enabled[/code] is [code]true[/code], packets will be sent " "immediately. If [code]enabled[/code] is [code]false[/code] (the default), " "packet transfers will be delayed and combined using [url=https://en." "wikipedia.org/wiki/Nagle%27s_algorithm]Nagle's algorithm[/url].\n" "[b]Note:[/b] It's recommended to leave this disabled for applications that " "send large packets or need to transfer a lot of data, as enabling this can " "decrease the total available bandwidth." msgstr "" "如果 [code]enabled[/code] 为 [code]true[/code] 时,数据包会立即发送。如果 " "[code]enabled[/code] 为 [code]false[/code] 时(默认如此),数据包会延迟发送," "使用 [url=https://zh.wikipedia.org/wiki/%E7%B4%8D%E6%A0%BC%E7%AE%97%E6%B3%95]" "纳格算法[/url]合并。\n" "[b]注意:[/b]如果你的应用所传输的数据包很大,或者需要传输大量数据,建议将本属" "性保持禁用,因为启用后可能降低总体可用带宽。" #: doc/classes/StreamPeerTCP.xml msgid "" "The initial status of the [StreamPeerTCP]. This is also the status after " "disconnecting." msgstr "[StreamPeerTCP]的初始状态。这也是断开连接后的状态。" #: doc/classes/StreamPeerTCP.xml msgid "A status representing a [StreamPeerTCP] that is connecting to a host." msgstr "表示连接到主机的 [StreamPeerTCP] 的状态。" #: doc/classes/StreamPeerTCP.xml msgid "A status representing a [StreamPeerTCP] that is connected to a host." msgstr "表示连接到主机的 [StreamPeerSSL] 的状态。" #: doc/classes/StreamPeerTCP.xml msgid "A status representing a [StreamPeerTCP] in error state." msgstr "表示处于错误状态的 [StreamPeerTCP] 的状态。" #: doc/classes/StreamTexture.xml msgid "A [code].stex[/code] texture." msgstr "[code].stex[/code]纹理." #: doc/classes/StreamTexture.xml msgid "A texture that is loaded from a [code].stex[/code] file." msgstr "从[code].stex[/code]文件加载的纹理。" #: doc/classes/StreamTexture.xml msgid "Loads the texture from the given path." msgstr "从给定的路径加载纹理。" #: doc/classes/StreamTexture.xml msgid "The StreamTexture's file path to a [code].stex[/code] file." msgstr "StreamTexture 到 [code].stex[/code] 文件的文件路径。" #: doc/classes/String.xml msgid "Built-in string class." msgstr "内置字符串类。" #: doc/classes/String.xml msgid "" "This is the built-in string class (and the one used by GDScript). It " "supports Unicode and provides all necessary means for string handling. " "Strings are reference-counted and use a copy-on-write approach, so passing " "them around is cheap in resources." msgstr "" "这是内置的字符串类(也是 GDScript 所使用的字符串类)。它支持 Unicode,提供了" "处理字符串的所有必要手段。字符串进行了引用计数,实现了写时复制,所以在资源中" "进行传递的成本很低。" #: doc/classes/String.xml msgid "Constructs a new String from the given [bool]." msgstr "从给定的 [bool] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [int]." msgstr "从给定的 [int] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [float]." msgstr "从给定的 [float] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Vector2]." msgstr "从给定的 [Vector2] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Rect2]." msgstr "从给定的 [Rect2] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Vector3]." msgstr "从给定的 [Vector3] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Transform2D]." msgstr "从给定的 [Transform2D] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Plane]." msgstr "从给定的 [Plane] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Quat]." msgstr "从给定的 [Quat] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [AABB]." msgstr "从给定的 [AABB] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Basis]." msgstr "从给定的 [Basis] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Transform]." msgstr "从给定的 [Transform] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Color]." msgstr "从给定的 [Color] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [NodePath]." msgstr "从给定的 [NodePath] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [RID]." msgstr "从给定的 [RID] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Dictionary]." msgstr "从给定的 [Dictionary] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [Array]." msgstr "从给定的 [Array] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolByteArray]." msgstr "从给定的 [PoolByteArray] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolIntArray]." msgstr "从给定的 [PoolIntArray] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolRealArray]." msgstr "从给定的 [PoolRealArray] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolStringArray]." msgstr "从给定的 [PoolStringArray] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolVector2Array]." msgstr "从给定的 [PoolVector2Array] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolVector3Array]." msgstr "从给定的 [PoolVector3Array] 构造新 String。" #: doc/classes/String.xml msgid "Constructs a new String from the given [PoolColorArray]." msgstr "从给定的 [PoolColorArray] 构造新 String。" #: doc/classes/String.xml msgid "Returns [code]true[/code] if the string begins with the given string." msgstr "该字符串以指定字符串开头时,返回 [code]true[/code]。" #: doc/classes/String.xml msgid "" "Returns an array containing the bigrams (pairs of consecutive letters) of " "this string.\n" "[codeblock]\n" "print(\"Bigrams\".bigrams()) # Prints \"[Bi, ig, gr, ra, am, ms]\"\n" "[/codeblock]" msgstr "" "返回包含该字符串的双字母组(连续字母的组合)的数组。\n" "[codeblock]\n" "print(\"Bigrams\".bigrams()) # 输出“[Bi, ig, gr, ra, am, ms]”\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns a copy of the string with special characters escaped using the C " "language standard." msgstr "返回一个使用C语言标准转义的特殊字符的字符串的副本。" #: doc/classes/String.xml msgid "" "Returns a copy of the string with escaped characters replaced by their " "meanings. Supported escape sequences are [code]\\'[/code], [code]\\\"[/" "code], [code]\\?[/code], [code]\\\\[/code], [code]\\a[/code], [code]\\b[/" "code], [code]\\f[/code], [code]\\n[/code], [code]\\r[/code], [code]\\t[/" "code], [code]\\v[/code].\n" "[b]Note:[/b] Unlike the GDScript parser, this method doesn't support the " "[code]\\uXXXX[/code] escape sequence." msgstr "" "返回用转义字符替换其含义的字符串副本。支持的转义序列有 [code]\\'[/code]、" "[code]\\\"[/code]、[code]\\?[/code]、[code]\\\\[/code]、[code]\\a[/code]、" "[code]\\b[/code]、[code]\\f[/code]、[code]\\n[/code]、[code]\\r[/code]、" "[code]\\t[/code]、[code]\\v[/code]。\n" "[b]注意:[/b]与 GDScript 解析器不同,该方法不支持 [code]\\uXXXX[/code] 转义序" "列。" #: doc/classes/String.xml msgid "" "Changes the case of some letters. Replaces underscores with spaces, adds " "spaces before in-word uppercase characters, converts all letters to " "lowercase, then capitalizes the first letter and every letter following a " "space character. For [code]capitalize camelCase mixed_with_underscores[/" "code], it will return [code]Capitalize Camel Case Mixed With Underscores[/" "code]." msgstr "" "更改某些字母的大小写。用空格替换下划线,在词内大写字符之前添加空格,将所有字" "母转换为小写,然后将第一个字母和空格字符后面的每个字母大写。对于 " "[code]capitalize camelCase mixed_with_underscores[/code],它将返回 " "[code]Capitalize Camel Case Mixed With Underscores[/code]。" #: doc/classes/String.xml msgid "" "Performs a case-sensitive comparison to another string. Returns [code]-1[/" "code] if less than, [code]1[/code] if greater than, or [code]0[/code] if " "equal. \"less than\" or \"greater than\" are determined by the [url=https://" "en.wikipedia.org/wiki/List_of_Unicode_characters]Unicode code points[/url] " "of each string, which roughly matches the alphabetical order.\n" "[b]Behavior with different string lengths:[/b] Returns [code]1[/code] if the " "\"base\" string is longer than the [code]to[/code] string or [code]-1[/code] " "if the \"base\" string is shorter than the [code]to[/code] string. Keep in " "mind this length is determined by the number of Unicode codepoints, [i]not[/" "i] the actual visible characters.\n" "[b]Behavior with empty strings:[/b] Returns [code]-1[/code] if the \"base\" " "string is empty, [code]1[/code] if the [code]to[/code] string is empty or " "[code]0[/code] if both strings are empty.\n" "To get a boolean result from a string comparison, use the [code]==[/code] " "operator instead. See also [method nocasecmp_to]." msgstr "" "与另一个字符串进行比较,区分大小写。小于时返回 [code]-1[/code]、大于时返回 " "[code]1[/code]、等于时返回 [code]0[/code]。“小于”和“大于”比较的是字符串中的 " "[url=https://zh.wikipedia.org/wiki/" "Unicode%E5%AD%97%E7%AC%A6%E5%88%97%E8%A1%A8]Unicode 码位[/url],大致与字母表" "顺序一致。\n" "[b]字符串长度不同时的行为:[/b] “基准”字符串比 [code]to[/code] 字符串长时返" "回 [code]-1[/code],“基准”字符串比 [code]to[/code] 字符串短时返回 [code]-1[/" "code]。请注意此处的长度为 Unicode 码位的长度,[i]不是[/i]实际的可见字符。\n" "[b]存在空字符串的行为:[/b] “基准”字符串为空时返回 [code]-1[/code],字符串 " "[code]to[/code] 为空时返回 [code]1[/code],两者都为空时返回 [code]0[/" "code]。\n" "如果想在比较字符串时获得布尔型的返回值,请使用 [code]==[/code] 运算符。参阅 " "[method nocasecmp_to]。" #: doc/classes/String.xml msgid "" "Returns the number of occurrences of substring [code]what[/code] between " "[code]from[/code] and [code]to[/code] positions. If [code]from[/code] and " "[code]to[/code] equals 0 the whole string will be used. If only [code]to[/" "code] equals 0 the remained substring will be used." msgstr "" "返回子串 [code]what[/code] 在 [code]from[/code] 和 [code]to[/code] 位置之间出" "现的次数。如果 [code]from[/code] 和 [code]to[/code] 等于 0,则将使用整个字符" "串。如果只有 [code]to[/code] 等于 0,则将使用剩余的子串。" #: doc/classes/String.xml msgid "" "Returns the number of occurrences of substring [code]what[/code] (ignoring " "case) between [code]from[/code] and [code]to[/code] positions. If " "[code]from[/code] and [code]to[/code] equals 0 the whole string will be " "used. If only [code]to[/code] equals 0 the remained substring will be used." msgstr "" "返回子串 [code]what[/code](忽略大小写)在 [code]from[/code] 和 [code]to[/" "code] 位置之间出现的次数。如果 [code]from[/code] 和 [code]to[/code] 等于 0," "则将使用整个字符串。如果只有 [code]to[/code] 等于 0,则将使用剩余的子串。" #: doc/classes/String.xml msgid "" "Returns a copy of the string with indentation (leading tabs and spaces) " "removed. See also [method indent] to add indentation." msgstr "" "返回删除了缩进(前导制表符和空格)的字符串副本。添加缩进请参阅 [method " "indent]。" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if the length of the string equals [code]0[/code]." msgstr "该字符串的长度为 [code]0[/code] 时,返回 [code]true[/code]。" #: doc/classes/String.xml msgid "Returns [code]true[/code] if the string ends with the given string." msgstr "该字符串以指定字符串结尾时,返回 [code]true[/code]。" #: doc/classes/String.xml msgid "" "Erases [code]chars[/code] characters from the string starting from " "[code]position[/code]." msgstr "" "从该字符串的 [code]position[/code] 位置开始,擦除 [code]chars[/code] 个字符。" #: doc/classes/String.xml msgid "" "Finds the first occurrence of a substring. Returns the starting position of " "the substring or [code]-1[/code] if not found. Optionally, the initial " "search index can be passed.\n" "[b]Note:[/b] If you just want to know whether a string contains a substring, " "use the [code]in[/code] operator as follows:\n" "[codeblock]\n" "# Will evaluate to `false`.\n" "if \"i\" in \"team\":\n" " pass\n" "[/codeblock]" msgstr "" "查找首次出现的子字符串。返回该子字符串的起始位置,未找到时则返回 [code]-1[/" "code]。还可以传入查找的起始位置。\n" "[b]注意:[/b]如果只想知道字符串是否包含子字符串,请使用 [code]in[/code] 运算" "符,如下所示:\n" "[codeblock]\n" "# 判断结果将为 `false`。\n" "if \"i\" in \"team\":\n" " pass\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Finds the last occurrence of a substring. Returns the starting position of " "the substring or [code]-1[/code] if not found." msgstr "" "查找最后一次出现的子字符串。如果未找到,则返回子字符串的起始位置或 [code]-1[/" "code]。" #: doc/classes/String.xml msgid "" "Finds the first occurrence of a substring, ignoring case. Returns the " "starting position of the substring or [code]-1[/code] if not found. " "Optionally, the initial search index can be passed." msgstr "" "查找子字符串的第一次出现,忽略大小写。如果未找到,则返回子字符串的起始位置或 " "[code]-1[/code]。或者,可以传递初始搜索索引。" #: doc/classes/String.xml msgid "" "Formats the string by replacing all occurrences of [code]placeholder[/code] " "with [code]values[/code]." msgstr "" "格式化字符串,将所有的 [code]placeholder[/code] 替换为 [code]values[/code]。" #: doc/classes/String.xml msgid "If the string is a valid file path, returns the base directory name." msgstr "字符串为有效文件路径时,返回基础目录名。" #: doc/classes/String.xml msgid "" "If the string is a valid file path, returns the full file path without the " "extension." msgstr "字符串为有效文件路径时,返回完整的文件路径,不带扩展名。" #: doc/classes/String.xml msgid "" "Returns the extension without the leading period character ([code].[/code]) " "if the string is a valid file name or path. If the string does not contain " "an extension, returns an empty string instead.\n" "[codeblock]\n" "print(\"/path/to/file.txt\".get_extension()) # \"txt\"\n" "print(\"file.txt\".get_extension()) # \"txt\"\n" "print(\"file.sample.txt\".get_extension()) # \"txt\"\n" "print(\".txt\".get_extension()) # \"txt\"\n" "print(\"file.txt.\".get_extension()) # \"\" (empty string)\n" "print(\"file.txt..\".get_extension()) # \"\" (empty string)\n" "print(\"txt\".get_extension()) # \"\" (empty string)\n" "print(\"\".get_extension()) # \"\" (empty string)\n" "[/codeblock]" msgstr "" "如果字符串是一个有效的文件名或路径,返回不带句点的扩展名([code].[/code])。" "如果字符串不包含扩展名,则返回一个空字符串。\n" "[codeblock]\n" "print(\"/path/to/file.txt\".get_extension()) # \"txt\"\n" "print(\"file.txt\".get_extension()) # \"txt\"\n" "print(\"file.sample.txt\".get_extension()) # \"txt\"\n" "print(\".txt\".get_extension()) # \"txt\"\n" "print(\"file.txt.\".get_extension()) # \"\" (空字符串)\n" "print(\"file.txt..\".get_extension()) # \"\" (空字符串)\n" "print(\"txt\".get_extension()) # \"\" (空字符串)\n" "print(\"\".get_extension()) # \"\" (空字符串)\n" "[/codeblock]" #: doc/classes/String.xml msgid "If the string is a valid file path, returns the filename." msgstr "字符串为有效文件路径时,返回文件名。" #: doc/classes/String.xml msgid "" "Splits a string using a [code]delimiter[/code] and returns a substring at " "index [code]slice[/code]. Returns an empty string if the index doesn't " "exist.\n" "This is a more performant alternative to [method split] for cases when you " "need only one element from the array at a fixed index.\n" "Example:\n" "[codeblock]\n" "print(\"i/am/example/string\".get_slice(\"/\", 2)) # Prints 'example'.\n" "[/codeblock]" msgstr "" "将字符串使用分隔符 [code]delimiter[/code] 分割,返回位于切片索引 " "[code]slice[/code] 的子串。如果该索引不存在,则返回空字符串。\n" "如果你只需要从数组的固定位置获取单一的元素,那么会比 [method split] 更高" "效。\n" "例子:\n" "[codeblock]\n" "print(\"i/am/example/string\".get_slice(\"/\", 2)) # 输出“example”。\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns the 32-bit hash value representing the string's contents.\n" "[b]Note:[/b] [String]s with equal content will always produce identical hash " "values. However, the reverse is not true. Returning identical hash values " "does [i]not[/i] imply the strings are equal, because different strings can " "have identical hash values due to hash collisions." msgstr "" "返回代表该字符串内容的 32 位哈希值。\n" "[b]注意:[/b]内容相同的 [String] 会得到一致的哈希值。然而,反之不然。返回一致" "的哈希值[i]并不[/i]意味着字符串相等,因为不同的字符串可能因为哈希碰撞而得到一" "致的哈希值。" #: doc/classes/String.xml msgid "" "Converts a string containing a hexadecimal number into an integer. " "Hexadecimal strings are expected to be prefixed with \"[code]0x[/code]\" " "otherwise [code]0[/code] is returned.\n" "[codeblock]\n" "print(\"0xff\".hex_to_int()) # Print \"255\"\n" "[/codeblock]" msgstr "" "将包含十六进制数的字符串转换为整数。十六进制字符串应以“[code]0x[/code]”为前" "缀,否则返回 [code]0[/code]。\n" "[codeblock]\n" "print(\"0xff\".hex_to_int()) # 打印 \"255\"\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Escapes (encodes) a string to URL friendly format. Also referred to as 'URL " "encode'.\n" "[codeblock]\n" "print(\"https://example.org/?escaped=\" + \"Godot Engine:'docs'\"." "http_escape())\n" "[/codeblock]" msgstr "" "对字符串进行转义(编码),使之成为适合 URL 的格式。也被称为“URL 编码”。\n" "[codeblock]\n" "print(\"https://example.org/?escaped=\" + \"Godot Engine:'docs'\"." "http_escape())\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Unescapes (decodes) a string in URL encoded format. Also referred to as 'URL " "decode'.\n" "[codeblock]\n" "print(\"https://example.org/?escaped=\" + \"Godot%20Engine%3A%27docs%27\"." "http_unescape())\n" "[/codeblock]" msgstr "" "解除(解码)一个URL编码格式的字符串。也被称为 \"URL解码\"。\n" "[codeblock]\n" "print(\"https://example.org/?escaped=\" + \"Godot%20Engine%3A%27docs%27\"." "http_unescape())\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Converts [code]size[/code] represented as number of bytes to human-readable " "format using internationalized set of data size units, namely: B, KiB, MiB, " "GiB, TiB, PiB, EiB. Note that the next smallest unit is picked automatically " "to hold at most 1024 units.\n" "[codeblock]\n" "var bytes = 133790307\n" "var size = String.humanize_size(bytes)\n" "print(size) # prints \"127.5 MiB\"\n" "[/codeblock]" msgstr "" "将表示字节数的 [code]size[/code] 转换为人类可读的格式,使用国际化的数据大小单" "位,即:B、KiB、MiB、GiB、TiB、PiB、EiB。请注意,下一个最小的单位是自动挑选" "的,最多可容纳 1024 个单位。\n" "[codeblock]\n" "var bytes = 133790307\n" "var size = String.humanize_size(bytes)\n" "print(size) # 打印“127.5 MiB”\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns a copy of the string with lines indented with [code]prefix[/code].\n" "For example, the string can be indented with two tabs using " "[code]\"\\t\\t\"[/code], or four spaces using [code]\" \"[/code]. The " "prefix can be any string so it can also be used to comment out strings with " "e.g. [code]\"# \"[/code]. See also [method dedent] to remove indentation.\n" "[b]Note:[/b] Empty lines are kept empty." msgstr "" "返回该字符串的副本,其中每一行都使用前缀 [code]prefix[/code] 进行缩进。\n" "例如,字符串可以使用 [code]\"\\t\\t\"[/code] 来缩进两个制表符,或者使用 " "[code]\" \"[/code] 缩进四个空格。前缀可以是任何字符,所以也可以用 " "[code]\"#\"[/code] 等前缀注释掉字符串。移除缩进请参阅 [method dedent]。\n" "[b]注意:[/b]空行会保持为空。" #: doc/classes/String.xml msgid "" "Returns a copy of the string with the substring [code]what[/code] inserted " "at the given position." msgstr "返回在给定位置插入子字符串 [code]what[/code] 后的字符串副本。" #: doc/classes/String.xml msgid "" "If the string is a path to a file or directory, returns [code]true[/code] if " "the path is absolute." msgstr "" "如果字符串是文件或目录的路径,且路径是绝对路径,则返回 [code]true[/code]。" #: doc/classes/String.xml msgid "" "If the string is a path to a file or directory, returns [code]true[/code] if " "the path is relative." msgstr "" "如果字符串是文件或目录的路径,且路径是相对的,则返回 [code]true[/code]。" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string is a subsequence of the given " "string." msgstr "该字符串为指定字符串的子串时,返回 [code]true[/code]。" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string is a subsequence of the given " "string, without considering case." msgstr "" "不考虑大小写的前提下,该字符串为指定字符串的子串时,返回 [code]true[/code]。" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string is free from characters that aren't " "allowed in file names, those being:\n" "[code]: / \\ ? * \" | % < >[/code]" msgstr "" "该字符串不包含文件名中所禁止的字符时,返回 [code]true[/code]。禁止的字符" "有:\n" "[code]: / \\ ? * \" | % < >[/code]" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string contains a valid float. This is " "inclusive of integers, and also supports exponents:\n" "[codeblock]\n" "print(\"1.7\".is_valid_float()) # Prints \"True\"\n" "print(\"24\".is_valid_float()) # Prints \"True\"\n" "print(\"7e3\".is_valid_float()) # Prints \"True\"\n" "print(\"Hello\".is_valid_float()) # Prints \"False\"\n" "[/codeblock]" msgstr "" "如果该字符串包含有效的浮点数,则返回 [code]true[/code]。包含整数,也支持指数" "幂:\n" "[codeblock]\n" "print(\"1.7\".is_valid_float()) # 输出“True”\n" "print(\"24\".is_valid_float()) # 输出“True”\n" "print(\"7e3\".is_valid_float()) # 输出“True”\n" "print(\"Hello\".is_valid_float()) # 输出“False”\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string contains a valid hexadecimal " "number. If [code]with_prefix[/code] is [code]true[/code], then a validity of " "the hexadecimal number is determined by [code]0x[/code] prefix, for " "instance: [code]0xDEADC0DE[/code]." msgstr "" "该字符串包含有效十六进制数时,返回 [code]true[/code]。如果 " "[code]with_prefix[/code] 为 [code]true[/code],则有效的十六进制数还需要包含 " "[code]0x[/code] 前缀,例如:[code]0xDEADC0DE[/code]。" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string contains a valid color in " "hexadecimal HTML notation. Other HTML notations such as named colors or " "[code]hsl()[/code] colors aren't considered valid by this method and will " "return [code]false[/code]." msgstr "" "该字符串包含有效 HTML 十六进制颜色记号时,返回 [code]true[/code]。本方法认为" "具名颜色以及 [code]hsl()[/code] 颜色等其他 HTML 记号无效,会返回 " "[code]false[/code]。" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string is a valid identifier. A valid " "identifier may contain only letters, digits and underscores ([code]_[/code]) " "and the first character may not be a digit.\n" "[codeblock]\n" "print(\"good_ident_1\".is_valid_identifier()) # Prints \"True\"\n" "print(\"1st_bad_ident\".is_valid_identifier()) # Prints \"False\"\n" "print(\"bad_ident_#2\".is_valid_identifier()) # Prints \"False\"\n" "[/codeblock]" msgstr "" "该字符串为有效标识符时,返回 [code]true[/code]。有效标识符仅能够包含字母、数" "字、下划线([code]_[/code]),并且不能以数字开头。\n" "[codeblock]\n" "print(\"good_ident_1\".is_valid_identifier()) # 输出“True”\n" "print(\"1st_bad_ident\".is_valid_identifier()) # 输出“False”\n" "print(\"bad_ident_#2\".is_valid_identifier()) # 输出“False”\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string contains a valid integer.\n" "[codeblock]\n" "print(\"7\".is_valid_int()) # Prints \"True\"\n" "print(\"14.6\".is_valid_int()) # Prints \"False\"\n" "print(\"L\".is_valid_int()) # Prints \"False\"\n" "print(\"+3\".is_valid_int()) # Prints \"True\"\n" "print(\"-12\".is_valid_int()) # Prints \"True\"\n" "[/codeblock]" msgstr "" "如果该字符串包含有效的整数,则返回 [code]true[/code]\n" "[codeblock]\n" "print(\"7\".is_valid_int()) # 输出“True”\n" "print(\"14.6\".is_valid_int()) # 输出“False”\n" "print(\"L\".is_valid_int()) # 输出“False”\n" "print(\"+3\".is_valid_int()) # 输出“True”\n" "print(\"-12\".is_valid_int()) # 输出“True”\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns [code]true[/code] if this string contains only a well-formatted IPv4 " "or IPv6 address. This method considers [url=https://en.wikipedia.org/wiki/" "Reserved_IP_addresses]reserved IP addresses[/url] such as [code]0.0.0.0[/" "code] as valid." msgstr "" "如果此字符串仅包含格式正确的 IPv4 或 IPv6 地址,则返回 [code]true[/code]。该" "方法认为[url=https://en.wikipedia.org/wiki/Reserved_IP_addresses]保留IP地址[/" "url]如[code]0.0.0.0[/code]是有效的。" #: doc/classes/String.xml msgid "" "Return a [String] which is the concatenation of the [code]parts[/code]. The " "separator between elements is the string providing this method.\n" "Example:\n" "[codeblock]\n" "print(\", \".join([\"One\", \"Two\", \"Three\", \"Four\"]))\n" "[/codeblock]" msgstr "" "返回将 [code]parts[/code] 相连后得到的 [String]。元素之间的分隔符是提供这个方" "法的字符串。\n" "示例:\n" "[codeblock]\n" "print(\", \".join([\"One\", \"Two\", \"Three\", \"Four\"]))\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns a copy of the string with special characters escaped using the JSON " "standard." msgstr "返回使用 JSON 标准对特殊字符进行转义后的字符串副本。" #: doc/classes/String.xml msgid "Returns a number of characters from the left of the string." msgstr "返回该字符串自左侧起的若干个字符。" #: doc/classes/String.xml msgid "Returns the string's amount of characters." msgstr "返回字符串的字符数。" #: doc/classes/String.xml msgid "" "Returns a copy of the string with characters removed from the left. The " "[code]chars[/code] argument is a string specifying the set of characters to " "be removed.\n" "[b]Note:[/b] The [code]chars[/code] is not a prefix. See [method " "trim_prefix] method that will remove a single prefix string rather than a " "set of characters." msgstr "" "返回该字符串从左侧删除若干字符后的副本。参数 [code]chars[/code] 为包含所需删" "除字符的字符串。\n" "[b]注意:[/b][code]chars[/code] 不是前缀。如果不想删除一组字符,而是想删除单" "一的前缀字符串,请参阅 [method trim_prefix]。" #: doc/classes/String.xml msgid "" "Does a simple case-sensitive expression match, where [code]\"*\"[/code] " "matches zero or more arbitrary characters and [code]\"?\"[/code] matches any " "single character except a period ([code]\".\"[/code]). An empty string or " "empty expression always evaluates to [code]false[/code]." msgstr "" "判断表达式是否匹配,区分大小写,其中 [code]\"*\"[/code] 匹配零个或多个任意字" "符并且 [code]\"?\"[/code] 匹配除句点( [code]\".\"[/code] )外的任意字符。如果" "字符串或表达式为空,则始终返回 [code]false[/code]。" #: doc/classes/String.xml msgid "" "Does a simple case-insensitive expression match, where [code]\"*\"[/code] " "matches zero or more arbitrary characters and [code]\"?\"[/code] matches any " "single character except a period ([code]\".\"[/code]). An empty string or " "empty expression always evaluates to [code]false[/code]." msgstr "" "判断表达式是否匹配,不区分大小写,其中 [code]\"*\"[/code] 匹配零个或多个任意" "字符并且 [code]\"?\"[/code] 匹配除句点( [code]\".\"[/code] )外的任意字符。如" "果字符串或表达式为空,则始终返回 [code]false[/code]。" #: doc/classes/String.xml msgid "Returns the MD5 hash of the string as an array of bytes." msgstr "以字节数组的形式返回该字符串的 MD5 哈希值。" #: doc/classes/String.xml msgid "Returns the MD5 hash of the string as a string." msgstr "以字符串的形式返回该字符串的 MD5 哈希值。" #: doc/classes/String.xml msgid "" "Performs a case-insensitive [i]natural order[/i] comparison to another " "string. Returns [code]-1[/code] if less than, [code]1[/code] if greater " "than, or [code]0[/code] if equal. \"less than\" or \"greater than\" are " "determined by the [url=https://en.wikipedia.org/wiki/" "List_of_Unicode_characters]Unicode code points[/url] of each string, which " "roughly matches the alphabetical order. Internally, lowercase characters " "will be converted to uppercase during the comparison.\n" "When used for sorting, natural order comparison will order suites of numbers " "as expected by most people. If you sort the numbers from 1 to 10 using " "natural order, you will get [code][1, 2, 3, ...][/code] instead of [code][1, " "10, 2, 3, ...][/code].\n" "[b]Behavior with different string lengths:[/b] Returns [code]1[/code] if the " "\"base\" string is longer than the [code]to[/code] string or [code]-1[/code] " "if the \"base\" string is shorter than the [code]to[/code] string. Keep in " "mind this length is determined by the number of Unicode codepoints, [i]not[/" "i] the actual visible characters.\n" "[b]Behavior with empty strings:[/b] Returns [code]-1[/code] if the \"base\" " "string is empty, [code]1[/code] if the [code]to[/code] string is empty or " "[code]0[/code] if both strings are empty.\n" "To get a boolean result from a string comparison, use the [code]==[/code] " "operator instead. See also [method nocasecmp_to] and [method casecmp_to]." msgstr "" "与另一个字符串进行[i]自然顺序[/i]比较,不区分大小写。小于时返回 [code]-1[/" "code]、大于时返回 [code]1[/code]、等于时返回 [code]0[/code]。“小于”和“大于”比" "较的是字符串中的 [url=https://zh.wikipedia.org/wiki/" "Unicode%E5%AD%97%E7%AC%A6%E5%88%97%E8%A1%A8]Unicode 码位[/url],大致与字母表" "顺序一致。内部实现时,会将小写字符转换为大写后进行比较。\n" "使用自然顺序进行排序时,对连续数字的排序符合大多数人的预期。使用自然顺序对 1 " "到 10 进行排序后,会得到 [code][1, 2, 3, ...][/code] 而不是 [code][1, 10, 2, " "3, ...][/code]。\n" "[b]字符串长度不同时的行为:[/b] “基准”字符串比 [code]to[/code] 字符串长时返" "回 [code]-1[/code],“基准”字符串比 [code]to[/code] 字符串短时返回 [code]-1[/" "code]。请注意此处的长度为 Unicode 码位的长度,[i]不是[/i]实际的可见字符。\n" "[b]存在空字符串的行为:[/b] “基准”字符串为空时返回 [code]-1[/code],字符串 " "[code]to[/code] 为空时返回 [code]1[/code],两者都为空时返回 [code]0[/" "code]。\n" "如果想在比较字符串时获得布尔型的返回值,请使用 [code]==[/code] 运算符。参阅 " "[method casecmp_to]。" #: doc/classes/String.xml msgid "" "Performs a case-insensitive comparison to another string. Returns [code]-1[/" "code] if less than, [code]1[/code] if greater than, or [code]0[/code] if " "equal. \"less than\" or \"greater than\" are determined by the [url=https://" "en.wikipedia.org/wiki/List_of_Unicode_characters]Unicode code points[/url] " "of each string, which roughly matches the alphabetical order. Internally, " "lowercase characters will be converted to uppercase during the comparison.\n" "[b]Behavior with different string lengths:[/b] Returns [code]1[/code] if the " "\"base\" string is longer than the [code]to[/code] string or [code]-1[/code] " "if the \"base\" string is shorter than the [code]to[/code] string. Keep in " "mind this length is determined by the number of Unicode codepoints, [i]not[/" "i] the actual visible characters.\n" "[b]Behavior with empty strings:[/b] Returns [code]-1[/code] if the \"base\" " "string is empty, [code]1[/code] if the [code]to[/code] string is empty or " "[code]0[/code] if both strings are empty.\n" "To get a boolean result from a string comparison, use the [code]==[/code] " "operator instead. See also [method casecmp_to]." msgstr "" "与另一个字符串进行比较,不区分大小写。小于时返回 [code]-1[/code]、大于时返回 " "[code]1[/code]、等于时返回 [code]0[/code]。“小于”和“大于”比较的是字符串中的 " "[url=https://zh.wikipedia.org/wiki/" "Unicode%E5%AD%97%E7%AC%A6%E5%88%97%E8%A1%A8]Unicode 码位[/url],大致与字母表" "顺序一致。内部实现时,会将小写字符转换为大写后进行比较。\n" "[b]字符串长度不同时的行为:[/b] “基准”字符串比 [code]to[/code] 字符串长时返" "回 [code]-1[/code],“基准”字符串比 [code]to[/code] 字符串短时返回 [code]-1[/" "code]。请注意此处的长度为 Unicode 码位的长度,[i]不是[/i]实际的可见字符。\n" "[b]存在空字符串的行为:[/b] “基准”字符串为空时返回 [code]-1[/code],字符串 " "[code]to[/code] 为空时返回 [code]1[/code],两者都为空时返回 [code]0[/" "code]。\n" "如果想在比较字符串时获得布尔型的返回值,请使用 [code]==[/code] 运算符。参阅 " "[method casecmp_to]。" #: doc/classes/String.xml msgid "Returns the character code at position [code]at[/code]." msgstr "返回 [code]at[/code] 处的字符代码。" #: doc/classes/String.xml msgid "" "Formats a number to have an exact number of [code]digits[/code] after the " "decimal point." msgstr "格式化数字,在小数点后具有 [code]digits[/code] 的确切数字。" #: doc/classes/String.xml msgid "" "Formats a number to have an exact number of [code]digits[/code] before the " "decimal point." msgstr "格式化数字,在小数点前具有 [code]digits[/code] 的确切数字。" #: doc/classes/String.xml msgid "Decode a percent-encoded string. See [method percent_encode]." msgstr "解码一个百分比编码的字符串。参阅[method percent_encode]。" #: doc/classes/String.xml msgid "" "Percent-encodes a string. Encodes parameters in a URL when sending a HTTP " "GET request (and bodies of form-urlencoded POST requests)." msgstr "" "对字符串进行百分比编码。发送 HTTP GET 请求(以及表单 urlencoded POST 请求的主" "体)时在 URL 中编码参数。" #: doc/classes/String.xml msgid "" "If the string is a path, this concatenates [code]file[/code] at the end of " "the string as a subpath. E.g. [code]\"this/is\".plus_file(\"path\") == " "\"this/is/path\"[/code]." msgstr "" "如果字符串是路径,则在字符串末尾连接 [code]file[/code] 作为子路径。例如。 " "[code]\"this/is\".plus_file(\"path\") == \"this/is/path\"[/code]。" #: doc/classes/String.xml msgid "" "Returns original string repeated a number of times. The number of " "repetitions is given by the argument." msgstr "返回重复多次的原始字符串。重复次数由参数给出。" #: doc/classes/String.xml msgid "" "Replaces occurrences of a case-sensitive substring with the given one inside " "the string." msgstr "将出现的子字符串替换为字符串中给定的子字符串,区分大小写。" #: doc/classes/String.xml msgid "" "Replaces occurrences of a case-insensitive substring with the given one " "inside the string." msgstr "将出现的子字符串替换为字符串中给定的子字符串,不区分大小写。" #: doc/classes/String.xml msgid "" "Performs a case-sensitive search for a substring, but starts from the end of " "the string instead of the beginning." msgstr "执行子字符串搜索,区分大小写。不过是从字符串末尾开始搜索,而不是开头。" #: doc/classes/String.xml msgid "" "Performs a case-insensitive search for a substring, but starts from the end " "of the string instead of the beginning." msgstr "" "执行子字符串搜索,不区分大小写。不过是从字符串末尾开始搜索,而不是开头。" #: doc/classes/String.xml msgid "Returns the right side of the string from a given position." msgstr "返回该字符串指定位置右侧的内容。" #: doc/classes/String.xml msgid "" "Splits the string by a [code]delimiter[/code] string and returns an array of " "the substrings, starting from right.\n" "The splits in the returned array are sorted in the same order as the " "original string, from left to right.\n" "If [code]maxsplit[/code] is specified, it defines the number of splits to do " "from the right up to [code]maxsplit[/code]. The default value of 0 means " "that all items are split, thus giving the same result as [method split].\n" "Example:\n" "[codeblock]\n" "var some_string = \"One,Two,Three,Four\"\n" "var some_array = some_string.rsplit(\",\", true, 1)\n" "print(some_array.size()) # Prints 2\n" "print(some_array[0]) # Prints \"One,Two,Three\"\n" "print(some_array[1]) # Prints \"Four\"\n" "[/codeblock]" msgstr "" "从右侧开始,通过 [code]delimiter[/code] 字符串拆分字符串并返回子字符串数" "组。\n" "返回数组中的拆分按与原始字符串相同的顺序从左到右排序。\n" "如果指定了 [code]maxsplit[/code],它定义了从右边到 [code]maxsplit[/code] 的分" "割数。默认值 0 表示所有项目都被拆分,因此给出与 [method split] 相同的结果。\n" "例子:\n" "[codeblock]\n" "var some_string = \"One,Two,Three,Four\"\n" "var some_array = some_string.rsplit(\",\", true, 1)\n" "print(some_array.size()) # 打印 2\n" "print(some_array[0]) # 打印 \"One,Two,Three\"\n" "print(some_array[1]) # 打印 \"Four\"\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Returns a copy of the string with characters removed from the right. The " "[code]chars[/code] argument is a string specifying the set of characters to " "be removed.\n" "[b]Note:[/b] The [code]chars[/code] is not a suffix. See [method " "trim_suffix] method that will remove a single suffix string rather than a " "set of characters." msgstr "" "返回该字符串从右侧删除若干字符后的副本。参数 [code]chars[/code] 为包含所需删" "除字符的字符串。\n" "[b]注意:[/b][code]chars[/code] 不是后缀。如果不想删除一组字符,而是想删除单" "一的前缀字符串,请参阅 [method trim_suffix]。" #: doc/classes/String.xml msgid "Returns the SHA-1 hash of the string as an array of bytes." msgstr "以字节数组的形式返回字符串的 SHA-1 哈希值。" #: doc/classes/String.xml msgid "Returns the SHA-1 hash of the string as a string." msgstr "以字符串形式返回字符串的 SHA-1 哈希值。" #: doc/classes/String.xml msgid "Returns the SHA-256 hash of the string as an array of bytes." msgstr "以字节数组的形式返回字符串的 SHA-256 哈希值。" #: doc/classes/String.xml msgid "Returns the SHA-256 hash of the string as a string." msgstr "以字符串形式返回字符串的 SHA-256 哈希值。" #: doc/classes/String.xml msgid "" "Returns the similarity index ([url=https://en.wikipedia.org/wiki/" "S%C3%B8rensen%E2%80%93Dice_coefficient]Sorensen-Dice coefficient[/url]) of " "this string compared to another. A result of 1.0 means totally similar, " "while 0.0 means totally dissimilar.\n" "[codeblock]\n" "print(\"ABC123\".similarity(\"ABC123\")) # Prints \"1\"\n" "print(\"ABC123\".similarity(\"XYZ456\")) # Prints \"0\"\n" "print(\"ABC123\".similarity(\"123ABC\")) # Prints \"0.8\"\n" "print(\"ABC123\".similarity(\"abc123\")) # Prints \"0.4\"\n" "[/codeblock]" msgstr "" "返回该字符串与另一个字符串的相似指数([url=https://zh.wikipedia.org/wiki/" "Dice%E7%B3%BB%E6%95%B0]索伦森-骰子系数[/url])。结果为 1.0 表示完全相似,0.0 " "表示完全不相似。\n" "[codeblock]\n" "print(\"ABC123\".similarity(\"ABC123\")) # 输出“1”\n" "print(\"ABC123\".similarity(\"XYZ456\")) # 输出“0”\n" "print(\"ABC123\".similarity(\"123ABC\")) # 输出“0.8”\n" "print(\"ABC123\".similarity(\"abc123\")) # 输出“0.4”\n" "[/codeblock]" #: doc/classes/String.xml msgid "Returns a simplified canonical path." msgstr "返回简化的规范路径。" #: doc/classes/String.xml msgid "" "Splits the string by a [code]delimiter[/code] string and returns an array of " "the substrings. The [code]delimiter[/code] can be of any length.\n" "If [code]maxsplit[/code] is specified, it defines the number of splits to do " "from the left up to [code]maxsplit[/code]. The default value of [code]0[/" "code] means that all items are split.\n" "If you need only one element from the array at a specific index, [method " "get_slice] is a more performant option.\n" "Example:\n" "[codeblock]\n" "var some_string = \"One,Two,Three,Four\"\n" "var some_array = some_string.split(\",\", true, 1)\n" "print(some_array.size()) # Prints 2\n" "print(some_array[0]) # Prints \"One\"\n" "print(some_array[1]) # Prints \"Two,Three,Four\"\n" "[/codeblock]\n" "If you need to split strings with more complex rules, use the [RegEx] class " "instead." msgstr "" "通过 [code]delimiter[/code] 字符串拆分字符串并返回子字符串数组。 " "[code]delimiter[/code] 可以是任意长度。\n" "如果指定了 [code]maxsplit[/code],它定义了从左边到 [code]maxsplit[/code] 的分" "割次数。默认值 [code]0[/code] 表示所有项目都被拆分。\n" "如果你只需要该数组中的某个元素,[method get_slice] 是一个效率更高的选项。\n" "例子:\n" "[codeblock]\n" "var some_string = \"One,Two,Three,Four\"\n" "var some_array = some_string.split(\",\", true, 1)\n" "print(some_array.size()) # 打印 2\n" "print(some_array[0]) # 打印 \"One\"\n" "print(some_array[1]) # 打印 \"Two,Three,Four\"\n" "[/codeblock]\n" "如果您需要使用更复杂的规则拆分字符串,请改用 [RegEx] 类。" #: doc/classes/String.xml msgid "" "Splits the string in floats by using a delimiter string and returns an array " "of the substrings.\n" "For example, [code]\"1,2.5,3\"[/code] will return [code][1,2.5,3][/code] if " "split by [code]\",\"[/code]." msgstr "" "使用分隔符字符串将字符串拆分为浮点数,并返回子字符串数组。\n" "例如,如果被 [code]\",\"[/code] 分割,[code]\"1,2.5,3\"[/code] 将返回 [code]" "[1,2.5,3][/code] 。" #: doc/classes/String.xml msgid "" "Returns a copy of the string stripped of any non-printable character " "(including tabulations, spaces and line breaks) at the beginning and the " "end. The optional arguments are used to toggle stripping on the left and " "right edges respectively." msgstr "" "返回在开头和结尾去除了任何不可打印字符(包括制表符、空格和换行符)的字符串的" "副本。可选参数分别用于切换左右边缘的删除。" #: doc/classes/String.xml msgid "" "Returns a copy of the string stripped of any escape character. These include " "all non-printable control characters of the first page of the ASCII table (< " "32), such as tabulation ([code]\\t[/code] in C) and newline ([code]\\n[/" "code] and [code]\\r[/code]) characters, but not spaces." msgstr "" "返回去除了任何转义字符的字符串的副本。这些包括 ASCII 表第一页的所有不可打印控" "制字符(< 32),例如制表符(C 中的 [code]\\t[/code])和换行符([code]\\n[/" "code] 和 [code]]\\r[/code]) 字符,但不是空格。" #: doc/classes/String.xml msgid "" "Returns part of the string from the position [code]from[/code] with length " "[code]len[/code]. Argument [code]len[/code] is optional and using [code]-1[/" "code] will return remaining characters from given position." msgstr "" "从 [code]from[/code] 返回字符串的一部分,长度为 [code]len[/code]。参数 " "[code]len[/code] 是可选的,使用 [code]-1[/code] 将返回给定位置的剩余字符。" #: doc/classes/String.xml msgid "" "Converts the String (which is a character array) to [PoolByteArray] (which " "is an array of bytes). The conversion is faster compared to [method " "to_utf8], as this method assumes that all the characters in the String are " "ASCII characters." msgstr "" "将 String(字符数组)转换为 [PoolByteArray](字节数组)。与 [method to_utf8] " "相比,转换速度更快,因为此方法假定 String 中的所有字符都是 ASCII 字符。" #: doc/classes/String.xml msgid "" "Converts a string containing a decimal number into a [code]float[/code]. The " "method will stop on the first non-number character except the first [code].[/" "code] (decimal point), and [code]e[/code] which is used for exponential.\n" "[codeblock]\n" "print(\"12.3\".to_float()) # 12.3\n" "print(\"1.2.3\".to_float()) # 1.2\n" "print(\"12ab3\".to_float()) # 12\n" "print(\"1e3\".to_float()) # 1000\n" "[/codeblock]" msgstr "" "将包含十进制数字的字符串转换为 [code]float[/code]。该方法会在首个非数字字符处" "停止,除非是首次遇到 [code].[/code](小数点)以及表示指数的 [code]e[/" "code]。\n" "[codeblock]\n" "print(\"12.3\".to_float()) # 12.3\n" "print(\"1.2.3\".to_float()) # 1.2\n" "print(\"12ab3\".to_float()) # 12\n" "print(\"1e3\".to_float()) # 1000\n" "[/codeblock]" #: doc/classes/String.xml msgid "" "Converts a string containing an integer number into an [code]int[/code]. The " "method will remove any non-number character and stop if it encounters a " "[code].[/code].\n" "[codeblock]\n" "print(\"123\".to_int()) # 123\n" "print(\"a1b2c3\".to_int()) # 123\n" "print(\"1.2.3\".to_int()) # 1\n" "[/codeblock]" msgstr "" "将包含证书的字符串转换为 [code]int[/code]。该方法会删除任何非数字字符,并在遇" "到 [code].[/code] 后停止。\n" "[codeblock]\n" "print(\"123\".to_int()) # 123\n" "print(\"a1b2c3\".to_int()) # 123\n" "print(\"1.2.3\".to_int()) # 1\n" "[/codeblock]" #: doc/classes/String.xml msgid "Returns the string converted to lowercase." msgstr "返回转换为小写的字符串。" #: doc/classes/String.xml msgid "Returns the string converted to uppercase." msgstr "返回转换为大写的字符串。" #: doc/classes/String.xml msgid "" "Converts the String (which is an array of characters) to [PoolByteArray] " "(which is an array of bytes). The conversion is a bit slower than [method " "to_ascii], but supports all UTF-8 characters. Therefore, you should prefer " "this function over [method to_ascii]." msgstr "" "将字符串(字符数组)转换为 [PoolByteArray](字节数组)。转换比 [method " "to_ascii] 慢一点,但支持所有 UTF-8 字符。因此,您应该更喜欢这个函数而不是 " "[method to_ascii]。" #: doc/classes/String.xml msgid "" "Converts the String (which is an array of characters) to [PoolByteArray] " "(which is an array of bytes)." msgstr "将字符串(字符的数组)转换为 [PoolByteArray](字节的数组)。" #: doc/classes/String.xml msgid "" "Removes a given string from the start if it starts with it or leaves the " "string unchanged." msgstr "如果以一个给定的字符串为开头,则从该字符串中删除,或者不改变该字符串。" #: doc/classes/String.xml msgid "" "Removes a given string from the end if it ends with it or leaves the string " "unchanged." msgstr "如果以一个给定的字符串为结尾,则从该字符串中删除,或者不改变该字符串。" #: doc/classes/String.xml msgid "" "Removes any characters from the string that are prohibited in [Node] names " "([code].[/code] [code]:[/code] [code]@[/code] [code]/[/code] [code]\"[/" "code])." msgstr "" "从字符串中删除所有不允许在 [Node] 名称中出现的字符([code].[/code] [code]:[/" "code] [code]@[/code] [code]/[/code] [code]\"[/code])。" #: doc/classes/String.xml msgid "" "Returns a copy of the string with special characters escaped using the XML " "standard." msgstr "返回带有使用 XML 标准转义的特殊字符的字符串的副本。" #: doc/classes/String.xml msgid "" "Returns a copy of the string with escaped characters replaced by their " "meanings according to the XML standard." msgstr "返回根据 XML 标准将转义字符替换为其含义的字符串副本。" #: doc/classes/StyleBox.xml msgid "Base class for drawing stylized boxes for the UI." msgstr "用于为 UI 绘制风格化框的基类。" #: doc/classes/StyleBox.xml msgid "" "StyleBox is [Resource] that provides an abstract base class for drawing " "stylized boxes for the UI. StyleBoxes are used for drawing the styles of " "buttons, line edit backgrounds, tree backgrounds, etc. and also for testing " "a transparency mask for pointer signals. If mask test fails on a StyleBox " "assigned as mask to a control, clicks and motion signals will go through it " "to the one below.\n" "[b]Note:[/b] For children of [Control] that have [i]Theme Properties[/i], " "the [code]focus[/code] [StyleBox] is displayed over the [code]normal[/code], " "[code]hover[/code] or [code]pressed[/code] [StyleBox]. This makes the " "[code]focus[/code] [StyleBox] more reusable across different nodes." msgstr "" "样式盒 StyleBox 是一种 [Resource],它提供了一个抽象基类,用于为 UI 绘制风格化" "的框。 StyleBox 被用于绘制按钮的样式、行编辑框的背景、树的背景等,也被用作测" "试指针信号的透明掩码。将 StyleBox 指定为控件的掩码时,如果在掩码测试失败,点" "击和运动信号将透过它传递至下层控件。\n" "[b]注意:[/b]对于有 [i]主题属性[/i] 的 [Control] 控件,名为 [code]focus[/" "code] 的 [StyleBox] 会显示在名为 [code]normal[/code]、[code]hover[/code]、" "[code]pressed[/code] 的 [StyleBox]之上。这样的行为有助于 [code]focus[/code] " "[StyleBox] 在不同节点上复用。" #: doc/classes/StyleBox.xml msgid "" "Draws this stylebox using a [CanvasItem] with given [RID].\n" "You can get a [RID] value using [method Object.get_instance_id] on a " "[CanvasItem]-derived node." msgstr "" "使用具有给定 [RID] 的 [CanvasItem] 绘制此StyleBox。\n" "您可以在 [CanvasItem] 派生节点上使用 [method Object.get_instance_id] 获取 " "[RID] 值。" #: doc/classes/StyleBox.xml msgid "Returns the size of this [StyleBox] without the margins." msgstr "返回没有边距的 [StyleBox] 的大小。" #: doc/classes/StyleBox.xml msgid "" "Returns the [CanvasItem] that handles its [constant CanvasItem." "NOTIFICATION_DRAW] or [method CanvasItem._draw] callback at this moment." msgstr "" "返回此时处理其 [constant CanvasItem.NOTIFICATION_DRAW] 或 [method CanvasItem." "_draw] 回调的 [CanvasItem]。" #: doc/classes/StyleBox.xml msgid "Returns the default value of the specified [enum Margin]." msgstr "返回指定 [enum Margin] 的默认值。" #: doc/classes/StyleBox.xml msgid "" "Returns the content margin offset for the specified [enum Margin].\n" "Positive values reduce size inwards, unlike [Control]'s margin values." msgstr "" "返回指定 [enum Margin] 的内容边距偏移量。\n" "与 [Control] 的边距值不同,正值会向内减小尺寸。" #: doc/classes/StyleBox.xml msgid "Returns the minimum size that this stylebox can be shrunk to." msgstr "返回此样式盒可以缩小到的最小尺寸。" #: doc/classes/StyleBox.xml msgid "" "Returns the \"offset\" of a stylebox. This helper function returns a value " "equivalent to [code]Vector2(style.get_margin(MARGIN_LEFT), style." "get_margin(MARGIN_TOP))[/code]." msgstr "" "返回样式盒的“偏移量”。这个辅助函数返回一个等价于 [code]Vector2(style." "get_margin(MARGIN_LEFT), style.get_margin(MARGIN_TOP))[/code] 的值。" #: doc/classes/StyleBox.xml msgid "" "Sets the default value of the specified [enum Margin] to given [code]offset[/" "code] in pixels." msgstr "" "将指定 [enum Margin] 边距的默认值设置为给定的 [code]offset[/code],单位为像" "素。" #: doc/classes/StyleBox.xml msgid "Test a position in a rectangle, return whether it passes the mask test." msgstr "测试矩形中的一个位置,返回它是否通过掩码测试。" #: doc/classes/StyleBox.xml msgid "" "The bottom margin for the contents of this style box. Increasing this value " "reduces the space available to the contents from the bottom.\n" "If this value is negative, it is ignored and a child-specific margin is used " "instead. For example for [StyleBoxFlat] the border thickness (if any) is " "used instead.\n" "It is up to the code using this style box to decide what these contents are: " "for example, a [Button] respects this content margin for the textual " "contents of the button.\n" "[method get_margin] should be used to fetch this value as consumer instead " "of reading these properties directly. This is because it correctly respects " "negative values and the fallback mentioned above." msgstr "" "此样式盒内容的底边距。增加此值会从底部减少内容的可用空间。\n" "如果此值为负,则将其忽略并改为使用特定于该子类型的边距。例如,对于 " "[StyleBoxFlat],(如果有厚度的话)将使用边框厚度。\n" "内容是什么由使用此样式盒的代码决定:例如 [Button] 会为其文本内容设置此内容边" "距。\n" "使用者应该通过 [method get_margin] 获取边距,而不是直接读取单独方向上的属性。" "这是因为这个函数会正确处理负值和上述备用逻辑。" #: doc/classes/StyleBox.xml msgid "" "The left margin for the contents of this style box.Increasing this value " "reduces the space available to the contents from the left.\n" "Refer to [member content_margin_bottom] for extra considerations." msgstr "" "此样式盒内容的左边距。增加此值会从左侧减少内容的可用空间。\n" "额外的注意事项请参阅 [member content_margin_bottom]。" #: doc/classes/StyleBox.xml msgid "" "The right margin for the contents of this style box. Increasing this value " "reduces the space available to the contents from the right.\n" "Refer to [member content_margin_bottom] for extra considerations." msgstr "" "此样式盒内容的右边距。增加此值会从右侧减少内容的可用空间。\n" "额外的注意事项请参阅 [member content_margin_bottom]。" #: doc/classes/StyleBox.xml msgid "" "The top margin for the contents of this style box. Increasing this value " "reduces the space available to the contents from the top.\n" "Refer to [member content_margin_bottom] for extra considerations." msgstr "" "此样式盒内容的顶边距。增加此值会从顶部减少内容的可用空间。\n" "额外的注意事项请参阅 [member content_margin_bottom]。" #: doc/classes/StyleBoxEmpty.xml msgid "Empty stylebox (does not display anything)." msgstr "空的样式盒(不显示任何东西)。" #: doc/classes/StyleBoxEmpty.xml msgid "Empty stylebox (really does not display anything)." msgstr "空的样式盒(真的不显示任何东西)。" #: doc/classes/StyleBoxFlat.xml msgid "" "Customizable [StyleBox] with a given set of parameters (no texture required)." msgstr "可通过一系列参数自定义的 [StyleBox](无需纹理) 。" #: doc/classes/StyleBoxFlat.xml msgid "" "This [StyleBox] can be used to achieve all kinds of looks without the need " "of a texture. The following properties are customizable:\n" "- Color\n" "- Border width (individual width for each border)\n" "- Rounded corners (individual radius for each corner)\n" "- Shadow (with blur and offset)\n" "Setting corner radius to high values is allowed. As soon as corners overlap, " "the stylebox will switch to a relative system. Example:\n" "[codeblock]\n" "height = 30\n" "corner_radius_top_left = 50\n" "corner_radius_bottom_left = 100\n" "[/codeblock]\n" "The relative system now would take the 1:2 ratio of the two left corners to " "calculate the actual corner width. Both corners added will [b]never[/b] be " "more than the height. Result:\n" "[codeblock]\n" "corner_radius_top_left: 10\n" "corner_radius_bottom_left: 20\n" "[/codeblock]" msgstr "" "这个 [StyleBox] 可以用来实现各种外观,无需纹理。以下属性是可定制的:\n" "- 颜色\n" "- 边框宽度(每个边框的单独宽度)\n" "- 圆角(每个角的单独半径)\n" "- 阴影(带有模糊和偏移)\n" "允许将圆角半径设置为很高的值。两角重叠时,样式盒将切换到相对系统。例子:\n" "[codeblock]\n" "height = 30\n" "corner_radius_top_left = 50\n" "corner_radius_bottom_left = 100\n" "[/codeblock]\n" "相对系统现在将采用两个左角的 1:2 比率来计算实际角宽度。添加的两个角[b]永远[/" "b]不会超过高度。结果:\n" "[codeblock]\n" "corner_radius_top_left: 10\n" "corner_radius_bottom_left: 20\n" "[/codeblock]" #: doc/classes/StyleBoxFlat.xml msgid "" "Returns the given [code]margin[/code]'s border width. See [enum Margin] for " "possible values." msgstr "" "返回给定的 [code]margin[/code] 的边框宽度。有关可能的值,请参阅 [enum " "Margin]。" #: doc/classes/StyleBoxFlat.xml msgid "Returns the smallest border width out of all four borders." msgstr "返回所有四个边界中最小的边框宽度。" #: doc/classes/StyleBoxFlat.xml msgid "" "Returns the given [code]corner[/code]'s radius. See [enum Corner] for " "possible values." msgstr "" "返回给定的 [code]corner[/code] 的半径。有关可能的值,请参阅 [enum Corner]。" #: doc/classes/StyleBoxFlat.xml doc/classes/StyleBoxTexture.xml msgid "" "Returns the size of the given [code]margin[/code]'s expand margin. See [enum " "Margin] for possible values." msgstr "" "返回给定的[code]margin[/code]的扩展边距的大小。可能的值见[enum Margin]。" #: doc/classes/StyleBoxFlat.xml msgid "" "Sets the border width to [code]width[/code] pixels for the given " "[code]margin[/code]. See [enum Margin] for possible values." msgstr "" "用给定的[code]margin[/code]设置边界宽度为[code]width[/code]像素。可能的值见" "[enum Margin]。" #: doc/classes/StyleBoxFlat.xml msgid "Sets the border width to [code]width[/code] pixels for all margins." msgstr "将所有边距的边框宽度设置为 [code]width[/code] 像素。" #: doc/classes/StyleBoxFlat.xml msgid "" "Sets the corner radius to [code]radius[/code] pixels for the given " "[code]corner[/code]. See [enum Corner] for possible values." msgstr "" "用给定的[code]corner[/code]设置角的半径为[code]radius[/code]像素。可能的值见" "[enum Corner]。" #: doc/classes/StyleBoxFlat.xml msgid "Sets the corner radius to [code]radius[/code] pixels for all corners." msgstr "将所有角的角半径设置为 [code]radius[/code] 像素。" #: doc/classes/StyleBoxFlat.xml msgid "" "Sets the corner radius for each corner to [code]radius_top_left[/code], " "[code]radius_top_right[/code], [code]radius_bottom_right[/code], and " "[code]radius_bottom_left[/code] pixels." msgstr "" "将每个角的角半径设置为 [code]radius_top_left[/code]、[code]radius_top_right[/" "code]、[code]radius_bottom_right[/code] 和 [code]radius_bottom_left[/code] 像" "素。" #: doc/classes/StyleBoxFlat.xml doc/classes/StyleBoxTexture.xml msgid "" "Sets the expand margin to [code]size[/code] pixels for the given " "[code]margin[/code]. See [enum Margin] for possible values." msgstr "" "将给定的 [code]margin[/code] 的扩展边距设置为 [code]size[/code] 像素。有关可" "能的值,请参阅 [enum Margin]。" #: doc/classes/StyleBoxFlat.xml doc/classes/StyleBoxTexture.xml msgid "Sets the expand margin to [code]size[/code] pixels for all margins." msgstr "将所有边距的扩展边距设置为 [code]size[/code] 像素。" #: doc/classes/StyleBoxFlat.xml doc/classes/StyleBoxTexture.xml msgid "" "Sets the expand margin for each margin to [code]size_left[/code], " "[code]size_top[/code], [code]size_right[/code], and [code]size_bottom[/code] " "pixels." msgstr "" "将每个边距的扩展边距设置为 [code]size_left[/code]、[code]size_top[/code]、" "[code]size_right[/code] 和 [code]size_bottom[/code] 像素。" #: doc/classes/StyleBoxFlat.xml msgid "" "Antialiasing draws a small ring around the edges, which fades to " "transparency. As a result, edges look much smoother. This is only noticeable " "when using rounded corners or [member skew].\n" "[b]Note:[/b] When using beveled corners with 45-degree angles ([member " "corner_detail] = 1), it is recommended to set [member anti_aliasing] to " "[code]false[/code] to ensure crisp visuals and avoid possible visual " "glitches." msgstr "" "抗锯齿会在边缘周围绘制一个渐变到透明的小环。因此边缘看起来会更加平滑。这仅在" "使用圆角或 [member skew] 时才明显。\n" "[b]注意:[/b]使用 45 度倒角([member corner_detail] = 1)时,建议将 [member " "anti_aliasing] 设为 [code]false[/code],这样可以保证画面锐利、避免一些显示问" "题。" #: doc/classes/StyleBoxFlat.xml msgid "" "This changes the size of the faded ring. Higher values can be used to " "achieve a \"blurry\" effect." msgstr "这将改变褪色环的大小。更高的数值可以用来实现 \"模糊 \"的效果。" #: doc/classes/StyleBoxFlat.xml msgid "The background color of the stylebox." msgstr "StyleBox的背景颜色。" #: doc/classes/StyleBoxFlat.xml msgid "If [code]true[/code], the border will fade into the background color." msgstr "如果[code]true[/code],边框会淡入背景色。" #: doc/classes/StyleBoxFlat.xml msgid "Sets the color of the border." msgstr "设置边框的颜色。" #: doc/classes/StyleBoxFlat.xml msgid "Border width for the bottom border." msgstr "底部边框的宽度。" #: doc/classes/StyleBoxFlat.xml msgid "Border width for the left border." msgstr "左边框的宽度。" #: doc/classes/StyleBoxFlat.xml msgid "Border width for the right border." msgstr "右边框的宽度。" #: doc/classes/StyleBoxFlat.xml msgid "Border width for the top border." msgstr "顶部边框的宽度。" #: doc/classes/StyleBoxFlat.xml msgid "" "This sets the number of vertices used for each corner. Higher values result " "in rounder corners but take more processing power to compute. When choosing " "a value, you should take the corner radius ([method set_corner_radius_all]) " "into account.\n" "For corner radii less than 10, [code]4[/code] or [code]5[/code] should be " "enough. For corner radii less than 30, values between [code]8[/code] and " "[code]12[/code] should be enough.\n" "A corner detail of [code]1[/code] will result in chamfered corners instead " "of rounded corners, which is useful for some artistic effects." msgstr "" "设置用于每个角的顶点数。更高的值生成更圆的角,但需要更多的处理计算。选择值" "时,应考虑角半径([method set_corner_radius_all])。\n" "对于小于 10 的角半径,[code]4[/code] 或 [code]5[/code] 应该就足够。对于小于 " "30 的角半径,[code]8[/code] 和 [code]12[/code] 之间的值应该足够。\n" "[code]1[/code]的角细节会导致倒角而不是圆角,这对于某些艺术效果很有用。" #: doc/classes/StyleBoxFlat.xml msgid "" "The bottom-left corner's radius. If [code]0[/code], the corner is not " "rounded." msgstr "左下角的半径。如果[code]0[/code],则角不圆滑。" #: doc/classes/StyleBoxFlat.xml msgid "" "The bottom-right corner's radius. If [code]0[/code], the corner is not " "rounded." msgstr "右下角的半径。如果[code]0[/code],则角不圆滑。" #: doc/classes/StyleBoxFlat.xml msgid "" "The top-left corner's radius. If [code]0[/code], the corner is not rounded." msgstr "左上角的半径。如果[code]0[/code],则角不圆滑。" #: doc/classes/StyleBoxFlat.xml msgid "" "The top-right corner's radius. If [code]0[/code], the corner is not rounded." msgstr "右上角的半径。如果[code]0[/code],则角不圆滑。" #: doc/classes/StyleBoxFlat.xml msgid "Toggles drawing of the inner part of the stylebox." msgstr "切换绘制StyleBox的内部部分。" #: doc/classes/StyleBoxFlat.xml msgid "" "Expands the stylebox outside of the control rect on the bottom edge. Useful " "in combination with [member border_width_bottom] to draw a border outside " "the control rect.\n" "[b]Note:[/b] Unlike [member StyleBox.content_margin_bottom], [member " "expand_margin_bottom] does [i]not[/i] affect the size of the clickable area " "for [Control]s. This can negatively impact usability if used wrong, as the " "user may try to click an area of the StyleBox that cannot actually receive " "clicks." msgstr "" "将该样式盒扩展到该控件矩形的底边。可以与 [member border_width_bottom] 组合," "在该控件矩形之外绘制边框。\n" "[b]注意:[/b]与 [member StyleBox.content_margin_bottom] 不同,[member " "expand_margin_bottom] [i]并不会[/i]影响 [Control] 的可点击区域。错误使用时会" "对可用性造成负面影响,因为用户可能会点击该 StyleBox 上实际无法接受点击的区" "域。" #: doc/classes/StyleBoxFlat.xml msgid "" "Expands the stylebox outside of the control rect on the left edge. Useful in " "combination with [member border_width_left] to draw a border outside the " "control rect.\n" "[b]Note:[/b] Unlike [member StyleBox.content_margin_left], [member " "expand_margin_left] does [i]not[/i] affect the size of the clickable area " "for [Control]s. This can negatively impact usability if used wrong, as the " "user may try to click an area of the StyleBox that cannot actually receive " "clicks." msgstr "" "将该样式盒扩展到该控件矩形的左边。可以与 [member border_width_left] 组合,在" "该控件矩形之外绘制边框。\n" "[b]注意:[/b]与 [member StyleBox.content_margin_left] 不同,[member " "expand_margin_left] [i]并不会[/i]影响 [Control] 的可点击区域。错误使用时会对" "可用性造成负面影响,因为用户可能会点击该 StyleBox 上实际无法接受点击的区域。" #: doc/classes/StyleBoxFlat.xml msgid "" "Expands the stylebox outside of the control rect on the right edge. Useful " "in combination with [member border_width_right] to draw a border outside the " "control rect.\n" "[b]Note:[/b] Unlike [member StyleBox.content_margin_right], [member " "expand_margin_right] does [i]not[/i] affect the size of the clickable area " "for [Control]s. This can negatively impact usability if used wrong, as the " "user may try to click an area of the StyleBox that cannot actually receive " "clicks." msgstr "" "将该样式盒扩展到该控件矩形的右边。可以与 [member border_width_right] 组合,在" "该控件矩形之外绘制边框。\n" "[b]注意:[/b]与 [member StyleBox.content_margin_right] 不同,[member " "expand_margin_right] [i]并不会[/i]影响 [Control] 的可点击区域。错误使用时会对" "可用性造成负面影响,因为用户可能会点击该 StyleBox 上实际无法接受点击的区域。" #: doc/classes/StyleBoxFlat.xml msgid "" "Expands the stylebox outside of the control rect on the top edge. Useful in " "combination with [member border_width_top] to draw a border outside the " "control rect.\n" "[b]Note:[/b] Unlike [member StyleBox.content_margin_top], [member " "expand_margin_top] does [i]not[/i] affect the size of the clickable area for " "[Control]s. This can negatively impact usability if used wrong, as the user " "may try to click an area of the StyleBox that cannot actually receive clicks." msgstr "" "将该样式盒扩展到该控件矩形的顶边。可以与 [member border_width_top] 组合,在该" "控件矩形之外绘制边框。\n" "[b]注意:[/b]与 [member StyleBox.content_margin_top] 不同,[member " "expand_margin_top] [i]并不会[/i]影响 [Control] 的可点击区域。错误使用时会对可" "用性造成负面影响,因为用户可能会点击该 StyleBox 上实际无法接受点击的区域。" #: doc/classes/StyleBoxFlat.xml msgid "" "The color of the shadow. This has no effect if [member shadow_size] is lower " "than 1." msgstr "阴影的颜色。如果 [member shadow_size] 小于 1,这将不起作用。" #: doc/classes/StyleBoxFlat.xml msgid "" "The shadow offset in pixels. Adjusts the position of the shadow relatively " "to the stylebox." msgstr "以像素为单位的阴影偏移。相对于StyleBox调整阴影的位置。" #: doc/classes/StyleBoxFlat.xml msgid "The shadow size in pixels." msgstr "以像素为单位的阴影大小。" #: doc/classes/StyleBoxFlat.xml msgid "" "If set to a non-zero value on either axis, [member skew] distorts the " "StyleBox horizontally and/or vertically. This can be used for \"futuristic\"-" "style UIs. Positive values skew the StyleBox towards the right (X axis) and " "upwards (Y axis), while negative values skew the StyleBox towards the left " "(X axis) and downwards (Y axis).\n" "[b]Note:[/b] To ensure text does not touch the StyleBox's edges, consider " "increasing the [StyleBox]'s content margin (see [member StyleBox." "content_margin_bottom]). It is preferable to increase the content margin " "instead of the expand margin (see [member expand_margin_bottom]), as " "increasing the expand margin does not increase the size of the clickable " "area for [Control]s." msgstr "" "如果任何轴被设为了非零值,[member skew] 就会将该 StyleBox 进行横向和/或纵向变" "形。可用于实现“未来风”的 UI。正值会让该 StyleBox 朝右(X 轴)上(Y 轴)偏斜," "负值会让该 StyleBox 朝左(X 轴)下(Y 轴)偏斜。\n" "[b]注意:[/b]为了让文本不触碰到该 StyleBox 的边缘,请考虑增大该 [StyleBox] 的" "内容边距(见 [member StyleBox.content_margin_bottom])。增大内容边距比增大扩" "展边距(见 [member expand_margin_bottom])更好,因为增大扩展边距并不会增大 " "[Control] 的可点击区域。" #: doc/classes/StyleBoxLine.xml msgid "[StyleBox] that displays a single line." msgstr "显示单线的 [StyleBox] 。" #: doc/classes/StyleBoxLine.xml msgid "" "[StyleBox] that displays a single line of a given color and thickness. It " "can be used to draw things like separators." msgstr "显示给定颜色和粗细的单线[StyleBox] 。它可用于绘制分隔符之类的东西。" #: doc/classes/StyleBoxLine.xml msgid "The line's color." msgstr "线的颜色。" #: doc/classes/StyleBoxLine.xml msgid "" "The number of pixels the line will extend before the [StyleBoxLine]'s " "bounds. If set to a negative value, the line will begin inside the " "[StyleBoxLine]'s bounds." msgstr "" "线将在 [StyleBoxLine] 的边界之前延伸的像素数。如果设置为负值,则该线将从 " "[StyleBoxLine] 的边界内开始。" #: doc/classes/StyleBoxLine.xml msgid "" "The number of pixels the line will extend past the [StyleBoxLine]'s bounds. " "If set to a negative value, the line will end inside the [StyleBoxLine]'s " "bounds." msgstr "" "线将超出 [StyleBoxLine] 边界的像素数。如果设置为负值,则该线将在 " "[StyleBoxLine] 的边界内结束。" #: doc/classes/StyleBoxLine.xml msgid "The line's thickness in pixels." msgstr "线条的粗细(以像素为单位)。" #: doc/classes/StyleBoxLine.xml msgid "" "If [code]true[/code], the line will be vertical. If [code]false[/code], the " "line will be horizontal." msgstr "" "如果 [code]true[/code],则该线将是垂直的。如果 [code]false[/code],该线将是水" "平的。" #: doc/classes/StyleBoxTexture.xml msgid "Texture-based nine-patch [StyleBox]." msgstr "基于纹理的九宫格[StyleBox]。" #: doc/classes/StyleBoxTexture.xml msgid "" "Texture-based nine-patch [StyleBox], in a way similar to [NinePatchRect]. " "This stylebox performs a 3×3 scaling of a texture, where only the center " "cell is fully stretched. This makes it possible to design bordered styles " "regardless of the stylebox's size." msgstr "" "基于纹理的九宫格 [StyleBox],类似于 [NinePatchRect]。这个样式盒会对纹理执行 " "3×3 缩放,其中只有中心单元会被完全拉伸。这使得无论样式盒的大小如何,都可以设" "计有边框的样式。" #: doc/classes/StyleBoxTexture.xml msgid "" "Returns the size of the given [code]margin[/code]. See [enum Margin] for " "possible values." msgstr "" "返回给定 [code]margin[/code] 的大小。有关可能的值,请参阅 [enum Margin]。" #: doc/classes/StyleBoxTexture.xml msgid "" "Sets the margin to [code]size[/code] pixels for the given [code]margin[/" "code]. See [enum Margin] for possible values." msgstr "" "将给定的 [code]margin[/code] 的边距设置为 [code]size[/code] 像素。有关可能的" "值,请参阅 [enum Margin]。" #: doc/classes/StyleBoxTexture.xml msgid "" "Controls how the stylebox's texture will be stretched or tiled horizontally. " "See [enum AxisStretchMode] for possible values." msgstr "" "控制如何水平拉伸或平铺样式盒的纹理。有关可能的值,请参阅 [enum " "AxisStretchMode]。" #: doc/classes/StyleBoxTexture.xml msgid "" "Controls how the stylebox's texture will be stretched or tiled vertically. " "See [enum AxisStretchMode] for possible values." msgstr "" "控制如何垂直拉伸或平铺StyleBox的纹理。有关可能的值,请参阅 [enum " "AxisStretchMode]。" #: doc/classes/StyleBoxTexture.xml msgid "" "If [code]true[/code], the nine-patch texture's center tile will be drawn." msgstr "如果[code]true[/code],将绘制九宫格纹理的中心瓦片。" #: doc/classes/StyleBoxTexture.xml msgid "" "Expands the bottom margin of this style box when drawing, causing it to be " "drawn larger than requested." msgstr "绘制时扩展此样式盒的底部边距,使其绘制得比请求的大。" #: doc/classes/StyleBoxTexture.xml msgid "" "Expands the left margin of this style box when drawing, causing it to be " "drawn larger than requested." msgstr "绘制时扩展此样式盒的左边距,使其绘制得比请求的大。" #: doc/classes/StyleBoxTexture.xml msgid "" "Expands the right margin of this style box when drawing, causing it to be " "drawn larger than requested." msgstr "绘制时扩展此样式盒的右边距,使其绘制得比请求的大。" #: doc/classes/StyleBoxTexture.xml msgid "" "Expands the top margin of this style box when drawing, causing it to be " "drawn larger than requested." msgstr "绘制时扩展此样式盒的上边距,使其绘制得比请求的大。" #: doc/classes/StyleBoxTexture.xml msgid "" "Increases the bottom margin of the 3×3 texture box.\n" "A higher value means more of the source texture is considered to be part of " "the bottom border of the 3×3 box.\n" "This is also the value used as fallback for [member StyleBox." "content_margin_bottom] if it is negative." msgstr "" "增加3×3 StyleBox的底边距。\n" "更高的值意味着更多的源纹理被认为是3×3 box的底边的一部分。\n" "如果[member StyleBox.content_margin_bottom]为负值,这个值也是作为后备值使用。" #: doc/classes/StyleBoxTexture.xml msgid "" "Increases the left margin of the 3×3 texture box.\n" "A higher value means more of the source texture is considered to be part of " "the left border of the 3×3 box.\n" "This is also the value used as fallback for [member StyleBox." "content_margin_left] if it is negative." msgstr "" "增加 3×3 StyleBox的左边距。\n" "较高的值意味着更多的源纹理被认为是 3×3 box左边框的一部分。\n" "如果[member StyleBox.content_margin_left]为负值,这个值也是作为后备值使用。" #: doc/classes/StyleBoxTexture.xml msgid "" "Increases the right margin of the 3×3 texture box.\n" "A higher value means more of the source texture is considered to be part of " "the right border of the 3×3 box.\n" "This is also the value used as fallback for [member StyleBox." "content_margin_right] if it is negative." msgstr "" "增加 3×3 StyleBox的右边距。\n" "较高的值意味着更多的源纹理被认为是 3×3 box右边框的一部分。\n" "如果[member StyleBox.content_margin_right]为负值,这个值也是作为后备值使用。" #: doc/classes/StyleBoxTexture.xml msgid "" "Increases the top margin of the 3×3 texture box.\n" "A higher value means more of the source texture is considered to be part of " "the top border of the 3×3 box.\n" "This is also the value used as fallback for [member StyleBox." "content_margin_top] if it is negative." msgstr "" "增加 3×3 StyleBox的上边距。\n" "较高的值意味着更多的源纹理被认为是 3×3 box上边框的一部分。\n" "如果[member StyleBox.content_margin_top]为负值,这个值也是作为后备值使用。" #: doc/classes/StyleBoxTexture.xml msgid "Modulates the color of the texture when this style box is drawn." msgstr "绘制此样式盒时用于调制纹理的颜色。" #: doc/classes/StyleBoxTexture.xml msgid "" "The normal map to use when drawing this style box.\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "绘制此样式盒时使用的法线贴图。\n" "[b]注意:[/b]Godot 期望法线贴图使用 X+、Y- 和 Z+ 坐标系。参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]这个页面[/url]比较流" "行引擎所期望的法线贴图坐标系。" #: doc/classes/StyleBoxTexture.xml msgid "" "Species a sub-region of the texture to use.\n" "This is equivalent to first wrapping the texture in an [AtlasTexture] with " "the same region." msgstr "" "指定要使用的纹理的子区域。\n" "这相当于首先将纹理包裹在具有相同区域的 [AtlasTexture] 中。" #: doc/classes/StyleBoxTexture.xml msgid "The texture to use when drawing this style box." msgstr "绘制此样式盒时所使用的纹理。" #: doc/classes/StyleBoxTexture.xml msgid "Emitted when the stylebox's texture is changed." msgstr "当样式盒的纹理被改变时发出。" #: doc/classes/StyleBoxTexture.xml msgid "" "Stretch the stylebox's texture. This results in visible distortion unless " "the texture size matches the stylebox's size perfectly." msgstr "" "拉伸样式盒的纹理。这会导致可见的失真,除非纹理大小与样式盒的大小完美匹配。" #: doc/classes/StyleBoxTexture.xml msgid "" "Repeats the stylebox's texture to match the stylebox's size according to the " "nine-patch system." msgstr "根据九宫格系统,重复样式盒的纹理,以匹配样式盒的大小。" #: doc/classes/StyleBoxTexture.xml msgid "" "Repeats the stylebox's texture to match the stylebox's size according to the " "nine-patch system. Unlike [constant AXIS_STRETCH_MODE_TILE], the texture may " "be slightly stretched to make the nine-patch texture tile seamlessly." msgstr "" "根据九宫格系统,重复样式盒的纹理,以匹配样式盒的大小。与 [constant " "AXIS_STRETCH_MODE_TILE] 不同,可能会稍微拉伸纹理以使九宫格纹理平铺无缝。" #: doc/classes/SurfaceTool.xml msgid "Helper tool to create geometry." msgstr "创建几何图形的辅助工具。" #: doc/classes/SurfaceTool.xml msgid "" "The [SurfaceTool] is used to construct a [Mesh] by specifying vertex " "attributes individually. It can be used to construct a [Mesh] from a script. " "All properties except indices need to be added before calling [method " "add_vertex]. For example, to add vertex colors and UVs:\n" "[codeblock]\n" "var st = SurfaceTool.new()\n" "st.begin(Mesh.PRIMITIVE_TRIANGLES)\n" "st.add_color(Color(1, 0, 0))\n" "st.add_uv(Vector2(0, 0))\n" "st.add_vertex(Vector3(0, 0, 0))\n" "[/codeblock]\n" "The above [SurfaceTool] now contains one vertex of a triangle which has a UV " "coordinate and a specified [Color]. If another vertex were added without " "calling [method add_uv] or [method add_color], then the last values would be " "used.\n" "Vertex attributes must be passed [b]before[/b] calling [method add_vertex]. " "Failure to do so will result in an error when committing the vertex " "information to a mesh.\n" "Additionally, the attributes used before the first vertex is added determine " "the format of the mesh. For example, if you only add UVs to the first " "vertex, you cannot add color to any of the subsequent vertices.\n" "See also [ArrayMesh], [ImmediateGeometry] and [MeshDataTool] for procedural " "geometry generation.\n" "[b]Note:[/b] Godot uses clockwise [url=https://learnopengl.com/Advanced-" "OpenGL/Face-culling]winding order[/url] for front faces of triangle " "primitive modes." msgstr "" "[SurfaceTool] 用于通过单独指定顶点属性来构造 [Mesh]。可以用来从脚本中构造 " "[Mesh]。在调用 [method add_vertex] 之前,需要添加除索引之外的所有属性。例如," "添加顶点颜色和 UV。\n" "[codeblock]\n" "var st = SurfaceTool.new()\n" "st.begin(Mesh.PRIMITIVE_TRIANGLES)\n" "st.add_color(Color(1, 0, 0))\n" "st.add_uv(Vector2(0, 0))\n" "st.add_vertex(Vector3(0, 0, 0))\n" "[/codeblock]\n" "上面的 [SurfaceTool] 现在包含了一个三角形的顶点,它有 UV 坐标和指定的 " "[Color]。如果在没有调用 [method add_uv] 或 [method add_color] 的情况下添加另" "一个顶点,那么就会使用最后的值。\n" "顶点属性必须在调用 [method add_vertex] [b]之前[/b]传递。如果不这样做,在提交" "顶点信息到网格时将会导致错误。\n" "此外,在添加第一个顶点之前使用的属性决定了网格的格式。例如,如果你只为第一个" "顶点添加 UV,你就不能为任何后续的顶点添加颜色。\n" "参阅 [ArrayMesh]、[ImmediateGeometry] 和 [MeshDataTool] 以了解程序式几何体的" "生成。\n" "[b]注意:[/b]Godot 对三角形图元模式的正面使用顺时针[url=https://learnopengl." "com/Advanced-OpenGL/Face-culling]缠绕顺序[/url]。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies an array of bones to use for the [i]next[/i] vertex. [code]bones[/" "code] must contain 4 integers." msgstr "" "指定[i]下一个[/i]顶点所使用的骨骼数组。 [code]bones[/code] 必须包含 4 个整" "数。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies a [Color] to use for the [i]next[/i] vertex. If every vertex needs " "to have this information set and you fail to submit it for the first vertex, " "this information may not be used at all.\n" "[b]Note:[/b] The material must have [member SpatialMaterial." "vertex_color_use_as_albedo] enabled for the vertex color to be visible." msgstr "" "指定[i]下一个[/i]顶点所使用的 [Color]。如果每个顶点都需要设置此信息,而您未能" "为第一个顶点提交此信息,此信息可能根本就不会被使用。\n" "[b]注意:[/b]材质必须启用[member SpatialMaterial.vertex_color_use_as_albedo]" "才能使顶点颜色可见。" #: doc/classes/SurfaceTool.xml msgid "" "Adds an index to index array if you are using indexed vertices. Does not " "need to be called before adding vertices." msgstr "如果您使用索引顶点,则向索引数组添加索引。在添加顶点之前不需要调用。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies a normal to use for the [i]next[/i] vertex. If every vertex needs " "to have this information set and you fail to submit it for the first vertex, " "this information may not be used at all." msgstr "" "指定[i]下一个[/i]顶点所使用的法线。如果每个顶点都需要设置此信息,而你没有为第" "一个顶点提交,则可能根本无法使用此信息。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies whether the current vertex (if using only vertex arrays) or " "current index (if also using index arrays) should use smooth normals for " "normal calculation." msgstr "" "指定当前顶点(如果仅使用顶点数组)或当前索引(如果还使用索引数组)是否应使用" "平滑法线进行法线计算。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies a tangent to use for the [i]next[/i] vertex. If every vertex needs " "to have this information set and you fail to submit it for the first vertex, " "this information may not be used at all." msgstr "" "指定[i]下一个[/i]顶点所使用的切线。如果每个顶点都需要设置此信息,而你没有为第" "一个顶点提交,则可能根本无法使用此信息。" #: doc/classes/SurfaceTool.xml msgid "" "Inserts a triangle fan made of array data into [Mesh] being constructed.\n" "Requires the primitive type be set to [constant Mesh.PRIMITIVE_TRIANGLES]." msgstr "" "将一个由数组数据组成的三角扇插入正在构建的 [Mesh] 中。\n" "需要将图元类型设置为 [constant Mesh.PRIMITIVE_TRIANGLES]。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies a set of UV coordinates to use for the [i]next[/i] vertex. If " "every vertex needs to have this information set and you fail to submit it " "for the first vertex, this information may not be used at all." msgstr "" "指定[i]下一个[/i]顶点所使用的 UV 坐标。如果每个顶点都需要设置此信息,而您未能" "为第一个顶点提交此信息,此信息可能根本就不会被使用。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies an optional second set of UV coordinates to use for the [i]next[/" "i] vertex. If every vertex needs to have this information set and you fail " "to submit it for the first vertex, this information may not be used at all." msgstr "" "指定可选的第二组UV坐标,用于[i]next[/i]顶点。如果每个顶点都需要设置这个信息," "而你没有为第一个顶点提交这个信息,此信息可能根本就不会被使用。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies the position of current vertex. Should be called after specifying " "other vertex properties (e.g. Color, UV)." msgstr "指定当前顶点的位置。应在指定其他顶点属性(例如颜色、UV)后调用。" #: doc/classes/SurfaceTool.xml msgid "" "Specifies weight values to use for the [i]next[/i] vertex. [code]weights[/" "code] must contain 4 values. If every vertex needs to have this information " "set and you fail to submit it for the first vertex, this information may not " "be used at all." msgstr "" "指定[i]下一个[/i]顶点所使用的权重值。 [code]weights[/code] 必须包含 4 个值。" "如果每个顶点都需要设置此信息,而您未能为第一个顶点提交此信息,此信息可能根本" "就不会被使用。" #: doc/classes/SurfaceTool.xml msgid "" "Append vertices from a given [Mesh] surface onto the current vertex array " "with specified [Transform].\n" "[b]Note:[/b] Using [method append_from] on a [Thread] is much slower as the " "GPU must communicate data back to the CPU, while also causing the main " "thread to stall (as OpenGL is not thread-safe). Consider requesting a copy " "of the mesh, converting it to an [ArrayMesh] and adding vertices manually " "instead." msgstr "" "将指定 [Mesh] 表面的顶点应用 [Transform] 后,追加到当前的顶点数组中。\n" "[b]注意:[/b]在 [Thread] 中使用 [method append_from] 会更慢,因为 GPU 必须将" "数据送回 CPU,会把主线程暂停(因为 OpenGL 是线程不安全的)。请考虑先把该网格" "复制一份,转成 [ArrayMesh] 后再手动添加顶点。" #: doc/classes/SurfaceTool.xml msgid "" "Called before adding any vertices. Takes the primitive type as an argument " "(e.g. [constant Mesh.PRIMITIVE_TRIANGLES])." msgstr "" "在添加任何顶点之前被调用。接收图元类型作为参数(例如:[constant Mesh." "PRIMITIVE_TRIANGLES])。" #: doc/classes/SurfaceTool.xml msgid "Clear all information passed into the surface tool so far." msgstr "清除到目前为止传入表面工具(surface tool)的所有信息。" #: doc/classes/SurfaceTool.xml msgid "" "Returns a constructed [ArrayMesh] from current information passed in. If an " "existing [ArrayMesh] is passed in as an argument, will add an extra surface " "to the existing [ArrayMesh].\n" "Default flag is [constant Mesh.ARRAY_COMPRESS_DEFAULT] if compression is " "enabled. If compression is disabled the default flag is [constant Mesh." "ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION]. See [code]ARRAY_COMPRESS_*[/code] " "constants in [enum Mesh.ArrayFormat] for other flags." msgstr "" "从传入的当前信息返回构造的 [ArrayMesh]。如果现有的 [ArrayMesh] 作为参数传入," "则会向现有的 [ArrayMesh] 添加额外的面。\n" "如果启用压缩,则默认标志为 [constant Mesh.ARRAY_COMPRESS_DEFAULT]。如果禁用压" "缩,则默认标志为 [constant Mesh.ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION]。有关" "其他标志,参阅 [enum Mesh.ArrayFormat] 中的 [code]ARRAY_COMPRESS_*[/code] 常" "量。" #: doc/classes/SurfaceTool.xml msgid "" "Commits the data to the same format used by [method ArrayMesh." "add_surface_from_arrays]. This way you can further process the mesh data " "using the [ArrayMesh] API." msgstr "" "将数据提交给[method ArrayMesh.add_surface_from_arrays]使用的相同格式。这样你" "就可以使用[ArrayMesh]的API接口进一步处理网格数据。" #: doc/classes/SurfaceTool.xml msgid "Creates a vertex array from an existing [Mesh]." msgstr "从现有的网格 [Mesh] 创建一个顶点数组。" #: doc/classes/SurfaceTool.xml msgid "" "Creates a vertex array from the specified blend shape of an existing [Mesh]. " "This can be used to extract a specific pose from a blend shape." msgstr "" "从现有 [Mesh] 的指定混合形状创建一个顶点数组。这可用于从混合形状中提取特定姿" "势。" #: doc/classes/SurfaceTool.xml msgid "Removes the index array by expanding the vertex array." msgstr "通过扩展顶点数组移除索引数组。" #: doc/classes/SurfaceTool.xml msgid "" "Generates normals from vertices so you do not have to do it manually. If " "[code]flip[/code] is [code]true[/code], the resulting normals will be " "inverted. [method generate_normals] should be called [i]after[/i] generating " "geometry and [i]before[/i] committing the mesh using [method commit] or " "[method commit_to_arrays]. For correct display of normal-mapped surfaces, " "you will also have to generate tangents using [method generate_tangents].\n" "[b]Note:[/b] [method generate_normals] only works if the primitive type to " "be set to [constant Mesh.PRIMITIVE_TRIANGLES]." msgstr "" "从顶点生成法线,因此您不必手动执行。如果 [code]flip[/code] 为 [code]true[/" "code],则生成的法线将被反转。 [method generate_normals] 应在生成几何体[i]之后" "[/i] 调用,在[i]之前[/i]使用 [method commit] 或 [method commit_to_arrays] 提" "交网格。为了正确显示法线贴图表面,您还必须使用 [method generate_tangents] 生" "成切线。\n" "[b]注意:[/b][method generate_normals] 仅当图元类型设置为 [constant Mesh." "PRIMITIVE_TRIANGLES] 时才有效。" #: doc/classes/SurfaceTool.xml msgid "" "Generates a tangent vector for each vertex. Requires that each vertex have " "UVs and normals set already (see [method generate_normals])." msgstr "" "为每个顶点生成切向量。要求每个顶点已经设置了 UV 和法线,参阅 [method " "generate_normals]。" #: doc/classes/SurfaceTool.xml msgid "" "Shrinks the vertex array by creating an index array. This can improve " "performance by avoiding vertex reuse." msgstr "通过创建索引数组来缩小顶点数组。这可以避免顶点重复而提高性能。" #: doc/classes/SurfaceTool.xml msgid "Sets [Material] to be used by the [Mesh] you are constructing." msgstr "设置要由您正在构建的 [Mesh] 使用的 [Material]。" #: doc/classes/TabContainer.xml msgid "Tabbed container." msgstr "选项卡容器。" #: doc/classes/TabContainer.xml msgid "" "Arranges [Control] children into a tabbed view, creating a tab for each one. " "The active tab's corresponding [Control] has its [code]visible[/code] " "property set to [code]true[/code], and all other children's to [code]false[/" "code].\n" "Ignores non-[Control] children.\n" "[b]Note:[/b] The drawing of the clickable tabs themselves is handled by this " "node. Adding [Tabs] as children is not needed." msgstr "" "将子 [Control] 安排在选项卡视图中,为每个控件都创建一个选项卡。活动选项卡对" "应 [Control] 的 [code]visible[/code] 属性会被设为 [code]true[/code],所有其他" "子节点则为 [code]false[/code]。\n" "会忽略非 [Control] 子节点。\n" "[b]注意:[/b]可点击的选项卡本身的绘制是由该节点进行的。无需添加 [Tabs] 作为子" "节点。" #: doc/classes/TabContainer.xml msgid "Returns the child [Control] node located at the active tab index." msgstr "返回位于活动选项卡索引处的子 [Control] 节点。" #: doc/classes/TabContainer.xml msgid "" "Returns the [Popup] node instance if one has been set already with [method " "set_popup].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "如果已通过 [method set_popup] 设置 [Popup] 节点实例,则返回该实例。\n" "[b]警告:[/b]该节点为必要的内部节点,将其移除或释放可能造成崩溃。如果你希望将" "其或其子节点隐藏,请使用对应节点的 [member CanvasItem.visible] 属性。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Returns the previously active tab index." msgstr "返回上一个活动选项卡的索引。" #: doc/classes/TabContainer.xml msgid "Returns the [Control] node from the tab at index [code]tab_idx[/code]." msgstr "从索引 [code]tab_idx[/code] 处的选项卡返回 [Control] 节点。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Returns the number of tabs." msgstr "返回选项卡的数量。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "Returns [code]true[/code] if the tab at index [code]tab_idx[/code] is " "disabled." msgstr "" "如果索引 [code]tab_idx[/code] 处的选项卡被禁用,则返回 [code]true[/code]。" #: doc/classes/TabContainer.xml msgid "" "Returns [code]true[/code] if the tab at index [code]tab_idx[/code] is hidden." msgstr "" "如果索引 [code]tab_idx[/code] 处的选项卡被隐藏,则返回 [code]true[/code]。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "Returns the [Texture] for the tab at index [code]tab_idx[/code] or " "[code]null[/code] if the tab has no [Texture]." msgstr "" "返回索引 [code]tab_idx[/code] 处选项卡的 [Texture],如果该选项卡没有 " "[Texture] 的话则返回 [code]null[/code]。" #: doc/classes/TabContainer.xml msgid "" "Returns the index of the tab at local coordinates [code]point[/code]. " "Returns [code]-1[/code] if the point is outside the control boundaries or if " "there's no tab at the queried position." msgstr "" "返回位于本地坐标点 [code]point[/code] 处的选项卡的索引。如果该点位于控件范围" "外或者请求位置没有选项卡,则返回 [code]-1[/code]。" #: doc/classes/TabContainer.xml msgid "" "Returns the title of the tab at index [code]tab_idx[/code]. Tab titles " "default to the name of the indexed child node, but this can be overridden " "with [method set_tab_title]." msgstr "" "返回索引 [code]tab_idx[/code] 处的选项卡的标题。标签标题默认为索引子节点的名" "称,但这可以用 [method set_tab_title] 覆盖。" #: doc/classes/TabContainer.xml msgid "Returns the [TabContainer] rearrange group id." msgstr "返回 [TabContainer] 重新排列组 ID。" #: doc/classes/TabContainer.xml msgid "" "If set on a [Popup] node instance, a popup menu icon appears in the top-" "right corner of the [TabContainer]. Clicking it will expand the [Popup] node." msgstr "" "如果在 [Popup] 节点实例上设置,则在 [TabContainer] 的右上角会出现一个弹出菜单" "图标。单击它会展开 [Popup] 节点。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "If [code]disabled[/code] is [code]true[/code], disables the tab at index " "[code]tab_idx[/code], making it non-interactable." msgstr "" "如果 [code]disabled[/code] 是 [code]true[/code],则禁用索引 [code]tab_idx[/" "code] 处的选项卡,使其不可交互。" #: doc/classes/TabContainer.xml msgid "" "If [code]hidden[/code] is [code]true[/code], hides the tab at index " "[code]tab_idx[/code], making it disappear from the tab area." msgstr "" "如果 [code]hidden[/code] 为 [code]true[/code],隐藏位于索引 [code]tab_idx[/" "code] 的选项卡,让它从选项卡区域消失。" #: doc/classes/TabContainer.xml msgid "Sets an icon for the tab at index [code]tab_idx[/code]." msgstr "为索引 [code]tab_idx[/code] 处的选项卡设置图标。" #: doc/classes/TabContainer.xml msgid "" "Sets a title for the tab at index [code]tab_idx[/code]. Tab titles default " "to the name of the indexed child node." msgstr "" "为索引 [code]tab_idx[/code] 处的选项卡设置标题。选项卡标题默认为索引子节点的" "名称。" #: doc/classes/TabContainer.xml msgid "" "Defines rearrange group id, choose for each [TabContainer] the same value to " "enable tab drag between [TabContainer]. Enable drag with [member " "drag_to_rearrange_enabled]." msgstr "" "定义重排组的编号。为不同 [TabContainer] 设置相同的值,可以允许选项卡在这些 " "[TabContainer] 之间拖放。通过 [member drag_to_rearrange_enabled] 启用拖放。" #: doc/classes/TabContainer.xml msgid "" "If [code]true[/code], all tabs are drawn in front of the panel. If " "[code]false[/code], inactive tabs are drawn behind the panel." msgstr "" "如果为 [code]true[/code],所有选项卡都会被绘制在面板之前。如果为 " "[code]false[/code],未激活的选项卡会被绘制在面板之后。" #: doc/classes/TabContainer.xml msgid "" "The current tab index. When set, this index's [Control] node's " "[code]visible[/code] property is set to [code]true[/code] and all others are " "set to [code]false[/code]." msgstr "" "当前选项卡的索引。设置后,此索引的 [Control] 节点的 [code]visible[/code] 属性" "会被设为 [code]true[/code],其他所有都设置为 [code]false[/code]。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "If [code]true[/code], tabs can be rearranged with mouse drag." msgstr "如果 [code]true[/code],可以通过鼠标拖动重新排列选项卡。" #: doc/classes/TabContainer.xml msgid "" "The alignment of all tabs in the tab container. See the [enum TabAlign] " "constants for details." msgstr "" "选项卡容器中所有选项卡的对齐方式。有关详细信息,请参阅 [enum TabAlign] 常量。" #: doc/classes/TabContainer.xml msgid "" "If [code]true[/code], tabs are visible. If [code]false[/code], tabs' content " "and titles are hidden." msgstr "" "如果 [code]true[/code],选项卡可见。如果 [code]false[/code],选项卡的内容和标" "题被隐藏。" #: doc/classes/TabContainer.xml msgid "" "If [code]true[/code], children [Control] nodes that are hidden have their " "minimum size take into account in the total, instead of only the currently " "visible one." msgstr "" "如果 [code]true[/code],隐藏的子 [Control] 节点在总数中考虑其最小大小,而不是" "仅考虑当前可见的一个。" #: doc/classes/TabContainer.xml msgid "" "Emitted when the [TabContainer]'s [Popup] button is clicked. See [method " "set_popup] for details." msgstr "" "单击 [TabContainer] 的 [Popup] 按钮时发出。有关详细信息,请参阅 [method " "set_popup]。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Emitted when switching to another tab." msgstr "切换到另一个选项卡时发出。" #: doc/classes/TabContainer.xml msgid "Emitted when a tab is selected, even if it is the current tab." msgstr "选择选项卡时发出,即使它是当前选项卡。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Align the tabs to the left." msgstr "将选项卡对齐到左侧。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Align the tabs to the center." msgstr "将选项卡对齐到中心。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Align the tabs to the right." msgstr "将标签对齐到右侧。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Font color of inactive tabs." msgstr "非活动标签的字体颜色。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Font color of disabled tabs." msgstr "禁用选项卡的字体颜色。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "Font color of the currently selected tab." msgstr "当前所选选项卡的字体颜色。" #: doc/classes/TabContainer.xml msgid "Horizontal separation between tabs." msgstr "选项卡之间的水平分离。" #: doc/classes/TabContainer.xml msgid "The space at the left and right edges of the tab bar." msgstr "标签栏左右边缘的空间。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "The font used to draw tab names." msgstr "用于绘制选项卡名称的字体。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "Icon for the left arrow button that appears when there are too many tabs to " "fit in the container width. When the button is disabled (i.e. the first tab " "is visible), it appears semi-transparent." msgstr "" "左边的箭头按钮的图标,当有太多的标签无法容纳在容器的宽度内时出现。当该按钮被" "禁用时(即第一个标签是可见的),它显示为半透明的。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "Icon for the left arrow button that appears when there are too many tabs to " "fit in the container width. Used when the button is being hovered with the " "cursor." msgstr "" "当标签太多无法适应容器宽度时出现的左箭头按钮图标。当鼠标悬停在按钮上时使用。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "Icon for the right arrow button that appears when there are too many tabs to " "fit in the container width. When the button is disabled (i.e. the last tab " "is visible) it appears semi-transparent." msgstr "" "右箭头按钮的图标,当有太多的标签无法容纳在容器的宽度内时出现。当该按钮被禁用" "时(即最后一个标签是可见的),它显示为半透明的。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "" "Icon for the right arrow button that appears when there are too many tabs to " "fit in the container width. Used when the button is being hovered with the " "cursor." msgstr "" "当标签太多无法适应容器宽度时出现的右箭头按钮图标。当鼠标悬停在按钮上时使用。" #: doc/classes/TabContainer.xml msgid "The icon for the menu button (see [method set_popup])." msgstr "菜单按钮的图标(见[method set_popup])。" #: doc/classes/TabContainer.xml msgid "" "The icon for the menu button (see [method set_popup]) when it's being " "hovered with the cursor." msgstr "当光标悬停时菜单按钮的图标(参阅 [method set_popup])。" #: doc/classes/TabContainer.xml msgid "The style for the background fill." msgstr "背景填充的样式。" #: doc/classes/TabContainer.xml msgid "The style of inactive tabs." msgstr "非活动选项卡的样式。" #: doc/classes/TabContainer.xml msgid "The style of disabled tabs." msgstr "禁用标签的样式。" #: doc/classes/TabContainer.xml doc/classes/Tabs.xml msgid "The style of the currently selected tab." msgstr "当前所选标签的样式。" #: doc/classes/Tabs.xml msgid "Tabs control." msgstr "选项卡控件。" #: doc/classes/Tabs.xml msgid "" "Simple tabs control, similar to [TabContainer] but is only in charge of " "drawing tabs, not interacting with children." msgstr "" "简单的选项卡控制,类似于[TabContainer],但只负责绘制选项卡,不与子节点互动。" #: doc/classes/Tabs.xml msgid "Adds a new tab." msgstr "添加新选项卡。" #: doc/classes/Tabs.xml msgid "Moves the scroll view to make the tab visible." msgstr "移动滚动视图,使标签可见。" #: doc/classes/Tabs.xml msgid "" "Returns [code]true[/code] if the offset buttons (the ones that appear when " "there's not enough space for all tabs) are visible." msgstr "" "如果偏移按钮(所有选项卡没有足够空间时出现的按钮)可见,则返回 [code]true[/" "code]。" #: doc/classes/Tabs.xml msgid "Returns [code]true[/code] if select with right mouse button is enabled." msgstr "如果启用鼠标右键选择,则返回 [code]true[/code]。" #: doc/classes/Tabs.xml msgid "Returns the number of hidden tabs offsetted to the left." msgstr "返回向左偏移的隐藏选项卡的数量。" #: doc/classes/Tabs.xml msgid "Returns tab [Rect2] with local position and size." msgstr "返回带有局部位置和大小的选项卡 [Rect2]。" #: doc/classes/Tabs.xml msgid "Returns the title of the tab at index [code]tab_idx[/code]." msgstr "返回索引 [code]tab_idx[/code] 处的选项卡的标题。" #: doc/classes/Tabs.xml msgid "Returns the [Tabs]' rearrange group ID." msgstr "返回 [Tabs] 的重新排列组 ID。" #: doc/classes/Tabs.xml msgid "Moves a tab from [code]from[/code] to [code]to[/code]." msgstr "将选项卡从 [code]from[/code] 移动到 [code]to[/code]。" #: doc/classes/Tabs.xml msgid "Removes the tab at index [code]tab_idx[/code]." msgstr "删除索引 [code]tab_idx[/code] 处的选项卡。" #: doc/classes/Tabs.xml msgid "" "If [code]true[/code], enables selecting a tab with the right mouse button." msgstr "如果 [code]true[/code],启用鼠标右键选择选项卡。" #: doc/classes/Tabs.xml msgid "Sets an [code]icon[/code] for the tab at index [code]tab_idx[/code]." msgstr "为索引 [code]tab_idx[/code] 处的选项卡设置 [code]icon[/code]。" #: doc/classes/Tabs.xml msgid "Sets a [code]title[/code] for the tab at index [code]tab_idx[/code]." msgstr "为索引 [code]tab_idx[/code] 处的选项卡设置 [code]title[/code]。" #: doc/classes/Tabs.xml msgid "" "Defines the rearrange group ID. Choose for each [Tabs] the same value to " "dragging tabs between [Tabs]. Enable drag with [member " "drag_to_rearrange_enabled]." msgstr "" "定义重新排列组的ID。为每个[Tabs]选择相同的值,以便在[Tabs]之间拖动标签。用" "[member drag_to_rearrange_enabled]启用拖动。" #: doc/classes/Tabs.xml msgid "Select tab at index [code]tab_idx[/code]." msgstr "选择索引 [code]tab_idx[/code] 处的选项卡。" #: doc/classes/Tabs.xml msgid "" "if [code]true[/code], the mouse's scroll wheel can be used to navigate the " "scroll view." msgstr "如果 [code]true[/code],鼠标的滚轮可用于导航滚动视图。" #: doc/classes/Tabs.xml msgid "The alignment of all tabs. See [enum TabAlign] for details." msgstr "所有选项卡的对齐方式。有关详细信息,请参阅 [enum TabAlign]。" #: doc/classes/Tabs.xml msgid "" "Sets when the close button will appear on the tabs. See [enum " "CloseButtonDisplayPolicy] for details." msgstr "" "设置关闭按钮何时出现在选项卡上。有关详细信息,请参阅 [enum " "CloseButtonDisplayPolicy]。" #: doc/classes/Tabs.xml msgid "" "Emitted when the active tab is rearranged via mouse drag. See [member " "drag_to_rearrange_enabled]." msgstr "" "通过鼠标拖动重新排列活动选项卡时发出。参阅 [member " "drag_to_rearrange_enabled]。" #: doc/classes/Tabs.xml msgid "Emitted when a tab is right-clicked." msgstr "当选项卡被右键单击时发出。" #: doc/classes/Tabs.xml msgid "Emitted when a tab is clicked, even if it is the current tab." msgstr "单击选项卡时发出,即使它是当前选项卡。" #: doc/classes/Tabs.xml msgid "Emitted when a tab is closed." msgstr "当选项卡关闭时发出。" #: doc/classes/Tabs.xml msgid "Emitted when a tab is hovered by the mouse." msgstr "当鼠标悬停选项卡时发出。" #: doc/classes/Tabs.xml msgid "Represents the size of the [enum TabAlign] enum." msgstr "表示 [enum TabAlign] 枚举的大小。" #: doc/classes/Tabs.xml msgid "Never show the close buttons." msgstr "永远不会显示关闭按钮。" #: doc/classes/Tabs.xml msgid "Only show the close button on the currently active tab." msgstr "仅在当前活动选项卡上显示关闭按钮。" #: doc/classes/Tabs.xml msgid "Show the close button on all tabs." msgstr "在所有选项卡上显示关闭按钮。" #: doc/classes/Tabs.xml msgid "Represents the size of the [enum CloseButtonDisplayPolicy] enum." msgstr "表示 [enum CloseButtonDisplayPolicy] 枚举的大小。" #: doc/classes/Tabs.xml msgid "The horizontal separation between the tabs." msgstr "选项卡之间的水平间隔。" #: doc/classes/Tabs.xml msgid "The icon for the close button (see [member tab_close_display_policy])." msgstr "关闭按钮的图标(参阅 [member tab_close_display_policy])。" #: doc/classes/Tabs.xml msgid "Background of the close button when it's being hovered with the cursor." msgstr "当光标悬停时关闭按钮的背景。" #: doc/classes/Tabs.xml msgid "Background of the close button when it's being pressed." msgstr "按下关闭按钮时的背景。" #: doc/classes/Tabs.xml msgid "The style of an inactive tab." msgstr "非活动选项卡的样式。" #: doc/classes/Tabs.xml msgid "The style of a disabled tab" msgstr "禁用选项卡的样式" #: doc/classes/TCP_Server.xml msgid "A TCP server." msgstr "TCP 服务器。" #: doc/classes/TCP_Server.xml msgid "" "A TCP server. Listens to connections on a port and returns a [StreamPeerTCP] " "when it gets an incoming connection." msgstr "" "TCP 服务器。会在某个端口上监听连接,并在有连接连入时返回一个 " "[StreamPeerTCP]。" #: doc/classes/TCP_Server.xml msgid "Returns [code]true[/code] if a connection is available for taking." msgstr "如果有连接可供获取,则返回 [code]true[/code]。" #: doc/classes/TCP_Server.xml msgid "" "Returns [code]true[/code] if the server is currently listening for " "connections." msgstr "如果服务器当前正在侦听连接,则返回 [code]true[/code]。" #: doc/classes/TCP_Server.xml msgid "" "Listen on the [code]port[/code] binding to [code]bind_address[/code].\n" "If [code]bind_address[/code] is set as [code]\"*\"[/code] (default), the " "server will listen on all available addresses (both IPv4 and IPv6).\n" "If [code]bind_address[/code] is set as [code]\"0.0.0.0\"[/code] (for IPv4) " "or [code]\"::\"[/code] (for IPv6), the server will listen on all available " "addresses matching that IP type.\n" "If [code]bind_address[/code] is set to any valid address (e.g. " "[code]\"192.168.1.101\"[/code], [code]\"::1\"[/code], etc), the server will " "only listen on the interface with that addresses (or fail if no interface " "with the given address exists)." msgstr "" "在[code]port[/code]上监听与[code]bind_address[/code]绑定的地址。\n" "如果[code]bind_address[/code]被设置为[code]\"*\"[/code](默认),服务器将监听" "所有可用地址(包括IPv4和IPv6)。\n" "如果[code]bind_address[/code]被设置为[code]\"0.0.0.0\"[/code](用于IPv4)或" "[code]\":\"[/code](用于IPv6),服务器将监听所有符合该IP类型的可用地址。\n" "如果[code]bind_address[/code]被设置为任何有效的地址(例如" "[code]\"192.168.1.101\"[/code],[code]\":1\"[/code],等等),服务器将只在具有" "该地址的接口上监听(如果不存在具有该地址的接口则失败)。" #: doc/classes/TCP_Server.xml msgid "Stops listening." msgstr "停止监听。" #: doc/classes/TCP_Server.xml msgid "" "If a connection is available, returns a StreamPeerTCP with the connection." msgstr "如果连接可用,则返回带有该连接的 StreamPeerTCP。" #: doc/classes/TextEdit.xml msgid "Multiline text editing control." msgstr "多行文本编辑控件。" #: doc/classes/TextEdit.xml msgid "" "TextEdit is meant for editing large, multiline text. It also has facilities " "for editing code, such as syntax highlighting support and multiple levels of " "undo/redo.\n" "[b]Note:[/b] When holding down [code]Alt[/code], the vertical scroll wheel " "will scroll 5 times as fast as it would normally do. This also works in the " "Godot script editor." msgstr "" "TextEdit 是用来编辑大型多行文本的。它也有编辑代码的功能,如支持语法高亮和多级" "撤销/重做。\n" "[b]注意:[/b]当按住 [code]Alt[/code] 时,垂直滚轮的滚动速度是平时的 5 倍。这" "在 Godot 脚本编辑器中也适用。" #: doc/classes/TextEdit.xml msgid "Adds color region (given the delimiters) and its colors." msgstr "添加给定分隔符划分区域的颜色。" #: doc/classes/TextEdit.xml msgid "Adds a [code]keyword[/code] and its [Color]." msgstr "添加一个关键字 [code]keyword[/code] 和它的颜色 [Color]。" #: doc/classes/TextEdit.xml msgid "" "Returns if the given line is foldable, that is, it has indented lines right " "below it." msgstr "返回给定的行是否可折叠,也就是说,它在它的正下方有缩进的行。" #: doc/classes/TextEdit.xml msgid "" "Centers the viewport on the line the editing cursor is at. This also resets " "the [member scroll_horizontal] value to [code]0[/code]." msgstr "" "将视区置于编辑光标所在的行上。这也会将 [member scroll_horizontal] 值重置为 " "[code]0[/code]。" #: doc/classes/TextEdit.xml msgid "" "Clears all custom syntax coloring information previously added with [method " "add_color_region] or [method add_keyword_color]." msgstr "" "清除之前用 [method add_color_region] 或 [method add_keyword_color] 添加的所有" "自定义语法着色信息。" #: doc/classes/TextEdit.xml msgid "Clears the undo history." msgstr "清除撤销历史。" #: doc/classes/TextEdit.xml msgid "Copy's the current text selection." msgstr "复制当前的文本选择。" #: doc/classes/TextEdit.xml msgid "Returns the column the editing cursor is at." msgstr "返回编辑光标所在的列。" #: doc/classes/TextEdit.xml msgid "Returns the line the editing cursor is at." msgstr "返回编辑光标所在的行。" #: doc/classes/TextEdit.xml msgid "" "Moves the cursor at the specified [code]column[/code] index.\n" "If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport " "will center at the cursor position after the move occurs." msgstr "" "将光标移动到指定的 [code]column[/code] 索引处。\n" "如果 [code]adjust_viewport[/code] 设置为 [code]true[/code],则移动发生后视窗" "将以光标位置为中心。" #: doc/classes/TextEdit.xml msgid "" "Moves the cursor at the specified [code]line[/code] index.\n" "If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport " "will center at the cursor position after the move occurs.\n" "If [code]can_be_hidden[/code] is set to [code]true[/code], the specified " "[code]line[/code] can be hidden using [method set_line_as_hidden]." msgstr "" "在指定的 [code]line[/code] 索引处移动光标。\n" "如果 [code]adjust_viewport[/code] 设置为 [code]true[/code],则移动发生后视窗" "将以光标位置为中心。\n" "如果 [code]can_be_hidden[/code] 设置为 [code]true[/code],则可以使用 [method " "set_line_as_hidden] 隐藏指定的 [code]line[/code]。" #: doc/classes/TextEdit.xml msgid "Cut's the current selection." msgstr "剪切当前选择。" #: doc/classes/TextEdit.xml msgid "Deselects the current selection." msgstr "取消当前选择。" #: doc/classes/TextEdit.xml msgid "Folds all lines that are possible to be folded (see [method can_fold])." msgstr "折叠所有可能被折叠的行(参阅 [method can_fold])。" #: doc/classes/TextEdit.xml msgid "Folds the given line, if possible (see [method can_fold])." msgstr "如果可能,折叠给定的行(参阅 [method can_fold])。" #: doc/classes/TextEdit.xml msgid "Returns an array containing the line number of each breakpoint." msgstr "返回一个包含每个断点行号的数组。" #: doc/classes/TextEdit.xml msgid "Returns the [Color] of the specified [code]keyword[/code]." msgstr "返回指定的关键字 [code]keyword[/code] 的颜色 [Color]。" #: doc/classes/TextEdit.xml msgid "Returns the text of a specific line." msgstr "返回特定行的文本。" #: doc/classes/TextEdit.xml msgid "" "Returns the line and column at the given position. In the returned vector, " "[code]x[/code] is the column, [code]y[/code] is the line." msgstr "" "返回位于给定位置的行和列。返回的向量中,[code]x[/code] 是列、[code]y[/code] " "是行。" #: doc/classes/TextEdit.xml msgid "Returns the amount of total lines in the text." msgstr "返回文本中的总行数。" #: doc/classes/TextEdit.xml msgid "Returns the height of a largest line." msgstr "返回最大行的高度。" #: doc/classes/TextEdit.xml msgid "" "Returns the width in pixels of the [code]wrap_index[/code] on [code]line[/" "code]." msgstr "返回位于行 [code]line[/code] 的 [code]wrap_index[/code] 的像素宽度。" #: doc/classes/TextEdit.xml msgid "Returns the number of times the given line is wrapped." msgstr "返回给定行换行的次数。" #: doc/classes/TextEdit.xml msgid "Returns an array of [String]s representing each wrapped index." msgstr "返回代表各个换行索引的 [String] 数组。" #: doc/classes/TextEdit.xml msgid "" "Returns the [PopupMenu] of this [TextEdit]. By default, this menu is " "displayed when right-clicking on the [TextEdit].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回此 [TextEdit] 的 [PopupMenu]。默认情况下,这个菜单在右键点击 [TextEdit] " "的时候显示。\n" "[b]警告:[/b]这是一个必要的内部节点,删除和释放它可能会导致崩溃。如果你想隐藏" "它或它的任何子节点,请使用其的 [member CanvasItem.visible] 属性。" #: doc/classes/TextEdit.xml msgid "" "Returns the local position for the given [code]line[/code] and [code]column[/" "code]. If [code]x[/code] or [code]y[/code] of the returned vector equal " "[code]-1[/code], the position is outside of the viewable area of the " "control.\n" "[b]Note:[/b] The Y position corresponds to the bottom side of the line. Use " "[method get_rect_at_line_column] to get the top side position." msgstr "" "返回给定行 [code]line[/code] 和列 [code]column[/code] 的本地位置。如果返回向" "量的 [code]x[/code] 或 [code]y[/code] 等于 [code]-1[/code],该位置位于该控件" "的可视范围之外。\n" "[b]注意:[/b]位置的 Y 对应行的底部。请使用 [method get_rect_at_line_column] " "来获取顶部位置。" #: doc/classes/TextEdit.xml msgid "" "Returns the local position and size for the grapheme at the given " "[code]line[/code] and [code]column[/code]. If [code]x[/code] or [code]y[/" "code] position of the returned rect equal [code]-1[/code], the position is " "outside of the viewable area of the control.\n" "[b]Note:[/b] The Y position of the returned rect corresponds to the top side " "of the line, unlike [method get_pos_at_line_column] which returns the bottom " "side." msgstr "" "返回位于给定行 [code]line[/code] 和列 [code]column[/code] 的字形大小。如果返" "回的矩形位置的 [code]x[/code] 或 [code]y[/code] 等于 [code]-1[/code],该位置" "位于该控件的可视范围之外。\n" "[b]注意:[/b]位置的 Y 对应行的顶部,而 [method get_pos_at_line_column] 返回的" "则是底部位置。" #: doc/classes/TextEdit.xml msgid "Returns the selection begin line." msgstr "返回选择开始行。" #: doc/classes/TextEdit.xml msgid "Returns the text inside the selection." msgstr "返回选择内的文本。" #: doc/classes/TextEdit.xml msgid "Returns the selection end line." msgstr "返回选择结束行。" #: doc/classes/TextEdit.xml msgid "Returns the total width of all gutters and internal padding." msgstr "返回所有栏位及内部边距的总宽度。" #: doc/classes/TextEdit.xml msgid "Returns the total amount of lines that could be drawn." msgstr "返回可绘制的总行数。" #: doc/classes/TextEdit.xml msgid "Returns the number of visible lines, including wrapped text." msgstr "返回可见行数,包括自动换行。" #: doc/classes/TextEdit.xml msgid "" "Returns a [String] text with the word under the caret (text cursor) location." msgstr "返回一个 [String] 文本,该文本中的单词位于 caret(文本光标)的位置。" #: doc/classes/TextEdit.xml msgid "" "Returns whether the specified [code]keyword[/code] has a color set to it or " "not." msgstr "返回指定的关键字 [code]keyword[/code] 是否有一个颜色被设置为它。" #: doc/classes/TextEdit.xml doc/classes/UndoRedo.xml msgid "Returns [code]true[/code] if a \"redo\" action is available." msgstr "有“重做”动作可用时返回 [code]true[/code]。" #: doc/classes/TextEdit.xml doc/classes/UndoRedo.xml msgid "Returns [code]true[/code] if an \"undo\" action is available." msgstr "有“撤销”动作可用时返回 [code]true[/code]。" #: doc/classes/TextEdit.xml msgid "Insert the specified text at the cursor position." msgstr "在光标位置插入指定的文本。" #: doc/classes/TextEdit.xml msgid "Returns whether the line at the specified index is folded or not." msgstr "返回指定索引处的行是否折叠。" #: doc/classes/TextEdit.xml msgid "Returns whether the line at the specified index is hidden or not." msgstr "返回指定索引处的行是否隐藏。" #: doc/classes/TextEdit.xml msgid "" "Returns [code]true[/code] when the specified [code]line[/code] is bookmarked." msgstr "当指定的行 [code]line[/code] 被标记为书签时,返回 [code]true[/code]。" #: doc/classes/TextEdit.xml msgid "" "Returns [code]true[/code] when the specified [code]line[/code] has a " "breakpoint." msgstr "当指定的行 [code]line[/code] 有断点时返回 [code]true[/code]。" #: doc/classes/TextEdit.xml msgid "" "Returns [code]true[/code] when the specified [code]line[/code] is marked as " "safe." msgstr "当指定的行 [code]line[/code] 被标记为安全时返回 [code]true[/code]。" #: doc/classes/TextEdit.xml msgid "Returns if the given line is wrapped." msgstr "返回给定的行是否换行。" #: doc/classes/TextEdit.xml msgid "" "Returns whether the mouse is over selection. If [code]edges[/code] is " "[code]true[/code], the edges are considered part of the selection." msgstr "" "返回鼠标是否位于选区之上。如果 [code]edges[/code] 为 [code]true[/code],则边" "界会被认为是选区的一部分。" #: doc/classes/TextEdit.xml msgid "Returns [code]true[/code] if the selection is active." msgstr "如果选择处于活动状态,则返回 [code]true[/code]。" #: doc/classes/TextEdit.xml msgid "" "Triggers a right-click menu action by the specified index. See [enum " "MenuItems] for a list of available indexes." msgstr "" "按指定的索引触发右键单击菜单操作。有关可用索引的列表,请参阅 [enum " "MenuItems]。" #: doc/classes/TextEdit.xml msgid "Paste the current selection." msgstr "粘贴当前选择。" #: doc/classes/TextEdit.xml msgid "Perform redo operation." msgstr "执行重做操作。" #: doc/classes/TextEdit.xml msgid "" "Removes all the breakpoints. This will not fire the [signal " "breakpoint_toggled] signal." msgstr "删除所有断点。这不会触发 [signal breakpoint_toggled] 信号。" #: doc/classes/TextEdit.xml msgid "" "Perform a search inside the text. Search flags can be specified in the [enum " "SearchFlags] enum.\n" "Returns an empty [code]PoolIntArray[/code] if no result was found. " "Otherwise, the result line and column can be accessed at indices specified " "in the [enum SearchResult] enum, e.g:\n" "[codeblock]\n" "var result = search(key, flags, line, column)\n" "if result.size() > 0:\n" " # Result found.\n" " var res_line = result[TextEdit.SEARCH_RESULT_LINE]\n" " var res_column = result[TextEdit.SEARCH_RESULT_COLUMN]\n" "[/codeblock]" msgstr "" "在文本内部进行搜索。搜索标志可以在[enum SearchFlags]枚举中指定。\n" "如果没有找到结果,返回一个空的[code]PoolIntArray[/code]。否则,可以通过[enum " "SearchResult]枚举中指定的索引访问结果行和列,例如。\n" "[codeblock]\n" "var result = search(key, flags, line, column)\n" "if result.size() > 0:\n" " # 找到的结果。\n" " var res_line = result[TextEdit.SEARCH_RESULT_LINE)\n" " var res_column = result[TextEdit.SEARCH_RESULT_COLUMN]\n" "[/codeblock]" #: doc/classes/TextEdit.xml msgid "" "Perform selection, from line/column to line/column.\n" "If [member selecting_enabled] is [code]false[/code], no selection will occur." msgstr "" "执行选择,从行/列到行/列。\n" "如果 [member selecting_enabled] 为 [code]false[/code],则不会发生选择。" #: doc/classes/TextEdit.xml msgid "" "Select all the text.\n" "If [member selecting_enabled] is [code]false[/code], no selection will occur." msgstr "" "选择所有文本。\n" "如果 [member selecting_enabled] 为 [code]false[/code],则不会发生选择。" #: doc/classes/TextEdit.xml msgid "Sets the text for a specific line." msgstr "设置特定行的文本。" #: doc/classes/TextEdit.xml msgid "" "Bookmarks the [code]line[/code] if [code]bookmark[/code] is true. Deletes " "the bookmark if [code]bookmark[/code] is false.\n" "Bookmarks are shown in the [member breakpoint_gutter]." msgstr "" "如果 [code]bookmark[/code] 为 true,则为行 [code]line[/code] 设置书签。如果 " "[code]bookmark[/code] 为 false,则删除该书签。\n" "书签显示在 [member breakpoint_gutter] 中。" #: doc/classes/TextEdit.xml msgid "" "Adds or removes the breakpoint in [code]line[/code]. Breakpoints are shown " "in the [member breakpoint_gutter]." msgstr "" "添加或删除 [code]line[/code] 中的断点。断点显示在 [member breakpoint_gutter] " "中。" #: doc/classes/TextEdit.xml msgid "If [code]true[/code], hides the line of the specified index." msgstr "如果 [code]true[/code],隐藏指定索引的行。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], marks the [code]line[/code] as safe.\n" "This will show the line number with the color provided in the " "[code]safe_line_number_color[/code] theme property." msgstr "" "如果为 [code]true[/code],将行 [code]line[/code] 标记为安全。\n" "这将以 [code]safe_line_number_color[/code] 主题属性中提供的颜色显示行号。" #: doc/classes/TextEdit.xml msgid "Toggle the folding of the code block at the given line." msgstr "在给定行切换代码块的折叠。" #: doc/classes/TextEdit.xml msgid "Perform undo operation." msgstr "执行撤销操作。" #: doc/classes/TextEdit.xml msgid "Unfolds the given line, if folded." msgstr "如果折叠,展开给定的线。" #: doc/classes/TextEdit.xml msgid "" "Unhide all lines that were previously set to hidden by [method " "set_line_as_hidden]." msgstr "取消隐藏之前由 [method set_line_as_hidden] 设置为隐藏的所有行。" #: doc/classes/TextEdit.xml msgid "If [code]true[/code], the bookmark gutter is visible." msgstr "为 [code]true[/code] 时书签栏可见。" #: doc/classes/TextEdit.xml msgid "If [code]true[/code], the breakpoint gutter is visible." msgstr "为 [code]true[/code] 时断点栏可见。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], the caret displays as a rectangle.\n" "If [code]false[/code], the caret displays as a bar." msgstr "" "为 [code]true[/code] 时光标显示为矩形。\n" "为 [code]false[/code] 时光标显示为条形。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], a right-click moves the cursor at the mouse position " "before displaying the context menu.\n" "If [code]false[/code], the context menu disregards mouse location." msgstr "" "为 [code]true[/code] 时,在显示上下文菜单之前右键单击将光标移动到鼠标位置。\n" "为 [code]false[/code] 时,上下文菜单忽略鼠标位置。" #: doc/classes/TextEdit.xml msgid "If [code]true[/code], a right-click displays the context menu." msgstr "为 [code]true[/code] 时右键单击会显示上下文菜单。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], the \"space\" character will have a visible " "representation." msgstr "如果 [code]true[/code],“空格”字符将具有可见表示形式。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], the \"tab\" character will have a visible " "representation." msgstr "如果 [code]true[/code],“制表符”字符将具有可见表示形式。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], the fold gutter is visible. This enables folding " "groups of indented lines." msgstr "如果 [code]true[/code],则折叠栏可见。这允许折叠缩进行。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], all lines that have been set to hidden by [method " "set_line_as_hidden], will not be visible." msgstr "" "如果 [code]true[/code],所有已被 [method set_line_as_hidden] 设置为隐藏的行将" "不可见。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], all occurrences of the selected text will be " "highlighted." msgstr "如果 [code]true[/code],所选文本的所有匹配项都将突出显示。" #: doc/classes/TextEdit.xml msgid "If [code]true[/code], the line containing the cursor is highlighted." msgstr "如果 [code]true[/code],则包含光标的行会突出显示。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], a minimap is shown, providing an outline of your " "source code." msgstr "如果 [code]true[/code],则显示小地图,提供源代码的概要。" #: doc/classes/TextEdit.xml msgid "The width, in pixels, of the minimap." msgstr "小地图的宽度(以像素为单位)。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], custom [code]font_color_selected[/code] will be used " "for selected text." msgstr "" "如果 [code]true[/code],自定义 [code]font_color_selected[/code] 将用于所选文" "本。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], read-only mode is enabled. Existing text cannot be " "modified and new text cannot be added." msgstr "" "如果[code]true[/code],启用只读模式。现有的文本不能被修改,新的文本不能被添" "加。" #: doc/classes/TextEdit.xml msgid "" "If there is a horizontal scrollbar, this determines the current horizontal " "scroll value in pixels." msgstr "如果有一个水平滚动条,这决定了当前的水平滚动值,单位是像素。" #: doc/classes/TextEdit.xml msgid "" "If there is a vertical scrollbar, this determines the current vertical " "scroll value in line numbers, starting at 0 for the top line." msgstr "" "如果有一个垂直滚动条,这就决定了当前的垂直滚动值,以行数为单位,顶行从0开始。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], text can be selected.\n" "If [code]false[/code], text can not be selected by the user or by the " "[method select] or [method select_all] methods." msgstr "" "如果[code]true[/code],文本可以被选择。\n" "如果[code]false[/code],用户或使用[method select]或[method select_all]方法都" "不能选择文本。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], shortcut keys for context menu items are enabled, even " "if the context menu is disabled." msgstr "" "为 [code]true[/code] 时,即使上下文菜单已被禁用,也会启用该上下文菜单的快捷" "键。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], line numbers are displayed to the left of the text." msgstr "如果 [code]true[/code],行号显示在文本的左侧。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], sets the [code]step[/code] of the scrollbars to " "[code]0.25[/code] which results in smoother scrolling." msgstr "" "如果 [code]true[/code],将滚动条的步长 [code]step[/code] 设置为 [code]0.25[/" "code],从而使滚动更加平滑。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], any custom color properties that have been set for " "this [TextEdit] will be visible." msgstr "" "如果 [code]true[/code],为此 [TextEdit] 设置的任何自定义颜色属性都将可见。" #: doc/classes/TextEdit.xml msgid "String value of the [TextEdit]." msgstr "[TextEdit] 的字符串值。" #: doc/classes/TextEdit.xml msgid "Vertical scroll sensitivity." msgstr "垂直滚动的灵敏度。" #: doc/classes/TextEdit.xml msgid "" "If [code]true[/code], enables text wrapping when it goes beyond the edge of " "what is visible." msgstr "如果 [code]true[/code],当文本超出可见边缘时启用文本换行。" #: doc/classes/TextEdit.xml msgid "Emitted when a breakpoint is placed via the breakpoint gutter." msgstr "当通过断点栏放置断点时发出。" #: doc/classes/TextEdit.xml msgid "Emitted when the cursor changes." msgstr "光标更改时发出。" #: doc/classes/TextEdit.xml msgid "Emitted when the info icon is clicked." msgstr "单击信息图标时发出。" #: doc/classes/TextEdit.xml msgid "Match case when searching." msgstr "搜索时匹配大小写。" #: doc/classes/TextEdit.xml msgid "Match whole words when searching." msgstr "搜索时匹配整个单词。" #: doc/classes/TextEdit.xml msgid "Search from end to beginning." msgstr "从头到尾搜索。" #: doc/classes/TextEdit.xml msgid "Used to access the result column from [method search]." msgstr "用来访问搜索 [method search] 的结果列。" #: doc/classes/TextEdit.xml msgid "Used to access the result line from [method search]." msgstr "用于访问搜索 [method search] 的结果行。" #: doc/classes/TextEdit.xml msgid "" "Pastes the clipboard text over the selected text (or at the cursor's " "position)." msgstr "将剪贴板上的文本粘贴在选定的文本上(或光标的位置)。" #: doc/classes/TextEdit.xml msgid "Erases the whole [TextEdit] text." msgstr "擦除整个 [TextEdit] 文本。" #: doc/classes/TextEdit.xml msgid "Selects the whole [TextEdit] text." msgstr "选择整个 [TextEdit] 文本。" #: doc/classes/TextEdit.xml msgid "Redoes the previous action." msgstr "重做前一个动作。" #: doc/classes/TextEdit.xml msgid "" "Sets the background [Color] of this [TextEdit]. [member syntax_highlighting] " "has to be enabled." msgstr "" "设置这个 [TextEdit] 的背景颜色 [Color]。必须启用语法高亮 [member " "syntax_highlighting]。" #: doc/classes/TextEdit.xml msgid "" "Sets the [Color] of the bookmark marker. [member syntax_highlighting] has to " "be enabled." msgstr "" "设置书签标记的颜色 [Color]。必须启用语法高亮 [member syntax_highlighting]。" #: doc/classes/TextEdit.xml msgid "" "Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be " "enabled." msgstr "设置断点的颜色 [Color]。必须启用断点栏 [member breakpoint_gutter]。" #: doc/classes/TextEdit.xml msgid "Sets the font [Color]." msgstr "设置字体颜色 [Color]。" #: doc/classes/TextEdit.xml msgid "" "Sets the [Color] of the selected text. [member override_selected_font_color] " "has to be enabled." msgstr "" "设置所选文本的颜色 [Color]。必须启用覆盖所选文字字体颜色 [member " "override_selected_font_color]。" #: doc/classes/TextEdit.xml msgid "" "Sets the [Color] of the line numbers. [member show_line_numbers] has to be " "enabled." msgstr "设置行号颜色 [Color]。[member show_line_numbers] 显示行号必须被启用。" #: doc/classes/TextEdit.xml msgid "Sets the [Color] of marked text." msgstr "设置标记文本的颜色 [Color]。" #: doc/classes/TextEdit.xml msgid "Sets the highlight [Color] of text selections." msgstr "设置文本选择的高亮 [Color] 颜色。" #: doc/classes/TextEdit.xml msgid "" "Sets the highlight [Color] of multiple occurrences. [member " "highlight_all_occurrences] has to be enabled." msgstr "" "设置多次出现的高亮 [Color] 颜色。须启用 [member highlight_all_occurrences] 。" #: doc/classes/TextEdit.xml msgid "Sets the spacing between the lines." msgstr "设置行间距。" #: doc/classes/TextEdit.xml msgid "Sets the default [Font]." msgstr "设置默认的字体 [Font]。" #: doc/classes/TextEdit.xml msgid "Sets a custom [Texture] for tab text characters." msgstr "为制表符字符设置自定义纹理 [Texture]。" #: doc/classes/TextEdit.xml msgid "Sets the [StyleBox] of this [TextEdit]." msgstr "设置这个 [TextEdit] 的 [StyleBox]。" #: doc/classes/TextEdit.xml msgid "" "Sets the [StyleBox] of this [TextEdit] when [member readonly] is enabled." msgstr "当 [member readonly] 启用时,设置这个 [TextEdit] 的 [StyleBox]。" #: doc/classes/TextMesh.xml msgid "Generate an [PrimitiveMesh] from the text." msgstr "从文本生成 [PrimitiveMesh]。" #: doc/classes/TextMesh.xml msgid "" "Generate an [PrimitiveMesh] from the text.\n" "TextMesh can be generated only when using dynamic fonts with vector glyph " "contours. Bitmap fonts (including bitmap data in the TrueType/OpenType " "containers, like color emoji fonts) are not supported.\n" "The UV layout is arranged in 4 horizontal strips, top to bottom: 40% of the " "height for the front face, 40% for the back face, 10% for the outer edges " "and 10% for the inner edges." msgstr "" "根据文本生成 [PrimitiveMesh]。\n" "使用了矢量字形轮廓的动态字体才能用于生成 TextMesh。不支持位图字体(包括 " "TrueType/OpenType 容器中的位图数据,例如彩色 Emoji 字体)。\n" "UV 布局由 4 个横条组成,从上到下依次为:正面占 40% 高度,背面占 40% 的高度," "外面占 10% 的高度,内侧面占 10% 的高度。" #: doc/classes/TextMesh.xml msgid "Step (in pixels) used to approximate Bézier curves." msgstr "用于近似贝塞尔曲线的步长(单位为像素)。" #: doc/classes/TextMesh.xml msgid "" "Depths of the mesh, if set to [code]0.0[/code] only front surface, is " "generated, and UV layout is changed to use full texture for the front face " "only." msgstr "" "生成的网格的深度,设为 [code]0.0[/code] 时只有正面,此时的 UV 布局会变为让正" "面占据整张纹理。" #: doc/classes/TextMesh.xml msgid "[Font] used for the [TextMesh]'s text." msgstr "该 [TextMesh] 的文本所使用的 [Font]。" #: doc/classes/TextMesh.xml msgid "" "Controls the text's horizontal alignment. Supports left, center and right. " "Set it to one of the [enum Align] constants." msgstr "" "控制文本的水平对齐。支持左对齐、居中、右对齐。把它设置为 [enum Align] 常量之" "一。" #: doc/classes/TextMesh.xml msgid "The size of one pixel's width on the text to scale it in 3D." msgstr "文本上一个像素宽度的大小,以 3D 缩放。" #: doc/classes/TextMesh.xml msgid "The text to generate mesh from." msgstr "用于生成网格的文本。" #: doc/classes/Texture.xml msgid "Texture for 2D and 3D." msgstr "用于 2D 和 3D 的纹理。" #: doc/classes/Texture.xml msgid "" "A texture works by registering an image in the video hardware, which then " "can be used in 3D models or 2D [Sprite] or GUI [Control].\n" "Textures are often created by loading them from a file. See [method " "@GDScript.load].\n" "[Texture] is a base for other resources. It cannot be used directly.\n" "[b]Note:[/b] The maximum texture size is 16384×16384 pixels due to graphics " "hardware limitations. Larger textures may fail to import." msgstr "" "纹理的原理是在视频硬件中注册图像,然后就可以在 3D 模型、2D 精灵 [Sprite]、" "GUI 控件 [Control] 中使用。\n" "纹理通常是通过从文件中加载来创建的。请参阅 [method @GDScript.load]。\n" "[Texture] 是一些其他资源的基类,无法直接使用。\n" "[b]注意:[/b]由于图形硬件的限制,最大的纹理尺寸是 16384×16384 像素。较大的纹" "理可能无法导入。" #: doc/classes/Texture.xml msgid "" "Draws the texture using a [CanvasItem] with the [VisualServer] API at the " "specified [code]position[/code]. Equivalent to [method VisualServer." "canvas_item_add_texture_rect] with a rect at [code]position[/code] and the " "size of this [Texture]." msgstr "" "在指定的位置[code]position[/code]使用[VisualServer]API的[CanvasItem]来绘制纹" "理。相当于[method VisualServer.canvas_item_add_texture_rect],在位置" "[code]position[/code]有一个矩形,尺寸为这个[Texture]。" #: doc/classes/Texture.xml msgid "" "Draws the texture using a [CanvasItem] with the [VisualServer] API. " "Equivalent to [method VisualServer.canvas_item_add_texture_rect]." msgstr "" "使用 [VisualServer] API 的 [CanvasItem] 来绘制纹理。相当于方法 [method " "VisualServer.canvas_item_add_texture_rect]。" #: doc/classes/Texture.xml msgid "" "Draws a part of the texture using a [CanvasItem] with the [VisualServer] " "API. Equivalent to [method VisualServer.canvas_item_add_texture_rect_region]." msgstr "" "使用 [VisualServer] API 的 [CanvasItem] 来绘制纹理的一个部分。相当于方法 " "[method VisualServer.canvas_item_add_texture_rect_region]。" #: doc/classes/Texture.xml msgid "" "Returns an [Image] that is a copy of data from this [Texture]. [Image]s can " "be accessed and manipulated directly." msgstr "" "返回一个 [Image],它是此 [Texture] 中数据的副本。 [Image] 图像可以直接访问和" "操作。" #: doc/classes/Texture.xml msgid "Returns the texture height." msgstr "返回纹理高度。" #: doc/classes/Texture.xml msgid "Returns the texture size." msgstr "返回纹理尺寸。" #: doc/classes/Texture.xml msgid "Returns the texture width." msgstr "返回纹理宽度。" #: doc/classes/Texture.xml msgid "Returns [code]true[/code] if this [Texture] has an alpha channel." msgstr "如果这个 [Texture] 有 Alpha 通道,则返回 [code]true[/code]。" #: doc/classes/Texture.xml msgid "" "The texture's [enum Flags]. [enum Flags] are used to set various properties " "of the [Texture]." msgstr "纹理的 [enum Flags]。[enum Flags] 用于设置 [Texture] 的各种属性。" #: doc/classes/Texture.xml msgid "" "Default flags. [constant FLAG_MIPMAPS], [constant FLAG_REPEAT] and [constant " "FLAG_FILTER] are enabled." msgstr "" "默认的标志。[constant FLAG_MIPMAPS]、[constant FLAG_REPEAT] 和 [constant " "FLAG_FILTER] 均被启用。" #: doc/classes/Texture.xml doc/classes/VisualServer.xml msgid "" "Generates mipmaps, which are smaller versions of the same texture to use " "when zoomed out, keeping the aspect ratio." msgstr "生成多级渐远纹理,它是同一纹理的较小版本,在放大时使用,保持长宽比。" #: doc/classes/Texture.xml msgid "" "Repeats the texture (instead of clamp to edge).\n" "[b]Note:[/b] Ignored when using an [AtlasTexture] as these don't support " "repetition." msgstr "" "重复纹理(而不是限制到边)。\n" "[b]注意:[/b]使用 [AtlasTexture] 时忽略,因为它们不支持重复。" #: doc/classes/Texture.xml doc/classes/VisualServer.xml msgid "Uses a magnifying filter, to enable smooth zooming in of the texture." msgstr "使用放大过滤器,以实现纹理的平滑放大。" #: doc/classes/Texture.xml doc/classes/TextureLayered.xml #: doc/classes/VisualServer.xml msgid "" "Uses anisotropic mipmap filtering. Generates smaller versions of the same " "texture with different aspect ratios.\n" "This results in better-looking textures when viewed from oblique angles." msgstr "" "使用各向异性的多级渐远纹理过滤。生成具有不同长宽比的同一纹理的较小版本。\n" "当从斜角观看时,这会产生更好看的纹理。" #: doc/classes/Texture.xml doc/classes/VisualServer.xml msgid "Converts the texture to the sRGB color space." msgstr "将纹理转换为 sRGB 颜色空间。" #: doc/classes/Texture.xml msgid "" "Repeats the texture with alternate sections mirrored.\n" "[b]Note:[/b] Ignored when using an [AtlasTexture] as these don't support " "repetition." msgstr "" "重复纹理的交替部分,并对其进行镜像。\n" "[b]注意:[/b]在使用 [AtlasTexture] 时被忽略,因为它们不支持重复。" #: doc/classes/Texture.xml doc/classes/VisualServer.xml msgid "Texture is a video surface." msgstr "纹理是视频表面。" #: doc/classes/Texture3D.xml msgid "Texture with 3 dimensions." msgstr "具有 3 个维度的纹理。" #: doc/classes/Texture3D.xml msgid "" "Texture3D is a 3-dimensional [Texture] that has a width, height, and depth. " "See also [TextureArray].\n" "[b]Note:[/b] [Texture3D]s can only be sampled in shaders in the GLES3 " "backend. In GLES2, their data can be accessed via scripting, but there is no " "way to render them in a hardware-accelerated manner." msgstr "" "Texture3D 是三维的 [Texture],具有宽度、高度、深度。另请参见 " "[TextureArray]。\n" "[b]注意:[/b]在着色器中对 [Texture3D] 的采样只能在 GLES3 后端中进行。在 " "GLES2 中,可是通过脚本访问其中的数据,但无法通过硬件加速渲染。" #: doc/classes/Texture3D.xml msgid "" "Creates the Texture3D with specified [code]width[/code], [code]height[/" "code], and [code]depth[/code]. See [enum Image.Format] for [code]format[/" "code] options. See [enum TextureLayered.Flags] enumerator for [code]flags[/" "code] options." msgstr "" "以指定的 [code]width[/code]、[code]height[/code] 和 [code]depth[/code] 创建 " "Texture3D。[code]format[/code] 的可选值见 [enum Image.Format]。[code]flags[/" "code] 的可选值见 [enum TextureLayered.Flags] 枚举值。" #: doc/classes/TextureArray.xml msgid "Array of textures stored in a single primitive." msgstr "存储在单个基元中的纹理数组。" #: doc/classes/TextureArray.xml msgid "" "[TextureArray]s store an array of [Image]s in a single [Texture] primitive. " "Each layer of the texture array has its own mipmap chain. This makes it is a " "good alternative to texture atlases. See also [Texture3D].\n" "[TextureArray]s must be displayed using shaders. After importing your file " "as a [TextureArray] and setting the appropriate Horizontal and Vertical " "Slices, display it by setting it as a uniform to a shader, for example " "(2D):\n" "[codeblock]\n" "shader_type canvas_item;\n" "\n" "uniform sampler2DArray tex;\n" "uniform int index;\n" "\n" "void fragment() {\n" " COLOR = texture(tex, vec3(UV.x, UV.y, float(index)));\n" "}\n" "[/codeblock]\n" "Set the integer uniform \"index\" to show a particular part of the texture " "as defined by the Horizontal and Vertical Slices in the importer.\n" "[b]Note:[/b] When sampling an albedo texture from a texture array in 3D, the " "sRGB -> linear conversion hint ([code]hint_albedo[/code]) should be used to " "prevent colors from looking washed out:\n" "[codeblock]\n" "shader_type spatial;\n" "\n" "uniform sampler2DArray tex : hint_albedo;\n" "uniform int index;\n" "\n" "void fragment() {\n" " ALBEDO = texture(tex, vec3(UV.x, UV.y, float(index)));\n" "}\n" "[/codeblock]\n" "[b]Note:[/b] [TextureArray]s can only be sampled in shaders in the GLES3 " "backend. In GLES2, their data can be accessed via scripting, but there is no " "way to render them in a hardware-accelerated manner." msgstr "" "[TextureArray] 在单个 [Texture] 基元中存储 [Image] 数组。纹理数组的每一层都有" "自己的多级渐远纹理链。这使得它成为纹理图集很好的替代品。另请参阅 " "[Texture3D]。\n" "[TextureArray] 必须使用着色器来显示。在把你的文件导入为 [TextureArray] 并设置" "适当的水平和垂直切片后,通过把它设置为着色器 uniform 来显示它,例如(2D):\n" "[codeblock]\n" "shader_type canvas_item;\n" "\n" "uniform sampler2DArray tex;\n" "uniform int index;\n" "\n" "void fragment() {\n" " COLOR = texture(tex, vec3(UV.x, UV.y, float(index)));\n" "}\n" "[/codeblock]\n" "设置整数 uniform“index”,以显示由导入器中的 Horizontal 和 Vertical Slices 定" "义的纹理的特定部分。\n" "[b]注意:[/b]在 3D 中对纹理数组中的反照率纹理进行采样时,应该使用 sRGB -> 线" "性转换的提示([code]hint_albedo[/code]),防止颜色看起来褪色:\n" "[codeblock]\n" "shader_type spatial;\n" "\n" "uniform sampler2DArray tex : hint_albedo;\n" "uniform int index;\n" "\n" "void fragment() {\n" " ALBEDO = texture(tex, vec3(UV.x, UV.y, float(index)));\n" "}\n" "[/codeblock]\n" "[b]注意:[/b]只有 GLES3 后端才能对 [TextureArray] 进行采样。在 GLES2 中,可以" "使用脚本获取其中的数据,但无法进行硬件加速渲染。" #: doc/classes/TextureArray.xml msgid "" "Creates the TextureArray with specified [code]width[/code], [code]height[/" "code], and [code]depth[/code]. See [enum Image.Format] for [code]format[/" "code] options. See [enum TextureLayered.Flags] enumerator for [code]flags[/" "code] options." msgstr "" "以指定的[code]width[/code]、[code]height[/code]和[code]depth[/code]创建" "TextureArray。参阅[enum Image.Format]的[code]format[/code]选项。参阅[enum " "TextureLayered.Flags]枚举器的[code]flags[/code]选项。" #: doc/classes/TextureButton.xml msgid "" "Texture-based button. Supports Pressed, Hover, Disabled and Focused states." msgstr "基于纹理的按钮。支持按下、悬停、停用和焦点状态。" #: doc/classes/TextureButton.xml msgid "" "[TextureButton] has the same functionality as [Button], except it uses " "sprites instead of Godot's [Theme] resource. It is faster to create, but it " "doesn't support localization like more complex [Control]s.\n" "The \"normal\" state must contain a texture ([member texture_normal]); other " "textures are optional.\n" "See also [BaseButton] which contains common properties and methods " "associated with this node." msgstr "" "[TextureButton] 的功能与 [Button] 相同,只是它使用精灵而不是 Godot 的 " "[Theme] 主题资源。它的创建速度更快,但它不像更复杂的 [Control] 那样支持本地" "化。\n" "“正常”状态必须包含一个纹理([member texture_normal]);其他纹理是可选的。\n" "也请参阅 [BaseButton],它包含了与该节点相关的通用属性和方法。" #: doc/classes/TextureButton.xml msgid "" "If [code]true[/code], the texture stretches to the edges of the node's " "bounding rectangle using the [member stretch_mode]. If [code]false[/code], " "the texture will not scale with the node." msgstr "" "为 [code]true[/code] 时纹理会使用 [member stretch_mode] 拉伸到节点的边界矩形" "的边缘。为 [code]false[/code] 时纹理将不随节点缩放。" #: doc/classes/TextureButton.xml msgid "" "Controls the texture's behavior when you resize the node's bounding " "rectangle, [b]only if[/b] [member expand] is [code]true[/code]. Set it to " "one of the [enum StretchMode] constants. See the constants to learn more." msgstr "" "控制纹理在你调整节点的边界矩形时的行为,[b]只有在[/b][member expand] 为 " "[code]true[/code] 的情况下。把它设置为 [enum StretchMode] 常量之一。请看常量" "来了解更多。" #: doc/classes/TextureButton.xml msgid "" "Pure black and white [BitMap] image to use for click detection. On the mask, " "white pixels represent the button's clickable area. Use it to create buttons " "with curved shapes." msgstr "" "用于点击检测的纯黑白 [BitMap] 图像。在遮罩上,白色像素代表按钮的可点击区域。" "可用它来创建具有弯曲形状的按钮。" #: doc/classes/TextureButton.xml msgid "" "Texture to display when the node is disabled. See [member BaseButton." "disabled]." msgstr "节点被禁用时显示的纹理。参阅 [member BaseButton.disabled]。" #: doc/classes/TextureButton.xml msgid "Texture to display when the node has mouse or keyboard focus." msgstr "当节点具有鼠标或键盘焦点时显示的纹理。" #: doc/classes/TextureButton.xml msgid "Texture to display when the mouse hovers the node." msgstr "当鼠标悬停在节点上时显示的纹理。" #: doc/classes/TextureButton.xml msgid "" "Texture to display by default, when the node is [b]not[/b] in the disabled, " "focused, hover or pressed state." msgstr "节点[b]不处于[/b]禁用、聚焦、悬停、按下状态时,默认显示的纹理。" #: doc/classes/TextureButton.xml msgid "" "Texture to display on mouse down over the node, if the node has keyboard " "focus and the player presses the Enter key or if the player presses the " "[member BaseButton.shortcut] key." msgstr "" "如果节点有键盘焦点且玩家按下回车键,或者玩家按下 [member BaseButton." "shortcut] 键,则鼠标悬停在节点上时显示的纹理。" #: doc/classes/TextureButton.xml doc/classes/TextureRect.xml msgid "Scale to fit the node's bounding rectangle." msgstr "缩放以适应节点的边界矩形。" #: doc/classes/TextureButton.xml doc/classes/TextureRect.xml msgid "Tile inside the node's bounding rectangle." msgstr "在节点的边界矩形内平铺。" #: doc/classes/TextureButton.xml doc/classes/TextureRect.xml msgid "" "The texture keeps its original size and stays in the bounding rectangle's " "top-left corner." msgstr "纹理保持它的原始尺寸,并保持在边界矩形的左上角。" #: doc/classes/TextureButton.xml doc/classes/TextureRect.xml msgid "" "The texture keeps its original size and stays centered in the node's " "bounding rectangle." msgstr "纹理保持其原始大小,并在节点的边界矩形中保持居中。" #: doc/classes/TextureButton.xml doc/classes/TextureRect.xml msgid "" "Scale the texture to fit the node's bounding rectangle, but maintain the " "texture's aspect ratio." msgstr "缩放纹理以适应节点的边界矩形,但保持纹理的长宽比。" #: doc/classes/TextureButton.xml msgid "" "Scale the texture to fit the node's bounding rectangle, center it, and " "maintain its aspect ratio." msgstr "缩放纹理以适应节点的边界矩形,使其居中,并保持长宽比。" #: doc/classes/TextureButton.xml doc/classes/TextureRect.xml msgid "" "Scale the texture so that the shorter side fits the bounding rectangle. The " "other side clips to the node's limits." msgstr "缩放纹理,使较短的一边适应边界矩形。另一边则裁剪到节点的界限内。" #: doc/classes/TextureLayered.xml msgid "Base class for 3D texture types." msgstr "3D 纹理类型的基类。" #: doc/classes/TextureLayered.xml msgid "" "Base class for [Texture3D] and [TextureArray]. Cannot be used directly, but " "contains all the functions necessary for accessing and using [Texture3D] and " "[TextureArray]. Data is set on a per-layer basis. For [Texture3D]s, the " "layer specifies the depth or Z-index, they can be treated as a bunch of 2D " "slices. Similarly, for [TextureArray]s, the layer specifies the array layer." msgstr "" "是 [Texture3D] 和 [TextureArray] 的基类。不能直接使用,但包含访问和使用 " "[Texture3D] 和 [TextureArray] 的所有必要功能。数据是以每层为单位设置的。对于 " "[Texture3D],层指定了深度或 Z-index,它们可以被视为一堆二维切片。同样地,对" "于 [TextureArray],层指定了数组层。" #: doc/classes/TextureLayered.xml msgid "" "Returns the depth of the texture. Depth is the 3rd dimension (typically Z-" "axis)." msgstr "返回纹理的深度。深度是第三个维度(通常是 Z 轴)。" #: doc/classes/TextureLayered.xml msgid "" "Returns the current format being used by this texture. See [enum Image." "Format] for details." msgstr "返回纹理当前使用的格式。详情见[enum Image.Format]。" #: doc/classes/TextureLayered.xml msgid "" "Returns the height of the texture. Height is typically represented by the Y-" "axis." msgstr "返回纹理的高度。高度通常由Y轴表示。" #: doc/classes/TextureLayered.xml msgid "" "Returns an [Image] resource with the data from specified [code]layer[/code]." msgstr "返回一个带有指定[code]layer[/code]层数据的[Image]图像资源。" #: doc/classes/TextureLayered.xml msgid "" "Returns the width of the texture. Width is typically represented by the X-" "axis." msgstr "返回纹理的宽度。宽度通常由X轴表示。" #: doc/classes/TextureLayered.xml msgid "" "Partially sets the data for a specified [code]layer[/code] by overwriting " "using the data of the specified [code]image[/code]. [code]x_offset[/code] " "and [code]y_offset[/code] determine where the [Image] is \"stamped\" over " "the texture. The [code]image[/code] must fit within the texture." msgstr "" "通过使用指定的[code]image[/code]的数据覆盖来部分设置指定的[code]layer[/code]" "的数据。 [code]x_offset[/code] 和 [code]y_offset[/code] 确定 [Image] 在纹理上" "\"stamped\" 标记的位置。 [code]image[/code] 必须适合纹理。" #: doc/classes/TextureLayered.xml msgid "" "Sets the data for the specified layer. Data takes the form of a 2-" "dimensional [Image] resource." msgstr "设置指定图层的数据。数据的形式是二维的[Image]资源。" #: doc/classes/TextureLayered.xml msgid "Returns a dictionary with all the data used by this texture." msgstr "返回字典,其中带有此纹理使用的所有数据。" #: doc/classes/TextureLayered.xml msgid "Specifies which [enum Flags] apply to this texture." msgstr "指定应用于此纹理的 [enum Flags]。" #: doc/classes/TextureLayered.xml msgid "" "Default flags for [TextureArray]. [constant FLAG_MIPMAPS], [constant " "FLAG_REPEAT] and [constant FLAG_FILTER] are enabled." msgstr "" "[TextureArray] 的默认标记。 启用 [constant FLAG_MIPMAPS]、[constant " "FLAG_REPEAT] 和 [constant FLAG_FILTER]。" #: doc/classes/TextureLayered.xml msgid "Default flags for [Texture3D]. [constant FLAG_FILTER] is enabled." msgstr "默认为[Texture3D]的标记。启用[constant FLAG_FILTER]。" #: doc/classes/TextureLayered.xml msgid "Texture will generate mipmaps on creation." msgstr "纹理将在创建时生成多级渐远纹理。" #: doc/classes/TextureLayered.xml msgid "Texture will repeat when UV used is outside the 0-1 range." msgstr "当使用的UV超出0-1范围时,纹理将重复。" #: doc/classes/TextureLayered.xml msgid "" "Use filtering when reading from texture. Filtering smooths out pixels. " "Turning filtering off is slightly faster and more appropriate when you need " "access to individual pixels." msgstr "" "在从纹理中读取时使用过滤。过滤使像素变得平滑。当你需要访问单个像素时,关闭过" "滤会稍快一些,也更合适。" #: doc/classes/TextureProgress.xml msgid "" "Texture-based progress bar. Useful for loading screens and life or stamina " "bars." msgstr "基于纹理的进度条。适用于加载屏幕和生命或体力条。" #: doc/classes/TextureProgress.xml msgid "" "TextureProgress works like [ProgressBar], but uses up to 3 textures instead " "of Godot's [Theme] resource. It can be used to create horizontal, vertical " "and radial progress bars." msgstr "" "TextureProgress的工作原理与[ProgressBar]类似,但最多使用3个纹理,而不是Godot" "的[Theme]资源。它可以用来创建水平、垂直和径向的进度条。" #: doc/classes/TextureProgress.xml msgid "The fill direction. See [enum FillMode] for possible values." msgstr "填充方向。有关可能的值,参阅[enum FillMode]。" #: doc/classes/TextureProgress.xml msgid "" "If [code]true[/code], Godot treats the bar's textures like in " "[NinePatchRect]. Use the [code]stretch_margin_*[/code] properties like " "[member stretch_margin_bottom] to set up the nine patch's 3×3 grid. When " "using a radial [member fill_mode], this setting will enable stretching." msgstr "" "如果[code]true[/code],Godot会像在[NinePatchRect]中那样处理条形纹理。使用" "[code]stretch_margin_*[/code]属性,如[member stretch_margin_bottom]来设置九宫" "格的3×3网格。当使用径向的[member fill_mode]时,这个设置将启用拉伸功能。" #: doc/classes/TextureProgress.xml msgid "" "Offsets [member texture_progress] if [member fill_mode] is [constant " "FILL_CLOCKWISE] or [constant FILL_COUNTER_CLOCKWISE]." msgstr "" "如果[member fill_mode]是[constant FILL_CLOCKWISE]或[constant " "FILL_COUNTER_CLOCKWISE],则对[member texture_progress]进行偏移。" #: doc/classes/TextureProgress.xml msgid "" "Upper limit for the fill of [member texture_progress] if [member fill_mode] " "is [constant FILL_CLOCKWISE] or [constant FILL_COUNTER_CLOCKWISE]. When the " "node's [code]value[/code] is equal to its [code]max_value[/code], the " "texture fills up to this angle.\n" "See [member Range.value], [member Range.max_value]." msgstr "" "如果[member fill_mode]是[constant FILL_CLOCKWISE]或[constant " "FILL_COUNTER_CLOCKWISE],则为[member texture_progress]的填充上限。当节点的" "[code]value[/code]等于其[code]max_value[/code]时,纹理会填充到这个角度。\n" "参阅[member Range.value], [member Range.max_value]。" #: doc/classes/TextureProgress.xml msgid "" "Starting angle for the fill of [member texture_progress] if [member " "fill_mode] is [constant FILL_CLOCKWISE] or [constant " "FILL_COUNTER_CLOCKWISE]. When the node's [code]value[/code] is equal to its " "[code]min_value[/code], the texture doesn't show up at all. When the " "[code]value[/code] increases, the texture fills and tends towards [member " "radial_fill_degrees]." msgstr "" "如果[member fill_mode]是[constant FILL_CLOCKWISE]或[constant " "FILL_COUNTER_CLOCKWISE],[member texture_progress]的填充起始角度。当节点的" "[code]value[/code]等于其[code]min_value[/code]时,纹理根本不会显示出来。当" "[code]value[/code]增加时,纹理会被填满并趋向于[member radial_fill_degrees]。" #: doc/classes/TextureProgress.xml msgid "" "The height of the 9-patch's bottom row. A margin of 16 means the 9-slice's " "bottom corners and side will have a height of 16 pixels. You can set all 4 " "margin values individually to create panels with non-uniform borders." msgstr "" "九宫格底行的高度。边距为16意味着九宫格的底角和侧面将有16像素的高度。你可以单" "独设置所有4个边距值,来创建具有非统一边框的面板。" #: doc/classes/TextureProgress.xml msgid "The width of the 9-patch's left column." msgstr "九宫格左列的宽度。" #: doc/classes/TextureProgress.xml msgid "The width of the 9-patch's right column." msgstr "九宫格右列的宽度。" #: doc/classes/TextureProgress.xml msgid "The height of the 9-patch's top row." msgstr "九宫格顶行的高度。" #: doc/classes/TextureProgress.xml msgid "" "[Texture] that draws over the progress bar. Use it to add highlights or an " "upper-frame that hides part of [member texture_progress]." msgstr "" "在进度条之上绘制的 [Texture]。用它来添加高亮,或者作为上层帧来隐藏部分 " "[member texture_progress]。" #: doc/classes/TextureProgress.xml msgid "" "[Texture] that clips based on the node's [code]value[/code] and [member " "fill_mode]. As [code]value[/code] increased, the texture fills up. It shows " "entirely when [code]value[/code] reaches [code]max_value[/code]. It doesn't " "show at all if [code]value[/code] is equal to [code]min_value[/code].\n" "The [code]value[/code] property comes from [Range]. See [member Range." "value], [member Range.min_value], [member Range.max_value]." msgstr "" "基于节点的[code]value[/code]和[member fill_mode]进行裁剪[Texture]。随着" "[code]value[/code]的增加,纹理会被填满。当[code]value[/code]达到" "[code]max_value[/code]时,它完全显示。如果[code]value[/code]等于" "[code]min_value[/code],它就完全不显示了。\n" "[code]value[/code]属性来自[Range]。参阅[member Range.value], [member Range." "min_value], [member Range.max_value]。" #: doc/classes/TextureProgress.xml msgid "" "The offset of [member texture_progress]. Useful for [member texture_over] " "and [member texture_under] with fancy borders, to avoid transparent margins " "in your progress texture." msgstr "" "[member texture_progress]的偏移量。对于带有花哨的边框的[member texture_over]" "和[member texture_under]很有用,可以避免进度纹理的边缘透明。" #: doc/classes/TextureProgress.xml msgid "[Texture] that draws under the progress bar. The bar's background." msgstr "在进度条下面绘制的[Texture]。即背景。" #: doc/classes/TextureProgress.xml msgid "" "Multiplies the color of the bar's [code]texture_over[/code] texture. The " "effect is similar to [member CanvasItem.modulate], except it only affects " "this specific texture instead of the entire node." msgstr "" "将条形的 [code]texture_over[/code] 纹理的颜色相乘。其效果类似于 [member " "CanvasItem.modulate] ,只是它只影响这个特定的纹理,而不是整个节点。" #: doc/classes/TextureProgress.xml msgid "" "Multiplies the color of the bar's [code]texture_progress[/code] texture." msgstr "将条形的 [code]texture_progress[/code] 纹理的颜色相乘。" #: doc/classes/TextureProgress.xml msgid "Multiplies the color of the bar's [code]texture_under[/code] texture." msgstr "将条形的 [code]texture_under[/code] 纹理的颜色相乘。" #: doc/classes/TextureProgress.xml msgid "The [member texture_progress] fills from left to right." msgstr "[member texture_progress]从左到右填充。" #: doc/classes/TextureProgress.xml msgid "The [member texture_progress] fills from right to left." msgstr "[member texture_progress] 从右到左填充。" #: doc/classes/TextureProgress.xml msgid "The [member texture_progress] fills from top to bottom." msgstr "[member texture_progress] 从上到下填充。" #: doc/classes/TextureProgress.xml msgid "The [member texture_progress] fills from bottom to top." msgstr "[member texture_progress] 自下而上填充。" #: doc/classes/TextureProgress.xml msgid "" "Turns the node into a radial bar. The [member texture_progress] fills " "clockwise. See [member radial_center_offset], [member radial_initial_angle] " "and [member radial_fill_degrees] to control the way the bar fills up." msgstr "" "将节点变成径向条形。[member texture_progress] 顺时针填充。参阅[member " "radial_center_offset]、[member radial_initial_angle]和[member " "radial_fill_degrees]来控制条形填充的方式。" #: doc/classes/TextureProgress.xml msgid "" "Turns the node into a radial bar. The [member texture_progress] fills " "counterclockwise. See [member radial_center_offset], [member " "radial_initial_angle] and [member radial_fill_degrees] to control the way " "the bar fills up." msgstr "" "将节点变成径向条形。[member texture_progress]逆时针填充。参阅[member " "radial_center_offset]、[member radial_initial_angle]和[member " "radial_fill_degrees]来控制条形填充的方式。" #: doc/classes/TextureProgress.xml msgid "" "The [member texture_progress] fills from the center, expanding both towards " "the left and the right." msgstr "[member texture_progress]从中心开始填充,向左和向右扩展。" #: doc/classes/TextureProgress.xml msgid "" "The [member texture_progress] fills from the center, expanding both towards " "the top and the bottom." msgstr "[member texture_progress]从中心开始填充,同时向顶部和底部扩展。" #: doc/classes/TextureProgress.xml msgid "" "Turns the node into a radial bar. The [member texture_progress] fills " "radially from the center, expanding both clockwise and counterclockwise. See " "[member radial_center_offset], [member radial_initial_angle] and [member " "radial_fill_degrees] to control the way the bar fills up." msgstr "" "将节点变成径向条形。[member texture_progress]从中心径向填充,顺时针和逆时针扩" "展。参阅[member radial_center_offset]、[member radial_initial_angle]和" "[member radial_fill_degrees]来控制条形填充的方式。" #: doc/classes/TextureRect.xml msgid "Control for drawing textures." msgstr "控件绘制纹理。" #: doc/classes/TextureRect.xml msgid "" "Used to draw icons and sprites in a user interface. The texture's placement " "can be controlled with the [member stretch_mode] property. It can scale, " "tile, or stay centered inside its bounding rectangle.\n" "[b]Note:[/b] You should enable [member flip_v] when using a TextureRect to " "display a [ViewportTexture]. Alternatively, you can enable [member Viewport." "render_target_v_flip] on the Viewport. Otherwise, the image will appear " "upside down." msgstr "" "用于在用户界面上绘制图标和精灵。纹理的位置可以通过 [member stretch_mode] 属性" "来控制。它可以缩放、平铺,或者在其边界矩形内保持居中。\n" "[b]注意:[/b]当使用 TextureRect 来显示 [ViewportTexture] 时,你应该启用 " "[member flip_v]。或者,你也可以在 Viewport 上启用 [member Viewport." "render_target_v_flip]。否则,图像会出现上下颠倒的情况。" #: doc/classes/TextureRect.xml msgid "If [code]true[/code], the texture scales to fit its bounding rectangle." msgstr "如果为 [code]true[/code],纹理缩放以适合其边界矩形。" #: doc/classes/TextureRect.xml msgid "" "Controls the texture's behavior when resizing the node's bounding rectangle. " "See [enum StretchMode]." msgstr "控件纹理在调整节点边界矩形时的行为。参阅[enum StretchMode]。" #: doc/classes/TextureRect.xml msgid "The node's [Texture] resource." msgstr "节点的 [Texture] 纹理资源。" #: doc/classes/TextureRect.xml msgid "" "Scale to fit the node's bounding rectangle, only if [code]expand[/code] is " "[code]true[/code]. Default [code]stretch_mode[/code], for backwards " "compatibility. Until you set [code]expand[/code] to [code]true[/code], the " "texture will behave like [constant STRETCH_KEEP]." msgstr "" "缩放以适应节点的边界矩形,只有当 [code]expand[/code] 为 [code]true[/code] 时" "生效。默认为 [code]stretch_mode[/code],用于向后兼容。在你将 [code]expand[/" "code] 设置为 [code]true[/code] 之前,纹理会表现得像 [constant STRETCH_KEEP]。" #: doc/classes/TextureRect.xml msgid "" "Scale the texture to fit the node's bounding rectangle, center it and " "maintain its aspect ratio." msgstr "缩放纹理以适应节点的边界矩形,使其居中并保持其长宽比。" #: doc/classes/Theme.xml msgid "Theme for controls." msgstr "控件的主题。" #: doc/classes/Theme.xml msgid "" "A theme for skinning controls. Controls can be skinned individually, but for " "complex applications, it's more practical to just create a global theme that " "defines everything. This theme can be applied to any [Control]; the Control " "and its children will automatically use it.\n" "Theme resources can alternatively be loaded by writing them in a [code]." "theme[/code] file, see the documentation for more information." msgstr "" "控件的外观主题。控件可以单独定制外观,单对于复杂应用程序而言,直接创建一个全" "局的主题对整体进行定义更易于操作。主题可以应用于任何 [Control];该控件极其子" "节点都会自动使用。\n" "还可以通过编写 [code].theme[/code] 文件加载主题资源,更多信息见文档。" #: doc/classes/Theme.xml msgid "" "Adds an empty theme type for every valid data type.\n" "[b]Note:[/b] Empty types are not saved with the theme. This method only " "exists to perform in-memory changes to the resource. Use available " "[code]set_*[/code] methods to add theme items." msgstr "" "为每一个有效的数据类型都添加一个空主题类型。\n" "[b]注意:[/b]空类型不会随该主题保存。这个方法的存在是为了对资源执行内存中的更" "改。请使用 [code]set_*[/code] 方法添加主题项目。" #: doc/classes/Theme.xml msgid "Clears all values on the theme." msgstr "清除主题上的所有值。" #: doc/classes/Theme.xml msgid "" "Clears the [Color] at [code]name[/code] if the theme has [code]node_type[/" "code]." msgstr "" "如果主题包含 [code]node_type[/code],则清除名为 [code]name[/code] 的 [Color]" "颜色。" #: doc/classes/Theme.xml msgid "" "Clears the constant at [code]name[/code] if the theme has [code]node_type[/" "code]." msgstr "" "如果主题包含 [code]node_type[/code],则清除名为 [code]name[/code] 的常量。" #: doc/classes/Theme.xml msgid "" "Clears the [Font] at [code]name[/code] if the theme has [code]node_type[/" "code]." msgstr "" "如果主题包含 [code]node_type[/code],则清除名为 [code]name[/code] 的 [Font]字" "体。" #: doc/classes/Theme.xml msgid "" "Clears the icon at [code]name[/code] if the theme has [code]node_type[/code]." msgstr "" "如果主题包含 [code]node_type[/code],则清除名为 [code]name[/code] 的图标。" #: doc/classes/Theme.xml msgid "" "Clears [StyleBox] at [code]name[/code] if the theme has [code]node_type[/" "code]." msgstr "" "如果主题包含 [code]node_type[/code],则清除名为 [code]name[/code] 的 " "[StyleBox]样式盒。" #: doc/classes/Theme.xml msgid "" "Clears the theme item of [code]data_type[/code] at [code]name[/code] if the " "theme has [code]node_type[/code]." msgstr "" "如果主题具有 [code]node_type[/code],则清除 [code]name[/code] 处的 " "[code]data_type[/code] 主题项。" #: doc/classes/Theme.xml msgid "" "Unmarks [code]theme_type[/code] as being a variation of another theme type. " "See [method set_type_variation]." msgstr "" "取消将主题类型 [code]theme_type[/code] 标记为任何主题类型的变种。见 [method " "set_type_variation]。" #: doc/classes/Theme.xml msgid "Sets the theme's values to a copy of the default theme values." msgstr "将主题的取值设置为默认主题的副本。" #: doc/classes/Theme.xml msgid "Sets the theme's values to a copy of a given theme." msgstr "将主题的取值设置为指定主题的副本。" #: doc/classes/Theme.xml msgid "" "Returns the [Color] at [code]name[/code] if the theme has [code]node_type[/" "code]." msgstr "如果主题有[code]node_type[/code],返回 [code]name[/code]处的[Color]。" #: doc/classes/Theme.xml msgid "" "Returns all the [Color]s as a [PoolStringArray] filled with each [Color]'s " "name, for use in [method get_color], if the theme has [code]node_type[/code]." msgstr "" "如果主题有[code]node_type[/code],将所有的[Color]作为[PoolStringArray]返回," "并填充每个[Color]的名称,用于[method get_color]使用。" #: doc/classes/Theme.xml msgid "" "Returns all the [Color] types as a [PoolStringArray] filled with unique type " "names, for use in [method get_color] and/or [method get_color_list]." msgstr "" "返回所有的[Color]类型为[PoolStringArray],其中填充了唯一类型名称,供[method " "get_color]和/或[method get_color_list]使用。" #: doc/classes/Theme.xml msgid "" "Returns the constant at [code]name[/code] if the theme has [code]node_type[/" "code]." msgstr "如果主题有[code]node_type[/code],返回 [code]name[/code]处的常量。" #: doc/classes/Theme.xml msgid "" "Returns all the constants as a [PoolStringArray] filled with each constant's " "name, for use in [method get_constant], if the theme has [code]node_type[/" "code]." msgstr "" "如果主题有[code]node_type[/code],将所有常量作为[PoolStringArray]返回,并填充" "每个常量的名称,以供[method get_constant]使用。" #: doc/classes/Theme.xml msgid "" "Returns all the constant types as a [PoolStringArray] filled with unique " "type names, for use in [method get_constant] and/or [method " "get_constant_list]." msgstr "" "返回所有的常量类型为[PoolStringArray],其中填充唯一的类型名称,以供[method " "get_constant]和/或[method get_constant_list]使用。" #: doc/classes/Theme.xml msgid "" "Returns the [Font] at [code]name[/code] if the theme has [code]node_type[/" "code]. If such item does not exist and [member default_font] is set on the " "theme, the default font will be returned." msgstr "" "如果主题有 [code]node_type[/code],则返回名为 [code]name[/code] 的 [Font]。如" "果不存在这样的项目,而该主题设置了 [member default_font],则会返回该默认字" "体。" #: doc/classes/Theme.xml msgid "" "Returns all the [Font]s as a [PoolStringArray] filled with each [Font]'s " "name, for use in [method get_font], if the theme has [code]node_type[/code]." msgstr "" "如果主题有[code]node_type[/code],将所有的[Font]作为[PoolStringArray]返回,并" "填入每个[Font]的名称,以供[method get_font]使用。" #: doc/classes/Theme.xml msgid "" "Returns all the [Font] types as a [PoolStringArray] filled with unique type " "names, for use in [method get_font] and/or [method get_font_list]." msgstr "" "返回所有的[Font]类型为[PoolStringArray],其中填充唯一的类型名称,以供[method " "get_font]和/或[method get_font_list]使用。" #: doc/classes/Theme.xml msgid "" "Returns the icon [Texture] at [code]name[/code] if the theme has " "[code]node_type[/code]." msgstr "" "如果主题有[code]node_type[/code],返回 [code]name[/code]处的图标[Texture]。" #: doc/classes/Theme.xml msgid "" "Returns all the icons as a [PoolStringArray] filled with each [Texture]'s " "name, for use in [method get_icon], if the theme has [code]node_type[/code]." msgstr "" "如果主题有[code]node_type[/code],则返回所有的图标为一个[PoolStringArray],并" "填入每个[Texture]的名称,以供[method get_icon]使用。" #: doc/classes/Theme.xml msgid "" "Returns all the icon types as a [PoolStringArray] filled with unique type " "names, for use in [method get_icon] and/or [method get_icon_list]." msgstr "" "返回所有的图标类型为[PoolStringArray],其中填充唯一的类型名称,以供[method " "get_icon]和/或[method get_icon_list]使用。" #: doc/classes/Theme.xml msgid "" "Returns the [StyleBox] at [code]name[/code] if the theme has " "[code]node_type[/code].\n" "Valid [code]name[/code]s may be found using [method get_stylebox_list]. " "Valid [code]node_type[/code]s may be found using [method get_stylebox_types]." msgstr "" "如果主题有[code]node_type[/code],返回 [code]name[/code]处的[StyleBox]。\n" "可以使用[method get_stylebox_list]找到有效的[code]name[/code]。可以通过" "[method get_stylebox_types]来找到有效的[code]node_type[/code]。" #: doc/classes/Theme.xml msgid "" "Returns all the [StyleBox]s as a [PoolStringArray] filled with each " "[StyleBox]'s name, for use in [method get_stylebox], if the theme has " "[code]node_type[/code].\n" "Valid [code]node_type[/code]s may be found using [method get_stylebox_types]." msgstr "" "如果主题有[code]node_type[/code],则返回所有[StyleBox]的[PoolStringArray],并" "填入每个[StyleBox]的名称,以供[method get_stylebox]使用。\n" "可以使用[method get_stylebox_types]找到有效的[code]node_type[/code]。" #: doc/classes/Theme.xml msgid "" "Returns all the [StyleBox] types as a [PoolStringArray] filled with unique " "type names, for use in [method get_stylebox] and/or [method " "get_stylebox_list]." msgstr "" "返回所有[StyleBox]类型为[PoolStringArray],其中填充了唯一的类型名称,以供" "[method get_stylebox]和/或[method get_stylebox_list]使用。" #: doc/classes/Theme.xml msgid "" "Returns the theme item of [code]data_type[/code] at [code]name[/code] if the " "theme has [code]node_type[/code].\n" "Valid [code]name[/code]s may be found using [method get_theme_item_list] or " "a data type specific method. Valid [code]node_type[/code]s may be found " "using [method get_theme_item_types] or a data type specific method." msgstr "" "如果主题有 [code]node_type[/code],则以 [code]name[/code] 返回 " "[code]data_type[/code] 的主题项目。\n" "使用 [method get_theme_item_list] 或数据类型特定方法,可能会找到有效的 " "[code]name[/code]。可以使用 [method get_theme_item_types] 或数据类型特定方" "法,找到有效的 [code]node_type[/code]。" #: doc/classes/Theme.xml msgid "" "Returns all the theme items of [code]data_type[/code] as a [PoolStringArray] " "filled with each theme items's name, for use in [method get_theme_item] or a " "data type specific method, if the theme has [code]node_type[/code].\n" "Valid [code]node_type[/code]s may be found using [method " "get_theme_item_types] or a data type specific method." msgstr "" "返回所有[code]data_type[/code]的主题项目,以[PoolStringArray]的形式填入每个主" "题项目的名称,如果主题有[code]node_type[/code],可以在[method get_theme_item]" "或特定数据类型方法中使用。\n" "可以通过[method get_theme_item_types]或特定数据类型的方法找到有效的" "[code]node_type[/code]。" #: doc/classes/Theme.xml msgid "" "Returns all the theme items of [code]data_type[/code] types as a " "[PoolStringArray] filled with unique type names, for use in [method " "get_theme_item], [method get_theme_item_list] or data type specific methods." msgstr "" "返回所有[code]data_type[/code]类型的主题项,作为填入唯一类型名称的" "[PoolStringArray],以供[method get_theme_item]、[method get_theme_item_list]" "或数据类型特定方法使用。" #: doc/classes/Theme.xml msgid "" "Returns all the theme types as a [PoolStringArray] filled with unique type " "names, for use in other [code]get_*[/code] functions of this theme.\n" "[b]Note:[/b] [code]node_type[/code] has no effect and will be removed in " "future version." msgstr "" "将所有的主题类型作为一个[PoolStringArray]返回,其中填入了唯一的类型名称,以供" "这个主题的其他[code]get_*[/code]函数使用。\n" "[b]注意:[/b][code]node_type[/code]没有生效,在未来的版本中会被删除。" #: doc/classes/Theme.xml msgid "" "Returns the name of the base theme type if [code]theme_type[/code] is a " "valid variation type. Returns an empty string otherwise." msgstr "" "如果主题类型 [code]theme_type[/code] 为有效的变种类型,则返回其基础主题类型的" "名称。否则返回空字符串。" #: doc/classes/Theme.xml msgid "" "Returns a list of all type variations for the given [code]base_type[/code]." msgstr "返回给定的基础类型 [code]base_type[/code] 的所有类型变种。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if [Color] with [code]name[/code] is in " "[code]node_type[/code].\n" "Returns [code]false[/code] if the theme does not have [code]node_type[/code]." msgstr "" "如果带有[code]name[/code]的[Color]在[code]node_type[/code]中,则返回 " "[code]true[/code]。\n" "如果主题没有[code]node_type[/code],则返回 [code]false[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if constant with [code]name[/code] is in " "[code]node_type[/code].\n" "Returns [code]false[/code] if the theme does not have [code]node_type[/code]." msgstr "" "如果带有[code]name[/code]的常量在[code]node_type[/code]中,则返回 " "[code]true[/code]。\n" "如果主题没有[code]node_type[/code],则返回 [code]false[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if this theme has a valid [member default_font] " "value." msgstr "" "如果这个主题有一个有效的[member default_font]值,返回 [code]true[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if [Font] with [code]name[/code] is in " "[code]node_type[/code].\n" "Returns [code]false[/code] if the theme does not have [code]node_type[/code]." msgstr "" "如果带有[code]name[/code]的[Font]在[code]node_type[/code]中,则返回 " "[code]true[/code]。\n" "如果主题没有[code]node_type[/code],则返回 [code]false[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if icon [Texture] with [code]name[/code] is in " "[code]node_type[/code].\n" "Returns [code]false[/code] if the theme does not have [code]node_type[/code]." msgstr "" "如果带有[code]name[/code]的图标[Texture]在[code]node_type[/code]中,则返回 " "[code]true[/code]。\n" "如果主题没有[code]node_type[/code],则返回 [code]false[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if [StyleBox] with [code]name[/code] is in " "[code]node_type[/code].\n" "Returns [code]false[/code] if the theme does not have [code]node_type[/code]." msgstr "" "如果带有[code]name[/code]的[StyleBox]在[code]node_type[/code]中,返回 " "[code]true[/code]。\n" "如果主题没有[code]node_type[/code],则返回 [code]false[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if a theme item of [code]data_type[/code] with " "[code]name[/code] is in [code]node_type[/code].\n" "Returns [code]false[/code] if the theme does not have [code]node_type[/code]." msgstr "" "如果一个[code]data_type[/code]的主题项目与[code]name[/code]在" "[code]node_type[/code]中,则返回 [code]true[/code]。\n" "如果该主题没有[code]node_type[/code],则返回 [code]false[/code]。" #: doc/classes/Theme.xml msgid "" "Returns [code]true[/code] if [code]theme_type[/code] is marked as a " "variation of [code]base_type[/code]." msgstr "" "如果主题类型 [code]theme_type[/code] 被标记为基础类型 [code]base_type[/code] " "的变种,则返回 [code]true[/code]。" #: doc/classes/Theme.xml msgid "" "Adds missing and overrides existing definitions with values from the " "[code]other[/code] [Theme].\n" "[b]Note:[/b] This modifies the current theme. If you want to merge two " "themes together without modifying either one, create a new empty theme and " "merge the other two into it one after another." msgstr "" "用[code]other[/code][Theme]的值添加缺失的,和覆盖现有的定义。\n" "[b]注意:[/b]这将修改当前的主题。如果你想在不修改任何一个主题的情况下将两个主" "题合并在一起,请创建一个新的空主题,然后将另外两个主题逐个合并到其中。" #: doc/classes/Theme.xml msgid "" "Removes the theme type, gracefully discarding defined theme items. If the " "type is a variation, this information is also erased. If the type is a base " "for type variations, those variations lose their base." msgstr "" "移除该主题类型,优雅地丢弃其中定义的主题项目。如果该类型为变种,则该信息也会" "被消除。如果该类型为类型变种的基础类型,则那些变种会失去其基础类型。" #: doc/classes/Theme.xml msgid "" "Renames the [Color] at [code]old_name[/code] to [code]name[/code] if the " "theme has [code]node_type[/code]. If [code]name[/code] is already taken, " "this method fails." msgstr "" "如果主题有[code]node_type[/code],则将[code]old_name[/code]的[Color]重命名为" "[code]name[/code]。如果[code]name[/code]已经被占用,则此方法将失败。" #: doc/classes/Theme.xml msgid "" "Renames the constant at [code]old_name[/code] to [code]name[/code] if the " "theme has [code]node_type[/code]. If [code]name[/code] is already taken, " "this method fails." msgstr "" "如果主题有[code]node_type[/code],则将[code]old_name[/code]的常量重命名为" "[code]name[/code]。如果[code]name[/code]已经被占用,则此方法失败。" #: doc/classes/Theme.xml msgid "" "Renames the [Font] at [code]old_name[/code] to [code]name[/code] if the " "theme has [code]node_type[/code]. If [code]name[/code] is already taken, " "this method fails." msgstr "" "如果主题有[code]node_type[/code],则将[code]old_name[/code]的[Font]重命名为" "[code]name[/code]。如果[code]name[/code]已经被占用,则此方法失败。" #: doc/classes/Theme.xml msgid "" "Renames the icon at [code]old_name[/code] to [code]name[/code] if the theme " "has [code]node_type[/code]. If [code]name[/code] is already taken, this " "method fails." msgstr "" "如果主题有[code]node_type[/code],将[code]old_name[/code]的图标重命名为" "[code]name[/code]。如果[code]name[/code]已经被占用,则此方法失败。" #: doc/classes/Theme.xml msgid "" "Renames [StyleBox] at [code]old_name[/code] to [code]name[/code] if the " "theme has [code]node_type[/code]. If [code]name[/code] is already taken, " "this method fails." msgstr "" "如果主题有[code]node_type[/code],则将[StyleBox]在[code]old_name[/code]重命名" "为[code]name[/code]。如果[code]name[/code]已经被占用,此方法会失败。" #: doc/classes/Theme.xml msgid "" "Renames the theme item of [code]data_type[/code] at [code]old_name[/code] to " "[code]name[/code] if the theme has [code]node_type[/code]. If [code]name[/" "code] is already taken, this method fails." msgstr "" "如果主题具有 [code]node_type[/code],则将 [code]old_name[/code] 处的 " "[code]data_type[/code] 的主题项重命名为 [code]name[/code]。如果 [code]name[/" "code] 已经被占用,则此方法失败。" #: doc/classes/Theme.xml msgid "" "Sets the theme's [Color] to [code]color[/code] at [code]name[/code] in " "[code]node_type[/code].\n" "Creates [code]node_type[/code] if the theme does not have it." msgstr "" "在[code]node_type[/code]中的[code]name[/code]处,设置主题的[Color]为" "[code]color[/code]。\n" "如果主题没有[code]node_type[/code],则创建该节点。" #: doc/classes/Theme.xml msgid "" "Sets the theme's constant to [code]constant[/code] at [code]name[/code] in " "[code]node_type[/code].\n" "Creates [code]node_type[/code] if the theme does not have it." msgstr "" "在[code]node_type[/code]中的[code]name[/code]处,将主题的常量设置为" "[code]constant[/code]。\n" "如果主题没有,则创建[code]node_type[/code]。" #: doc/classes/Theme.xml msgid "" "Sets the theme's [Font] to [code]font[/code] at [code]name[/code] in " "[code]node_type[/code].\n" "Creates [code]node_type[/code] if the theme does not have it." msgstr "" "在[code]node_type[/code]中的[code]name[/code]处将主题的 [Font] 设置为" "[code]font[/code]。\n" "如果主题没有[code]node_type[/code],则创建该节点。" #: doc/classes/Theme.xml msgid "" "Sets the theme's icon [Texture] to [code]texture[/code] at [code]name[/code] " "in [code]node_type[/code].\n" "Creates [code]node_type[/code] if the theme does not have it." msgstr "" "在[code]node_type[/code]中的[code]name[/code]处设置主题的图标[Texture]为" "[code]texture[/code]。\n" "如果主题没有[code]node_type[/code],则创建该节点。" #: doc/classes/Theme.xml msgid "" "Sets theme's [StyleBox] to [code]stylebox[/code] at [code]name[/code] in " "[code]node_type[/code].\n" "Creates [code]node_type[/code] if the theme does not have it." msgstr "" "将主题的[StyleBox]设置为[code]stylebox[/code],在[code]node_type[/code]的" "[code]name[/code]处。\n" "如果主题没有[code]node_type[/code],则创建该节点。" #: doc/classes/Theme.xml msgid "" "Sets the theme item of [code]data_type[/code] to [code]value[/code] at " "[code]name[/code] in [code]node_type[/code].\n" "Does nothing if the [code]value[/code] type does not match [code]data_type[/" "code].\n" "Creates [code]node_type[/code] if the theme does not have it." msgstr "" "将[code]data_type[/code]的主题项目设置为[code]value[/code],在" "[code]node_type[/code]中的[code]name[/code]。\n" "如果[code]value[/code]类型与[code]data_type[/code]不匹配,则不做任何处理。\n" "如果主题没有[code]node_type[/code],则创建该类型。" #: doc/classes/Theme.xml msgid "" "Marks [code]theme_type[/code] as a variation of [code]base_type[/code].\n" "This adds [code]theme_type[/code] as a suggested option for [member Control." "theme_type_variation] on a [Control] that is of the [code]base_type[/code] " "class.\n" "Variations can also be nested, i.e. [code]base_type[/code] can be another " "variation. If a chain of variations ends with a [code]base_type[/code] " "matching the class of the [Control], the whole chain is going to be " "suggested as options.\n" "[b]Note:[/b] Suggestions only show up if this theme resource is set as the " "project default theme. See [member ProjectSettings.gui/theme/custom]." msgstr "" "将主题类型 [code]theme_type[/code] 标记为基础类型 [code]base_type[/code] 的变" "种。\n" "这会将 [code]theme_type[/code] 添加为 [code]base_type[/code] 类的 [Control] " "的 [member Control.theme_type_variation] 的建议选项。\n" "变种可以嵌套,即 [code]base_type[/code] 也可以是变种。如果 [code]base_type[/" "code] 与该 [Control] 相匹配,且存在以它结尾的变种链,则整条链上的变种都会作为" "建议选项。\n" "[b]注意:[/b]只有该主题资源被设为项目默认主题时才会出现建议。见 [member " "ProjectSettings.gui/theme/custom]。" #: doc/classes/Theme.xml msgid "" "The default font of this [Theme] resource. Used as a fallback value for font " "items defined in this theme, but having invalid values. If this value is " "also invalid, the global default value is used.\n" "Use [method has_default_font] to check if this value is valid." msgstr "" "此 [Theme] 资源的默认字体。用作此主题中定义的字体项的后备值,但具有无效值。如" "果此值也无效,则使用全局默认值。\n" "使用 [method has_default_font] 来检查这个值是否有效。" #: doc/classes/Theme.xml msgid "Theme's [Color] item type." msgstr "主题的 [Color] 颜色项类型。" #: doc/classes/Theme.xml msgid "Theme's constant item type." msgstr "主题的常量项类型。" #: doc/classes/Theme.xml msgid "Theme's [Font] item type." msgstr "主题的 [Font] 字体项类型。" #: doc/classes/Theme.xml msgid "Theme's icon [Texture] item type." msgstr "主题的图标[Texture]项类型。" #: doc/classes/Theme.xml msgid "Theme's [StyleBox] item type." msgstr "主题的[StyleBox]项目类型。" #: doc/classes/Theme.xml msgid "Maximum value for the DataType enum." msgstr "数据类型枚举的最大值。" #: doc/classes/Thread.xml msgid "A unit of execution in a process." msgstr "执行过程中的执行单元。" #: doc/classes/Thread.xml msgid "" "A unit of execution in a process. Can run methods on [Object]s " "simultaneously. The use of synchronization via [Mutex] or [Semaphore] is " "advised if working with shared objects.\n" "[b]Note:[/b] Breakpoints won't break on code if it's running in a thread. " "This is a current limitation of the GDScript debugger." msgstr "" "进程中的执行单元。可以同时在 [Object] 上运行方法。如果使用共享对象,建议通过 " "[Mutex] 或 [Semaphore] 使用同步。\n" "[b]注意:[/b]如果代码在线程中运行,断点不会中断。这是 GDScript 调试器的当前限" "制。" #: doc/classes/Thread.xml msgid "Using multiple threads" msgstr "使用多线程" #: doc/classes/Thread.xml msgid "Thread-safe APIs" msgstr "线程安全的 API" #: doc/classes/Thread.xml msgid "" "Returns the current [Thread]'s ID, uniquely identifying it among all " "threads. If the [Thread] is not running this returns an empty string." msgstr "" "返回当前 [Thread] 的 ID,在所有线程中唯一标识它。如果 [Thread] 未运行,则返回" "空字符串。" #: doc/classes/Thread.xml msgid "" "Returns [code]true[/code] if this [Thread] has been started. Once started, " "this will return [code]true[/code] until it is joined using [method " "wait_to_finish]. For checking if a [Thread] is still executing its task, use " "[method is_alive]." msgstr "" "如果此 [Thread] 已启动,则返回 [code]true[/code]。一旦开始,这将返回 " "[code]true[/code] ,直到它使用 [method wait_to_finish] 加入。要检查 [Thread] " "是否仍在执行其任务,请使用 [method is_alive]。" #: doc/classes/Thread.xml msgid "" "Returns [code]true[/code] if this [Thread] is currently running. This is " "useful for determining if [method wait_to_finish] can be called without " "blocking the calling thread.\n" "To check if a [Thread] is joinable, use [method is_active]." msgstr "" "当本 [Thread] 线程正在等待时,返回 [code]true[/code]。在需要确定调用 [method " "wait_to_finish] 是否会阻塞调用线程时非常有用。\n" "要检查 [Thread] 线程是否可合并,请使用 [method is_active]。" #: doc/classes/Thread.xml msgid "" "Starts a new [Thread] that runs [code]method[/code] on object " "[code]instance[/code] with [code]userdata[/code] passed as an argument. Even " "if no userdata is passed, [code]method[/code] must accept one argument and " "it will be null. The [code]priority[/code] of the [Thread] can be changed by " "passing a value from the [enum Priority] enum.\n" "Returns [constant OK] on success, or [constant ERR_CANT_CREATE] on failure." msgstr "" "启动一个新的[Thread]线程,在对象[code]instance[/code]上运行[code]method[/" "code],并将[code]userdata[/code]作为一个参数传递。即使没有传递userdata," "[code]method[/code]也必须接受一个空的参数。[Thread]的[code]priority[/code]优" "先级可以通过传递[enum Priority]枚举中的一个值来改变。\n" "成功时返回[constant OK],失败时返回[constant ERR_CANT_CREATE] 。" #: doc/classes/Thread.xml msgid "" "Joins the [Thread] and waits for it to finish. Returns the output of the " "method passed to [method start].\n" "Should either be used when you want to retrieve the value returned from the " "method called by the [Thread] or before freeing the instance that contains " "the [Thread].\n" "To determine if this can be called without blocking the calling thread, " "check if [method is_alive] is [code]false[/code].\n" "[b]Note:[/b] After the [Thread] finishes joining it will be disposed. If you " "want to use it again you will have to create a new instance of it." msgstr "" "合并 [Thread] 并等待它完成。返回传递给 [method start] 的方法的输出。\n" "应在两种情况下使用:想要获取 [Thread] 调用的方法所返回的值,或者在释放包含 " "[Thread] 的实例之前。\n" "如果想确定调用本方法是否会阻塞调用线程,请检查 [method is_alive] 是否为 " "[code]false[/code]。\n" "[b]注意:[/b][Thread] 在完成合并后将被销毁。如果要再次使用它,则必须创建它的" "新实例。" #: doc/classes/Thread.xml msgid "A thread running with lower priority than normally." msgstr "一个线程以比正常情况下更低的优先级运行。" #: doc/classes/Thread.xml msgid "A thread with a standard priority." msgstr "具有标准优先级的线程。" #: doc/classes/Thread.xml msgid "A thread running with higher priority than normally." msgstr "以比正常情况更高的优先级运行的线程。" #: doc/classes/TileMap.xml msgid "Node for 2D tile-based maps." msgstr "基于 2D 图块的地图节点。" #: doc/classes/TileMap.xml msgid "" "Node for 2D tile-based maps. Tilemaps use a [TileSet] which contain a list " "of tiles (textures plus optional collision, navigation, and/or occluder " "shapes) which are used to create grid-based maps.\n" "When doing physics queries against the tilemap, the cell coordinates are " "encoded as [code]metadata[/code] for each detected collision shape returned " "by methods such as [method Physics2DDirectSpaceState.intersect_shape], " "[method Physics2DDirectBodyState.get_contact_collider_shape_metadata], etc." msgstr "" "基于 2D 图块的地图节点。图块地图使用 [TileSet],其中包含图块列表,纹理能加上" "可选的碰撞、导航和/或遮挡形状,用于创建基于网格的地图。\n" "当对图块地图进行物理查询时,[method Physics2DDirectSpaceState." "intersect_shape]、[method Physics2DDirectBodyState." "get_contact_collider_shape_metadata] 等方法会返回检测到的碰撞形状,这些形状所" "处的单元格坐标会被编码为 [code]metadata[/code]。" #: doc/classes/TileMap.xml doc/classes/TileSet.xml msgid "Using Tilemaps" msgstr "使用图块地图" #: doc/classes/TileMap.xml doc/classes/TileSet.xml msgid "2D Hexagonal Demo" msgstr "2D 六边形演示" #: doc/classes/TileMap.xml msgid "Clears all cells." msgstr "清除所有单元格。" #: doc/classes/TileMap.xml msgid "Clears cells that do not exist in the tileset." msgstr "清除图块集中不存在的单元格。" #: doc/classes/TileMap.xml msgid "" "Returns the tile index of the given cell. If no tile exists in the cell, " "returns [constant INVALID_CELL]." msgstr "" "返回指定单元格的图块索引。如果单元格中没有图块,则返回 [constant " "INVALID_CELL]。" #: doc/classes/TileMap.xml msgid "" "Returns the coordinate (subtile column and row) of the autotile variation in " "the tileset. Returns a zero vector if the cell doesn't have autotiling." msgstr "" "返回图块集中自动图块变化的坐标(子图块列和行)。如果单元格没有自动图块,则返" "回向量零。" #: doc/classes/TileMap.xml msgid "" "Returns the tile index of the cell given by a Vector2. If no tile exists in " "the cell, returns [constant INVALID_CELL]." msgstr "" "返回由 Vector2 指定的单元格的图块索引。如果单元格中没有图块,则返回 " "[constant INVALID_CELL]。" #: doc/classes/TileMap.xml msgid "Returns [code]true[/code] if the given collision layer bit is set." msgstr "如果指定碰撞层的比特位被设置,返回 [code]true[/code]。" #: doc/classes/TileMap.xml msgid "Returns [code]true[/code] if the given collision mask bit is set." msgstr "如果指定碰撞遮罩比特位被设置,返回 [code]true[/code]。" #: doc/classes/TileMap.xml msgid "" "Returns a [Vector2] array with the positions of all cells containing a tile " "from the tileset (i.e. a tile index different from [code]-1[/code])." msgstr "" "返回一个[Vector2]数组,其中包含图块集中所有单元格的位置(图块索引非[code]-1[/" "code])。" #: doc/classes/TileMap.xml msgid "" "Returns an array of all cells with the given tile index specified in " "[code]id[/code]." msgstr "返回所有具有[code]id[/code]中指定的图块索引的单元格的数组。" #: doc/classes/TileMap.xml msgid "Returns a rectangle enclosing the used (non-empty) tiles of the map." msgstr "返回一个包围着地图中已使用非空图块的矩形。" #: doc/classes/TileMap.xml msgid "" "Returns [code]true[/code] if the given cell is transposed, i.e. the X and Y " "axes are swapped." msgstr "如果指定单元格被转置,即X轴和Y轴互换,则返回 [code]true[/code]。" #: doc/classes/TileMap.xml msgid "Returns [code]true[/code] if the given cell is flipped in the X axis." msgstr "如果指定单元格在X轴上被翻转,则返回 [code]true[/code]。" #: doc/classes/TileMap.xml msgid "Returns [code]true[/code] if the given cell is flipped in the Y axis." msgstr "如果指定单元格在Y轴上被翻转,则返回 [code]true[/code]。" #: doc/classes/TileMap.xml msgid "" "Returns the local position of the top left corner of the cell corresponding " "to the given tilemap (grid-based) coordinates.\n" "To get the global position, use [method Node2D.to_global]:\n" "[codeblock]\n" "var local_position = my_tilemap.map_to_world(map_position)\n" "var global_position = my_tilemap.to_global(local_position)\n" "[/codeblock]\n" "Optionally, the tilemap's half offset can be ignored." msgstr "" "返回与指定的图块地图(基于网格)坐标相对应的单元格左上角的局部坐标。\n" "要获得全局坐标,请使用[method Node2D.to_global]。\n" "[codeblock]\n" "var local_position = my_tilemap.map_to_world(map_position)\n" "var global_position = my_tilemap.to_global(local_position)\n" "[/codeblock]\n" "可以选择忽略图块地图的半偏移。" #: doc/classes/TileMap.xml msgid "" "Sets the tile index for the given cell.\n" "An index of [code]-1[/code] clears the cell.\n" "Optionally, the tile can also be flipped, transposed, or given autotile " "coordinates. The autotile coordinate refers to the column and row of the " "subtile.\n" "[b]Note:[/b] Data such as navigation polygons and collision shapes are not " "immediately updated for performance reasons.\n" "If you need these to be immediately updated, you can call [method " "update_dirty_quadrants].\n" "Overriding this method also overrides it internally, allowing custom logic " "to be implemented when tiles are placed/removed:\n" "[codeblock]\n" "func set_cell(x, y, tile, flip_x=false, flip_y=false, transpose=false, " "autotile_coord=Vector2()):\n" " # Write your custom logic here.\n" " # To call the default method:\n" " .set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)\n" "[/codeblock]" msgstr "" "为给定的单元格设置图块索引。\n" "索引 [code]-1[/code] 会清除该单元格。\n" "也可以对图块进行翻转、转置,或者指定自动图块坐标。自动图块坐标指的是子图块的" "列和行。\n" "[b]注意:[/b]由于性能原因,导航多边形和碰撞形状等数据不会立即更新。\n" "如果需要立即更新,你可以调用 [method update_dirty_quadrants]。\n" "重写该方法会在内部重写它,允许在放置/移除图块时实现自定义逻辑。\n" "[codeblock]\n" "func set_cell(x, y, tile, flip_x=false, flip_y=false, transpose=false, " "autotile_coord=Vector2()):\n" " # 在这里写下你的自定义逻辑。 \n" " # 调用默认方法:\n" " .set_cell(x, y, tile, flip_x, flip_y, transpose, autotile_coord)\n" "[/codeblock]" #: doc/classes/TileMap.xml msgid "" "Sets the tile index for the cell given by a Vector2.\n" "An index of [code]-1[/code] clears the cell.\n" "Optionally, the tile can also be flipped, transposed, or given autotile " "coordinates. The autotile coordinate refers to the column and row of the " "subtile.\n" "[b]Note:[/b] Data such as navigation polygons and collision shapes are not " "immediately updated for performance reasons.\n" "If you need these to be immediately updated, you can call [method " "update_dirty_quadrants]." msgstr "" "为通过 Vector2 给定的单元格设置图块索引。\n" "索引 [code]-1[/code] 会清除该单元格。\n" "也可以对图块进行翻转、转置,或者指定自动图块坐标。自动图块坐标指的是子图块的" "列和行。\n" "[b]注意:[/b]由于性能原因,导航多边形和碰撞形状等数据不会立即更新。\n" "如果你需要立即更新这些数据,可以调用 [method update_dirty_quadrants]。" #: doc/classes/TileMap.xml msgid "Sets the given collision layer bit." msgstr "设置指定碰撞层bit位。" #: doc/classes/TileMap.xml msgid "Sets the given collision mask bit." msgstr "设置指定碰撞遮罩bit位。" #: doc/classes/TileMap.xml msgid "" "Applies autotiling rules to the cell (and its adjacent cells) referenced by " "its grid-based X and Y coordinates." msgstr "对基于网格的X和Y坐标所引用的单元格,及其相邻单元格,应用自动平移规则。" #: doc/classes/TileMap.xml msgid "" "Applies autotiling rules to the cells in the given region (specified by grid-" "based X and Y coordinates).\n" "Calling with invalid (or missing) parameters applies autotiling rules for " "the entire tilemap." msgstr "" "对指定区域内的单元格应用自动平移规则,由基于网格的X和Y坐标指定。\n" "用无效的或缺失的参数调用时,自动平铺规则应用于整个图块地图。" #: doc/classes/TileMap.xml msgid "" "Updates the tile map's quadrants, allowing things such as navigation and " "collision shapes to be immediately used if modified." msgstr "更新图块地图的象限,允许如导航和碰撞形状等内容,在修改后立即使用。" #: doc/classes/TileMap.xml msgid "" "Returns the tilemap (grid-based) coordinates corresponding to the given " "local position.\n" "To use this with a global position, first determine the local position with " "[method Node2D.to_local]:\n" "[codeblock]\n" "var local_position = my_tilemap.to_local(global_position)\n" "var map_position = my_tilemap.world_to_map(local_position)\n" "[/codeblock]" msgstr "" "返回与指定的局部坐标相对应的图块地图坐标,基于网格。\n" "要使用这个全局坐标,首先要用[method Node2D.to_local]确定局部坐标。\n" "[codeblock]\n" "var local_position = my_tilemap.to_local(global_position)\n" "var map_position = my_tilemap.world_to_map(local_position)\n" "[/codeblock]" #: doc/classes/TileMap.xml msgid "If [code]true[/code], the cell's UVs will be clipped." msgstr "如果[code]true[/code],单元格的UV将被剪裁。" #: doc/classes/TileMap.xml msgid "The custom [Transform2D] to be applied to the TileMap's cells." msgstr "将应用到图块地图的,单元格的自定义[Transform2D]。" #: doc/classes/TileMap.xml msgid "" "Amount to offset alternating tiles. See [enum HalfOffset] for possible " "values." msgstr "依次排列的图块的偏移量。有关可能的值,参阅[enum HalfOffset]。" #: doc/classes/TileMap.xml msgid "" "The TileMap's quadrant size. Optimizes drawing by batching, using chunks of " "this size." msgstr "图块地图的象限大小。使用这个尺寸的图块,通过批处理优化绘制。" #: doc/classes/TileMap.xml msgid "The TileMap's cell size." msgstr "图块地图的单元大小。" #: doc/classes/TileMap.xml msgid "Position for tile origin. See [enum TileOrigin] for possible values." msgstr "图块原点的坐标。有关可能的值,参阅[enum TileOrigin]。" #: doc/classes/TileMap.xml msgid "" "If [code]true[/code], the TileMap's direct children will be drawn in order " "of their Y coordinate." msgstr "如果[code]true[/code],图块地图的直接子节点将按其Y坐标顺序绘制。" #: doc/classes/TileMap.xml msgid "" "If [code]true[/code], the textures will be centered in the middle of each " "tile. This is useful for certain isometric or top-down modes when textures " "are made larger or smaller than the tiles (e.g. to avoid flickering on tile " "edges). The offset is still applied, but from the center of the tile. If " "used, [member compatibility_mode] is ignored.\n" "If [code]false[/code], the texture position start in the top-left corner " "unless [member compatibility_mode] is enabled." msgstr "" "如果[code]true[/code],纹理将被集中在每个图块的中间。这对某些等距或上帝视角的" "模式很有用,当纹理被做得比图块大或小时,例如,为了避免瓷砖边缘的闪烁。偏移量" "仍被应用,但从瓦片的中心开始。如果使用,[member compatibility_mode]会被忽" "略。\n" "如果[code]false[/code],纹理坐标从左上角开始,除非[member compatibility_mode]" "被启用。" #: doc/classes/TileMap.xml msgid "" "Bounce value for static body collisions (see [code]collision_use_kinematic[/" "code])." msgstr "静态体碰撞的反弹值,参阅[code]collision_use_kinematic[/code]。" #: doc/classes/TileMap.xml msgid "" "Friction value for static body collisions (see " "[code]collision_use_kinematic[/code])." msgstr "静态体碰撞的摩擦值,参阅[code]collision_use_kinematic[/code]。" #: doc/classes/TileMap.xml msgid "" "The collision layer(s) for all colliders in the TileMap. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "图块地图中所有碰撞器的碰撞层。更多信息请参阅文档中的[url=$DOCS_URL/tutorials/" "physics/physics_introduction.html#collision-layers-and-masks]《碰撞层与掩码》" "[/url]。" #: doc/classes/TileMap.xml msgid "" "The collision mask(s) for all colliders in the TileMap. See [url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-" "masks]Collision layers and masks[/url] in the documentation for more " "information." msgstr "" "图块地图中所有碰撞器的碰撞掩码。更多信息请参阅文档中的[url=$DOCS_URL/" "tutorials/physics/physics_introduction.html#collision-layers-and-masks]《碰撞" "层与掩码》[/url]。" #: doc/classes/TileMap.xml msgid "" "If [code]true[/code], TileMap collisions will be handled as a kinematic " "body. If [code]false[/code], collisions will be handled as static body." msgstr "" "如果[code]true[/code],图块地图的碰撞将被当作运动体处理。如果[code]false[/" "code],碰撞将被当作静态体来处理。" #: doc/classes/TileMap.xml msgid "" "If [code]true[/code], this tilemap's collision shape will be added to the " "collision shape of the parent. The parent has to be a [CollisionObject2D]." msgstr "" "如果[code]true[/code],这个图块地图的碰撞形状将被添加到父级的碰撞形状中。父级" "必须是一个[CollisionObject2D]。" #: doc/classes/TileMap.xml msgid "" "If [code]true[/code], the compatibility with the tilemaps made in Godot 3.1 " "or earlier is maintained (textures move when the tile origin changes and " "rotate if the texture size is not homogeneous). This mode presents problems " "when doing [code]flip_h[/code], [code]flip_v[/code] and [code]transpose[/" "code] tile operations on non-homogeneous isometric tiles (e.g. 2:1), in " "which the texture could not coincide with the collision, thus it is not " "recommended for isometric or non-square tiles.\n" "If [code]false[/code], the textures do not move when doing [code]flip_h[/" "code], [code]flip_v[/code] operations if no offset is used, nor when " "changing the tile origin.\n" "The compatibility mode doesn't work with the [member centered_textures] " "option, because displacing textures with the [member cell_tile_origin] " "option or in irregular tiles is not relevant when centering those textures." msgstr "" "如果为 [code]true[/code],则保持与 Godot 3.1 或更早版本的图块地图的兼容性,即" "当图块原点改变时,纹理会移动,如果纹理大小不均匀,则会旋转。这种模式对非同质" "等距图块(例如 2:1)进行 [code]flip_h[/code]、[code]flip_v[/code]、" "[code]transpose[/code] 图块操作时,将出现问题,在这种情况下,纹理不能与碰撞重" "合,因此不推荐用于等距或非方形图块。\n" "如果为 [code]false[/code],则在进行 [code]flip_h[/code]、[code]flip_v[/code] " "操作时,如果不使用偏移量,纹理不会移动,在改变图块原点时也是如此。\n" "兼容性模式对 [member centered_textures] 选项不起作用,因为用 [member " "cell_tile_origin] 选项或不规则图块中的纹理进行替换时,与这些纹理的居中项没有" "关系。" #: doc/classes/TileMap.xml msgid "The TileMap orientation mode. See [enum Mode] for possible values." msgstr "图块地图的方向模式。有关可能的值,参阅[enum Mode]。" #: doc/classes/TileMap.xml msgid "" "The light mask assigned to all light occluders in the TileMap. The TileSet's " "light occluders will cast shadows only from Light2D(s) that have the same " "light mask(s)." msgstr "" "分配给图块地图中所有光遮挡器的光线遮罩。图块集的光遮挡器将只从具有相同光线遮" "挡的Light2D中投射阴影。" #: doc/classes/TileMap.xml msgid "" "If [code]true[/code], collision shapes are visible in the editor. Doesn't " "affect collision shapes visibility at runtime. To show collision shapes at " "runtime, enable [b]Visible Collision Shapes[/b] in the [b]Debug[/b] menu " "instead." msgstr "" "如果[code]true[/code],碰撞形状在编辑器中是可见的。不影响碰撞形状在运行时的可" "见性。要在运行时显示碰撞形状,请在[b]调试[/b]菜单中启用[b]可见的碰撞形状[/" "b]。" #: doc/classes/TileMap.xml msgid "The assigned [TileSet]." msgstr "指定的[TileSet]图块集。" #: doc/classes/TileMap.xml msgid "Emitted when a tilemap setting has changed." msgstr "当图块地图设置发生变化时触发。" #: doc/classes/TileMap.xml msgid "Returned when a cell doesn't exist." msgstr "当一个单元不存在时返回。" #: doc/classes/TileMap.xml msgid "Orthogonal orientation mode." msgstr "正交定向模式。" #: doc/classes/TileMap.xml msgid "Isometric orientation mode." msgstr "等距定向模式。" #: doc/classes/TileMap.xml msgid "Custom orientation mode." msgstr "自定义方向模式。" #: doc/classes/TileMap.xml msgid "Half offset on the X coordinate." msgstr "X 坐标上的半偏移。" #: doc/classes/TileMap.xml msgid "Half offset on the Y coordinate." msgstr "Y 坐标上的半偏移。" #: doc/classes/TileMap.xml msgid "Half offset disabled." msgstr "禁用半偏移。" #: doc/classes/TileMap.xml msgid "Half offset on the X coordinate (negative)." msgstr "X 坐标上的半偏移(负数)。" #: doc/classes/TileMap.xml msgid "Half offset on the Y coordinate (negative)." msgstr "Y 坐标上的半偏移(负数)。" #: doc/classes/TileMap.xml msgid "Tile origin at its top-left corner." msgstr "图块原点在其左上角。" #: doc/classes/TileMap.xml msgid "Tile origin at its center." msgstr "图块原点在其中心。" #: doc/classes/TileMap.xml msgid "Tile origin at its bottom-left corner." msgstr "图块原点在其左下角。" #: doc/classes/TileSet.xml msgid "Tile library for tilemaps." msgstr "图块地图的图块库。" #: doc/classes/TileSet.xml msgid "" "A TileSet is a library of tiles for a [TileMap]. It contains a list of " "tiles, each consisting of a sprite and optional collision shapes.\n" "Tiles are referenced by a unique integer ID." msgstr "" "图块集是 [TileMap] 的图块库。它包含一组图块,每个图块都由一个精灵和可选的碰撞" "形状组成。\n" "图块由唯一的整数 ID 引用。" #: doc/classes/TileSet.xml msgid "" "Determines when the auto-tiler should consider two different auto-tile IDs " "to be bound together.\n" "[b]Note:[/b] [code]neighbor_id[/code] will be [code]-1[/code] ([constant " "TileMap.INVALID_CELL]) when checking a tile against an empty neighbor tile." msgstr "" "确定什么时候自动图块器应该考虑将两个不同的自动图块器 ID 绑定在一起。\n" "[b]注意:[/b]当检查一个图块与一个空的相邻图块时,[code]neighbour_id[/code] 将" "是 [code]-1[/code],即 [constant TileMap.INVALID_CELL]。" #: doc/classes/TileSet.xml msgid "Clears all bitmask information of the autotile." msgstr "清除自动图块的所有位掩码信息。" #: doc/classes/TileSet.xml msgid "" "Returns the bitmask of the subtile from an autotile given its coordinates.\n" "The value is the sum of the values in [enum AutotileBindings] present in the " "subtile (e.g. a value of 5 means the bitmask has bindings in both the top " "left and top right)." msgstr "" "返回给定坐标的自动图块中的子图块的位掩码。\n" "该值是子图块中存在的 [enum AutotileBindings] 值的总和。例如,值为 5 意味着该" "位掩码在左上角和右上角都有绑定。" #: doc/classes/TileSet.xml msgid "Returns the [enum BitmaskMode] of the autotile." msgstr "返回自动图块的 [enum BitmaskMode] 位掩码模式。" #: doc/classes/TileSet.xml msgid "" "Returns the subtile that's being used as an icon in an atlas/autotile given " "its coordinates.\n" "The subtile defined as the icon will be used as a fallback when the atlas/" "autotile's bitmask information is incomplete. It will also be used to " "represent it in the TileSet editor." msgstr "" "返回在图集或自动图块中作为图标使用的子图块,并给出其坐标。\n" "在图集或自动图块的bit位掩码信息不完整时,定义为图标的子图块将用作备用。它也被" "用于在图块集编辑器中表示它。" #: doc/classes/TileSet.xml msgid "" "Returns the light occluder of the subtile from an atlas/autotile given its " "coordinates." msgstr "返回给定坐标的图集或自动图块中的子图块的光遮挡物。" #: doc/classes/TileSet.xml msgid "" "Returns the navigation polygon of the subtile from an atlas/autotile given " "its coordinates." msgstr "返回指定坐标的图集或自动图块中,子图块的导航多边形。" #: doc/classes/TileSet.xml msgid "Returns the size of the subtiles in an atlas/autotile." msgstr "返回图集或自动图块中,子图块的大小。" #: doc/classes/TileSet.xml msgid "Returns the spacing between subtiles of the atlas/autotile." msgstr "返回图集或自动图块的子图块之间的间距。" #: doc/classes/TileSet.xml msgid "" "Returns the priority of the subtile from an autotile given its coordinates.\n" "When more than one subtile has the same bitmask value, one of them will be " "picked randomly for drawing. Its priority will define how often it will be " "picked." msgstr "" "返回指定坐标自动图块中的子图层的优先级。\n" "当一个以上的子图块具有相同的位掩码值时,期中一个将被随机挑选出来,进行绘制。" "它的优先级将决定被选中的频率。" #: doc/classes/TileSet.xml msgid "" "Returns the drawing index of the subtile from an atlas/autotile given its " "coordinates." msgstr "返回指定坐标的图集或自动图块中,子图块的绘制索引。" #: doc/classes/TileSet.xml msgid "" "Sets the bitmask of the subtile from an autotile given its coordinates.\n" "The value is the sum of the values in [enum AutotileBindings] present in the " "subtile (e.g. a value of 5 means the bitmask has bindings in both the top " "left and top right)." msgstr "" "设置给定自动图块的子图块的位掩码,指定其坐标。\n" "这个值是子图块中 [enum AutotileBindings] 的值的总和。例如,值为 5 意味着位掩" "码在左上方和右上方都有绑定。" #: doc/classes/TileSet.xml msgid "Sets the [enum BitmaskMode] of the autotile." msgstr "设置自动图块的[enum BitmaskMode]位掩码模式。" #: doc/classes/TileSet.xml msgid "" "Sets the subtile that will be used as an icon in an atlas/autotile given its " "coordinates.\n" "The subtile defined as the icon will be used as a fallback when the atlas/" "autotile's bitmask information is incomplete. It will also be used to " "represent it in the TileSet editor." msgstr "" "设置在图集或自动图块中作为图标的子图层,并指定其坐标。\n" "定义为图标的子图块,将在图集或自动图块的位掩码信息不完整时,被用作备用。它也" "被用来在图块集编辑器中表示它。" #: doc/classes/TileSet.xml msgid "" "Sets the light occluder of the subtile from an atlas/autotile given its " "coordinates." msgstr "设置来自图集或自动图块的子图块的光遮挡器,指定其坐标。" #: doc/classes/TileSet.xml msgid "" "Sets the navigation polygon of the subtile from an atlas/autotile given its " "coordinates." msgstr "设置来自图集或自动图块的子图块的导航多边形,指定其坐标。" #: doc/classes/TileSet.xml msgid "Sets the size of the subtiles in an atlas/autotile." msgstr "设置图集或自动图块中子图块的大小。" #: doc/classes/TileSet.xml msgid "Sets the spacing between subtiles of the atlas/autotile." msgstr "设置图集或自动图块的子图块之间的间距。" #: doc/classes/TileSet.xml msgid "" "Sets the priority of the subtile from an autotile given its coordinates.\n" "When more than one subtile has the same bitmask value, one of them will be " "picked randomly for drawing. Its priority will define how often it will be " "picked." msgstr "" "设置一个自带坐标的子图块的优先级。\n" "当多个子图块有相同的位掩码值时,其中之一将被随机挑选出来进行绘制。它的优先级" "决定被选中的频率。" #: doc/classes/TileSet.xml msgid "" "Sets the drawing index of the subtile from an atlas/autotile given its " "coordinates." msgstr "设置一个图集或自动图块中的子图块的绘制索引,指定其坐标。" #: doc/classes/TileSet.xml msgid "Clears all tiles." msgstr "清除所有图块。" #: doc/classes/TileSet.xml msgid "Creates a new tile with the given ID." msgstr "用给定的 ID 创建一个新的图块。" #: doc/classes/TileSet.xml msgid "Returns the first tile matching the given name." msgstr "返回与给定名称相匹配的第一个图块。" #: doc/classes/TileSet.xml msgid "" "Returns the ID following the last currently used ID, useful when creating a " "new tile." msgstr "返回当前使用的最后一个 ID 之后的 ID,在创建新图块时很有用。" #: doc/classes/TileSet.xml msgid "Returns an array of all currently used tile IDs." msgstr "返回当前使用的所有图块 ID 的数组。" #: doc/classes/TileSet.xml msgid "Removes the given tile ID." msgstr "移除给定的图块 ID。" #: doc/classes/TileSet.xml msgid "Adds a shape to the tile." msgstr "在图块上添加一个形状。" #: doc/classes/TileSet.xml msgid "Returns the tile's light occluder." msgstr "返回该图块的光遮挡器。" #: doc/classes/TileSet.xml msgid "Returns the tile's material." msgstr "返回图块的材质。" #: doc/classes/TileSet.xml msgid "Returns the tile's modulation color." msgstr "返回图块的调制颜色。" #: doc/classes/TileSet.xml msgid "Returns the tile's name." msgstr "返回图块的名称。" #: doc/classes/TileSet.xml msgid "Returns the navigation polygon of the tile." msgstr "返回图块的导航多边形。" #: doc/classes/TileSet.xml msgid "Returns the offset of the tile's navigation polygon." msgstr "返回图块的导航多边形的偏移量。" #: doc/classes/TileSet.xml msgid "Returns the tile's normal map texture." msgstr "返回图块的法线贴图纹理。" #: doc/classes/TileSet.xml msgid "Returns the offset of the tile's light occluder." msgstr "返回图块的光遮挡器的偏移量。" #: doc/classes/TileSet.xml msgid "Returns the tile sub-region in the texture." msgstr "返回纹理中图块的子区域。" #: doc/classes/TileSet.xml msgid "Returns a tile's given shape." msgstr "返回图块的指定形状。" #: doc/classes/TileSet.xml msgid "Returns the number of shapes assigned to a tile." msgstr "返回分配给图块的形状数量。" #: doc/classes/TileSet.xml msgid "Returns the offset of a tile's shape." msgstr "返回图块形状的偏移量。" #: doc/classes/TileSet.xml msgid "Returns the one-way collision value of a tile's shape." msgstr "返回图块形状的单向碰撞值。" #: doc/classes/TileSet.xml msgid "Returns the [Transform2D] of a tile's shape." msgstr "返回图块形状的[Transform2D]。" #: doc/classes/TileSet.xml msgid "" "Returns an array of dictionaries describing the tile's shapes.\n" "[b]Dictionary structure in the array returned by this method:[/b]\n" "[codeblock]\n" "{\n" " \"autotile_coord\": Vector2,\n" " \"one_way\": bool,\n" " \"one_way_margin\": int,\n" " \"shape\": CollisionShape2D,\n" " \"shape_transform\": Transform2D,\n" "}\n" "[/codeblock]" msgstr "" "返回描述图块形状的字典数组。\n" "[b]此方法返回数组中的字典结构:[/b]\n" "[codeblock]\n" "{\n" " \"autotile_coord\": Vector2,\n" " \"one_way\": bool,\n" " \"one_way_margin\": int,\n" " \"shape\": CollisionShape2D,\n" " \"shape_transform\": Transform2D,\n" "}\n" "[/codeblock]" #: doc/classes/TileSet.xml msgid "Returns the tile's texture." msgstr "返回图块的纹理。" #: doc/classes/TileSet.xml msgid "Returns the texture offset of the tile." msgstr "返回图块的纹理偏移量。" #: doc/classes/TileSet.xml msgid "Returns the tile's [enum TileMode]." msgstr "返回图块的[enum TileMode]。" #: doc/classes/TileSet.xml msgid "Returns the tile's Z index (drawing layer)." msgstr "返回图块的Z索引,即绘制层。" #: doc/classes/TileSet.xml msgid "Sets a light occluder for the tile." msgstr "为图块设置光遮挡器。" #: doc/classes/TileSet.xml msgid "Sets the tile's material." msgstr "设置图块的材质。" #: doc/classes/TileSet.xml msgid "" "Sets the tile's modulation color.\n" "[b]Note:[/b] Modulation is performed by setting the tile's vertex color. To " "access this in a shader, use [code]COLOR[/code] rather than [code]MODULATE[/" "code] (which instead accesses the [TileMap]'s [member CanvasItem.modulate] " "property)." msgstr "" "设置该图块的调制颜色。\n" "[b]注意:[/b]调制是通过设置该图块的顶点颜色实现的。要在着色器中访问,请使用 " "[code]COLOR[/code] 而不是 [code]MODULATE[/code](访问的是 [TileMap] 的 " "[member CanvasItem.modulate] 属性)。" #: doc/classes/TileSet.xml msgid "Sets the tile's name." msgstr "设置图块的名称。" #: doc/classes/TileSet.xml msgid "Sets the tile's navigation polygon." msgstr "设置图块的导航多边形。" #: doc/classes/TileSet.xml msgid "Sets an offset for the tile's navigation polygon." msgstr "为图块的导航多边形设置一个偏移。" #: doc/classes/TileSet.xml msgid "" "Sets the tile's normal map texture.\n" "[b]Note:[/b] Godot expects the normal map to use X+, Y-, and Z+ coordinates. " "See [url=http://wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]this page[/url] for " "a comparison of normal map coordinates expected by popular engines." msgstr "" "设置图块的法线贴图纹理。\n" "[b]注意:[/b]Godot 希望法线贴图使用 X+、Y- 和 Z+ 坐标。请参阅[url=http://" "wiki.polycount.com/wiki/" "Normal_Map_Technical_Details#Common_Swizzle_Coordinates]本页面[/url],了解和" "比较流行引擎所期望的法线贴图坐标。" #: doc/classes/TileSet.xml msgid "Sets an offset for the tile's light occluder." msgstr "为图块的光遮挡器设置一个偏移量。" #: doc/classes/TileSet.xml msgid "" "Sets the tile's sub-region in the texture. This is common in texture atlases." msgstr "设置图块在纹理中的子区域。这在纹理图集中很常见。" #: doc/classes/TileSet.xml msgid "Sets a shape for the tile, enabling collision." msgstr "为图块设置形状,实现碰撞。" #: doc/classes/TileSet.xml msgid "Sets the offset of a tile's shape." msgstr "设置图块形状的偏移量。" #: doc/classes/TileSet.xml msgid "Enables one-way collision on a tile's shape." msgstr "启用图块形状上的单向碰撞。" #: doc/classes/TileSet.xml msgid "Sets a [Transform2D] on a tile's shape." msgstr "在图块的形状上设置[Transform2D]。" #: doc/classes/TileSet.xml msgid "Sets an array of shapes for the tile, enabling collision." msgstr "为图块设置一个形状数组,实现碰撞。" #: doc/classes/TileSet.xml msgid "Sets the tile's texture." msgstr "设置图块的纹理。" #: doc/classes/TileSet.xml msgid "Sets the tile's texture offset." msgstr "设置图块的纹理偏移。" #: doc/classes/TileSet.xml msgid "Sets the tile's [enum TileMode]." msgstr "设置图块的[enum TileMode]。" #: doc/classes/TileSet.xml msgid "Sets the tile's drawing index." msgstr "设置图块的绘制索引。" #: doc/classes/Time.xml msgid "Time singleton for working with time." msgstr "用于处理时间的 Time 单例。" #: doc/classes/Time.xml msgid "" "The Time singleton allows converting time between various formats and also " "getting time information from the system.\n" "This class conforms with as many of the ISO 8601 standards as possible. All " "dates follow the Proleptic Gregorian calendar. As such, the day before " "[code]1582-10-15[/code] is [code]1582-10-14[/code], not [code]1582-10-04[/" "code]. The year before 1 AD (aka 1 BC) is number [code]0[/code], with the " "year before that (2 BC) being [code]-1[/code], etc.\n" "Conversion methods assume \"the same timezone\", and do not handle timezone " "conversions or DST automatically. Leap seconds are also not handled, they " "must be done manually if desired. Suffixes such as \"Z\" are not handled, " "you need to strip them away manually.\n" "When getting time information from the system, the time can either be in the " "local timezone or UTC depending on the [code]utc[/code] parameter. However, " "the [method get_unix_time_from_system] method always returns the time in " "UTC.\n" "[b]Important:[/b] The [code]_from_system[/code] methods use the system clock " "that the user can manually set. [b]Never use[/b] this method for precise " "time calculation since its results are subject to automatic adjustments by " "the user or the operating system. [b]Always use[/b] [method get_ticks_usec] " "or [method get_ticks_msec] for precise time calculation instead, since they " "are guaranteed to be monotonic (i.e. never decrease)." msgstr "" "Time 单例可以转换各种不同格式的时间,也可以从系统获取时间信息。\n" "这个类尽可能多地符合了 ISO 8601 标准。所有日期都遵循“外推格里历”。因此 " "[code]1582-10-15[/code] 的前一天是 [code]1582-10-14[/code],而不是 " "[code]1582-10-04[/code]。公元 1 年的前一年(即公元前 1 年)是数字 [code]0[/" "code],再往前的一年(公元前 2 年)是 [code]-1[/code],以此类推。\n" "转换方法假设“时区相同”,不会自动处理时区或 DST(夏令时)的转换。不会对闰秒进" "行处理,如果需要必须手动处理。“Z”等后缀也没有处理,你需要进行手动剥除。\n" "从系统获取时间信息时,时间可能是本地时间或 UTC 时间,取决于 [code]utc[/code] " "参数。不过 [method get_unix_time_from_system] 方法返回的始终是 UTC 时间。\n" "[b]重要:[/b][code]_from_system[/code] 系列方法使用的是系统始终,用户可以自行" "设置。[b]千万不要[/b]使用该方法进行精确的时间计算,因为计算结果可能受到用户或" "操作系统的自动调整的影响。精确时间的计算[b]请始终使用[/b] [method " "get_ticks_usec] 或 [method get_ticks_msec],可以保证单调性(即不会变小)。" #: doc/classes/Time.xml msgid "" "Returns the current date as a dictionary of keys: [code]year[/code], " "[code]month[/code], [code]day[/code], [code]weekday[/code], and [code]dst[/" "code] (Daylight Savings Time).\n" "The returned values are in the system's local time when [code]utc[/code] is " "false, otherwise they are in UTC." msgstr "" "以字典形式返回当前日期,包含的键为:[code]year[/code]、[code]month[/code]、" "[code]day[/code]、[code]weekday[/code]、[code]dst[/code](夏令时)。\n" "[code]utc[/code] 为假时,返回的是系统的本地时间,否则为 UTC 时间。" #: doc/classes/Time.xml msgid "" "Converts the given Unix timestamp to a dictionary of keys: [code]year[/" "code], [code]month[/code], [code]day[/code], and [code]weekday[/code]." msgstr "" "将给定的 Unix 时间戳转换为字典,包含的键为:[code]year[/code]、[code]month[/" "code]、[code]day[/code]、[code]weekday[/code]。" #: doc/classes/Time.xml msgid "" "Returns the current date as an ISO 8601 date string (YYYY-MM-DD).\n" "The returned values are in the system's local time when [code]utc[/code] is " "false, otherwise they are in UTC." msgstr "" "以 ISO 8601 日期字符串的形式返回当前日期(YYYY-MM-DD)。\n" "[code]utc[/code] 为假时,返回的是系统的本地时间,否则为 UTC 时间。" #: doc/classes/Time.xml msgid "" "Converts the given Unix timestamp to an ISO 8601 date string (YYYY-MM-DD)." msgstr "将给定的 Unix 时间戳转换为 ISO 8601 日期字符串(YYYY-MM-DD)。" #: doc/classes/Time.xml msgid "" "Converts the given ISO 8601 date and time string (YYYY-MM-DDTHH:MM:SS) to a " "dictionary of keys: [code]year[/code], [code]month[/code], [code]day[/code], " "[code]weekday[/code], [code]hour[/code], [code]minute[/code], and " "[code]second[/code].\n" "If [code]weekday[/code] is false, then the [code]weekday[/code] entry is " "excluded (the calculation is relatively expensive).\n" "[b]Note:[/b] Any decimal fraction in the time string will be ignored " "silently." msgstr "" "将给定的 ISO 8601 日期和时间字符串(YYYY-MM-DDTHH:MM:SS)转换为字典,包含的键" "为:[code]year[/code]、[code]month[/code]、[code]day[/code]、[code]weekday[/" "code]、[code]hour[/code]、[code]minute[/code]、[code]second[/code]。\n" "[code]weekday[/code] 为假时,不包含 [code]weekday[/code] 记录(计算花费相对较" "大)。\n" "[b]注意:[/b]时间字符串中的小数会被静默忽略。" #: doc/classes/Time.xml msgid "" "Returns the current date as a dictionary of keys: [code]year[/code], " "[code]month[/code], [code]day[/code], [code]weekday[/code], [code]hour[/" "code], [code]minute[/code], and [code]second[/code]." msgstr "" "以字典形式返回当前日期,包含的键为:[code]year[/code]、[code]month[/code]、" "[code]day[/code]、[code]weekday[/code]、[code]hour[/code]、[code]minute[/" "code]、[code]second[/code]。" #: doc/classes/Time.xml msgid "" "Converts the given Unix timestamp to a dictionary of keys: [code]year[/" "code], [code]month[/code], [code]day[/code], and [code]weekday[/code].\n" "The returned Dictionary's values will be the same as the [method " "get_datetime_dict_from_system] if the Unix timestamp is the current time, " "with the exception of Daylight Savings Time as it cannot be determined from " "the epoch." msgstr "" "将给定的 Unix 时间戳转换为字典,包含的键为: [code]year[/code]、[code]month[/" "code]、[code]day[/code]、[code]weekday[/code]。\n" "如果 Unix 时间戳为当前时间,返回的 Dictionary 的值与 [method " "get_datetime_dict_from_system] 相同,区别是无法根据纪元推定夏令时。" #: doc/classes/Time.xml msgid "" "Converts the given dictionary of keys to an ISO 8601 date and time string " "(YYYY-MM-DDTHH:MM:SS).\n" "The given dictionary can be populated with the following keys: [code]year[/" "code], [code]month[/code], [code]day[/code], [code]hour[/code], " "[code]minute[/code], and [code]second[/code]. Any other entries (including " "[code]dst[/code]) are ignored.\n" "If the dictionary is empty, [code]0[/code] is returned. If some keys are " "omitted, they default to the equivalent values for the Unix epoch timestamp " "0 (1970-01-01 at 00:00:00).\n" "If [code]use_space[/code] is true, use a space instead of the letter T in " "the middle." msgstr "" "将给定的时间值字典转换为 ISO 8601 日期和时间字符串(YYYY-MM-DDTHH:MM:SS)。\n" "给定的字典可以包含以下键: [code]year[/code]、[code]month[/code]、[code]day[/" "code]、[code]hour[/code]、[code]minute[/code]、[code]second[/code]。其他的记" "录(包括 [code]dst[/code])都会被忽略。\n" "字典为空时将返回 [code]0[/code]。如果省略了部分键,默认使用 Unix 纪元时间戳 0" "(1970-01-01 的 00:00:00)的对应部分。\n" "[code]use_space[/code] 为真时,将使用空格代替中间的字母 T。" #: doc/classes/Time.xml msgid "" "Returns the current date and time as an ISO 8601 date and time string (YYYY-" "MM-DDTHH:MM:SS).\n" "The returned values are in the system's local time when [code]utc[/code] is " "false, otherwise they are in UTC.\n" "If [code]use_space[/code] is true, use a space instead of the letter T in " "the middle." msgstr "" "以 ISO 8601 日期和时间字符串的形式返回当前日期和时间(YYYY-MM-DDTHH:MM:" "SS)。\n" "[code]utc[/code] 为假时,返回的是系统的本地时间,否则为 UTC 时间。\n" "[code]use_space[/code] 为真时,将使用空格代替中间的字母 T。" #: doc/classes/Time.xml msgid "" "Converts the given Unix timestamp to an ISO 8601 date and time string (YYYY-" "MM-DDTHH:MM:SS).\n" "If [code]use_space[/code] is true, use a space instead of the letter T in " "the middle." msgstr "" "将给定的 Unix 时间戳转换为 ISO 8601 日期和时间字符串(YYYY-MM-DDTHH:MM:" "SS)。\n" "[code]use_space[/code] 为真时,将使用空格代替中间的字母 T。" #: doc/classes/Time.xml msgid "" "Converts the given timezone offset in minutes to a timezone offset string. " "For example, -480 returns \"-08:00\", 345 returns \"+05:45\", and 0 returns " "\"+00:00\"." msgstr "" "将给定的时区偏移分钟数转换为时区偏移字符串。例如,-480 返回 \"-08:00\"、345 " "返回 \"+05:45\"、0 返回 \"+00:00\"。" #: doc/classes/Time.xml msgid "" "Returns the amount of time passed in milliseconds since the engine started.\n" "Will always be positive or 0 and uses a 64-bit value (it will wrap after " "roughly 500 million years)." msgstr "" "返回从引擎启动开始所经过的时间,单位为毫秒。\n" "始终为正数或 0,使用 64 位值(会在约 5 亿年后绕回)。" #: doc/classes/Time.xml msgid "" "Returns the amount of time passed in microseconds since the engine started.\n" "Will always be positive or 0 and uses a 64-bit value (it will wrap after " "roughly half a million years)." msgstr "" "返回从引擎启动开始所经过的时间,单位为微秒。\n" "始终为正数或 0,使用 64 位值(会在约 50 万年后绕回)。" #: doc/classes/Time.xml msgid "" "Returns the current time as a dictionary of keys: [code]hour[/code], " "[code]minute[/code], and [code]second[/code].\n" "The returned values are in the system's local time when [code]utc[/code] is " "false, otherwise they are in UTC." msgstr "" "以字典的形式返回当前时间,包含的键为:[code]hour[/code]、[code]minute[/" "code]、[code]second[/code]。\n" "[code]utc[/code] 为假时,返回的是系统的本地时间,否则为 UTC 时间。" #: doc/classes/Time.xml msgid "" "Converts the given time to a dictionary of keys: [code]hour[/code], " "[code]minute[/code], and [code]second[/code]." msgstr "" "将给定的时间转换为字典,包含的键为:时 [code]hour[/code]、分 [code]minute[/" "code]、秒 [code]second[/code]。" #: doc/classes/Time.xml msgid "" "Returns the current time as an ISO 8601 time string (HH:MM:SS).\n" "The returned values are in the system's local time when [code]utc[/code] is " "false, otherwise they are in UTC." msgstr "" "以 ISO 8601 时间字符串的形式返回当前时间(HH:MM:SS)。\n" "[code]utc[/code] 为假时,返回的是系统的本地时间,否则为 UTC 时间。" #: doc/classes/Time.xml msgid "" "Converts the given Unix timestamp to an ISO 8601 time string (HH:MM:SS)." msgstr "将给定的 Unix 时间戳转换为 ISO 8601 时间字符串(HH:MM:SS)。" #: doc/classes/Time.xml msgid "" "Returns the current time zone as a dictionary of keys: [code]bias[/code] and " "[code]name[/code]. The [code]bias[/code] value is the offset from UTC in " "minutes, since not all time zones are multiples of an hour from UTC." msgstr "" "以字典的形式返回当前时区,包含的键为:[code]bias[/code](偏倚)和 " "[code]name[/code](名称)。[code]bias[/code] 的值是从 UTC 的偏移量,单位为" "分,因为并不是所有时区与 UTC 的时间差都是整数倍小时。" #: doc/classes/Time.xml msgid "" "Converts a dictionary of time values to a Unix timestamp.\n" "The given dictionary can be populated with the following keys: [code]year[/" "code], [code]month[/code], [code]day[/code], [code]hour[/code], " "[code]minute[/code], and [code]second[/code]. Any other entries (including " "[code]dst[/code]) are ignored.\n" "If the dictionary is empty, [code]0[/code] is returned. If some keys are " "omitted, they default to the equivalent values for the Unix epoch timestamp " "0 (1970-01-01 at 00:00:00).\n" "You can pass the output from [method get_datetime_dict_from_unix_time] " "directly into this function and get the same as what was put in.\n" "[b]Note:[/b] Unix timestamps are often in UTC. This method does not do any " "timezone conversion, so the timestamp will be in the same timezone as the " "given datetime dictionary." msgstr "" "将时间值字典转换为 Unix 时间戳。\n" "给定的字典可以包含以下键: [code]year[/code]、[code]month[/code]、[code]day[/" "code]、[code]hour[/code]、[code]minute[/code]、[code]second[/code]。其他的记" "录(包括 [code]dst[/code])都会被忽略。\n" "字典为空时将返回 [code]0[/code]。如果省略了部分键,默认使用 Unix 纪元时间戳 0" "(1970-01-01 的 00:00:00)的对应部分。\n" "你可以将 [method get_datetime_dict_from_unix_time] 的输出直接传给本函数,得到" "的就是最初的输入。\n" "[b]注意:[/b]Unix 时间戳通常是 UTC 的。本方法不会做任何时区转换,所以时间戳的" "时区与给定的日期时间字典相同。" #: doc/classes/Time.xml msgid "" "Converts the given ISO 8601 date and/or time string to a Unix timestamp. The " "string can contain a date only, a time only, or both.\n" "[b]Note:[/b] Unix timestamps are often in UTC. This method does not do any " "timezone conversion, so the timestamp will be in the same timezone as the " "given datetime string.\n" "[b]Note:[/b] Any decimal fraction in the time string will be ignored " "silently." msgstr "" "将给定的 ISO 8601 日期和/或时间字符串转换为 Unix 时间戳。字符串中可以只包含日" "期、只包含时间,也可以两者都包含。\n" "[b]注意:[/b]Unix 时间戳通常是 UTC 的。本方法不会做任何时区转换,所以时间戳的" "时区与给定的日期时间字符串相同。\n" "[b]注意:[/b]时间字符串中的小数会被静默忽略。" #: doc/classes/Time.xml msgid "" "Returns the current Unix timestamp in seconds based on the system time in " "UTC. This method is implemented by the operating system and always returns " "the time in UTC.\n" "[b]Note:[/b] Unlike other methods that use integer timestamps, this method " "returns the timestamp as a [float] for sub-second precision." msgstr "" "返回当前的 Unix 时间戳,以秒为单位,基于 UTC 系统时间。本方法由操作系统实现," "返回的时间总是 UTC 的。\n" "[b]注意:[/b]与其他使用整数时间戳的方法不同,这个方法返回的是 [float] 类型的" "时间戳,可以表示比秒更高的精度。" #: doc/classes/Time.xml msgid "The month of January, represented numerically as [code]01[/code]." msgstr "一月份,使用数字 [code]01[/code] 表示。" #: doc/classes/Time.xml msgid "The month of February, represented numerically as [code]02[/code]." msgstr "二月份,使用数字 [code]02[/code] 表示。" #: doc/classes/Time.xml msgid "The month of March, represented numerically as [code]03[/code]." msgstr "三月份,使用数字 [code]03[/code] 表示。" #: doc/classes/Time.xml msgid "The month of April, represented numerically as [code]04[/code]." msgstr "四月份,使用数字 [code]04[/code] 表示。" #: doc/classes/Time.xml msgid "The month of May, represented numerically as [code]05[/code]." msgstr "五月份,使用数字 [code]05[/code] 表示。" #: doc/classes/Time.xml msgid "The month of June, represented numerically as [code]06[/code]." msgstr "六月份,使用数字 [code]06[/code] 表示。" #: doc/classes/Time.xml msgid "The month of July, represented numerically as [code]07[/code]." msgstr "七月份,使用数字 [code]07[/code] 表示。" #: doc/classes/Time.xml msgid "The month of August, represented numerically as [code]08[/code]." msgstr "八月份,使用数字 [code]08[/code] 表示。" #: doc/classes/Time.xml msgid "The month of September, represented numerically as [code]09[/code]." msgstr "九月份,使用数字 [code]09[/code] 表示。" #: doc/classes/Time.xml msgid "The month of October, represented numerically as [code]10[/code]." msgstr "十月份,使用数字 [code]10[/code] 表示。" #: doc/classes/Time.xml msgid "The month of November, represented numerically as [code]11[/code]." msgstr "十一月份,使用数字 [code]11[/code] 表示。" #: doc/classes/Time.xml msgid "The month of December, represented numerically as [code]12[/code]." msgstr "十二月份,使用数字 [code]12[/code] 表示。" #: doc/classes/Time.xml msgid "The day of the week Sunday, represented numerically as [code]0[/code]." msgstr "星期日,使用数字 [code]0[/code] 表示。" #: doc/classes/Time.xml msgid "The day of the week Monday, represented numerically as [code]1[/code]." msgstr "星期一,使用数字 [code]1[/code] 表示。" #: doc/classes/Time.xml msgid "The day of the week Tuesday, represented numerically as [code]2[/code]." msgstr "星期二,使用数字 [code]2[/code] 表示。" #: doc/classes/Time.xml msgid "" "The day of the week Wednesday, represented numerically as [code]3[/code]." msgstr "星期三,使用数字 [code]3[/code] 表示。" #: doc/classes/Time.xml msgid "" "The day of the week Thursday, represented numerically as [code]4[/code]." msgstr "星期四,使用数字 [code]4[/code] 表示。" #: doc/classes/Time.xml msgid "The day of the week Friday, represented numerically as [code]5[/code]." msgstr "星期五,使用数字 [code]5[/code] 表示。" #: doc/classes/Time.xml msgid "" "The day of the week Saturday, represented numerically as [code]6[/code]." msgstr "星期六,使用数字 [code]6[/code] 表示。" #: doc/classes/Timer.xml msgid "A countdown timer." msgstr "倒数计时器。" #: doc/classes/Timer.xml msgid "" "Counts down a specified interval and emits a signal on reaching 0. Can be " "set to repeat or \"one-shot\" mode.\n" "[b]Note:[/b] To create a one-shot timer without instantiating a node, use " "[method SceneTree.create_timer]." msgstr "" "可以设置为重复或“一次性”模式。\n" "[b]注意:[/b]要创建一次性定时器而不需要实例化一个节点,请使用 [method " "SceneTree.create_timer]。" #: doc/classes/Timer.xml msgid "Returns [code]true[/code] if the timer is stopped." msgstr "如果定时器被停止,返回 [code]true[/code]。" #: doc/classes/Timer.xml msgid "" "Starts the timer. Sets [code]wait_time[/code] to [code]time_sec[/code] if " "[code]time_sec > 0[/code]. This also resets the remaining time to " "[code]wait_time[/code].\n" "[b]Note:[/b] This method will not resume a paused timer. See [member paused]." msgstr "" "启动定时器。如果[code]time_sec>0[/code],将[code]wait_time[/code]设置为" "[code]time_sec[/code]。这也会将剩余时间重置为[code]wait_time[/code]。\n" "[b]注意:[/b]这个方法不会恢复一个暂停的定时器。参阅 [member paused]。" #: doc/classes/Timer.xml msgid "Stops the timer." msgstr "停止定时器。" #: doc/classes/Timer.xml msgid "" "If [code]true[/code], the timer will automatically start when entering the " "scene tree.\n" "[b]Note:[/b] This property is automatically set to [code]false[/code] after " "the timer enters the scene tree and starts." msgstr "" "如果[code]true[/code],定时器将在进入场景树时自动启动。\n" "[b]注意:[/b]在定时器进入场景树并启动后,该属性会自动设置为 [code]false[/" "code]。" #: doc/classes/Timer.xml msgid "" "If [code]true[/code], the timer will stop when reaching 0. If [code]false[/" "code], it will restart." msgstr "" "如果[code]true[/code],定时器将在达到0时停止。 如果[code]false[/code],它将重" "新启动。" #: doc/classes/Timer.xml msgid "" "If [code]true[/code], the timer is paused and will not process until it is " "unpaused again, even if [method start] is called." msgstr "" "如果[code]true[/code],定时器会被暂停,并且不再处理,即使调用[method start]," "直到它被取消暂停。" #: doc/classes/Timer.xml msgid "Processing mode. See [enum TimerProcessMode]." msgstr "处理模式。参阅[enum TimerProcessMode]。" #: doc/classes/Timer.xml msgid "" "The timer's remaining time in seconds. Returns 0 if the timer is inactive.\n" "[b]Note:[/b] You cannot set this value. To change the timer's remaining " "time, use [method start]." msgstr "" "定时器的剩余时间,单位是秒。如果定时器处于非激活状态,则返回0。\n" "[b]注意:[/b]你不能设置这个值。要改变定时器的剩余时间,请使用[method start]。" #: doc/classes/Timer.xml msgid "" "The wait time in seconds.\n" "[b]Note:[/b] Timers can only emit once per rendered frame at most (or once " "per physics frame if [member process_mode] is [constant " "TIMER_PROCESS_PHYSICS]). This means very low wait times (lower than 0.05 " "seconds) will behave in significantly different ways depending on the " "rendered framerate. For very low wait times, it is recommended to use a " "process loop in a script instead of using a Timer node." msgstr "" "等待的秒数。\n" "[b]注意:[/b]计时器在一个渲染帧中最多只能触发一次(如果 [member " "process_mode] 为 [constant TIMER_PROCESS_PHYSICS],则是在一个物理帧中最多一" "次)。也就是说,非常低的等待时间(小于 0.05 秒)会根据渲染帧率的不同而产生不" "同的行为。如果等待时间非常小,建议在脚本中使用 process 循环,不要用 Timer 节" "点。" #: doc/classes/Timer.xml msgid "" "Update the timer during the physics step at each frame (fixed framerate " "processing)." msgstr "在每一帧的物理运算步骤中更新定时器,即固定帧率处理。" #: doc/classes/Timer.xml msgid "Update the timer during the idle time at each frame." msgstr "在每一帧空闲时间内更新定时器。" #: doc/classes/ToolButton.xml msgid "Flat button helper class." msgstr "扁平化按钮辅助类。" #: doc/classes/ToolButton.xml msgid "" "This is a helper class to generate a flat [Button] (see [member Button." "flat]), creating a [ToolButton] is equivalent to:\n" "[codeblock]\n" "var btn = Button.new()\n" "btn.flat = true\n" "[/codeblock]" msgstr "" "这是一个辅助类,用于生成一个扁平的[Button],参阅 [member Button.flat],创建一" "个[ToolButton]就相当于:\n" "[codeblock]\n" "var btn = Button.new()\n" "btn.flat = true\n" "[/codeblock]" #: doc/classes/ToolButton.xml msgid "Default text [Color] of the [ToolButton]." msgstr "[ToolButton] 的默认文本 [Color]颜色。" #: doc/classes/ToolButton.xml msgid "Text [Color] used when the [ToolButton] is disabled." msgstr "禁用 [ToolButton] 时使用的文本 [Color]颜色。" #: doc/classes/ToolButton.xml msgid "" "Text [Color] used when the [ToolButton] is focused. Only replaces the normal " "text color of the button. Disabled, hovered, and pressed states take " "precedence over this color." msgstr "" "聚焦 [ToolButton] 时所使用的文本 [Color] 颜色。仅替换正常文字颜色。禁用、悬" "停、以及按下状态的优先级比该颜色高。" #: doc/classes/ToolButton.xml msgid "Text [Color] used when the [ToolButton] is being hovered." msgstr "[ToolButton] 悬停时使用的文本 [Color]颜色。" #: doc/classes/ToolButton.xml msgid "Text [Color] used when the [ToolButton] is being pressed." msgstr "按下 [ToolButton] 时使用的文本 [Color]颜色。" #: doc/classes/ToolButton.xml msgid "The horizontal space between [ToolButton]'s icon and text." msgstr "[ToolButton] 的图标和文本之间的水平间距。" #: doc/classes/ToolButton.xml msgid "[Font] of the [ToolButton]'s text." msgstr "[ToolButton]的文本的[Font]字体。" #: doc/classes/ToolButton.xml msgid "[StyleBox] used when the [ToolButton] is disabled." msgstr "当[ToolButton]被禁用时使用的[StyleBox]。" #: doc/classes/ToolButton.xml msgid "" "[StyleBox] used when the [ToolButton] is focused. It is displayed over the " "current [StyleBox], so using [StyleBoxEmpty] will just disable the focus " "visual effect." msgstr "" "当 [ToolButton] 获得焦点时使用的 [StyleBox]。它显示在当前的 [StyleBox] 之上," "所以使用 [StyleBoxEmpty] 将只禁用焦点的视觉效果。" #: doc/classes/ToolButton.xml msgid "[StyleBox] used when the [ToolButton] is being hovered." msgstr "当[ToolButton]被悬停时使用的[StyleBox]。" #: doc/classes/ToolButton.xml msgid "Default [StyleBox] for the [ToolButton]." msgstr "[ToolButton] 的默认 [StyleBox]。" #: doc/classes/ToolButton.xml msgid "[StyleBox] used when the [ToolButton] is being pressed." msgstr "当[ToolButton]被按下时使用的[StyleBox]。" #: doc/classes/TouchScreenButton.xml msgid "Button for touch screen devices for gameplay use." msgstr "触摸屏设备的按钮,供游戏使用。" #: doc/classes/TouchScreenButton.xml msgid "" "TouchScreenButton allows you to create on-screen buttons for touch devices. " "It's intended for gameplay use, such as a unit you have to touch to move. " "Unlike [Button], TouchScreenButton supports multitouch out of the box. " "Several TouchScreenButtons can be pressed at the same time with touch " "input.\n" "This node inherits from [Node2D]. Unlike with [Control] nodes, you cannot " "set anchors on it. If you want to create menus or user interfaces, you may " "want to use [Button] nodes instead. To make button nodes react to touch " "events, you can enable the Emulate Mouse option in the Project Settings.\n" "You can configure TouchScreenButton to be visible only on touch devices, " "helping you develop your game both for desktop and mobile devices." msgstr "" "TouchScreenButton允许你为触摸设备创建屏幕上的按钮。其为游戏使用,比如在必须触" "摸才能移动的设备。与[Button]不同,TouchScreenButton原生支持多点触摸。几个" "TouchScreenButton可以通过触摸输入同时被按下。\n" "这个节点继承自[Node2D]。与[Control]节点不同,你不能在它上面设置锚点。如果要创" "建菜单或用户界面,可用[Button]节点代替。为了使按钮节点对触摸事件作出反应,可" "在项目设置中启用模拟鼠标选项。\n" "可将TouchScreenButton配置为只在触摸设备上可见,有助你同时为桌面和移动设备开发" "游戏。" #: doc/classes/TouchScreenButton.xml msgid "Returns [code]true[/code] if this button is currently pressed." msgstr "如果这个按钮当前被按下,则返回 [code]true[/code]。" #: doc/classes/TouchScreenButton.xml msgid "The button's action. Actions can be handled with [InputEventAction]." msgstr "按钮的动作。动作可以用[InputEventAction]来处理。" #: doc/classes/TouchScreenButton.xml msgid "The button's bitmask." msgstr "按钮的bit位掩码。" #: doc/classes/TouchScreenButton.xml msgid "The button's texture for the normal state." msgstr "该按钮在正常状态下的纹理。" #: doc/classes/TouchScreenButton.xml msgid "" "If [code]true[/code], the [signal pressed] and [signal released] signals are " "emitted whenever a pressed finger goes in and out of the button, even if the " "pressure started outside the active area of the button.\n" "[b]Note:[/b] This is a \"pass-by\" (not \"bypass\") press mode." msgstr "" "如果[code]true[/code],只要按下的手指进出按钮,就会发出 [signal pressed] 和" "[signal released] ]信号,即使压力开始于按钮的有效区域之外。\n" "[b]注意:[/b]这是一种 \"pass-by\" 的按压模式 ,而不是 \"bypass\"。" #: doc/classes/TouchScreenButton.xml msgid "The button's texture for the pressed state." msgstr "按钮在被按下状态时的纹理。" #: doc/classes/TouchScreenButton.xml msgid "The button's shape." msgstr "该按钮的形状。" #: doc/classes/TouchScreenButton.xml msgid "" "If [code]true[/code], the button's shape is centered in the provided " "texture. If no texture is used, this property has no effect." msgstr "" "如果[code]true[/code],按钮的形状会在提供的纹理中居中。如果没有使用纹理,这个" "属性就没有效果。" #: doc/classes/TouchScreenButton.xml msgid "If [code]true[/code], the button's shape is visible." msgstr "如果[code]true[/code],按钮的形状是可见的。" #: doc/classes/TouchScreenButton.xml msgid "" "The button's visibility mode. See [enum VisibilityMode] for possible values." msgstr "按钮的可见性模式。有关可能的值,参阅[enum VisibilityMode]。" #: doc/classes/TouchScreenButton.xml msgid "Emitted when the button is pressed (down)." msgstr "当按钮被按下时触发,即向下。" #: doc/classes/TouchScreenButton.xml msgid "Emitted when the button is released (up)." msgstr "当按钮被释放时触发,即向上。" #: doc/classes/TouchScreenButton.xml msgid "Always visible." msgstr "始终可见。" #: doc/classes/TouchScreenButton.xml msgid "Visible on touch screens only." msgstr "仅在触摸屏上可以看到。" #: doc/classes/Transform.xml msgid "3D transformation (3×4 matrix)." msgstr "3D 变换(3×4 矩阵)。" #: doc/classes/Transform.xml msgid "" "3×4 matrix (3 rows, 4 columns) used for 3D linear transformations. It can " "represent transformations such as translation, rotation, or scaling. It " "consists of a [member basis] (first 3 columns) and a [Vector3] for the " "[member origin] (last column).\n" "For more information, read the \"Matrices and transforms\" documentation " "article." msgstr "" "用于 3D 线性变换的 3×4 矩阵(3 行 4 列),可以表示平移、旋转、缩放等变换。它" "由一个 [member basis](前 3 列)和一个 [member origin] 的 [Vector3](最后一" "列)组成。\n" "更多信息请阅读文档文章《矩阵和变换》。" #: doc/classes/Transform.xml msgid "" "Constructs a Transform from four [Vector3] values (matrix columns). Each " "axis corresponds to local basis vectors (some of which may be scaled)." msgstr "" "从四个 [Vector3] 值(即矩阵列)构造一个变换。每个轴对应于局部基向量,其中一些" "可能被缩放。" #: doc/classes/Transform.xml msgid "Constructs a Transform from a [Basis] and [Vector3]." msgstr "从 [Basis] 和 [Vector3] 构造一个 Transform 变换。" #: doc/classes/Transform.xml msgid "Constructs a Transform from a [Transform2D]." msgstr "从一个 [Transform2D] 构造一个 Transform 变换。" #: doc/classes/Transform.xml msgid "" "Constructs a Transform from a [Quat]. The origin will be [code]Vector3(0, 0, " "0)[/code]." msgstr "" "从一个 [Quat] 构造一个 Transform 变换。原点是 [code]Vector3(0, 0, 0)[/code]。" #: doc/classes/Transform.xml msgid "" "Constructs the Transform from a [Basis]. The origin will be Vector3(0, 0, 0)." msgstr "从一个 [Basis] 构造 Transform 变换。原点是 Vector3(0, 0, 0)。" #: doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "" "Returns the inverse of the transform, under the assumption that the " "transformation is composed of rotation, scaling and translation." msgstr "返回变换的反值,假设变换是由旋转、缩放和平移组成的。" #: doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "" "Returns a transform interpolated between this transform and another by a " "given [code]weight[/code] (on the range of 0.0 to 1.0)." msgstr "" "返回在此变换和另一个变换之间通过给定的[code]weight[/code]插值的变换,范围为" "0.0到1.0。" #: doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "" "Returns the inverse of the transform, under the assumption that the " "transformation is composed of rotation and translation (no scaling, use " "[method affine_inverse] for transforms with scaling)." msgstr "" "返回变换的反值,假设该变换是由旋转和平移组成的(没有缩放,对有缩放的变换使用 " "[method affine_inverse])。" #: doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "" "Returns [code]true[/code] if this transform and [code]transform[/code] are " "approximately equal, by calling [code]is_equal_approx[/code] on each " "component." msgstr "" "如果这个变换和[code]transform[/code]近似相等,通过对每个分量调用" "[code]is_equal_approx[/code],而返回 [code]true[/code]。" #: doc/classes/Transform.xml msgid "" "Returns a copy of the transform rotated such that its -Z axis points towards " "the [code]target[/code] position.\n" "The transform will first be rotated around the given [code]up[/code] vector, " "and then fully aligned to the target by a further rotation around an axis " "perpendicular to both the [code]target[/code] and [code]up[/code] vectors.\n" "Operations take place in global space." msgstr "" "返回一个旋转后的变换副本,使其-Z轴指向[code]target[/code]位置。\n" "变换将首先围绕给定的[code]up[/code]向量旋转,然后进一步通过围绕垂直于" "[code]target[/code]和[code]up[/code]向量的轴旋转,来完全与目标对齐。\n" "操作是在全局空间进行的。" #: doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "" "Returns the transform with the basis orthogonal (90 degrees), and normalized " "axis vectors (scale of 1 or -1)." msgstr "返回使用正交基(90 度)以及归一化的轴向量(缩放为 1 或 -1)的变换。" #: doc/classes/Transform.xml msgid "" "Returns a copy of the transform rotated around the given [code]axis[/code] " "by the given [code]angle[/code] (in radians), using matrix multiplication. " "The [code]axis[/code] must be a normalized vector." msgstr "" "返回该变换的副本,使用矩阵乘法将其围绕给定的轴 [code]axis[/code] 旋转给定的角" "度 [code]angle[/code](单位为弧度)。轴 [code]axis[/code] 必须是归一化的向" "量。" #: doc/classes/Transform.xml msgid "" "Returns a copy of the transform with its basis and origin scaled by the " "given [code]scale[/code] factor, using matrix multiplication." msgstr "" "返回该变换的副本,使用矩阵乘法,通过给定的缩放系数 [code]scale[/code],对它的" "基和原点进行缩放。" #: doc/classes/Transform.xml doc/classes/Transform2D.xml msgid "" "Returns a copy of the transform translated by the given [code]offset[/code], " "relative to the transform's basis vectors.\n" "Unlike [method rotated] and [method scaled], this does not use matrix " "multiplication." msgstr "" "返回该变换的副本,将其相对于该变换的基向量按给定的偏移量 [code]offset[/code] " "进行平移。\n" "与 [method rotated] 和 [method scaled] 不同,它不使用矩阵乘法。" #: doc/classes/Transform.xml msgid "" "Transforms the given [Vector3], [Plane], [AABB], or [PoolVector3Array] by " "this transform." msgstr "" "通过这个变换对指定的 [Vector3]、[Plane]、[AABB]、[PoolVector3Array] 进行变" "换。" #: doc/classes/Transform.xml msgid "" "Inverse-transforms the given [Vector3], [Plane], [AABB], or " "[PoolVector3Array] by this transform, under the assumption that the " "transformation is composed of rotation and translation (no scaling). " "Equivalent to calling [code]inverse().xform(v)[/code] on this transform. For " "affine transformations (e.g. with scaling) see [method affine_inverse] " "method." msgstr "" "将给定的 [Vector3]、[Plane]、[AABB]、[PoolVector3Array] 做该变换的逆变换,前" "提假设是该变换仅由旋转和平移构成(不包括缩放)。等价于调用该变换的 " "[code]inverse().xform(v)[/code]。仿射变换(即包含缩放)请参阅 [method " "affine_inverse] 方法。" #: doc/classes/Transform.xml msgid "" "The basis is a matrix containing 3 [Vector3] as its columns: X axis, Y axis, " "and Z axis. These vectors can be interpreted as the basis vectors of local " "coordinate system traveling with the object." msgstr "" "基是一个矩阵,包含 3 个 [Vector3] 作为其列:X 轴、Y 轴、Z 轴。这些向量可以被" "解释为随物体移动的局部坐标系的基向量。" #: doc/classes/Transform.xml msgid "" "The translation offset of the transform (column 3, the fourth column). " "Equivalent to array index [code]3[/code]." msgstr "变换的平移偏移量,即第3、4列。相当于数组索引[code]3[/code]。" #: doc/classes/Transform.xml msgid "" "[Transform] with no translation, rotation or scaling applied. When applied " "to other data structures, [constant IDENTITY] performs no transformation." msgstr "" "未应用平移、旋转、缩放的 [Transform]。当应用于其他数据结构时,[constant " "IDENTITY] 不执行变换。" #: doc/classes/Transform.xml msgid "[Transform] with mirroring applied perpendicular to the YZ plane." msgstr "[Transform] 变换与垂直于 YZ 平面的镜像应用。" #: doc/classes/Transform.xml msgid "[Transform] with mirroring applied perpendicular to the XZ plane." msgstr "[Transform] 变换与垂直于 XZ 平面的镜像应用。" #: doc/classes/Transform.xml msgid "[Transform] with mirroring applied perpendicular to the XY plane." msgstr "[Transform] 变换与垂直于 XY 平面的镜像应用。" #: doc/classes/Transform2D.xml msgid "2D transformation (2×3 matrix)." msgstr "2D 变换(2×3 矩阵)。" #: doc/classes/Transform2D.xml msgid "" "2×3 matrix (2 rows, 3 columns) used for 2D linear transformations. It can " "represent transformations such as translation, rotation, or scaling. It " "consists of three [Vector2] values: [member x], [member y], and the [member " "origin].\n" "For more information, read the \"Matrices and transforms\" documentation " "article." msgstr "" "用于 2D 线性变换的 2×3 矩阵(2 行 3 列),可以表示平移、旋转、缩放等变换。由" "三个 [Vector2] 值组成:[member x]、[member y]、[member origin]。\n" "更多信息请阅读文档文章《矩阵和变换》。" #: doc/classes/Transform2D.xml msgid "Constructs the transform from a 3D [Transform]." msgstr "从一个 3D [Transform] 构建变换。" #: doc/classes/Transform2D.xml msgid "" "Constructs the transform from 3 [Vector2] values representing [member x], " "[member y], and the [member origin] (the three column vectors)." msgstr "" "从表示 [member x]、[member y]、[member origin] 的 3 个 [Vector2](三个列向" "量)构建变换。" #: doc/classes/Transform2D.xml msgid "Constructs the transform from a given angle (in radians) and position." msgstr "从一个给定的角度(单位为弧度)和位置构造变换。" #: doc/classes/Transform2D.xml msgid "" "Returns a vector transformed (multiplied) by the basis matrix.\n" "This method does not account for translation (the origin vector)." msgstr "" "返回经过基矩阵变换(相乘)的向量。\n" "该方法不考虑平移(原点向量)。" #: doc/classes/Transform2D.xml msgid "" "Returns a vector transformed (multiplied) by the inverse basis matrix.\n" "This method does not account for translation (the origin vector)." msgstr "" "返回经过逆基矩阵变换(相乘)的向量。\n" "该方法不考虑平移(原点向量)。" #: doc/classes/Transform2D.xml msgid "Returns the transform's origin (translation)." msgstr "返回变换的原点(平移)。" #: doc/classes/Transform2D.xml msgid "Returns the transform's rotation (in radians)." msgstr "返回变换的旋转(单位为弧度)。" #: doc/classes/Transform2D.xml msgid "Returns the scale." msgstr "返回缩放。" #: doc/classes/Transform2D.xml msgid "" "Returns a copy of the transform rotated by the given [code]angle[/code] (in " "radians), using matrix multiplication." msgstr "" "返回该变换的副本,使用矩阵乘法将其旋转给定的角度 [code]angle[/code](单位为弧" "度)。" #: doc/classes/Transform2D.xml msgid "" "Returns a copy of the transform scaled by the given [code]scale[/code] " "factor, using matrix multiplication." msgstr "" "返回该变换的副本,使用矩阵乘法将其用给定的缩放系数 [code]scale[/code] 进行缩" "放。" #: doc/classes/Transform2D.xml msgid "" "Transforms the given [Vector2], [Rect2], or [PoolVector2Array] by this " "transform." msgstr "通过此变换对指定的 [Vector2]、[Rect2]、[PoolVector2Array] 进行变换。" #: doc/classes/Transform2D.xml msgid "" "Inverse-transforms the given [Vector2], [Rect2], or [PoolVector2Array] by " "this transform, under the assumption that the transformation is composed of " "rotation and translation (no scaling). Equivalent to calling [code]inverse()." "xform(v)[/code] on this transform. For affine transformations (e.g. with " "scaling) see [method affine_inverse] method." msgstr "" "将给定的 [Vector2]、[Rect2]、[PoolVector2Array] 做该变换的逆变换,前提假设是" "该变换仅由旋转和平移构成(不包括缩放)。等价于调用该变换的 [code]inverse()." "xform(v)[/code]。仿射变换(即包含缩放)请参阅 [method affine_inverse] 方法。" #: doc/classes/Transform2D.xml msgid "" "The origin vector (column 2, the third column). Equivalent to array index " "[code]2[/code]. The origin vector represents translation." msgstr "" "原点向量(2 号列,即第 3 列)。相当于使用 [code]2[/code] 进行数组索引。原点向" "量代表平移。" #: doc/classes/Transform2D.xml msgid "" "The identity [Transform2D] with no translation, rotation or scaling applied. " "When applied to other data structures, [constant IDENTITY] performs no " "transformation." msgstr "" "没有应用平移、旋转、缩放的恒等 [Transform2D]。当应用于其他数据结构时," "[constant IDENTITY] 不执行变换。" #: doc/classes/Transform2D.xml msgid "The [Transform2D] that will flip something along the X axis." msgstr "将沿 X 轴翻转的 [Transform2D]。" #: doc/classes/Transform2D.xml msgid "The [Transform2D] that will flip something along the Y axis." msgstr "将沿 Y 轴翻转的 [Transform2D]。" #: doc/classes/Translation.xml msgid "Language Translation." msgstr "语言翻译。" #: doc/classes/Translation.xml msgid "" "Translations are resources that can be loaded and unloaded on demand. They " "map a string to another string." msgstr "翻译是可以按需加载和卸载的资源,将一个字符串映射到另一个字符串。" #: doc/classes/Translation.xml msgid "Virtual method to override [method get_message]." msgstr "重写 [method get_message] 的虚方法。" #: doc/classes/Translation.xml msgid "Adds a message if nonexistent, followed by its translation." msgstr "如果不存在,则添加信息,然后添加其翻译。" #: doc/classes/Translation.xml msgid "Erases a message." msgstr "删除信息。" #: doc/classes/Translation.xml msgid "Returns a message's translation." msgstr "返回信息的翻译。" #: doc/classes/Translation.xml msgid "Returns the number of existing messages." msgstr "返回现有信息的数量。" #: doc/classes/Translation.xml msgid "Returns all the messages (keys)." msgstr "返回所有的信息(键值)。" #: doc/classes/Translation.xml msgid "The locale of the translation." msgstr "翻译的区域设置。" #: doc/classes/TranslationServer.xml msgid "Server that manages all translations." msgstr "管理所有翻译的服务器。" #: doc/classes/TranslationServer.xml msgid "" "Server that manages all translations. Translations can be set to it and " "removed from it." msgstr "管理所有翻译的服务器。可以将翻译设给它,也可从中删除翻译。" #: doc/classes/TranslationServer.xml msgid "Adds a [Translation] resource." msgstr "添加一个 [Translation] 资源。" #: doc/classes/TranslationServer.xml msgid "Clears the server from all translations." msgstr "清除服务器中的所有翻译。" #: doc/classes/TranslationServer.xml msgid "Returns an array of all loaded locales of the project." msgstr "返回项目中所有已加载的区域设置的数组。" #: doc/classes/TranslationServer.xml msgid "" "Returns the current locale of the project.\n" "See also [method OS.get_locale] and [method OS.get_locale_language] to query " "the locale of the user system." msgstr "" "返回项目的当前区域设置。\n" "查询用户系统的区域设置请参阅 [method OS.get_locale] 和 [method OS." "get_locale_language]。" #: doc/classes/TranslationServer.xml msgid "" "Returns a locale's language and its variant (e.g. [code]\"en_US\"[/code] " "would return [code]\"English (United States)\"[/code])." msgstr "" "返回区域设置的语言及其变体。例如,[code]\"en_US\"[/code] 将返回 " "[code]\"English (United States)\"[/code]。" #: doc/classes/TranslationServer.xml msgid "Removes the given translation from the server." msgstr "从服务器中删除给定的翻译。" #: doc/classes/TranslationServer.xml msgid "" "Sets the locale of the project. The [code]locale[/code] string will be " "standardized to match known locales (e.g. [code]en-US[/code] would be " "matched to [code]en_US[/code]).\n" "If translations have been loaded beforehand for the new locale, they will be " "applied." msgstr "" "设置项目的区域设置。[code]locale[/code] 字符串将被标准化,以匹配已知的区域。" "例如,[code]en-US[/code] 将被匹配到 [code]en_US[/code]。\n" "如果事先已经加载了新区域的翻译,其将被应用。" #: doc/classes/TranslationServer.xml msgid "Returns the current locale's translation for the given message (key)." msgstr "返回当前区域设置对指定消息(key)的翻译。" #: doc/classes/Tree.xml msgid "Control to show a tree of items." msgstr "以树状形式显示项目的控件。" #: doc/classes/Tree.xml msgid "" "This shows a tree of items that can be selected, expanded and collapsed. The " "tree can have multiple columns with custom controls like text editing, " "buttons and popups. It can be useful for structured displays and " "interactions.\n" "Trees are built via code, using [TreeItem] objects to create the structure. " "They have a single root but multiple roots can be simulated if a dummy " "hidden root is added.\n" "[codeblock]\n" "func _ready():\n" " var tree = Tree.new()\n" " var root = tree.create_item()\n" " tree.set_hide_root(true)\n" " var child1 = tree.create_item(root)\n" " var child2 = tree.create_item(root)\n" " var subchild1 = tree.create_item(child1)\n" " subchild1.set_text(0, \"Subchild1\")\n" "[/codeblock]\n" "To iterate over all the [TreeItem] objects in a [Tree] object, use [method " "TreeItem.get_next] and [method TreeItem.get_children] after getting the root " "through [method get_root]. You can use [method Object.free] on a [TreeItem] " "to remove it from the [Tree]." msgstr "" "这展示了一个可以选择、展开和折叠的项目树。该树可以有多列的自定义控件,如文本" "编辑、按钮和弹出窗口。它对于结构化显示和互动很有用。\n" "树通过代码建立,使用[TreeItem]对象来构建结构。它们有一个单独根节点,但如果添" "加一个虚拟的隐藏根节点,就可以模拟多个根。\n" "[codeblock]\n" "func _ready():\n" " var tree = Tree.new()\n" " var root = tree.create_item()\n" " tree.set_hide_root(true)\n" " var child1 = tree.create_item(root)\n" " var child2 = tree.create_item(root)\n" " var subchild1 = tree.create_item(child1)\n" " subchild1.set_text(0, \"Subchild1\")\n" "[/codeblock]\n" "要遍历一个[Tree]对象中的所有[TreeItem]对象,在通过[method get_root]获得根之" "后,使用[method TreeItem.get_next]和[method TreeItem.get_children]方法。你可" "以对一个[TreeItem]使用[method Object.free]来把它从[Tree]中移除。" #: doc/classes/Tree.xml msgid "Clears the tree. This removes all items." msgstr "清除树。这将删除所有项目。" #: doc/classes/Tree.xml msgid "" "Creates an item in the tree and adds it as a child of [code]parent[/code], " "which can be either a valid [TreeItem] or [code]null[/code].\n" "If [code]parent[/code] is [code]null[/code], the root item will be the " "parent, or the new item will be the root itself if the tree is empty.\n" "The new item will be the [code]idx[/code]th child of parent, or it will be " "the last child if there are not enough siblings." msgstr "" "在树中创建一个项目,并将其作为父项 [code]parent[/code] 的子项。该父项可以是有" "效的 [TreeItem] 或 [code]null[/code]。\n" "如果 [code]parent[/code] 是 [code]null[/code],将使用根项作为父项,如果树是空" "的,新项将是根本身。\n" "新项将是父项的第 [code]idx[/code] 个子项目,如果没有足够的兄弟姐妹,它将是最" "后一个子项。" #: doc/classes/Tree.xml msgid "" "Edits the selected tree item as if it was clicked. The item must be set " "editable with [method TreeItem.set_editable]. Returns [code]true[/code] if " "the item could be edited. Fails if no item is selected." msgstr "" "编辑选中的树项,就像它被点击一样。该项必须通过[method TreeItem.set_editable]" "设置为可编辑。其可被编辑,则返回 [code]true[/code]。如果没有项被选中,则失" "败。" #: doc/classes/Tree.xml msgid "" "Makes the currently focused cell visible.\n" "This will scroll the tree if necessary. In [constant SELECT_ROW] mode, this " "will not do horizontal scrolling, as all the cells in the selected row is " "focused logically.\n" "[b]Note:[/b] Despite the name of this method, the focus cursor itself is " "only visible in [constant SELECT_MULTI] mode." msgstr "" "使当前获得焦点的单元可见。\n" "如果有必要,将滚动树。在[constant SELECT_ROW]模式下,不会做水平滚动,因为所选" "行中的所有单元都按逻辑获得焦点。\n" "[b]注意:[/b]尽管这个方法的名称是这样的,但焦点光标本身只在 [constant " "SELECT_MULTI] 模式下可见。" #: doc/classes/Tree.xml msgid "" "Returns the button id at [code]position[/code], or -1 if no button is there." msgstr "返回在 [code]position[/code] 的按钮 ID,如果那里没有按钮,则返回 -1。" #: doc/classes/Tree.xml msgid "" "Returns the column index at [code]position[/code], or -1 if no item is there." msgstr "返回在 [code]position[/code] 的列索引,如果那里没有项目,则返回 -1。" #: doc/classes/Tree.xml msgid "Returns the column's title." msgstr "返回列的标题。" #: doc/classes/Tree.xml msgid "Returns the column's width in pixels." msgstr "返回列的宽度,单位是像素。" #: doc/classes/Tree.xml msgid "" "Returns the rectangle for custom popups. Helper to create custom cell " "controls that display a popup. See [method TreeItem.set_cell_mode]." msgstr "" "返回自定义弹出窗口的矩形。帮助创建显示弹出式的自定义单元格控件。参阅[method " "TreeItem.set_cell_mode]。" #: doc/classes/Tree.xml msgid "" "Returns the drop section at [code]position[/code], or -100 if no item is " "there.\n" "Values -1, 0, or 1 will be returned for the \"above item\", \"on item\", and " "\"below item\" drop sections, respectively. See [enum DropModeFlags] for a " "description of each drop section.\n" "To get the item which the returned drop section is relative to, use [method " "get_item_at_position]." msgstr "" "返回位于[code]position[/code]的放置部分,如果没有项目,则返回-100。\n" "在 \"项目上方\"、\"项目之上\"和 \"项目下方\"的放置部分将分别返回-1、0或1的" "值。请参阅[enum DropModeFlags]以了解每个放置部分的描述。\n" "要获得返回的放置部分相对项,请使用[method get_item_at_position]。" #: doc/classes/Tree.xml msgid "" "Returns the currently edited item. Can be used with [signal item_edited] to " "get the item that was modified.\n" "[codeblock]\n" "func _ready():\n" " $Tree.connect(\"item_edited\", self, \"on_Tree_item_edited\")\n" "\n" "func on_Tree_item_edited():\n" " print($Tree.get_edited()) # This item just got edited (e.g. checked).\n" "[/codeblock]" msgstr "" "返回当前被编辑的项。可以和 [signal item_edited] 一起使用,获得被修改的项。\n" "[codeblock]\n" "func _ready():\n" " $Tree.connect(\"item_edited\", self, \"on_Tree_item_edited\")\n" "\n" "func on_Tree_item_edited():\n" " print($Tree.get_edited()) # 这个项目刚刚被编辑(例如勾选)。\n" "[/codeblock]" #: doc/classes/Tree.xml msgid "Returns the column for the currently edited item." msgstr "返回当前编辑项的列。" #: doc/classes/Tree.xml msgid "" "Returns the rectangle area for the specified [TreeItem]. If [code]column[/" "code] is specified, only get the position and size of that column, otherwise " "get the rectangle containing all columns." msgstr "" "返回指定 [TreeItem] 的矩形区域。如果指定了 [code]column[/code],则只得到该列" "的位置和大小,否则会得到包含所有列的矩形。" #: doc/classes/Tree.xml msgid "" "Returns the tree item at the specified position (relative to the tree origin " "position)." msgstr "返回指定位置,即相对于树的原点位置的树中项。" #: doc/classes/Tree.xml msgid "" "Returns the next selected [TreeItem] after the given one, or [code]null[/" "code] if the end is reached.\n" "If [code]from[/code] is [code]null[/code], this returns the first selected " "item." msgstr "" "返回指定的 [TreeItem] 之后的下一个选中项,如果到达终点则返回 [code]null[/" "code]。\n" "如果 [code]from[/code] 是 [code]null[/code],将返回第一个被选中的项。" #: doc/classes/Tree.xml msgid "Returns the last pressed button's index." msgstr "返回最后按下的按钮的索引。" #: doc/classes/Tree.xml msgid "" "Returns the tree's root item, or [code]null[/code] if the tree is empty." msgstr "返回树的根项,如果树是空的,则返回 [code]null[/code]。" #: doc/classes/Tree.xml msgid "Returns the current scrolling position." msgstr "返回当前的滚动位置。" #: doc/classes/Tree.xml msgid "" "Returns the currently focused item, or [code]null[/code] if no item is " "focused.\n" "In [constant SELECT_ROW] and [constant SELECT_SINGLE] modes, the focused " "item is same as the selected item. In [constant SELECT_MULTI] mode, the " "focused item is the item under the focus cursor, not necessarily selected.\n" "To get the currently selected item(s), use [method get_next_selected]." msgstr "" "返回当前的焦点项,如果没有焦点项,则返回 [code]null[/code]。\n" "在[constant SELECT_ROW]和[constant SELECT_SINGLE]模式下,焦点项与选择项相同。" "在[constant SELECT_MULTI]模式下,焦点项是焦点光标下的项目,不一定被选中。\n" "要获得当前选中项,请使用[method get_next_selected]。" #: doc/classes/Tree.xml msgid "" "Returns the currently focused column, or -1 if no column is focused.\n" "In [constant SELECT_SINGLE] mode, the focused column is the selected column. " "In [constant SELECT_ROW] mode, the focused column is always 0 if any item is " "selected. In [constant SELECT_MULTI] mode, the focused column is the column " "under the focus cursor, and there are not necessarily any column selected.\n" "To tell whether a column of an item is selected, use [method TreeItem." "is_selected]." msgstr "" "返回当前获得焦点的列,如果没有焦点列,则返回-1。\n" "在[constant SELECT_SINGLE]模式下,焦点列是被选中的列。在[constant SELECT_ROW]" "模式下,如果有任意项被选中,焦点列总是0。在[constant SELECT_MULTI]模式下,焦" "点列是焦点光标下的列,但不一定有列被选中。\n" "要判断一个项的某一列是否被选中,请使用[method TreeItem.is_selected]。" #: doc/classes/Tree.xml msgid "Causes the [Tree] to jump to the specified [TreeItem]." msgstr "使 [Tree] 跳转到指定的 [TreeItem]。" #: doc/classes/Tree.xml msgid "" "If [code]true[/code], the column will have the \"Expand\" flag of [Control]. " "Columns that have the \"Expand\" flag will use their \"min_width\" in a " "similar fashion to [member Control.size_flags_stretch_ratio]." msgstr "" "如果 [code]true[/code],该列将拥有 [Control] 的“Expand”标志。拥有“Expand”标志" "的列,将以类似于 [member Control.size_flags_stretch_ratio] 的方式使用" "其“min_width”最小宽度。" #: doc/classes/Tree.xml msgid "" "Sets the minimum width of a column. Columns that have the \"Expand\" flag " "will use their \"min_width\" in a similar fashion to [member Control." "size_flags_stretch_ratio]." msgstr "" "设置一个列的最小宽度。拥有“Expand”标志的列将以类似于 [member Control." "size_flags_stretch_ratio] 的方式使用其“min_width”最小宽度。" #: doc/classes/Tree.xml msgid "Sets the title of a column." msgstr "设置一个列的标题。" #: doc/classes/Tree.xml msgid "" "If [code]true[/code], the currently selected cell may be selected again." msgstr "如果[code]true[/code],可以再次选择当前选定的单元。" #: doc/classes/Tree.xml msgid "If [code]true[/code], a right mouse button click can select items." msgstr "如果[code]true[/code],鼠标右键点击可以选择项目。" #: doc/classes/Tree.xml msgid "If [code]true[/code], column titles are visible." msgstr "如果[code]true[/code],列标题可见。" #: doc/classes/Tree.xml msgid "The number of columns." msgstr "列数。" #: doc/classes/Tree.xml msgid "" "The drop mode as an OR combination of flags. See [enum DropModeFlags] " "constants. Once dropping is done, reverts to [constant DROP_MODE_DISABLED]. " "Setting this during [method Control.can_drop_data] is recommended.\n" "This controls the drop sections, i.e. the decision and drawing of possible " "drop locations based on the mouse position." msgstr "" "作为一个标志的OR组合的放置模式。参阅[enum DropModeFlags]常量。一旦拖动完成," "将恢复到[constant DROP_MODE_DISABLED]。建议在[method Control.can_drop_data]中" "设置这个。\n" "控件放置部分,即根据鼠标位置决定和绘制可能的放置位置。" #: doc/classes/Tree.xml msgid "If [code]true[/code], the folding arrow is hidden." msgstr "如果[code]true[/code],隐藏折叠箭头。" #: doc/classes/Tree.xml msgid "If [code]true[/code], the tree's root is hidden." msgstr "如果[code]true[/code],则隐藏树的根节点。" #: doc/classes/Tree.xml msgid "" "Allows single or multiple selection. See the [enum SelectMode] constants." msgstr "允许单选或多选。参阅[enum SelectMode]常量。" #: doc/classes/Tree.xml msgid "" "Emitted when a button on the tree was pressed (see [method TreeItem." "add_button])." msgstr "当树中按钮被按下时触发,参阅[method TreeItem.add_button]。" #: doc/classes/Tree.xml msgid "Emitted when a cell is selected." msgstr "当单元格被选中时触发。" #: doc/classes/Tree.xml msgid "Emitted when a column's title is pressed." msgstr "当列的标题被按下时触发。" #: doc/classes/Tree.xml msgid "" "Emitted when a cell with the [constant TreeItem.CELL_MODE_CUSTOM] is clicked " "to be edited." msgstr "" "当具有[constant TreeItem.CELL_MODE_CUSTOM]的单元格被点击,进行编辑时触发。" #: doc/classes/Tree.xml msgid "" "Emitted when the right mouse button is pressed in the empty space of the " "tree." msgstr "当在树的空白处按下鼠标右键时触发。" #: doc/classes/Tree.xml msgid "" "Emitted when the right mouse button is pressed if right mouse button " "selection is active and the tree is empty." msgstr "如果鼠标右键选择处于活动状态,并且树是空的,则在按下鼠标右键时触发。" #: doc/classes/Tree.xml msgid "Emitted when an item's label is double-clicked." msgstr "当一个项目的标签被双击时触发。" #: doc/classes/Tree.xml msgid "Emitted when an item is collapsed by a click on the folding arrow." msgstr "当一个项目的折叠箭头被点击折叠时触发。" #: doc/classes/Tree.xml msgid "" "Emitted when a custom button is pressed (i.e. in a [constant TreeItem." "CELL_MODE_CUSTOM] mode cell)." msgstr "" "当自定义按钮被按下时触发,即在[constant TreeItem.CELL_MODE_CUSTOM]模式单元格" "中。" #: doc/classes/Tree.xml msgid "Emitted when an item's icon is double-clicked." msgstr "当项目的图标被双击时触发。" #: doc/classes/Tree.xml msgid "Emitted when an item is edited." msgstr "当项目被编辑时触发。" #: doc/classes/Tree.xml msgid "Emitted when an item is edited using the right mouse button." msgstr "当使用鼠标右键编辑项目时触发。" #: doc/classes/Tree.xml msgid "Emitted when an item is selected with the right mouse button." msgstr "当用鼠标右键选择项目时触发。" #: doc/classes/Tree.xml msgid "Emitted when an item is selected." msgstr "当项目被选中时触发。" #: doc/classes/Tree.xml msgid "" "Emitted instead of [code]item_selected[/code] if [code]select_mode[/code] is " "[constant SELECT_MULTI]." msgstr "" "如果[code]select_mode[/code]是[constant SELECT_MULTI],则触发代替" "[code]item_selected[/code]。" #: doc/classes/Tree.xml msgid "Emitted when a left mouse button click does not select any item." msgstr "当鼠标左键点击未选择任何项目时触发。" #: doc/classes/Tree.xml msgid "" "Allows selection of a single cell at a time. From the perspective of items, " "only a single item is allowed to be selected. And there is only one column " "selected in the selected item.\n" "The focus cursor is always hidden in this mode, but it is positioned at the " "current selection, making the currently selected item the currently focused " "item." msgstr "" "允许一次选择一个单元格。从项的角度看,只允许选择一个项。而且在所选项中只有一" "列被选中。\n" "在这种模式下,焦点光标总被隐藏,被定位在当前的选择处,使当前的选择项成为当前" "的焦点项。" #: doc/classes/Tree.xml msgid "" "Allows selection of a single row at a time. From the perspective of items, " "only a single items is allowed to be selected. And all the columns are " "selected in the selected item.\n" "The focus cursor is always hidden in this mode, but it is positioned at the " "first column of the current selection, making the currently selected item " "the currently focused item." msgstr "" "允许一次选择单行。从项的角度看,只允许选择单个项。而所有的列都被选择在所选项" "中。\n" "在这种模式下,焦点光标总被隐藏,被定位在当前选择的第一列,使当前选择项成为当" "前焦点项。" #: doc/classes/Tree.xml msgid "" "Allows selection of multiple cells at the same time. From the perspective of " "items, multiple items are allowed to be selected. And there can be multiple " "columns selected in each selected item.\n" "The focus cursor is visible in this mode, the item or column under the " "cursor is not necessarily selected." msgstr "" "允许同时选择多个单元格。从项的角度看,允许选择多个项。而且每个被选中的项中可" "以有多个列被选中。\n" "在这种模式下,焦点光标可见,光标下的项或列不一定被选中。" #: doc/classes/Tree.xml msgid "" "Disables all drop sections, but still allows to detect the \"on item\" drop " "section by [method get_drop_section_at_position].\n" "[b]Note:[/b] This is the default flag, it has no effect when combined with " "other flags." msgstr "" "禁用所有放置部分,但仍然允许通过[method get_drop_section_at_position]检测 " "\"物品上\" 的放置部分。\n" "[b]注意:[/b]这是默认的标志,当与其他标志结合时,它没有效果。" #: doc/classes/Tree.xml msgid "" "Enables the \"on item\" drop section. This drop section covers the entire " "item.\n" "When combined with [constant DROP_MODE_INBETWEEN], this drop section halves " "the height and stays centered vertically." msgstr "" "启用 \"项目上\" 的放置部分。这个放置部分覆盖整个项。\n" "当与[constant DROP_MODE_INBETWEEN]结合使用时,这个放置部分的高度减半,并保持" "垂直居中。" #: doc/classes/Tree.xml msgid "" "Enables \"above item\" and \"below item\" drop sections. The \"above item\" " "drop section covers the top half of the item, and the \"below item\" drop " "section covers the bottom half.\n" "When combined with [constant DROP_MODE_ON_ITEM], these drop sections halves " "the height and stays on top / bottom accordingly." msgstr "" "启用 \"项目上方\" 和 \"项目下方\" 的放置部分。\"项目上方\" 的放置部分覆盖项目" "的上半部分,\"项目下方\" 的放置部分覆盖下半部分。\n" "当与[constant DROP_MODE_ON_ITEM]结合时,这些放置部分的高度减半,并相应地停留" "在顶部或底部。" #: doc/classes/Tree.xml msgid "" "Text [Color] for a [constant TreeItem.CELL_MODE_CUSTOM] mode cell when it's " "hovered." msgstr "" "当[constant TreeItem.CELL_MODE_CUSTOM]模式的单元格被悬停时的文本[Color]颜色。" #: doc/classes/Tree.xml msgid "" "[Color] used to draw possible drop locations. See [enum DropModeFlags] " "constants for further description of drop locations." msgstr "" "用于绘制可能的放置位置的[Color]颜色。有关放置位置的描述,参阅[enum " "DropModeFlags]常量。" #: doc/classes/Tree.xml msgid "[Color] of the guideline." msgstr "参考线的[Color]颜色。" #: doc/classes/Tree.xml msgid "[Color] of the relationship lines." msgstr "关系线的[Color]颜色。" #: doc/classes/Tree.xml msgid "Default text [Color] of the title button." msgstr "标题按钮的默认文本[Color]颜色。" #: doc/classes/Tree.xml msgid "The horizontal space between each button in a cell." msgstr "一个单元中每个按钮之间的水平空间。" #: doc/classes/Tree.xml msgid "" "Draws the guidelines if not zero, this acts as a boolean. The guideline is a " "horizontal line drawn at the bottom of each item." msgstr "" "如果不为零就绘制参考线,这作为一个布尔值。参考线是在每个项的底部画的一条水平" "线。" #: doc/classes/Tree.xml msgid "" "Draws the relationship lines if not zero, this acts as a boolean. " "Relationship lines are drawn at the start of child items to show hierarchy." msgstr "" "如果不为零,则绘制关系线,这作为一个布尔值。关系线在子项的开始处绘制,以显示" "层次结构。" #: doc/classes/Tree.xml msgid "" "The horizontal space between item cells. This is also used as the margin at " "the start of an item when folding is disabled." msgstr "项目单元之间的水平空间。这也用作禁用折叠时项目开头的边距。" #: doc/classes/Tree.xml msgid "" "The horizontal margin at the start of an item. This is used when folding is " "enabled for the item." msgstr "项目开头的水平边距。在项目启用折叠功能时使用。" #: doc/classes/Tree.xml msgid "" "The maximum distance between the mouse cursor and the control's border to " "trigger border scrolling when dragging." msgstr "拖动时,鼠标指针与控件边框之间触发边框滚动的最大距离。" #: doc/classes/Tree.xml msgid "The speed of border scrolling." msgstr "边框滚动的速度。" #: doc/classes/Tree.xml msgid "" "The vertical padding inside each item, i.e. the distance between the item's " "content and top/bottom border." msgstr "每个项内的垂直填充,即项内容与上或下边框之间的距离。" #: doc/classes/Tree.xml msgid "[Font] of the title button's text." msgstr "标题按钮文本的 [Font] 字体。" #: doc/classes/Tree.xml msgid "The arrow icon used when a foldable item is not collapsed." msgstr "当一个可折叠的项没有被折叠时,使用的箭头图标。" #: doc/classes/Tree.xml msgid "The arrow icon used when a foldable item is collapsed." msgstr "当一个可折叠的项被折叠时,使用的箭头图标。" #: doc/classes/Tree.xml msgid "" "The check icon to display when the [constant TreeItem.CELL_MODE_CHECK] mode " "cell is checked." msgstr "" "当 [constant TreeItem.CELL_MODE_CHECK] 模式单元格被选中时,显示的选中图标。" #: doc/classes/Tree.xml msgid "" "The arrow icon to display for the [constant TreeItem.CELL_MODE_RANGE] mode " "cell." msgstr "为 [constant TreeItem.CELL_MODE_RANGE] 模式单元显示的箭头图标。" #: doc/classes/Tree.xml msgid "" "The check icon to display when the [constant TreeItem.CELL_MODE_CHECK] mode " "cell is unchecked." msgstr "" "当 [constant TreeItem.CELL_MODE_CHECK] 模式单元未被选中时,要显示的选中图标。" #: doc/classes/Tree.xml msgid "" "The updown arrow icon to display for the [constant TreeItem.CELL_MODE_RANGE] " "mode cell." msgstr "为 [constant TreeItem.CELL_MODE_RANGE] 模式单元显示的向下箭头图标。" #: doc/classes/Tree.xml msgid "" "Default [StyleBox] for the [Tree], i.e. used when the control is not being " "focused." msgstr "[Tree] 的默认 [StyleBox],即在控件没有获得焦点时使用。" #: doc/classes/Tree.xml msgid "[StyleBox] used when the [Tree] is being focused." msgstr "当 [Tree] 获得焦点时使用的 [StyleBox]。" #: doc/classes/Tree.xml msgid "[StyleBox] used when a button in the tree is pressed." msgstr "当树中的按钮被按下时使用的 [StyleBox]。" #: doc/classes/Tree.xml msgid "[StyleBox] used for the cursor, when the [Tree] is being focused." msgstr "当 [Tree] 获得焦点时,用于光标的 [StyleBox]。" #: doc/classes/Tree.xml msgid "[StyleBox] used for the cursor, when the [Tree] is not being focused." msgstr "当 [Tree] 未获聚焦时,用于光标的 [StyleBox]。" #: doc/classes/Tree.xml msgid "" "Default [StyleBox] for a [constant TreeItem.CELL_MODE_CUSTOM] mode cell." msgstr "" "为 [constant TreeItem.CELL_MODE_CUSTOM] 模式的单元格默认的 [StyleBox]。" #: doc/classes/Tree.xml msgid "" "[StyleBox] for a [constant TreeItem.CELL_MODE_CUSTOM] mode cell when it's " "hovered." msgstr "" "当 [constant TreeItem.CELL_MODE_CUSTOM] 模式的单元格被悬停时的 [StyleBox]。" #: doc/classes/Tree.xml msgid "" "[StyleBox] for a [constant TreeItem.CELL_MODE_CUSTOM] mode cell when it's " "pressed." msgstr "" "当 [constant TreeItem.CELL_MODE_CUSTOM] 模式的单元格被按下时的 [StyleBox]。" #: doc/classes/Tree.xml msgid "" "[StyleBox] for the selected items, used when the [Tree] is not being focused." msgstr "所选项目的 [StyleBox],当 [Tree] 没有获得焦点时使用。" #: doc/classes/Tree.xml msgid "" "[StyleBox] for the selected items, used when the [Tree] is being focused." msgstr "所选项目的 [StyleBox],在 [Tree] 获得焦点时使用。" #: doc/classes/Tree.xml msgid "[StyleBox] used when the title button is being hovered." msgstr "当标题按钮被悬停时使用的 [StyleBox]。" #: doc/classes/Tree.xml msgid "Default [StyleBox] for the title button." msgstr "标题按钮的默认 [StyleBox]。" #: doc/classes/Tree.xml msgid "[StyleBox] used when the title button is being pressed." msgstr "当标题按钮被按下时使用的 [StyleBox]。" #: doc/classes/TreeItem.xml msgid "Control for a single item inside a [Tree]." msgstr "控件 [Tree] 中的单个项目。" #: doc/classes/TreeItem.xml msgid "" "Control for a single item inside a [Tree]. May have child [TreeItem]s and be " "styled as well as contain buttons.\n" "You can remove a [TreeItem] by using [method Object.free]." msgstr "" "控件 [Tree] 中的单个项目。可以有子级 [TreeItem], 样式, 以及包含按钮。\n" "您可以使用 [method Object.free] 删除 [TreeItem]。" #: doc/classes/TreeItem.xml msgid "" "Adds a button with [Texture] [code]button[/code] at column [code]column[/" "code]. The [code]id[/code] is used to identify the button. If not specified, " "the next available index is used, which may be retrieved by calling [method " "get_button_count] immediately before this method. Optionally, the button can " "be [code]disabled[/code] and have a [code]tooltip[/code]." msgstr "" "在 [code]column[/code] 列添加一个带有 [Texture] [code]button[/code] 的按钮。 " "[code]id[/code] 用于标识按钮。如果未指定,则使用下一个可用索引,可以在此方法" "之前调用 [method get_button_count] 来获取该索引。另外,该按钮还可以通过 " "[code]disabled[/code] 禁用、通过 [code]tooltip[/code] 设置工具提示。" #: doc/classes/TreeItem.xml msgid "" "Calls the [code]method[/code] on the actual TreeItem and its children " "recursively. Pass parameters as a comma separated list." msgstr "" "在实际的TreeItem树项及其子项上递归地调用[code]method[/code]。以逗号分隔的列表" "形式传递参数。" #: doc/classes/TreeItem.xml msgid "Resets the background color for the given column to default." msgstr "重置指定列默认的背景颜色。" #: doc/classes/TreeItem.xml msgid "Resets the color for the given column to default." msgstr "重置指定列默认的颜色。" #: doc/classes/TreeItem.xml msgid "Deselects the given column." msgstr "取消选择指定列。" #: doc/classes/TreeItem.xml msgid "" "Removes the button at index [code]button_idx[/code] in column [code]column[/" "code]." msgstr "删除列[code]column[/code]中索引[code]button_idx[/code]处的按钮。" #: doc/classes/TreeItem.xml msgid "" "Returns the [Texture] of the button at index [code]button_idx[/code] in " "column [code]column[/code]." msgstr "" "返回在 [code]column[/code] 列中索引为 [code]button_idx[/code] 的按钮的 " "[Texture]。" #: doc/classes/TreeItem.xml msgid "" "Returns the button index if there is a button with id [code]id[/code] in " "column [code]column[/code], otherwise returns -1." msgstr "" "如果在 [code]column[/code] 列中存在 ID 为 [code]id[/code] 的按钮,则返回其索" "引号,否则返回 -1。" #: doc/classes/TreeItem.xml msgid "Returns the number of buttons in column [code]column[/code]." msgstr "返回在 [code]column[/code] 列中按钮的数量。" #: doc/classes/TreeItem.xml msgid "" "Returns the id for the button at index [code]button_idx[/code] in column " "[code]column[/code]." msgstr "" "返回在 [code]column[/code] 列中索引为 [code]button_idx[/code] 的按钮的 ID。" #: doc/classes/TreeItem.xml msgid "" "Returns the tooltip string for the button at index [code]button_idx[/code] " "in column [code]column[/code]." msgstr "" "返回在 [code]column[/code] 列中索引为 [code]button_idx[/code] 的按钮的提示信" "息字符串。" #: doc/classes/TreeItem.xml msgid "Returns the column's cell mode." msgstr "返回该列的单元格模式。" #: doc/classes/TreeItem.xml msgid "" "Returns the TreeItem's first child item or a null object if there is none." msgstr "返回 TreeItem 树项的第一个子项,如果没有,则返回一个空对象。" #: doc/classes/TreeItem.xml msgid "Returns the custom background color of column [code]column[/code]." msgstr "返回列[code]column[/code]的自定义背景颜色。" #: doc/classes/TreeItem.xml msgid "Returns the custom color of column [code]column[/code]." msgstr "返回列[code]column[/code]的自定义颜色。" #: doc/classes/TreeItem.xml msgid "Returns [code]true[/code] if [code]expand_right[/code] is set." msgstr "如果设置了[code]expand_right[/code],返回 [code]true[/code]。" #: doc/classes/TreeItem.xml msgid "Returns the given column's icon [Texture]. Error if no icon is set." msgstr "返回给定列图标的 [Texture]。如果未设置图标,则出错。" #: doc/classes/TreeItem.xml msgid "Returns the column's icon's maximum width." msgstr "返回列的图标的最大宽度。" #: doc/classes/TreeItem.xml msgid "Returns the [Color] modulating the column's icon." msgstr "返回调制列的图标的[Color]颜色。" #: doc/classes/TreeItem.xml msgid "Returns the icon [Texture] region as [Rect2]." msgstr "将图标 [Texture] 区域返回为 [Rect2]。" #: doc/classes/TreeItem.xml msgid "" "Returns the metadata value that was set for the given column using [method " "set_metadata]." msgstr "返回使用 [method set_metadata] 为指定列设置的元数据。" #: doc/classes/TreeItem.xml msgid "" "Returns the next TreeItem in the tree or a null object if there is none." msgstr "返回树中的下一个TreeItem树项,如果没有,则返回一个空对象。" #: doc/classes/TreeItem.xml msgid "" "Returns the next visible TreeItem in the tree or a null object if there is " "none.\n" "If [code]wrap[/code] is enabled, the method will wrap around to the first " "visible element in the tree when called on the last visible element, " "otherwise it returns [code]null[/code]." msgstr "" "返回树中下一个可见的TreeItem树项,如果没有,则返回空对象。\n" "如果[code]wrap[/code]被启用,当在最后一个可见元素上调用时,该方法将环绕到树中" "的第一个可见元素,否则它将返回 [code]null[/code]。" #: doc/classes/TreeItem.xml msgid "Returns the parent TreeItem or a null object if there is none." msgstr "返回父级TreeItem树项,如果没有,则返回一个空对象。" #: doc/classes/TreeItem.xml msgid "" "Returns the previous TreeItem in the tree or a null object if there is none." msgstr "返回树中的前一个TreeItem树项,如果没有,则返回一个空对象。" #: doc/classes/TreeItem.xml msgid "" "Returns the previous visible TreeItem in the tree or a null object if there " "is none.\n" "If [code]wrap[/code] is enabled, the method will wrap around to the last " "visible element in the tree when called on the first visible element, " "otherwise it returns [code]null[/code]." msgstr "" "返回树中前一个可见的TreeItem树项,如果没有,则返回null对象。\n" "如果[code]wrap[/code]被启用,当在第一个可见元素上调用时,该方法将环绕到树中最" "后一个可见元素,否则它将返回 [code]null[/code]。" #: doc/classes/TreeItem.xml msgid "Returns the value of a [constant CELL_MODE_RANGE] column." msgstr "返回 [constant CELL_MODE_RANGE] 列的值。" #: doc/classes/TreeItem.xml msgid "" "Returns a dictionary containing the range parameters for a given column. The " "keys are \"min\", \"max\", \"step\", and \"expr\"." msgstr "" "返回包含给定列的范围参数的字典。键是 \"min\"、\"max\"、\"step \"和 \"expr\"。" #: doc/classes/TreeItem.xml msgid "Gets the suffix string shown after the column value." msgstr "获取显示在列值后面的后缀字符串。" #: doc/classes/TreeItem.xml msgid "Returns the given column's text." msgstr "返回给定列的文本。" #: doc/classes/TreeItem.xml msgid "Returns the given column's text alignment." msgstr "返回给定列的文本对齐方式。" #: doc/classes/TreeItem.xml msgid "Returns the given column's tooltip." msgstr "返回给定列的工具提示。" #: doc/classes/TreeItem.xml msgid "" "Returns [code]true[/code] if the button at index [code]button_idx[/code] for " "the given column is disabled." msgstr "" "如果给定列的索引[code]button_idx[/code]处的按钮被禁用,返回 [code]true[/" "code]。" #: doc/classes/TreeItem.xml msgid "Returns [code]true[/code] if the given column is checked." msgstr "如果给定的列被选中,返回 [code]true[/code]。" #: doc/classes/TreeItem.xml msgid "Returns [code]true[/code] if column [code]column[/code] is editable." msgstr "如果列[code]column[/code]是可编辑的,则返回 [code]true[/code]。" #: doc/classes/TreeItem.xml msgid "Returns [code]true[/code] if column [code]column[/code] is selectable." msgstr "如果列[code]column[/code]是可选择的,则返回 [code]true[/code]。" #: doc/classes/TreeItem.xml msgid "Returns [code]true[/code] if column [code]column[/code] is selected." msgstr "如果列[code]column[/code]被选中,返回 [code]true[/code]。" #: doc/classes/TreeItem.xml msgid "Moves this TreeItem to the bottom in the [Tree] hierarchy." msgstr "将此TreeItem树项移动到[Tree]层次结构的底部。" #: doc/classes/TreeItem.xml msgid "Moves this TreeItem to the top in the [Tree] hierarchy." msgstr "将此TreeItem树项移动到[Tree]树层次结构的顶部。" #: doc/classes/TreeItem.xml msgid "" "Removes the given child [TreeItem] and all its children from the [Tree]. " "Note that it doesn't free the item from memory, so it can be reused later. " "To completely remove a [TreeItem] use [method Object.free]." msgstr "" "将给定的子项[TreeItem]和它的所有子项从[Tree]中移除。注意,它并未从内存中释放" "该项,所以之后可重新使用。要完全删除一个[TreeItem],请使用[method Object." "free]。" #: doc/classes/TreeItem.xml msgid "Selects the column [code]column[/code]." msgstr "选择列[code]column[/code]。" #: doc/classes/TreeItem.xml msgid "" "Sets the given column's button [Texture] at index [code]button_idx[/code] to " "[code]button[/code]." msgstr "" "设置索引[code]button_idx[/code]的给定列的按钮[code]button[/code]的[Texture]。" #: doc/classes/TreeItem.xml msgid "" "If [code]true[/code], disables the button at index [code]button_idx[/code] " "in column [code]column[/code]." msgstr "" "如果[code]true[/code],则禁用列[code]column[/code]中索引[code]button_idx[/" "code]的按钮。" #: doc/classes/TreeItem.xml msgid "" "Sets the given column's cell mode to [code]mode[/code]. See [enum " "TreeCellMode] constants." msgstr "" "设置给定列的单元格模式为[code]mode[/code]。参阅[enum TreeCellMode]常量。" #: doc/classes/TreeItem.xml msgid "If [code]true[/code], the column [code]column[/code] is checked." msgstr "如果[code]true[/code],则选中[code]column[/code]。" #: doc/classes/TreeItem.xml msgid "" "Sets the given column's custom background color and whether to just use it " "as an outline." msgstr "设置给定列的自定义背景颜色,以及是否只将其作为一个轮廓。" #: doc/classes/TreeItem.xml msgid "Sets the given column's custom color." msgstr "设置给定列的自定义颜色。" #: doc/classes/TreeItem.xml msgid "" "Sets the given column's custom draw callback to [code]callback[/code] method " "on [code]object[/code].\n" "The [code]callback[/code] should accept two arguments: the [TreeItem] that " "is drawn and its position and size as a [Rect2]." msgstr "" "设置给定列的自定义绘制回调到[code]object[/code]上的[code]callback[/code]回调" "方法。\n" "[code]callback[/code]应该接受两个参数:被绘制的[TreeItem]树项以及它的位置和大" "小是一个[Rect2]。" #: doc/classes/TreeItem.xml msgid "If [code]true[/code], column [code]column[/code] is editable." msgstr "为 [code]true[/code] 时 [code]column[/code] 列可编辑。" #: doc/classes/TreeItem.xml msgid "" "If [code]true[/code], column [code]column[/code] is expanded to the right." msgstr "为 [code]true[/code] 时 [code]column[/code] 列将向右扩展。" #: doc/classes/TreeItem.xml msgid "Sets the given column's icon [Texture]." msgstr "设置给定列的图标 [Texture]。" #: doc/classes/TreeItem.xml msgid "Sets the given column's icon's maximum width." msgstr "设置给定列图标的最大宽度。" #: doc/classes/TreeItem.xml msgid "Modulates the given column's icon with [code]modulate[/code]." msgstr "用[code]modulate[/code]调制给定列的图标。" #: doc/classes/TreeItem.xml msgid "Sets the given column's icon's texture region." msgstr "设置给定列的图标的纹理区域。" #: doc/classes/TreeItem.xml msgid "" "Sets the metadata value for the given column, which can be retrieved later " "using [method get_metadata]. This can be used, for example, to store a " "reference to the original data." msgstr "" "设置给定列的元数据,之后可用 [method get_metadata] 进行检索。例如,这可用于存" "储对原始数据的引用。" #: doc/classes/TreeItem.xml msgid "Sets the value of a [constant CELL_MODE_RANGE] column." msgstr "设置 [constant CELL_MODE_RANGE] 列的值。" #: doc/classes/TreeItem.xml msgid "" "Sets the range of accepted values for a column. The column must be in the " "[constant CELL_MODE_RANGE] mode.\n" "If [code]expr[/code] is [code]true[/code], the edit mode slider will use an " "exponential scale as with [member Range.exp_edit]." msgstr "" "设置列的可接受值的范围。该列必须处于 [constant CELL_MODE_RANGE] 模式。\n" "如果 [code]expr[/code] 是 [code]true[/code],编辑模式滑块将使用指数刻度,与 " "[member Range.exp_edit] 一样。" #: doc/classes/TreeItem.xml msgid "If [code]true[/code], the given column is selectable." msgstr "如果[code]true[/code],给定的列是可选择的。" #: doc/classes/TreeItem.xml msgid "" "Sets a string to be shown after a column's value (for example, a unit " "abbreviation)." msgstr "设置字符串,显示在列的值之后,例如,单位的缩写。" #: doc/classes/TreeItem.xml msgid "Sets the given column's text value." msgstr "设置给定列的文本值。" #: doc/classes/TreeItem.xml msgid "" "Sets the given column's text alignment. See [enum TextAlign] for possible " "values." msgstr "设置给定列的文本对齐方式。可能的值,参阅[enum TextAlign]。" #: doc/classes/TreeItem.xml msgid "Sets the given column's tooltip text." msgstr "设置给定列的工具提示文本。" #: doc/classes/TreeItem.xml msgid "If [code]true[/code], the TreeItem is collapsed." msgstr "如果[code]true[/code],TreeItem树项被折叠。" #: doc/classes/TreeItem.xml msgid "The custom minimum height." msgstr "自定义最小高度。" #: doc/classes/TreeItem.xml msgid "If [code]true[/code], folding is disabled for this TreeItem." msgstr "如果[code]true[/code],则TreeItem树项禁用折叠。" #: doc/classes/TreeItem.xml msgid "Cell contains a string." msgstr "单元包含字符串。" #: doc/classes/TreeItem.xml msgid "Cell contains a checkbox." msgstr "单元格包含复选框。" #: doc/classes/TreeItem.xml msgid "Cell contains a range." msgstr "单元包含一个范围。" #: doc/classes/TreeItem.xml msgid "Cell contains an icon." msgstr "单元包含图标。" #: doc/classes/TreeItem.xml msgid "Align text to the left. See [code]set_text_align()[/code]." msgstr "将文本向左对齐。参阅[code]set_text_align()[/code]。" #: doc/classes/TreeItem.xml msgid "Center text. See [code]set_text_align()[/code]." msgstr "将文本居中。参阅[code]set_text_align()[/code]。" #: doc/classes/TreeItem.xml msgid "Align text to the right. See [code]set_text_align()[/code]." msgstr "将文本向右对齐。参阅[code]set_text_align()[/code]。" #: doc/classes/TriangleMesh.xml msgid "Internal mesh type." msgstr "内部网格类型。" #: doc/classes/TriangleMesh.xml msgid "Mesh type used internally for collision calculations." msgstr "内部用于碰撞计算的网格类型。" #: doc/classes/Tween.xml msgid "Smoothly animates a node's properties over time." msgstr "使节点的属性随时间平滑地变化。" #: doc/classes/Tween.xml msgid "" "Tweens are useful for animations requiring a numerical property to be " "interpolated over a range of values. The name [i]tween[/i] comes from [i]in-" "betweening[/i], an animation technique where you specify [i]keyframes[/i] " "and the computer interpolates the frames that appear between them.\n" "[Tween] is more suited than [AnimationPlayer] for animations where you don't " "know the final values in advance. For example, interpolating a dynamically-" "chosen camera zoom value is best done with a [Tween] node; it would be " "difficult to do the same thing with an [AnimationPlayer] node.\n" "Here is a brief usage example that makes a 2D node move smoothly between two " "positions:\n" "[codeblock]\n" "var tween = get_node(\"Tween\")\n" "tween.interpolate_property($Node2D, \"position\",\n" " Vector2(0, 0), Vector2(100, 100), 1,\n" " Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)\n" "tween.start()\n" "[/codeblock]\n" "Many methods require a property name, such as [code]\"position\"[/code] " "above. You can find the correct property name by hovering over the property " "in the Inspector. You can also provide the components of a property directly " "by using [code]\"property:component\"[/code] (e.g. [code]position:x[/code]), " "where it would only apply to that particular component.\n" "Many of the methods accept [code]trans_type[/code] and [code]ease_type[/" "code]. The first accepts an [enum TransitionType] constant, and refers to " "the way the timing of the animation is handled (see [url=https://easings." "net/]easings.net[/url] for some examples). The second accepts an [enum " "EaseType] constant, and controls where the [code]trans_type[/code] is " "applied to the interpolation (in the beginning, the end, or both). If you " "don't know which transition and easing to pick, you can try different [enum " "TransitionType] constants with [constant EASE_IN_OUT], and use the one that " "looks best.\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "tween_cheatsheet.png]Tween easing and transition types cheatsheet[/url]\n" "[b]Note:[/b] Tween methods will return [code]false[/code] if the requested " "operation cannot be completed.\n" "[b]Note:[/b] For an alternative method of tweening, that doesn't require " "using nodes, see [SceneTreeTween]." msgstr "" "需要让数值属性在一定范围内做插值的动画可以使用 Tween。[i]Tween[/i] 这个名字来" "自动画技术 [i]in-betweening[/i](补间动画):你指定[i]关键帧[/i],而计算机则" "在关键帧之间插补出其他帧。\n" "[Tween] 比 [AnimationPlayer] 更适合于事先不知道最终数值的动画。例如,插值动态" "选择的相机变焦值最好用 [Tween] 节点完成;用 [AnimationPlayer] 节点做同样的事" "情会很困难。\n" "下面是一个简短的使用例子,让一个 2D 节点在两个位置之间平滑移动:\n" "[codeblock]\n" "var tween = get_node(\"Tween\")\n" "tween.interpolate_property($Node2D, \"position\",\n" " Vector2(0, 0), Vector2(100, 100), 1,\n" " Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)\n" "tween.start()\n" "[/codeblock]\n" "许多方法都需要提供属性名称,比如上面的 [code]\"position\"[/code]。你可以通过" "在检查器中将鼠标悬停在该属性上找到正确的属性名称。你也可以通过使用 " "[code]\"property:component\"[/code] 直接提供一个属性的分量(例如 " "[code]position:x[/code]),动画就只会对这个分量起效。\n" "许多方法接受过渡类型 [code]trans_type[/code] 和缓动类型 [code]easy_type[/" "code]。前者接受 [enum TransitionType] 常量,指的是处理动画时间的方式(请参阅 " "[url=https://easings.net/]easings.net[/url] 的一些例子)。后者接受 [enum " "EaseType] 常量,控制 [code]trans_type[/code] 应用于插值的位置(开头、结尾、或" "两处都是)。如果你不知道该选哪个过渡和缓动,你可以用 [constant EASE_IN_OUT] " "尝试不同的 [enum TransitionType] 常量,然后使用看起来最好的那个。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "tween_cheatsheet.png]Tween 缓动与过渡类型速查表[/url]\n" "[b]注意:[/b]如果无法完成所请求的操作,Tween 的方法会返回 [code]false[/" "code]。\n" "[b]注意:[/b]如果想要使用另一种形式的不需要使用节点的补间动画,请参阅 " "[SceneTreeTween]。" #: doc/classes/Tween.xml msgid "" "Follows [code]method[/code] of [code]object[/code] and applies the returned " "value on [code]target_method[/code] of [code]target[/code], beginning from " "[code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/" "code] later. Methods are called with consecutive values.\n" "Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] " "for [code]ease_type[/code] parameters. These values control the timing and " "direction of the interpolation. See the class description for more " "information." msgstr "" "跟随 [code]object[/code] 的 [code]method[/code] 方法,将其返回值应用于 " "[code]target[/code] 的 [code]target_method[/code] 方法。从 " "[code]initial_val[/code] 开始,持续时间为 [code]duration[/code] 秒,延迟为 " "[code]delay[/code] 秒。方法是用连续的值来调用的。\n" "对 [code]trans_type[/code] 使用 [enum TransitionType] 类型的值,对 " "[code]ease_type[/code] 使用 [enum EaseType] 类型的值。这些值控制的是插值的时" "间和方向。更多信息请参阅类描述。" #: doc/classes/Tween.xml msgid "" "Follows [code]property[/code] of [code]object[/code] and applies it on " "[code]target_property[/code] of [code]target[/code], beginning from " "[code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/" "code] seconds later.\n" "Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] " "for [code]ease_type[/code] parameters. These values control the timing and " "direction of the interpolation. See the class description for more " "information." msgstr "" "跟随 [code]object[/code] 的 [code]property[/code] 属性,将其应用于 " "[code]target[/code] 的 [code]target_property[/code] 属性。从 " "[code]initial_val[/code] 开始,持续时间为 [code]duration[/code] 秒,延迟为 " "[code]delay[/code] 秒。方法是用连续的值来调用的。\n" "对 [code]trans_type[/code] 使用 [enum TransitionType] 类型的值,对 " "[code]ease_type[/code] 使用 [enum EaseType] 类型的值。这些值控制的是插值的时" "间和方向。更多信息请参阅类描述。" #: doc/classes/Tween.xml msgid "" "Returns the total time needed for all tweens to end. If you have two tweens, " "one lasting 10 seconds and the other 20 seconds, it would return 20 seconds, " "as by that time all tweens would have finished." msgstr "" "返回所有补间结束所需的总时间。如果你有两个补间,一个持续 10 秒,另一个 20 " "秒,它会返回 20 秒,因为到那个时候,所有的补间都会完成。" #: doc/classes/Tween.xml msgid "" "Calls [code]callback[/code] of [code]object[/code] after [code]duration[/" "code]. [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the " "callback." msgstr "" "在 [code]duration[/code] 持续时间后,调用 [code]object[/code] 的 " "[code]callback[/code] 回调。[code]arg1[/code]-[code]arg5[/code] 是要传递给回" "调的参数。" #: doc/classes/Tween.xml msgid "" "Calls [code]callback[/code] of [code]object[/code] after [code]duration[/" "code] on the main thread (similar to [method Object.call_deferred]). " "[code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the " "callback." msgstr "" "在 [code]duration[/code] 持续时间后,在主线程上调用 [code]object[/code] 的 " "[code]callback[/code] 回调(类似 [method Object.call_deferred])。" "[code]arg1[/code]-[code]arg5[/code] 是要传递给回调的参数。" #: doc/classes/Tween.xml msgid "" "Animates [code]method[/code] of [code]object[/code] from [code]initial_val[/" "code] to [code]final_val[/code] for [code]duration[/code] seconds, " "[code]delay[/code] seconds later. Methods are called with consecutive " "values.\n" "Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] " "for [code]ease_type[/code] parameters. These values control the timing and " "direction of the interpolation. See the class description for more " "information." msgstr "" "将 [code]object[/code] 的 [code]method[/code] 方法从起始值 " "[code]initial_val[/code] 动画到最终值 [code]final_val[/code],持续时间为 " "[code]duration[/code] 秒,延迟为 [code]delay[/code] 秒。方法是用连续的值来调" "用的。\n" "对 [code]trans_type[/code] 使用 [enum TransitionType] 类型的值,对 " "[code]ease_type[/code] 使用 [enum EaseType] 类型的值。这些值控制的是插值的时" "间和方向。更多信息请参阅类描述。" #: doc/classes/Tween.xml msgid "" "Animates [code]property[/code] of [code]object[/code] from " "[code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] " "seconds, [code]delay[/code] seconds later. Setting the initial value to " "[code]null[/code] uses the current value of the property.\n" "Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] " "for [code]ease_type[/code] parameters. These values control the timing and " "direction of the interpolation. See the class description for more " "information." msgstr "" "将 [code]object[/code] 的 [code]property[/code] 属性从起始值 " "[code]initial_val[/code] 动画到最终值 [code]final_val[/code],持续时间为 " "[code]duration[/code] 秒,延迟为 [code]delay[/code] 秒。将起始值设置为 " "[code]null[/code] 会使用该属性的当前值。\n" "对 [code]trans_type[/code] 使用 [enum TransitionType] 类型的值,对 " "[code]ease_type[/code] 使用 [enum EaseType] 类型的值。这些值控制的是插值的时" "间和方向。更多信息请参阅类描述。" #: doc/classes/Tween.xml msgid "" "Returns [code]true[/code] if any tweens are currently running.\n" "[b]Note:[/b] This method doesn't consider tweens that have ended." msgstr "" "如果当前有补间正在运行,则返回 [code]true[/code]。\n" "[b]注意:[/b]这个方法不考虑已经结束的补间。" #: doc/classes/Tween.xml msgid "" "Stops animation and removes a tween, given its object and property/method " "pair. By default, all tweens are removed, unless [code]key[/code] is " "specified." msgstr "" "停止动画并移除补间,指定其对象和属性或方法的对。默认情况下,除非指定" "[code]key[/code],否则所有的补间都会被移除。" #: doc/classes/Tween.xml msgid "Stops animation and removes all tweens." msgstr "停止动画,并删除所有补间。" #: doc/classes/Tween.xml msgid "" "Resets a tween to its initial value (the one given, not the one before the " "tween), given its object and property/method pair. By default, all tweens " "are reset, unless [code]key[/code] is specified." msgstr "" "将补间重置到它的初始值,即给定的值,而不是补间之前的值,指定其对象和属性或方" "法的对。默认情况下,除非指定了[code]key[/code],否则所有的补间都会被重置。" #: doc/classes/Tween.xml msgid "" "Resets all tweens to their initial values (the ones given, not those before " "the tween)." msgstr "将所有的补间重置为它们的初始值,即给出的值,而不是补间之前的值。" #: doc/classes/Tween.xml msgid "" "Continues animating a stopped tween, given its object and property/method " "pair. By default, all tweens are resumed, unless [code]key[/code] is " "specified." msgstr "" "继续停止的补间制作动画,指定其对象和属性或方法的对。默认情况下,除非指定了" "[code]key[/code],否则所有的补间都恢复。" #: doc/classes/Tween.xml msgid "Continues animating all stopped tweens." msgstr "继续动画所有停止补间。" #: doc/classes/Tween.xml msgid "Sets the interpolation to the given [code]time[/code] in seconds." msgstr "设置插值为指定的[code]time[/code],单位秒。" #: doc/classes/Tween.xml msgid "" "Activates/deactivates the tween. See also [method stop_all] and [method " "resume_all]." msgstr "激活或停用补间。别请参阅[method stop_all]和[method resume_all]。" #: doc/classes/Tween.xml msgid "Starts the tween. You can define animations both before and after this." msgstr "开始补间。您可以在此之前和之后定义动画。" #: doc/classes/Tween.xml msgid "" "Stops a tween, given its object and property/method pair. By default, all " "tweens are stopped, unless [code]key[/code] is specified." msgstr "" "停止补间,指定其对象和属性或方法的对。除非指定了 [code]key[/code],默认情况" "下,所有补间都会停止。" #: doc/classes/Tween.xml msgid "Stops animating all tweens." msgstr "停止动画所有补间。" #: doc/classes/Tween.xml msgid "" "Animates [code]method[/code] of [code]object[/code] from the value returned " "by [code]initial_method[/code] to [code]final_val[/code] for [code]duration[/" "code] seconds, [code]delay[/code] seconds later. Methods are animated by " "calling them with consecutive values.\n" "Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] " "for [code]ease_type[/code] parameters. These values control the timing and " "direction of the interpolation. See the class description for more " "information." msgstr "" "将 [code]object[/code] 的 [code]method[/code] 方法做动画。以 " "[code]initial_method[/code] 方法的返回值作为起始值,最终值为 " "[code]final_val[/code],持续时间为 [code]duration[/code] 秒,延迟为 " "[code]delay[/code] 秒。方法是用连续的值来调用的。\n" "对 [code]trans_type[/code] 使用 [enum TransitionType] 类型的值,对 " "[code]ease_type[/code] 使用 [enum EaseType] 类型的值。这些值控制的是插值的时" "间和方向。更多信息请参阅类描述。" #: doc/classes/Tween.xml msgid "" "Animates [code]property[/code] of [code]object[/code] from the current value " "of the [code]initial_val[/code] property of [code]initial[/code] to " "[code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] " "seconds later.\n" "Use [enum TransitionType] for [code]trans_type[/code] and [enum EaseType] " "for [code]ease_type[/code] parameters. These values control the timing and " "direction of the interpolation. See the class description for more " "information." msgstr "" "将 [code]object[/code] 的 [code]property[/code] 属性做动画。以 " "[code]initial[/code] 对象的 [code]initial_val[/code] 属性的当前做作为起始值," "最终值为 [code]final_val[/code],持续时间为 [code]duration[/code] 秒,延迟为 " "[code]delay[/code] 秒。\n" "对 [code]trans_type[/code] 使用 [enum TransitionType] 类型的值,对 " "[code]ease_type[/code] 使用 [enum EaseType] 类型的值。这些值控制的是插值的时" "间和方向。更多信息请参阅类描述。" #: doc/classes/Tween.xml msgid "Returns the current time of the tween." msgstr "返回补间的当前时间。" #: doc/classes/Tween.xml msgid "The tween's animation process thread. See [enum TweenProcessMode]." msgstr "补间动画处理线程。参阅[enum TweenProcessMode]。" #: doc/classes/Tween.xml msgid "" "The tween's speed multiplier. For example, set it to [code]1.0[/code] for " "normal speed, [code]2.0[/code] for two times normal speed, or [code]0.5[/" "code] for half of the normal speed. A value of [code]0[/code] pauses the " "animation, but see also [method set_active] or [method stop_all] for this." msgstr "" "补间的速度乘数。例如,设置为 [code]1.0[/code] 为正常速度,[code]2.0[/code] 为" "正常速度的 2 倍,或者 [code]0.5[/code] 为正常速度的一半。值为 [code]0[/code] " "时,动画会暂停,另请参阅 [method set_active] 或 [method stop_all]。" #: doc/classes/Tween.xml msgid "If [code]true[/code], the tween loops." msgstr "如果[code]true[/code],补间循环。" #: doc/classes/Tween.xml msgid "Emitted when all processes in a tween end." msgstr "当补间中的所有进程结束时触发。" #: doc/classes/Tween.xml msgid "Emitted when a tween ends." msgstr "补间结束时触发。" #: doc/classes/Tween.xml msgid "Emitted when a tween starts." msgstr "当补间开始时触发。" #: doc/classes/Tween.xml msgid "Emitted at each step of the animation." msgstr "动画的每一步都触发。" #: doc/classes/Tween.xml msgid "The tween updates with the [code]_physics_process[/code] callback." msgstr "补间通过 [code]_physics_process[/code] 回调进行更新。" #: doc/classes/Tween.xml msgid "The tween updates with the [code]_process[/code] callback." msgstr "补间通过[code]_process[/code]回调进行更新。" #: doc/classes/Tween.xml msgid "The animation is interpolated linearly." msgstr "动画是线性插值的。" #: doc/classes/Tween.xml msgid "The animation is interpolated using a sine function." msgstr "动画使用正弦函数进行插值。" #: doc/classes/Tween.xml msgid "" "The animation is interpolated with a quintic (to the power of 5) function." msgstr "动画是用五次方,即5的幂函数进行插值的。" #: doc/classes/Tween.xml msgid "" "The animation is interpolated with a quartic (to the power of 4) function." msgstr "动画是用一个四次方,即4的幂函数插值的。" #: doc/classes/Tween.xml msgid "" "The animation is interpolated with a quadratic (to the power of 2) function." msgstr "动画是用二次方,即2的幂函数插值的。" #: doc/classes/Tween.xml msgid "" "The animation is interpolated with an exponential (to the power of x) " "function." msgstr "动画是用一个指数,即x的幂函数插值的。" #: doc/classes/Tween.xml msgid "" "The animation is interpolated with elasticity, wiggling around the edges." msgstr "动画弹性插值,在边缘摆动。" #: doc/classes/Tween.xml msgid "" "The animation is interpolated with a cubic (to the power of 3) function." msgstr "动画是用一个立方,即3的幂函数插值的。" #: doc/classes/Tween.xml msgid "The animation is interpolated with a function using square roots." msgstr "动画使用平方根的函数进行插值。" #: doc/classes/Tween.xml msgid "The animation is interpolated by bouncing at the end." msgstr "动画通过在末尾弹跳插值。" #: doc/classes/Tween.xml msgid "The animation is interpolated backing out at ends." msgstr "动画在末端回放插值。" #: doc/classes/Tween.xml msgid "The interpolation starts slowly and speeds up towards the end." msgstr "插值开始缓慢,并加速接近结束。" #: doc/classes/Tween.xml msgid "The interpolation starts quickly and slows down towards the end." msgstr "插值开始快速,接近结束时减慢。" #: doc/classes/Tween.xml msgid "" "A combination of [constant EASE_IN] and [constant EASE_OUT]. The " "interpolation is slowest at both ends." msgstr "[constant EASE_IN] 和 [constant EASE_OUT] 的组合。两端的插值最慢。" #: doc/classes/Tween.xml msgid "" "A combination of [constant EASE_IN] and [constant EASE_OUT]. The " "interpolation is fastest at both ends." msgstr "[constant EASE_IN] and [constant EASE_OUT]的组合。两端的插值最快。" #: doc/classes/Tweener.xml msgid "Abstract class for all Tweeners used by [SceneTreeTween]." msgstr "[SceneTreeTween] 所使用的所有 Tweener(补间器)的抽象类。" #: doc/classes/Tweener.xml msgid "" "Tweeners are objects that perform a specific animating task, e.g. " "interpolating a property or calling a method at a given time. A [Tweener] " "can't be created manually, you need to use a dedicated method from " "[SceneTreeTween]." msgstr "" "Tweener 是执行特定动画任务的对象,例如对属性进行插值、在给定的时刻调用某个方" "法。[Tweener] 无法手动创建,你需要使用 [SceneTreeTween] 中的专用方法。" #: doc/classes/Tweener.xml msgid "Emitted when the [Tweener] has just finished its job." msgstr "当该 [Tweener] 刚刚完成其任务时触发。" #: doc/classes/UDPServer.xml msgid "Helper class to implement a UDP server." msgstr "用于实现 UDP 服务器的辅助类。" #: doc/classes/UDPServer.xml msgid "" "A simple server that opens a UDP socket and returns connected " "[PacketPeerUDP] upon receiving new packets. See also [method PacketPeerUDP." "connect_to_host].\n" "After starting the server ([method listen]), you will need to [method poll] " "it at regular intervals (e.g. inside [method Node._process]) for it to " "process new packets, delivering them to the appropriate [PacketPeerUDP], and " "taking new connections.\n" "Below a small example of how it can be used:\n" "[codeblock]\n" "# server.gd\n" "extends Node\n" "\n" "var server := UDPServer.new()\n" "var peers = []\n" "\n" "func _ready():\n" " server.listen(4242)\n" "\n" "func _process(delta):\n" " server.poll() # Important!\n" " if server.is_connection_available():\n" " var peer : PacketPeerUDP = server.take_connection()\n" " var pkt = peer.get_packet()\n" " print(\"Accepted peer: %s:%s\" % [peer.get_packet_ip(), peer." "get_packet_port()])\n" " print(\"Received data: %s\" % [pkt.get_string_from_utf8()])\n" " # Reply so it knows we received the message.\n" " peer.put_packet(pkt)\n" " # Keep a reference so we can keep contacting the remote peer.\n" " peers.append(peer)\n" "\n" " for i in range(0, peers.size()):\n" " pass # Do something with the connected peers.\n" "\n" "[/codeblock]\n" "[codeblock]\n" "# client.gd\n" "extends Node\n" "\n" "var udp := PacketPeerUDP.new()\n" "var connected = false\n" "\n" "func _ready():\n" " udp.connect_to_host(\"127.0.0.1\", 4242)\n" "\n" "func _process(delta):\n" " if !connected:\n" " # Try to contact server\n" " udp.put_packet(\"The answer is... 42!\".to_utf8())\n" " if udp.get_available_packet_count() > 0:\n" " print(\"Connected: %s\" % udp.get_packet().get_string_from_utf8())\n" " connected = true\n" "[/codeblock]" msgstr "" "一个简单的服务器,它打开一个 UDP 套接字,并在收到新的数据包时,返回连接的 " "[PacketPeerUDP]。请参阅 [method PacketPeerUDP.connect_to_host]。\n" "启动服务器后([method listen]),你将需要定期 [method poll] 它(例如在 " "[method Node._process] 内),才会处理新的数据包、将它们传递给适当的 " "[PacketPeerUDP]、接受新连接。\n" "下面是一个关于如何使用它的小例子。\n" "[codeblock]\n" "# server.gd\n" "extends Node\n" "\n" "var server := UDPServer.new()\n" "var peers = []\n" "\n" "func _ready():\n" " server.listen(4242)\n" "\n" "func _process(delta):\n" " server.poll() # 重要!\n" " if server.is_connection_available():\n" " var peer : PacketPeerUDP = server.take_connection()\n" " var pkt = peer.get_packet()\n" " print(\"接受到 peer:%s:%s\" % [peer.get_packet_ip(), peer." "get_packet_port()])\n" " print(\"收到数据:%s\" % [pkt.get_string_from_utf8()])\n" " # 发出回复,这样对方就能知道我们收到了消息。\n" " peer.put_packet(pkt)\n" " # 保持引用,这样就可以不断与远程 peer 联系。\n" " peers.append(peer)\n" "\n" " for i in range(0, peers.size()):\n" " pass # 与已连接的 peer 进行交互\n" "\n" "[/codeblock]\n" "[codeblock]\n" "# client.gd\n" "extends Node\n" "\n" "var udp := PacketPeerUDP.new()\n" "var connected = false\n" "\n" "func _ready():\n" " udp.connect_to_host(\"127.0.0.1\", 4242)\n" "\n" "func _process(delta):\n" " if !connected:\n" " # 尝试联系服务器\n" " udp.put_packet(\"答案是……42!\".to_utf8())\n" " if udp.get_available_packet_count() > 0:\n" " print(\"已连接:%s\" % udp.get_packet().get_string_from_utf8())\n" " connected = true\n" "[/codeblock]" #: doc/classes/UDPServer.xml msgid "" "Returns [code]true[/code] if a packet with a new address/port combination " "was received on the socket." msgstr "" "如果在套接字中收到一个具有新地址及端口组合的数据包,则返回 [code]true[/" "code]。" #: doc/classes/UDPServer.xml msgid "" "Returns [code]true[/code] if the socket is open and listening on a port." msgstr "如果套接字是打开的,并且在监听端口,则返回 [code]true[/code]。" #: doc/classes/UDPServer.xml msgid "" "Starts the server by opening a UDP socket listening on the given port. You " "can optionally specify a [code]bind_address[/code] to only listen for " "packets sent to that address. See also [method PacketPeerUDP.listen]." msgstr "" "通过在给定的端口上打开一个 UDP 套接字来启动服务器。你可以选择指定一个 " "[code]bind_address[/code],只监听发送到该地址的数据包。参阅 [method " "PacketPeerUDP.listen]。" #: doc/classes/UDPServer.xml msgid "" "Call this method at regular intervals (e.g. inside [method Node._process]) " "to process new packets. And packet from known address/port pair will be " "delivered to the appropriate [PacketPeerUDP], any packet received from an " "unknown address/port pair will be added as a pending connection (see [method " "is_connection_available], [method take_connection]). The maximum number of " "pending connection is defined via [member max_pending_connections]." msgstr "" "定期调用这个方法,例如在[method Node._process]里面,来处理新数据包。来自已知" "地址及端口对的数据包,将被传递到相应的[PacketPeerUDP],任何从未知地址及端口对" "收到的数据包将被添加为一个待定连接,参阅[method is_connection_available], " "[method take_connection]。待定连接的最大数量通过[member " "max_pending_connections]定义。" #: doc/classes/UDPServer.xml msgid "" "Stops the server, closing the UDP socket if open. Will close all connected " "[PacketPeerUDP] accepted via [method take_connection] (remote peers will not " "be notified)." msgstr "" "停止服务器,如果 UDP 套接字处于打开状态,就关闭它。将关闭所有通过 [method " "take_connection] 接受连接的 [PacketPeerUDP](不会通知远程对等体)。" #: doc/classes/UDPServer.xml msgid "" "Returns the first pending connection (connected to the appropriate address/" "port). Will return [code]null[/code] if no new connection is available. See " "also [method is_connection_available], [method PacketPeerUDP." "connect_to_host]." msgstr "" "返回第一个挂起的连接,注,连接到适当的地址及端口。如果没有新的连接可用,将返" "回 [code]null[/code]。参阅[method is_connection_available], [method " "PacketPeerUDP.connect_to_host]。" #: doc/classes/UDPServer.xml msgid "" "Define the maximum number of pending connections, during [method poll], any " "new pending connection exceeding that value will be automatically dropped. " "Setting this value to [code]0[/code] effectively prevents any new pending " "connection to be accepted (e.g. when all your players have connected)." msgstr "" "定义最大的待定连接数,在[method poll]期间,任何超过该值的新待定连接将被自动放" "弃。把这个值设置为[code]0[/code]可以有效地防止任何新的待定连接被接受,例如," "当你的所有玩家都连接时。" #: doc/classes/UndoRedo.xml msgid "Helper to manage undo/redo operations in the editor or custom tools." msgstr "在编辑器或自定义工具中管理撤销及重做操作的辅助工具。" #: doc/classes/UndoRedo.xml msgid "" "Helper to manage undo/redo operations in the editor or custom tools. It " "works by registering methods and property changes inside \"actions\".\n" "Common behavior is to create an action, then add do/undo calls to functions " "or property changes, then committing the action.\n" "Here's an example on how to add an action to the Godot editor's own " "[UndoRedo], from a plugin:\n" "[codeblock]\n" "var undo_redo = get_undo_redo() # Method of EditorPlugin.\n" "\n" "func do_something():\n" " pass # Put your code here.\n" "\n" "func undo_something():\n" " pass # Put here the code that reverts what's done by " "\"do_something()\".\n" "\n" "func _on_MyButton_pressed():\n" " var node = get_node(\"MyNode2D\")\n" " undo_redo.create_action(\"Move the node\")\n" " undo_redo.add_do_method(self, \"do_something\")\n" " undo_redo.add_undo_method(self, \"undo_something\")\n" " undo_redo.add_do_property(node, \"position\", Vector2(100,100))\n" " undo_redo.add_undo_property(node, \"position\", node.position)\n" " undo_redo.commit_action()\n" "[/codeblock]\n" "[method create_action], [method add_do_method], [method add_undo_method], " "[method add_do_property], [method add_undo_property], and [method " "commit_action] should be called one after the other, like in the example. " "Not doing so could lead to crashes.\n" "If you don't need to register a method, you can leave [method add_do_method] " "and [method add_undo_method] out; the same goes for properties. You can also " "register more than one method/property." msgstr "" "在编辑器或自定义工具中管理撤销及重做操作的辅助工具。它的工作原理是" "在“action”(动作)中注册方法和属性的变化。\n" "常见的行为是首先创建一个动作,然后添加用于 do/undo(执行/撤销)的方法调用或属" "性更改,然后提交动作。 \n" "下面是一个插件中例子,展示如何在 Godot 编辑器自己的 [UndoRedo] 中添加一个动" "作。 \n" "[codeblock]\n" "var undo_redo = get_undo_redo() # EditorPlugin 的方法。\n" "\n" "func do_something():\n" " pass # 在此处添加你的代码。\n" "\n" "func undo_something():\n" " pass # 在此处添加用于恢复“do_something()”所做修改的代码。\n" "\n" "func _on_MyButton_pressed():\n" " var node = get_node(\"MyNode2D\")\n" " undo_redo.create_action(\"移动节点\")\n" " undo_redo.add_do_method(self, \"do_something\")\n" " undo_redo.add_undo_method(self, \"undo_something\")\n" " undo_redo.add_do_property(node, \"position\", Vector2(100,100))\n" " undo_redo.add_undo_property(node, \"position\", node.position)\n" " undo_redo.commit_action()\n" "[/codeblock]\n" "应该像例子中那样依次调用 [method create_action]、[method add_do_method]、" "[method add_undo_method]、[method add_do_property]、[method " "add_undo_property]、[method commit_action],否则可能会导致崩溃。\n" "如果你不需要注册某个方法,你可以不注册 [method add_do_method] 和 [method " "add_undo_method];对于属性也是这样。你也可以注册一个以上的方法及属性。" #: doc/classes/UndoRedo.xml msgid "Register a method that will be called when the action is committed." msgstr "注册一个方法,这个方法会在动作被提交时调用。" #: doc/classes/UndoRedo.xml msgid "Register a property value change for \"do\"." msgstr "为“do”注册属性值的更改。" #: doc/classes/UndoRedo.xml msgid "" "Register a reference for \"do\" that will be erased if the \"do\" history is " "lost. This is useful mostly for new nodes created for the \"do\" call. Do " "not use for resources." msgstr "" "为“do”注册一个引用,该引用会在“do”的历史丢失时删除。主要针对的是在“do”调用中" "创建的新节点。请不要用于资源。" #: doc/classes/UndoRedo.xml msgid "Register a method that will be called when the action is undone." msgstr "注册一个方法,这个方法会在动作被撤销时调用。" #: doc/classes/UndoRedo.xml msgid "Register a property value change for \"undo\"." msgstr "为“undo”注册属性值的更改。" #: doc/classes/UndoRedo.xml msgid "" "Register a reference for \"undo\" that will be erased if the \"undo\" " "history is lost. This is useful mostly for nodes removed with the \"do\" " "call (not the \"undo\" call!)." msgstr "" "为“undo”注册一个引用,该引用会在“undo”的历史丢失时删除。主要针对的是在“do”调" "用删除的节点(而非“undo”调用!)。" #: doc/classes/UndoRedo.xml msgid "" "Clear the undo/redo history and associated references.\n" "Passing [code]false[/code] to [code]increase_version[/code] will prevent the " "version number to be increased from this." msgstr "" "清除撤销/重做历史和相关的引用。\n" "将 [code]false[/code] 传递给 [code]encreate_version[/code] 将阻止版本号由此增" "加。" #: doc/classes/UndoRedo.xml msgid "" "Commit the action. All \"do\" methods/properties are called/set when this " "function is called." msgstr "提交动作。当这个函数被调用时,所有“do”的方法/属性都会被调用/设置。" #: doc/classes/UndoRedo.xml msgid "" "Create a new action. After this is called, do all your calls to [method " "add_do_method], [method add_undo_method], [method add_do_property], and " "[method add_undo_property], then commit the action with [method " "commit_action].\n" "The way actions are merged is dictated by the [code]merge_mode[/code] " "argument. See [enum MergeMode] for details." msgstr "" "创建一个新的动作。在这个动作被调用后,完成所有对 [method add_do_method]、" "[method add_undo_method]、[method add_do_property] 和 [method " "add_undo_property] 的调用,然后用 [method commit_action] 提交这个动作。\n" "动作的合并方式由 [code]merge_mode[/code] 参数决定。详情参阅 [enum " "MergeMode]。" #: doc/classes/UndoRedo.xml msgid "Gets the name of the current action." msgstr "获取当前动作的名称。" #: doc/classes/UndoRedo.xml msgid "" "Gets the version. Every time a new action is committed, the [UndoRedo]'s " "version number is increased automatically.\n" "This is useful mostly to check if something changed from a saved version." msgstr "" "获取版本。每次提交一个新的操作,[UndoRedo] 的版本号都会自动增加。\n" "这主要用于检查保存的版本是否发生了更改。" #: doc/classes/UndoRedo.xml msgid "" "Returns [code]true[/code] if the [UndoRedo] is currently committing the " "action, i.e. running its \"do\" method or property change (see [method " "commit_action])." msgstr "" "如果 [UndoRedo] 当前正在提交动作,即运行其“do”的方法或属性变化,则返回 " "[code]true[/code](请参阅 [method commit_action])。" #: doc/classes/UndoRedo.xml msgid "Redo the last action." msgstr "重做上一个动作。" #: doc/classes/UndoRedo.xml msgid "Undo the last action." msgstr "撤销上一个动作。" #: doc/classes/UndoRedo.xml msgid "Called when [method undo] or [method redo] was called." msgstr "当 [method undo] 或 [method redo] 被调用时调用。" #: doc/classes/UndoRedo.xml msgid "Makes \"do\"/\"undo\" operations stay in separate actions." msgstr "使“do”/“undo”操作保持在单独的动作中。" #: doc/classes/UndoRedo.xml msgid "" "Makes so that the action's \"do\" operation is from the first action created " "and the \"undo\" operation is from the last subsequent action with the same " "name." msgstr "" "使动作的“do”的操作来自于创建的第一个动作,“undo”的操作来自于最后一个同名的后" "续动作。" #: doc/classes/UndoRedo.xml msgid "Makes subsequent actions with the same name be merged into one." msgstr "使具有相同名称的后续动作合并为一个。" #: modules/upnp/doc_classes/UPNP.xml msgid "UPNP network functions." msgstr "UPNP 网络功能。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Provides UPNP functionality to discover [UPNPDevice]s on the local network " "and execute commands on them, like managing port mappings (port forwarding) " "and querying the local and remote network IP address. Note that methods on " "this class are synchronous and block the calling thread.\n" "To forward a specific port:\n" "[codeblock]\n" "const PORT = 7777\n" "var upnp = UPNP.new()\n" "upnp.discover(2000, 2, \"InternetGatewayDevice\")\n" "upnp.add_port_mapping(port)\n" "[/codeblock]\n" "To close a specific port (e.g. after you have finished using it):\n" "[codeblock]\n" "upnp.delete_port_mapping(port)\n" "[/codeblock]\n" "[b]Note:[/b] UPnP discovery blocks the current thread. To perform discovery " "without blocking the main thread, use [Thread]s like this:\n" "[codeblock]\n" "# Emitted when UPnP port mapping setup is completed (regardless of success " "or failure).\n" "signal upnp_completed(error)\n" "\n" "# Replace this with your own server port number between 1025 and 65535.\n" "const SERVER_PORT = 3928\n" "var thread = null\n" "\n" "func _upnp_setup(server_port):\n" " # UPNP queries take some time.\n" " var upnp = UPNP.new()\n" " var err = upnp.discover()\n" "\n" " if err != OK:\n" " push_error(str(err))\n" " emit_signal(\"upnp_completed\", err)\n" " return\n" "\n" " if upnp.get_gateway() and upnp.get_gateway().is_valid_gateway():\n" " upnp.add_port_mapping(server_port, server_port, ProjectSettings." "get_setting(\"application/config/name\"), \"UDP\")\n" " upnp.add_port_mapping(server_port, server_port, ProjectSettings." "get_setting(\"application/config/name\"), \"TCP\")\n" " emit_signal(\"upnp_completed\", OK)\n" "\n" "func _ready():\n" " thread = Thread.new()\n" " thread.start(self, \"_upnp_setup\", SERVER_PORT)\n" "\n" "func _exit_tree():\n" " # Wait for thread finish here to handle game exit while the thread is " "running.\n" " thread.wait_to_finish()\n" "[/codeblock]" msgstr "" "提供 UPNP 功能来发现本地网络上的 [UPNPDevice],并对它们执行指令,如管理端口映" "射(端口转发)和查询本地和远程网络 IP 地址。注意,这个类的方法是同步的,会阻" "塞调用线程。\n" "要转发一个特定的端口:\n" "[codeblock]\n" "const PORT = 7777\n" "var upnp = UPNP.new()\n" "upnp.discover(2000, 2, \"InternetGatewayDevice\")\n" "upnp.add_port_mapping(port)\n" "[/codeblock]\n" "要关闭一个特定的端口(例如,在你使用完它之后):\n" "[codeblock]\n" "upnp.delete_port_mapping(port)\n" "[/codeblock]\n" "[b]注意:[/b]UPnP 发现会阻塞当前线程。要在不阻塞主线程的情况下执行发现,可以" "像这样使用 [Thread]:\n" "[codeblock]\n" "# 当完成 UPnP 端口映射设置时发出(无论成功或失败)。\n" "signal upnp_completed(error)\n" "\n" "# 将其替换为您自己的服务器端口号(介于 1025 和 65535之间)。\n" "const SERVER_PORT = 3928\n" "var thread = null\n" "\n" "func _upnp_setup(server_port):\n" " # UPNP 查询需要一些时间。\n" " var upnp = UPNP.new()\n" " var err = upnp.discover()\n" "\n" " if err != OK:\n" " push_error(str(err))\n" " emit_signal(\"upnp_completed\", err)\n" " return\n" "\n" " if upnp.get_gateway() and upnp.get_gateway().is_valid_gateway():\n" " upnp.add_port_mapping(server_port, server_port, ProjectSettings." "get_setting(\"application/config/name\"), \"UDP\")\n" " upnp.add_port_mapping(server_port, server_port, ProjectSettings." "get_setting(\"application/config/name\"), \"TCP\")\n" " emit_signal(\"upnp_completed\", OK)\n" "\n" "func _ready():\n" " thread = Thread.new()\n" " thread.start(self, \"_upnp_setup\", SERVER_PORT)\n" "\n" "func _exit_tree():\n" " # 当线程正在运行时,在这里等待线程结束来处理游戏退出。\n" " thread.wait_to_finish()\n" "[/codeblock]" #: modules/upnp/doc_classes/UPNP.xml msgid "Adds the given [UPNPDevice] to the list of discovered devices." msgstr "将给定的 [UPNPDevice] 添加到已发现设备的列表中。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Adds a mapping to forward the external [code]port[/code] (between 1 and " "65535) on the default gateway (see [method get_gateway]) to the " "[code]internal_port[/code] on the local machine for the given protocol " "[code]proto[/code] (either [code]TCP[/code] or [code]UDP[/code], with UDP " "being the default). If a port mapping for the given port and protocol " "combination already exists on that gateway device, this method tries to " "overwrite it. If that is not desired, you can retrieve the gateway manually " "with [method get_gateway] and call [method add_port_mapping] on it, if any.\n" "If [code]internal_port[/code] is [code]0[/code] (the default), the same port " "number is used for both the external and the internal port (the [code]port[/" "code] value).\n" "The description ([code]desc[/code]) is shown in some router UIs and can be " "used to point out which application added the mapping. The mapping's lease " "duration can be limited by specifying a [code]duration[/code] (in seconds). " "However, some routers are incompatible with one or both of these, so use " "with caution and add fallback logic in case of errors to retry without them " "if in doubt.\n" "See [enum UPNPResult] for possible return values." msgstr "" "添加一个映射,将默认网关上的外部[code]port[/code],介于1和65535之间,转发到本" "地机器上的[code]internal_port[/code],用于指定协议[code]proto[/code],即" "[code]TCP[/code]或[code]UDP[/code],默认为UDP。如果该网关设备上已经存在给定端" "口和协议组合的端口映射,该方法将尝试覆盖它。如果不希望这样,你可以用[method " "get_gateway]手动检索该网关,如果有的话,就调用[method add_port_mapping]。\n" "如果[code]internal_port[/code]是[code]0[/code](默认值),外部和内部端口都使" "用相同的端口号([code]port[/code]值)。\n" "描述([code]desc[/code])显示在一些路由器的UI中,可以用来指出是哪个应用添加了" "映射。可以通过指定[code]duration[/code](单位:秒)来限制映射的租用期限。然" "而,有些路由器与其中的个别不兼容,所以要谨慎使用,并在出错时添加回退逻辑,如" "果有疑问,可以在没有它们的情况下重试。\n" "参阅[method get_gateway]。参阅[enum UPNPResult],了解可能的返回值。" #: modules/upnp/doc_classes/UPNP.xml msgid "Clears the list of discovered devices." msgstr "清除已发现设备的列表。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Deletes the port mapping for the given port and protocol combination on the " "default gateway (see [method get_gateway]) if one exists. [code]port[/code] " "must be a valid port between 1 and 65535, [code]proto[/code] can be either " "[code]TCP[/code] or [code]UDP[/code]. See [enum UPNPResult] for possible " "return values." msgstr "" "删除默认网关上给定端口和协议组合的端口映射,如果存在的话。[code]port[/code]必" "须是1到65535之间的有效端口,[code]proto[/code]可以是[code]TCP[/code]或" "[code]UDP[/code]。可能的返回值,参阅[enum UPNPResult]。参阅[method " "get_gateway]。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Discovers local [UPNPDevice]s. Clears the list of previously discovered " "devices.\n" "Filters for IGD (InternetGatewayDevice) type devices by default, as those " "manage port forwarding. [code]timeout[/code] is the time to wait for " "responses in milliseconds. [code]ttl[/code] is the time-to-live; only touch " "this if you know what you're doing.\n" "See [enum UPNPResult] for possible return values." msgstr "" "发现本地的[UPNPDevice]。清除先前发现的设备的列表。\n" "默认情况下过滤IGD(InternetGatewayDevice)类型的设备,因为这些设备管理端口转" "发。[code]timeout[/code] 是等待响应的时间,单位是毫秒。[code]ttl[/code]是生存" "时间;只有在你了解在做什么的情况下才会遇到这个。\n" "参阅[enum UPNPResult]了解可能的返回值。" #: modules/upnp/doc_classes/UPNP.xml msgid "Returns the [UPNPDevice] at the given [code]index[/code]." msgstr "返回给定[code]index[/code]处的[UPNPDevice]。" #: modules/upnp/doc_classes/UPNP.xml msgid "Returns the number of discovered [UPNPDevice]s." msgstr "返回已发现的[UPNPDevice]的数量。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Returns the default gateway. That is the first discovered [UPNPDevice] that " "is also a valid IGD (InternetGatewayDevice)." msgstr "" "返回默认网关。这是第一个发现的[UPNPDevice],也是一个有效的IGD" "(InternetGatewayDevice)。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Returns the external [IP] address of the default gateway (see [method " "get_gateway]) as string. Returns an empty string on error." msgstr "" "返回默认网关的外部[IP]地址字符串。错误时返回一个空字符串。参阅[method " "get_gateway]。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Removes the device at [code]index[/code] from the list of discovered devices." msgstr "将[code]index[/code]处的设备从已发现的设备列表中移除。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Sets the device at [code]index[/code] from the list of discovered devices to " "[code]device[/code]." msgstr "" "将[code]index[/code]处的设备从已发现的设备列表中设置为[code]device[/code]。" #: modules/upnp/doc_classes/UPNP.xml msgid "If [code]true[/code], IPv6 is used for [UPNPDevice] discovery." msgstr "如果[code]true[/code],则IPv6用于[UPNPDevice]发现。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "If [code]0[/code], the local port to use for discovery is chosen " "automatically by the system. If [code]1[/code], discovery will be done from " "the source port 1900 (same as destination port). Otherwise, the value will " "be used as the port." msgstr "" "如果[code]0[/code],系统会自动选择用于发现的本地端口。如果[code]1[/code],将" "从源端口1900进行发现,注,与目的端口相同。否则,将使用该值作为端口。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Multicast interface to use for discovery. Uses the default multicast " "interface if empty." msgstr "用于发现的多播接口。如果为空,则使用默认的多播接口。" #: modules/upnp/doc_classes/UPNP.xml msgid "UPNP command or discovery was successful." msgstr "UPNP命令或发现成功。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Not authorized to use the command on the [UPNPDevice]. May be returned when " "the user disabled UPNP on their router." msgstr "" "未授权在[UPNPDevice]上使用该命令。当用户在其路由器上禁用UPNP时,可能会被返" "回。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "No port mapping was found for the given port, protocol combination on the " "given [UPNPDevice]." msgstr "在给定的[UPNPDevice]上没有找到给定端口、协议组合的端口映射。" #: modules/upnp/doc_classes/UPNP.xml msgid "Inconsistent parameters." msgstr "参数不一致。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "No such entry in array. May be returned if a given port, protocol " "combination is not found on an [UPNPDevice]." msgstr "" "数组中没有此条目。如果在[UPNPDevice]上没有找到给定的端口、协议组合,可能会被" "返回。" #: modules/upnp/doc_classes/UPNP.xml msgid "The action failed." msgstr "操作失败。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "The [UPNPDevice] does not allow wildcard values for the source IP address." msgstr "[UPNPDevice]不允许源IP地址的通配符值。" #: modules/upnp/doc_classes/UPNP.xml msgid "The [UPNPDevice] does not allow wildcard values for the external port." msgstr "[UPNPDevice]不允许外部端口的通配符值。" #: modules/upnp/doc_classes/UPNP.xml msgid "The [UPNPDevice] does not allow wildcard values for the internal port." msgstr "[UPNPDevice]不允许内部端口的通配符值。" #: modules/upnp/doc_classes/UPNP.xml msgid "The remote host value must be a wildcard." msgstr "远程主机值必须是通配符。" #: modules/upnp/doc_classes/UPNP.xml msgid "The external port value must be a wildcard." msgstr "外部端口值必须是通配符。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "No port maps are available. May also be returned if port mapping " "functionality is not available." msgstr "没有可用的端口映射。如果端口映射功能不可用,也可能被返回。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Conflict with other mechanism. May be returned instead of [constant " "UPNP_RESULT_CONFLICT_WITH_OTHER_MAPPING] if a port mapping conflicts with an " "existing one." msgstr "" "与其他机制冲突。如果一个端口映射与现有的冲突,可能会被返回,而不是[constant " "UPNP_RESULT_CONFLICT_WITH_OTHER_MAPPING]。" #: modules/upnp/doc_classes/UPNP.xml msgid "Conflict with an existing port mapping." msgstr "与现有的端口映射相冲突。" #: modules/upnp/doc_classes/UPNP.xml msgid "External and internal port values must be the same." msgstr "外部和内部端口值必须相同。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "Only permanent leases are supported. Do not use the [code]duration[/code] " "parameter when adding port mappings." msgstr "只支持永久租用。在添加端口映射时,不要使用[code]duration[/code]参数。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid gateway." msgstr "无效网关。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid port." msgstr "无效端口。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid protocol." msgstr "无效协议。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid duration." msgstr "无效持续时间。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid arguments." msgstr "无效参数。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid response." msgstr "无效响应。" #: modules/upnp/doc_classes/UPNP.xml msgid "Invalid parameter." msgstr "无效参数。" #: modules/upnp/doc_classes/UPNP.xml modules/upnp/doc_classes/UPNPDevice.xml msgid "HTTP error." msgstr "HTTP错误。" #: modules/upnp/doc_classes/UPNP.xml msgid "Socket error." msgstr "套接字错误。" #: modules/upnp/doc_classes/UPNP.xml msgid "Error allocating memory." msgstr "分配内存时出错。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "No gateway available. You may need to call [method discover] first, or " "discovery didn't detect any valid IGDs (InternetGatewayDevices)." msgstr "" "没有可用的网关。你可能需要先调用[method discover] ,否则发现没有检测到任何有" "效的IGD(InternetGatewayDevices)。" #: modules/upnp/doc_classes/UPNP.xml msgid "" "No devices available. You may need to call [method discover] first, or " "discovery didn't detect any valid [UPNPDevice]s." msgstr "" "没有可用的设备。你可能需要先调用[method discover],或者发现没有检测到任何有效" "的[UPNPDevice]。" #: modules/upnp/doc_classes/UPNP.xml modules/upnp/doc_classes/UPNPDevice.xml msgid "Unknown error." msgstr "未知错误。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "UPNP device." msgstr "UPNP 设备。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "" "UPNP device. See [UPNP] for UPNP discovery and utility functions. Provides " "low-level access to UPNP control commands. Allows to manage port mappings " "(port forwarding) and to query network information of the device (like local " "and external IP address and status). Note that methods on this class are " "synchronous and block the calling thread." msgstr "" "UPNP设备。参阅 [UPNP] 了解UPNP发现和实用功能。提供对UPNP控制命令的低层访问。" "允许管理端口映射(端口转发)和查询设备的网络信息,如本地和外部IP地址和状态。" "请注意,这个类的方法是同步的,会阻塞调用线程。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "" "Adds a port mapping to forward the given external port on this [UPNPDevice] " "for the given protocol to the local machine. See [method UPNP." "add_port_mapping]." msgstr "" "添加一个端口映射,将这个[UPNPDevice]上给定的外部端口转发到本地机器上,以给定" "的协议。参阅 [method UPNP.add_port_mapping]。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "" "Deletes the port mapping identified by the given port and protocol " "combination on this device. See [method UPNP.delete_port_mapping]." msgstr "" "删除该设备上由给定的端口和协议组合确定的端口映射。参阅[method UPNP." "delete_port_mapping]。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "" "Returns [code]true[/code] if this is a valid IGD (InternetGatewayDevice) " "which potentially supports port forwarding." msgstr "" "如果这是一个有效的IGD(InternetGatewayDevice),可能支持端口转发,则返回 " "[code]true[/code]。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "" "Returns the external IP address of this [UPNPDevice] or an empty string." msgstr "返回这个[UPNPDevice]的外部IP地址或空字符串。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "URL to the device description." msgstr "设备描述的URL。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "IDG control URL." msgstr "IDG控件URL。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "" "Address of the local machine in the network connecting it to this " "[UPNPDevice]." msgstr "将其连接到该[UPNPDevice]的网络中的本地机器的地址。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "IGD service type." msgstr "IGD服务类型。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "IGD status. See [enum IGDStatus]." msgstr "IGD状态。参阅[enum IGDStatus]。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Service type." msgstr "服务类型。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "OK." msgstr "OK。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Empty HTTP response." msgstr "空的HTTP响应。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Returned response contained no URLs." msgstr "返回的响应不包含任何URL。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Not a valid IGD." msgstr "不是有效的 IGD。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Disconnected." msgstr "已断开连接。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Unknown device." msgstr "未知设备。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Invalid control." msgstr "无效控件。" #: modules/upnp/doc_classes/UPNPDevice.xml msgid "Memory allocation error." msgstr "内存分配错误。" #: doc/classes/Variant.xml msgid "The most important data type in Godot." msgstr "Godot 中最重要的数据类型。" #: doc/classes/Variant.xml msgid "" "In computer programming, a Variant class is a class that is designed to " "store a variety of other types. Dynamic programming languages like PHP, Lua, " "JavaScript and GDScript like to use them to store variables' data on the " "backend. With these Variants, properties are able to change value types " "freely.\n" "[codeblock]\n" "var foo = 2 # foo is dynamically an integer\n" "foo = \"Now foo is a string!\"\n" "foo = Reference.new() # foo is an Object\n" "var bar: int = 2 # bar is a statically typed integer.\n" "# bar = \"Uh oh! I can't make static variables become a different type!\"\n" "[/codeblock]\n" "Godot tracks all scripting API variables within Variants. Without even " "realizing it, you use Variants all the time. When a particular language " "enforces its own rules for keeping data typed, then that language is " "applying its own custom logic over the base Variant scripting API.\n" "- GDScript automatically wrap values in them. It keeps all data in plain " "Variants by default and then optionally enforces custom static typing rules " "on variable types.\n" "- VisualScript tracks properties inside Variants as well, but it also uses " "static typing. The GUI interface enforces that properties have a particular " "type that doesn't change over time.\n" "- C# is statically typed, but uses the Mono [code]object[/code] type in " "place of Godot's Variant class when it needs to represent a dynamic value. " "[code]object[/code] is the Mono runtime's equivalent of the same concept.\n" "- The statically-typed language NativeScript C++ does not define a built-in " "Variant-like class. Godot's GDNative bindings provide their own godot::" "Variant class for users; Any point at which the C++ code starts interacting " "with the Godot runtime is a place where you might have to start wrapping " "data inside Variant objects.\n" "The global [method @GDScript.typeof] function returns the enumerated value " "of the Variant type stored in the current variable (see [enum Variant." "Type]).\n" "[codeblock]\n" "var foo = 2\n" "match typeof(foo):\n" " TYPE_NIL:\n" " print(\"foo is null\")\n" " TYPE_INTEGER:\n" " print(\"foo is an integer\")\n" " TYPE_OBJECT:\n" " # Note that Objects are their own special category.\n" " # To get the name of the underlying Object type, you need the " "`get_class()` method.\n" " print(\"foo is a(n) %s\" % foo.get_class()) # inject the class name " "into a formatted string.\n" " # Note also that there is not yet any way to get a script's " "`class_name` string easily.\n" " # To fetch that value, you need to dig deeply into a hidden " "ProjectSettings setting: an Array of Dictionaries called " "\"_global_script_classes\".\n" " # Open your project.godot file to see it up close.\n" "[/codeblock]\n" "A Variant takes up only 20 bytes and can store almost any engine datatype " "inside of it. Variants are rarely used to hold information for long periods " "of time. Instead, they are used mainly for communication, editing, " "serialization and moving data around.\n" "Godot has specifically invested in making its Variant class as flexible as " "possible; so much so that it is used for a multitude of operations to " "facilitate communication between all of Godot's systems.\n" "A Variant:\n" "- Can store almost any datatype.\n" "- Can perform operations between many variants. GDScript uses Variant as its " "atomic/native datatype.\n" "- Can be hashed, so it can be compared quickly to other variants.\n" "- Can be used to convert safely between datatypes.\n" "- Can be used to abstract calling methods and their arguments. Godot exports " "all its functions through variants.\n" "- Can be used to defer calls or move data between threads.\n" "- Can be serialized as binary and stored to disk, or transferred via " "network.\n" "- Can be serialized to text and use it for printing values and editable " "settings.\n" "- Can work as an exported property, so the editor can edit it universally.\n" "- Can be used for dictionaries, arrays, parsers, etc.\n" "[b]Containers (Array and Dictionary):[/b] Both are implemented using " "variants. A [Dictionary] can match any datatype used as key to any other " "datatype. An [Array] just holds an array of Variants. Of course, a Variant " "can also hold a [Dictionary] and an [Array] inside, making it even more " "flexible.\n" "Modifications to a container will modify all references to it. A [Mutex] " "should be created to lock it if multi-threaded access is desired." msgstr "" "在计算机编程中,Variant(变体)类是用来存储各种其他类型的类。像 PHP、 Lua、 " "JavaScript 和 GDScript 这样的动态编程语言喜欢用它们在后端存储变量数据。使用 " "Variant 的属性可以自由地更改值类型。\n" "[codeblock]\n" "var foo = 2 # foo 是一个动态类型的整数\n" "foo = \"现在 foo 是字符串了!\"\n" "foo = Reference.new() # foo 是一个 Object\n" "var bar: int = 2 # bar 是一个静态类型的整数。\n" "# bar = \"诶呀!我没法让静态变量变成其他类型!\"\n" "[/codeblock]\n" "Godot 在 Variant 中跟踪所有脚本 API 变量。你一直在无意中使用 Variant。当一种" "特定的语言为保持数据类型而执行自己的规则时,那么该语言就在基础变量脚本 API 上" "应用自己的自定义逻辑。\n" "- GDScript 会自动将数值包装。它默认将所有数据保存在普通的 Variant 中,然后可" "选择对变量类型执行自定义的静态类型化规则。\n" "- VisualScript 也跟踪 Variant 中的属性,但它也使用静态类型。GUI 界面强制要求" "属性有一个特定的类型,并且不随时间变化。\n" "- C# 是静态类型的,但是当它需要表示一个动态值时,使用 Mono [code]object[/" "code] 类型来代替 Godot 的 Variant 类。[code]object[/code] 是 Mono 运行时对应" "的同一概念。\n" "- 静态类型的语言 NativeScript C++ 没有定义一个内置的类似 Variant 的类。Godot " "的 GDNative 绑定为用户提供了 godot::Variant 的类;C++ 代码开始与 Godot 运行时" "交互的地方,你都可能要用 Variant 对象来包装数据。\n" "全局 [method @GDScript.typeof] 函数返回存储在当前变量中的 Variant 类型的枚举" "值,请参阅 [enum Variant.Type]。\n" "[codeblock]\n" "var foo = 2\n" "match typeof(foo):\n" " TYPE_NIL:\n" " print(\"foo 是 null\")\n" " TYPE_INTEGER:\n" " print(\"foo 是整数\")\n" " TYPE_OBJECT:\n" " # 请注意,Object 是单独的特殊类别。\n" " # 要获取实际的 Object 类型,你需要使用 `get_class()` 方法。\n" " print(\"foo 是 %s\" % foo.get_class()) # 向格式化字符串中注入类名。\n" " # 另外请注意,目前无法通过简单的方法获取脚本的 `class_name` 字符" "串。\n" " # 要获取该值,你需要深入 ProjectSettings 设置查看隐藏" "的“_global_script_classes”,这是一个字典的数组。\n" " # 你可以打开 project.godot 文件进行详细查看。\n" "[/codeblock]\n" "一个 Variant 只占 20 个字节,可以在其中存储几乎所有的引擎数据类型。Variant 很" "少被用来长期保存信息。相反,它们主要用于通信、编辑、序列化和移动数据。\n" "Godot 特别致力于使其 Variant 类尽可能灵活;以使它可被用于各种操作,促进 " "Godot 所有系统之间的联系。\n" "Variant:\n" "- 可以存储几乎任何数据类型。\n" "- 可以在许多 Variant 之间执行操作。GDScript 使用 Variant 作为其原子及原生数据" "类型。\n" "- 可以被哈希,所以可以快速与其他 Variant 进行比较。\n" "- 可以用于数据类型之间的安全转换。\n" "- 可以用来抽象调用方法和它们的参数。Godot 通过 Variant 导出所有函数。\n" "- 可以用来推迟调用或在线程之间移动数据。\n" "- 可以序列化为二进制并存储到磁盘,或通过网络传输。\n" "- 可以序列化为文本,用于打印数值和可编辑设置。\n" "- 可以作为一个导出的属性工作,所以编辑器可以通用的编辑它。\n" "- 可以用于字典、数组、解析器等。\n" "[b]容器(数组和字典):[/b]都是用 Variant 来实现的。一个 [Dictionary] 可以匹" "配任何作为键的数据类型到任何其他数据类型。一个 [Array] 只是持有一个 Variant " "的数组。当然,一个 Variant 也可以在里面容纳一个 [Dictionary] 和一个 [Array]," "使其更加灵活。\n" "对一个容器的修改将修改对它的所有引用。如果需要多线程访问,应该创建一个 " "[Mutex] 来锁定它。" #: doc/classes/VBoxContainer.xml msgid "Vertical box container." msgstr "垂直盒式容器。" #: doc/classes/VBoxContainer.xml msgid "Vertical box container. See [BoxContainer]." msgstr "垂直盒式容器。请参阅 [BoxContainer]。" #: doc/classes/VBoxContainer.xml msgid "The vertical space between the [VBoxContainer]'s elements." msgstr "[VBoxContainer]的元素之间的垂直空间。" #: doc/classes/Vector2.xml msgid "Vector used for 2D math." msgstr "用于二维数学的向量。" #: doc/classes/Vector2.xml msgid "" "2-element structure that can be used to represent positions in 2D space or " "any other pair of numeric values.\n" "[b]Note:[/b] In a boolean context, a Vector2 will evaluate to [code]false[/" "code] if it's equal to [code]Vector2(0, 0)[/code]. Otherwise, a Vector2 will " "always evaluate to [code]true[/code]." msgstr "" "2 元素结构,可用于表示 2D 空间中的坐标或其他任何一对数字值。\n" "[b]注意:[/b]在布尔语境中,如果 Vector2 等于 [code]Vector2(0, 0)[/code],它将" "评估为 [code]false[/code]。否则,Vector2 将总是评估为 [code]true[/code]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "3Blue1Brown Essence of Linear Algebra" msgstr "3Blue1Brown《线性代数的本质》" #: doc/classes/Vector2.xml msgid "" "Constructs a new Vector2 from the given [code]x[/code] and [code]y[/code]." msgstr "从给定的 [code]x[/code] 和 [code]y[/code] 构建新的 Vector2。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a new vector with all components in absolute values (i.e. positive)." msgstr "返回一个新的向量,其所有分量都是绝对值,即正值。" #: doc/classes/Vector2.xml msgid "" "Returns this vector's angle with respect to the positive X axis, or [code]" "(1, 0)[/code] vector, in radians.\n" "For example, [code]Vector2.RIGHT.angle()[/code] will return zero, " "[code]Vector2.DOWN.angle()[/code] will return [code]PI / 2[/code] (a quarter " "turn, or 90 degrees), and [code]Vector2(1, -1).angle()[/code] will return " "[code]-PI / 4[/code] (a negative eighth turn, or -45 degrees).\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "vector2_angle.png]Illustration of the returned angle.[/url]\n" "Equivalent to the result of [method @GDScript.atan2] when called with the " "vector's [member y] and [member x] as parameters: [code]atan2(y, x)[/code]." msgstr "" "返回这个向量相对于正X轴的角度,或[code](1, 0)[/code]向量,单位为弧度。\n" "例如,[code]Vector2.RIGHT.angle()[/code]将返回0,[code]Vector2.DOWN.angle()[/" "code]将返回 [code]PI / 2[/code](四分之一转,或90度),[code]Vector2(1, -1)." "angle()[/code]将返回 [code]-PI / 4[/code] (负八分之一转,或-45度)。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "vector2_angle.png]返回角度的说明。[/url]\n" "相当于以向量的[member y] 和 [member x]为参数调用[method @GDScript.atan2]时的" "结果。[code]atan2(y, x)[/code]。" #: doc/classes/Vector2.xml msgid "" "Returns the angle to the given vector, in radians.\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "vector2_angle_to.png]Illustration of the returned angle.[/url]" msgstr "" "返回与给定向量的角度,单位为弧度。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/" "vector2_angle_to.png]返回角度的说明。[/url]" #: doc/classes/Vector2.xml msgid "" "Returns the angle between the line connecting the two points and the X axis, " "in radians.\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/stable/img/" "vector2_angle_to_point.png]Illustration of the returned angle.[/url]" msgstr "" "返回连接两点的直线与 X 轴的夹角,单位为弧度。\n" "[url=https://raw.githubusercontent.com/godotengine/godot-docs/stable/img/" "vector2_angle_to_point.png]返回角度的图示。[/url]" #: doc/classes/Vector2.xml msgid "" "Returns the aspect ratio of this vector, the ratio of [member x] to [member " "y]." msgstr "返回这个向量的长宽比,即[member x] 与[member y]的比例。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the vector \"bounced off\" from a plane defined by the given normal." msgstr "返回从由给定法线定义的平面上“反弹”的向量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a new vector with all components rounded up (towards positive " "infinity)." msgstr "返回一个新的向量,所有的分量都是四舍五入的,向正无穷大。" #: doc/classes/Vector2.xml msgid "" "Deprecated, please use [method limit_length] instead.\n" "Returns the vector with a maximum length by limiting its length to " "[code]length[/code]." msgstr "" "已弃用,请换用 [method limit_length]。\n" "通过限制其长度为 [code]length[/code],返回具有最大长度的向量。" #: doc/classes/Vector2.xml msgid "" "Returns the 2D analog of the cross product for this vector and [code]with[/" "code].\n" "This is the signed area of the parallelogram formed by the two vectors. If " "the second vector is clockwise from the first vector, then the cross product " "is the positive area. If counter-clockwise, the cross product is the " "negative area.\n" "[b]Note:[/b] Cross product is not defined in 2D mathematically. This method " "embeds the 2D vectors in the XY plane of 3D space and uses their cross " "product's Z component as the analog." msgstr "" "返回该向量与 [code]with[/code] 的叉积的 2D 模拟。\n" "这是这两个向量所构成的平行四边形的有向面积。如果第二个向量相对于第一个向量是" "顺时针的,则叉积为正面积。如果是逆时针,则叉积为负面积。\n" "[b]注意:[/b]数学上没有定义 2D 叉积。这个方法会将这两个 2D 向量嵌入到 3D 空间" "中的 XY 平面,然后用其叉积的 Z 分量作为模拟。" #: doc/classes/Vector2.xml msgid "" "Cubically interpolates between this vector and [code]b[/code] using " "[code]pre_a[/code] and [code]post_b[/code] as handles, and returns the " "result at position [code]weight[/code]. [code]weight[/code] is on the range " "of 0.0 to 1.0, representing the amount of interpolation." msgstr "" "用[code]pre_a[/code]和[code]post_b[/code]作为句柄,在这个向量和[code]b[/code]" "之间进行三次插值,并在[code]weight[/code]位置返回结果。[code]weight[/code]的" "范围是0.0到1.0,表示插值的量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the normalized vector pointing from this vector to [code]b[/code]. " "This is equivalent to using [code](b - a).normalized()[/code]." msgstr "" "返回从这个向量指向[code]b[/code]的归一化向量。这相当于使用[code](b-a)." "normalized()[/code]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the squared distance between this vector and [code]b[/code].\n" "This method runs faster than [method distance_to], so prefer it if you need " "to compare vectors or need the squared distance for some formula." msgstr "" "返回这个向量与[code]b[/code]之间的平方距离。\n" "这个方法比[method distance_to]运行得更快,所以如果你需要比较向量或需要一些公" "式的平方距离,则更喜欢它。" #: doc/classes/Vector2.xml msgid "Returns the distance between this vector and [code]to[/code]." msgstr "返回此向量与 [code]to[/code] 之间的距离。" #: doc/classes/Vector2.xml msgid "" "Returns the dot product of this vector and [code]with[/code]. This can be " "used to compare the angle between two vectors. For example, this can be used " "to determine whether an enemy is facing the player.\n" "The dot product will be [code]0[/code] for a straight angle (90 degrees), " "greater than 0 for angles narrower than 90 degrees and lower than 0 for " "angles wider than 90 degrees.\n" "When using unit (normalized) vectors, the result will always be between " "[code]-1.0[/code] (180 degree angle) when the vectors are facing opposite " "directions, and [code]1.0[/code] (0 degree angle) when the vectors are " "aligned.\n" "[b]Note:[/b] [code]a.dot(b)[/code] is equivalent to [code]b.dot(a)[/code]." msgstr "" "返回此向量与[code]with[/code]的点积。这可以用来比较两个向量之间的角度。例如," "这可以用来确定一个敌人是否正朝向玩家。\n" "对于直角90度,点积将是[code]0[/code],对于窄于90度的角度,点积大于0,对于宽于" "90度的角度,点积小于0。\n" "当使用归一化单位向量时,当向量朝向相反方向时,结果总是在[code]-1.0[/code]" "(180度角)和[code]1.0[/code](0度角)之间,当向量对齐。\n" "[b]注意:[/b][code]a.dot(b)[/code]等同于[code]b.dot(a)[/code]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a new vector with all components rounded down (towards negative " "infinity)." msgstr "返回一个新的向量,所有的向量都被四舍五入,向负无穷大。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns [code]true[/code] if this vector and [code]v[/code] are " "approximately equal, by running [method @GDScript.is_equal_approx] on each " "component." msgstr "" "通过对每个分量运行[method @GDScript.is_equal_approx],如果这个向量和[code]v[/" "code]近似相等,返回 [code]true[/code]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns [code]true[/code] if the vector is normalized, [code]false[/code] " "otherwise." msgstr "" "如果向量被归一化,返回 [code]true[/code],否则返回 [code]false[/code]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "Returns the length (magnitude) of this vector." msgstr "返回这个向量的长度,即大小。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the squared length (squared magnitude) of this vector.\n" "This method runs faster than [method length], so prefer it if you need to " "compare vectors or need the squared distance for some formula." msgstr "" "返回这个向量的平方长度,即平方大小。\n" "这个方法比[method length]运行得更快,所以如果你需要比较向量或需要一些公式的平" "方距离时,更喜欢用它。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the vector with a maximum length by limiting its length to " "[code]length[/code]." msgstr "通过限制其长度为[code]length[/code],返回具有最大长度的向量。" #: doc/classes/Vector2.xml msgid "" "Returns the result of the linear interpolation between this vector and " "[code]to[/code] by amount [code]weight[/code]. [code]weight[/code] is on the " "range of 0.0 to 1.0, representing the amount of interpolation." msgstr "" "返回这个向量与[code]to[/code]之间线性插值的结果,插值量为[code]weight[/" "code]。[code]weight[/code]的范围是0.0到1.0,表示插值的数量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a new vector moved toward [code]to[/code] by the fixed [code]delta[/" "code] amount. Will not go past the final value." msgstr "" "返回向 [code]to[/code] 移动固定的 [code]delta[/code] 量后的新向量。不会超过最" "终值。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the vector scaled to unit length. Equivalent to [code]v / v.length()" "[/code]." msgstr "返回缩放为单位长度的向量。相当于[code]v/v.length()[/code]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a vector composed of the [method @GDScript.fposmod] of this vector's " "components and [code]mod[/code]." msgstr "" "返回一个由这个向量分量的[method @GDScript.fposmod]和[code]mod[/code]组成的向" "量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a vector composed of the [method @GDScript.fposmod] of this vector's " "components and [code]modv[/code]'s components." msgstr "" "返回一个由这个向量的[code]modv[/code]分量和[method @GDScript.fposmod]分量组成" "的向量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "Returns this vector projected onto the vector [code]b[/code]." msgstr "返回投射到向量 [code]b[/code] 的向量。" #: doc/classes/Vector2.xml msgid "" "Returns the vector reflected (i.e. mirrored, or symmetric) over a line " "defined by the given direction vector [code]n[/code]." msgstr "" "返回经过由给定的方向向量 [code]n[/code] 定义的线反射后的(即镜像或对称)向" "量。" #: doc/classes/Vector2.xml msgid "" "Returns the vector rotated by [code]angle[/code] (in radians). See also " "[method @GDScript.deg2rad]." msgstr "" "返回旋转了 [code]angle[/code] 的向量(单位为弧度)。另请参阅 [method " "@GDScript.deg2rad]。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a new vector with all components rounded to the nearest integer, " "with halfway cases rounded away from zero." msgstr "" "返回所有分量都被四舍五入为最接近的整数的向量,中间情况向远离零的方向舍入。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns a new vector with each component set to one or negative one, " "depending on the signs of the components. If a component is zero, it returns " "positive one." msgstr "" "根据分量的符号,返回每个分量设置为 1 或负 1 的向量。如果分量为零,则返回正 " "1。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns the result of spherical linear interpolation between this vector and " "[code]to[/code], by amount [code]weight[/code]. [code]weight[/code] is on " "the range of 0.0 to 1.0, representing the amount of interpolation.\n" "[b]Note:[/b] Both vectors must be normalized." msgstr "" "返回这个向量与[code]to[/code]之间的球面线性插值的结果,按[code]weight[/code]" "的数量。[code]weight[/code]的范围是0.0到1.0,表示插值的数量。\n" "[b]注意:[/b]两个向量都必须被归一化。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "Returns this vector slid along a plane defined by the given normal." msgstr "返回沿着由给定法线定义的平面滑动的向量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Returns this vector with each component snapped to the nearest multiple of " "[code]step[/code]. This can also be used to round to an arbitrary number of " "decimals." msgstr "" "返回这个向量,每个分量都捕捉到[code]step[/code]的最近倍数。这也可以用来四舍五" "入到任意数量的小数。" #: doc/classes/Vector2.xml msgid "" "Returns a perpendicular vector rotated 90 degrees counter-clockwise compared " "to the original, with the same length." msgstr "返回一个与原来相比逆时针旋转90度的垂直向量,长度不变。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "The vector's X component. Also accessible by using the index position [code]" "[0][/code]." msgstr "向量的 X 分量。也可以通过使用索引位置 [code][0][/code] 访问。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "The vector's Y component. Also accessible by using the index position [code]" "[1][/code]." msgstr "向量的 Y 分量。也可以通过使用索引位置 [code][1][/code] 访问。" #: doc/classes/Vector2.xml msgid "Enumerated value for the X axis." msgstr "X 轴的枚举值。" #: doc/classes/Vector2.xml msgid "Enumerated value for the Y axis." msgstr "Y 轴的枚举值。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "Zero vector, a vector with all components set to [code]0[/code]." msgstr "零向量,所有分量都设置为 [code]0[/code] 的向量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "One vector, a vector with all components set to [code]1[/code]." msgstr "一向量,所有分量都设置为 [code]1[/code] 的向量。" #: doc/classes/Vector2.xml doc/classes/Vector3.xml msgid "" "Infinity vector, a vector with all components set to [constant @GDScript." "INF]." msgstr "无穷大向量,所有分量都设置为 [constant @GDScript.INF] 的向量。" #: doc/classes/Vector2.xml msgid "Left unit vector. Represents the direction of left." msgstr "左单位向量。代表左的方向。" #: doc/classes/Vector2.xml msgid "Right unit vector. Represents the direction of right." msgstr "右单位向量。代表右的方向。" #: doc/classes/Vector2.xml msgid "Up unit vector. Y is down in 2D, so this vector points -Y." msgstr "上单位向量。在 2D 中 Y 是向下的,所以这个向量指向 -Y。" #: doc/classes/Vector2.xml msgid "Down unit vector. Y is down in 2D, so this vector points +Y." msgstr "下单位向量。在 2D 中 Y 是向下的,所以这个向量指向 +Y。" #: doc/classes/Vector3.xml msgid "Vector used for 3D math." msgstr "用于 3D 数学的向量。" #: doc/classes/Vector3.xml msgid "" "3-element structure that can be used to represent positions in 3D space or " "any other triplet of numeric values.\n" "[b]Note:[/b] In a boolean context, a Vector3 will evaluate to [code]false[/" "code] if it's equal to [code]Vector3(0, 0, 0)[/code]. Otherwise, a Vector3 " "will always evaluate to [code]true[/code]." msgstr "" "3 元素结构,可用于表示 3D 空间中的位置或任何其他数值三元组。\n" "[b]注意:[/b]在布尔上下文中,如果 Vector3 等于 [code]Vector3(0, 0, 0)[/" "code],将评估为 [code]false[/code]。否则, Vector3 将始终评估为 [code]true[/" "code]。" #: doc/classes/Vector3.xml msgid "Returns a Vector3 with the given components." msgstr "返回具有给定分量的 Vector3。" #: doc/classes/Vector3.xml msgid "Returns the unsigned minimum angle to the given vector, in radians." msgstr "返回与给定向量的无符号最小角度,单位为弧度。" #: doc/classes/Vector3.xml msgid "Returns the cross product of this vector and [code]b[/code]." msgstr "返回此向量与 [code]b[/code] 的叉积。" #: doc/classes/Vector3.xml msgid "" "Performs a cubic interpolation between this vector and [code]b[/code] using " "[code]pre_a[/code] and [code]post_b[/code] as handles, and returns the " "result at position [code]weight[/code]. [code]weight[/code] is on the range " "of 0.0 to 1.0, representing the amount of interpolation." msgstr "" "用 [code]pre_a[/code] 和 [code]post_b[/code] 作为句柄,在这个向量和 [code]b[/" "code] 之间进行三次插值,并在 [code]weight[/code] 位置返回结果。[code]weight[/" "code] 的范围是 0.0 到 1.0,表示插值的量。" #: doc/classes/Vector3.xml msgid "Returns the distance between this vector and [code]b[/code]." msgstr "返回此向量与 [code]b[/code] 之间的距离。" #: doc/classes/Vector3.xml msgid "" "Returns the dot product of this vector and [code]b[/code]. This can be used " "to compare the angle between two vectors. For example, this can be used to " "determine whether an enemy is facing the player.\n" "The dot product will be [code]0[/code] for a straight angle (90 degrees), " "greater than 0 for angles narrower than 90 degrees and lower than 0 for " "angles wider than 90 degrees.\n" "When using unit (normalized) vectors, the result will always be between " "[code]-1.0[/code] (180 degree angle) when the vectors are facing opposite " "directions, and [code]1.0[/code] (0 degree angle) when the vectors are " "aligned.\n" "[b]Note:[/b] [code]a.dot(b)[/code] is equivalent to [code]b.dot(a)[/code]." msgstr "" "返回此向量与 [code]b[/code] 的点积。这可以用来比较两个向量之间的角度。例如," "这可以用来确定一个敌人是否正面对玩家。\n" "对于直角 90 度,点积将是 [code]0[/code],对于窄于 90 度的角度,点积大于 0,对" "于宽于 90 度的角度,点积小于 0。\n" "当使用归一化单位向量,向量朝向相反方向时,结果总是在 [code]-1.0[/code](180 " "度角)和 [code]1.0[/code](0 度角)之间,当向量对齐。\n" "[b]注意:[/b][code]a.dot(b)[/code] 等同于 [code]b.dot(a)[/code]。" #: doc/classes/Vector3.xml msgid "" "Returns the inverse of the vector. This is the same as [code]Vector3( 1.0 / " "v.x, 1.0 / v.y, 1.0 / v.z )[/code]." msgstr "" "返回向量的反值。这与 [code]Vector3( 1.0 / v.x, 1.0 / v.y, 1.0 / v.z )[/code] " "相同。" #: doc/classes/Vector3.xml msgid "" "Returns the result of the linear interpolation between this vector and " "[code]to[/code] by amount [code]t[/code]. [code]weight[/code] is on the " "range of 0.0 to 1.0, representing the amount of interpolation." msgstr "" "返回这个向量与 [code]to[/code] 之间的线性插值的结果,插值量为 [code]t[/" "code]。[code]weight[/code] 的范围是 0.0 到 1.0,表示插值的数量。" #: doc/classes/Vector3.xml msgid "" "Returns the axis of the vector's largest value. See [code]AXIS_*[/code] " "constants. If all components are equal, this method returns [constant " "AXIS_X]." msgstr "" "返回向量的最大值的轴。参阅 [code]AXIS_*[/code] 常量。如果所有分量都相等,该方" "法返回 [constant AXIS_X]。" #: doc/classes/Vector3.xml msgid "" "Returns the axis of the vector's smallest value. See [code]AXIS_*[/code] " "constants. If all components are equal, this method returns [constant " "AXIS_Z]." msgstr "" "返回矢量的最小值的轴。参阅 [code]AXIS_*[/code] 常量。如果所有分量都相等,本方" "法返回 [constant AXIS_Z]。" #: doc/classes/Vector3.xml msgid "Returns the outer product with [code]b[/code]." msgstr "返回与 [code]b[/code] 的外积。" #: doc/classes/Vector3.xml msgid "Returns this vector reflected from a plane defined by the given normal." msgstr "返回从给定法线定义的平面上反射的向量。" #: doc/classes/Vector3.xml msgid "" "Rotates this vector around a given axis by [code]angle[/code] (in radians). " "The axis must be a normalized vector." msgstr "" "将此向量绕给定的轴旋转 [code]angle[/code](单位为弧度)。该轴必须是归一化的向" "量。" #: doc/classes/Vector3.xml msgid "" "Returns the signed angle to the given vector, in radians. The sign of the " "angle is positive in a counter-clockwise direction and negative in a " "clockwise direction when viewed from the side specified by the [code]axis[/" "code]." msgstr "" "返回给定向量的带符号的角度,单位是弧度。当从[code]axis[/code]指定的一侧看,该" "角度的符号在逆时针方向是正的,在顺时针方向是负的。" #: doc/classes/Vector3.xml msgid "" "Returns a diagonal matrix with the vector as main diagonal.\n" "This is equivalent to a Basis with no rotation or shearing and this vector's " "components set as the scale." msgstr "" "返回一个以该向量为主对角线的对角线矩阵。\n" "这相当于一个没有旋转或剪切的 Basis,这个向量的分量被设定为缩放。" #: doc/classes/Vector3.xml msgid "" "The vector's Z component. Also accessible by using the index position [code]" "[2][/code]." msgstr "向量的 Z 分量。也可以通过使用索引位置 [code][2][/code] 访问。" #: doc/classes/Vector3.xml msgid "" "Enumerated value for the X axis. Returned by [method max_axis] and [method " "min_axis]." msgstr "X 轴的枚举值。由 [method max_axis] 和 [method min_axis] 返回。" #: doc/classes/Vector3.xml msgid "" "Enumerated value for the Y axis. Returned by [method max_axis] and [method " "min_axis]." msgstr "Y 轴的枚举值。由 [method max_axis] 和 [method min_axis] 返回。" #: doc/classes/Vector3.xml msgid "" "Enumerated value for the Z axis. Returned by [method max_axis] and [method " "min_axis]." msgstr "Z 轴的枚举值。由 [method max_axis] 和 [method min_axis] 返回。" #: doc/classes/Vector3.xml msgid "" "Left unit vector. Represents the local direction of left, and the global " "direction of west." msgstr "左单位向量。代表局部的左方向,全局的西方向。" #: doc/classes/Vector3.xml msgid "" "Right unit vector. Represents the local direction of right, and the global " "direction of east." msgstr "右单位向量。代表局部的右方向,全局的东方向。" #: doc/classes/Vector3.xml msgid "Up unit vector." msgstr "上单位向量。" #: doc/classes/Vector3.xml msgid "Down unit vector." msgstr "下单位向量。" #: doc/classes/Vector3.xml msgid "" "Forward unit vector. Represents the local direction of forward, and the " "global direction of north." msgstr "前单位向量。代表局部的前方向,全局的北方向。" #: doc/classes/Vector3.xml msgid "" "Back unit vector. Represents the local direction of back, and the global " "direction of south." msgstr "后单位向量。代表局部的后方向,全局的南方向。" #: doc/classes/VehicleBody.xml msgid "Physics body that simulates the behavior of a car." msgstr "模拟汽车行为的物理体。" #: doc/classes/VehicleBody.xml msgid "" "This node implements all the physics logic needed to simulate a car. It is " "based on the raycast vehicle system commonly found in physics engines. You " "will need to add a [CollisionShape] for the main body of your vehicle and " "add [VehicleWheel] nodes for the wheels. You should also add a " "[MeshInstance] to this node for the 3D model of your car but this model " "should not include meshes for the wheels. You should control the vehicle by " "using the [member brake], [member engine_force], and [member steering] " "properties and not change the position or orientation of this node " "directly.\n" "[b]Note:[/b] The origin point of your VehicleBody will determine the center " "of gravity of your vehicle so it is better to keep this low and move the " "[CollisionShape] and [MeshInstance] upwards.\n" "[b]Note:[/b] This class has known issues and isn't designed to provide " "realistic 3D vehicle physics. If you want advanced vehicle physics, you will " "probably have to write your own physics integration using another " "[PhysicsBody] class." msgstr "" "此节点实现了模拟汽车所需的所有物理逻辑。它是基于物理引擎中常见的射线投射的车" "辆系统。你需要为车的主体添加一个 [CollisionShape],并为车轮添加 " "[VehicleWheel] 节点。还应该为汽车的 3D 模型添加一个 [MeshInstance] 节点,但这" "个模型不应该包括车轮的网格。你应该通过使用 [member brake]、[member " "engine_force] 和 [member steering] 属性来控制车辆,而不是直接改变这个节点的位" "置或方向。\n" "[b]注意:[/b]你的 VehicleBody 的原点将决定你的车辆的重心,所以最好保持低位," "并将 [CollisionShape] 和 [MeshInstance] 往上移。\n" "[b]注意:[/b]这个类有已知的问题,并不是为了提供真实的 3D 车辆物理而设计。如果" "你想要高级的车辆物理,你可能需要使用另一个 [PhysicsBody] 类来编写你自己的物理" "集成。" #: doc/classes/VehicleBody.xml msgid "" "Slows down the vehicle by applying a braking force. The vehicle is only " "slowed down if the wheels are in contact with a surface. The force you need " "to apply to adequately slow down your vehicle depends on the [member " "RigidBody.mass] of the vehicle. For a vehicle with a mass set to 1000, try a " "value in the 25 - 30 range for hard braking." msgstr "" "通过施加一个制动力使车辆减速。只有当车轮接触到表面时,车辆才会减速。你需要施" "加多少力来使你的车辆充分减速,取决于车辆的[member RigidBody.mass]。对于一个质" "量设置为1000的车辆,尝试在25-30的范围内进行硬制动。" #: doc/classes/VehicleBody.xml msgid "" "Accelerates the vehicle by applying an engine force. The vehicle is only " "speed up if the wheels that have [member VehicleWheel.use_as_traction] set " "to [code]true[/code] and are in contact with a surface. The [member " "RigidBody.mass] of the vehicle has an effect on the acceleration of the " "vehicle. For a vehicle with a mass set to 1000, try a value in the 25 - 50 " "range for acceleration.\n" "[b]Note:[/b] The simulation does not take the effect of gears into account, " "you will need to add logic for this if you wish to simulate gears.\n" "A negative value will result in the vehicle reversing." msgstr "" "通过施加一个引擎力来加速车辆。只有当 [member VehicleWheel.use_as_traction] 设" "置为 [code]true[/code] 并与表面接触的车轮才会加速。车辆的 [member RigidBody." "mass] 对车辆的加速度有影响。对于一个质量设置为 1000 的车辆,可以尝试在 25-50 " "的范围内选择加速度的值。\n" "[b]注意:[/b]模拟不考虑齿轮的影响,如果你想模拟齿轮,将需要为其添加逻辑。\n" "负值将导致车辆倒车。" #: doc/classes/VehicleBody.xml msgid "" "The steering angle for the vehicle. Setting this to a non-zero value will " "result in the vehicle turning when it's moving. Wheels that have [member " "VehicleWheel.use_as_steering] set to [code]true[/code] will automatically be " "rotated." msgstr "" "车辆的转向角。将此设置为非零值将导致车辆在移动时转向。将[member VehicleWheel." "use_as_steering]设置为 [code]true[/code]的车轮会自动旋转。" #: doc/classes/VehicleWheel.xml msgid "Physics object that simulates the behavior of a wheel." msgstr "模拟车轮行为的物理对象。" #: doc/classes/VehicleWheel.xml msgid "" "This node needs to be used as a child node of [VehicleBody] and simulates " "the behavior of one of its wheels. This node also acts as a collider to " "detect if the wheel is touching a surface.\n" "[b]Note:[/b] This class has known issues and isn't designed to provide " "realistic 3D vehicle physics. If you want advanced vehicle physics, you will " "probably have to write your own physics integration using another " "[PhysicsBody] class." msgstr "" "此节点需要作为 [VehicleBody] 的子节点使用,并模拟其车轮的行为。其节点也作为碰" "撞器来检测车轮是否接触到表面。\n" "[b]注意:[/b]这个类有已知的问题,并不是为了提供真实的 3D 车辆物理而设计的。如" "果你想要先进的车辆物理,须使用另一个 [PhysicsBody] 类来编写你自己的物理集成。" #: doc/classes/VehicleWheel.xml msgid "" "Returns the contacting body node if valid in the tree, as [Spatial]. At the " "moment, [GridMap] is not supported so the node will be always of type " "[PhysicsBody].\n" "Returns [code]null[/code] if the wheel is not in contact with a surface, or " "the contact body is not a [PhysicsBody]." msgstr "" "如果接触到的实体在树中有效,则以 [Spatial] 的形式返回。目前不支持 [GridMap]," "所以节点的类型始终是 [PhysicsBody]。\n" "如果车轮并未与表面接触,或接触到的实体不是 [PhysicsBody],则返回 [code]null[/" "code]。" #: doc/classes/VehicleWheel.xml msgid "Returns the rotational speed of the wheel in revolutions per minute." msgstr "返回轮子的旋转速度,单位为每分钟转数。" #: doc/classes/VehicleWheel.xml msgid "" "Returns a value between 0.0 and 1.0 that indicates whether this wheel is " "skidding. 0.0 is skidding (the wheel has lost grip, e.g. icy terrain), 1.0 " "means not skidding (the wheel has full grip, e.g. dry asphalt road)." msgstr "" "返回一个介于0.0和1.0之间的值,表示这个轮子是否打滑。0.0表示打滑,即车轮失去了" "抓地力,例如冰雪地形,1.0表示不打滑,即车轮有充分的抓地力,例如干燥的沥青路。" #: doc/classes/VehicleWheel.xml msgid "Returns [code]true[/code] if this wheel is in contact with a surface." msgstr "如果轮子与表面接触,返回 [code]true[/code]。" #: doc/classes/VehicleWheel.xml msgid "" "Slows down the wheel by applying a braking force. The wheel is only slowed " "down if it is in contact with a surface. The force you need to apply to " "adequately slow down your vehicle depends on the [member RigidBody.mass] of " "the vehicle. For a vehicle with a mass set to 1000, try a value in the 25 - " "30 range for hard braking." msgstr "" "通过施加制动力使车轮减速。只有当车轮与表面接触时,它才会减速。你需要施加多大" "的力来使车辆充分减速,取决于车辆的[member RigidBody.mass]。对于质量设置为1000" "的车辆,尝试在25-30的范围内进行硬制动。" #: doc/classes/VehicleWheel.xml msgid "" "The damping applied to the spring when the spring is being compressed. This " "value should be between 0.0 (no damping) and 1.0. A value of 0.0 means the " "car will keep bouncing as the spring keeps its energy. A good value for this " "is around 0.3 for a normal car, 0.5 for a race car." msgstr "" "当弹簧被压缩时,应用在弹簧上的阻尼。这个值应该在0.0(无阻尼)和1.0之间。0.0的" "值意味着汽车将持续弹跳,因为弹簧将保持其能量。一个好的值是,普通汽车0.3左右," "赛车0.5左右。" #: doc/classes/VehicleWheel.xml msgid "" "The damping applied to the spring when relaxing. This value should be " "between 0.0 (no damping) and 1.0. This value should always be slightly " "higher than the [member damping_compression] property. For a [member " "damping_compression] value of 0.3, try a relaxation value of 0.5." msgstr "" "放松时施加在弹簧上的阻尼。这个值应该在0.0(无阻尼)和1.0之间。这个值应该总是" "比 [member damping_compression] 属性稍高。对于 [member damping_compression] " "值0.3,尝试放松值为0.5。" #: doc/classes/VehicleWheel.xml msgid "" "Accelerates the wheel by applying an engine force. The wheel is only speed " "up if it is in contact with a surface. The [member RigidBody.mass] of the " "vehicle has an effect on the acceleration of the vehicle. For a vehicle with " "a mass set to 1000, try a value in the 25 - 50 range for acceleration.\n" "[b]Note:[/b] The simulation does not take the effect of gears into account, " "you will need to add logic for this if you wish to simulate gears.\n" "A negative value will result in the wheel reversing." msgstr "" "通过施加引擎力使车轮加速。车轮只有在与表面接触时才会加速。车辆的[member " "RigidBody.mass]对车辆的加速度有影响。对于质量设置为1000的车辆,尝试在25-50范" "围内的加速度值。\n" "[b]注意:[/b]模拟不考虑齿轮的影响,如果你想模拟齿轮,将需要为其添加逻辑。\n" "负值将导致车轮倒转。" #: doc/classes/VehicleWheel.xml msgid "" "The steering angle for the wheel. Setting this to a non-zero value will " "result in the vehicle turning when it's moving." msgstr "车轮的转向角。将此设置为非零值将导致车辆在移动时转向。" #: doc/classes/VehicleWheel.xml msgid "" "The maximum force the spring can resist. This value should be higher than a " "quarter of the [member RigidBody.mass] of the [VehicleBody] or the spring " "will not carry the weight of the vehicle. Good results are often obtained by " "a value that is about 3× to 4× this number." msgstr "" "弹簧所能抵抗的最大力。此值应该高于[VehicleBody]的[member RigidBody.mass]的四" "分之一,否则弹簧将无法承载车辆的重量。通常由大约3×到4×这个数字的值,以获得良" "好的效果。" #: doc/classes/VehicleWheel.xml msgid "" "This value defines the stiffness of the suspension. Use a value lower than " "50 for an off-road car, a value between 50 and 100 for a race car and try " "something around 200 for something like a Formula 1 car." msgstr "" "这个值定义了悬架的刚度。越野车使用低于50的值,赛车使用50至100的值,像一级方程" "式赛车则尝试200左右的值。" #: doc/classes/VehicleWheel.xml msgid "" "This is the distance the suspension can travel. As Godot units are " "equivalent to meters, keep this setting relatively low. Try a value between " "0.1 and 0.3 depending on the type of car." msgstr "" "这是悬架可以移动的距离。由于Godot 的单位相当于米,所以保持这个设置相对较低。" "根据汽车的类型,试试0.1和0.3之间的值。" #: doc/classes/VehicleWheel.xml msgid "" "If [code]true[/code], this wheel will be turned when the car steers. This " "value is used in conjunction with [member VehicleBody.steering] and ignored " "if you are using the per-wheel [member steering] value instead." msgstr "" "如果[code]true[/code],当汽车转向时,其轮子将被转动。此值和[member " "VehicleBody.steering]一起使用,如果使用每个轮子的[member steering]值来代替," "则会被忽略。" #: doc/classes/VehicleWheel.xml msgid "" "If [code]true[/code], this wheel transfers engine force to the ground to " "propel the vehicle forward. This value is used in conjunction with [member " "VehicleBody.engine_force] and ignored if you are using the per-wheel [member " "engine_force] value instead." msgstr "" "如果[code]true[/code],此轮子将引擎力传递给地面,推动车辆前进。此值和[member " "VehicleBody.engine_force]一起使用,如果使用每个轮子的[member engine_force]" "值,则忽略该值。" #: doc/classes/VehicleWheel.xml msgid "" "This determines how much grip this wheel has. It is combined with the " "friction setting of the surface the wheel is in contact with. 0.0 means no " "grip, 1.0 is normal grip. For a drift car setup, try setting the grip of the " "rear wheels slightly lower than the front wheels, or use a lower value to " "simulate tire wear.\n" "It's best to set this to 1.0 when starting out." msgstr "" "这决定了这个轮子的抓地力有多大。它与车轮所接触的表面的摩擦力设置相结合。0.0意" "味着没有抓地力,1.0是正常抓地力。对于漂移车的设置,尝试将后轮的抓地力设置得比" "前轮略低,或者使用较低的数值来模拟轮胎的磨损。\n" "在开始时最好将其设置为1.0。" #: doc/classes/VehicleWheel.xml msgid "The radius of the wheel in meters." msgstr "轮子的半径,单位是米。" #: doc/classes/VehicleWheel.xml msgid "" "This is the distance in meters the wheel is lowered from its origin point. " "Don't set this to 0.0 and move the wheel into position, instead move the " "origin point of your wheel (the gizmo in Godot) to the position the wheel " "will take when bottoming out, then use the rest length to move the wheel " "down to the position it should be in when the car is in rest." msgstr "" "这是轮子从原点下降的距离,以米为单位。不要把这个设置为0.0,然后把车轮移到位置" "上,而是把车轮的原点(Godot中的Gizmo)移到车轮触底时的位置,然后使用剩余长度" "将轮子向下移动到汽车静止时它应该所处位置。" #: doc/classes/VehicleWheel.xml msgid "" "This value affects the roll of your vehicle. If set to 1.0 for all wheels, " "your vehicle will be prone to rolling over, while a value of 0.0 will resist " "body roll." msgstr "" "这个值会影响车辆的滚动。如果所有车轮都设置为1.0,车辆将容易翻车,而0.0的值将" "阻止车身侧倾。" #: doc/classes/VFlowContainer.xml msgid "Vertical flow container." msgstr "垂直流式容器。" #: doc/classes/VFlowContainer.xml msgid "Vertical version of [FlowContainer]." msgstr "[FlowContainer] 的垂直版本。" #: doc/classes/VideoPlayer.xml msgid "Control for playing video streams." msgstr "用于播放视频流的控件。" #: doc/classes/VideoPlayer.xml msgid "" "Control node for playing video streams using [VideoStream] resources.\n" "Supported video formats are [url=https://www.webmproject.org/]WebM[/url] " "([code].webm[/code], [VideoStreamWebm]), [url=https://www.theora.org/]Ogg " "Theora[/url] ([code].ogv[/code], [VideoStreamTheora]), and any format " "exposed via a GDNative plugin using [VideoStreamGDNative].\n" "[b]Note:[/b] Due to a bug, VideoPlayer does not support localization " "remapping yet.\n" "[b]Warning:[/b] On HTML5, video playback [i]will[/i] perform poorly due to " "missing architecture-specific assembly optimizations, especially for VP8/VP9." msgstr "" "用于播放使用[VideoStream]资源视频流的控件节点。\n" "支持的视频格式有 [url=https://www.webmproject.org/]WebM[/url] ([code].webm[/" "code], [VideoStreamWebm]), [url=https://www.theora.org/]Ogg Theora[/url] " "([code].ogv[/code], [VideoStreamTheora] ) 以及任何通过GDNative插件使用" "[VideoStreamGDNative]公开的格式。\n" "[b]注意:[/b]由于一个错误,VideoPlayer还不支持本地化重映射。\n" "[b]警告:[/b]在HTML5上,视频播放[i]将[/i]表现不佳,因为缺少特定架构的汇编优" "化,特别是对于VP8/VP9。" #: doc/classes/VideoPlayer.xml msgid "" "Returns the video stream's name, or [code]\"\"[/code] if no video " "stream is assigned." msgstr "" "返回视频流的名称,如果没有指定视频流,则返回 [code]\"\"[/code]。" #: doc/classes/VideoPlayer.xml msgid "Returns the current frame as a [Texture]." msgstr "将当前帧作为[Texture]返回。" #: doc/classes/VideoPlayer.xml msgid "" "Returns [code]true[/code] if the video is playing.\n" "[b]Note:[/b] The video is still considered playing if paused during playback." msgstr "" "如果视频正在播放,返回 [code]true[/code] 。\n" "[b]注意:[/b]如果在播放过程中暂停,视频仍被认为在播放。" #: doc/classes/VideoPlayer.xml msgid "" "Starts the video playback from the beginning. If the video is paused, this " "will not unpause the video." msgstr "从头开始播放视频。如果视频暂停,这不会取消暂停。" #: doc/classes/VideoPlayer.xml msgid "" "Stops the video playback and sets the stream position to 0.\n" "[b]Note:[/b] Although the stream position will be set to 0, the first frame " "of the video stream won't become the current frame." msgstr "" "停止视频播放并将视频流位置设置为0。\n" "[b]注意:[/b]虽然视频流位置将被设置为0,但视频流的第一帧不会成为当前帧。" #: doc/classes/VideoPlayer.xml msgid "The embedded audio track to play." msgstr "要播放的嵌入式音轨。" #: doc/classes/VideoPlayer.xml msgid "If [code]true[/code], playback starts when the scene loads." msgstr "如果[code]true[/code],当场景加载时开始播放。" #: doc/classes/VideoPlayer.xml msgid "Amount of time in milliseconds to store in buffer while playing." msgstr "播放时存储在缓冲区的时间,以毫秒计。" #: doc/classes/VideoPlayer.xml msgid "Audio bus to use for sound playback." msgstr "用于声音播放的音频总线。" #: doc/classes/VideoPlayer.xml msgid "" "If [code]true[/code], the video scales to the control size. Otherwise, the " "control minimum size will be automatically adjusted to match the video " "stream's dimensions." msgstr "" "如果[code]true[/code],视频会缩放到控件的尺寸。否则,控件的最小尺寸将被自动调" "整以匹配视频流的尺寸。" #: doc/classes/VideoPlayer.xml msgid "If [code]true[/code], the video is paused." msgstr "如果[code]true[/code],则暂停视频。" #: doc/classes/VideoPlayer.xml msgid "The assigned video stream. See description for supported formats." msgstr "指定的视频流。支持的格式见描述。" #: doc/classes/VideoPlayer.xml msgid "" "The current position of the stream, in seconds.\n" "[b]Note:[/b] Changing this value won't have any effect as seeking is not " "implemented yet, except in video formats implemented by a GDNative add-on." msgstr "" "流的当前位置,以秒为单位。\n" "[b]注意:[/b]更改此值不会产生任何影响,因为搜索尚未实现,除了由 GDNative 附加" "组件实现的视频格式。" #: doc/classes/VideoPlayer.xml msgid "Audio volume as a linear value." msgstr "音频音量为线性值。" #: doc/classes/VideoPlayer.xml msgid "Audio volume in dB." msgstr "音频音量,单位是dB。" #: doc/classes/VideoPlayer.xml msgid "Emitted when playback is finished." msgstr "播放结束时触发。" #: doc/classes/VideoStream.xml msgid "Base resource for video streams." msgstr "视频流的资源基类。" #: doc/classes/VideoStream.xml msgid "" "Base resource type for all video streams. Classes that derive from " "[VideoStream] can all be used as resource types to play back videos in " "[VideoPlayer]." msgstr "" "所有视频流的资源类型基类。派生自[VideoStream]的类都可以作为资源类型,在" "[VideoPlayer]中播放视频。" #: modules/gdnative/doc_classes/VideoStreamGDNative.xml msgid "[VideoStream] resource for video formats implemented via GDNative." msgstr "通过 GDNative 实现的视频格式所使用的 [VideoStream] 资源。" #: modules/gdnative/doc_classes/VideoStreamGDNative.xml msgid "" "[VideoStream] resource for video formats implemented via GDNative.\n" "It can be used via [url=https://github.com/KidRigger/godot-" "videodecoder]godot-videodecoder[/url] which uses the [url=https://ffmpeg." "org]FFmpeg[/url] library." msgstr "" "通过 GDNative 实现的视频格式所使用的 [VideoStream] 资源。\n" "它可以通过 [url=https://github.com/KidRigger/godot-videodecoder]godot-" "videodecoder[/url] 使用,内部使用的是 [url=https://ffmpeg.org]FFmpeg[/url] " "库。" #: modules/gdnative/doc_classes/VideoStreamGDNative.xml msgid "Returns the video file handled by this [VideoStreamGDNative]." msgstr "返回由这个[VideoStreamGDNative]处理的视频文件。" #: modules/gdnative/doc_classes/VideoStreamGDNative.xml msgid "" "Sets the video file that this [VideoStreamGDNative] resource handles. The " "supported extensions depend on the GDNative plugins used to expose video " "formats." msgstr "" "设置此[VideoStreamGDNative]资源处理的视频文件。支持的扩展取决于,用于公开视频" "格式的GDNative插件。" #: modules/theora/doc_classes/VideoStreamTheora.xml msgid "[VideoStream] resource for Ogg Theora videos." msgstr "[VideoStream] Ogg Theora视频的资源。" #: modules/theora/doc_classes/VideoStreamTheora.xml msgid "" "[VideoStream] resource handling the [url=https://www.theora.org/]Ogg Theora[/" "url] video format with [code].ogv[/code] extension. The Theora codec is less " "efficient than [VideoStreamWebm]'s VP8 and VP9, but it requires less CPU " "resources to decode. The Theora codec is decoded on the CPU.\n" "[b]Note:[/b] While Ogg Theora videos can also have an [code].ogg[/code] " "extension, you will have to rename the extension to [code].ogv[/code] to use " "those videos within Godot." msgstr "" "[VideoStream]资源处理[url=https://www.theora.org/]Ogg Theora[/url]视频格式," "扩展名为[code].ogv[/code]。Theora编解码器比[VideoStreamWebm]的VP8和VP9效率" "低,但它以较少的CPU资源来解码。Theora编解码器是在CPU上解码。\n" "[b]注意:[/b]虽然Ogg Theora视频也可以有[code].ogg[/code]扩展名,但必须将扩展" "名改为[code].ogv[/code],以便在Godot内使用。" #: modules/theora/doc_classes/VideoStreamTheora.xml msgid "Returns the Ogg Theora video file handled by this [VideoStreamTheora]." msgstr "返回由这个[VideoStreamTheora]处理的Ogg Theora视频文件。" #: modules/theora/doc_classes/VideoStreamTheora.xml msgid "" "Sets the Ogg Theora video file that this [VideoStreamTheora] resource " "handles. The [code]file[/code] name should have the [code].ogv[/code] " "extension." msgstr "" "设置该[VideoStreamTheora]资源处理的Ogg Theora视频文件。[code]file[/code]的名" "称应该有[code].ogv[/code]扩展名。" #: modules/webm/doc_classes/VideoStreamWebm.xml msgid "[VideoStream] resource for WebM videos." msgstr "[VideoStream] WebM视频的资源。" #: modules/webm/doc_classes/VideoStreamWebm.xml msgid "" "[VideoStream] resource handling the [url=https://www.webmproject.org/]WebM[/" "url] video format with [code].webm[/code] extension. Both the VP8 and VP9 " "codecs are supported. The VP8 and VP9 codecs are more efficient than " "[VideoStreamTheora], but they require more CPU resources to decode " "(especially VP9). Both the VP8 and VP9 codecs are decoded on the CPU.\n" "[b]Note:[/b] Alpha channel (also known as transparency) is not supported. " "The video will always appear to have a black background, even if it " "originally contains an alpha channel.\n" "[b]Note:[/b] There are known bugs and performance issues with WebM video " "playback in Godot. If you run into problems, try using the Ogg Theora format " "instead: [VideoStreamTheora]" msgstr "" "用于处理扩展名为 [code].webm[/code] 的 [url=https://www.webmproject." "org/]WebM[/url] 视频格式的 [VideoStream] 资源。支持 VP8 和 VP9 编解码器。VP8 " "和 VP9 编解码器比 [VideoStreamTheora] 更高效,但其需要更多的 CPU 资源来解码," "尤其是 VP9。VP8 和 VP9 编解码器是在 CPU 上解码的。\n" "[b]注意:[/b]不支持 Alpha 通道(也称为不透明度)。视频将始终显示为黑色背景," "即使它最初包含 Alpha 通道。\n" "[b]注意:[/b]Godot 中的 WebM 视频播放存在已知的错误和性能问题。如果你遇到问" "题,可以尝试用 Ogg Theora 格式代替:[VideoStreamTheora]" #: modules/webm/doc_classes/VideoStreamWebm.xml msgid "Returns the WebM video file handled by this [VideoStreamWebm]." msgstr "返回由这个 [VideoStreamWebm] 处理的 WebM 视频文件。" #: modules/webm/doc_classes/VideoStreamWebm.xml msgid "" "Sets the WebM video file that this [VideoStreamWebm] resource handles. The " "[code]file[/code] name should have the [code].webm[/code] extension." msgstr "" "设置这个 [VideoStreamWebm] 资源处理的 WebM 视频文件。文件名 [code]file[/" "code] 具有 [code].webm[/code] 扩展名。" #: doc/classes/Viewport.xml msgid "Creates a sub-view into the screen." msgstr "在屏幕中创建子视图。" #: doc/classes/Viewport.xml msgid "" "A Viewport creates a different view into the screen, or a sub-view inside " "another viewport. Children 2D Nodes will display on it, and children Camera " "3D nodes will render on it too.\n" "Optionally, a viewport can have its own 2D or 3D world, so they don't share " "what they draw with other viewports.\n" "If a viewport is a child of a [ViewportContainer], it will automatically " "take up its size, otherwise it must be set manually.\n" "Viewports can also choose to be audio listeners, so they generate positional " "audio depending on a 2D or 3D camera child of it.\n" "Also, viewports can be assigned to different screens in case the devices " "have multiple screens.\n" "Finally, viewports can also behave as render targets, in which case they " "will not be visible unless the associated texture is used to draw.\n" "[b]Note:[/b] By default, a newly created Viewport in Godot 3.x will appear " "to be upside down. Enabling [member render_target_v_flip] will display the " "Viewport with the correct orientation." msgstr "" "Viewport 会在屏幕上创建不同的视图,或者是另一个视窗中的子视图。子代 2D 节点会" "在其上显示,子代 3D 摄像机节点也会在其上渲染。\n" "另外,视窗可以有自己的 2D 或 3D 世界,所以它们不会与其他视窗共享其所绘制的内" "容。\n" "如果视窗是 [ViewportContainer] 的子节点,它将自动占用其大小,否则必须手动设" "置。\n" "视窗也可以选择成为音频监听者,会根据它的 2D 或 3D 摄像机的子节点来产生位置音" "频。\n" "另外,如果设备有多个屏幕,视窗可以被分配到不同的屏幕。\n" "最后,视窗也可以作为渲染目标,在这种情况下,除非相关的纹理被用于绘制,否则它" "们将不可见。\n" "[b]注意:[/b]默认情况下,Godot 3.x 中新创建的 Viewport 是上下颠倒的。启用 " "[member render_target_v_flip] 可以使该 Viewport 使用正确的朝向显示。" #: doc/classes/Viewport.xml msgid "Viewports tutorial index" msgstr "Viewport 教程索引" #: doc/classes/Viewport.xml doc/classes/ViewportTexture.xml msgid "3D in 2D Demo" msgstr "2D 中的 3D 演示" #: doc/classes/Viewport.xml msgid "Screen Capture Demo" msgstr "屏幕捕捉演示" #: doc/classes/Viewport.xml msgid "Dynamic Split Screen Demo" msgstr "动态分屏演示" #: doc/classes/Viewport.xml doc/classes/ViewportTexture.xml msgid "3D Viewport Scaling Demo" msgstr "3D Viewport 缩放演示" #: doc/classes/Viewport.xml msgid "" "Returns the first valid [World] for this viewport, searching the [member " "world] property of itself and any Viewport ancestor." msgstr "" "返回该视窗的首个有效 [World],在它自身及任何 Viewport 祖先节点的 [member " "world] 属性中查找。" #: doc/classes/Viewport.xml msgid "" "Returns the first valid [World2D] for this viewport, searching the [member " "world_2d] property of itself and any Viewport ancestor." msgstr "" "返回该视窗的首个有效 [World2D],在它自身及任何 Viewport 祖先节点的 [member " "world_2d] 属性中查找。" #: doc/classes/Viewport.xml msgid "Returns the active 3D camera." msgstr "返回激活的 3D 相机。" #: doc/classes/Viewport.xml msgid "Returns the total transform of the viewport." msgstr "返回视窗的总的变换。" #: doc/classes/Viewport.xml msgid "Returns the topmost modal in the stack." msgstr "返回堆栈中最顶层的模型。" #: doc/classes/Viewport.xml msgid "" "Returns the mouse's position in this [Viewport] using the coordinate system " "of this [Viewport]." msgstr "返回该 [Viewport] 中鼠标的位置,使用该 [Viewport] 的坐标系。" #: doc/classes/Viewport.xml msgid "Returns information about the viewport from the rendering pipeline." msgstr "返回渲染管道中关于视窗的信息。" #: doc/classes/Viewport.xml msgid "Returns the [enum ShadowAtlasQuadrantSubdiv] of the specified quadrant." msgstr "返回指定象限的 [enum ShadowAtlasQuadrantSubdiv]。" #: doc/classes/Viewport.xml msgid "Returns the size override set with [method set_size_override]." msgstr "返回用 [method set_size_override] 设置的尺寸覆盖。" #: doc/classes/Viewport.xml msgid "" "Returns the viewport's texture.\n" "[b]Note:[/b] Due to the way OpenGL works, the resulting [ViewportTexture] is " "flipped vertically. You can use [method Image.flip_y] on the result of " "[method Texture.get_data] to flip it back, for example:\n" "[codeblock]\n" "var img = get_viewport().get_texture().get_data()\n" "img.flip_y()\n" "[/codeblock]" msgstr "" "返回该视窗的纹理。\n" "[b]注意:[/b]由于 OpenGL 的工作方式,产生的 [ViewportTexture] 是垂直翻转的。" "你可以在 [method Texture.get_data] 的结果上使用 [method Image.flip_y] 来将其" "翻转回去,例如:\n" "[codeblock]\n" "var img = get_viewport().get_texture().get_data()\n" "img.flip_y()\n" "[/codeblock]" #: doc/classes/Viewport.xml msgid "Returns the viewport's RID from the [VisualServer]." msgstr "从 [VisualServer] 返回该视窗的 RID。" #: doc/classes/Viewport.xml msgid "Returns the visible rectangle in global screen coordinates." msgstr "返回全局屏幕坐标中的可见矩形。" #: doc/classes/Viewport.xml msgid "" "Returns the drag data from the GUI, that was previously returned by [method " "Control.get_drag_data]." msgstr "" "返回 GUI 中的拖动数据,该数据之前由 [method Control.get_drag_data] 返回。" #: doc/classes/Viewport.xml msgid "Returns [code]true[/code] if there are visible modals on-screen." msgstr "如果屏幕上有可见的模型,返回 [code]true[/code]。" #: doc/classes/Viewport.xml msgid "Returns [code]true[/code] if the drag operation is successful." msgstr "如果拖拽操作成功,则返回 [code]true[/code]。" #: doc/classes/Viewport.xml msgid "" "Returns [code]true[/code] if the viewport is currently performing a drag " "operation.\n" "Alternative to [constant Node.NOTIFICATION_DRAG_BEGIN] and [constant Node." "NOTIFICATION_DRAG_END] when you prefer polling the value." msgstr "" "如果该视区目前正在执行拖拽操作,则返回 [code]true[/code]。\n" "如果你更倾向于对其进行轮询,那么就可以作为 [constant Node." "NOTIFICATION_DRAG_BEGIN] 和 [constant Node.NOTIFICATION_DRAG_END] 的替代品。" #: doc/classes/Viewport.xml msgid "" "Returns [code]true[/code] if the size override is enabled. See [method " "set_size_override]." msgstr "" "如果启用了尺寸覆盖,则返回 [code]true[/code]。请参阅 [method " "set_size_override]。" #: doc/classes/Viewport.xml msgid "" "Attaches this [Viewport] to the root [Viewport] with the specified " "rectangle. This bypasses the need for another node to display this " "[Viewport] but makes you responsible for updating the position of this " "[Viewport] manually." msgstr "" "用指定的矩形将这个 [Viewport] 附加到根 [Viewport] 上。这就绕过了另一个节点来" "显示这个 [Viewport] 的需要,但让你负责手动更新这个 [Viewport] 的坐标。" #: doc/classes/Viewport.xml msgid "Stops the input from propagating further down the [SceneTree]." msgstr "阻止输入沿着 [SceneTree] 继续向下传播。" #: doc/classes/Viewport.xml msgid "" "Sets the number of subdivisions to use in the specified quadrant. A higher " "number of subdivisions allows you to have more shadows in the scene at once, " "but reduces the quality of the shadows. A good practice is to have quadrants " "with a varying number of subdivisions and to have as few subdivisions as " "possible." msgstr "" "设置在指定象限内使用的细分数。较多的细分数可以让你在场景中一次拥有更多的阴" "影,但是会降低阴影的质量。一个好的做法是让象限具有不同数量的细分,并尽可能地" "减少细分。" #: doc/classes/Viewport.xml msgid "" "Sets the size override of the viewport. If the [code]enable[/code] parameter " "is [code]true[/code] the override is used, otherwise it uses the default " "size. If the size parameter is [code](-1, -1)[/code], it won't update the " "size." msgstr "" "设置该视窗的尺寸覆盖。如果 [code]enable[/code] 参数是 [code]true[/code],就会" "使用覆盖,否则就使用默认尺寸。如果尺寸参数是 [code](-1, -1)[/code],它将不会" "更新尺寸。" #: doc/classes/Viewport.xml msgid "Forces update of the 2D and 3D worlds." msgstr "强制更新 2D 和 3D 世界。" #: doc/classes/Viewport.xml msgid "" "Moves the mouse pointer to the specified position in this [Viewport] using " "the coordinate system of this [Viewport]." msgstr "" "将鼠标指针移动到该 [Viewport] 中的指定位置,使用该 [Viewport] 的坐标系。" #: doc/classes/Viewport.xml msgid "If [code]true[/code], the viewport will be used in AR/VR process." msgstr "如果为 [code]true[/code],该视窗将用于AR/VR进程。" #: doc/classes/Viewport.xml msgid "If [code]true[/code], the viewport will process 2D audio streams." msgstr "如果为 [code]true[/code],该视窗将处理 2D 音频流。" #: doc/classes/Viewport.xml msgid "If [code]true[/code], the viewport will process 3D audio streams." msgstr "如果为 [code]true[/code],该视窗将处理 3D 音频流。" #: doc/classes/Viewport.xml msgid "" "The canvas transform of the viewport, useful for changing the on-screen " "positions of all child [CanvasItem]s. This is relative to the global canvas " "transform of the viewport." msgstr "" "该视窗的画布变换,对改变所有子 [CanvasItem] 的屏幕位置很有用。相对于该视窗的" "全局画布变换。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], uses a fast post-processing filter to make banding " "significantly less visible. In some cases, debanding may introduce a " "slightly noticeable dithering pattern. It's recommended to enable debanding " "only when actually needed since the dithering pattern will make lossless-" "compressed screenshots larger.\n" "[b]Note:[/b] Only available on the GLES3 backend. [member hdr] must also be " "[code]true[/code] for debanding to be effective." msgstr "" "如果为 [code]true[/code],则使用一个快速的后期处理滤波器,使带状现象明显减" "少。在某些情况下,去带可能会引入稍微明显的抖动模式。建议只有在实际需要时才启" "用去带,因为抖动模式会使无损压缩的屏幕截图变大。\n" "[b]注意:[/b]仅在 GLES3 后端可用。[member hdr] 也必须是 [code]true[/code] 才" "能使去色带生效。" #: doc/classes/Viewport.xml msgid "The overlay mode for test rendered geometry in debug purposes." msgstr "在调试时,用于测试渲染的几何图形的叠加模式。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the viewport will disable 3D rendering. For actual " "disabling use [code]usage[/code]." msgstr "" "如果为 [code]true[/code],该视窗将禁用 3D 渲染。对于实际禁用,使用 " "[code]usage[/code]。" #: doc/classes/Viewport.xml msgid "" "Enables fast approximate antialiasing. FXAA is a popular screen-space " "antialiasing method, which is fast but will make the image look blurry, " "especially at lower resolutions. It can still work relatively well at large " "resolutions such as 1440p and 4K. Some of the lost sharpness can be " "recovered by enabling contrast-adaptive sharpening (see [member " "sharpen_intensity])." msgstr "" "启用快速近似抗锯齿。FXAA 是一种流行的屏幕空间抗锯齿方法,它的速度很快,但会使" "图像看起来很模糊,特别是在较低的分辨率。在 1440p 和 4K 这样的大分辨率下,它仍" "然可以较好工作。一些损失的锐度可以通过启用对比度适应性锐化来恢复,参阅 " "[member sharpen_intensity]。" #: doc/classes/Viewport.xml msgid "" "The global canvas transform of the viewport. The canvas transform is " "relative to this." msgstr "该视窗的全局画布变换。画布变换是相对于这个的。" #: doc/classes/Viewport.xml msgid "If [code]true[/code], the viewport will not receive input events." msgstr "如果为 [code]true[/code],该视窗将不接收输入事件。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the GUI controls on the viewport will lay pixel " "perfectly." msgstr "如果为 [code]true[/code],该视窗上的 GUI 控件将完美地放置像素。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the viewport rendering will receive benefits from High " "Dynamic Range algorithm. High Dynamic Range allows the viewport to receive " "values that are outside the 0-1 range. In Godot, HDR uses half floating-" "point precision (16-bit) by default. To use full floating-point precision " "(32-bit), enable [member use_32_bpc_depth].\n" "[b]Note:[/b] Requires [member usage] to be set to [constant USAGE_3D] or " "[constant USAGE_3D_NO_EFFECTS], since HDR is not supported for 2D.\n" "[b]Note:[/b] Only available on the GLES3 backend." msgstr "" "如果为 [code]true[/code],视窗的渲染将获益于高动态范围算法。高动态范围允许视" "窗接收 0-1 范围以外的数值。在 Godot 中 HDR 默认使用半精度浮点数(16 位)。要" "使用全精度浮点数(32 位),请启用 [member use_32_bpc_depth]。\n" "[b]注意:[/b]需要将 [member usage] 设置为 [constant USAGE_3D] 或 [constant " "USAGE_3D_NO_EFFECTS],因为 HDR 不支持 2D。\n" "[b]注意:[/b]仅在 GLES3 后端中可用。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the result after 3D rendering will not have a linear " "to sRGB color conversion applied. This is important when the viewport is " "used as a render target where the result is used as a texture on a 3D object " "rendered in another viewport. It is also important if the viewport is used " "to create data that is not color based (noise, heightmaps, pickmaps, etc.). " "Do not enable this when the viewport is used as a texture on a 2D object or " "if the viewport is your final output. For the GLES2 driver this will convert " "the sRGB output to linear, this should only be used for VR plugins that " "require input in linear color space!" msgstr "" "如果为 [code]true[/code],3D 渲染后的结果将不会应用线性到 sRGB 的颜色转换。当" "视窗被用作渲染目标时,这点很重要,因为渲染结果会被用作另一个视窗中渲染的 3D " "物体的纹理。如果视窗被用来创建不基于颜色的数据,噪声、高度图、采图等,这也很" "重要。当视窗被用作 2D 对象的纹理时,或者视窗是你的最终输出时,请不要启用这个" "功能。对于 GLES2 驱动来说,这将把 sRGB 输出转换为线性输出,这应该只用于需要线" "性色彩空间输入的VR插件!" #: doc/classes/Viewport.xml msgid "" "The multisample anti-aliasing mode. A higher number results in smoother " "edges at the cost of significantly worse performance. A value of 4 is best " "unless targeting very high-end systems." msgstr "" "多重采样抗锯齿模式。一个较高的数字会使边缘更平滑,但代价是性能明显下降。除非" "是针对非常高端的系统,否则数值为4是最好的。" #: doc/classes/Viewport.xml #, fuzzy msgid "" "If [code]true[/code], the viewport will use a unique copy of the [World] " "defined in [member world]." msgstr "" "如果为 [code]true[/code],该视窗将使用 [code]world[/code] 属性中定义的 " "[World]。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the objects rendered by viewport become subjects of " "mouse picking process." msgstr "如果为 [code]true[/code],该视窗渲染的对象将成为鼠标拾取过程的对象。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], renders the Viewport directly to the screen instead of " "to the root viewport. Only available in GLES2. This is a low-level " "optimization and should not be used in most cases. If used, reading from the " "Viewport or from [code]SCREEN_TEXTURE[/code] becomes unavailable. For more " "information see [method VisualServer.viewport_set_render_direct_to_screen]." msgstr "" "如果为 [code]true[/code],会直接将 Viewport 渲染到屏幕上,而不是渲染到根视窗" "上。只在 GLES2 中可用。这是一个低级别的优化,在大多数情况下不应该使用。如果使" "用,从 Viewport 或从 [code]SCREEN_TEXTURE[/code] 读取将变得不可用。更多信息参" "阅 [method VisualServer.viewport_set_render_direct_to_screen]。" #: doc/classes/Viewport.xml msgid "" "The clear mode when viewport used as a render target.\n" "[b]Note:[/b] This property is intended for 2D usage." msgstr "" "视窗用作渲染目标时的清除模式。\n" "[b]注意:[/b]此属性适用于 2D 使用。" #: doc/classes/Viewport.xml msgid "The update mode when viewport used as a render target." msgstr "视窗用作渲染目标时的更新模式。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the result of rendering will be flipped vertically. " "Since Viewports in Godot 3.x render upside-down, it's recommended to set " "this to [code]true[/code] in most situations." msgstr "" "为 [code]true[/code] 时,渲染结果会被垂直翻转。因为 Godot 3.x 中 Viewport 渲" "染的内容是上下颠倒的,所以推荐在大多数情况下将其设置为 [code]true[/code]。" #: doc/classes/Viewport.xml msgid "The subdivision amount of the first quadrant on the shadow atlas." msgstr "阴影图集上第一象限的细分量。" #: doc/classes/Viewport.xml msgid "The subdivision amount of the second quadrant on the shadow atlas." msgstr "阴影图集上第二象限的细分量。" #: doc/classes/Viewport.xml msgid "The subdivision amount of the third quadrant on the shadow atlas." msgstr "阴影图集上第三象限的细分量。" #: doc/classes/Viewport.xml msgid "The subdivision amount of the fourth quadrant on the shadow atlas." msgstr "阴影图集上第四象限的细分量。" #: doc/classes/Viewport.xml msgid "" "The shadow atlas' resolution (used for omni and spot lights). The value will " "be rounded up to the nearest power of 2.\n" "[b]Note:[/b] If this is set to 0, shadows won't be visible. Since user-" "created viewports default to a value of 0, this value must be set above 0 " "manually." msgstr "" "阴影图集的分辨率(用于全向光和聚光)。该值将四舍五入到最接近的 2 的幂。\n" "[b]注意:[/b]如果设置为 0,阴影将不可见。由于用户创建的视区默认值为 0,因此必" "须手动将此值设置为大于 0。" #: doc/classes/Viewport.xml msgid "" "If set to a value greater than [code]0.0[/code], contrast-adaptive " "sharpening will be applied to the 3D viewport. This has a low performance " "cost and can be used to recover some of the sharpness lost from using FXAA. " "Values around [code]0.5[/code] generally give the best results. See also " "[member fxaa]." msgstr "" "如果设置为大于[code]0.0[/code]的值,对比度适应性锐化将被应用到3D视窗中。这具" "有较低的性能成本,可以用来恢复使用FXAA所损失的一些锐度。一般来说,[code]0.5[/" "code]左右的数值可以得到最好的效果。参阅[member fxaa]。" #: doc/classes/Viewport.xml msgid "" "The width and height of viewport. Must be set to a value greater than or " "equal to 2 pixels on both dimensions. Otherwise, nothing will be displayed." msgstr "" "视窗的宽度和高度。必须在两个维度上设置为大于或等于2像素的值。否则,将不会显示" "任何东西。" #: doc/classes/Viewport.xml msgid "If [code]true[/code], the size override affects stretch as well." msgstr "如果为 [code]true[/code],尺寸重写也会影响拉伸。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], the viewport should render its background as " "transparent." msgstr "如果为 [code]true[/code],该视窗应使其背景渲染为透明。" #: doc/classes/Viewport.xml msgid "The rendering mode of viewport." msgstr "视窗的渲染模式。" #: doc/classes/Viewport.xml msgid "" "If [code]true[/code], allocates the viewport's framebuffer with full " "floating-point precision (32-bit) instead of half floating-point precision " "(16-bit). Only effective when [member hdr] is also enabled.\n" "[b]Note:[/b] Enabling this setting does not improve rendering quality. Using " "full floating-point precision is slower, and is generally only needed for " "advanced shaders that require a high level of precision. To reduce banding, " "enable [member debanding] instead.\n" "[b]Note:[/b] Only available on the GLES3 backend." msgstr "" "如果为 [code]true[/code],分配该视窗的帧缓冲时将使用完整浮点数精度(32 位)而" "不是半浮点数精度(16 位)。仅在同时启用 [member hdr] 时有效。\n" "[b]注意:[/b]启用这个设置不会提升渲染质量。使用完整浮点数精度较慢,一般只有要" "求更高精度的高级着色器需要使用。如果是要减少条带效应,请启用 [member " "debanding]。\n" "[b]注意:[/b]仅在 GLES3 后端中可用。" #: doc/classes/Viewport.xml msgid "The custom [World] which can be used as 3D environment source." msgstr "自定义的 [World],可以作为 3D 环境源。" #: doc/classes/Viewport.xml msgid "The custom [World2D] which can be used as 2D environment source." msgstr "自定义的 [World2D],可以作为 2D 环境源。" #: doc/classes/Viewport.xml msgid "Emitted when a Control node grabs keyboard focus." msgstr "当控件节点获取键盘焦点时触发。" #: doc/classes/Viewport.xml msgid "" "Emitted when the size of the viewport is changed, whether by [method " "set_size_override], resize of window, or some other means." msgstr "" "当视窗的大小被改变时,无论是通过[method set_size_override],调整窗口的大小," "还是其他方式,都会触发。" #: doc/classes/Viewport.xml msgid "Do not update the render target." msgstr "不要更新渲染目标。" #: doc/classes/Viewport.xml msgid "" "Update the render target once, then switch to [constant UPDATE_DISABLED]." msgstr "更新渲染目标一次,然后切换到 [constant UPDATE_DISABLED]。" #: doc/classes/Viewport.xml msgid "" "Update the render target only when it is visible. This is the default value." msgstr "仅在渲染目标可见时更新渲染目标。这是默认值。" #: doc/classes/Viewport.xml msgid "Always update the render target." msgstr "始终更新渲染目标。" #: doc/classes/Viewport.xml msgid "This quadrant will not be used." msgstr "此象限将不使用。" #: doc/classes/Viewport.xml msgid "This quadrant will only be used by one shadow map." msgstr "此象限仅由一张阴影贴图使用。" #: doc/classes/Viewport.xml msgid "This quadrant will be split in 4 and used by up to 4 shadow maps." msgstr "此象限将分为 4 个,最多使用 4 个阴影贴图。" #: doc/classes/Viewport.xml msgid "This quadrant will be split 16 ways and used by up to 16 shadow maps." msgstr "此象限将被分成16个方向,并被最多16张阴影贴图使用。" #: doc/classes/Viewport.xml msgid "This quadrant will be split 64 ways and used by up to 64 shadow maps." msgstr "这个象限将被分成64个方向,并被最多64张阴影贴图使用。" #: doc/classes/Viewport.xml msgid "" "This quadrant will be split 256 ways and used by up to 256 shadow maps. " "Unless the [member shadow_atlas_size] is very high, the shadows in this " "quadrant will be very low resolution." msgstr "" "这个象限将被分成256个方向,并被最多256个阴影贴图使用。除非 [member " "shadow_atlas_size] 非常高,否则这个象限内的阴影分辨率会非常低。" #: doc/classes/Viewport.xml msgid "" "This quadrant will be split 1024 ways and used by up to 1024 shadow maps. " "Unless the [member shadow_atlas_size] is very high, the shadows in this " "quadrant will be very low resolution." msgstr "" "这个象限将被分成1024个方向,并被最多1024个阴影贴图使用。除非 [member " "shadow_atlas_size] 非常高,否则这个象限内的阴影分辨率会非常低。" #: doc/classes/Viewport.xml msgid "Represents the size of the [enum ShadowAtlasQuadrantSubdiv] enum." msgstr "代表[enum ShadowAtlasQuadrantSubdiv]枚举的大小。" #: doc/classes/Viewport.xml msgid "Amount of objects in frame." msgstr "帧中对象的数量。" #: doc/classes/Viewport.xml msgid "Amount of vertices in frame." msgstr "帧中的顶点数量。" #: doc/classes/Viewport.xml msgid "Amount of material changes in frame." msgstr "帧中的材质更改量。" #: doc/classes/Viewport.xml msgid "Amount of shader changes in frame." msgstr "帧中着色器的更改量。" #: doc/classes/Viewport.xml msgid "Amount of surface changes in frame." msgstr "帧中的表面更改量。" #: doc/classes/Viewport.xml msgid "Amount of draw calls in frame." msgstr "帧中的绘制调用量。" #: doc/classes/Viewport.xml msgid "Amount of items or joined items in frame." msgstr "帧中的项或联合项的数量。" #: doc/classes/Viewport.xml msgid "Represents the size of the [enum RenderInfo] enum." msgstr "表示 [enum RenderInfo] 枚举的大小。" #: doc/classes/Viewport.xml msgid "Objects are displayed normally." msgstr "对象正常显示。" #: doc/classes/Viewport.xml msgid "Objects are displayed without light information." msgstr "显示的对象没有光照信息。" #: doc/classes/Viewport.xml msgid "" "Objected are displayed semi-transparent with additive blending so you can " "see where they intersect." msgstr "对象以半透明的方式显示,并进行加法混合,因此你可以看到它们的相交处。" #: doc/classes/Viewport.xml msgid "Objects are displayed in wireframe style." msgstr "对象以线框风格显示。" #: doc/classes/Viewport.xml msgid "Multisample anti-aliasing mode disabled. This is the default value." msgstr "禁用多重采样抗锯齿模式。这是默认值。" #: doc/classes/Viewport.xml msgid "Use 2x Multisample Antialiasing." msgstr "使用 2x 多重采样抗锯齿。" #: doc/classes/Viewport.xml msgid "Use 4x Multisample Antialiasing." msgstr "使用 4x 多重采样抗锯齿。" #: doc/classes/Viewport.xml msgid "" "Use 8x Multisample Antialiasing. Likely unsupported on low-end and older " "hardware." msgstr "使用 8x 多重采样抗锯齿。在低端和旧硬件上可能不受支持。" #: doc/classes/Viewport.xml msgid "" "Use 16x Multisample Antialiasing. Likely unsupported on medium and low-end " "hardware." msgstr "使用 16x 多重采样抗锯齿。在中低端硬件上可能不受支持。" #: doc/classes/Viewport.xml msgid "" "Allocates all buffers needed for drawing 2D scenes. This takes less VRAM " "than the 3D usage modes. Note that 3D rendering effects such as glow and HDR " "are not available when using this mode." msgstr "" "分配绘制 2D 场景所需的所有缓冲区。这比 3D 使用模式占用更少的 VRAM。请注意,使" "用这种模式时,辉光和 HDR 等 3D 渲染效果是不可用的。" #: doc/classes/Viewport.xml msgid "" "Allocates buffers needed for 2D scenes without allocating a buffer for " "screen copy. Accordingly, you cannot read from the screen. Of the [enum " "Usage] types, this requires the least VRAM. Note that 3D rendering effects " "such as glow and HDR are not available when using this mode." msgstr "" "分配 2D 场景所需的缓冲区,而不分配屏幕拷贝的缓冲区。相应地,你不能从屏幕上读" "取。在 [enum Usage] 类型中,这需要最少的 VRAM。注意,使用这种模式时,辉光和 " "HDR 等 3D 渲染效果是不可用的。" #: doc/classes/Viewport.xml msgid "" "Allocates full buffers for drawing 3D scenes and all 3D effects including " "buffers needed for 2D scenes and effects." msgstr "" "为绘制 3D 场景和所有 3D 效果分配完整的缓冲区,包括 2D 场景和效果所需的缓冲" "区。" #: doc/classes/Viewport.xml msgid "" "Allocates buffers needed for drawing 3D scenes. But does not allocate " "buffers needed for reading from the screen and post-processing effects. " "Saves some VRAM." msgstr "" "分配绘制 3D 场景所需的缓冲区。但不分配从屏幕上读取和后期处理效果所需的缓冲" "区。节省了一些 VRAM。" #: doc/classes/Viewport.xml msgid "Always clear the render target before drawing." msgstr "绘制前始终清除渲染目标。" #: doc/classes/Viewport.xml msgid "Never clear the render target." msgstr "永不清除渲染目标。" #: doc/classes/Viewport.xml msgid "" "Clear the render target next frame, then switch to [constant " "CLEAR_MODE_NEVER]." msgstr "在下一帧清除渲染目标,然后切换到 [constant CLEAR_MODE_NEVER]。" #: doc/classes/ViewportContainer.xml msgid "Control for holding [Viewport]s." msgstr "用于持有 [Viewport] 的控件。" #: doc/classes/ViewportContainer.xml msgid "" "A [Container] node that holds a [Viewport], automatically setting its size.\n" "[b]Note:[/b] Changing a ViewportContainer's [member Control.rect_scale] will " "cause its contents to appear distorted. To change its visual size without " "causing distortion, adjust the node's margins instead (if it's not already " "in a container)." msgstr "" "容纳 [Viewport] 的 [Container] 节点,会自动设置其大小。\n" "[b]注意:[/b]改变 ViewportContainer 的 [member Control.rect_scale] 会导致其内" "容出现变形。要改变它的视觉尺寸而不引起失真,可以通过调整节点的边距来代替(如" "果它不在容器中)。" #: doc/classes/ViewportContainer.xml msgid "" "If [code]true[/code], the viewport will be scaled to the control's size." msgstr "为 [code]true[/code] 时视窗将被缩放到控件的大小。" #: doc/classes/ViewportContainer.xml msgid "" "Divides the viewport's effective resolution by this value while preserving " "its scale. This can be used to speed up rendering.\n" "For example, a 1280×720 viewport with [member stretch_shrink] set to " "[code]2[/code] will be rendered at 640×360 while occupying the same size in " "the container.\n" "[b]Note:[/b] [member stretch] must be [code]true[/code] for this property to " "work." msgstr "" "将视窗的有效分辨率除以这个值,同时保留其比例。这可以用来加快渲染速度。\n" "例如,一个1280×720的视窗,如果[member stretch_shrink]设置为[code]2[/code],将" "以640×360的尺寸进行渲染,同时在容器中占据同样的尺寸。\n" "[b]注意:[/b][member stretch]拉伸必须是[code]true[/code],这个属性才能发挥作" "用。" #: doc/classes/ViewportTexture.xml msgid "Texture which displays the content of a [Viewport]." msgstr "显示 [Viewport] 内容的纹理。" #: doc/classes/ViewportTexture.xml msgid "" "Displays the content of a [Viewport] node as a dynamic [Texture]. This can " "be used to mix controls, 2D, and 3D elements in the same scene.\n" "To create a ViewportTexture in code, use the [method Viewport.get_texture] " "method on the target viewport." msgstr "" "将 [Viewport] 节点的内容显示为一个动态的 [Texture]。可以用来在同一个场景中混" "合控件、2D 和 3D元素。\n" "要通过代码创建 ViewportTexture,请使用目标视窗上的 [method Viewport." "get_texture] 方法。" #: doc/classes/ViewportTexture.xml msgid "" "The path to the [Viewport] node to display. This is relative to the scene " "root, not to the node which uses the texture." msgstr "" "显示 [Viewport] 节点的路径。该路径是相对于场景根的,而不是相对于使用该纹理的" "节点。" #: doc/classes/VisibilityEnabler.xml doc/classes/VisibilityEnabler2D.xml msgid "Enables certain nodes only when approximately visible." msgstr "只在大约可见时启用某些节点。" #: doc/classes/VisibilityEnabler.xml msgid "" "The VisibilityEnabler will disable [RigidBody] and [AnimationPlayer] nodes " "when they are not visible. It will only affect other nodes within the same " "scene as the VisibilityEnabler itself.\n" "If you just want to receive notifications, use [VisibilityNotifier] " "instead.\n" "[b]Note:[/b] VisibilityEnabler uses an approximate heuristic for performance " "reasons. It doesn't take walls and other occlusion into account (unless you " "are using [Portal]s). The heuristic is an implementation detail and may " "change in future versions. If you need precise visibility checking, use " "another method such as adding an [Area] node as a child of a [Camera] node " "and/or [method Vector3.dot].\n" "[b]Note:[/b] VisibilityEnabler will not affect nodes added after scene " "initialization." msgstr "" "当 [RigidBody] 和 [AnimationPlayer] 节点不可见时,VisibilityEnabler 将禁用它" "们。它只会影响与 VisibilityEnabler 本身相同场景中的其他节点。\n" "如果你只是想接收通知,请使用 [VisibilityNotifier] 代替。\n" "[b]注意:[/b]VisibilityEnabler 由于性能原因使用了一个近似的启发式方法。它不会" "考虑墙和其他遮挡物(除非你使用了 [Portal])。启发式这一实现细节,在未来的版本" "中可能会改变。如果你需要精确的可见性检查,请使用另一种方法,例如添加一个 " "[Area] 节点作为 [Camera] 节点的子节点和/或 [method Vector3.dot]。\n" "[b]注意:[/b]VisibilityEnabler 不会影响场景初始化后添加的节点。" #: doc/classes/VisibilityEnabler.xml doc/classes/VisibilityEnabler2D.xml msgid "" "Returns whether the enabler identified by given [enum Enabler] constant is " "active." msgstr "返回由给定的 [enum Enabler] 常量标识的启用程序是否处于活动状态。" #: doc/classes/VisibilityEnabler.xml doc/classes/VisibilityEnabler2D.xml msgid "" "Sets active state of the enabler identified by given [enum Enabler] constant." msgstr "设置由给定的[enum Enabler]常量识别的启用程序的活动状态。" #: doc/classes/VisibilityEnabler.xml msgid "If [code]true[/code], [RigidBody] nodes will be paused." msgstr "如果[code]true[/code],[RigidBody]节点将被暂停。" #: doc/classes/VisibilityEnabler.xml doc/classes/VisibilityEnabler2D.xml msgid "If [code]true[/code], [AnimationPlayer] nodes will be paused." msgstr "如果[code]true[/code],[AnimationPlayer]节点将被暂停。" #: doc/classes/VisibilityEnabler.xml doc/classes/VisibilityEnabler2D.xml msgid "This enabler will pause [AnimationPlayer] nodes." msgstr "这个启用程序将暂停[AnimationPlayer]节点。" #: doc/classes/VisibilityEnabler.xml msgid "This enabler will freeze [RigidBody] nodes." msgstr "这个启用程序将冻结[RigidBody]节点。" #: doc/classes/VisibilityEnabler.xml doc/classes/VisibilityEnabler2D.xml msgid "Represents the size of the [enum Enabler] enum." msgstr "表示[enum Enabler]枚举的大小。" #: doc/classes/VisibilityEnabler2D.xml msgid "" "The VisibilityEnabler2D will disable [RigidBody2D], [AnimationPlayer], and " "other nodes when they are not visible. It will only affect nodes with the " "same root node as the VisibilityEnabler2D, and the root node itself.\n" "If you just want to receive notifications, use [VisibilityNotifier2D] " "instead.\n" "[b]Note:[/b] For performance reasons, VisibilityEnabler2D uses an " "approximate heuristic with precision determined by [member ProjectSettings." "world/2d/cell_size]. If you need precise visibility checking, use another " "method such as adding an [Area2D] node as a child of a [Camera2D] node.\n" "[b]Note:[/b] VisibilityEnabler2D will not affect nodes added after scene " "initialization." msgstr "" "VisibilityEnabler2D会在[RigidBody2D]、[AnimationPlayer]和其他节点不可见时禁用" "它们。它只会影响与VisibilityEnabler2D的根节点相同的节点,以及根节点本身。\n" "如果你只想接收通知,请使用[VisibilityNotifier2D]代替。\n" "[b]注意:[/b]由于性能原因,VisibilityEnabler2D使用一个近似的启发式方法,其精" "度由 [member ProjectSettings.world/2d/cell_size] 决定。如果你需要精确的可见性" "检查,请使用另一种方法,例如添加一个[Area2D]节点作为[Camera2D]节点的子节" "点。\n" "[b]注意:[/b]VisibilityEnabler2D不会影响场景初始化后添加的节点。" #: doc/classes/VisibilityEnabler2D.xml msgid "If [code]true[/code], [RigidBody2D] nodes will be paused." msgstr "如果[code]true[/code],[RigidBody2D]节点将被暂停。" #: doc/classes/VisibilityEnabler2D.xml msgid "If [code]true[/code], [AnimatedSprite] nodes will be paused." msgstr "如果[code]true[/code],[AnimatedSprite]节点将被暂停。" #: doc/classes/VisibilityEnabler2D.xml msgid "If [code]true[/code], [Particles2D] nodes will be paused." msgstr "如果[code]true[/code],[Particles2D]节点将被暂停。" #: doc/classes/VisibilityEnabler2D.xml msgid "" "If [code]true[/code], the parent's [method Node._physics_process] will be " "stopped." msgstr "如果[code]true[/code],父级的[method Node._physics_process]将被停止。" #: doc/classes/VisibilityEnabler2D.xml msgid "" "If [code]true[/code], the parent's [method Node._process] will be stopped." msgstr "如果[code]true[/code],父级的[method Node._process]将被停止。" #: doc/classes/VisibilityEnabler2D.xml msgid "This enabler will freeze [RigidBody2D] nodes." msgstr "这个启用程序将冻结[RigidBody2D]节点。" #: doc/classes/VisibilityEnabler2D.xml msgid "This enabler will stop [Particles2D] nodes." msgstr "这个启用程序将停止[Particles2D]节点。" #: doc/classes/VisibilityEnabler2D.xml msgid "This enabler will stop the parent's _process function." msgstr "这个启用程序将停止父类的_process函数。" #: doc/classes/VisibilityEnabler2D.xml msgid "This enabler will stop the parent's _physics_process function." msgstr "这个启用程序将停止父类的_physics_process函数。" #: doc/classes/VisibilityEnabler2D.xml msgid "This enabler will stop [AnimatedSprite] nodes animations." msgstr "这个启用程序将停止[AnimatedSprite]节点的动画。" #: doc/classes/VisibilityNotifier.xml doc/classes/VisibilityNotifier2D.xml msgid "Detects approximately when the node is visible on screen." msgstr "大约在节点在屏幕上可见时进行检测。" #: doc/classes/VisibilityNotifier.xml msgid "" "The VisibilityNotifier detects when it is visible on the screen. It also " "notifies when its bounding rectangle enters or exits the screen or a " "[Camera]'s view.\n" "If you want nodes to be disabled automatically when they exit the screen, " "use [VisibilityEnabler] instead.\n" "[b]Note:[/b] VisibilityNotifier uses an approximate heuristic for " "performance reasons. It doesn't take walls and other occlusion into account " "(unless you are using [Portal]s). The heuristic is an implementation detail " "and may change in future versions. If you need precise visibility checking, " "use another method such as adding an [Area] node as a child of a [Camera] " "node and/or [method Vector3.dot]." msgstr "" "VisibilityNotifier 检测它在屏幕上是否可见。当它的边界矩形进入或退出屏幕或 " "[Camera] 的视图时,它也会发出通知。\n" "如果你想让节点在退出屏幕时自动禁用,请使用 [VisibilityEnabler] 代替。\n" "[b]注意:[/b]VisibilityNotifier 由于性能原因使用了一个近似的启发式方法。它不" "会考虑墙和其他遮挡物(除非你使用了 [Portal])。启发式这一实现细节,在未来的版" "本中可能会改变。如果你需要精确的可见性检查,请使用另一种方法,例如添加一个 " "[Area] 节点作为 [Camera] 节点的子节点和/或 [method Vector3.dot]。" #: doc/classes/VisibilityNotifier.xml msgid "" "If [code]true[/code], the bounding box is on the screen.\n" "[b]Note:[/b] It takes one frame for the node's visibility to be assessed " "once added to the scene tree, so this method will return [code]false[/code] " "right after it is instantiated, even if it will be on screen in the draw " "pass." msgstr "" "如果[code]true[/code],则边界框在屏幕上。\n" "[b]注意:[/b]一旦添加到场景树中,需要一帧来计算节点的可见性,所以这个方法将在" "它被实例化后立即返回 [code]false[/code],即使屏幕在绘制过程中。" #: doc/classes/VisibilityNotifier.xml msgid "The VisibilityNotifier's bounding box." msgstr "VisibilityNotifier的边界框。" #: doc/classes/VisibilityNotifier.xml msgid "Emitted when the VisibilityNotifier enters a [Camera]'s view." msgstr "当VisibilityNotifier进入[Camera]的视图时触发。" #: doc/classes/VisibilityNotifier.xml msgid "Emitted when the VisibilityNotifier exits a [Camera]'s view." msgstr "当VisibilityNotifier退出[Camera]的视图时触发。" #: doc/classes/VisibilityNotifier.xml msgid "Emitted when the VisibilityNotifier enters the screen." msgstr "当VisibilityNotifier进入屏幕时触发。" #: doc/classes/VisibilityNotifier.xml msgid "Emitted when the VisibilityNotifier exits the screen." msgstr "当VisibilityNotifier退出屏幕时触发。" #: doc/classes/VisibilityNotifier2D.xml msgid "" "The VisibilityNotifier2D detects when it is visible on the screen. It also " "notifies when its bounding rectangle enters or exits the screen or a " "viewport.\n" "If you want nodes to be disabled automatically when they exit the screen, " "use [VisibilityEnabler2D] instead.\n" "[b]Note:[/b] For performance reasons, VisibilityNotifier2D uses an " "approximate heuristic with precision determined by [member ProjectSettings." "world/2d/cell_size]. If you need precise visibility checking, use another " "method such as adding an [Area2D] node as a child of a [Camera2D] node." msgstr "" "VisibilityNotifier2D检测它在屏幕上是否可见。当它的边界矩形进入或退出屏幕或视" "窗时,它也会发出通知。\n" "如果你想让节点在退出屏幕时自动禁用,请使用[VisibilityEnabler2D]代替。\n" "[b]注意:[/b]由于性能原因,VisibilityNotifier2D使用一个近似的启发式方法,其精" "度由 [member ProjectSettings.world/2d/cell_size] 决定。如果你需要精确的可见性" "检查,请使用另一种方法,如添加一个[Area2D]节点作为[Camera2D]节点的子节点。" #: doc/classes/VisibilityNotifier2D.xml msgid "" "If [code]true[/code], the bounding rectangle is on the screen.\n" "[b]Note:[/b] It takes one frame for the node's visibility to be assessed " "once added to the scene tree, so this method will return [code]false[/code] " "right after it is instantiated, even if it will be on screen in the draw " "pass." msgstr "" "如果[code]true[/code],则边界矩形在屏幕上。\n" "[b]注意:[/b]一旦添加到场景树中,需要一帧来计算节点的可见性,所以这个方法将在" "它被实例化后立即返回 [code]false[/code],即使屏幕在绘制过程中。" #: doc/classes/VisibilityNotifier2D.xml msgid "The VisibilityNotifier2D's bounding rectangle." msgstr "VisibilityNotifier2D的边界矩形。" #: doc/classes/VisibilityNotifier2D.xml msgid "Emitted when the VisibilityNotifier2D enters the screen." msgstr "当VisibilityNotifier2D进入屏幕时触发。" #: doc/classes/VisibilityNotifier2D.xml msgid "Emitted when the VisibilityNotifier2D exits the screen." msgstr "当VisibilityNotifier2D退出屏幕时触发。" #: doc/classes/VisibilityNotifier2D.xml msgid "Emitted when the VisibilityNotifier2D enters a [Viewport]'s view." msgstr "当VisibilityNotifier2D进入[Viewport]的视图时触发。" #: doc/classes/VisibilityNotifier2D.xml msgid "Emitted when the VisibilityNotifier2D exits a [Viewport]'s view." msgstr "当VisibilityNotifier2D退出[Viewport]的视图时触发。" #: doc/classes/VisualInstance.xml msgid "Parent of all visual 3D nodes." msgstr "所有可视3D节点的父节点。" #: doc/classes/VisualInstance.xml msgid "" "The [VisualInstance] is used to connect a resource to a visual " "representation. All visual 3D nodes inherit from the [VisualInstance]. In " "general, you should not access the [VisualInstance] properties directly as " "they are accessed and managed by the nodes that inherit from " "[VisualInstance]. [VisualInstance] is the node representation of the " "[VisualServer] instance." msgstr "" "[VisualInstance] 可用于将资源连接到视觉表示。所有的可视化 3D 节点都继承自 " "[VisualInstance]。一般来说,你不应该直接访问 [VisualInstance] 的属性,因为它" "们是由继承自 [VisualInstance] 的节点访问和管理的。[VisualInstance] 是 " "[VisualServer] 实例的节点表示。" #: doc/classes/VisualInstance.xml msgid "" "Returns the [AABB] (also known as the bounding box) for this " "[VisualInstance]. See also [method get_transformed_aabb]." msgstr "" "返回此[VisualInstance]的[AABB],也称为边界框。参阅[method " "get_transformed_aabb]。" #: doc/classes/VisualInstance.xml msgid "" "Returns the RID of the resource associated with this [VisualInstance]. For " "example, if the Node is a [MeshInstance], this will return the RID of the " "associated [Mesh]." msgstr "" "返回与此[VisualInstance]相关的资源的RID。例如,如果该节点是一个" "[MeshInstance],这将返回相关的[Mesh]的RID。" #: doc/classes/VisualInstance.xml msgid "" "Returns the RID of this instance. This RID is the same as the RID returned " "by [method VisualServer.instance_create]. This RID is needed if you want to " "call [VisualServer] functions directly on this [VisualInstance]." msgstr "" "返回这个实例的RID。这个RID与[method VisualServer.instance_create]所返回的RID" "相同。如果你想在这个[VisualInstance]上直接调用[VisualServer]函数,就需要这个" "RID。" #: doc/classes/VisualInstance.xml msgid "" "Returns [code]true[/code] when the specified layer is enabled in [member " "layers] and [code]false[/code] otherwise." msgstr "" "当指定的层在 [member layers] 中被启用时,返回 [code]true[/code],否则返回 " "[code]false[/code]。" #: doc/classes/VisualInstance.xml msgid "" "Returns the transformed [AABB] (also known as the bounding box) for this " "[VisualInstance].\n" "Transformed in this case means the [AABB] plus the position, rotation, and " "scale of the [Spatial]'s [Transform]. See also [method get_aabb]." msgstr "" "返回此[VisualInstance]的变换后的[AABB],也称为边界框。\n" "这里的变换是指[AABB]加上[Spatial]的[Transform]的位置、旋转和缩放。参阅" "[method get_aabb]。" #: doc/classes/VisualInstance.xml msgid "" "Sets the resource that is instantiated by this [VisualInstance], which " "changes how the engine handles the [VisualInstance] under the hood. " "Equivalent to [method VisualServer.instance_set_base]." msgstr "" "设置由该[VisualInstance]实例化的资源,这将改变引擎对该[VisualInstance]的处理" "方式。相当于[method VisualServer.instance_set_base]。" #: doc/classes/VisualInstance.xml msgid "Enables a particular layer in [member layers]." msgstr "启用 [member layers] 中的特定层。" #: doc/classes/VisualInstance.xml msgid "" "The render layer(s) this [VisualInstance] is drawn on.\n" "This object will only be visible for [Camera]s whose cull mask includes the " "render object this [VisualInstance] is set to." msgstr "" "绘制此 [VisualInstance] 的渲染层。\n" "此对象仅对[Camera]可见,其剔除遮罩包括此[VisualInstance]设置的渲染对象。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "A script implemented in the Visual Script programming environment." msgstr "在 Visual Script 编程环境中实现的脚本。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "A script implemented in the Visual Script programming environment. The " "script extends the functionality of all objects that instance it.\n" "[method Object.set_script] extends an existing object, if that object's " "class matches one of the script's base classes.\n" "You are most likely to use this class via the Visual Script editor or when " "writing plugins for it." msgstr "" "在 Visual Script 编程环境中实现的脚本。该脚本扩展了所有实例化它的对象的功" "能。\n" "[method Object.set_script] 扩展现有对象,如果该对象的类与脚本的基类之一匹" "配。\n" "您最有可能通过 Visual Script 编辑器或在为其编写插件时使用此类。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Add a custom signal with the specified name to the VisualScript." msgstr "在 VisualScript 中添加指定名称的自定义信号。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Add a function with the specified name to the VisualScript." msgstr "在 VisualScript 中添加指定名称的函数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Add a node to a function of the VisualScript." msgstr "向 VisualScript 的函数添加节点。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Add a variable to the VisualScript, optionally giving it a default value or " "marking it as exported." msgstr "在 VisualScript 中添加一个变量,可选择给它一个默认值或将其标记为导出。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Add an argument to a custom signal added with [method add_custom_signal]." msgstr "为用 [method add_custom_signal] 添加的自定义信号添加一个参数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Get the count of a custom signal's arguments." msgstr "获取自定义信号的参数个数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Get the name of a custom signal's argument." msgstr "获取自定义信号的参数名称。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Get the type of a custom signal's argument." msgstr "获取自定义信号的参数类型。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Remove a specific custom signal's argument." msgstr "删除特定的自定义信号的参数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Rename a custom signal's argument." msgstr "重命名自定义信号的参数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Change the type of a custom signal's argument." msgstr "更改自定义信号的参数类型。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Swap two of the arguments of a custom signal." msgstr "调换自定义信号的两个参数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Connect two data ports. The value of [code]from_node[/code]'s " "[code]from_port[/code] would be fed into [code]to_node[/code]'s " "[code]to_port[/code]." msgstr "" "连接两个数据端口。[code]from_node[/code]的[code]from_port[/code]的值将被输入" "[code]to_node[/code]的[code]to_port[/code]。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Disconnect two data ports previously connected with [method data_connect]." msgstr "断开之前用[method data_connect]连接的两个数据端口。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns the id of a function's entry point node." msgstr "返回函数入口点节点的 ID。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns the position of the center of the screen for a given function." msgstr "返回给定函数的屏幕中心的位置。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns a node given its id and its function." msgstr "返回一个节点,指定它的id和它的函数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns a node's position in pixels." msgstr "返回节点的坐标,单位是像素。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns the default (initial) value of a variable." msgstr "返回变量的初始默认值。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether a variable is exported." msgstr "返回是否导出变量。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Returns the information for a given variable as a dictionary. The " "information includes its name, type, hint and usage." msgstr "" "以字典的形式返回指定变量的信息。这些信息包括它的名称、类型、提示和用法。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether a signal exists with the specified name." msgstr "返回是否存在具有指定名称的信号。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether the specified data ports are connected." msgstr "返回指定的数据端口是否已连接。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether a function exists with the specified name." msgstr "返回是否存在带有指定名称的函数。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether a node exists with the given id." msgstr "返回是否存在带有给定 ID 的节点。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether the specified sequence ports are connected." msgstr "返回指定的序列端口是否已连接。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Returns whether a variable exists with the specified name." msgstr "返回是否存在带有指定名称的变量。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Remove a custom signal with the given name." msgstr "删除带有给定名称的自定义信号。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Remove a specific function and its nodes from the script." msgstr "从脚本中删除特定函数及其节点。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Remove a specific node." msgstr "删除特定节点。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Remove a variable with the given name." msgstr "删除具有给定名称的变量。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Change the name of a custom signal." msgstr "更改自定义信号的名称。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Change the name of a function." msgstr "更改函数的名称。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Change the name of a variable." msgstr "更改变量的名称。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Connect two sequence ports. The execution will flow from of [code]from_node[/" "code]'s [code]from_output[/code] into [code]to_node[/code].\n" "Unlike [method data_connect], there isn't a [code]to_port[/code], since the " "target node can have only one sequence port." msgstr "" "连接两个序列端口。执行将从[code]from_node[/code]的[code]from_output[/code]输" "入[code]to_node[/code]。\n" "与[method data_connect]不同,没有[code]to_port[/code],因为目标节点只能有一个" "序列端口。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Disconnect two sequence ports previously connected with [method " "sequence_connect]." msgstr "断开之前用 [method sequence_connect] 连接的两个序列端口。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Position the center of the screen for a function." msgstr "为功能定位屏幕中心。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Set the base type of the script." msgstr "设置脚本的基类。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Position a node on the screen." msgstr "在屏幕上定位一个节点。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Change the default (initial) value of a variable." msgstr "更改变量的初始默认值。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Change whether a variable is exported." msgstr "更改是否导出变量。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "" "Set a variable's info, using the same format as [method get_variable_info]." msgstr "设置变量的信息,使用与 [method get_variable_info] 相同的格式。" #: modules/visual_script/doc_classes/VisualScript.xml msgid "Emitted when the ports of a node are changed." msgstr "当节点端口更改时触发。" #: modules/visual_script/doc_classes/VisualScriptBasicTypeConstant.xml msgid "A Visual Script node representing a constant from the base types." msgstr "一个 Visual Script 节点,表示基本类型中的一个常量。" #: modules/visual_script/doc_classes/VisualScriptBasicTypeConstant.xml msgid "" "A Visual Script node representing a constant from base types, such as " "[constant Vector3.AXIS_X]." msgstr "表示基本类型常量的 Visual Script 节点,如 [constant Vector3.AXIS_X]。" #: modules/visual_script/doc_classes/VisualScriptBasicTypeConstant.xml msgid "The type to get the constant from." msgstr "从中获取常量的类型。" #: modules/visual_script/doc_classes/VisualScriptBasicTypeConstant.xml msgid "The name of the constant to return." msgstr "要返回的常量的名称。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "A Visual Script node used to call built-in functions." msgstr "用于调用内置函数的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "A built-in function used inside a [VisualScript]. It is usually a math " "function or an utility function.\n" "See also [@GDScript], for the same functions in the GDScript language." msgstr "" "在 [VisualScript] 中使用的内置函数。它通常是一个数学函数或一个实用函数。\n" "也可参阅[@GDScript],了解GDScript语言中的相同函数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "The function to be executed." msgstr "要执行的函数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the sine of the input." msgstr "返回输入的正弦值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the cosine of the input." msgstr "返回输入的余弦值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the tangent of the input." msgstr "返回输入的正切值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the hyperbolic sine of the input." msgstr "返回输入的双曲正弦。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the hyperbolic cosine of the input." msgstr "返回输入的双曲余弦。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the hyperbolic tangent of the input." msgstr "返回输入的双曲正切值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the arc sine of the input." msgstr "返回输入的反正弦。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the arc cosine of the input." msgstr "返回输入的反余弦值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the arc tangent of the input." msgstr "返回输入的反正切。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the arc tangent of the input, using the signs of both parameters to " "determine the exact angle." msgstr "返回输入的反正切,使用两个参数的符号来确定确切的角度。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the square root of the input." msgstr "返回输入的平方根。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the remainder of one input divided by the other, using floating-point " "numbers." msgstr "返回一个输入的余数除以另一个输入的余数,使用浮点数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the positive remainder of one input divided by the other, using " "floating-point numbers." msgstr "返回一个输入除以另一个输入的正余数,使用浮点数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the input rounded down." msgstr "返回向下舍入的输入。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the input rounded up." msgstr "返回向上舍入的输入。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the input rounded to the nearest integer." msgstr "返回输入值四舍五入到最接近的整数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the absolute value of the input." msgstr "返回输入的绝对值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the sign of the input, turning it into 1, -1, or 0. Useful to " "determine if the input is positive or negative." msgstr "返回输入的符号,将其变成1、-1或0,有助于确定输入是正数还是负数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the input raised to a given power." msgstr "返回被提高到给定幂的输入值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the natural logarithm of the input. Note that this is not the typical " "base-10 logarithm function calculators use." msgstr "" "返回输入的自然对数。注意,这不是计算器使用的典型的以10为基数的对数函数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the mathematical constant [b]e[/b] raised to the specified power of " "the input. [b]e[/b] has an approximate value of 2.71828." msgstr "返回数学常量[b]e[/b]提高到指定的幂。[b]e[/b]的近似值为2.71828。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return whether the input is NaN (Not a Number) or not. NaN is usually " "produced by dividing 0 by 0, though other ways exist." msgstr "" "返回输入是否为NaN(Not a Number)。NaN通常是由0除以0产生的,当然也有其他方" "式。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return whether the input is an infinite floating-point number or not. " "Infinity is usually produced by dividing a number by 0, though other ways " "exist." msgstr "" "返回输入的数字是否为无限大的浮点数。无限通常是由一个数字除以0产生的,当然也有" "其他的方式。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Easing function, based on exponent. 0 is constant, 1 is linear, 0 to 1 is " "ease-in, 1+ is ease out. Negative values are in-out/out in." msgstr "" "缓动函数,基于指数。[code]s[/code]是函数的x值,[code]curve[/code]为0时,函数" "为常量函数,1是线性函数,0到1是缓入,1+是缓出。0到-1是缓出再缓入,低于-1是缓" "入再缓出。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the number of digit places after the decimal that the first non-zero " "digit occurs." msgstr "返回第一个非零数字出现在小数点后的数字位数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the input snapped to a given step." msgstr "返回给定步骤的输入断点。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return a number linearly interpolated between the first two inputs, based on " "the third input. Uses the formula [code]a + (a - b) * t[/code]." msgstr "" "返回一个在前两个输入之间线性插值的数字,以第三个输入为基础。使用公式[code]a " "+ (a - b) * t[/code]。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Moves the number toward a value, based on the third input." msgstr "根据第三个输入,将数字向一个值移动。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the result of [code]value[/code] decreased by [code]step[/code] * " "[code]amount[/code]." msgstr "" "返回 [code]value[/code]减少[code]step[/code]*[code]amount[/code]的结果。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Randomize the seed (or the internal state) of the random number generator. " "Current implementation reseeds using a number based on time." msgstr "" "随机化随机数生成器的种子(或内部状态)。目前的实现是使用一个基于时间的数字重" "新做种。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return a random 32 bits integer value. To obtain a random value between 0 to " "N (where N is smaller than 2^32 - 1), you can use it with the remainder " "function." msgstr "" "返回一个随机的32位整数值。为了获得0到N之间的随机值(其中N小于2^32 - 1),你可" "以将其与余数函数一起使用。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return a random floating-point value between 0 and 1. To obtain a random " "value between 0 to N, you can use it with multiplication." msgstr "" "返回一个介于0到1之间的随机浮点值。要获得一个介于0到N之间的随机值,可以将其与" "乘法结合使用。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return a random floating-point value between the two inputs." msgstr "返回两个输入之间的一个随机浮点值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Set the seed for the random number generator." msgstr "设置随机数生成器的种子。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return a random value from the given seed, along with the new seed." msgstr "返回一个来自给定种子的随机值,以及新的种子。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Convert the input from degrees to radians." msgstr "将输入的度数转换为弧度。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Convert the input from radians to degrees." msgstr "将输入从弧度转换为度数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Convert the input from linear volume to decibel volume." msgstr "将输入从线性音量转换为分贝音量。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Convert the input from decibel volume to linear volume." msgstr "将输入从分贝音量转换为线性音量。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the greater of the two numbers, also known as their maximum." msgstr "返回两个数字中较大的一个,也被称为它们的最大值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the lesser of the two numbers, also known as their minimum." msgstr "返回两个数字中较小的一个,也被称为它们的最小值。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the input clamped inside the given range, ensuring the result is " "never outside it. Equivalent to [code]min(max(input, range_low), range_high)" "[/code]." msgstr "" "返回限定在给定范围内的输入,确保结果永远不会超出该范围。相当于" "[code]min(max(input, range_low), range_high)[/code]。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return the nearest power of 2 to the input." msgstr "将最接近的2的次方返回给输入。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Create a [WeakRef] from the input." msgstr "从输入创建一个[WeakRef]。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Create a [FuncRef] from the input." msgstr "从输入创建一个[FuncRef]。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Convert between types." msgstr "在类型之间转换。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the type of the input as an integer. Check [enum Variant.Type] for " "the integers that might be returned." msgstr "" "返回输入的类型为整数。请查看[enum Variant.Type]以了解可能被返回的整数。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Checks if a type is registered in the [ClassDB]." msgstr "检查类型是否已在 [ClassDB] 中注册。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Return a character with the given ascii value." msgstr "返回具有给定 ascii 值的字符。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Convert the input to a string." msgstr "将输入转换为字符串。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Print the given string to the output window." msgstr "打印给定的字符串到输出窗口。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Print the given string to the standard error output." msgstr "打印给定的字符串到标准错误输出。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Print the given string to the standard output, without adding a newline." msgstr "打印给定的字符串到标准输出,不加换行。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Serialize a [Variant] to a string." msgstr "将 [Variant] 序列化为字符串。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Deserialize a [Variant] from a string serialized using [constant VAR_TO_STR]." msgstr "" "从一个使用 [constant VAR_TO_STR]序列化的字符串中反序列化一个 [Variant] 。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Serialize a [Variant] to a [PoolByteArray]." msgstr "将 [Variant] 序列化为 [PoolByteArray]。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Deserialize a [Variant] from a [PoolByteArray] serialized using [constant " "VAR_TO_BYTES]." msgstr "" "从使用 [constant VAR_TO_BYTES] 序列化的 [PoolByteArray] 反序列化 [Variant]。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return the [Color] with the given name and alpha ranging from 0 to 1.\n" "[b]Note:[/b] Names are defined in [code]color_names.inc[/code]." msgstr "" "返回具有给定名称的 [Color] 和从 0 到 1 的 Alpha。\n" "[b]注意:[/b]名称在 [code]color_names.inc[/code] 中定义。" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "" "Return a number smoothly interpolated between the first two inputs, based on " "the third input. Similar to [constant MATH_LERP], but interpolates faster at " "the beginning and slower at the end. Using Hermite interpolation formula:\n" "[codeblock]\n" "var t = clamp((weight - from) / (to - from), 0.0, 1.0)\n" "return t * t * (3.0 - 2.0 * t)\n" "[/codeblock]" msgstr "" "返回一个在前两个输入之间平滑内插的数字,基于第三个输入。类似于 [constant " "MATH_LERP],但在开始时插值较快,结束时插值较慢。使用Hermite插值公式。\n" "[codeblock]\n" "var t = clamp((weight - from) / (to - from), 0.0, 1.0)\n" "return t * t * (3.0 - 2.0 * t)\n" "[/codeblock]" #: modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml msgid "Represents the size of the [enum BuiltinFunc] enum." msgstr "表示 [enum BuiltinFunc] 枚举的大小。" #: modules/visual_script/doc_classes/VisualScriptClassConstant.xml msgid "Gets a constant from a given class." msgstr "从给定类中获取常量。" #: modules/visual_script/doc_classes/VisualScriptClassConstant.xml msgid "" "This node returns a constant from a given class, such as [constant " "TYPE_INT]. See the given class' documentation for available constants.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]value[/code]" msgstr "" "该节点从指定类中返回常量,例如 [constant TYPE_INT]。关于可用的常量,请参阅指" "定类的文档。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]value[/code]" #: modules/visual_script/doc_classes/VisualScriptClassConstant.xml msgid "The constant's parent class." msgstr "常量的父类。" #: modules/visual_script/doc_classes/VisualScriptClassConstant.xml msgid "" "The constant to return. See the given class for its available constants." msgstr "要返回的常量。可用的常量参阅给定的类。" #: modules/visual_script/doc_classes/VisualScriptComment.xml msgid "A Visual Script node used to annotate the script." msgstr "用于注释脚本的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptComment.xml msgid "" "A Visual Script node used to display annotations in the script, so that code " "may be documented.\n" "Comment nodes can be resized so they encompass a group of nodes." msgstr "" "Visual Script 节点,用于显示脚本中的注释,以便为代码提供文档。\n" "注释节点可以调整大小,以便包含一组节点。" #: modules/visual_script/doc_classes/VisualScriptComment.xml msgid "The text inside the comment node." msgstr "注释节点内的文本。" #: modules/visual_script/doc_classes/VisualScriptComment.xml msgid "The comment node's size (in pixels)." msgstr "注释节点的大小(以像素为单位)。" #: modules/visual_script/doc_classes/VisualScriptComment.xml msgid "The comment node's title." msgstr "注释节点的标题。" #: modules/visual_script/doc_classes/VisualScriptComposeArray.xml msgid "A Visual Script Node used to create array from a list of items." msgstr "Visual Script 节点,用于从项目列表中创建数组。" #: modules/visual_script/doc_classes/VisualScriptComposeArray.xml msgid "" "A Visual Script Node used to compose array from the list of elements " "provided with custom in-graph UI hard coded in the VisualScript Editor." msgstr "" "Visual Script 节点,用于从可视化脚本编辑器中硬编码的自定义图像内用户界面提供" "的元素列表中组成数组。" #: modules/visual_script/doc_classes/VisualScriptCondition.xml msgid "A Visual Script node which branches the flow." msgstr "Visual Script 节点,它是流程的分支。" #: modules/visual_script/doc_classes/VisualScriptCondition.xml msgid "" "A Visual Script node that checks a [bool] input port. If [code]true[/code], " "it will exit via the \"true\" sequence port. If [code]false[/code], it will " "exit via the \"false\" sequence port. After exiting either, it exits via the " "\"done\" port. Sequence ports may be left disconnected.\n" "[b]Input Ports:[/b]\n" "- Sequence: [code]if (cond) is[/code]\n" "- Data (boolean): [code]cond[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence: [code]true[/code]\n" "- Sequence: [code]false[/code]\n" "- Sequence: [code]done[/code]" msgstr "" "Visual Script 节点,检查 [bool] 输入端口。如果为 [code]true[/code],它将通" "过“true”序列端口退出。如果为 [code]false[/code],它将通过“false”序列端口退" "出。在退出这两种情况后,它通过“done”端口退出。序列端口可以不连接。\n" "[b]输入端口:[/b]\n" "- 序列:[code]if (cond) is[/code]\n" "- 数据(布尔):[code]cond[/code]\n" "[b]输出端口:[/b]\n" "- 序列:[code]true[/code]\n" "- 序列:[code]false[/code]\n" "- 序列:[code]done[/code]" #: modules/visual_script/doc_classes/VisualScriptConstant.xml msgid "Gets a contant's value." msgstr "获取常量的值。" #: modules/visual_script/doc_classes/VisualScriptConstant.xml msgid "" "This node returns a constant's value.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]get[/code]" msgstr "" "该节点返回常量的值。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]get[/code]" #: modules/visual_script/doc_classes/VisualScriptConstant.xml msgid "The constant's type." msgstr "常量的类型。" #: modules/visual_script/doc_classes/VisualScriptConstant.xml msgid "The constant's value." msgstr "常量的值。" #: modules/visual_script/doc_classes/VisualScriptConstructor.xml msgid "A Visual Script node which calls a base type constructor." msgstr "Visual Script 节点,调用一个基本类型的构造函数。" #: modules/visual_script/doc_classes/VisualScriptConstructor.xml msgid "" "A Visual Script node which calls a base type constructor. It can be used for " "type conversion as well." msgstr "Visual Script 节点,调用一个基本类型的构造函数。它也可以用于类型转换。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "A scripted Visual Script node." msgstr "有脚本的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "A custom Visual Script node which can be scripted in powerful ways." msgstr "自定义的 Visual Script 节点,可以用强大的方式进行脚本编写。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the node's title." msgstr "返回节点的标题。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the node's category." msgstr "返回节点的类别。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the count of input value ports." msgstr "返回输入值端口的数量。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Return the specified input port's hint. See the [enum @GlobalScope." "PropertyHint] hints." msgstr "返回指定输入端口的提示。参阅 [enum @GlobalScope.PropertyHint] 提示。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the specified input port's hint string." msgstr "返回指定输入端口的提示字符串。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the specified input port's name." msgstr "返回指定的输入端口的名称。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Return the specified input port's type. See the [enum Variant.Type] values." msgstr "返回指定输入端口的类型。参阅[enum Variant.Type]值。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the amount of output [b]sequence[/b] ports." msgstr "返回输出[b]序列[/b]端口的数量。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the specified [b]sequence[/b] output's name." msgstr "返回指定的[b]序列[/b]输出的名称。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the amount of output value ports." msgstr "返回输出值端口的数量。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Return the specified output port's hint. See the [enum @GlobalScope." "PropertyHint] hints." msgstr "返回指定输出端口的提示。参阅[enum @GlobalScope.PropertyHint] 提示。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the specified output port's hint string." msgstr "返回指定输出端口的提示字符串。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return the specified output port's name." msgstr "返回指定输出端口的名称。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Return the specified output port's type. See the [enum Variant.Type] values." msgstr "返回指定输出端口的类型。参阅[enum Variant.Type]值。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Return the custom node's text, which is shown right next to the input " "[b]sequence[/b] port (if there is none, on the place that is usually taken " "by it)." msgstr "" "返回自定义节点的文本,就在输入[b]序列[/b]端口旁边显示,如果没有,则在通常被它" "占用的位置。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Return the size of the custom node's working memory. See [method _step] for " "more details." msgstr "返回自定义节点的运行内存的大小。更多细节参阅 [method _step] 。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "Return whether the custom node has an input [b]sequence[/b] port." msgstr "返回自定义节点是否有输入[b]序列[/b]端口。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Execute the custom node's logic, returning the index of the output sequence " "port to use or a [String] when there is an error.\n" "The [code]inputs[/code] array contains the values of the input ports.\n" "[code]outputs[/code] is an array whose indices should be set to the " "respective outputs.\n" "The [code]start_mode[/code] is usually [constant START_MODE_BEGIN_SEQUENCE], " "unless you have used the [code]STEP_*[/code] constants.\n" "[code]working_mem[/code] is an array which can be used to persist " "information between runs of the custom node. The size needs to be predefined " "using [method _get_working_memory_size].\n" "When returning, you can mask the returned value with one of the " "[code]STEP_*[/code] constants." msgstr "" "执行自定义节点的逻辑,返回要使用的输出序列端口的索引,或者在有错误时返回一个" "[String]。\n" "[code]inputs[/code]数组包含输入端口的值。\n" "[code]output[/code]是一个数组,其索引应被设置为相应的输出。\n" "[code]start_mode[/code]通常是[constant START_MODE_BEGIN_SEQUENCE],除非你使用" "了[code]STEP_*[/code]常量。\n" "[code]working_mem[/code]是一个数组,可以用来在自定义节点的运行之间持续保存信" "息。其大小需要用[method _get_working_memory_size]来预定义。\n" "当返回时,你可以用[code]STEP_*[/code]中的一个常量来屏蔽返回值。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "The start mode used the first time when [method _step] is called." msgstr "当[method _step]被调用时,首次使用的启动模式。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "The start mode used when [method _step] is called after coming back from a " "[constant STEP_PUSH_STACK_BIT]." msgstr "" "当从[constant STEP_PUSH_STACK_BIT]返回后调用[method _step]时使用的启动模式。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "The start mode used when [method _step] is called after resuming from " "[constant STEP_YIELD_BIT]." msgstr "从[constant STEP_YIELD_BIT]恢复后调用[method _step]时使用的启动模式。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Hint used by [method _step] to tell that control should return to it when " "there is no other node left to execute.\n" "This is used by [VisualScriptCondition] to redirect the sequence to the " "\"Done\" port after the [code]true[/code]/[code]false[/code] branch has " "finished execution." msgstr "" "由[method _step]使用的提示,告诉控件应该在没有其他节点可以执行时返回给它。\n" "这被[VisualScriptCondition]用来在[code]true[/code]/[code]false[/code]分支执行" "完毕后,将序列重定向到 \"Done\" 端口。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Hint used by [method _step] to tell that control should return back, either " "hitting a previous [constant STEP_PUSH_STACK_BIT] or exiting the function." msgstr "" "由[method _step]使用的提示,告诉控件应该返回,要么命中之前的[constant " "STEP_PUSH_STACK_BIT],要么退出函数。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Hint used by [method _step] to tell that control should stop and exit the " "function." msgstr "[method _step]用来告诉控件应该停止和退出函数的提示。" #: modules/visual_script/doc_classes/VisualScriptCustomNode.xml msgid "" "Hint used by [method _step] to tell that the function should be yielded.\n" "Using this requires you to have at least one working memory slot, which is " "used for the [VisualScriptFunctionState]." msgstr "" "由[method _step]使用的提示,告诉函数应该被yielded。\n" "使用这个要求你至少有一个工作存储槽,它被用于[VisualScriptFunctionState]。" #: modules/visual_script/doc_classes/VisualScriptDeconstruct.xml msgid "" "A Visual Script node which deconstructs a base type instance into its parts." msgstr "Visual Script 节点,它将一个基本类型的实例解构为其各个部分。" #: modules/visual_script/doc_classes/VisualScriptDeconstruct.xml msgid "The type to deconstruct." msgstr "要解构的类型。" #: modules/visual_script/doc_classes/VisualScriptEditor.xml msgid "" "Add a custom Visual Script node to the editor. It'll be placed under " "\"Custom Nodes\" with the [code]category[/code] as the parameter." msgstr "" "在编辑器中添加自定义 Visual Script 节点。它放在“自定义节点”下,以 " "[code]category[/code] 作为参数。" #: modules/visual_script/doc_classes/VisualScriptEditor.xml msgid "" "Remove a custom Visual Script node from the editor. Custom nodes already " "placed on scripts won't be removed." msgstr "" "从编辑器中删除一个自定义 Visual Script 节点。已经放在脚本上的自定义节点不会被" "删除。" #: modules/visual_script/doc_classes/VisualScriptEditor.xml msgid "Emitted when a custom Visual Script node is added or removed." msgstr "当添加或删除一个自定义 Visual Script 节点时触发。" #: modules/visual_script/doc_classes/VisualScriptEmitSignal.xml msgid "Emits a specified signal." msgstr "发出指定的信号。" #: modules/visual_script/doc_classes/VisualScriptEmitSignal.xml msgid "" "Emits a specified signal when it is executed.\n" "[b]Input Ports:[/b]\n" "- Sequence: [code]emit[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence" msgstr "" "当它被执行时发出一个指定的信号。\n" "[b]输入端口:[/b]\n" "- 序列:[code]emit[/code]\n" "[b]输出端口:[/b]\n" "- 序列" #: modules/visual_script/doc_classes/VisualScriptEmitSignal.xml msgid "The signal to emit." msgstr "触发的信号。" #: modules/visual_script/doc_classes/VisualScriptEngineSingleton.xml msgid "A Visual Script node returning a singleton from [@GlobalScope]." msgstr "从 [@GlobalScope] 返回单例的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptEngineSingleton.xml msgid "The singleton's name." msgstr "单例的名称。" #: modules/visual_script/doc_classes/VisualScriptExpression.xml msgid "A Visual Script node that can execute a custom expression." msgstr "可以执行自定义表达式的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptExpression.xml msgid "" "A Visual Script node that can execute a custom expression. Values can be " "provided for the input and the expression result can be retrieved from the " "output." msgstr "" "可以执行自定义表达式的 Visual Script 节点。可以为输入提供值,并且可以从输出中" "检索表达式结果。" #: modules/visual_script/doc_classes/VisualScriptFunction.xml msgid "A Visual Script node representing a function." msgstr "表示函数的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptFunction.xml msgid "" "[VisualScriptFunction] represents a function header. It is the starting " "point for the function body and can be used to tweak the function's " "properties (e.g. RPC mode)." msgstr "" "[VisualScriptFunction] 表示函数头。它是函数体的起点,可用于调整函数的属性,例" "如 RPC 模式。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "A Visual Script node for calling a function." msgstr "用于调用函数的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "[VisualScriptFunctionCall] is created when you add or drag and drop a " "function onto the Visual Script graph. It allows to tweak parameters of the " "call, e.g. what object the function is called on." msgstr "" "[VisualScriptFunctionCall]是在你添加或拖放一个函数到Visual Script图形中时创" "建。它允许对调用的参数进行调整,例如,函数被调用的对象。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "The script to be used when [member call_mode] is set to [constant " "CALL_MODE_INSTANCE]." msgstr "[member call_mode] 设置为 [constant CALL_MODE_INSTANCE] 时使用的脚本。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "" "The base type to be used when [member call_mode] is set to [constant " "CALL_MODE_INSTANCE]." msgstr "" "[member call_mode] 设置为 [constant CALL_MODE_INSTANCE] 时要使用的基本类型。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "The type to be used when [member call_mode] is set to [constant " "CALL_MODE_BASIC_TYPE]." msgstr "" "[member call_mode] 设置为 [constant CALL_MODE_BASIC_TYPE] 时使用的类型。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "[code]call_mode[/code] determines the target object on which the method will " "be called. See [enum CallMode] for options." msgstr "" "[code]call_mode[/code] 决定了方法将被调用的目标对象。参阅[enum CallMode]的选" "项。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The name of the function to be called." msgstr "要调用的函数的名称。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "" "The node path to use when [member call_mode] is set to [constant " "CALL_MODE_NODE_PATH]." msgstr "" "[member call_mode] 设置为 [constant CALL_MODE_NODE_PATH] 时使用的节点路径。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "The mode for RPC calls. See [method Node.rpc] for more details and [enum " "RPCCallMode] for available options." msgstr "" "RPC 调用的模式。有关更多详细信息,请参阅 [method Node.rpc],有关可用选项,请" "参阅 [enum RPCCallMode]。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "The singleton to call the method on. Used when [member call_mode] is set to " "[constant CALL_MODE_SINGLETON]." msgstr "" "调用方法的单例。当 [member call_mode] 设置为 [constant CALL_MODE_SINGLETON] " "时使用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "Number of default arguments that will be used when calling the function. " "Can't be higher than the number of available default arguments in the " "method's declaration." msgstr "" "调用函数时将使用的默认参数的数量。不能大于方法声明中可用默认参数的数量。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "If [code]false[/code], call errors (e.g. wrong number of arguments) will be " "ignored." msgstr "如果[code]false[/code],调用错误将被忽略,例如参数数量错误。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called on this [Object]." msgstr "将在此 [Object] 上调用该方法。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called on the given [Node] in the scene tree." msgstr "该方法将在场景树中的指定 [Node] 上调用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "The method will be called on an instanced node with the given type and " "script." msgstr "该方法将在具有指定类型和脚本的实例化节点上调用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called on a GDScript basic type (e.g. [Vector2])." msgstr "该方法将在 GDScript 基本类型上调用,例如 [Vector2]。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called on a singleton." msgstr "该方法将在单例上调用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called locally." msgstr "该方法将被本地调用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called remotely." msgstr "该方法将被远程调用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called remotely using an unreliable protocol." msgstr "该方法将使用不可靠的协议远程调用。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "The method will be called remotely for the given peer." msgstr "该方法将被远程调用,用于给定的对等体。" #: modules/visual_script/doc_classes/VisualScriptFunctionCall.xml msgid "" "The method will be called remotely for the given peer, using an unreliable " "protocol." msgstr "该方法将被远程调用,用于给定的对等体,使用一个不可靠的协议。" #: modules/visual_script/doc_classes/VisualScriptFunctionState.xml msgid "A Visual Script node representing a function state." msgstr "表示函数状态的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptFunctionState.xml msgid "" "[VisualScriptFunctionState] is returned from [VisualScriptYield] and can be " "used to resume a paused function call." msgstr "" "[VisualScriptFunctionState]从[VisualScriptYield]返回,可用于恢复暂停的函数调" "用。" #: modules/visual_script/doc_classes/VisualScriptFunctionState.xml msgid "" "Connects this [VisualScriptFunctionState] to a signal in the given object to " "automatically resume when it's emitted." msgstr "" "将此 [VisualScriptFunctionState] 连接到给定对象中的信号,以在它触发时自动恢" "复。" #: modules/visual_script/doc_classes/VisualScriptFunctionState.xml msgid "Returns whether the function state is valid." msgstr "返回函数状态是否有效。" #: modules/visual_script/doc_classes/VisualScriptFunctionState.xml msgid "Resumes the function to run from the point it was yielded." msgstr "恢复函数的运行,从它被yield返回的地方开始。" #: modules/visual_script/doc_classes/VisualScriptGlobalConstant.xml msgid "A Visual Script node returning a constant from [@GlobalScope]." msgstr "从 [@GlobalScope] 返回常量的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptGlobalConstant.xml msgid "The constant to be used." msgstr "要使用的常量。" #: modules/visual_script/doc_classes/VisualScriptIndexGet.xml msgid "A Visual Script node for getting a value from an array or a dictionary." msgstr "用于从数组或字典中取值的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptIndexGet.xml msgid "" "[VisualScriptIndexGet] will return the value stored in an array or a " "dictionary under the given index." msgstr "[VisualScriptIndexGet]将返回存储在指定索引下的数组或字典的值。" #: modules/visual_script/doc_classes/VisualScriptIndexSet.xml msgid "A Visual Script node for setting a value in an array or a dictionary." msgstr "用于向数组或字典中设值的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptIndexSet.xml msgid "" "[VisualScriptIndexSet] will set the value stored in an array or a dictionary " "under the given index to the provided new value." msgstr "" "[VisualScriptIndexSet] 将指定索引下存储在数组或字典中的值设置为提供的新值。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "A Visual Script node returning a state of an action." msgstr "返回动作状态的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "" "[VisualScriptInputAction] can be used to check if an action is pressed or " "released." msgstr "[VisualScriptInputAction] 可用于检查操作是否被按下或释放。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "Name of the action." msgstr "动作的名称。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "State of the action to check. See [enum Mode] for options." msgstr "检查动作的状态。有关选项,请参阅 [enum Mode]。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "[code]True[/code] if action is pressed." msgstr "如果动作被按下为[code]True[/code] 。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "[code]True[/code] if action is released (i.e. not pressed)." msgstr "如果动作被释放,即未按下,为[code]True[/code] 。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "[code]True[/code] on the frame the action was pressed." msgstr "在动作被按下的帧上为[code]True[/code]。" #: modules/visual_script/doc_classes/VisualScriptInputAction.xml msgid "[code]True[/code] on the frame the action was released." msgstr "在动作被释放的帧上为[code]True[/code]。" #: modules/visual_script/doc_classes/VisualScriptIterator.xml msgid "Steps through items in a given input." msgstr "在给定输入中进行步骤项。" #: modules/visual_script/doc_classes/VisualScriptIterator.xml msgid "" "This node steps through each item in a given input. Input can be any " "sequence data type, such as an [Array] or [String]. When each item has been " "processed, execution passed out the [code]exit[/code] Sequence port.\n" "[b]Input Ports:[/b]\n" "- Sequence: [code]for (elem) in (input)[/code]\n" "- Data (variant): [code]input[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence: [code]each[/code]\n" "- Sequence: [code]exit[/code]\n" "- Data (variant): [code]elem[/code]" msgstr "" "这个节点在给定的输入中逐项进行。输入可以是任何序列数据类型,如[Array]或" "[String]。当每个项被处理完后,执行传出[code]exit[/code] 序列端口。\n" "[b]输入端口:[/b]\n" "- 序列:[code]for (elem) in (input)[/code]\n" "- 数据(变体):[code]input[/code]\n" "[b]输出端口:[/b]\n" "- 序列:[code]each[/code]\n" "- 序列:[code]exit[/code]\n" "- 数据(变体):[code]elem[/code]" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "A Visual Script virtual class for in-graph editable nodes." msgstr "图内可编辑节点的 Visual Script 虚类。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "" "A Visual Script virtual class that defines the shape and the default " "behavior of the nodes that have to be in-graph editable nodes." msgstr "" "一个 Visual Script 可视化类,用于定义必须是图形内可编辑节点的形状和默认行为。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Adds an input port to the Visual Script node." msgstr "将输入端口添加到 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Adds an output port to the Visual Script node." msgstr "将输出端口添加到 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Removes an input port from the Visual Script node." msgstr "从 Visual Script 节点中删除输入端口。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Removes an output port from the Visual Script node." msgstr "从 Visual Script 节点移除输出端口。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Sets the name of an input port." msgstr "设置输入端口的名称。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Sets the type of an input port." msgstr "设置输入端口的类型。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Sets the name of an output port." msgstr "设置输出端口的名称。" #: modules/visual_script/doc_classes/VisualScriptLists.xml msgid "Sets the type of an output port." msgstr "设置输出端口的类型。" #: modules/visual_script/doc_classes/VisualScriptLocalVar.xml msgid "Gets a local variable's value." msgstr "获取局部变量的值。" #: modules/visual_script/doc_classes/VisualScriptLocalVar.xml msgid "" "Returns a local variable's value. \"Var Name\" must be supplied, with an " "optional type.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]get[/code]" msgstr "" "返回局部变量的值。必须提供变量名称“Var Name”,并提供可选类型。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]get[/code]" #: modules/visual_script/doc_classes/VisualScriptLocalVar.xml #: modules/visual_script/doc_classes/VisualScriptLocalVarSet.xml msgid "The local variable's type." msgstr "局部变量的类型。" #: modules/visual_script/doc_classes/VisualScriptLocalVar.xml #: modules/visual_script/doc_classes/VisualScriptLocalVarSet.xml msgid "The local variable's name." msgstr "局部变量的名称。" #: modules/visual_script/doc_classes/VisualScriptLocalVarSet.xml msgid "Changes a local variable's value." msgstr "更改局部变量的值。" #: modules/visual_script/doc_classes/VisualScriptLocalVarSet.xml msgid "" "Changes a local variable's value to the given input. The new value is also " "provided on an output Data port.\n" "[b]Input Ports:[/b]\n" "- Sequence\n" "- Data (variant): [code]set[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence\n" "- Data (variant): [code]get[/code]" msgstr "" "将一个局部变量的值更改为给定的输入值。新的值也会在输出端提供数据端口。\n" "[b]输入端口:[/b]\n" "- 序列\n" "- 数据(变体):[code]set[/code]\n" "[b]输出端口:[/b]\n" "- 序列\n" "- 数据(变体):[code]get[/code]" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Commonly used mathematical constants." msgstr "常用的数学常量。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "" "Provides common math constants, such as Pi, on an output Data port.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]get[/code]" msgstr "" "在输出数据端口上提供 Pi 等常见的数学常量。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]get[/code]" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "The math constant." msgstr "数学常量。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Unity: [code]1[/code]." msgstr "Unity:[code]1[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Pi: [code]3.141593[/code]." msgstr "Pi:[code]3.141593[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Pi divided by two: [code]1.570796[/code]." msgstr "Pi 除以 2:[code]1.570796[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Tau: [code]6.283185[/code]." msgstr "Tau:[code]6.283185[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "" "Mathematical constant [code]e[/code], the natural log base: [code]2.718282[/" "code]." msgstr "数学常量 [code]e[/code],自然对数基数:[code]2.718282[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Square root of two: [code]1.414214[/code]." msgstr "2 的平方根:[code]1.414214[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Infinity: [code]inf[/code]." msgstr "无穷大:[code]inf[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Not a number: [code]nan[/code]." msgstr "不是数字:[code]nan[/code]。" #: modules/visual_script/doc_classes/VisualScriptMathConstant.xml msgid "Represents the size of the [enum MathConstant] enum." msgstr "表示 [enum MathConstant] 枚举的大小。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "A node which is part of a [VisualScript]." msgstr "属于 [VisualScript] 的一个节点。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "" "A node which is part of a [VisualScript]. Not to be confused with [Node], " "which is a part of a [SceneTree]." msgstr "" "属于 [VisualScript] 的一个节点。不要与 [Node] 混淆,后者是 [SceneTree] 的一部" "分。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "" "Returns the default value of a given port. The default value is used when " "nothing is connected to the port." msgstr "返回给定端口的默认值。当没有任何东西连接到该端口时,就使用默认值。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "Returns the [VisualScript] instance the node is bound to." msgstr "返回该节点所绑定的 [VisualScript] 实例。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "" "Notify that the node's ports have changed. Usually used in conjunction with " "[VisualScriptCustomNode] ." msgstr "通知节点的端口已经更改。通常与 [VisualScriptCustomNode] 结合使用。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "Change the default value of a given port." msgstr "更改给定端口的默认值。" #: modules/visual_script/doc_classes/VisualScriptNode.xml msgid "Emitted when the available input/output ports are changed." msgstr "当可用的输入/输出端口更改时触发。" #: modules/visual_script/doc_classes/VisualScriptOperator.xml msgid "A Visual Script node that performs an operation on two values." msgstr "一个 Visual Script 节点,对两个值执行操作。" #: modules/visual_script/doc_classes/VisualScriptOperator.xml msgid "" "[b]Input Ports:[/b]\n" "- Data (variant): [code]A[/code]\n" "- Data (variant): [code]B[/code]\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]result[/code]" msgstr "" "[b]输入端口:[/b]\n" "- 数据(变体):[code]A[/code]\n" "- 数据(变体):[code]B[/code]\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]result[/code]" #: modules/visual_script/doc_classes/VisualScriptOperator.xml msgid "" "The operation to be performed. See [enum Variant.Operator] for available " "options." msgstr "要执行的操作符。有关可用选项,请参阅 [enum Variant.Operator]。" #: modules/visual_script/doc_classes/VisualScriptOperator.xml msgid "" "The type of the values for this operation. See [enum Variant.Type] for " "available options." msgstr "此操作符值的类型。有关可用选项,请参阅 [enum Variant.Type]。" #: modules/visual_script/doc_classes/VisualScriptPreload.xml msgid "Creates a new [Resource] or loads one from the filesystem." msgstr "创建新的[Resource]或从文件系统加载一个。" #: modules/visual_script/doc_classes/VisualScriptPreload.xml msgid "" "Creates a new [Resource] or loads one from the filesystem.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (object): [code]res[/code]" msgstr "" "创建新的 [Resource] 或从文件系统加载。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(对象):[code]res[/code]" #: modules/visual_script/doc_classes/VisualScriptPreload.xml msgid "The [Resource] to load." msgstr "要加载的[Resource]资源。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "A Visual Script node returning a value of a property from an [Object]." msgstr "一个Visual Script节点,从[Object]返回属性值。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "" "[VisualScriptPropertyGet] can return a value of any property from the " "current object or other objects." msgstr "[VisualScriptPropertyGet]可以从当前对象或其他对象返回任何属性的值。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The script to be used when [member set_mode] is set to [constant " "CALL_MODE_INSTANCE]." msgstr "" "[member set_mode] 设置为 [constant CALL_MODE_INSTANCE] 时要使用的脚本。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The base type to be used when [member set_mode] is set to [constant " "CALL_MODE_INSTANCE]." msgstr "" "[member set_mode] 设置为 [constant CALL_MODE_INSTANCE] 时要使用的基本类型。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The type to be used when [member set_mode] is set to [constant " "CALL_MODE_BASIC_TYPE]." msgstr "" "[member set_mode] 设置为 [constant CALL_MODE_BASIC_TYPE] 时使用的类型。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "" "The indexed name of the property to retrieve. See [method Object." "get_indexed] for details." msgstr "" "要检索的属性的索引名称。有关详细信息,请参阅 [method Object.get_indexed]。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The node path to use when [member set_mode] is set to [constant " "CALL_MODE_NODE_PATH]." msgstr "" "[member set_mode] 设置为 [constant CALL_MODE_NODE_PATH] 时要使用的节点路径。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "" "The name of the property to retrieve. Changing this will clear [member " "index]." msgstr "要检索的属性的名称。更改此项将清除 [member index]。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "" "[code]set_mode[/code] determines the target object from which the property " "will be retrieved. See [enum CallMode] for options." msgstr "" "[code]set_mode[/code] 决定从哪个目标对象中获取属性。参阅[enum CallMode]的选" "项。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "The property will be retrieved from this [Object]." msgstr "将从该 [Object] 中检索该属性。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "The property will be retrieved from the given [Node] in the scene tree." msgstr "该属性将从场景树中的给定 [Node] 中检索。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "" "The property will be retrieved from an instanced node with the given type " "and script." msgstr "该属性将从具有指定类型和脚本的实例化节点中检索。" #: modules/visual_script/doc_classes/VisualScriptPropertyGet.xml msgid "" "The property will be retrieved from a GDScript basic type (e.g. [Vector2])." msgstr "该属性将从 GDScript 基本类型中检索,例如 [Vector2]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "A Visual Script node that sets a property of an [Object]." msgstr "用于设置对象 [Object] 的属性的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "[VisualScriptPropertySet] can set the value of any property from the current " "object or other objects." msgstr "[VisualScriptPropertySet]可以设置当前对象或其他对象的任何属性的值。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The additional operation to perform when assigning. See [enum AssignOp] for " "options." msgstr "赋值时要执行的额外操作。参阅[enum AssignOp]的选项。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The indexed name of the property to set. See [method Object.set_indexed] for " "details." msgstr "要设置的属性的索引名称。详见[method Object.set_indexed]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The name of the property to set. Changing this will clear [member index]." msgstr "要设置的属性的名称。改变这个将清除 [member index]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "[code]set_mode[/code] determines the target object on which the property " "will be set. See [enum CallMode] for options." msgstr "" "[code]set_mode[/code] 决定了将被设置属性的目标对象。参阅[enum CallMode]的选" "项。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "The property will be set on this [Object]." msgstr "在此 [Object] 上设置该属性。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "The property will be set on the given [Node] in the scene tree." msgstr "在场景树中指定的[Node]上设置该属性。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The property will be set on an instanced node with the given type and script." msgstr "在具有指定类型和脚本的实例化节点上设置该属性。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "The property will be set on a GDScript basic type (e.g. [Vector2])." msgstr "该属性将设置为 GDScript 基本类型,例如 [Vector2]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "The property will be assigned regularly." msgstr "该属性将定期分配。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The value will be added to the property. Equivalent of doing [code]+=[/code]." msgstr "该值将添加到该属性中。相当于做 [code]+=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The value will be subtracted from the property. Equivalent of doing [code]-" "=[/code]." msgstr "该值将从属性中减去。相当于做 [code]-=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The property will be multiplied by the value. Equivalent of doing [code]*=[/" "code]." msgstr "该属性将乘以该值。相当于做 [code]*=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The property will be divided by the value. Equivalent of doing [code]/=[/" "code]." msgstr "属性将除以该值。相当于做 [code]/=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "A modulo operation will be performed on the property and the value. " "Equivalent of doing [code]%=[/code]." msgstr "对属性和值执行模运算。相当于做 [code]%=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The property will be binarly shifted to the left by the given value. " "Equivalent of doing [code]<<[/code]." msgstr "该属性将按给定值向左二进制移动。相当于做 [code]<<[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "The property will be binarly shifted to the right by the given value. " "Equivalent of doing [code]>>[/code]." msgstr "该属性将按给定值向右二进制移动。相当于做 [code]>>[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "A binary [code]AND[/code] operation will be performed on the property. " "Equivalent of doing [code]&=[/code]." msgstr "将对该属性执行二进制 [code]AND[/code] 运算。相当于做 [code]&=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "A binary [code]OR[/code] operation will be performed on the property. " "Equivalent of doing [code]|=[/code]." msgstr "对属性执行二进制 [code]OR[/code] 操作。相当于做 [code]|=[/code]。" #: modules/visual_script/doc_classes/VisualScriptPropertySet.xml msgid "" "A binary [code]XOR[/code] operation will be performed on the property. " "Equivalent of doing [code]^=[/code]." msgstr "对该属性执行二进制 [code]XOR[/code] 操作。相当于做 [code]^=[/code]。" #: modules/visual_script/doc_classes/VisualScriptReturn.xml msgid "Exits a function and returns an optional value." msgstr "退出函数并返回可选的值。" #: modules/visual_script/doc_classes/VisualScriptReturn.xml msgid "" "Ends the execution of a function and returns control to the calling " "function. Optionally, it can return a [Variant] value.\n" "[b]Input Ports:[/b]\n" "- Sequence\n" "- Data (variant): [code]result[/code] (optional)\n" "[b]Output Ports:[/b]\n" "none" msgstr "" "结束一个函数的执行并将控制权返回给调用函数。可选,它可以返回一个[Variant]" "值。\n" "[b]输入端口:[/b]\n" "- 序列\n" "- 数据(变体):[code]result[/code](可选)\n" "[b]输出端口:[/b]\n" "无" #: modules/visual_script/doc_classes/VisualScriptReturn.xml msgid "If [code]true[/code], the [code]return[/code] input port is available." msgstr "如果为 [code]true[/code],则 [code]return[/code] 输入端口可用。" #: modules/visual_script/doc_classes/VisualScriptReturn.xml msgid "The return value's data type." msgstr "返回值的数据类型。" #: modules/visual_script/doc_classes/VisualScriptSceneNode.xml msgid "Node reference." msgstr "节点参考。" #: modules/visual_script/doc_classes/VisualScriptSceneNode.xml msgid "" "A direct reference to a node.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data: [code]node[/code] (obj)" msgstr "" "对节点的直接引用。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据:[code]node[/code](obj)" #: modules/visual_script/doc_classes/VisualScriptSceneNode.xml msgid "The node's path in the scene tree." msgstr "节点在场景树中的路径。" #: modules/visual_script/doc_classes/VisualScriptSceneTree.xml msgid "A Visual Script node for accessing [SceneTree] methods." msgstr "用于访问[SceneTree]方法的Visual Script节点。" #: modules/visual_script/doc_classes/VisualScriptSelect.xml msgid "Chooses between two input values." msgstr "在两个输入值之间进行选择。" #: modules/visual_script/doc_classes/VisualScriptSelect.xml msgid "" "Chooses between two input values based on a Boolean condition.\n" "[b]Input Ports:[/b]\n" "- Data (boolean): [code]cond[/code]\n" "- Data (variant): [code]a[/code]\n" "- Data (variant): [code]b[/code]\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]out[/code]" msgstr "" "根据一个布尔条件在两个输入值之间进行选择。\n" "[b]输入端口:[/b]\n" "- Data (boolean): [code]cond[/code]\n" "- 数据(变体):[code]a[/code]\n" "- 数据(变体):[code]b[/code]\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]out[/code]" #: modules/visual_script/doc_classes/VisualScriptSelect.xml msgid "The input variables' type." msgstr "输入变量的类型。" #: modules/visual_script/doc_classes/VisualScriptSelf.xml msgid "Outputs a reference to the current instance." msgstr "输出当前实例的引用。" #: modules/visual_script/doc_classes/VisualScriptSelf.xml msgid "" "Provides a reference to the node running the visual script.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (object): [code]instance[/code]" msgstr "" "提供对运行 Visual Script 的节点的引用。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(对象):[code]instance[/code]" #: modules/visual_script/doc_classes/VisualScriptSequence.xml msgid "Executes a series of Sequence ports." msgstr "执行一系列序列端口。" #: modules/visual_script/doc_classes/VisualScriptSequence.xml msgid "" "Steps through a series of one or more output Sequence ports. The " "[code]current[/code] data port outputs the currently executing item.\n" "[b]Input Ports:[/b]\n" "- Sequence: [code]in order[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence: [code]1[/code]\n" "- Sequence: [code]2 - n[/code] (optional)\n" "- Data (int): [code]current[/code]" msgstr "" "通过一系列的一个或多个输出序列端口进行步进。[code]current[/code]当前数据端口" "输出当前执行的项。\n" "[b]输入端口:[/b]\n" "- 序列:[code]in order[/code]\n" "[b]输出端口:[/b]\n" "- 序列:[code]1[/code]\n" "- 序列:[code]2 - n[/code] (optional)\n" "- Data (int): [code]current[/code]" #: modules/visual_script/doc_classes/VisualScriptSequence.xml msgid "The number of steps in the sequence." msgstr "序列中的步骤数。" #: modules/visual_script/doc_classes/VisualScriptSubCall.xml msgid "Calls a method called [code]_subcall[/code] in this object." msgstr "在此对象中调用名为 [code]_subcall[/code] 的方法。" #: modules/visual_script/doc_classes/VisualScriptSubCall.xml msgid "" "[VisualScriptSubCall] will call method named [code]_subcall[/code] in the " "current script. It will fail if the method doesn't exist or the provided " "arguments are wrong." msgstr "" "[VisualScriptSubCall] 将调用当前脚本中名为 [code]_subcall[/code] 的方法。如果" "该方法不存在或提供的参数错误,它将失败。" #: modules/visual_script/doc_classes/VisualScriptSubCall.xml msgid "Called by this node." msgstr "由该节点调用。" #: modules/visual_script/doc_classes/VisualScriptSwitch.xml msgid "Branches program flow based on a given input's value." msgstr "根据给定的输入值来分支程序流。" #: modules/visual_script/doc_classes/VisualScriptSwitch.xml msgid "" "Branches the flow based on an input's value. Use [b]Case Count[/b] in the " "Inspector to set the number of branches and each comparison's optional " "type.\n" "[b]Input Ports:[/b]\n" "- Sequence: [code]'input' is[/code]\n" "- Data (variant): [code]=[/code]\n" "- Data (variant): [code]=[/code] (optional)\n" "- Data (variant): [code]input[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence\n" "- Sequence (optional)\n" "- Sequence: [code]done[/code]" msgstr "" "根据输入值来分支流程。在属性检查器中使用[b]Case Count[/b]来设置分支的数量和每" "个比较的可选类型。\n" "[b]输入端口:[/b]\n" "- 序列:[code]'input' is[/code]\n" "- 数据(变体):[code]=[/code]\n" "- 数据(变体):[code]=[/code](可选)\n" "- 数据(变体):[code]input[/code]\n" "[b]输出端口:[/b]\n" "- 序列\n" "- 序列(可选)\n" "- 序列:[code]done[/code]" #: modules/visual_script/doc_classes/VisualScriptTypeCast.xml msgid "A Visual Script node that casts the given value to another type." msgstr "将给定的值转换为另一种类型的 Visual Script 节点。" #: modules/visual_script/doc_classes/VisualScriptTypeCast.xml msgid "" "[VisualScriptTypeCast] will perform a type conversion to an [Object]-derived " "type." msgstr "[VisualScriptTypeCast] 将执行到 [Object] 派生类型的类型转换。" #: modules/visual_script/doc_classes/VisualScriptTypeCast.xml msgid "" "The target script class to be converted to. If none, only the [member " "base_type] will be used." msgstr "要转换的目标脚本类。如果没有,将只使用[member base_type]。" #: modules/visual_script/doc_classes/VisualScriptTypeCast.xml msgid "The target type to be converted to." msgstr "要转换为的目标类型。" #: modules/visual_script/doc_classes/VisualScriptVariableGet.xml msgid "Gets a variable's value." msgstr "获取变量的值。" #: modules/visual_script/doc_classes/VisualScriptVariableGet.xml msgid "" "Returns a variable's value. \"Var Name\" must be supplied, with an optional " "type.\n" "[b]Input Ports:[/b]\n" "none\n" "[b]Output Ports:[/b]\n" "- Data (variant): [code]value[/code]" msgstr "" "返回变量的值。必须提供变量名称“Var Name”,并有一个可选的类型。\n" "[b]输入端口:[/b]\n" "无\n" "[b]输出端口:[/b]\n" "- 数据(变体):[code]value[/code]" #: modules/visual_script/doc_classes/VisualScriptVariableGet.xml #: modules/visual_script/doc_classes/VisualScriptVariableSet.xml msgid "The variable's name." msgstr "变量的名称。" #: modules/visual_script/doc_classes/VisualScriptVariableSet.xml msgid "Changes a variable's value." msgstr "更改变量值。" #: modules/visual_script/doc_classes/VisualScriptVariableSet.xml msgid "" "Changes a variable's value to the given input.\n" "[b]Input Ports:[/b]\n" "- Sequence\n" "- Data (variant): [code]set[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence" msgstr "" "将变量的值更改为给定的输入。\n" "[b]输入端口:[/b]\n" "- 序列\n" "- 数据(变体):[code]set[/code]\n" "[b]输出端口:[/b]\n" "- 序列" #: modules/visual_script/doc_classes/VisualScriptWhile.xml msgid "Conditional loop." msgstr "条件循环。" #: modules/visual_script/doc_classes/VisualScriptWhile.xml msgid "" "Loops while a condition is [code]true[/code]. Execution continues out the " "[code]exit[/code] Sequence port when the loop terminates.\n" "[b]Input Ports:[/b]\n" "- Sequence: [code]while(cond)[/code]\n" "- Data (bool): [code]cond[/code]\n" "[b]Output Ports:[/b]\n" "- Sequence: [code]repeat[/code]\n" "- Sequence: [code]exit[/code]" msgstr "" "当一个条件为 [code]true[/code] 时进行循环。当循环结束时,执行继续从" "[code]exit[/code]序列端口出来。\n" "[b]输入端口:[/b]\n" "- 序列:[code]while(cond)[/code]\n" "- Data (bool): [code]cond[/code]\n" "[b]输出端口:[/b]\n" "- 序列:[code]repeat[/code]\n" "- 序列:[code]exit[/code]" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "A Visual Script node used to pause a function execution." msgstr "一个Visual Script节点,用于暂停函数的执行。" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "" "[VisualScriptYield] will pause the function call and return " "[VisualScriptFunctionState], which can be used to resume the function." msgstr "" "[VisualScriptYield]将暂停函数调用并返回[VisualScriptFunctionState],可用于恢" "复函数。" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "" "The mode to use for yielding. See [enum YieldMode] for available options." msgstr "用于yield返回的模式。参阅[enum YieldMode]中的可用选项。" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "The time to wait when [member mode] is set to [constant YIELD_WAIT]." msgstr "[member mode] 设置为 [constant YIELD_WAIT] 时的等待时间。" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "Yields during an idle frame." msgstr "在空闲帧中的Yields。" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "Yields during a physics frame." msgstr "物理帧期间Yield。" #: modules/visual_script/doc_classes/VisualScriptYield.xml msgid "Yields a function and waits the given time." msgstr "一个函数Yields并等待给定的时间。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "A Visual Script node yielding for a signal." msgstr "一个Visual Script节点yield信号。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "" "[VisualScriptYieldSignal] will pause the function execution until the " "provided signal is emitted." msgstr "[VisualScriptYieldSignal] 将暂停函数执行,直到触发提供的信号。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "" "[code]call_mode[/code] determines the target object to wait for the signal " "emission. See [enum CallMode] for options." msgstr "" "[code]call_mode[/code] 确定等待信号发射的目标对象。有关选项,请参阅 [enum " "CallMode] 。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "The signal name to be waited for." msgstr "要等待的信号名称。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "A signal from this [Object] will be used." msgstr "将使用来自此 [Object] 的信号。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "A signal from the given [Node] in the scene tree will be used." msgstr "将使用来自场景树中给定 [Node] 的信号。" #: modules/visual_script/doc_classes/VisualScriptYieldSignal.xml msgid "A signal from an instanced node with the given type will be used." msgstr "将使用来自具有给定类型的实例节点的信号。" #: doc/classes/VisualServer.xml msgid "Server for anything visible." msgstr "任何可见的东西的服务器。" #: doc/classes/VisualServer.xml msgid "" "Server for anything visible. The visual server is the API backend for " "everything visible. The whole scene system mounts on it to display.\n" "The visual server is completely opaque, the internals are entirely " "implementation specific and cannot be accessed.\n" "The visual server can be used to bypass the scene system entirely.\n" "Resources are created using the [code]*_create[/code] functions.\n" "All objects are drawn to a viewport. You can use the [Viewport] attached to " "the [SceneTree] or you can create one yourself with [method " "viewport_create]. When using a custom scenario or canvas, the scenario or " "canvas needs to be attached to the viewport using [method " "viewport_set_scenario] or [method viewport_attach_canvas].\n" "In 3D, all visual objects must be associated with a scenario. The scenario " "is a visual representation of the world. If accessing the visual server from " "a running game, the scenario can be accessed from the scene tree from any " "[Spatial] node with [method Spatial.get_world]. Otherwise, a scenario can be " "created with [method scenario_create].\n" "Similarly, in 2D, a canvas is needed to draw all canvas items.\n" "In 3D, all visible objects are comprised of a resource and an instance. A " "resource can be a mesh, a particle system, a light, or any other 3D object. " "In order to be visible resources must be attached to an instance using " "[method instance_set_base]. The instance must also be attached to the " "scenario using [method instance_set_scenario] in order to be visible.\n" "In 2D, all visible objects are some form of canvas item. In order to be " "visible, a canvas item needs to be the child of a canvas attached to a " "viewport, or it needs to be the child of another canvas item that is " "eventually attached to the canvas." msgstr "" "任何可见对象的服务器。VisualServer 是所有可见对象的 API 后端。整个场景系统安" "装在它上面来显示。\n" "VisualServer 是完全不透明的,它的内部结构的完全的具体实现不能被访问。\n" "VisualServer 可以用来完全绕过场景系统。\n" "可使用 [code]*_create[/code] 函数创建资源。\n" "所有的对象都被绘制到视窗中。你可以使用附在 [SceneTree] 上的 [Viewport],或者" "用 [method viewport_create] 自己创建一个。当使用自定义场景或画布时,需要使用 " "[method viewport_set_scenario] 或 [method viewport_attach_canvas] 将场景或画" "布附加到视窗上。\n" "在 3D 中,所有的视觉对象都必须与一个场景相关联。场景是世界的一个视觉表现。如" "果从一个正在运行的游戏中访问视觉服务,场景可以通过 [method Spatial." "get_world] 从场景树中的任何 [Spatial] 节点访问。另外,可以用 [method " "scenario_create] 创建一个场景。\n" "相类似地,在2D中,需要一个画布来绘制所有的画布项目。\n" "在 3D 中,所有可见的对象都是由资源和实例组成。资源可以是网格、粒子系统、光或" "任何其他 3D 对象。为了使资源可见,必须使用 [method instance_set_base] 连接到" "一个实例。实例也必须使用 [method instance_set_scenario] 附加到场景中,以便可" "见。\n" "在 2D 中,所有可见对象都是某种形式的画布项目。为了可见,一个画布项需要是连接" "到视窗的画布的子项,或者它需要是最终连接到画布的另一个画布项的子项。" #: doc/classes/VisualServer.xml msgid "Sets images to be rendered in the window margin." msgstr "设置在窗口边缘渲染的图像。" #: doc/classes/VisualServer.xml msgid "" "Sets margin size, where black bars (or images, if [method " "black_bars_set_images] was used) are rendered." msgstr "" "设置边距大小,其中呈现黑条(或图像,如果使用 [method " "black_bars_set_images])。" #: doc/classes/VisualServer.xml msgid "" "Creates a camera and adds it to the VisualServer. It can be accessed with " "the RID that is returned. This RID will be used in all [code]camera_*[/code] " "VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个相机并将其添加到VisualServer中。它可以通过返回的RID进行访问。这个RID" "将用于所有[code]camera_*[/code] VisualServer函数。\n" "一旦完成了对RID的处理,你将需要使用VisualServer的[method free_rid]静态方法释" "放RID。" #: doc/classes/VisualServer.xml msgid "" "Sets the cull mask associated with this camera. The cull mask describes " "which 3D layers are rendered by this camera. Equivalent to [member Camera." "cull_mask]." msgstr "" "设置与此相机相关的剔除遮罩。剔除遮罩描述了此相机渲染的 3D 层。相当于[member " "Camera.cull_mask]。" #: doc/classes/VisualServer.xml msgid "" "Sets the environment used by this camera. Equivalent to [member Camera." "environment]." msgstr "设置此相机所使用的环境。等同于[member Camera.environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets camera to use frustum projection. This mode allows adjusting the " "[code]offset[/code] argument to create \"tilted frustum\" effects." msgstr "" "设置相机使用锥形投影。此模式允许调整 [code]offset[/code] 参数以创建“倾斜视" "锥”效果。" #: doc/classes/VisualServer.xml msgid "" "Sets camera to use orthogonal projection, also known as orthographic " "projection. Objects remain the same size on the screen no matter how far " "away they are." msgstr "" "将相机设置为使用正交投影,也称为正射投影。物体在屏幕上保持相同的尺寸,无论它" "们有多远。" #: doc/classes/VisualServer.xml msgid "" "Sets camera to use perspective projection. Objects on the screen becomes " "smaller when they are far away." msgstr "将相机设置为使用透视投影。屏幕上的物体在远处时变得更小。" #: doc/classes/VisualServer.xml msgid "Sets [Transform] of camera." msgstr "设置相机的[Transform]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], preserves the horizontal aspect ratio which is " "equivalent to [constant Camera.KEEP_WIDTH]. If [code]false[/code], preserves " "the vertical aspect ratio which is equivalent to [constant Camera." "KEEP_HEIGHT]." msgstr "" "如果 [code]true[/code], 保留水平长宽比,相当于 [constant Camera.KEEP_WIDTH]。" "如果[code]false[/code],保留垂直长宽比,相当于[constant Camera.KEEP_HEIGHT]。" #: doc/classes/VisualServer.xml msgid "" "Creates a canvas and returns the assigned [RID]. It can be accessed with the " "RID that is returned. This RID will be used in all [code]canvas_*[/code] " "VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个画布并返回指定的[RID]。可以用返回的RID来访问它。这个RID可在所有" "[code]canvas_*[/code]VisualServer函数中使用。\n" "你一旦完成了RID处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "Adds a circle command to the [CanvasItem]'s draw commands." msgstr "在 [CanvasItem] 的绘制命令中添加圆形指令。" #: doc/classes/VisualServer.xml msgid "" "If ignore is [code]true[/code], the VisualServer does not perform clipping." msgstr "如果ignore是[code]true[/code],VisualServer将不会执行剪裁。" #: doc/classes/VisualServer.xml msgid "Adds a line command to the [CanvasItem]'s draw commands." msgstr "在 [CanvasItem] 的绘图命令中添加一条直线指令。" #: doc/classes/VisualServer.xml msgid "Adds a mesh command to the [CanvasItem]'s draw commands." msgstr "在 [CanvasItem] 的绘图指令中加入网格指令。" #: doc/classes/VisualServer.xml msgid "" "Adds a [MultiMesh] to the [CanvasItem]'s draw commands. Only affects its " "aabb at the moment." msgstr "在[CanvasItem]的绘制指令中添加一个[MultiMesh]。目前只影响其aabb。" #: doc/classes/VisualServer.xml msgid "" "Adds a nine patch image to the [CanvasItem]'s draw commands.\n" "See [NinePatchRect] for more explanation." msgstr "" "在 [CanvasItem] 的绘制指令中添加九宫格图像。\n" "请参阅 [NinePatchRect] 。" #: doc/classes/VisualServer.xml msgid "Adds a particle system to the [CanvasItem]'s draw commands." msgstr "为[CanvasItem]的绘制指令添加粒子系统。" #: doc/classes/VisualServer.xml msgid "Adds a polygon to the [CanvasItem]'s draw commands." msgstr "在 [CanvasItem] 的绘图指令中添加多边形。" #: doc/classes/VisualServer.xml msgid "" "Adds a polyline, which is a line from multiple points with a width, to the " "[CanvasItem]'s draw commands." msgstr "" "在 [CanvasItem] 的绘制指令中添加多线段,多线段是指由多个点组成的具有一定宽度" "的线。" #: doc/classes/VisualServer.xml msgid "Adds a primitive to the [CanvasItem]'s draw commands." msgstr "向 [CanvasItem] 的绘图指令中添加一个图元。" #: doc/classes/VisualServer.xml msgid "Adds a rectangle to the [CanvasItem]'s draw commands." msgstr "在 [CanvasItem] 的绘图指令中添加矩形。" #: doc/classes/VisualServer.xml msgid "" "Adds a [Transform2D] command to the [CanvasItem]'s draw commands.\n" "This sets the extra_matrix uniform when executed. This affects the later " "commands of the canvas item." msgstr "" "在[CanvasItem]的绘图指令中添加[Transform2D]指令。\n" "这在执行时设置extra_matrix uniform 。这会影响到画布项的后续指令。" #: doc/classes/VisualServer.xml msgid "Adds a textured rect to the [CanvasItem]'s draw commands." msgstr "在 [CanvasItem] 的绘图指令中添加纹理矩形。" #: doc/classes/VisualServer.xml msgid "" "Adds a texture rect with region setting to the [CanvasItem]'s draw commands." msgstr "在[CanvasItem]的绘制命令中添加带有区域设置的纹理矩形。" #: doc/classes/VisualServer.xml msgid "Adds a triangle array to the [CanvasItem]'s draw commands." msgstr "为 [CanvasItem] 的绘图命令添加三角形组。" #: doc/classes/VisualServer.xml msgid "Clears the [CanvasItem] and removes all commands in it." msgstr "清除[CanvasItem]并删除其中的所有命令。" #: doc/classes/VisualServer.xml msgid "" "Creates a new [CanvasItem] and returns its [RID]. It can be accessed with " "the RID that is returned. This RID will be used in all [code]canvas_item_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建新的 [CanvasItem] 并返回其 [RID]。可以用返回的RID来访问它。这个RID可用于" "所有[code]canvas_item_*[/code] VisualServer函数。\n" "一旦完成了你的RID处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "Sets clipping for the [CanvasItem]." msgstr "为[CanvasItem]设置剪裁。" #: doc/classes/VisualServer.xml msgid "Sets the [CanvasItem] to copy a rect to the backbuffer." msgstr "设置 [CanvasItem] 以将矩形复制到后台缓冲区。" #: doc/classes/VisualServer.xml msgid "Defines a custom drawing rectangle for the [CanvasItem]." msgstr "为 [CanvasItem] 定义一个自定义的绘图矩形。" #: doc/classes/VisualServer.xml msgid "" "Enables the use of distance fields for GUI elements that are rendering " "distance field based fonts." msgstr "为正在渲染基于距离字段的字体的 GUI 元素,启用距离场。" #: doc/classes/VisualServer.xml msgid "Sets [CanvasItem] to be drawn behind its parent." msgstr "将 [CanvasItem] 设置为在其父项后面绘制。" #: doc/classes/VisualServer.xml msgid "Sets the index for the [CanvasItem]." msgstr "设置 [CanvasItem] 的索引。" #: doc/classes/VisualServer.xml msgid "" "The light mask. See [LightOccluder2D] for more information on light masks." msgstr "光线遮罩。关于其更多信息,请参阅[LightOccluder2D]。" #: doc/classes/VisualServer.xml msgid "Sets a new material to the [CanvasItem]." msgstr "为 [CanvasItem] 设置新材质。" #: doc/classes/VisualServer.xml msgid "Sets the color that modulates the [CanvasItem] and its children." msgstr "设置调制 [CanvasItem] 及其子代的颜色。" #: doc/classes/VisualServer.xml msgid "" "Sets the parent for the [CanvasItem]. The parent can be another canvas item, " "or it can be the root canvas that is attached to the viewport." msgstr "" "设置[CanvasItem]的父级。父级可以是另一个画布项目,也可以是连接到视窗的根画" "布。" #: doc/classes/VisualServer.xml msgid "Sets the color that modulates the [CanvasItem] without children." msgstr "设置在没有子代的情况下调制 [CanvasItem] 的颜色。" #: doc/classes/VisualServer.xml msgid "Sets if [CanvasItem]'s children should be sorted by y-position." msgstr "设置 [CanvasItem] 的子代是否应按 y 坐标排序。" #: doc/classes/VisualServer.xml msgid "Sets the [CanvasItem]'s [Transform2D]." msgstr "设置 [CanvasItem] 的 [Transform2D]。" #: doc/classes/VisualServer.xml msgid "Sets if the [CanvasItem] uses its parent's material." msgstr "设置 [CanvasItem] 是否使用其父级的材质。" #: doc/classes/VisualServer.xml msgid "Sets if the canvas item (including its children) is visible." msgstr "设置画布项是否可见,包括其子代。" #: doc/classes/VisualServer.xml msgid "" "If this is enabled, the Z index of the parent will be added to the " "children's Z index." msgstr "如果启用此选项,则父项的 Z 索引将添加到子项的 Z 索引中。" #: doc/classes/VisualServer.xml msgid "" "Sets the [CanvasItem]'s Z index, i.e. its draw order (lower indexes are " "drawn first)." msgstr "" "设置 [CanvasItem] 的 Z 索引,即它的绘制顺序(首先绘制数值较低的索引)。" #: doc/classes/VisualServer.xml msgid "" "Attaches the canvas light to the canvas. Removes it from its previous canvas." msgstr "将画布灯连接到画布上,并将其从以前的画布中取出。" #: doc/classes/VisualServer.xml msgid "" "Creates a canvas light and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID will be used in all " "[code]canvas_light_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建画布灯并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 RID 可用于" "所有 [code]canvas_light_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的 [method free_rid] 静态方法释放 RID。" #: doc/classes/VisualServer.xml msgid "" "Attaches a light occluder to the canvas. Removes it from its previous canvas." msgstr "将光遮挡物添加到画布上,并将其从之前的画布中移除。" #: doc/classes/VisualServer.xml msgid "" "Creates a light occluder and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID will be used in all " "[code]canvas_light_ocluder_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建灯光遮挡器并将其添加到VisualServer中。可以用返回的RID来访问它。这个RID可" "用于所有[code]canvas_light_ocluder_*[/code] VisualServer函数。\n" "一旦完成了RID处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "Enables or disables light occluder." msgstr "启用或禁用遮光器。" #: doc/classes/VisualServer.xml msgid "Sets a light occluder's polygon." msgstr "设置光遮挡物的多边形。" #: doc/classes/VisualServer.xml msgid "Sets a light occluder's [Transform2D]." msgstr "设置光遮挡物的 [Transform2D]。" #: doc/classes/VisualServer.xml msgid "Sets the color for a light." msgstr "设置灯光的颜色。" #: doc/classes/VisualServer.xml msgid "Enables or disables a canvas light." msgstr "启用或禁用画布灯。" #: doc/classes/VisualServer.xml msgid "Sets a canvas light's energy." msgstr "设置画布灯的能量。" #: doc/classes/VisualServer.xml msgid "Sets a canvas light's height." msgstr "设置画布灯的高度。" #: doc/classes/VisualServer.xml msgid "" "The binary mask used to determine which layers this canvas light's shadows " "affects. See [LightOccluder2D] for more information on light masks." msgstr "" "用于确定此画布灯光阴影影响哪些图层的二进制蒙版。有关光遮罩的更多信息,请参阅 " "[LightOccluder2D]。" #: doc/classes/VisualServer.xml msgid "The layer range that gets rendered with this light." msgstr "使用此灯光渲染的图层范围。" #: doc/classes/VisualServer.xml msgid "The mode of the light, see [enum CanvasLightMode] constants." msgstr "光的模式,详见[enum CanvasLightMode]。" #: doc/classes/VisualServer.xml msgid "" "Sets the texture's scale factor of the light. Equivalent to [member Light2D." "texture_scale]." msgstr "设置灯光的纹理比例因子。相当于 [member Light2D.texture_scale]。" #: doc/classes/VisualServer.xml msgid "" "Sets the width of the shadow buffer, size gets scaled to the next power of " "two for this." msgstr "设置阴影缓冲区的宽度,大小为2的n次幂。" #: doc/classes/VisualServer.xml msgid "Sets the color of the canvas light's shadow." msgstr "设置画布灯的阴影颜色。" #: doc/classes/VisualServer.xml msgid "Enables or disables the canvas light's shadow." msgstr "启用或禁用画布灯的阴影。" #: doc/classes/VisualServer.xml msgid "" "Sets the canvas light's shadow's filter, see [enum CanvasLightShadowFilter] " "constants." msgstr "设置画布灯的阴影过滤器,详见 [enum CanvasLightShadowFilter] 。" #: doc/classes/VisualServer.xml msgid "Sets the length of the shadow's gradient." msgstr "设置阴影渐变的长度。" #: doc/classes/VisualServer.xml msgid "Smoothens the shadow. The lower, the smoother." msgstr "使阴影变得平滑。数值越低越光滑。" #: doc/classes/VisualServer.xml msgid "" "Sets texture to be used by light. Equivalent to [member Light2D.texture]." msgstr "设置灯光使用的纹理。等同于[member Light2D.texture]。" #: doc/classes/VisualServer.xml msgid "" "Sets the offset of the light's texture. Equivalent to [member Light2D." "offset]." msgstr "设置灯光纹理的偏移量。等同于[member Light2D.offset]。" #: doc/classes/VisualServer.xml msgid "Sets the canvas light's [Transform2D]." msgstr "设置画布灯的 [Transform2D]。" #: doc/classes/VisualServer.xml msgid "" "Sets the Z range of objects that will be affected by this light. Equivalent " "to [member Light2D.range_z_min] and [member Light2D.range_z_max]." msgstr "" "设置将受此光影响的对象的 Z 范围。相当于 [member Light2D.range_z_min] 和 " "[member Light2D.range_z_max]。" #: doc/classes/VisualServer.xml msgid "" "Creates a new light occluder polygon and adds it to the VisualServer. It can " "be accessed with the RID that is returned. This RID will be used in all " "[code]canvas_occluder_polygon_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建新的光遮蔽器多边形并将其添加到VisualServer中。可以用返回的RID来访问它。这" "个RID可用于所有[code]canvas_occluder_polygon_*[/code] VisualServer函数。\n" "一旦完成了RID处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "" "Sets an occluder polygons cull mode. See [enum " "CanvasOccluderPolygonCullMode] constants." msgstr "设置遮挡多边形剔除模式。详见 [enum CanvasOccluderPolygonCullMode] 。" #: doc/classes/VisualServer.xml msgid "Sets the shape of the occluder polygon." msgstr "设置遮挡多边形的形状。" #: doc/classes/VisualServer.xml msgid "Sets the shape of the occluder polygon as lines." msgstr "将遮挡多边形的形状设置为线。" #: doc/classes/VisualServer.xml msgid "" "A copy of the canvas item will be drawn with a local offset of the mirroring " "[Vector2]." msgstr "画布项目的副本将以镜像的局部偏移量[Vector2]被绘制。" #: doc/classes/VisualServer.xml msgid "Modulates all colors in the given canvas." msgstr "调制给定画布中的所有颜色。" #: doc/classes/VisualServer.xml msgid "" "Creates a directional light and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID can be used in most " "[code]light_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this directional light to an instance using " "[method instance_set_base] using the returned RID." msgstr "" "创建平行光并将其添加到 VisualServer 中。可以用返回的 RID 来访问。这个 RID 可" "用于大多数 [code]light_*[/code] VisualServer 函数。\n" "一旦完成了对 RID 的处理,可使用 VisualServer 的静态方法 [method free_rid] 释" "放 RID。\n" "要在场景中放置,使用返回的 RID,用 [method instance_set_base] 将这个平行光附" "加到一个实例上。" #: doc/classes/VisualServer.xml msgid "" "Draws a frame. [i]This method is deprecated[/i], please use [method " "force_draw] instead." msgstr "绘制一帧。[i]此方法已被废弃[/i],请使用[method force_draw]代替。" #: doc/classes/VisualServer.xml msgid "" "Creates an environment and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID will be used in all " "[code]environment_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个环境并将其添加到VisualServer中。可以用返回的RID来访问它。这个RID可在" "所有[code]environment_*[/code]VisualServer函数中使用。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "" "Sets the values to be used with the \"Adjustment\" post-process effect. See " "[Environment] for more details." msgstr "设置用于 \"调整 \"后处理效果的数值。参阅[Environment]以了解更多细节。" #: doc/classes/VisualServer.xml msgid "Sets the ambient light parameters. See [Environment] for more details." msgstr "设置环境光参数。详情请参阅 [Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the [i]BGMode[/i] of the environment. Equivalent to [member Environment." "background_mode]." msgstr "设置环境的[i]BGMode[/i]。相当于[member Environment.background_mode]。" #: doc/classes/VisualServer.xml msgid "" "Color displayed for clear areas of the scene (if using Custom color or " "Color+Sky background modes)." msgstr "场景中空白区域的颜色显示(如果使用自定义颜色或颜色+天空背景模式)。" #: doc/classes/VisualServer.xml msgid "Sets the intensity of the background color." msgstr "设置背景颜色的强度。" #: doc/classes/VisualServer.xml msgid "Sets the maximum layer to use if using Canvas background mode." msgstr "如果使用画布背景模式,设置要使用的最大层数。" #: doc/classes/VisualServer.xml msgid "" "Sets the values to be used with the \"DoF Far Blur\" post-process effect. " "See [Environment] for more details." msgstr "设置用于 \"DoF Far Blur\" 后期处理效果的数值。参阅[Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the values to be used with the \"DoF Near Blur\" post-process effect. " "See [Environment] for more details." msgstr "设置用于 \"DoF Near Blur\" 后处理效果的数值。参阅[Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the scene fog. See [Environment] for more " "details." msgstr "设置用于场景雾化的变量。更多细节见[Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the fog depth effect. See [Environment] " "for more details." msgstr "设置用于雾化深度效果的变量。参阅[Environment]以了解更多细节。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the fog height effect. See [Environment] " "for more details." msgstr "设置用于雾化高度效果的变量。参阅[Environment]以了解更多细节。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the \"glow\" post-process effect. See " "[Environment] for more details." msgstr "设置用于“辉光”后处理效果的变量。详情请参阅 [Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the [Sky] to be used as the environment's background when using " "[i]BGMode[/i] sky. Equivalent to [member Environment.background_sky]." msgstr "" "当使用 [i]BGMode[/i] 天空时,设置 [Sky] 作为环境的背景。相当于 [member " "Environment.background_sky]。" #: doc/classes/VisualServer.xml msgid "" "Sets a custom field of view for the background [Sky]. Equivalent to [member " "Environment.background_sky_custom_fov]." msgstr "" "为背景 [Sky] 设置自定义字段。相当于 [member Environment." "background_sky_custom_fov]。" #: doc/classes/VisualServer.xml msgid "" "Sets the rotation of the background [Sky] expressed as a [Basis]. Equivalent " "to [member Environment.background_sky_orientation]." msgstr "" "设置背景 [Sky] 的旋转,以 [Basis] 表示。相当于 [member Environment." "background_sky_orientation]。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the \"Screen Space Ambient Occlusion " "(SSAO)\" post-process effect. See [Environment] for more details." msgstr "" "设置用于“屏幕空间环境遮蔽(SSAO)”后处理效果的变量。详情请参阅 " "[Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the \"screen space reflections\" post-" "process effect. See [Environment] for more details." msgstr "设置用于“屏幕空间反射”后处理效果的变量。详情请参阅 [Environment]。" #: doc/classes/VisualServer.xml msgid "" "Sets the variables to be used with the \"tonemap\" post-process effect. See " "[Environment] for more details." msgstr "设置用于“色调映射”后处理效果的变量。详情请参阅 [Environment]。" #: doc/classes/VisualServer.xml msgid "Removes buffers and clears testcubes." msgstr "删除缓冲区并清除测试立方体。" #: doc/classes/VisualServer.xml msgid "" "Forces a frame to be drawn when the function is called. Drawing a frame " "updates all [Viewport]s that are set to update. Use with extreme caution." msgstr "" "当函数被调用时,强制绘制一个框架。绘制一个框架会更新所有被设置为要更新的" "[Viewport]。使用时要特别小心。" #: doc/classes/VisualServer.xml msgid "Synchronizes threads." msgstr "同步线程。" #: doc/classes/VisualServer.xml msgid "Tries to free an object in the VisualServer." msgstr "尝试释放 VisualServer 中的对象。" #: doc/classes/VisualServer.xml msgid "Returns a certain information, see [enum RenderInfo] for options." msgstr "返回特定信息,请参阅 [enum RenderInfo] 。" #: doc/classes/VisualServer.xml msgid "Returns the id of the test cube. Creates one if none exists." msgstr "返回测试立方体的ID。如果不存在,则创建一个。" #: doc/classes/VisualServer.xml msgid "Returns the id of the test texture. Creates one if none exists." msgstr "返回测试纹理的id。如果不存在,则创建一个。" #: doc/classes/VisualServer.xml msgid "" "Returns the name of the video adapter (e.g. \"GeForce GTX 1080/PCIe/" "SSE2\").\n" "[b]Note:[/b] When running a headless or server binary, this function returns " "an empty string." msgstr "" "返回视频适配器的名称(例如:\"GeForce GTX 1080/PCIe/SSE2\")。\n" "[b]注意:[/b]当运行一个精简或服务器可执行文件时,这个函数返回一个空字符串。" #: doc/classes/VisualServer.xml msgid "" "Returns the vendor of the video adapter (e.g. \"NVIDIA Corporation\").\n" "[b]Note:[/b] When running a headless or server binary, this function returns " "an empty string." msgstr "" "返回视频适配器的供应商(例如,\"NVIDIA Corporation\")。\n" "[b]注意:[/b]当运行精简或服务器可执行文件时,该函数返回一个空字符串。" #: doc/classes/VisualServer.xml msgid "Returns the id of a white texture. Creates one if none exists." msgstr "返回白色纹理的id。如果不存在,则创建一个。" #: doc/classes/VisualServer.xml msgid "" "Creates a GI probe and adds it to the VisualServer. It can be accessed with " "the RID that is returned. This RID will be used in all [code]gi_probe_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this GI probe to an instance using [method " "instance_set_base] using the returned RID." msgstr "" "创建 GI 探针并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 RID 可用" "于所有 [code]gi_probe_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的 [method free_rid] 静态方法释放 " "RID。\n" "要放置在场景中,请使用返回的 RID, 使用 [method instance_set_base] 将此 GI 探" "针附加到实例。" #: doc/classes/VisualServer.xml msgid "" "Returns the bias value for the GI probe. Bias is used to avoid self " "occlusion. Equivalent to [member GIProbeData.bias]." msgstr "" "返回GI探针的偏置值。偏置是用来避免自我遮挡的。相当于[member GIProbeData." "bias]。" #: doc/classes/VisualServer.xml msgid "" "Returns the axis-aligned bounding box that covers the full extent of the GI " "probe." msgstr "返回覆盖GI探针全部范围的轴对齐的边界框。" #: doc/classes/VisualServer.xml msgid "Returns the cell size set by [method gi_probe_set_cell_size]." msgstr "返回由[method gi_probe_set_cell_size]设置的单元大小。" #: doc/classes/VisualServer.xml msgid "Returns the data used by the GI probe." msgstr "返回GI探针所使用的数据。" #: doc/classes/VisualServer.xml msgid "" "Returns the dynamic range set for this GI probe. Equivalent to [member " "GIProbe.dynamic_range]." msgstr "返回该GI探针的动态范围设置。相当于[member GIProbe.dynamic_range]。" #: doc/classes/VisualServer.xml msgid "" "Returns the energy multiplier for this GI probe. Equivalent to [member " "GIProbe.energy]." msgstr "返回这个GI探针的能量乘数。相当于[member GIProbe.energy]。" #: doc/classes/VisualServer.xml msgid "" "Returns the normal bias for this GI probe. Equivalent to [member GIProbe." "normal_bias]." msgstr "返回该GI探针的法线偏置。相当于[member GIProbe.normal_bias]。" #: doc/classes/VisualServer.xml msgid "" "Returns the propagation value for this GI probe. Equivalent to [member " "GIProbe.propagation]." msgstr "返回这个GI探针的传播值。相当于[member GIProbe.propagation]。" #: doc/classes/VisualServer.xml msgid "Returns the Transform set by [method gi_probe_set_to_cell_xform]." msgstr "返回由[method gi_probe_set_to_cell_xform]设置的变换。" #: doc/classes/VisualServer.xml msgid "" "Returns [code]true[/code] if the GI probe data associated with this GI probe " "is compressed. Equivalent to [member GIProbe.compress]." msgstr "" "如果与此GI探针相关的数据被压缩,返回 [code]true[/code]。相当于[member " "GIProbe.compress]。" #: doc/classes/VisualServer.xml msgid "" "Returns [code]true[/code] if the GI probe is set to interior, meaning it " "does not account for sky light. Equivalent to [member GIProbe.interior]." msgstr "" "如果 GI 探针设置为内部,则返回 [code]true[/code],这意味着它不考虑天空光。相" "当于[member GIProbe.interior]。" #: doc/classes/VisualServer.xml msgid "" "Sets the bias value to avoid self-occlusion. Equivalent to [member GIProbe." "bias]." msgstr "设置偏置值以避免自遮挡。相当于[member GIProbe.bias]。" #: doc/classes/VisualServer.xml msgid "" "Sets the axis-aligned bounding box that covers the extent of the GI probe." msgstr "设置覆盖 GI 探针范围的轴对齐边界框。" #: doc/classes/VisualServer.xml msgid "Sets the size of individual cells within the GI probe." msgstr "设置 GI 探针内单个单元的大小。" #: doc/classes/VisualServer.xml msgid "" "Sets the compression setting for the GI probe data. Compressed data will " "take up less space but may look worse. Equivalent to [member GIProbe." "compress]." msgstr "" "设置GI探针数据的压缩设置。压缩后的数据将占用更少的空间,但可能看起来更糟糕。" "相当于[member GIProbe.compress]。" #: doc/classes/VisualServer.xml msgid "" "Sets the data to be used in the GI probe for lighting calculations. Normally " "this is created and called internally within the [GIProbe] node. You should " "not try to set this yourself." msgstr "" "设置用于照明计算的GI探针的数据。通常这是在[GIProbe]节点内部创建和调用的。你不" "应该尝试自己设置。" #: doc/classes/VisualServer.xml msgid "" "Sets the dynamic range of the GI probe. Dynamic range sets the limit for how " "bright lights can be. A smaller range captures greater detail but limits how " "bright lights can be. Equivalent to [member GIProbe.dynamic_range]." msgstr "" "设定GI探针的动态范围。动态范围设定了灯光的亮度限制。较小的范围可以捕捉到更多" "的细节,但是限制了灯光的亮度。相当于[member GIProbe.dynamic_range]。" #: doc/classes/VisualServer.xml msgid "" "Sets the energy multiplier for this GI probe. A higher energy makes the " "indirect light from the GI probe brighter. Equivalent to [member GIProbe." "energy]." msgstr "" "设置该GI探针的能量乘数。较高的能量使GI探针的间接光更亮。相当于[member " "GIProbe.energy]。" #: doc/classes/VisualServer.xml msgid "" "Sets the interior value of this GI probe. A GI probe set to interior does " "not include the sky when calculating lighting. Equivalent to [member GIProbe." "interior]." msgstr "" "设置该 GI 探针的内部值。设置为内部的 GI 探针在计算照明时不包括天空。相当于 " "[member GIProbe.interior]。" #: doc/classes/VisualServer.xml msgid "" "Sets the normal bias for this GI probe. Normal bias behaves similar to the " "other form of bias and may help reduce self-occlusion. Equivalent to [member " "GIProbe.normal_bias]." msgstr "" "设置该GI探针的法线偏置。法线偏置的行为类似于其他形式的偏置,可有助于减少自我" "遮挡。相当于[member GIProbe.normal_bias]。" #: doc/classes/VisualServer.xml msgid "" "Sets the propagation of light within this GI probe. Equivalent to [member " "GIProbe.propagation]." msgstr "设置光在这个GI探针中的传播。相当于[member GIProbe.propagation]。" #: doc/classes/VisualServer.xml msgid "Sets the to cell [Transform] for this GI probe." msgstr "为这个GI探针设置单元[Transform]。" #: doc/classes/VisualServer.xml msgid "" "Returns [code]true[/code] if changes have been made to the VisualServer's " "data. [method draw] is usually called if this happens.\n" "As changes are registered as either high or low priority (e.g. dynamic " "shaders), this function takes an optional argument to query either low or " "high priority changes, or any changes." msgstr "" "如果 VisualServer 的数据存在修改,则返回 [code]true[/code]。发生该情况时,通" "常会调用 [method draw]。\n" "因为修改会被注册为高优先级或低优先级(例如动态着色器),该函数接受可选的参" "数,用于查询低优先级或高优先级的修改,或者任何修改。" #: doc/classes/VisualServer.xml msgid "Not yet implemented. Always returns [code]false[/code]." msgstr "还没有实现。总是返回 [code]false[/code]。" #: doc/classes/VisualServer.xml msgid "" "Returns [code]true[/code] if the OS supports a certain feature. Features " "might be [code]s3tc[/code], [code]etc[/code], [code]etc2[/code], " "[code]pvrtc[/code] and [code]skinning_fallback[/code].\n" "When rendering with GLES2, returns [code]true[/code] with " "[code]skinning_fallback[/code] in case the hardware doesn't support the " "default GPU skinning process." msgstr "" "如果操作系统支持某项功能,则返回 [code]true[/code]。特性可能是[code]s3tc[/" "code], [code]etc[/code], [code]etc2[/code], [code]pvrtc[/code] 和 " "[code]skinning_fallback[/code]。\n" "当使用GLES2渲染时,在硬件不支持默认的GPU蒙皮过程的情况下,返回 [code]true[/" "code]与[code]skinning_fallback[/code]。" #: doc/classes/VisualServer.xml msgid "" "Sets up [ImmediateGeometry] internals to prepare for drawing. Equivalent to " "[method ImmediateGeometry.begin]." msgstr "" "设置[ImmediateGeometry]的内部结构,为绘图做准备。相当于[method " "ImmediateGeometry.begin]。" #: doc/classes/VisualServer.xml msgid "" "Clears everything that was set up between [method immediate_begin] and " "[method immediate_end]. Equivalent to [method ImmediateGeometry.clear]." msgstr "" "清除在 [method immediate_begin] 和 [method immediate_end] 之间设置的所有内" "容。等效于 [method ImmediateGeometry.clear]。" #: doc/classes/VisualServer.xml msgid "" "Sets the color to be used with next vertex. Equivalent to [method " "ImmediateGeometry.set_color]." msgstr "设置用于下一个顶点的颜色。相当于[method ImmediateGeometry.set_color]。" #: doc/classes/VisualServer.xml msgid "" "Creates an immediate geometry and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]immediate_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this immediate geometry to an instance using " "[method instance_set_base] using the returned RID." msgstr "" "创建直接几何图形并将其添加到VisualServer中。它可以通过返回的RID进行访问。这个" "RID可在所有[code]immediate_*[/code]VisualServer函数中使用。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放" "RID。\n" "要在场景中放置,使用返回的RID用[method instance_set_base]将这个直接几何体附加" "到一个实例上。" #: doc/classes/VisualServer.xml msgid "" "Ends drawing the [ImmediateGeometry] and displays it. Equivalent to [method " "ImmediateGeometry.end]." msgstr "" "结束绘制[ImmediateGeometry]并显示它。相当于[method ImmediateGeometry.end]。" #: doc/classes/VisualServer.xml msgid "Returns the material assigned to the [ImmediateGeometry]." msgstr "返回分配给[ImmediateGeometry]的材质。" #: doc/classes/VisualServer.xml msgid "" "Sets the normal to be used with next vertex. Equivalent to [method " "ImmediateGeometry.set_normal]." msgstr "" "设置用于下一个顶点的法线。相当于[method ImmediateGeometry.set_normal]。" #: doc/classes/VisualServer.xml msgid "Sets the material to be used to draw the [ImmediateGeometry]." msgstr "设置用于绘制[ImmediateGeometry]的材质。" #: doc/classes/VisualServer.xml msgid "" "Sets the tangent to be used with next vertex. Equivalent to [method " "ImmediateGeometry.set_tangent]." msgstr "" "设置用于下一个顶点的切线。相当于[method ImmediateGeometry.set_tangent]。" #: doc/classes/VisualServer.xml msgid "" "Sets the UV to be used with next vertex. Equivalent to [method " "ImmediateGeometry.set_uv]." msgstr "设置用于下一个顶点的UV。相当于[method ImmediateGeometry.set_uv]。" #: doc/classes/VisualServer.xml msgid "" "Sets the UV2 to be used with next vertex. Equivalent to [method " "ImmediateGeometry.set_uv2]." msgstr "设置用于下一个顶点的UV2。相当于[method ImmediateGeometry.set_uv2]。" #: doc/classes/VisualServer.xml msgid "" "Adds the next vertex using the information provided in advance. Equivalent " "to [method ImmediateGeometry.add_vertex]." msgstr "" "使用预先提供的信息添加下一个顶点。相当于[method ImmediateGeometry." "add_vertex]。" #: doc/classes/VisualServer.xml msgid "" "Adds the next vertex using the information provided in advance. This is a " "helper class that calls [method immediate_vertex] under the hood. Equivalent " "to [method ImmediateGeometry.add_vertex]." msgstr "" "使用预先提供的信息添加下一个顶点。这是一个辅助类,它在后台调用[method " "immediate_vertex]。相当于[method ImmediateGeometry.add_vertex]。" #: doc/classes/VisualServer.xml msgid "" "Initializes the visual server. This function is called internally by " "platform-dependent code during engine initialization. If called from a " "running game, it will not do anything." msgstr "" "初始化 VisualServer。这个函数是在引擎初始化过程中由依赖平台的代码内部调用。如" "果从一个正在运行的游戏中调用,它将不会做任何事情。" #: doc/classes/VisualServer.xml msgid "" "Attaches a unique Object ID to instance. Object ID must be attached to " "instance for proper culling with [method instances_cull_aabb], [method " "instances_cull_convex], and [method instances_cull_ray]." msgstr "" "将唯一的对象ID附加到实例上。必须将对象ID附加到实例上,以便通过[method " "instances_cull_aabb]、[method instances_cull_convex]和[method " "instances_cull_ray]进行正确的筛除。" #: doc/classes/VisualServer.xml msgid "" "Attaches a skeleton to an instance. Removes the previous skeleton from the " "instance." msgstr "将骨架附加到实例。并从实例中移除之前骨架。" #: doc/classes/VisualServer.xml msgid "" "Creates a visual instance and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]instance_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "An instance is a way of placing a 3D object in the scenario. Objects like " "particles, meshes, and reflection probes need to be associated with an " "instance to be visible in the scenario using [method instance_set_base]." msgstr "" "创建一个可视化实例并将其添加到VisualServer中。可以用返回的RID来访问它。这个" "RID可在所有[code]instance_*[/code]VisualServer函数中使用。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放" "RID。\n" "实例是在场景中放置 3D 对象的一种方式。粒子、网格和反射探针等对象需要与使用 " "[method instance_set_base] 的实例关联才能在场景中可见。" #: doc/classes/VisualServer.xml msgid "" "Creates a visual instance, adds it to the VisualServer, and sets both base " "and scenario. It can be accessed with the RID that is returned. This RID " "will be used in all [code]instance_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个可视化实例,将其添加到VisualServer中,并设置基本和效果。可以用返回的" "RID来访问它。这个RID可在所有[code]instance_*[/code]VisualServer函数中使用。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "Not implemented in Godot 3.x." msgstr "在 Godot 3.x 中没有实现。" #: doc/classes/VisualServer.xml msgid "" "Sets the shadow casting setting to one of [enum ShadowCastingSetting]. " "Equivalent to [member GeometryInstance.cast_shadow]." msgstr "" "将阴影投射设置为 [enum ShadowCastingSetting] 中的一个。相当于 [member " "GeometryInstance.cast_shadow]。" #: doc/classes/VisualServer.xml msgid "" "Sets the flag for a given [enum InstanceFlags]. See [enum InstanceFlags] for " "more details." msgstr "" "设置给定的[enum InstanceFlags]标志。更多细节请参阅[enum InstanceFlags]。" #: doc/classes/VisualServer.xml msgid "" "Sets a material that will be rendered for all surfaces on top of active " "materials for the mesh associated with this instance. Equivalent to [member " "GeometryInstance.material_overlay]." msgstr "" "为该实例的网格设置材质,将在所有表面的活动材质上层进行渲染。等价于 [member " "GeometryInstance.material_overlay]。" #: doc/classes/VisualServer.xml msgid "" "Sets a material that will override the material for all surfaces on the mesh " "associated with this instance. Equivalent to [member GeometryInstance." "material_override]." msgstr "" "设置一个材质,覆盖与此实例关联的网格上的所有表面的材质。相当于[member " "GeometryInstance.material_override]。" #: doc/classes/VisualServer.xml msgid "" "Sets the base of the instance. A base can be any of the 3D objects that are " "created in the VisualServer that can be displayed. For example, any of the " "light types, mesh, multimesh, immediate geometry, particle system, " "reflection probe, lightmap capture, and the GI probe are all types that can " "be set as the base of an instance in order to be displayed in the scenario." msgstr "" "设置实例的基类。基类可以是VisualServer中创建的任何可以显示的3D对象。例如,光" "照类型、网格、多网格、基本几何、粒子系统、反射探针、光照图捕捉和GI探针等类型" "都可以被设置为实例的基类,以便在场景中显示。" #: doc/classes/VisualServer.xml msgid "Sets the weight for a given blend shape associated with this instance." msgstr "设置与该实例相关的特定混合形状的权重。" #: doc/classes/VisualServer.xml msgid "" "Sets a custom AABB to use when culling objects from the view frustum. " "Equivalent to [method GeometryInstance.set_custom_aabb]." msgstr "" "设置自定义的AABB,当从视图中剔除对象时使用。相当于[method GeometryInstance." "set_custom_aabb]。" #: doc/classes/VisualServer.xml msgid "Function not implemented in Godot 3.x." msgstr "在Godot 3.x中没有实现的功能。" #: doc/classes/VisualServer.xml msgid "" "Sets a margin to increase the size of the AABB when culling objects from the " "view frustum. This allows you to avoid culling objects that fall outside the " "view frustum. Equivalent to [member GeometryInstance.extra_cull_margin]." msgstr "" "设置边距,在剔除视域范围内的对象时增加AABB的大小。这可以让你避免剔除落在视域" "范围外的物体。相当于[member GeometryInstance.extra_cull_margin]。" #: doc/classes/VisualServer.xml msgid "" "Sets the render layers that this instance will be drawn to. Equivalent to " "[member VisualInstance.layers]." msgstr "设置该实例将被绘制的渲染层。相当于[member VisualInstance.layers]。" #: doc/classes/VisualServer.xml msgid "" "Sets the scenario that the instance is in. The scenario is the 3D world that " "the objects will be displayed in." msgstr "设置实例所在的场景。场景是对象将在其中显示的 3D 世界。" #: doc/classes/VisualServer.xml msgid "" "Sets the material of a specific surface. Equivalent to [method MeshInstance." "set_surface_material]." msgstr "设置特定表面的材质。相当于[method MeshInstance.set_surface_material]。" #: doc/classes/VisualServer.xml msgid "" "Sets the world space transform of the instance. Equivalent to [member " "Spatial.transform]." msgstr "设置实例的世界空间变换。相当于[member Spatial.transform]。" #: doc/classes/VisualServer.xml msgid "Sets the lightmap to use with this instance." msgstr "设置该实例使用的光照图。" #: doc/classes/VisualServer.xml msgid "" "Sets whether an instance is drawn or not. Equivalent to [member Spatial." "visible]." msgstr "设置是否绘制实例。相当于 [member Spatial.visible]。" #: doc/classes/VisualServer.xml msgid "" "Returns an array of object IDs intersecting with the provided AABB. Only " "visual 3D nodes are considered, such as [MeshInstance] or " "[DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the " "actual nodes. A scenario RID must be provided, which is available in the " "[World] you want to query. This forces an update for all resources queued to " "update.\n" "[b]Warning:[/b] This function is primarily intended for editor usage. For in-" "game use cases, prefer physics collision." msgstr "" "返回一个与所提供的AABB相交的物体ID数组。只考虑可视化的3D节点,例如" "[MeshInstance]或[DirectionalLight]。使用[method @GDScript.instance_from_id]来" "获取实际节点。这必须提供一个场景的RID,该RID在你想查询的[World]中是可用的。这" "将强制更新所有排队等待更新的资源。\n" "[b]警告:[/b]这个函数主要用于编辑器使用。对于游戏中的使用情况,最好是物理碰" "撞。" #: doc/classes/VisualServer.xml msgid "" "Returns an array of object IDs intersecting with the provided convex shape. " "Only visual 3D nodes are considered, such as [MeshInstance] or " "[DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the " "actual nodes. A scenario RID must be provided, which is available in the " "[World] you want to query. This forces an update for all resources queued to " "update.\n" "[b]Warning:[/b] This function is primarily intended for editor usage. For in-" "game use cases, prefer physics collision." msgstr "" "返回一个与所提供的凸形相交的物体 ID 数组。只考虑可视化的 3D 节点,如 " "[MeshInstance] 或 [DirectionalLight]。使用 [method @GDScript." "instance_from_id] 来获取实际节点。必须提供一个场景的 RID,这个 RID 在你想查询" "的 [World] 中是可用的。这将强制更新所有排队等待更新的资源。\n" "[b]警告:[/b]这个函数主要用于编辑器使用。对于游戏中的使用情况,最好是物理碰" "撞。" #: doc/classes/VisualServer.xml msgid "" "Returns an array of object IDs intersecting with the provided 3D ray. Only " "visual 3D nodes are considered, such as [MeshInstance] or " "[DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the " "actual nodes. A scenario RID must be provided, which is available in the " "[World] you want to query. This forces an update for all resources queued to " "update.\n" "[b]Warning:[/b] This function is primarily intended for editor usage. For in-" "game use cases, prefer physics collision." msgstr "" "返回一个与所提供的 3D 射线相交的物体 ID 数组。只考虑可视化的 3D 节点,例如 " "[MeshInstance] 或 [DirectionalLight]。使用 [method @GDScript." "instance_from_id] 来获取实际节点。必须提供一个场景的 RID,这个 RID 在你想查询" "的 [World] 中是可用的。这将强制更新所有排队等待更新的资源。\n" "[b]警告:[/b]这个函数主要用于编辑器的使用。对于游戏中的使用情况,最好是物理碰" "撞。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], this directional light will blend between shadow map " "splits resulting in a smoother transition between them. Equivalent to " "[member DirectionalLight.directional_shadow_blend_splits]." msgstr "" "如果为 [code]true[/code],这个平行光会在阴影贴图分割之间混合,以使它们之间的" "过渡更加平滑。相当于 [member DirectionalLight." "directional_shadow_blend_splits]。" #: doc/classes/VisualServer.xml msgid "" "Sets the shadow depth range mode for this directional light. Equivalent to " "[member DirectionalLight.directional_shadow_depth_range]. See [enum " "LightDirectionalShadowDepthRangeMode] for options." msgstr "" "设置这个平行光的阴影深度范围模式。相当于 [member DirectionalLight." "directional_shadow_depth_range]。参阅 [enum " "LightDirectionalShadowDepthRangeMode] 的选项。" #: doc/classes/VisualServer.xml msgid "" "Sets the shadow mode for this directional light. Equivalent to [member " "DirectionalLight.directional_shadow_mode]. See [enum " "LightDirectionalShadowMode] for options." msgstr "" "设置此平行光的阴影模式。相当于 [member DirectionalLight." "directional_shadow_mode]。参阅 [enum LightDirectionalShadowMode] 的选项。" #: doc/classes/VisualServer.xml msgid "" "Sets whether to use vertical or horizontal detail for this omni light. This " "can be used to alleviate artifacts in the shadow map. Equivalent to [member " "OmniLight.omni_shadow_detail]." msgstr "" "设置是否为此全向光使用垂直或水平细节。这可用于减轻阴影贴图中的伪影。相当于 " "[member OmniLight.omni_shadow_detail]。" #: doc/classes/VisualServer.xml msgid "" "Sets whether to use a dual paraboloid or a cubemap for the shadow map. Dual " "paraboloid is faster but may suffer from artifacts. Equivalent to [member " "OmniLight.omni_shadow_mode]." msgstr "" "设置阴影贴图是使用双抛物面还是立方体贴图。双抛物面速度更快,但可能会出现伪" "影。相当于[member OmniLight.omni_shadow_mode]。" #: doc/classes/VisualServer.xml msgid "" "Sets the bake mode for this light, see [enum LightBakeMode] for options. The " "bake mode affects how the light will be baked in [BakedLightmap]s and " "[GIProbe]s." msgstr "" "设置此灯的烘焙模式,参阅 [enum LightBakeMode] 的选项。烘焙模式会影响灯光在 " "[BakedLightmap] 和 [GIProbe] 中的烘焙方式。" #: doc/classes/VisualServer.xml msgid "Sets the color of the light. Equivalent to [member Light.light_color]." msgstr "设置灯光的颜色。相当于[member Light.light_color]。" #: doc/classes/VisualServer.xml msgid "" "Sets the cull mask for this Light. Lights only affect objects in the " "selected layers. Equivalent to [member Light.light_cull_mask]." msgstr "" "设置此灯光的剔除遮罩。灯光仅影响选定图层中的对象。相当于[member Light." "light_cull_mask]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], light will subtract light instead of adding light. " "Equivalent to [member Light.light_negative]." msgstr "" "如果[code]true[/code],光将减去光而不是增加光。相当于[member Light." "light_negative]。" #: doc/classes/VisualServer.xml msgid "" "Sets the specified light parameter. See [enum LightParam] for options. " "Equivalent to [method Light.set_param]." msgstr "" "设置指定的灯光参数。参阅[enum LightParam]的选项。相当于[method Light." "set_param]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], reverses the backface culling of the mesh. This can be " "useful when you have a flat mesh that has a light behind it. If you need to " "cast a shadow on both sides of the mesh, set the mesh to use double sided " "shadows with [method instance_geometry_set_cast_shadows_setting]. Equivalent " "to [member Light.shadow_reverse_cull_face]." msgstr "" "如果[code]true[/code],反转网格的背面剔除。当你有一个平面网格后面有灯光时,这" "可能很有用。如果你需要在网格的两面都投下阴影,可以用[method " "instance_geometry_set_cast_shadows_setting]将网格设置为使用双面阴影。相当于" "[member Light.shadow_reverse_cull_face]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], light will cast shadows. Equivalent to [member Light." "shadow_enabled]." msgstr "" "如果[code]true[/code],光线会投射阴影。相当于[member Light.shadow_enabled]。" #: doc/classes/VisualServer.xml msgid "" "Sets the color of the shadow cast by the light. Equivalent to [member Light." "shadow_color]." msgstr "设置灯光投射阴影的颜色。相当于[member Light.shadow_color]。" #: doc/classes/VisualServer.xml msgid "" "Sets whether GI probes capture light information from this light. " "[i]Deprecated method.[/i] Use [method light_set_bake_mode] instead. This " "method is only kept for compatibility reasons and calls [method " "light_set_bake_mode] internally, setting the bake mode to [constant " "LIGHT_BAKE_DISABLED] or [constant LIGHT_BAKE_INDIRECT] depending on the " "given parameter." msgstr "" "设置 GI 探针是否从这个灯中捕捉光线信息。[i]已废弃的方法。[/i]请使用 [method " "light_set_bake_mode] 代替。这个方法只是出于兼容性考虑而被保留,它在内部调用 " "[method light_set_bake_mode],根据给定的参数将烘焙模式设置为 [constant " "LIGHT_BAKE_DISABLED] 或 [constant LIGHT_BAKE_INDIRECT]。" #: doc/classes/VisualServer.xml msgid "" "Creates a lightmap capture and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]lightmap_capture_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this lightmap capture to an instance using " "[method instance_set_base] using the returned RID." msgstr "" "创建一个光照贴图捕获并将其添加到VisualServer中。可以用返回的RID来访问它。这个" "RID可用于所有[code]lightmap_capture_*[/code] VisualServer函数。\n" "一旦完成了RID处理,可使用VisualServer的[method free_rid]静态方法释放RID。\n" "要在场景中放置,使用返回的RID,用[method instance_set_base]将这个lightmap " "capture附加到一个实例上。" #: doc/classes/VisualServer.xml msgid "Returns the size of the lightmap capture area." msgstr "返回光照贴图捕获区域的大小。" #: doc/classes/VisualServer.xml msgid "Returns the energy multiplier used by the lightmap capture." msgstr "返回光照贴图捕获使用的能量乘数。" #: doc/classes/VisualServer.xml msgid "Returns the octree used by the lightmap capture." msgstr "返回光照贴图捕获使用的八叉树。" #: doc/classes/VisualServer.xml msgid "" "Returns the cell subdivision amount used by this lightmap capture's octree." msgstr "返回此光照贴图捕获的八叉树使用的单元细分量。" #: doc/classes/VisualServer.xml msgid "Returns the cell transform for this lightmap capture's octree." msgstr "返回此光照贴图捕获的八叉树的单元变换。" #: doc/classes/VisualServer.xml msgid "Returns [code]true[/code] if capture is in \"interior\" mode." msgstr "如果捕获处于\"interior\"内部模式,则返回 [code]true[/code]。" #: doc/classes/VisualServer.xml msgid "" "Sets the size of the area covered by the lightmap capture. Equivalent to " "[member BakedLightmapData.bounds]." msgstr "" "设置光照贴图捕获所覆盖区域的大小。相当于 [member BakedLightmapData.bounds]。" #: doc/classes/VisualServer.xml msgid "" "Sets the energy multiplier for this lightmap capture. Equivalent to [member " "BakedLightmapData.energy]." msgstr "" "设置此光照贴图捕获的能量乘数。相当于[member BakedLightmapData.energy]。" #: doc/classes/VisualServer.xml msgid "" "Sets the \"interior\" mode for this lightmap capture. Equivalent to [member " "BakedLightmapData.interior]." msgstr "" "设置此光照贴图捕获的 \"interior\"内部模式。相当于 [member BakedLightmapData." "interior]。" #: doc/classes/VisualServer.xml msgid "" "Sets the octree to be used by this lightmap capture. This function is " "normally used by the [BakedLightmap] node. Equivalent to [member " "BakedLightmapData.octree]." msgstr "" "设置此光照贴图捕获要使用的八叉树。该函数通常由 [BakedLightmap] 节点使用。相当" "于[member BakedLightmapData.octree]。" #: doc/classes/VisualServer.xml msgid "" "Sets the subdivision level of this lightmap capture's octree. Equivalent to " "[member BakedLightmapData.cell_subdiv]." msgstr "" "设置此光照贴图捕获八叉树的细分级别。相当于[member BakedLightmapData." "cell_subdiv]。" #: doc/classes/VisualServer.xml msgid "" "Sets the octree cell transform for this lightmap capture's octree. " "Equivalent to [member BakedLightmapData.cell_space_transform]." msgstr "" "设置此光照贴图捕获的八叉树的八叉树单元变换。相当于[member BakedLightmapData." "cell_space_transform]。" #: doc/classes/VisualServer.xml msgid "" "Returns a mesh of a sphere with the given amount of horizontal and vertical " "subdivisions." msgstr "返回具有给定水平和垂直细分的球体网格。" #: doc/classes/VisualServer.xml msgid "" "Creates an empty material and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]material_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个空材质并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 RID 可" "用于所有 [code]material_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的 [method free_rid] 静态方法释放 RID。" #: doc/classes/VisualServer.xml msgid "Returns the value of a certain material's parameter." msgstr "返回特定材质的参数值。" #: doc/classes/VisualServer.xml msgid "" "Returns the default value for the param if available. Returns [code]null[/" "code] otherwise." msgstr "如果可用,返回参数的默认值。否则返回 [code]null[/code]。" #: doc/classes/VisualServer.xml msgid "" "Returns the shader of a certain material's shader. Returns an empty RID if " "the material doesn't have a shader." msgstr "返回某个材质着色的着色器。如果材质没有着色器,则返回一个空的 RID。" #: doc/classes/VisualServer.xml msgid "Sets a material's line width." msgstr "设置材质的线宽。" #: doc/classes/VisualServer.xml msgid "Sets an object's next material." msgstr "设置对象的下一个材质。" #: doc/classes/VisualServer.xml msgid "Sets a material's parameter." msgstr "设置材质的参数。" #: doc/classes/VisualServer.xml msgid "Sets a material's render priority." msgstr "设置材质的渲染优先级。" #: doc/classes/VisualServer.xml msgid "Sets a shader material's shader." msgstr "设置着色器材质的着色器。" #: doc/classes/VisualServer.xml msgid "" "Adds a surface generated from the Arrays to a mesh. See [enum PrimitiveType] " "constants for types." msgstr "将从数组生成的表面添加到网格。类型请参阅 [enum PrimitiveType] 常量。" #: doc/classes/VisualServer.xml msgid "Removes all surfaces from a mesh." msgstr "移除网格中的所有表面。" #: doc/classes/VisualServer.xml msgid "" "Creates a new mesh and adds it to the VisualServer. It can be accessed with " "the RID that is returned. This RID will be used in all [code]mesh_*[/code] " "VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this mesh to an instance using [method " "instance_set_base] using the returned RID." msgstr "" "创建一个新网格并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 RID 可" "用于所有 [code]mesh_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的 [method free_rid] 静态方法释放 " "RID。\n" "要放置在场景中,请使用返回的 RID 使用 [method instance_set_base] 将此网格附加" "到实例。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's blend shape count." msgstr "返回一个网格的混合形状数量。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's blend shape mode." msgstr "返回网格的混合形状模式。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's custom aabb." msgstr "返回网格的自定义 AABB。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's number of surfaces." msgstr "返回网格的面数。" #: doc/classes/VisualServer.xml msgid "Removes a mesh's surface." msgstr "移除网格的表面。" #: doc/classes/VisualServer.xml msgid "Sets a mesh's blend shape count." msgstr "设置网格的混合形状计数。" #: doc/classes/VisualServer.xml msgid "Sets a mesh's blend shape mode." msgstr "设置网格的混合形状模式。" #: doc/classes/VisualServer.xml msgid "Sets a mesh's custom aabb." msgstr "设置网格的自定义 AABB。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's aabb." msgstr "返回网格表面的 aabb。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's vertex buffer." msgstr "返回网格表面的顶点缓冲区。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's amount of indices." msgstr "返回网格的表面的索引数量。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's amount of vertices." msgstr "返回网格表面的顶点数量。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's buffer arrays." msgstr "返回网格表面的缓冲区数组。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's arrays for blend shapes." msgstr "返回网格表面的混合形状数组。" #: doc/classes/VisualServer.xml msgid "Returns the format of a mesh's surface." msgstr "返回网格表面的格式。" #: doc/classes/VisualServer.xml msgid "Function is unused in Godot 3.x." msgstr "这个函数在 Godot 3.x 中未使用。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's index buffer." msgstr "返回网格表面的索引缓冲区。" #: doc/classes/VisualServer.xml msgid "Returns a mesh's surface's material." msgstr "返回网格表面的材质。" #: doc/classes/VisualServer.xml msgid "Returns the primitive type of a mesh's surface." msgstr "返回网格表面的图元类型。" #: doc/classes/VisualServer.xml msgid "Returns the aabb of a mesh's surface's skeleton." msgstr "返回网格表面骨架的 aabb。" #: doc/classes/VisualServer.xml msgid "Sets a mesh's surface's material." msgstr "设置网格表面的材质。" #: doc/classes/VisualServer.xml msgid "" "Updates a specific region of a vertex buffer for the specified surface. " "Warning: this function alters the vertex buffer directly with no safety " "mechanisms, you can easily corrupt your mesh." msgstr "" "更新指定曲面的顶点缓冲区的一个特定区域。警告:这个函数直接改变了顶点缓冲区," "没有安全机制,你很容易破坏你的网格。" #: doc/classes/VisualServer.xml msgid "" "Allocates space for the multimesh data. Format parameters determine how the " "data will be stored by OpenGL. See [enum MultimeshTransformFormat], [enum " "MultimeshColorFormat], and [enum MultimeshCustomDataFormat] for usage. " "Equivalent to [member MultiMesh.instance_count]." msgstr "" "为多网格数据分配空间。格式参数决定了 OpenGL 如何存储数据。有关用法,请参阅 " "[enum MultimeshTransformFormat]、[enum MultimeshColorFormat] 和 [enum " "MultimeshCustomDataFormat]。相当于 [member MultiMesh.instance_count]。" #: doc/classes/VisualServer.xml msgid "" "Creates a new multimesh on the VisualServer and returns an [RID] handle. " "This RID will be used in all [code]multimesh_*[/code] VisualServer " "functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this multimesh to an instance using [method " "instance_set_base] using the returned RID." msgstr "" "在 VisualServer 上创建一个新的多网格并返回一个 [RID] 句柄。此 RID 可用于所有 " "[code]multimesh_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的 [method free_rid] 静态方法释放 " "RID。\n" "要放置在场景中,请使用返回的 RID 使用 [method instance_set_base] 将此多网格附" "加到实例。" #: doc/classes/VisualServer.xml msgid "" "Calculates and returns the axis-aligned bounding box that encloses all " "instances within the multimesh." msgstr "" "计算并返回轴对齐的边界框(包围盒),该边界框(包围盒)将所有的实例都包含在" "multimesh中。" #: doc/classes/VisualServer.xml msgid "Returns the number of instances allocated for this multimesh." msgstr "返回分配给这个multimesh的实例的数量。" #: doc/classes/VisualServer.xml msgid "" "Returns the RID of the mesh that will be used in drawing this multimesh." msgstr "返回用于绘制此multimesh的RID。" #: doc/classes/VisualServer.xml msgid "Returns the number of visible instances for this multimesh." msgstr "返回此multimesh的可见实例数。" #: doc/classes/VisualServer.xml msgid "Returns the color by which the specified instance will be modulated." msgstr "返回指定实例将被调制的颜色。" #: doc/classes/VisualServer.xml msgid "Returns the custom data associated with the specified instance." msgstr "返回与指定实例相关的自定义数据。" #: doc/classes/VisualServer.xml msgid "Returns the [Transform] of the specified instance." msgstr "返回指定实例的[Transform]。" #: doc/classes/VisualServer.xml msgid "" "Returns the [Transform2D] of the specified instance. For use when the " "multimesh is set to use 2D transforms." msgstr "返回指定实例的 [Transform2D]。只在multimesh设置为使用 2D 变换时使用。" #: doc/classes/VisualServer.xml msgid "" "Sets the color by which this instance will be modulated. Equivalent to " "[method MultiMesh.set_instance_color]." msgstr "设置这个实例的调制颜色。等同于[method MultiMesh.set_instance_color]。" #: doc/classes/VisualServer.xml msgid "" "Sets the custom data for this instance. Custom data is passed as a [Color], " "but is interpreted as a [code]vec4[/code] in the shader. Equivalent to " "[method MultiMesh.set_instance_custom_data]." msgstr "" "为这个实例设置自定义数据。自定义数据以[Color]的形式传递,但在着色器中会被解释" "为[code]vec4[/code]。等同于[method MultiMesh.set_instance_custom_data]。" #: doc/classes/VisualServer.xml msgid "" "Sets the [Transform] for this instance. Equivalent to [method MultiMesh." "set_instance_transform]." msgstr "" "设置此实例的 [Transform]。相当于[method MultiMesh.set_instance_transform]。" #: doc/classes/VisualServer.xml msgid "" "Sets the [Transform2D] for this instance. For use when multimesh is used in " "2D. Equivalent to [method MultiMesh.set_instance_transform_2d]." msgstr "" "为此实例设置 [Transform2D]。用于在 2D 中使用multimesh时。相当于[method " "MultiMesh.set_instance_transform_2d]。" #: doc/classes/VisualServer.xml msgid "" "Sets all data related to the instances in one go. This is especially useful " "when loading the data from disk or preparing the data from GDNative.\n" "\n" "All data is packed in one large float array. An array may look like this: " "Transform for instance 1, color data for instance 1, custom data for " "instance 1, transform for instance 2, color data for instance 2, etc.\n" "\n" "[Transform] is stored as 12 floats, [Transform2D] is stored as 8 floats, " "[code]COLOR_8BIT[/code] / [code]CUSTOM_DATA_8BIT[/code] is stored as 1 float " "(4 bytes as is) and [code]COLOR_FLOAT[/code] / [code]CUSTOM_DATA_FLOAT[/" "code] is stored as 4 floats." msgstr "" "一次性设置所有与实例相关的数据。这在从磁盘加载数据或从GDNative准备数据时特别" "有用。\n" "\n" "所有的数据都被打包在一个大型浮点数组中。一个数组可能看起来像这样: 实例1的变" "换,实例1的颜色数据,实例1的自定义数据,实例2的变换,实例2的颜色数据,等" "等。\n" "\n" "[Transform]存储为12个浮点数,[Transform2D]存储为8个浮点数,[code]COLOR_8BIT[/" "code] / [code]CUSTOM_DATA_8BIT[/code]存储为1个浮点数(按4字节)," "[code]COLOR_FLOAT[/code] / [code]CUSTOM_DATA_FLOAT[/code] 存储为4个浮点数。" #: doc/classes/VisualServer.xml msgid "" "Sets the mesh to be drawn by the multimesh. Equivalent to [member MultiMesh." "mesh]." msgstr "设置Multimesh所要绘制的网格。等同于 [member MultiMesh.mesh]。" #: doc/classes/VisualServer.xml msgid "" "Sets the number of instances visible at a given time. If -1, all instances " "that have been allocated are drawn. Equivalent to [member MultiMesh." "visible_instance_count]." msgstr "" "设置在给定时间内可见的实例的数量。如果是-1,所有被分配的实例都会被画出来。等" "同于[member MultiMesh.visible_instance_count]。" #: doc/classes/VisualServer.xml msgid "" "Creates a new omni light and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID can be used in most [code]light_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this omni light to an instance using [method " "instance_set_base] using the returned RID." msgstr "" "新建全向光并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 RID 可用于" "大多数 [code]light_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的静态方法 [method free_rid] 释放 " "RID。\n" "要放置在场景中,请使用返回的 RID 使用 [method instance_set_base] 将此全向光附" "加到实例。" #: doc/classes/VisualServer.xml msgid "" "Creates a particle system and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]particles_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach these particles to an instance using [method " "instance_set_base] using the returned RID." msgstr "" "创建一个粒子系统并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 RID " "可用于所有 [code]particles_*[/code] VisualServer 函数。\n" "完成 RID 后,可使用 VisualServer 的 [method free_rid] 静态方法释放 RID。\n" "要放置在场景中,请使用返回的 RID 使用 [method instance_set_base] 将这些粒子附" "加到实例。" #: doc/classes/VisualServer.xml msgid "" "Calculates and returns the axis-aligned bounding box that contains all the " "particles. Equivalent to [method Particles.capture_aabb]." msgstr "" "计算并返回包含所有粒子的轴对齐边界框。相当于[method Particles.capture_aabb]。" #: doc/classes/VisualServer.xml msgid "Returns [code]true[/code] if particles are currently set to emitting." msgstr "如果当前粒子被设置发射,则返回 [code]true[/code]。" #: doc/classes/VisualServer.xml msgid "" "Returns [code]true[/code] if particles are not emitting and particles are " "set to inactive." msgstr "如果粒子没有发射并且粒子设置为非活动状态,则返回 [code]true[/code]。" #: doc/classes/VisualServer.xml msgid "" "Add particle system to list of particle systems that need to be updated. " "Update will take place on the next frame, or on the next call to [method " "instances_cull_aabb], [method instances_cull_convex], or [method " "instances_cull_ray]." msgstr "" "将粒子系统添加到需要更新的粒子系统列表中。更新将在下一帧或下一次调用 [method " "instances_cull_aabb]、[method instances_cull_convex] 或 [method " "instances_cull_ray] 时进行。" #: doc/classes/VisualServer.xml msgid "" "Reset the particles on the next update. Equivalent to [method Particles." "restart]." msgstr "在下次更新时重置粒子。相当于[method Particles.restart]。" #: doc/classes/VisualServer.xml msgid "" "Sets the number of particles to be drawn and allocates the memory for them. " "Equivalent to [member Particles.amount]." msgstr "" "设置要绘制的粒子的数量,并为其分配内存。相当于[member Particles.amount]。" #: doc/classes/VisualServer.xml msgid "" "Sets a custom axis-aligned bounding box for the particle system. Equivalent " "to [member Particles.visibility_aabb]." msgstr "" "为粒子系统设置自定义轴对齐边界框。相当于 [member Particles.visibility_aabb]。" #: doc/classes/VisualServer.xml msgid "" "Sets the draw order of the particles to one of the named enums from [enum " "ParticlesDrawOrder]. See [enum ParticlesDrawOrder] for options. Equivalent " "to [member Particles.draw_order]." msgstr "" "将粒子的绘制顺序设置为 [enum ParticlesDrawOrder] 中的枚举之一。有关选项,请参" "阅 [enum ParticlesDrawOrder]。相当于 [member Particles.draw_order]。" #: doc/classes/VisualServer.xml msgid "" "Sets the mesh to be used for the specified draw pass. Equivalent to [member " "Particles.draw_pass_1], [member Particles.draw_pass_2], [member Particles." "draw_pass_3], and [member Particles.draw_pass_4]." msgstr "" "设置用于指定绘制通道的网格。相当于 [member Particles.draw_pass_1]、[member " "Particles.draw_pass_2]、[member Particles.draw_pass_3] 和 [member Particles." "draw_pass_4]。" #: doc/classes/VisualServer.xml msgid "" "Sets the number of draw passes to use. Equivalent to [member Particles." "draw_passes]." msgstr "设置要使用的绘制通道数。相当于 [member Particles.draw_passes]。" #: doc/classes/VisualServer.xml msgid "" "Sets the [Transform] that will be used by the particles when they first emit." msgstr "设置粒子首次发射时将使用的 [Transform]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], particles will emit over time. Setting to false does " "not reset the particles, but only stops their emission. Equivalent to " "[member Particles.emitting]." msgstr "" "如果[code]true[/code],粒子会随着时间的推移而发射出来。设置为false不会重置粒" "子,而只是停止其发射。相当于[member Particles.emitting]。" #: doc/classes/VisualServer.xml msgid "" "Sets the explosiveness ratio. Equivalent to [member Particles.explosiveness]." msgstr "设置爆炸率。相当于[member Particles.explosiveness]。" #: doc/classes/VisualServer.xml msgid "" "Sets the frame rate that the particle system rendering will be fixed to. " "Equivalent to [member Particles.fixed_fps]." msgstr "设置粒子系统渲染的固定帧率。相当于[member Particles.fixed_fps]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], uses fractional delta which smooths the movement of " "the particles. Equivalent to [member Particles.fract_delta]." msgstr "" "如果 [code]true[/code],则使用分数增量来平滑粒子的运动。相当于 [member " "Particles.fract_delta]。" #: doc/classes/VisualServer.xml msgid "" "Sets the lifetime of each particle in the system. Equivalent to [member " "Particles.lifetime]." msgstr "设置系统中每个粒子的寿命。相当于 [member Particles.lifetime]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], particles will emit once and then stop. Equivalent to " "[member Particles.one_shot]." msgstr "" "如果 [code]true[/code],粒子将发射一次然后停止。相当于 [member Particles." "one_shot]。" #: doc/classes/VisualServer.xml msgid "" "Sets the preprocess time for the particles' animation. This lets you delay " "starting an animation until after the particles have begun emitting. " "Equivalent to [member Particles.preprocess]." msgstr "" "设置粒子动画的预处理时间。这使您可以延迟启动动画,直到粒子开始发射。相当于" "[member Particles.preprocess]。" #: doc/classes/VisualServer.xml msgid "" "Sets the material for processing the particles.\n" "[b]Note:[/b] This is not the material used to draw the materials. Equivalent " "to [member Particles.process_material]." msgstr "" "设置用于处理粒子的材质。\n" "[b]注意:[/b]这不是用于绘制材质的材质。相当于[member Particles." "process_material]。" #: doc/classes/VisualServer.xml msgid "" "Sets the emission randomness ratio. This randomizes the emission of " "particles within their phase. Equivalent to [member Particles.randomness]." msgstr "" "设置发射随机率。这将随机化粒子在其相位内的发射。相当于 [member Particles." "randomness]。" #: doc/classes/VisualServer.xml msgid "" "Sets the speed scale of the particle system. Equivalent to [member Particles." "speed_scale]." msgstr "设置粒子系统的速度缩放。相当于 [member Particles.speed_scale]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], particles use local coordinates. If [code]false[/code] " "they use global coordinates. Equivalent to [member Particles.local_coords]." msgstr "" "如果 [code]true[/code],粒子使用局部坐标。如果 [code]false[/code] 其使用全局" "坐标。相当于 [member Particles.local_coords]。" #: doc/classes/VisualServer.xml msgid "" "Creates a reflection probe and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]reflection_probe_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this reflection probe to an instance using " "[method instance_set_base] using the returned RID." msgstr "" "创建一个反射探针并将其添加到VisualServer中。可以用返回的RID来访问它。这个RID" "可用于所有[code]reflection_probe_*[/code] VisualServer函数。\n" "一旦完成了RID处理,可使用VisualServer的[method free_rid]静态方法释放RID。\n" "要在场景中放置,使用返回的RID,用[method instance_set_base]将这个反射探针附加" "到一个实例上。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], reflections will ignore sky contribution. Equivalent " "to [member ReflectionProbe.interior_enable]." msgstr "" "如果 [code]true[/code],反射将忽略天空的贡献。相当于 [member ReflectionProbe." "interior_enable]。" #: doc/classes/VisualServer.xml msgid "" "Sets the render cull mask for this reflection probe. Only instances with a " "matching cull mask will be rendered by this probe. Equivalent to [member " "ReflectionProbe.cull_mask]." msgstr "" "为这个反射探针设置渲染遮蔽。只有具有匹配的遮蔽罩的实例才会被这个探针渲染。等" "同于[member ReflectionProbe.cull_mask]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], uses box projection. This can make reflections look " "more correct in certain situations. Equivalent to [member ReflectionProbe." "box_projection]." msgstr "" "如果 [code]true[/code],则使用箱体投影。这可以使反射在某些情况下看起来更正" "确。相当于 [member ReflectionProbe.box_projection]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], computes shadows in the reflection probe. This makes " "the reflection much slower to compute. Equivalent to [member ReflectionProbe." "enable_shadows]." msgstr "" "如果 [code]true[/code],计算反射探针中的阴影。这会使得反射的计算速度慢得多。" "相当于 [member ReflectionProbe.enable_shadows]。" #: doc/classes/VisualServer.xml msgid "" "Sets the size of the area that the reflection probe will capture. Equivalent " "to [member ReflectionProbe.extents]." msgstr "" "设置反射探针将捕获的区域的大小。等效于 [member ReflectionProbe.extents]。" #: doc/classes/VisualServer.xml msgid "" "Sets the intensity of the reflection probe. Intensity modulates the strength " "of the reflection. Equivalent to [member ReflectionProbe.intensity]." msgstr "" "设置反射探针的强度。强度调节反射的强度。等效于 [member ReflectionProbe." "intensity]。" #: doc/classes/VisualServer.xml msgid "" "Sets the ambient light color for this reflection probe when set to interior " "mode. Equivalent to [member ReflectionProbe.interior_ambient_color]." msgstr "" "设置为内部模式时,为此反射探针设置环境光颜色。相当于[member ReflectionProbe." "interior_ambient_color]。" #: doc/classes/VisualServer.xml msgid "" "Sets the energy multiplier for this reflection probes ambient light " "contribution when set to interior mode. Equivalent to [member " "ReflectionProbe.interior_ambient_energy]." msgstr "" "当设置为内部模式时,设置此反射探针环境光贡献的能量乘数。相当于[member " "ReflectionProbe.interior_ambient_energy]。" #: doc/classes/VisualServer.xml msgid "" "Sets the contribution value for how much the reflection affects the ambient " "light for this reflection probe when set to interior mode. Useful so that " "ambient light matches the color of the room. Equivalent to [member " "ReflectionProbe.interior_ambient_contrib]." msgstr "" "设置贡献值,即当设置为内部模式时,反射对该反射探针的环境光的影响程度。这样可" "以使环境光与房间的颜色一致。相当于 [member ReflectionProbe." "interior_ambient_contrib]。" #: doc/classes/VisualServer.xml msgid "" "Sets the max distance away from the probe an object can be before it is " "culled. Equivalent to [member ReflectionProbe.max_distance]." msgstr "" "设置物体在被删除前与探针的最大距离。等同于[member ReflectionProbe." "max_distance]。" #: doc/classes/VisualServer.xml msgid "" "Sets the origin offset to be used when this reflection probe is in box " "project mode. Equivalent to [member ReflectionProbe.origin_offset]." msgstr "" "设置当此反射探针处于框项目模式时要使用的源偏移。相当于[member " "ReflectionProbe.origin_offset]。" #: doc/classes/VisualServer.xml msgid "" "Sets how often the reflection probe updates. Can either be once or every " "frame. See [enum ReflectionProbeUpdateMode] for options." msgstr "" "设置反射探针的更新频率。可以是一次,也可以是每一帧。参阅[enum " "ReflectionProbeUpdateMode]选项。" #: doc/classes/VisualServer.xml msgid "" "Schedules a callback to the corresponding named [code]method[/code] on " "[code]where[/code] after a frame has been drawn.\n" "The callback method must use only 1 argument which will be called with " "[code]userdata[/code]." msgstr "" "在画完一帧后,在[code]where[/code]上安排一个回调给相应的命名的[code]method[/" "code]。\n" "回调方法必须只使用1个参数,它将与[code]userdata[/code]一起被调用。" #: doc/classes/VisualServer.xml msgid "" "Creates a scenario and adds it to the VisualServer. It can be accessed with " "the RID that is returned. This RID will be used in all [code]scenario_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "The scenario is the 3D world that all the visual instances exist in." msgstr "" "创建一个场景并将其添加到VisualServer中。它可以通过返回的RID进行访问。这个RID" "可在所有[code]scenario_*[/code]VisualServer函数中使用。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放" "RID。\n" "场景是所有视觉实例所存在的三维世界。" #: doc/classes/VisualServer.xml msgid "" "Sets the [enum ScenarioDebugMode] for this scenario. See [enum " "ScenarioDebugMode] for options." msgstr "设置该场景的[enum ScenarioDebugMode]。" #: doc/classes/VisualServer.xml msgid "Sets the environment that will be used with this scenario." msgstr "设置将用于此场景的环境。" #: doc/classes/VisualServer.xml msgid "" "Sets the fallback environment to be used by this scenario. The fallback " "environment is used if no environment is set. Internally, this is used by " "the editor to provide a default environment." msgstr "" "设置此方案所使用的后备环境。如果没有设置环境,则使用后备环境。这被编辑器用来" "提供一个默认环境。" #: doc/classes/VisualServer.xml msgid "" "Sets the size of the reflection atlas shared by all reflection probes in " "this scenario." msgstr "设置此场景中所有反射探针共享的反射图集的大小。" #: doc/classes/VisualServer.xml msgid "" "Sets a boot image. The color defines the background color. If [code]scale[/" "code] is [code]true[/code], the image will be scaled to fit the screen size. " "If [code]use_filter[/code] is [code]true[/code], the image will be scaled " "with linear interpolation. If [code]use_filter[/code] is [code]false[/code], " "the image will be scaled with nearest-neighbor interpolation." msgstr "" "设置一个启动图像。颜色定义了背景颜色。如果[code]scale[/code]是[code]true[/" "code],图像将被缩放以适应屏幕尺寸。如果[code]use_filter[/code]是[code]true[/" "code],图像将以线性插值进行缩放。如果[code]use_filter[/code]是[code]false[/" "code],图像将以近邻插值的方式缩放。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], the engine will generate wireframes for use with the " "wireframe debug mode." msgstr "如果 [code]true[/code],引擎将生成用于线框调试模式的线框。" #: doc/classes/VisualServer.xml msgid "" "Sets the default clear color which is used when a specific clear color has " "not been selected." msgstr "设置未选择特定透明色时使用的默认透明色。" #: doc/classes/VisualServer.xml msgid "" "If asynchronous shader compilation is enabled, this controls whether " "[constant SpatialMaterial.ASYNC_MODE_HIDDEN] is obeyed.\n" "For instance, you may want to enable this temporarily before taking a " "screenshot. This ensures everything is visible even if shaders with async " "mode [i]hidden[/i] are not ready yet.\n" "Reflection probes use this internally to ensure they capture everything " "regardless the shaders are ready or not." msgstr "" "如果异步着色器编译已启用,这个方法可以控制是否遵循 [constant SpatialMaterial." "ASYNC_MODE_HIDDEN]。\n" "例如,你可能想要在进行截图之前临时启用,可以保证所有东西都是可见的,即便异步" "模式[i]隐藏[/i]的着色器尚不可用。\n" "反射探针会在内部使用,用于保证无论着色器是否可用都能捕捉到所有东西。" #: doc/classes/VisualServer.xml msgid "" "Sets the scale to apply to the passage of time for the shaders' [code]TIME[/" "code] builtin.\n" "The default value is [code]1.0[/code], which means [code]TIME[/code] will " "count the real time as it goes by, without narrowing or stretching it." msgstr "" "设置应用于着色器 [code]TIME[/code] 内置时间流逝的比例。\n" "默认值是[code]1.0[/code],表示[code]TIME[/code]会随着时间的推移计算实时时间," "不会缩小或拉伸它。" #: doc/classes/VisualServer.xml msgid "Enables or disables occlusion culling." msgstr "启用或禁用遮挡剔除。" #: doc/classes/VisualServer.xml msgid "" "Creates an empty shader and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID will be used in all [code]shader_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个空的着色器并将其添加到 VisualServer。可以使用返回的 RID 访问它。此 " "RID 可用于所有 [code]shader_*[/code] VisualServer 函数。\n" "完成 RID 处理后,可使用 VisualServer 的 [method free_rid] 静态方法释放 RID。" #: doc/classes/VisualServer.xml msgid "Returns a shader's code." msgstr "返回着色器的代码。" #: doc/classes/VisualServer.xml msgid "Returns a default texture from a shader searched by name." msgstr "从按名称搜索的着色器中返回一个默认纹理。" #: doc/classes/VisualServer.xml msgid "Returns the parameters of a shader." msgstr "返回着色器的参数。" #: doc/classes/VisualServer.xml msgid "Sets a shader's code." msgstr "设置着色器的代码。" #: doc/classes/VisualServer.xml msgid "Sets a shader's default texture. Overwrites the texture given by name." msgstr "设置着色器的默认纹理。覆盖以名字命名的纹理。" #: doc/classes/VisualServer.xml msgid "Allocates the GPU buffers for this skeleton." msgstr "为这个骨架分配 GPU 缓冲区。" #: doc/classes/VisualServer.xml msgid "Returns the [Transform] set for a specific bone of this skeleton." msgstr "返回这个骨架的特定骨骼的 [Transform]。" #: doc/classes/VisualServer.xml msgid "Returns the [Transform2D] set for a specific bone of this skeleton." msgstr "返回这个骨架的特定骨骼的 [Transform2D]。" #: doc/classes/VisualServer.xml msgid "Sets the [Transform] for a specific bone of this skeleton." msgstr "设置这个骨架的特定骨骼的 [Transform]。" #: doc/classes/VisualServer.xml msgid "Sets the [Transform2D] for a specific bone of this skeleton." msgstr "设置这个骨架的特定骨骼的 [Transform2D]。" #: doc/classes/VisualServer.xml msgid "" "Creates a skeleton and adds it to the VisualServer. It can be accessed with " "the RID that is returned. This RID will be used in all [code]skeleton_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个骨架并将其添加到 VisualServer 中。它可以通过返回的 RID 进行访问。这" "个 RID 可用于所有 [code]skeleton_*[/code] VisualServer 函数。\n" "一旦完成了对 RID 的处理,可使用 VisualServer 的静态方法 [method free_rid] 释" "放 RID。" #: doc/classes/VisualServer.xml msgid "Returns the number of bones allocated for this skeleton." msgstr "返回分配给这个骨架的骨骼数量。" #: doc/classes/VisualServer.xml msgid "" "Creates an empty sky and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID will be used in all [code]sky_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个空的天空并将其添加到VisualServer中。可以用返回的RID来访问它。这个RID" "可用于所有[code]sky_*[/code] VisualServer函数。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "Sets a sky's texture." msgstr "设置天空的纹理。" #: doc/classes/VisualServer.xml msgid "" "Creates a spot light and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID can be used in most [code]light_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method.\n" "To place in a scene, attach this spot light to an instance using [method " "instance_set_base] using the returned RID." msgstr "" "创建一个聚光并将其添加到 VisualServer 中。可以用返回的 RID 来访问它。这个 " "RID 可用于大多数 [code]light_*[/code] VisualServer 函数。\n" "一旦完成了对 RID 的处理,可使用 VisualServer 的静态方法 [method free_rid] 释" "放 RID。\n" "要在场景中放置,请使用返回的 RID,用 [method instance_set_base] 将该聚光附加" "到一个实例上。" #: doc/classes/VisualServer.xml msgid "Allocates the GPU memory for the texture." msgstr "为纹理分配GPU内存。" #: doc/classes/VisualServer.xml msgid "Binds the texture to a texture slot." msgstr "将纹理绑定到纹理槽。" #: doc/classes/VisualServer.xml msgid "" "Creates an empty texture and adds it to the VisualServer. It can be accessed " "with the RID that is returned. This RID will be used in all [code]texture_*[/" "code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个空纹理并将其添加到VisualServer中。可以用返回的RID来访问它。这个RID可" "用于所有[code]texture_*[/code] VisualServer函数中。\n" "一旦完成了对RID的处理,可使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "" "Creates a texture, allocates the space for an image, and fills in the image." msgstr "创建纹理,为图像分配空间,并填充图像。" #: doc/classes/VisualServer.xml msgid "Returns a list of all the textures and their information." msgstr "返回所有纹理及其信息的列表。" #: doc/classes/VisualServer.xml msgid "" "Returns a copy of a texture's image unless it's a CubeMap, in which case it " "returns the [RID] of the image at one of the cubes sides." msgstr "" "返回纹理图像的副本,除非它是 CubeMap,在这种情况下,它返回立方体一侧的图像的 " "[RID]。" #: doc/classes/VisualServer.xml msgid "Returns the depth of the texture." msgstr "返回纹理的深度。" #: doc/classes/VisualServer.xml msgid "Returns the flags of a texture." msgstr "返回一个纹理的标志flags。" #: doc/classes/VisualServer.xml msgid "Returns the format of the texture's image." msgstr "返回纹理的图像格式。" #: doc/classes/VisualServer.xml msgid "Returns the texture's height." msgstr "返回纹理的高度。" #: doc/classes/VisualServer.xml msgid "Returns the texture's path." msgstr "返回纹理的路径。" #: doc/classes/VisualServer.xml msgid "Returns the opengl id of the texture's image." msgstr "返回纹理图像的opengl id。" #: doc/classes/VisualServer.xml msgid "Returns the type of the texture, can be any of the [enum TextureType]." msgstr "返回纹理的类型,可以是[enum TextureType]中的任何一种。" #: doc/classes/VisualServer.xml msgid "Returns the texture's width." msgstr "返回纹理的宽度。" #: doc/classes/VisualServer.xml msgid "" "Sets the texture's image data. If it's a CubeMap, it sets the image data at " "a cube side." msgstr "设置纹理的图像数据。如果是CubeMap,它将设置立方体边上的图像数据。" #: doc/classes/VisualServer.xml msgid "" "Sets a part of the data for a texture. Warning: this function calls the " "underlying graphics API directly and may corrupt your texture if used " "improperly." msgstr "" "设置一个纹理的部分数据。警告:这个函数直接调用底层图形API,如果使用不当可能会" "破坏你的纹理。" #: doc/classes/VisualServer.xml msgid "Sets the texture's flags. See [enum TextureFlags] for options." msgstr "设置纹理的标志flags。选项见[enum TextureFlags]。" #: doc/classes/VisualServer.xml msgid "Sets the texture's path." msgstr "设置纹理的路径。" #: doc/classes/VisualServer.xml msgid "" "Creates an update link between two textures, similar to how " "[ViewportTexture]s operate. When the base texture is the texture of a " "[Viewport], every time the viewport renders a new frame, the proxy texture " "automatically receives an update.\n" "For example, this code links a generic [ImageTexture] to the texture output " "of the [Viewport] using the VisualServer API:\n" "[codeblock]\n" "func _ready():\n" " var viewport_rid = get_viewport().get_viewport_rid()\n" " var viewport_texture_rid = VisualServer." "viewport_get_texture(viewport_rid)\n" "\n" " var proxy_texture = ImageTexture.new()\n" " var viewport_texture_image_data = VisualServer." "texture_get_data(viewport_texture_rid)\n" "\n" " proxy_texture.create_from_image(viewport_texture_image_data)\n" " var proxy_texture_rid = proxy_texture.get_rid()\n" " VisualServer.texture_set_proxy(proxy_texture_rid, viewport_texture_rid)\n" "\n" " $TextureRect.texture = proxy_texture\n" "[/codeblock]" msgstr "" "在两个纹理之间创建更新链,与 [ViewportTexture] 的原理类似。基础纹理为 " "[Viewport] 的纹理时,视区每新渲染一帧,代理纹理就会自动收到更新。\n" "例如,此处的代码会利用 VisualServer API 将一张通用的 [ImageTexture] 链接到 " "[Viewport] 的纹理输出上:\n" "[codeblock]\n" "func _ready():\n" " var viewport_rid = get_viewport().get_viewport_rid()\n" " var viewport_texture_rid = VisualServer." "viewport_get_texture(viewport_rid)\n" "\n" " var proxy_texture = ImageTexture.new()\n" " var viewport_texture_image_data = VisualServer." "texture_get_data(viewport_texture_rid)\n" "\n" " proxy_texture.create_from_image(viewport_texture_image_data)\n" " var proxy_texture_rid = proxy_texture.get_rid()\n" " VisualServer.texture_set_proxy(proxy_texture_rid, viewport_texture_rid)\n" "\n" " $TextureRect.texture = proxy_texture\n" "[/codeblock]" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], sets internal processes to shrink all image data to " "half the size." msgstr "如果为 [code]true[/code],设置内部进程,将所有图像数据缩小到一半大小。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], the image will be stored in the texture's images array " "if overwritten." msgstr "如果为 [code]true[/code],如果被覆盖,图像将存储在纹理的图像数组中。" #: doc/classes/VisualServer.xml msgid "Sets a viewport's camera." msgstr "设置视图的相机。" #: doc/classes/VisualServer.xml msgid "Sets a viewport's canvas." msgstr "设置视窗的画布。" #: doc/classes/VisualServer.xml #, fuzzy msgid "" "Copies viewport to a region of the screen specified by [code]rect[/code]. If " "[member Viewport.render_direct_to_screen] is [code]true[/code], then " "viewport does not use a framebuffer and the contents of the viewport are " "rendered directly to screen. However, note that the root viewport is drawn " "last, therefore it will draw over the screen. Accordingly, you must set the " "root viewport to an area that does not cover the area that you have attached " "this viewport to.\n" "For example, you can set the root viewport to not render at all with the " "following code:\n" "[codeblock]\n" "func _ready():\n" " get_viewport().set_attach_to_screen_rect(Rect2())\n" " $Viewport.set_attach_to_screen_rect(Rect2(0, 0, 600, 600))\n" "[/codeblock]\n" "Using this can result in significant optimization, especially on lower-end " "devices. However, it comes at the cost of having to manage your viewports " "manually. For further optimization, see [method " "viewport_set_render_direct_to_screen]." msgstr "" "将视窗复制到屏幕上由[code]rect[/code]指定的区域。如果[member Viewport." "render_direct_to_screen]是[code]true[/code],那么视窗就不会使用帧缓冲器,视窗" "的内容会直接渲染到屏幕上。然而,请注意,根视窗是最后绘制的,因此它将在屏幕上" "绘制。因此,你必须将根视窗设置为一个不覆盖你所附加的这个视窗的区域。\n" "例如,你可以用以下代码将根视窗设置为完全不渲染。\n" "[codeblock]\n" "func _ready():\n" " get_viewport().set_attach_to_screen_rect(Rect2())\n" " $Viewport.set_attach_to_screen_rect(Rect2(0, 0, 600, 600))\n" "[/codeblock]\n" "使用这个方法可以带来明显的优化,特别是在低端设备上。然而,它的代价是必须手动" "管理你的视窗。对于进一步的优化,请看,[method " "viewport_set_render_direct_to_screen]。" #: doc/classes/VisualServer.xml msgid "" "Creates an empty viewport and adds it to the VisualServer. It can be " "accessed with the RID that is returned. This RID will be used in all " "[code]viewport_*[/code] VisualServer functions.\n" "Once finished with your RID, you will want to free the RID using the " "VisualServer's [method free_rid] static method." msgstr "" "创建一个空视窗并将其添加到VisualServer中。可以用返回的RID来访问它。这个RID将" "用于所有[code]viewport_*[/code] 的VisualServer函数。\n" "一旦你用完了RID,你要使用VisualServer的[method free_rid]静态方法释放RID。" #: doc/classes/VisualServer.xml msgid "Detaches the viewport from the screen." msgstr "将视窗从屏幕上分离。" #: doc/classes/VisualServer.xml msgid "" "Returns a viewport's render information. For options, see the [enum " "ViewportRenderInfo] constants." msgstr "返回视窗的渲染信息。有关选项,请参阅 [enum ViewportRenderInfo] 常量。" #: doc/classes/VisualServer.xml msgid "Returns the viewport's last rendered frame." msgstr "返回视窗的最后渲染帧。" #: doc/classes/VisualServer.xml msgid "Detaches a viewport from a canvas and vice versa." msgstr "从画布分离视窗,反之亦然。" #: doc/classes/VisualServer.xml msgid "If [code]true[/code], sets the viewport active, else sets it inactive." msgstr "" "如果 [code]true[/code],则将视窗设置为活动状态,否则将其设置为非活动状态。" #: doc/classes/VisualServer.xml msgid "" "Sets the stacking order for a viewport's canvas.\n" "[code]layer[/code] is the actual canvas layer, while [code]sublayer[/code] " "specifies the stacking order of the canvas among those in the same layer." msgstr "" "设置视窗画布的堆叠顺序。\n" "[code]layer[/code]是实际的画布层,而[code]sublayer[/code]则指定画布在同一层中" "的堆叠顺序。" #: doc/classes/VisualServer.xml msgid "Sets the transformation of a viewport's canvas." msgstr "设置视窗画布的变换。" #: doc/classes/VisualServer.xml msgid "" "Sets the clear mode of a viewport. See [enum ViewportClearMode] for options." msgstr "设置视窗的清除模式。详见[enum ViewportClearMode]。" #: doc/classes/VisualServer.xml msgid "" "Sets the debug draw mode of a viewport. See [enum ViewportDebugDraw] for " "options." msgstr "设置视窗的调试绘图模式。详见[enum ViewportDebugDraw]。" #: doc/classes/VisualServer.xml msgid "If [code]true[/code], a viewport's 3D rendering is disabled." msgstr "如果为 [code]true[/code],则视窗的 3D 渲染将禁用。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], rendering of a viewport's environment is disabled." msgstr "如果 [code]true[/code],则禁用视窗环境的渲染。" #: doc/classes/VisualServer.xml msgid "Sets the viewport's global transformation matrix." msgstr "设置视窗的全局变换矩阵。" #: doc/classes/VisualServer.xml msgid "If [code]true[/code], the viewport renders to hdr." msgstr "如果 [code]true[/code],视窗将呈现为 hdr。" #: doc/classes/VisualServer.xml msgid "If [code]true[/code], the viewport's canvas is not rendered." msgstr "如果 [code]true[/code],则不渲染视窗的画布。" #: doc/classes/VisualServer.xml msgid "Currently unimplemented in Godot 3.x." msgstr "目前在 Godot 3.x 中未实现。" #: doc/classes/VisualServer.xml msgid "Sets the anti-aliasing mode. See [enum ViewportMSAA] for options." msgstr "设置抗锯齿模式。详见[enum ViewportMSAA]。" #: doc/classes/VisualServer.xml msgid "Sets the viewport's parent to another viewport." msgstr "设置视窗的父视窗到另一个视窗。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], render the contents of the viewport directly to " "screen. This allows a low-level optimization where you can skip drawing a " "viewport to the root viewport. While this optimization can result in a " "significant increase in speed (especially on older devices), it comes at a " "cost of usability. When this is enabled, you cannot read from the viewport " "or from the [code]SCREEN_TEXTURE[/code]. You also lose the benefit of " "certain window settings, such as the various stretch modes. Another " "consequence to be aware of is that in 2D the rendering happens in window " "coordinates, so if you have a viewport that is double the size of the " "window, and you set this, then only the portion that fits within the window " "will be drawn, no automatic scaling is possible, even if your game scene is " "significantly larger than the window size." msgstr "" "如果[code]true[/code],直接将视窗的内容渲染到屏幕上。这允许一个低级别的优化," "你可以跳过绘制视窗到根视窗。虽然这种优化可以显著提高速度(特别是在旧设备" "上),但它是以牺牲可用性为代价的。当启用这个功能时,你不能从视窗或" "[code]SCREEN_TEXTURE[/code]中读取。你也会失去某些窗口设置的好处,比如各种拉伸" "模式。另一个需要注意的后果是,在2D中,渲染是以窗口坐标进行的,所以如果你有一" "个两倍于窗口大小的视窗,并且你设置了这个,那么只有适合窗口的部分才会被绘制," "没有自动缩放的可能,即使你的游戏场景明显大于窗口大小。" #: doc/classes/VisualServer.xml msgid "" "Sets a viewport's scenario.\n" "The scenario contains information about the [enum ScenarioDebugMode], " "environment information, reflection atlas etc." msgstr "" "设置一个视窗的场景。\n" "场景包含[enum ScenarioDebugMode]的信息、环境信息、反射图集等。" #: doc/classes/VisualServer.xml msgid "Sets the shadow atlas quadrant's subdivision." msgstr "设置阴影图集象限的细分。" #: doc/classes/VisualServer.xml msgid "" "Sets the size of the shadow atlas's images (used for omni and spot lights). " "The value will be rounded up to the nearest power of 2." msgstr "" "设置阴影图集的图像大小(用于全向光和聚光)。该值将被四舍五入到最接近的 2 的" "幂。" #: doc/classes/VisualServer.xml msgid "" "Sets the sharpening [code]intensity[/code] for the [code]viewport[/code]. If " "set to a value greater than [code]0.0[/code], contrast-adaptive sharpening " "will be applied to the 3D viewport. This has a low performance cost and can " "be used to recover some of the sharpness lost from using FXAA. Values around " "[code]0.5[/code] generally give the best results. See also [method " "viewport_set_use_fxaa]." msgstr "" "为视窗[code]viewport[/code]设定锐化强度[code]intensity[/code]。如果设置为大于" "[code]0.0[/code]的值,对比度适应性锐化将被应用到3D视窗中。这具有较低的性能成" "本,可以用来恢复使用FXAA时损失的一些锐度。一般来说,[code]0.5[/code]左右的值" "可以得到最好的效果。参阅[method viewport_set_use_fxaa]。" #: doc/classes/VisualServer.xml msgid "Sets the viewport's width and height." msgstr "设置视窗的宽度和高度。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], the viewport renders its background as transparent." msgstr "如果 [code]true[/code],视窗将其背景渲染为透明。" #: doc/classes/VisualServer.xml msgid "" "Sets when the viewport should be updated. See [enum ViewportUpdateMode] " "constants for options." msgstr "设置应更新视窗的时间。请参阅 [enum ViewportUpdateMode] 。" #: doc/classes/VisualServer.xml msgid "" "Sets the viewport's 2D/3D mode. See [enum ViewportUsage] constants for " "options." msgstr "设置视窗的 2D/3D 模式。选项见 [enum ViewportUsage] 常量。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], the viewport uses augmented or virtual reality " "technologies. See [ARVRInterface]." msgstr "" "如果 [code]true[/code],则视窗使用增强或虚拟现实技术。参阅 [ARVRInterface]。" #: doc/classes/VisualServer.xml msgid "" "If [code]true[/code], uses a fast post-processing filter to make banding " "significantly less visible. In some cases, debanding may introduce a " "slightly noticeable dithering pattern. It's recommended to enable debanding " "only when actually needed since the dithering pattern will make lossless-" "compressed screenshots larger.\n" "[b]Note:[/b] Only available on the GLES3 backend. [member Viewport.hdr] must " "also be [code]true[/code] for debanding to be effective." msgstr "" "如果为 [code]true[/code],则使用一个快速的后处理滤波器,使带状现象明显减少。" "在某些情况下,去带可能会引入一个稍微明显的抖动模式。建议只有在实际需要时才启" "用去带,因为抖动模式会使无损压缩的屏幕截图变大。\n" "[b]注意:[/b]仅在 GLES3 后端可用。[member Viewport.hdr] 也必须是 [code]true[/" "code] 才能使 debanding 生效。" #: doc/classes/VisualServer.xml msgid "" "Enables fast approximate antialiasing for this viewport. FXAA is a popular " "screen-space antialiasing method, which is fast but will make the image look " "blurry, especially at lower resolutions. It can still work relatively well " "at large resolutions such as 1440p and 4K. Some of the lost sharpness can be " "recovered by enabling contrast-adaptive sharpening (see [method " "viewport_set_sharpen_intensity])." msgstr "" "启用该视窗的快速近似抗锯齿。FXAA是一种流行的屏幕空间抗锯齿方法,它速度快,但" "会使图像看起来很模糊,特别是在低分辨率下。在大的分辨率下,如1440p和4K,它仍然" "可以工作得比较好。一些损失的锐度可以通过启用对比度适应性锐化来恢复(见" "[method viewport_set_sharpen_intensity])。" #: doc/classes/VisualServer.xml msgid "If [code]true[/code], the viewport's rendering is flipped vertically." msgstr "如果 [code]true[/code],则视窗的渲染垂直翻转。" #: doc/classes/VisualServer.xml msgid "" "If [code]false[/code], disables rendering completely, but the engine logic " "is still being processed. You can call [method force_draw] to draw a frame " "even with rendering disabled." msgstr "" "如果[code]false[/code],则完全禁用渲染,但引擎逻辑仍在处理中。即使禁用渲染," "您也可以调用 [method force_draw] 来绘制帧。" #: doc/classes/VisualServer.xml msgid "" "Emitted at the end of the frame, after the VisualServer has finished " "updating all the Viewports." msgstr "在 VisualServer 完成更新所有 Viewport 后,在帧的最后发出。" #: doc/classes/VisualServer.xml msgid "" "Emitted at the beginning of the frame, before the VisualServer updates all " "the Viewports." msgstr "在 VisualServer 更新所有 Viewport 之前,在帧的开始发出。" #: doc/classes/VisualServer.xml msgid "Marks an error that shows that the index array is empty." msgstr "标记一个错误,表明索引数组为空。" #: doc/classes/VisualServer.xml msgid "Number of weights/bones per vertex." msgstr "每个顶点的权重/骨骼数。" #: doc/classes/VisualServer.xml msgid "The minimum Z-layer for canvas items." msgstr "画布项目的最小 Z 层。" #: doc/classes/VisualServer.xml msgid "The maximum Z-layer for canvas items." msgstr "帆布项目的最大 Z 层。" #: doc/classes/VisualServer.xml msgid "" "Max number of glow levels that can be used with glow post-process effect." msgstr "可用于辉光后处理效果的最大辉光级别数。" #: doc/classes/VisualServer.xml msgid "Unused enum in Godot 3.x." msgstr "在 Godot 3.x 中未使用的枚举。" #: doc/classes/VisualServer.xml msgid "The minimum renderpriority of all materials." msgstr "所有材质的最小渲染优先级。" #: doc/classes/VisualServer.xml msgid "The maximum renderpriority of all materials." msgstr "所有材质的最大渲染优先级。" #: doc/classes/VisualServer.xml msgid "Marks the left side of a cubemap." msgstr "标记立方体贴图的左侧。" #: doc/classes/VisualServer.xml msgid "Marks the right side of a cubemap." msgstr "标记立方体贴图的右侧。" #: doc/classes/VisualServer.xml msgid "Marks the bottom side of a cubemap." msgstr "标记立方体贴图的底部。" #: doc/classes/VisualServer.xml msgid "Marks the top side of a cubemap." msgstr "标记立方体贴图的顶部。" #: doc/classes/VisualServer.xml msgid "Marks the front side of a cubemap." msgstr "标记立方体贴图的正面。" #: doc/classes/VisualServer.xml msgid "Marks the back side of a cubemap." msgstr "标记立方体贴图的背面。" #: doc/classes/VisualServer.xml msgid "Normal texture with 2 dimensions, width and height." msgstr "具有 2 个维度,宽度和高度的法线纹理。" #: doc/classes/VisualServer.xml msgid "" "Texture made up of six faces, can be looked up with a [code]vec3[/code] in " "shader." msgstr "由六个面组成的纹理,可以在着色器中使用 [code]vec3[/code] 查找。" #: doc/classes/VisualServer.xml msgid "An array of 2-dimensional textures." msgstr "一组二维纹理。" #: doc/classes/VisualServer.xml msgid "A 3-dimensional texture with width, height, and depth." msgstr "具有宽度、高度和深度的 3 维纹理。" #: doc/classes/VisualServer.xml msgid "Repeats the texture (instead of clamp to edge)." msgstr "重复纹理,而不是限制在边缘。" #: doc/classes/VisualServer.xml msgid "Repeats the texture with alternate sections mirrored." msgstr "使用镜像的交替部分重复纹理。" #: doc/classes/VisualServer.xml msgid "" "Default flags. [constant TEXTURE_FLAG_MIPMAPS], [constant " "TEXTURE_FLAG_REPEAT] and [constant TEXTURE_FLAG_FILTER] are enabled." msgstr "" "默认标志。启用 [constant TEXTURE_FLAG_MIPMAPS]、[constant " "TEXTURE_FLAG_REPEAT] 和 [constant TEXTURE_FLAG_FILTER] 。" #: doc/classes/VisualServer.xml msgid "Shader is a 3D shader." msgstr "着色器是 3D 着色器。" #: doc/classes/VisualServer.xml msgid "Shader is a 2D shader." msgstr "着色器是 2D 着色器。" #: doc/classes/VisualServer.xml msgid "Shader is a particle shader." msgstr "着色器是粒子着色器。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum ShaderMode] enum." msgstr "代表 [enum ShaderMode] 枚举的大小。" #: doc/classes/VisualServer.xml msgid "Array is a vertex array." msgstr "数组是顶点数组。" #: doc/classes/VisualServer.xml msgid "Array is a normal array." msgstr "数组是法线数组。" #: doc/classes/VisualServer.xml msgid "Array is a tangent array." msgstr "数组是切线数组。" #: doc/classes/VisualServer.xml msgid "Array is a color array." msgstr "数组是颜色数组。" #: doc/classes/VisualServer.xml msgid "Array is an UV coordinates array." msgstr "数组是 UV 坐标数组。" #: doc/classes/VisualServer.xml msgid "Array is an UV coordinates array for the second UV coordinates." msgstr "数组是第二个 UV 坐标的 UV 坐标数组。" #: doc/classes/VisualServer.xml msgid "Array contains bone information." msgstr "数组包含骨骼信息。" #: doc/classes/VisualServer.xml msgid "Array is weight information." msgstr "数组是重量信息。" #: doc/classes/VisualServer.xml msgid "Array is index array." msgstr "数组是索引数组。" #: doc/classes/VisualServer.xml msgid "Flag used to mark a vertex array." msgstr "用于标记顶点数组的标志。" #: doc/classes/VisualServer.xml msgid "Flag used to mark a normal array." msgstr "用于标记法线数组的标志。" #: doc/classes/VisualServer.xml msgid "Flag used to mark a tangent array." msgstr "用于标记切线数组的标志。" #: doc/classes/VisualServer.xml msgid "Flag used to mark a color array." msgstr "用于标记颜色数组的标记。" #: doc/classes/VisualServer.xml msgid "Flag used to mark an UV coordinates array." msgstr "用于标记 UV 坐标数组的标志。" #: doc/classes/VisualServer.xml msgid "" "Flag used to mark an UV coordinates array for the second UV coordinates." msgstr "用于标记第二个UV坐标的UV坐标数组的标志。" #: doc/classes/VisualServer.xml msgid "Flag used to mark a bone information array." msgstr "用来标记骨骼信息数组的标志。" #: doc/classes/VisualServer.xml msgid "Flag used to mark a weights array." msgstr "用于标记重量数组的标记。" #: doc/classes/VisualServer.xml msgid "Flag used to mark an index array." msgstr "用于标记索引数组的标志。" #: doc/classes/VisualServer.xml msgid "" "Used to set flags [constant ARRAY_COMPRESS_NORMAL], [constant " "ARRAY_COMPRESS_TANGENT], [constant ARRAY_COMPRESS_COLOR], [constant " "ARRAY_COMPRESS_TEX_UV], [constant ARRAY_COMPRESS_TEX_UV2], [constant " "ARRAY_COMPRESS_WEIGHTS], and [constant " "ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION] quickly." msgstr "" "用于快速设置标志[constant ARRAY_COMPRESS_NORMAL]、[constant " "ARRAY_COMPRESS_TANGENT]、[constant ARRAY_COMPRESS_COLOR]、[constant " "ARRAY_COMPRESS_TEX_UV]、[constant ARRAY_COMPRESS_TEX_UV2]、[constant " "ARRAY_COMPRESS_WEIGHTS] 和[constant ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION] 。" #: doc/classes/VisualServer.xml msgid "Primitive to draw consists of points." msgstr "绘制的图元由点组成。" #: doc/classes/VisualServer.xml msgid "Primitive to draw consists of lines." msgstr "绘制的图元由线组成。" #: doc/classes/VisualServer.xml msgid "Primitive to draw consists of a line strip from start to end." msgstr "绘制的图元由单条线带组成。" #: doc/classes/VisualServer.xml msgid "" "Primitive to draw consists of a line loop (a line strip with a line between " "the last and the first vertex)." msgstr "" "绘制的图元由单个线环组成(第一个顶点与最后一个顶点之间有线相连的线带)。" #: doc/classes/VisualServer.xml msgid "Primitive to draw consists of triangles." msgstr "绘制的图元由三角形组成。" #: doc/classes/VisualServer.xml msgid "" "Primitive to draw consists of a triangle strip (the last 3 vertices are " "always combined to make a triangle)." msgstr "绘制的图元由单条三角形带组成(最后 3 个顶点总是会构成三角形)。" #: doc/classes/VisualServer.xml msgid "" "Primitive to draw consists of a triangle strip (the last 2 vertices are " "always combined with the first to make a triangle)." msgstr "" "绘制的图元由单条三角形带组成(最后 2 个顶点总是会与第一个顶点构成三角形)。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum PrimitiveType] enum." msgstr "表示 [enum PrimitiveType] 枚举的大小。" #: doc/classes/VisualServer.xml msgid "Is a directional (sun) light." msgstr "是平行光(日光)。" #: doc/classes/VisualServer.xml msgid "Is an omni light." msgstr "是全向光。" #: doc/classes/VisualServer.xml msgid "Is a spot light." msgstr "是聚光。" #: doc/classes/VisualServer.xml msgid "The light's energy." msgstr "灯光的能量。" #: doc/classes/VisualServer.xml msgid "Secondary multiplier used with indirect light (light bounces)." msgstr "与间接光(光反射)一起使用的二次倍增器。" #: doc/classes/VisualServer.xml msgid "" "The light's size, currently only used for soft shadows in baked lightmaps." msgstr "灯光的大小,目前仅用于烘焙光照贴图中的柔和阴影。" #: doc/classes/VisualServer.xml msgid "The light's influence on specularity." msgstr "灯光对镜面反射的影响。" #: doc/classes/VisualServer.xml msgid "The light's range." msgstr "灯光的范围。" #: doc/classes/VisualServer.xml msgid "The light's attenuation." msgstr "光线的衰减。" #: doc/classes/VisualServer.xml msgid "The spotlight's angle." msgstr "聚光灯的角度。" #: doc/classes/VisualServer.xml msgid "The spotlight's attenuation." msgstr "聚光灯的衰减。" #: doc/classes/VisualServer.xml msgid "Scales the shadow color." msgstr "缩放阴影的颜色。" #: doc/classes/VisualServer.xml msgid "Max distance that shadows will be rendered." msgstr "阴影被渲染的最大距离。" #: doc/classes/VisualServer.xml msgid "Proportion of shadow atlas occupied by the first split." msgstr "第一次拆分所占据的阴影图集的比例。" #: doc/classes/VisualServer.xml msgid "Proportion of shadow atlas occupied by the second split." msgstr "第二次拆分所占用的阴影图集的比例。" #: doc/classes/VisualServer.xml msgid "" "Proportion of shadow atlas occupied by the third split. The fourth split " "occupies the rest." msgstr "第三次拆分所占用的阴影图集的比例。第四个拆分占据了其余部分。" #: doc/classes/VisualServer.xml msgid "" "Normal bias used to offset shadow lookup by object normal. Can be used to " "fix self-shadowing artifacts." msgstr "法线偏移,用于抵消物体法线的阴影查找。可以用来修复自阴影的伪影。" #: doc/classes/VisualServer.xml msgid "Bias the shadow lookup to fix self-shadowing artifacts." msgstr "对阴影查找进行偏移,以修复自我阴影的假象。" #: doc/classes/VisualServer.xml msgid "" "Increases bias on further splits to fix self-shadowing that only occurs far " "away from the camera." msgstr "增加对进一步分割的偏差,以修复仅在远离相机的地方发生的自身阴影。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum LightParam] enum." msgstr "代表[enum LightParam]枚举的大小。" #: doc/classes/VisualServer.xml msgid "Use a dual paraboloid shadow map for omni lights." msgstr "对全向光使用双抛物面阴影贴图。" #: doc/classes/VisualServer.xml msgid "" "Use a cubemap shadow map for omni lights. Slower but better quality than " "dual paraboloid." msgstr "对全向光使用立方体贴图阴影贴图。比双抛物面更慢但质量更好。" #: doc/classes/VisualServer.xml msgid "Use more detail vertically when computing shadow map." msgstr "在计算阴影贴图时,在垂直方向上使用更多的细节。" #: doc/classes/VisualServer.xml msgid "Use more detail horizontally when computing shadow map." msgstr "在计算阴影贴图时,在水平方向上使用更多的细节。" #: doc/classes/VisualServer.xml msgid "Use orthogonal shadow projection for directional light." msgstr "对平行光使用正交阴影投影。" #: doc/classes/VisualServer.xml msgid "Use 2 splits for shadow projection when using directional light." msgstr "使用平行光时,使用 2 个分割进行阴影投影。" #: doc/classes/VisualServer.xml msgid "Use 4 splits for shadow projection when using directional light." msgstr "使用平行光时,使用 4 个分割进行阴影投影。" #: doc/classes/VisualServer.xml msgid "" "Keeps shadows stable as camera moves but has lower effective resolution." msgstr "当相机移动时,保持阴影稳定,但有效分辨率较低。" #: doc/classes/VisualServer.xml msgid "" "Optimize use of shadow maps, increasing the effective resolution. But may " "result in shadows moving or flickering slightly." msgstr "优化阴影贴图的使用,提高有效分辨率。但可能会导致阴影轻微移动或闪烁。" #: doc/classes/VisualServer.xml msgid "Do not update the viewport." msgstr "不要更新视窗。" #: doc/classes/VisualServer.xml msgid "Update the viewport once then set to disabled." msgstr "更新一次视窗,然后设置为禁用。" #: doc/classes/VisualServer.xml msgid "Update the viewport whenever it is visible." msgstr "只要视窗是可见的,就更新视窗。" #: doc/classes/VisualServer.xml msgid "Always update the viewport." msgstr "始终更新视窗。" #: doc/classes/VisualServer.xml msgid "The viewport is always cleared before drawing." msgstr "在绘图之前,视窗总是被清空。" #: doc/classes/VisualServer.xml msgid "The viewport is never cleared before drawing." msgstr "在绘图之前,视窗永远不会被清空。" #: doc/classes/VisualServer.xml msgid "" "The viewport is cleared once, then the clear mode is set to [constant " "VIEWPORT_CLEAR_NEVER]." msgstr "视窗被清除一次,然后清除模式设置为 [constant VIEWPORT_CLEAR_NEVER]。" #: doc/classes/VisualServer.xml msgid "Multisample antialiasing is disabled." msgstr "多重采样抗锯齿被禁用。" #: doc/classes/VisualServer.xml msgid "Multisample antialiasing is set to 2×." msgstr "多重采样抗锯齿设置为 2×。" #: doc/classes/VisualServer.xml msgid "Multisample antialiasing is set to 4×." msgstr "多重采样抗锯齿设置为 4×。" #: doc/classes/VisualServer.xml msgid "Multisample antialiasing is set to 8×." msgstr "多重采样抗锯齿设置为 8×。" #: doc/classes/VisualServer.xml msgid "Multisample antialiasing is set to 16×." msgstr "多采样抗锯齿设置为16×。" #: doc/classes/VisualServer.xml msgid "" "Multisample antialiasing is set to 2× on external texture. Special mode for " "GLES2 Android VR (Oculus Quest and Go)." msgstr "" "多重采样抗锯齿设置为外部纹理的2倍。为GLES2 Android VR(Oculus Quest和Go)提供" "的特殊模式。" #: doc/classes/VisualServer.xml msgid "" "Multisample antialiasing is set to 4× on external texture. Special mode for " "GLES2 Android VR (Oculus Quest and Go)." msgstr "" "多重采样抗锯齿在外部纹理上被设置为4倍。为GLES2 Android VR(Oculus Quest和Go)" "提供的特殊模式。" #: doc/classes/VisualServer.xml msgid "The Viewport does not render 3D but samples." msgstr "Viewport 不渲染 3D 内容,但进行采样。" #: doc/classes/VisualServer.xml msgid "The Viewport does not render 3D and does not sample." msgstr "Viewport 不渲染 3D 内容,不进行采样。" #: doc/classes/VisualServer.xml msgid "The Viewport renders 3D with effects." msgstr "Viewport 渲染 3D 内容,带特效。" #: doc/classes/VisualServer.xml msgid "The Viewport renders 3D but without effects." msgstr "Viewport 渲染 3D 内容,不带特效。" #: doc/classes/VisualServer.xml msgid "Number of objects drawn in a single frame." msgstr "在单帧中绘制的对象的数量。" #: doc/classes/VisualServer.xml msgid "Number of vertices drawn in a single frame." msgstr "在单个帧中绘制的顶点数。" #: doc/classes/VisualServer.xml msgid "Number of material changes during this frame." msgstr "此帧期间材质更改的数量。" #: doc/classes/VisualServer.xml msgid "Number of shader changes during this frame." msgstr "这一帧中着色器变化的数量。" #: doc/classes/VisualServer.xml msgid "Number of surface changes during this frame." msgstr "这一帧中表面变化的数量。" #: doc/classes/VisualServer.xml msgid "Number of draw calls during this frame." msgstr "此帧期间的绘制调用数。" #: doc/classes/VisualServer.xml msgid "Number of 2d items drawn this frame." msgstr "此帧所绘制的2d项的数量。" #: doc/classes/VisualServer.xml msgid "Number of 2d draw calls during this frame." msgstr "在这一帧中,2d绘制所调用的数量。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum ViewportRenderInfo] enum." msgstr "代表[enum ViewportRenderInfo]枚举的大小。" #: doc/classes/VisualServer.xml msgid "Debug draw is disabled. Default setting." msgstr "调试绘制被禁用。默认设置。" #: doc/classes/VisualServer.xml msgid "Debug draw sets objects to unshaded." msgstr "调试绘制将对象设置为无阴影。" #: doc/classes/VisualServer.xml msgid "Overwrites clear color to [code](0,0,0,0)[/code]." msgstr "将清除颜色覆盖为[code](0,0,0,0)[/code]。" #: doc/classes/VisualServer.xml msgid "Debug draw draws objects in wireframe." msgstr "调试绘制 在线框中绘制对象。" #: doc/classes/VisualServer.xml msgid "Do not use a debug mode." msgstr "不要使用调试模式。" #: doc/classes/VisualServer.xml msgid "Draw all objects as wireframe models." msgstr "以线框模型绘制所有对象。" #: doc/classes/VisualServer.xml msgid "" "Draw all objects in a way that displays how much overdraw is occurring. " "Overdraw occurs when a section of pixels is drawn and shaded and then " "another object covers it up. To optimize a scene, you should reduce overdraw." msgstr "" "以显示有多少过度绘制的方式绘制对象。当一个像素部分被绘制和着色,然后另一个物" "体将其覆盖时,就会发生过度绘制。为了优化一个场景,你应该减少过度绘制。" #: doc/classes/VisualServer.xml msgid "" "Draw all objects without shading. Equivalent to setting all objects shaders " "to [code]unshaded[/code]." msgstr "" "绘制没有阴影的所有物体。相当于将所有物体的着色器设置为[code]unshaded[/code]。" #: doc/classes/VisualServer.xml msgid "The instance does not have a type." msgstr "实例没有类型。" #: doc/classes/VisualServer.xml msgid "The instance is a mesh." msgstr "该实例是一个网格。" #: doc/classes/VisualServer.xml msgid "The instance is a multimesh." msgstr "该实例是一个多网格。" #: doc/classes/VisualServer.xml msgid "The instance is an immediate geometry." msgstr "该实例是一个即时几何图形。" #: doc/classes/VisualServer.xml msgid "The instance is a particle emitter." msgstr "该实例是一个粒子发射器。" #: doc/classes/VisualServer.xml msgid "The instance is a light." msgstr "该实例是一个灯。" #: doc/classes/VisualServer.xml msgid "The instance is a reflection probe." msgstr "该实例是一个反射探针。" #: doc/classes/VisualServer.xml msgid "The instance is a GI probe." msgstr "该实例是一个GI探针。" #: doc/classes/VisualServer.xml msgid "The instance is a lightmap capture." msgstr "该实例是一个光照贴图捕获。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum InstanceType] enum." msgstr "代表[enum InstanceType]枚举的大小。" #: doc/classes/VisualServer.xml msgid "" "A combination of the flags of geometry instances (mesh, multimesh, immediate " "and particles)." msgstr "几何体实例(网格、多网格、即时和粒子)的标志的组合。" #: doc/classes/VisualServer.xml msgid "Allows the instance to be used in baked lighting." msgstr "允许在烘焙照明中使用实例。" #: doc/classes/VisualServer.xml msgid "When set, manually requests to draw geometry on next frame." msgstr "当设置时,手动请求在下一帧绘制几何图形。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum InstanceFlags] enum." msgstr "代表[enum InstanceFlags]枚举的大小。" #: doc/classes/VisualServer.xml msgid "Disable shadows from this instance." msgstr "禁用这个实例的阴影。" #: doc/classes/VisualServer.xml msgid "Cast shadows from this instance." msgstr "从此实例投下阴影。" #: doc/classes/VisualServer.xml msgid "" "Disable backface culling when rendering the shadow of the object. This is " "slightly slower but may result in more correct shadows." msgstr "" "在渲染对象的阴影时禁用背面剔除。这会稍微慢一些,但可能会产生更正确的阴影。" #: doc/classes/VisualServer.xml msgid "" "Only render the shadows from the object. The object itself will not be drawn." msgstr "仅渲染对象的阴影。对象本身不会被绘制。" #: doc/classes/VisualServer.xml msgid "The nine patch gets stretched where needed." msgstr "九宫格在需要的地方被拉伸。" #: doc/classes/VisualServer.xml msgid "The nine patch gets filled with tiles where needed." msgstr "九宫格在需要的地方填充瓷砖。" #: doc/classes/VisualServer.xml msgid "" "The nine patch gets filled with tiles where needed and stretches them a bit " "if needed." msgstr "九宫格在需要的地方填充瓷砖,并在需要时将它们拉伸一点。" #: doc/classes/VisualServer.xml msgid "Adds light color additive to the canvas." msgstr "向画布添加浅色。" #: doc/classes/VisualServer.xml msgid "Adds light color subtractive to the canvas." msgstr "从画布中减去浅色。" #: doc/classes/VisualServer.xml msgid "The light adds color depending on transparency." msgstr "灯光根据透明度增加颜色。" #: doc/classes/VisualServer.xml msgid "The light adds color depending on mask." msgstr "灯光根据遮罩增加颜色。" #: doc/classes/VisualServer.xml msgid "Do not apply a filter to canvas light shadows." msgstr "不要对画布上的光影应用滤镜。" #: doc/classes/VisualServer.xml msgid "Use PCF3 filtering to filter canvas light shadows." msgstr "使用PCF3过滤法来过滤画布的光影。" #: doc/classes/VisualServer.xml msgid "Use PCF5 filtering to filter canvas light shadows." msgstr "使用PCF5过滤法来过滤画布的光影。" #: doc/classes/VisualServer.xml msgid "Use PCF7 filtering to filter canvas light shadows." msgstr "使用PCF7过滤法来过滤画布的光影。" #: doc/classes/VisualServer.xml msgid "Use PCF9 filtering to filter canvas light shadows." msgstr "使用PCF9过滤法来过滤画布的光影。" #: doc/classes/VisualServer.xml msgid "Use PCF13 filtering to filter canvas light shadows." msgstr "使用PCF13过滤法来过滤画布的光影。" #: doc/classes/VisualServer.xml msgid "Culling of the canvas occluder is disabled." msgstr "禁用画布遮挡物的剔除。" #: doc/classes/VisualServer.xml msgid "Culling of the canvas occluder is clockwise." msgstr "画布遮挡器的剔除是顺时针的。" #: doc/classes/VisualServer.xml msgid "Culling of the canvas occluder is counterclockwise." msgstr "画布遮挡物的剔除是逆时针的。" #: doc/classes/VisualServer.xml msgid "The amount of objects in the frame." msgstr "框架中的对象数量。" #: doc/classes/VisualServer.xml msgid "The amount of vertices in the frame." msgstr "框架中顶点的数量。" #: doc/classes/VisualServer.xml msgid "The amount of modified materials in the frame." msgstr "框架中修改材质的数量。" #: doc/classes/VisualServer.xml msgid "The amount of shader rebinds in the frame." msgstr "帧中重新绑定的着色器数量。" #: doc/classes/VisualServer.xml msgid "The amount of surface changes in the frame." msgstr "帧中的表面更改量。" #: doc/classes/VisualServer.xml msgid "The amount of draw calls in frame." msgstr "帧中绘制调用的数量。" #: doc/classes/VisualServer.xml msgid "The amount of 2d items in the frame." msgstr "帧中2d项的数量。" #: doc/classes/VisualServer.xml msgid "The amount of 2d draw calls in frame." msgstr "帧中2d绘制调用数量。" #: doc/classes/VisualServer.xml msgid "Hardware supports shaders. This enum is currently unused in Godot 3.x." msgstr "硬件支持着色器。这个枚举目前在Godot 3.x中没有使用。" #: doc/classes/VisualServer.xml msgid "" "Hardware supports multithreading. This enum is currently unused in Godot 3.x." msgstr "硬件支持多线程。这个枚举目前在Godot 3.x中没有使用。" #: doc/classes/VisualServer.xml msgid "Use [Transform2D] to store MultiMesh transform." msgstr "使用 [Transform2D] 存储 MultiMesh 变换。" #: doc/classes/VisualServer.xml msgid "Use [Transform] to store MultiMesh transform." msgstr "使用 [Transform] 存储 MultiMesh 变换。" #: doc/classes/VisualServer.xml msgid "MultiMesh does not use per-instance color." msgstr "MultiMesh 不使用每个实例的颜色。" #: doc/classes/VisualServer.xml msgid "" "MultiMesh color uses 8 bits per component. This packs the color into a " "single float." msgstr "MultiMesh 颜色使用每个分量 8 位。这将颜色打包成一个浮点数。" #: doc/classes/VisualServer.xml msgid "MultiMesh color uses a float per channel." msgstr "MultiMesh 颜色为每个通道使用浮点数。" #: doc/classes/VisualServer.xml msgid "MultiMesh does not use custom data." msgstr "MultiMesh 不使用自定义数据。" #: doc/classes/VisualServer.xml msgid "" "MultiMesh custom data uses 8 bits per component. This packs the 4-component " "custom data into a single float." msgstr "" "MultiMesh 自定义数据每个分量使用 8 位。这将 4 个分量的自定义数据打包到一个浮" "点数中。" #: doc/classes/VisualServer.xml msgid "MultiMesh custom data uses a float per component." msgstr "MultiMesh 自定义数据为每个分量使用浮点数。" #: doc/classes/VisualServer.xml msgid "Reflection probe will update reflections once and then stop." msgstr "反射探针将更新一次反射,然后停止。" #: doc/classes/VisualServer.xml msgid "" "Reflection probe will update each frame. This mode is necessary to capture " "moving objects." msgstr "反射探针将每帧更新。这种模式对于捕捉移动物体是必要的。" #: doc/classes/VisualServer.xml msgid "Draw particles in the order that they appear in the particles array." msgstr "按照粒子数组中出现的顺序绘制粒子。" #: doc/classes/VisualServer.xml msgid "Sort particles based on their lifetime." msgstr "根据粒子的寿命对其进行分类。" #: doc/classes/VisualServer.xml msgid "Sort particles based on their distance to the camera." msgstr "根据粒子与相机的距离对其进行排序。" #: doc/classes/VisualServer.xml msgid "Use the clear color as background." msgstr "用透明的颜色作为背景。" #: doc/classes/VisualServer.xml msgid "Use a specified color as the background." msgstr "使用指定的颜色作为背景。" #: doc/classes/VisualServer.xml msgid "Use a sky resource for the background." msgstr "使用天空资源作为背景。" #: doc/classes/VisualServer.xml msgid "" "Use a custom color for background, but use a sky for shading and reflections." msgstr "使用自定义颜色作为背景,但使用天空作为阴影和反射。" #: doc/classes/VisualServer.xml msgid "" "Use a specified canvas layer as the background. This can be useful for " "instantiating a 2D scene in a 3D world." msgstr "" "使用一个指定的画布层作为背景。这对在三维世界中实例化一个二维场景很有用。" #: doc/classes/VisualServer.xml msgid "" "Do not clear the background, use whatever was rendered last frame as the " "background." msgstr "不要清除背景,使用上一帧渲染的东西作为背景。" #: doc/classes/VisualServer.xml msgid "Represents the size of the [enum EnvironmentBG] enum." msgstr "代表 [enum EnvironmentBG] 枚举的大小。" #: doc/classes/VisualServer.xml msgid "Use lowest blur quality. Fastest, but may look bad." msgstr "使用最低的模糊质量。最快,但可能看起来不好。" #: doc/classes/VisualServer.xml msgid "Use medium blur quality." msgstr "使用中等模糊质量。" #: doc/classes/VisualServer.xml msgid "Used highest blur quality. Looks the best, but is the slowest." msgstr "使用最高的模糊质量。看起来最好,但速度最慢。" #: doc/classes/VisualServer.xml msgid "Add the effect of the glow on top of the scene." msgstr "在场景的顶部添加辉光的效果。" #: doc/classes/VisualServer.xml msgid "" "Blends the glow effect with the screen. Does not get as bright as additive." msgstr "将辉光效果与屏幕相融合。不像添加物那样明亮。" #: doc/classes/VisualServer.xml msgid "Produces a subtle color disturbance around objects." msgstr "在物体周围产生微妙的颜色扰动。" #: doc/classes/VisualServer.xml msgid "Shows the glow effect by itself without the underlying scene." msgstr "在没有底层场景的情况下,单独显示辉光效果。" #: doc/classes/VisualServer.xml msgid "" "Output color as they came in. This can cause bright lighting to look blown " "out, with noticeable clipping in the output colors." msgstr "" "按照输入原样输出颜色。较亮的光照会导致过曝、输出的颜色中会有可见的截断。" #: doc/classes/VisualServer.xml msgid "" "Use the Reinhard tonemapper. Performs a variation on rendered pixels' colors " "by this formula: [code]color = color / (1 + color)[/code]. This avoids " "clipping bright highlights, but the resulting image can look a bit dull." msgstr "" "使用 Reinhard 色调映射器。对渲染后的像素颜色进行调整,使用的是这个公式:" "[code]color = color / (1 + color)[/code]。可以避免对高光的截断,但最终的图像" "可能看上去有些寡淡。" #: doc/classes/VisualServer.xml msgid "" "Use the filmic tonemapper. This avoids clipping bright highlights, with a " "resulting image that usually looks more vivid than [constant " "ENV_TONE_MAPPER_REINHARD]." msgstr "" "使用电影级色调映射器。可以避免对高光的截断,最终的图像一般比 [constant " "ENV_TONE_MAPPER_REINHARD] 看上去更鲜艳。" #: doc/classes/VisualServer.xml msgid "" "Use the legacy Godot version of the Academy Color Encoding System " "tonemapper. Unlike [constant ENV_TONE_MAPPER_ACES_FITTED], this version of " "ACES does not handle bright lighting in a physically accurate way. ACES " "typically has a more contrasted output compared to [constant " "ENV_TONE_MAPPER_REINHARD] and [constant ENV_TONE_MAPPER_FILMIC].\n" "[b]Note:[/b] This tonemapping operator will be removed in Godot 4.0 in favor " "of the more accurate [constant ENV_TONE_MAPPER_ACES_FITTED]." msgstr "" "使用旧有的 Godot 版本的学院色彩编码系统(Academy Color Encoding System)色调" "映射器。与 [constant ENV_TONE_MAPPER_ACES_FITTED] 不同,这个版本的 ACES 对较" "亮的光照的处理从物理角度看并不精确。ACES 的输出在对比度方面通常比 [constant " "ENV_TONE_MAPPER_REINHARD] 和 [constant ENV_TONE_MAPPER_FILMIC] 更高。\n" "[b]注意:[/b]Godot 4.0 中会移除这个色调映射运算子,使用更精确的 [constant " "ENV_TONE_MAPPER_ACES_FITTED]。" #: doc/classes/VisualServer.xml msgid "" "Use the Academy Color Encoding System tonemapper. ACES is slightly more " "expensive than other options, but it handles bright lighting in a more " "realistic fashion by desaturating it as it becomes brighter. ACES typically " "has a more contrasted output compared to [constant ENV_TONE_MAPPER_REINHARD] " "and [constant ENV_TONE_MAPPER_FILMIC]." msgstr "" "使用学院色彩编码系统(Academy Color Encoding System)色调映射器。与其他选项相" "比,ACES 的消耗略高,但对于较亮的光照的处理更真实,越亮饱和度越低。ACES 的输" "出在对比度方面通常比 [constant ENV_TONE_MAPPER_REINHARD] 和 [constant " "ENV_TONE_MAPPER_FILMIC] 更高。" #: doc/classes/VisualServer.xml msgid "Lowest quality of screen space ambient occlusion." msgstr "最低的屏幕空间环境遮挡质量。" #: doc/classes/VisualServer.xml msgid "Medium quality screen space ambient occlusion." msgstr "中等质量的屏幕空间环境遮挡。" #: doc/classes/VisualServer.xml msgid "Highest quality screen space ambient occlusion." msgstr "最高质量的屏幕空间环境遮挡。" #: doc/classes/VisualServer.xml msgid "Disables the blur set for SSAO. Will make SSAO look noisier." msgstr "禁用 SSAO 的模糊设置。会使 SSAO 看起来噪点更多。" #: doc/classes/VisualServer.xml msgid "Perform a 1x1 blur on the SSAO output." msgstr "对 SSAO 输出执行 1x1 模糊。" #: doc/classes/VisualServer.xml msgid "Performs a 2x2 blur on the SSAO output." msgstr "对 SSAO 输出执行 2x2 模糊。" #: doc/classes/VisualServer.xml msgid "Performs a 3x3 blur on the SSAO output. Use this for smoothest SSAO." msgstr "对SSAO输出执行3x3模糊。使用它可以获得最平滑的SSAO。" #: doc/classes/VisualServer.xml msgid "" "Used to query for any changes that request a redraw, whatever the priority." msgstr "用于查询任何要求重绘的修改,无论优先级。" #: doc/classes/VisualServer.xml msgid "" "Registered changes which have low priority can be optionally prevented from " "causing editor redraws. Examples might include dynamic shaders (typically " "using the [code]TIME[/code] built-in)." msgstr "" "注册为低优先级的修改,可以被屏蔽防止造成编辑器重绘。例如动态着色器(一般会使" "用 [code]TIME[/code] 内置变量)。" #: doc/classes/VisualServer.xml msgid "Registered changes which can cause a redraw default to high priority." msgstr "注册为高优先级的修改,会引起重绘。" #: doc/classes/VisualShader.xml msgid "A custom shader program with a visual editor." msgstr "带有可视化编辑器的自定义着色器程序。" #: doc/classes/VisualShader.xml msgid "" "This class allows you to define a custom shader program that can be used for " "various materials to render objects.\n" "The visual shader editor creates the shader." msgstr "" "此类允许你自定义着色器程序,可以用于各种材质来渲染对象。\n" "可视化着色器编辑器会创建着色器。" #: doc/classes/VisualShader.xml msgid "Adds the specified node to the shader." msgstr "将指定节点添加到着色器中。" #: doc/classes/VisualShader.xml msgid "" "Returns [code]true[/code] if the specified nodes and ports can be connected " "together." msgstr "如果指定节点和端口可以连接在一起,则返回 [code]true[/code]。" #: doc/classes/VisualShader.xml msgid "Connects the specified nodes and ports." msgstr "连接指定的节点和端口。" #: doc/classes/VisualShader.xml msgid "" "Connects the specified nodes and ports, even if they can't be connected. " "Such connection is invalid and will not function properly." msgstr "" "连接指定的节点和端口,即使它们无法连接。这样的连接是无效的,将不能正常工作。" #: doc/classes/VisualShader.xml msgid "" "Returns the shader node instance with specified [code]type[/code] and " "[code]id[/code]." msgstr "返回具有指定[code]type[/code]和[code]id[/code]的着色器节点实例。" #: doc/classes/VisualShader.xml msgid "Returns the list of connected nodes with the specified type." msgstr "返回具有指定类型的连接节点的列表。" #: doc/classes/VisualShader.xml msgid "Returns the list of all nodes in the shader with the specified type." msgstr "返回着色器中具有指定类型的所有节点的列表。" #: doc/classes/VisualShader.xml msgid "Returns the position of the specified node within the shader graph." msgstr "返回指定节点在着色器图中的位置。" #: doc/classes/VisualShader.xml msgid "" "Returns [code]true[/code] if the specified node and port connection exist." msgstr "如果指定的节点和端口连接存在,返回 [code]true[/code]。" #: doc/classes/VisualShader.xml msgid "Removes the specified node from the shader." msgstr "从着色器中删除指定的节点。" #: doc/classes/VisualShader.xml msgid "Sets the mode of this shader." msgstr "设置该着色器的模式。" #: doc/classes/VisualShader.xml msgid "Sets the position of the specified node." msgstr "设置指定节点的位置。" #: doc/classes/VisualShader.xml msgid "The offset vector of the whole graph." msgstr "整个图的偏移向量。" #: doc/classes/VisualShader.xml msgid "A vertex shader, operating on vertices." msgstr "顶点着色器,对顶点进行操作。" #: doc/classes/VisualShader.xml msgid "A fragment shader, operating on fragments (pixels)." msgstr "片段着色器,对片段(像素)进行操作。" #: doc/classes/VisualShader.xml msgid "A shader for light calculations." msgstr "用于光线计算的着色器。" #: doc/classes/VisualShader.xml msgid "Represents the size of the [enum Type] enum." msgstr "表示 [enum Type] 枚举的大小。" #: doc/classes/VisualShaderNode.xml msgid "Base class for nodes in a visual shader graph." msgstr "可视化着色器图中节点的基类。" #: doc/classes/VisualShaderNode.xml msgid "" "Visual shader graphs consist of various nodes. Each node in the graph is a " "separate object and they are represented as a rectangular boxes with title " "and a set of properties. Each node has also connection ports that allow to " "connect it to another nodes and control the flow of the shader." msgstr "" "可视化着色器图由各种节点组成。图中的每个节点都是一个独立的对象,它们被表示为" "带有标题和一系列属性的矩形框。每个节点都有连接端口,可以将其连接到另一个节点" "并控制着色器的流程。" #: doc/classes/VisualShaderNode.xml msgid "" "Returns an [Array] containing default values for all of the input ports of " "the node in the form [code][index0, value0, index1, value1, ...][/code]." msgstr "" "返回一个包含节点所有输入端口默认值的[Array],形式为[code][index0, value0, " "index1, value1, ...][/code]。" #: doc/classes/VisualShaderNode.xml msgid "Returns the default value of the input [code]port[/code]." msgstr "返回输入[code]port[/code]的默认值。" #: doc/classes/VisualShaderNode.xml msgid "" "Sets the default input ports values using an [Array] of the form [code]" "[index0, value0, index1, value1, ...][/code]. For example: [code][0, " "Vector3(0, 0, 0), 1, Vector3(0, 0, 0)][/code]." msgstr "" "使用[code][index0, value0, index1, value1, ...][/code]形式的[Array]设置默认输" "入端口值。例如: [code][0, Vector3(0, 0, 0), 1, Vector3(0, 0, 0)][/code]。" #: doc/classes/VisualShaderNode.xml msgid "Sets the default value for the selected input [code]port[/code]." msgstr "设置所选输入[code]port[/code]的默认值。" #: doc/classes/VisualShaderNode.xml msgid "" "Sets the output port index which will be showed for preview. If set to " "[code]-1[/code] no port will be open for preview." msgstr "" "设置将被显示为预览的输出端口索引。如果设置为[code]-1[/code],则没有端口会被打" "开进行预览。" #: doc/classes/VisualShaderNode.xml msgid "" "Emitted when the node requests an editor refresh. Currently called only in " "setter of [member VisualShaderNodeTexture.source], " "[VisualShaderNodeTexture], and [VisualShaderNodeCubeMap] (and their " "derivatives)." msgstr "" "当节点请求刷新编辑器时触发。目前只在[member VisualShaderNodeTexture.source]、" "[VisualShaderNodeTexture]和[VisualShaderNodeCubeMap]及其派生对象的setter中调" "用。" #: doc/classes/VisualShaderNode.xml msgid "" "Floating-point scalar. Translated to [code]float[/code] type in shader code." msgstr "浮点标量。在着色器代码中被转换成[code]float[/code]类型。" #: doc/classes/VisualShaderNode.xml msgid "" "3D vector of floating-point values. Translated to [code]vec3[/code] type in " "shader code." msgstr "浮点值的 3D 向量。在着色器代码中转换为 [code]vec3[/code] 类型。" #: doc/classes/VisualShaderNode.xml msgid "Boolean type. Translated to [code]bool[/code] type in shader code." msgstr "布尔类型。在着色器代码中转换为 [code]bool[/code] 类型。" #: doc/classes/VisualShaderNode.xml msgid "Transform type. Translated to [code]mat4[/code] type in shader code." msgstr "变换类型。在着色器代码中转换为 [code]mat4[/code] 类型。" #: doc/classes/VisualShaderNode.xml msgid "" "Sampler type. Translated to reference of sampler uniform in shader code. Can " "only be used for input ports in non-uniform nodes." msgstr "" "采样器类型。转换为着色器代码中的采样器uniform引用。只能用于non-uniform节点中" "的输入端口。" #: doc/classes/VisualShaderNode.xml msgid "Represents the size of the [enum PortType] enum." msgstr "表示[enum PortType]枚举的大小。" #: doc/classes/VisualShaderNodeBooleanConstant.xml msgid "A boolean constant to be used within the visual shader graph." msgstr "在可视化着色器图中使用的布尔常量。" #: doc/classes/VisualShaderNodeBooleanConstant.xml msgid "" "Has only one output port and no inputs.\n" "Translated to [code]bool[/code] in the shader language." msgstr "" "只有一个输出端口,没有输入。\n" "在着色器语言中被转换成[code]bool[/code]。" #: doc/classes/VisualShaderNodeBooleanConstant.xml msgid "A boolean constant which represents a state of this node." msgstr "一个布尔常量,表示该节点的状态。" #: doc/classes/VisualShaderNodeBooleanUniform.xml msgid "A boolean uniform to be used within the visual shader graph." msgstr "一个在可视化着色器图中使用的布尔uniform。" #: doc/classes/VisualShaderNodeBooleanUniform.xml msgid "Translated to [code]uniform bool[/code] in the shader language." msgstr "在着色器语言中被转换成[code]uniform bool[/code]。" #: doc/classes/VisualShaderNodeBooleanUniform.xml #: doc/classes/VisualShaderNodeColorUniform.xml #: doc/classes/VisualShaderNodeScalarUniform.xml #: doc/classes/VisualShaderNodeTransformUniform.xml #: doc/classes/VisualShaderNodeVec3Uniform.xml msgid "A default value to be assigned within the shader." msgstr "该着色器内部分配的默认值。" #: doc/classes/VisualShaderNodeBooleanUniform.xml #: doc/classes/VisualShaderNodeColorUniform.xml #: doc/classes/VisualShaderNodeScalarUniform.xml #: doc/classes/VisualShaderNodeTransformUniform.xml #: doc/classes/VisualShaderNodeVec3Uniform.xml msgid "Enables usage of the [member default_value]." msgstr "启用 [member default_value]。" #: doc/classes/VisualShaderNodeColorConstant.xml msgid "A [Color] constant to be used within the visual shader graph." msgstr "一个[Color]常量,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeColorConstant.xml msgid "" "Has two output ports representing RGB and alpha channels of [Color].\n" "Translated to [code]vec3 rgb[/code] and [code]float alpha[/code] in the " "shader language." msgstr "" "有两个输出端口,表示 [Color] 的 RGB 和 Alpha 通道。\n" "在着色器语言中被转换成 [code]vec3 rgb[/code] 和 [code]float alpha[/code]。" #: doc/classes/VisualShaderNodeColorConstant.xml msgid "A [Color] constant which represents a state of this node." msgstr "一个[Color]常量,表示这个节点的状态。" #: doc/classes/VisualShaderNodeColorFunc.xml msgid "A [Color] function to be used within the visual shader graph." msgstr "一个[Color]函数,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeColorFunc.xml msgid "" "Accept a [Color] to the input port and transform it according to [member " "function]." msgstr "接受一个 [Color] 到输入端口,并根据 [member function] 对其进行转换。" #: doc/classes/VisualShaderNodeColorFunc.xml msgid "" "A function to be applied to the input color. See [enum Function] for options." msgstr "要应用于输入颜色的函数。参阅[enum Function]的选项。" #: doc/classes/VisualShaderNodeColorFunc.xml msgid "" "Converts the color to grayscale using the following formula:\n" "[codeblock]\n" "vec3 c = input;\n" "float max1 = max(c.r, c.g);\n" "float max2 = max(max1, c.b);\n" "float max3 = max(max1, max2);\n" "return vec3(max3, max3, max3);\n" "[/codeblock]" msgstr "" "使用以下公式将颜色转换为灰度。\n" "[codeblock]\n" "vec3 c = input;\n" "float max1 = max(c.r, c.g);\n" "float max2 = max(max1, c.b);\n" "float max3 = max(max1, max2);\n" "return vec3(max3, max3, max3);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorFunc.xml msgid "" "Applies sepia tone effect using the following formula:\n" "[codeblock]\n" "vec3 c = input;\n" "float r = (c.r * 0.393) + (c.g * 0.769) + (c.b * 0.189);\n" "float g = (c.r * 0.349) + (c.g * 0.686) + (c.b * 0.168);\n" "float b = (c.r * 0.272) + (c.g * 0.534) + (c.b * 0.131);\n" "return vec3(r, g, b);\n" "[/codeblock]" msgstr "" "使用以下公式应用棕褐色调效果。\n" "[codeblock]\n" "vec3 c = input;\n" "float r = (c.r * 0.393) + (c.g * 0.769) + (c.b * 0.189);\n" "float g = (c.r * 0.349) + (c.g * 0.686) + (c.b * 0.168);\n" "float b = (c.r * 0.272) + (c.g * 0.534) + (c.b * 0.131);\n" "return vec3(r, g, b);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "A [Color] operator to be used within the visual shader graph." msgstr "在可视化着色器图中使用的[Color]运算符。" #: doc/classes/VisualShaderNodeColorOp.xml msgid "Applies [member operator] to two color inputs." msgstr "将 [member operator] 应用于两个颜色输入。" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "An operator to be applied to the inputs. See [enum Operator] for options." msgstr "要应用于输入的运算符。参阅[enum Operator]的选项。" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a screen effect with the following formula:\n" "[codeblock]\n" "result = vec3(1.0) - (vec3(1.0) - a) * (vec3(1.0) - b);\n" "[/codeblock]" msgstr "" "用以下公式产生屏幕效果。\n" "[codeblock]\n" "result = vec3(1.0) - (vec3(1.0) - a) * (vec3(1.0) - b);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a difference effect with the following formula:\n" "[codeblock]\n" "result = abs(a - b);\n" "[/codeblock]" msgstr "" "用下面的公式产生差异效果。\n" "[codeblock]\n" "result = abs(a - b);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a darken effect with the following formula:\n" "[codeblock]\n" "result = min(a, b);\n" "[/codeblock]" msgstr "" "用以下公式产生变暗的效果。\n" "[codeblock]\n" "result = min(a, b);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a lighten effect with the following formula:\n" "[codeblock]\n" "result = max(a, b);\n" "[/codeblock]" msgstr "" "用以下公式产生减淡效果。\n" "[codeblock]\n" "result = max(a, b);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce an overlay effect with the following formula:\n" "[codeblock]\n" "for (int i = 0; i < 3; i++) {\n" " float base = a[i];\n" " float blend = b[i];\n" " if (base < 0.5) {\n" " result[i] = 2.0 * base * blend;\n" " } else {\n" " result[i] = 1.0 - 2.0 * (1.0 - blend) * (1.0 - base);\n" " }\n" "}\n" "[/codeblock]" msgstr "" "用以下公式产生叠加效果。\n" "[codeblock]\n" "for (int i = 0; i < 3; i++) {\n" " float base = a[i];\n" " float blend = b[i];\n" " if (base < 0.5) {\n" " result[i] = 2.0 * base * blend;\n" " } else {\n" " result[i] = 1.0 - 2.0 * (1.0 - blend) * (1.0 - base);\n" " }\n" "}\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a dodge effect with the following formula:\n" "[codeblock]\n" "result = a / (vec3(1.0) - b);\n" "[/codeblock]" msgstr "" "用以下公式产生闪避效果。\n" "[codeblock]\n" "result = a / (vec3(1.0) - b);\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a burn effect with the following formula:\n" "[codeblock]\n" "result = vec3(1.0) - (vec3(1.0) - a) / b;\n" "[/codeblock]" msgstr "" "用以下公式产生燃烧效果。\n" "[codeblock]\n" "result = vec3(1.0) - (vec3(1.0) - a) / b;\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a soft light effect with the following formula:\n" "[codeblock]\n" "for (int i = 0; i < 3; i++) {\n" " float base = a[i];\n" " float blend = b[i];\n" " if (base < 0.5) {\n" " result[i] = base * (blend + 0.5);\n" " } else {\n" " result[i] = 1.0 - (1.0 - base) * (1.0 - (blend - 0.5));\n" " }\n" "}\n" "[/codeblock]" msgstr "" "用以下公式产生柔和的光线效果。\n" "[codeblock]\n" "for (int i = 0; i < 3; i++) {\n" " float base = a[i];\n" " float blend = b[i];\n" " if (base < 0.5) {\n" " result[i] = base * (blend + 0.5);\n" " } else {\n" " result[i] = 1.0 - (1.0 - base) * (1.0 - (blend - 0.5));\n" " }\n" "}\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorOp.xml msgid "" "Produce a hard light effect with the following formula:\n" "[codeblock]\n" "for (int i = 0; i < 3; i++) {\n" " float base = a[i];\n" " float blend = b[i];\n" " if (base < 0.5) {\n" " result[i] = base * (2.0 * blend);\n" " } else {\n" " result[i] = 1.0 - (1.0 - base) * (1.0 - 2.0 * (blend - 0.5));\n" " }\n" "}\n" "[/codeblock]" msgstr "" "用下面的公式产生一个硬光效果。\n" "[codeblock]\n" "for (int i = 0; i < 3; i++) {\n" " float base = a[i];\n" " float blend = b[i];\n" " if (base < 0.5) {\n" " result[i] = base * (2.0 * blend);\n" " } else {\n" " result[i] = 1.0 - (1.0 - base) * (1.0 - 2.0 * (blend - 0.5));\n" " }\n" "}\n" "[/codeblock]" #: doc/classes/VisualShaderNodeColorUniform.xml msgid "A [Color] uniform to be used within the visual shader graph." msgstr "在可视化着色器图中使用的一个[Color]uniform。" #: doc/classes/VisualShaderNodeColorUniform.xml msgid "Translated to [code]uniform vec4[/code] in the shader language." msgstr "在着色器语言中被转换成[code]uniform vec4[/code]。" #: doc/classes/VisualShaderNodeCompare.xml msgid "A comparison function for common types within the visual shader graph." msgstr "可视化着色器图内常见类型的比较函数。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "Compares [code]a[/code] and [code]b[/code] of [member type] by [member " "function]. Returns a boolean scalar. Translates to [code]if[/code] " "instruction in shader code." msgstr "" "通过 [member function] 比较[code]a[/code]和[code]b[/code]的 [member type]。返" "回一个布尔标量。在着色器代码中转换成[code]if[/code]指令。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "Extra condition which is applied if [member type] is set to [constant " "CTYPE_VECTOR]." msgstr "如果 [member type] 被设置为[constant CTYPE_VECTOR],则适用额外条件。" #: doc/classes/VisualShaderNodeCompare.xml msgid "A comparison function. See [enum Function] for options." msgstr "比较函数。参阅[enum Function]的选项。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "The type to be used in the comparison. See [enum ComparisonType] for options." msgstr "在比较中要使用的类型。参阅[enum ComparisonType]的选项。" #: doc/classes/VisualShaderNodeCompare.xml msgid "A floating-point scalar." msgstr "浮点标量。" #: doc/classes/VisualShaderNodeCompare.xml msgid "A 3D vector type." msgstr "3D向量类型。" #: doc/classes/VisualShaderNodeCompare.xml msgid "A boolean type." msgstr "布林类型。" #: doc/classes/VisualShaderNodeCompare.xml msgid "A transform ([code]mat4[/code]) type." msgstr "变换类型,即[code]mat4[/code]。" #: doc/classes/VisualShaderNodeCompare.xml msgid "Comparison for equality ([code]a == b[/code])." msgstr "相等比较,即[code]a == b[/code]。" #: doc/classes/VisualShaderNodeCompare.xml msgid "Comparison for inequality ([code]a != b[/code])." msgstr "不等比较,即[code]a != b[/code]。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "Comparison for greater than ([code]a > b[/code]). Cannot be used if [member " "type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM]." msgstr "" "大于比较,即[code]a > b[/code]。如果 [member type] 设置为 [constant " "CTYPE_BOOLEAN]或 [constant CTYPE_TRANSFORM]则不能使用。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "Comparison for greater than or equal ([code]a >= b[/code]). Cannot be used " "if [member type] set to [constant CTYPE_BOOLEAN] or [constant " "CTYPE_TRANSFORM]." msgstr "" "大于或等于的比较,即[code]a >= b[/code]。如果[member type]设置为 [constant " "CTYPE_BOOLEAN] 或[constant CTYPE_TRANSFORM]则不能使用。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "Comparison for less than ([code]a < b[/code]). Cannot be used if [member " "type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM]." msgstr "" "小于比较,即[code]a < b[/code]。如果 [member type] 设置为[constant " "CTYPE_BOOLEAN]或 [constant CTYPE_TRANSFORM]则不能使用。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "Comparison for less than or equal ([code]a < b[/code]). Cannot be used if " "[member type] set to [constant CTYPE_BOOLEAN] or [constant CTYPE_TRANSFORM]." msgstr "" "小于或等于的比较,即[code]a < b[/code]。如果[member type] 设置为[constant " "CTYPE_BOOLEAN]或[constant CTYPE_TRANSFORM]则不能使用。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "The result will be true if all of component in vector satisfy the comparison " "condition." msgstr "如果向量中的所有分量都满足比较条件,则结果为真。" #: doc/classes/VisualShaderNodeCompare.xml msgid "" "The result will be true if any of component in vector satisfy the comparison " "condition." msgstr "如果向量中的任意分量满足比较条件,则结果为真。" #: doc/classes/VisualShaderNodeCubeMap.xml msgid "A [CubeMap] sampling node to be used within the visual shader graph." msgstr "[CubeMap]采样节点,在可视化着色器图形中使用。" #: doc/classes/VisualShaderNodeCubeMap.xml msgid "" "Translated to [code]texture(cubemap, vec3)[/code] in the shader language. " "Returns a color vector and alpha channel as scalar." msgstr "" "在着色器语言中被转换成 [code]texture(cubemap, vec3)[/code]。返回一个颜色向量" "和 Alpha 通道的标量。" #: doc/classes/VisualShaderNodeCubeMap.xml msgid "" "The [CubeMap] texture to sample when using [constant SOURCE_TEXTURE] as " "[member source]." msgstr "" "当使用[constant SOURCE_TEXTURE]作为 [member source] 时,要采样的[CubeMap]纹" "理。" #: doc/classes/VisualShaderNodeCubeMap.xml msgid "" "Defines which source should be used for the sampling. See [enum Source] for " "options." msgstr "定义采样应该使用哪个源。参阅[enum Source]的选项。" #: doc/classes/VisualShaderNodeCubeMap.xml #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "" "Defines the type of data provided by the source texture. See [enum " "TextureType] for options." msgstr "定义源纹理提供的数据类型。选项参阅[enum TextureType]。" #: doc/classes/VisualShaderNodeCubeMap.xml msgid "" "Use the [CubeMap] set via [member cube_map]. If this is set to [member " "source], the [code]samplerCube[/code] port is ignored." msgstr "" "使用通过[member cube_map]设置的[CubeMap]。如果这被设置为[member source]," "[code]samplerCube[/code]端口就会被忽略。" #: doc/classes/VisualShaderNodeCubeMap.xml msgid "" "Use the [CubeMap] sampler reference passed via the [code]samplerCube[/code] " "port. If this is set to [member source], the [member cube_map] texture is " "ignored." msgstr "" "使用通过[code]samplerCube[/code]端口传递的[CubeMap]采样器引用。如果这被设置为" "[member source],[member cube_map]纹理就会被忽略。" #: doc/classes/VisualShaderNodeCubeMap.xml #: doc/classes/VisualShaderNodeTexture.xml #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "No hints are added to the uniform declaration." msgstr "在uniform声明中未添加提示。" #: doc/classes/VisualShaderNodeCubeMap.xml #: doc/classes/VisualShaderNodeTexture.xml #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "" "Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper " "sRGB to linear conversion." msgstr "" "将[code]hint_albedo[/code]作为提示添加到uniform声明中,以便将sRGB转换为线性。" #: doc/classes/VisualShaderNodeCubeMap.xml #: doc/classes/VisualShaderNodeTexture.xml #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "" "Adds [code]hint_normal[/code] as hint to the uniform declaration, which " "internally converts the texture for proper usage as normal map." msgstr "" "将[code]hint_normal[/code]作为提示添加到uniform声明中,该声明在内部将纹理转换" "为法线贴图。" #: doc/classes/VisualShaderNodeCubeMapUniform.xml msgid "A [CubeMap] uniform node to be used within the visual shader graph." msgstr "[CubeMap] uniform 节点,在可视化着色器图形中使用。" #: doc/classes/VisualShaderNodeCubeMapUniform.xml msgid "" "Translated to [code]uniform samplerCube[/code] in the shader language. The " "output value can be used as port for [VisualShaderNodeCubeMap]." msgstr "" "在着色器语言中被翻译成[code]uniform samplerCube[/code]。其输出值可以作为" "[VisualShaderNodeCubeMap]的端口。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Virtual class to define custom [VisualShaderNode]s for use in the Visual " "Shader Editor." msgstr "" "用于定义自定义 [VisualShaderNode] 的虚类,以便在可视化着色器编辑器中使用。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "By inheriting this class you can create a custom [VisualShader] script addon " "which will be automatically added to the Visual Shader Editor. The " "[VisualShaderNode]'s behavior is defined by overriding the provided virtual " "methods.\n" "In order for the node to be registered as an editor addon, you must use the " "[code]tool[/code] keyword and provide a [code]class_name[/code] for your " "custom script. For example:\n" "[codeblock]\n" "tool\n" "extends VisualShaderNodeCustom\n" "class_name VisualShaderNodeNoise\n" "[/codeblock]" msgstr "" "通过继承这个类,你可以创建一个自定义的[VisualShader]脚本插件,它将被自动添加" "到可视化着色器编辑器中。[VisualShaderNode]的行为是通过重写所提供的虚方法来定" "义的。\n" "为了使节点被注册为编辑器插件,你必须使用[code]tool[/code]关键字,并为自定义脚" "本提供一个[code]class_name[/code]。例如:\n" "[codeblock]\n" "tool\n" "extends VisualShaderNodeCustom\n" "class_name VisualShaderNodeNoise\n" "[/codeblock]" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the category of the associated custom node in " "the Visual Shader Editor's members dialog. The path may look like " "[code]\"MyGame/MyFunctions/Noise\"[/code].\n" "Defining this method is [b]optional[/b]. If not overridden, the node will be " "filed under the \"Custom\" category." msgstr "" "重写此方法,在可视化着色器编辑器的成员对话框中定义相关自定义节点的类别。路径" "可能看起来像 [code]\"MyGame/MyFunctions/Noise\"[/code]这样。\n" "定义这个方法是[b]可选的[/b]。如果未重写,该节点将被归入 \"Custom\" 自定义类" "别。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the actual shader code of the associated " "custom node. The shader code should be returned as a string, which can have " "multiple lines (the [code]\"\"\"[/code] multiline string construct can be " "used for convenience).\n" "The [code]input_vars[/code] and [code]output_vars[/code] arrays contain the " "string names of the various input and output variables, as defined by " "[code]_get_input_*[/code] and [code]_get_output_*[/code] virtual methods in " "this class.\n" "The output ports can be assigned values in the shader code. For example, " "[code]return output_vars[0] + \" = \" + input_vars[0] + \";\"[/code].\n" "You can customize the generated code based on the shader [code]mode[/code] " "(see [enum Shader.Mode]) and/or [code]type[/code] (see [enum VisualShader." "Type]).\n" "Defining this method is [b]required[/b]." msgstr "" "重写此方法来定义相关自定义节点的实际着色器代码。着色器代码应该以字符串的形式" "返回,可以有多行,为了方便,可以使用[code]\"\"[/code]多行字符串结构。\n" "[code]input_vars[/code]和[code]output_vars[/code]数组包含各种输入和输出变量的" "字符串名称,正如本类中[code]_get_input_*[/code]和[code]_get_output_*[/code]虚" "方法所定义的。\n" "输出端口可以在着色器代码中被分配值。例如,[code]return output_vars[0] + \" = " "\" + input_vars[0] + \";\"[/code]。\n" "你可以根据着色器[code]mode[/code](参阅[enum Shader.Mode])和/或[code]type[/" "code](参阅[enum VisualShader.Type])来定制生成的代码。\n" "定义这个方法是[b]required[/b]必须的。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the description of the associated custom node " "in the Visual Shader Editor's members dialog.\n" "Defining this method is [b]optional[/b]." msgstr "" "重写此方法来定义可视化着色器编辑器的成员对话框中的相关自定义节点的描述。\n" "定义这个方法是[b]optional[/b]可选的。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to add shader code on top of the global shader, to " "define your own standard library of reusable methods, varyings, constants, " "uniforms, etc. The shader code should be returned as a string, which can " "have multiple lines (the [code]\"\"\"[/code] multiline string construct can " "be used for convenience).\n" "Be careful with this functionality as it can cause name conflicts with other " "custom nodes, so be sure to give the defined entities unique names.\n" "You can customize the generated code based on the shader [code]mode[/code] " "(see [enum Shader.Mode]).\n" "Defining this method is [b]optional[/b]." msgstr "" "重写此方法,在全局着色器之上添加着色器代码,以定义你自己的可重用方法、变量、" "常量、uniform等的标准库。着色器代码应以字符串的形式返回,可以有多行,为了方" "便,可以使用[code]\"\"[/code]多行字符串结构。\n" "要小心使用这个功能,因为它可能导致与其他自定义节点的名称冲突,所以一定要给定" "义的实体起唯一的名字。\n" "你可以根据着色器[code]mode[/code]来定制生成的代码,参阅[enum Shader.Mode]。\n" "定义这个方法是[b]optional[/b]可选的。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the amount of input ports of the associated " "custom node.\n" "Defining this method is [b]required[/b]. If not overridden, the node has no " "input ports." msgstr "" "重写此方法来定义相关自定义节点的输入端口数量。\n" "定义这个方法是[b]required[/b]必须的。如果没有被重写,节点就没有输入端口。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the names of input ports of the associated " "custom node. The names are used both for the input slots in the editor and " "as identifiers in the shader code, and are passed in the [code]input_vars[/" "code] array in [method _get_code].\n" "Defining this method is [b]optional[/b], but recommended. If not overridden, " "input ports are named as [code]\"in\" + str(port)[/code]." msgstr "" "重写此方法来定义相关自定义节点的输入端口的名称。这些名称既用于编辑器中的输入" "槽,也作为着色器代码中的标识符,并在[method _get_code]中的[code]input_vars[/" "code]数组中传递。\n" "定义这个方法是[b]可选的[/b],但推荐使用。如果没有被重写,输入端口被命名为" "[code]\"in\"+str(port)[/code]。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the returned type of each input port of the " "associated custom node (see [enum VisualShaderNode.PortType] for possible " "types).\n" "Defining this method is [b]optional[/b], but recommended. If not overridden, " "input ports will return the [constant VisualShaderNode.PORT_TYPE_SCALAR] " "type." msgstr "" "重写此方法以定义相关自定义节点的每个输入端口的返回类型,参阅[enum " "VisualShaderNode.PortType]的可能类型。\n" "定义这个方法是[b]可选的[/b],但推荐使用。如果没有被重写,输入端口将返回 " "[constant VisualShaderNode.PORT_TYPE_SCALAR] 类型。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the name of the associated custom node in the " "Visual Shader Editor's members dialog and graph.\n" "Defining this method is [b]optional[/b], but recommended. If not overridden, " "the node will be named as \"Unnamed\"." msgstr "" "重写此方法来定义可视化着色器编辑器的成员对话框和图中的相关自定义节点的名" "称。\n" "定义这个方法是[b]可选的[/b],但推荐使用。如果不重写,节点将被命名为 " "\"Unnamed\"。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the amount of output ports of the associated " "custom node.\n" "Defining this method is [b]required[/b]. If not overridden, the node has no " "output ports." msgstr "" "重写此方法来定义相关自定义节点的输出端口数量。\n" "定义这个方法是[b]必须的[/b]。如果不重写,节点就没有输出端口。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the names of output ports of the associated " "custom node. The names are used both for the output slots in the editor and " "as identifiers in the shader code, and are passed in the [code]output_vars[/" "code] array in [method _get_code].\n" "Defining this method is [b]optional[/b], but recommended. If not overridden, " "output ports are named as [code]\"out\" + str(port)[/code]." msgstr "" "重写此方法来定义相关自定义节点的输出端口的名称。这些名字既用于编辑器中的输出" "槽,也作为着色器代码中的标识符,并在[method _get_code]中的[code]output_vars[/" "code]数组中传递。\n" "定义这个方法是[b]可选的[/b],但推荐使用。如果没有被重写,输出端口被命名为" "[code]\"out\" + str(port)[/code]。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the returned type of each output port of the " "associated custom node (see [enum VisualShaderNode.PortType] for possible " "types).\n" "Defining this method is [b]optional[/b], but recommended. If not overridden, " "output ports will return the [constant VisualShaderNode.PORT_TYPE_SCALAR] " "type." msgstr "" "重写此方法以定义相关自定义节点的每个输出端口的返回类型,参阅[enum " "VisualShaderNode.PortType]的可能类型。\n" "定义这个方法是[b]可选的[/b],但推荐使用。如果没有被重写,输出端口将返回" "[constant VisualShaderNode.PORT_TYPE_SCALAR]类型。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the return icon of the associated custom node " "in the Visual Shader Editor's members dialog.\n" "Defining this method is [b]optional[/b]. If not overridden, no return icon " "is shown." msgstr "" "重写此方法来定义可视化着色器编辑器的成员对话框中相关自定义节点的返回图标。\n" "定义这个方法是[b]可选的[/b]。如果不重写,就不会显示返回图标。" #: doc/classes/VisualShaderNodeCustom.xml msgid "" "Override this method to define the subcategory of the associated custom node " "in the Visual Shader Editor's members dialog.\n" "Defining this method is [b]optional[/b]. If not overridden, the node will be " "filed under the root of the main category (see [method _get_category])." msgstr "" "重写此方法来定义可视化着色器编辑器的成员对话框中相关自定义节点的子类别。\n" "定义这个方法是[b]可选的[/b]。如果不重写,节点将被归入主类别的根下,参阅" "[method _get_category]。" #: doc/classes/VisualShaderNodeDeterminant.xml msgid "" "Calculates the determinant of a [Transform] within the visual shader graph." msgstr "计算可视化着色器图中的[Transform]的行列式。" #: doc/classes/VisualShaderNodeDeterminant.xml msgid "Translates to [code]determinant(x)[/code] in the shader language." msgstr "在着色器语言中翻译成[code]determinant(x)[/code]。" #: doc/classes/VisualShaderNodeDotProduct.xml msgid "Calculates a dot product of two vectors within the visual shader graph." msgstr "计算可视化着色器图中两个向量的点积。" #: doc/classes/VisualShaderNodeDotProduct.xml msgid "Translates to [code]dot(a, b)[/code] in the shader language." msgstr "在着色器语言中转换成[code]dot(a, b)[/code]。" #: doc/classes/VisualShaderNodeExpression.xml msgid "" "A custom visual shader graph expression written in Godot Shading Language." msgstr "用Godot着色语言编写的自定义可视化着色器图形表达式。" #: doc/classes/VisualShaderNodeExpression.xml msgid "" "Custom Godot Shading Language expression, with a custom amount of input and " "output ports.\n" "The provided code is directly injected into the graph's matching shader " "function ([code]vertex[/code], [code]fragment[/code], or [code]light[/" "code]), so it cannot be used to declare functions, varyings, uniforms, or " "global constants. See [VisualShaderNodeGlobalExpression] for such global " "definitions." msgstr "" "自定义Godot着色器语言表达式,有自定义数量的输入和输出端口。\n" "所提供的代码直接注入到图形匹配着色器函数中,即[code]vertex[/code], " "[code]fragment[/code], or [code]light[/code],所以它不能用于声明函数、变体、" "uniforms或全局常量。请参阅[VisualShaderNodeGlobalExpression]以了解此类全局定" "义。" #: doc/classes/VisualShaderNodeExpression.xml msgid "" "An expression in Godot Shading Language, which will be injected at the start " "of the graph's matching shader function ([code]vertex[/code], " "[code]fragment[/code], or [code]light[/code]), and thus cannot be used to " "declare functions, varyings, uniforms, or global constants." msgstr "" "Godot 着色器语言中的表达式,它将被注入到图形匹配的着色器函数([code]vertex[/" "code], [code]fragment[/code], or [code]light[/code])的开头,因此不能用于声明" "函数、varyings、uniforms或全局常量。" #: doc/classes/VisualShaderNodeFaceForward.xml msgid "" "Returns the vector that points in the same direction as a reference vector " "within the visual shader graph." msgstr "返回与可视化着色器图中的参考向量指向相同方向的向量。" #: doc/classes/VisualShaderNodeFaceForward.xml msgid "" "Translates to [code]faceforward(N, I, Nref)[/code] in the shader language. " "The function has three vector parameters: [code]N[/code], the vector to " "orient, [code]I[/code], the incident vector, and [code]Nref[/code], the " "reference vector. If the dot product of [code]I[/code] and [code]Nref[/code] " "is smaller than zero the return value is [code]N[/code]. Otherwise, [code]-" "N[/code] is returned." msgstr "" "在着色器语言中翻译为[code]faceforward(N, I, Nref)[/code]。该函数有三个向量参" "数。[code]N[/code],定向矢量,[code]I[/code],入射矢量,以及[code]Nref[/" "code],参考矢量。如果[code]I[/code]和[code]Nref[/code]的点积小于零,返回值为" "[code]N[/code]。否则,将返回 [code]-N[/code]。" #: doc/classes/VisualShaderNodeFresnel.xml msgid "A Fresnel effect to be used within the visual shader graph." msgstr "在可视化着色器图中使用的菲涅尔效果。" #: doc/classes/VisualShaderNodeFresnel.xml msgid "" "Returns falloff based on the dot product of surface normal and view " "direction of camera (pass associated inputs to it)." msgstr "返回基于表面法线和相机视角方向的点积的衰减,将相关输入传给它。" #: doc/classes/VisualShaderNodeGlobalExpression.xml msgid "" "A custom global visual shader graph expression written in Godot Shading " "Language." msgstr "用Godot着色器语言编写的自定义全局可视化着色器图形表达式。" #: doc/classes/VisualShaderNodeGlobalExpression.xml msgid "" "Custom Godot Shader Language expression, which is placed on top of the " "generated shader. You can place various function definitions inside to call " "later in [VisualShaderNodeExpression]s (which are injected in the main " "shader functions). You can also declare varyings, uniforms and global " "constants." msgstr "" "自定义Godot着色器语言表达式,位于生成的着色器之上。你可以在内部放置各种函数定" "义,以便以后在[VisualShaderNodeExpression]中调用,这些函数被注入到主着色器函" "数中。你还可以声明varyings、uniforms 和全局常量。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Base class for a family of nodes with variable amount of input and output " "ports within the visual shader graph." msgstr "可视化着色器图中具有可变数量的输入和输出端口的系列节点的基类。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Currently, has no direct usage, use the derived classes instead." msgstr "目前,没有直接使用,而用派生类代替。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Adds an input port with the specified [code]type[/code] (see [enum " "VisualShaderNode.PortType]) and [code]name[/code]." msgstr "" "用指定的[code]type[/code]和[code]name[/code]添加一个输入端口,参阅[enum " "VisualShaderNode.PortType]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Adds an output port with the specified [code]type[/code] (see [enum " "VisualShaderNode.PortType]) and [code]name[/code]." msgstr "" "用指定的[code]type[/code]和[code]name[/code]添加一个输出端口,参阅[enum " "VisualShaderNode.PortType]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Removes all previously specified input ports." msgstr "移除所有先前指定的输入端口。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Removes all previously specified output ports." msgstr "移除所有先前指定的输出端口。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns a free input port ID which can be used in [method add_input_port]." msgstr "返回一个空闲的输入端口ID,可以在[method add_input_port]中使用。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns a free output port ID which can be used in [method add_output_port]." msgstr "返回一个空闲的输出端口ID,可以在[method add_output_port]中使用。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns the number of input ports in use. Alternative for [method " "get_free_input_port_id]." msgstr "返回正在使用的输入端口的数量。替代[method get_free_input_port_id]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns a [String] description of the input ports as a colon-separated list " "using the format [code]id,type,name;[/code] (see [method add_input_port])." msgstr "" "返回输入端口的[String]描述,是一个用冒号分隔的列表,格式为[code]id,type,name;" "[/code],参阅[method add_input_port]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns the number of output ports in use. Alternative for [method " "get_free_output_port_id]." msgstr "返回正在使用的输出端口的数量。替代[method get_free_output_port_id]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns a [String] description of the output ports as a colon-separated list " "using the format [code]id,type,name;[/code] (see [method add_output_port])." msgstr "" "返回输出端口的[String]描述,作为一个用冒号分隔的列表,格式为[code]id,type," "name;[/code],参阅[method add_output_port]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Returns [code]true[/code] if the specified input port exists." msgstr "如果指定的输入端口存在,返回 [code]true[/code]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Returns [code]true[/code] if the specified output port exists." msgstr "如果指定的输出端口存在,返回 [code]true[/code]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Returns [code]true[/code] if the specified port name does not override an " "existed port name and is valid within the shader." msgstr "" "如果指定的端口名称没有重写现有的端口名称,并且在着色器中有效,则返回 " "[code]true[/code]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Removes the specified input port." msgstr "移除指定的输入端口。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Removes the specified output port." msgstr "移除指定的输出端口。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Renames the specified input port." msgstr "重命名指定的输入端口。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Sets the specified input port's type (see [enum VisualShaderNode.PortType])." msgstr "设置指定的输入端口的类型,参阅[enum VisualShaderNode.PortType]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Defines all input ports using a [String] formatted as a colon-separated " "list: [code]id,type,name;[/code] (see [method add_input_port])." msgstr "" "使用一个[String]格式的以冒号分隔的列表来定义所有输入端口:[code]id,type,name;" "[/code],参阅[method add_input_port]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "Renames the specified output port." msgstr "重命名指定的输出端口。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Sets the specified output port's type (see [enum VisualShaderNode.PortType])." msgstr "设置指定输出端口的类型,参阅[enum VisualShaderNode.PortType]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "" "Defines all output ports using a [String] formatted as a colon-separated " "list: [code]id,type,name;[/code] (see [method add_output_port])." msgstr "" "使用一个[String]格式的以冒号分隔的列表来定义所有输出端口: [code]id,type,name;" "[/code] ,参阅[method add_output_port]。" #: doc/classes/VisualShaderNodeGroupBase.xml msgid "The size of the node in the visual shader graph." msgstr "可视化着色器图中节点的大小。" #: doc/classes/VisualShaderNodeInput.xml msgid "" "Gives access to input variables (built-ins) available for the shader. See " "the shading reference for the list of available built-ins for each shader " "type (check [code]Tutorials[/code] section for link)." msgstr "" "提供对着色器可用的输入变量(内置)的访问。关于每种着色器类型的可用内置变量列" "表,请参阅着色器参考,即查看[code]Tutorials[/code]教程部分的链接。" #: doc/classes/VisualShaderNodeInput.xml msgid "" "One of the several input constants in lower-case style like: " "\"vertex\"([code]VERTEX[/code]) or \"point_size\"([code]POINT_SIZE[/code])." msgstr "" "小写风格的几个输入常量之一,比如。\"vertex\"([code]VERTEX[/code]) or " "\"point_size\"([code]POINT_SIZE[/code])." #: doc/classes/VisualShaderNodeIs.xml msgid "" "A boolean comparison operator to be used within the visual shader graph." msgstr "布尔比较运算符,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeIs.xml msgid "" "Returns the boolean result of the comparison between [code]INF[/code] or " "[code]NaN[/code] and a scalar parameter." msgstr "" "返回 [code]INF[/code]或[code]NaN[/code]与标量参数之间比较的布尔值结果。" #: doc/classes/VisualShaderNodeIs.xml msgid "The comparison function. See [enum Function] for options." msgstr "比较函数。参阅[enum Function]的选项。" #: doc/classes/VisualShaderNodeIs.xml msgid "Comparison with [code]INF[/code] (Infinity)." msgstr "与 [code]INF[/code](无穷大)比较。" #: doc/classes/VisualShaderNodeIs.xml msgid "" "Comparison with [code]NaN[/code] (Not a Number; denotes invalid numeric " "results, e.g. division by zero)." msgstr "" "与 [code]NaN[/code] 比较(不是一个数字;表示无效的数字结果,如除以 0)。" #: doc/classes/VisualShaderNodeOuterProduct.xml msgid "" "Calculates an outer product of two vectors within the visual shader graph." msgstr "计算可视化着色器图中两个向量的外积。" #: doc/classes/VisualShaderNodeOuterProduct.xml msgid "" "[code]OuterProduct[/code] treats the first parameter [code]c[/code] as a " "column vector (matrix with one column) and the second parameter [code]r[/" "code] as a row vector (matrix with one row) and does a linear algebraic " "matrix multiply [code]c * r[/code], yielding a matrix whose number of rows " "is the number of components in [code]c[/code] and whose number of columns is " "the number of components in [code]r[/code]." msgstr "" "[code]OuterProduct[/code] 将第一个参数 [code]c[/code] 作为列向量(有一列的矩" "阵),将第二个参数 [code]r[/code] 作为行向量(有一行的矩阵),进行线性代数矩" "阵乘法 [code]c * r[/code]。产生一个矩阵,其行数是 [code]c[/code] 的分量数,其" "列数是 [code]r[/code] 的分量数。" #: doc/classes/VisualShaderNodeOutput.xml msgid "Represents the output shader parameters within the visual shader graph." msgstr "表示可视化着色器图中的输出着色器参数。" #: doc/classes/VisualShaderNodeOutput.xml msgid "" "This visual shader node is present in all shader graphs in form of " "\"Output\" block with multiple output value ports." msgstr "" "此可视化着色器节点以 \"输出\" 块的形式出现在所有着色器图中,有多个输出值端" "口。" #: doc/classes/VisualShaderNodeScalarClamp.xml msgid "Clamps a scalar value within the visual shader graph." msgstr "在可视化着色器图中限制一个标量值。" #: doc/classes/VisualShaderNodeScalarClamp.xml msgid "" "Constrains a value to lie between [code]min[/code] and [code]max[/code] " "values." msgstr "将值限制在[code]min[/code]和[code]max[/code]之间。" #: doc/classes/VisualShaderNodeScalarDerivativeFunc.xml msgid "Calculates a scalar derivative within the visual shader graph." msgstr "计算可视化着色器图中的标量导数。" #: doc/classes/VisualShaderNodeScalarDerivativeFunc.xml #: doc/classes/VisualShaderNodeVectorDerivativeFunc.xml msgid "" "This node is only available in [code]Fragment[/code] and [code]Light[/code] " "visual shaders." msgstr "" "此节点仅在[code]Fragment[/code]和[code]Light[/code]可视化着色器中可用。" #: doc/classes/VisualShaderNodeScalarDerivativeFunc.xml msgid "The derivative type. See [enum Function] for options." msgstr "派生类型。有关选项,请参阅 [enum Function] 。" #: doc/classes/VisualShaderNodeScalarDerivativeFunc.xml #: doc/classes/VisualShaderNodeVectorDerivativeFunc.xml msgid "Sum of absolute derivative in [code]x[/code] and [code]y[/code]." msgstr "[code]x[/code] 和 [code]y[/code] 的绝对导数之和。" #: doc/classes/VisualShaderNodeScalarDerivativeFunc.xml #: doc/classes/VisualShaderNodeVectorDerivativeFunc.xml msgid "Derivative in [code]x[/code] using local differencing." msgstr "在 [code]x[/code] 中使用局部差分的导数。" #: doc/classes/VisualShaderNodeScalarDerivativeFunc.xml #: doc/classes/VisualShaderNodeVectorDerivativeFunc.xml msgid "Derivative in [code]y[/code] using local differencing." msgstr "在 [code]y[/code] 中使用局部差分的导数。" #: doc/classes/VisualShaderNodeScalarInterp.xml msgid "" "Linearly interpolates between two scalars within the visual shader graph." msgstr "在可视化着色器图中的两个标量之间进行线性插值。" #: doc/classes/VisualShaderNodeScalarInterp.xml msgid "Translates to [code]mix(a, b, weight)[/code] in the shader language." msgstr "在着色器语言中转换为[code]mix(a, b, weight)[/code]。" #: doc/classes/VisualShaderNodeScalarSmoothStep.xml msgid "Calculates a scalar SmoothStep function within the visual shader graph." msgstr "在可视化着色器图中计算一个标量的SmoothStep函数。" #: doc/classes/VisualShaderNodeScalarSmoothStep.xml msgid "" "Translates to [code]smoothstep(edge0, edge1, x)[/code] in the shader " "language.\n" "Returns [code]0.0[/code] if [code]x[/code] is smaller than [code]edge0[/" "code] and [code]1.0[/code] if [code]x[/code] is larger than [code]edge1[/" "code]. Otherwise the return value is interpolated between [code]0.0[/code] " "and [code]1.0[/code] using Hermite polynomials." msgstr "" "在着色器语言中转换成[code]smoothstep(edge0, edge1, x)[/code]。\n" "如果[code]x[/code]小于[code]edge0[/code],返回 [code]0.0[/code];如果" "[code]x[/code]大于[code]edge1[/code],返回 [code]1.0[/code]。否则返回值在" "[code]0.0[/code]和[code]1.0[/code]之间使用Hermite多项式进行插值。" #: doc/classes/VisualShaderNodeScalarSwitch.xml msgid "A boolean/scalar function for use within the visual shader graph." msgstr "布尔或标量函数,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeScalarSwitch.xml msgid "" "Returns an associated scalar if the provided boolean value is [code]true[/" "code] or [code]false[/code]." msgstr "" "如果提供的布尔值是[code]true[/code]或[code]false[/code],则返回相关标量。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "" "A hint applied to the uniform, which controls the values it can take when " "set through the inspector." msgstr "对 uniform 应用的提示,控制通过检查器所能设置的值。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "" "Minimum value for range hints. Used if [member hint] is set to [constant " "HINT_RANGE] or [constant HINT_RANGE_STEP]." msgstr "" "范围提示的最小值。会在 [member hint] 为 [constant HINT_RANGE] 或 [constant " "HINT_RANGE_STEP] 时使用。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "" "Maximum value for range hints. Used if [member hint] is set to [constant " "HINT_RANGE] or [constant HINT_RANGE_STEP]." msgstr "" "范围提示的最大值。会在 [member hint] 为 [constant HINT_RANGE] 或 [constant " "HINT_RANGE_STEP] 时使用。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "" "Step (increment) value for the range hint with step. Used if [member hint] " "is set to [constant HINT_RANGE_STEP]." msgstr "" "带步长(增量)的范围提示的步长值。会在 [member hint] 为 [constant " "HINT_RANGE_STEP] 时使用。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "No hint used." msgstr "不使用提示。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "" "A range hint for scalar value, which limits possible input values between " "[member min] and [member max]. Translated to [code]hint_range(min, max)[/" "code] in shader code." msgstr "" "标量值的范围提示,会将可能的输入限制在 [member min] 和 [member max] 之间。会" "被翻译为着色器代码中的 [code]hint_range(min, max)[/code]。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "" "A range hint for scalar value with step, which limits possible input values " "between [member min] and [member max], with a step (increment) of [member " "step]). Translated to [code]hint_range(min, max, step)[/code] in shader code." msgstr "" "标量值的范围提示,带步长,会将可能的输入限制在 [member min] 和 [member max] " "之间,步长(增量)为 [member step]。会被翻译为着色器代码中的 " "[code]hint_range(min, max, step)[/code]。" #: doc/classes/VisualShaderNodeScalarUniform.xml msgid "Represents the size of the [enum Hint] enum." msgstr "表示 [enum Hint] 枚举的大小。" #: doc/classes/VisualShaderNodeSwitch.xml msgid "A boolean/vector function for use within the visual shader graph." msgstr "布尔或向量函数,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeSwitch.xml msgid "" "Returns an associated vector if the provided boolean value is [code]true[/" "code] or [code]false[/code]." msgstr "" "如果提供的布尔值是[code]true[/code]或[code]false[/code],返回相关向量。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Performs a texture lookup within the visual shader graph." msgstr "在可视化着色器图中执行纹理查找。" #: doc/classes/VisualShaderNodeTexture.xml msgid "" "Performs a lookup operation on the provided texture, with support for " "multiple texture sources to choose from." msgstr "对提供的纹理进行查找操作,支持从多个纹理源选择。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Determines the source for the lookup. See [enum Source] for options." msgstr "确定查询的源。有关选项,请参阅 [enum Source]。" #: doc/classes/VisualShaderNodeTexture.xml msgid "The source texture, if needed for the selected [member source]." msgstr "源纹理,如果需要的话,用于选定的[member source]。" #: doc/classes/VisualShaderNodeTexture.xml msgid "" "Specifies the type of the texture if [member source] is set to [constant " "SOURCE_TEXTURE]. See [enum TextureType] for options." msgstr "" "如果[member source]被设置为[constant SOURCE_TEXTURE],则指定纹理的类型。有关" "选项,请参阅 [enum TextureType]。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Use the texture given as an argument for this function." msgstr "使用给定的纹理作为此函数的参数。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Use the current viewport's texture as the source." msgstr "使用当前视窗的纹理作为源。" #: doc/classes/VisualShaderNodeTexture.xml msgid "" "Use the texture from this shader's texture built-in (e.g. a texture of a " "[Sprite])." msgstr "使用该着色器内置的纹理,例如,[Sprite]的纹理。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Use the texture from this shader's normal map built-in." msgstr "使用该着色器内置的法线贴图的纹理。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Use the depth texture available for this shader." msgstr "使用该着色器可用的深度纹理。" #: doc/classes/VisualShaderNodeTexture.xml msgid "Use the texture provided in the input port for this function." msgstr "将输入端口中提供的纹理用于此函数。" #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "Performs a uniform texture lookup within the visual shader graph." msgstr "在可视化着色器图中执行uniform的纹理查找。" #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "" "Performs a lookup operation on the texture provided as a uniform for the " "shader." msgstr "对作为uniform着色器提供的纹理进行查找操作。" #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "Sets the default color if no texture is assigned to the uniform." msgstr "如果没有给uniform分配纹理,则设置默认颜色。" #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "" "Adds [code]hint_aniso[/code] as hint to the uniform declaration to use for a " "flowmap." msgstr "将[code]hint_aniso[/code]作为提示添加到uniform声明中,用于流程图。" #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "Defaults to white color." msgstr "默认为白色。" #: doc/classes/VisualShaderNodeTextureUniform.xml msgid "Defaults to black color." msgstr "默认为黑色。" #: doc/classes/VisualShaderNodeTextureUniformTriplanar.xml msgid "" "Performs a uniform texture lookup with triplanar within the visual shader " "graph." msgstr "在可视化着色器图中用三角面进行uniform纹理查找。" #: doc/classes/VisualShaderNodeTextureUniformTriplanar.xml msgid "" "Performs a lookup operation on the texture provided as a uniform for the " "shader, with support for triplanar mapping." msgstr "对作为uniform着色器提供的纹理进行查找操作,并支持三角面贴图。" #: doc/classes/VisualShaderNodeTransformCompose.xml msgid "" "Composes a [Transform] from four [Vector3]s within the visual shader graph." msgstr "从可视化着色器图中的四个[Vector3]组成一个[Transform]。" #: doc/classes/VisualShaderNodeTransformCompose.xml msgid "" "Creates a 4x4 transform matrix using four vectors of type [code]vec3[/code]. " "Each vector is one row in the matrix and the last column is a [code]vec4(0, " "0, 0, 1)[/code]." msgstr "" "使用四个类型为[code]vec3[/code]的向量创建一个4x4变换矩阵。每个向量是矩阵中的" "一行,最后一列是一个[code]vec4(0, 0, 0, 1)[/code]。" #: doc/classes/VisualShaderNodeTransformConstant.xml msgid "A [Transform] constant for use within the visual shader graph." msgstr "一个[Transform]常量,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeTransformConstant.xml msgid "A constant [Transform], which can be used as an input node." msgstr "一个常量[Transform],可以作为一个输入节点使用。" #: doc/classes/VisualShaderNodeTransformConstant.xml msgid "A [Transform] constant which represents the state of this node." msgstr "一个[Transform]常量,表示这个节点的状态。" #: doc/classes/VisualShaderNodeTransformDecompose.xml msgid "" "Decomposes a [Transform] into four [Vector3]s within the visual shader graph." msgstr "将一个[Transform]分解为可视化着色器图中的四个[Vector3]。" #: doc/classes/VisualShaderNodeTransformDecompose.xml msgid "" "Takes a 4x4 transform matrix and decomposes it into four [code]vec3[/code] " "values, one from each row of the matrix." msgstr "获取一个4x4的变换矩阵,并将其分解为四个[code]vec3[/code]值,每行一个。" #: doc/classes/VisualShaderNodeTransformFunc.xml msgid "Computes a [Transform] function within the visual shader graph." msgstr "在可视化着色器图中计算一个[Transform]函数。" #: doc/classes/VisualShaderNodeTransformFunc.xml msgid "Computes an inverse or transpose function on the provided [Transform]." msgstr "在提供的[Transform]上计算一个反函数或转置函数。" #: doc/classes/VisualShaderNodeTransformFunc.xml msgid "The function to be computed. See [enum Function] for options." msgstr "要计算的函数。选项参阅[enum Function]。" #: doc/classes/VisualShaderNodeTransformFunc.xml msgid "Perform the inverse operation on the [Transform] matrix." msgstr "对[Transform]矩阵进行逆运算。" #: doc/classes/VisualShaderNodeTransformFunc.xml msgid "Perform the transpose operation on the [Transform] matrix." msgstr "对[Transform]矩阵进行转置操作。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "Multiplies [Transform] by [Transform] within the visual shader graph." msgstr "在可视化着色器图中用[Transform]乘以[Transform]。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "" "A multiplication operation on two transforms (4x4 matrices), with support " "for different multiplication operators." msgstr "对两个变换(4x4矩阵)进行乘法运算,支持不同的乘法运算符。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "" "The multiplication type to be performed on the transforms. See [enum " "Operator] for options." msgstr "要对变换进行的乘法类型。参阅[enum Operator]的选项。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "Multiplies transform [code]a[/code] by the transform [code]b[/code]." msgstr "将变换[code]a[/code]乘以变换[code]b[/code]。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "Multiplies transform [code]b[/code] by the transform [code]a[/code]." msgstr "将变换[code]b[/code]乘以变换[code]a[/code]。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "" "Performs a component-wise multiplication of transform [code]a[/code] by the " "transform [code]b[/code]." msgstr "对变换[code]a[/code]与变换[code]b[/code]进行分量明智的乘法。" #: doc/classes/VisualShaderNodeTransformMult.xml msgid "" "Performs a component-wise multiplication of transform [code]b[/code] by the " "transform [code]a[/code]." msgstr "对变换[code]b[/code]与变换[code]a[/code]进行分量明智的乘法。" #: doc/classes/VisualShaderNodeTransformUniform.xml msgid "A [Transform] uniform for use within the visual shader graph." msgstr "在可视化着色器图中使用的[Transform]uniform。" #: doc/classes/VisualShaderNodeTransformUniform.xml msgid "Translated to [code]uniform mat4[/code] in the shader language." msgstr "在着色器语言中被转换成[code]uniform mat4[/code]。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "" "Multiplies a [Transform] and a [Vector3] within the visual shader graph." msgstr "在可视化着色器图中,将一个[Transform]和一个[Vector3]相乘。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "" "A multiplication operation on a transform (4x4 matrix) and a vector, with " "support for different multiplication operators." msgstr "对一个变换(4x4矩阵)和一个向量进行乘法运算,支持不同的乘法运算符。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "" "The multiplication type to be performed. See [enum Operator] for options." msgstr "要执行的乘法类型。参阅[enum Operator]的选项。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "Multiplies transform [code]a[/code] by the vector [code]b[/code]." msgstr "将变换 [code]a[/code] 乘以向量 [code]b[/code]。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "Multiplies vector [code]b[/code] by the transform [code]a[/code]." msgstr "将向量 [code]b[/code] 乘以变换 [code]a[/code]。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "" "Multiplies transform [code]a[/code] by the vector [code]b[/code], skipping " "the last row and column of the transform." msgstr "" "将变换 [code]a[/code] 乘以向量 [code]b[/code],跳过变换的最后一行和一列。" #: doc/classes/VisualShaderNodeTransformVecMult.xml msgid "" "Multiplies vector [code]b[/code] by the transform [code]a[/code], skipping " "the last row and column of the transform." msgstr "" "将向量 [code]b[/code] 乘以变换 [code]a[/code],跳过变换的最后一行和一列。" #: doc/classes/VisualShaderNodeUniform.xml msgid "A base type for the uniforms within the visual shader graph." msgstr "可视化着色器图中的 uniform 的基本类型。" #: doc/classes/VisualShaderNodeUniform.xml msgid "" "A uniform represents a variable in the shader which is set externally, i.e. " "from the [ShaderMaterial]. Uniforms are exposed as properties in the " "[ShaderMaterial] and can be assigned from the inspector or from a script." msgstr "" "uniform 表示着色器中的一个变量,它是由外部设置的,即从 [ShaderMaterial] 中设" "置。uniform 在 [ShaderMaterial] 中被暴露为属性,可以从检查器或脚本中分配。" #: doc/classes/VisualShaderNodeUniform.xml msgid "" "Name of the uniform, by which it can be accessed through the " "[ShaderMaterial] properties." msgstr "uniform 的名称,可以通过 [ShaderMaterial] 属性访问它。" #: doc/classes/VisualShaderNodeUniformRef.xml msgid "A reference to an existing [VisualShaderNodeUniform]." msgstr "对现有 [VisualShaderNodeUniform] 的引用。" #: doc/classes/VisualShaderNodeUniformRef.xml msgid "" "Creating a reference to a [VisualShaderNodeUniform] allows you to reuse this " "uniform in different shaders or shader stages easily." msgstr "" "创建对 [VisualShaderNodeUniform] 的引用,可以让你在不同的着色器或着色阶段轻松" "地重复使用这个 uniform。" #: doc/classes/VisualShaderNodeUniformRef.xml msgid "The name of the uniform which this reference points to." msgstr "该引用所指向的 uniform 的名称。" #: doc/classes/VisualShaderNodeVec3Constant.xml msgid "A [Vector3] constant to be used within the visual shader graph." msgstr "一个 [Vector3] 常量,用于可视化着色器图中。" #: doc/classes/VisualShaderNodeVec3Constant.xml msgid "A constant [Vector3], which can be used as an input node." msgstr "一个常量 [Vector3],它可以作为输入节点使用。" #: doc/classes/VisualShaderNodeVec3Constant.xml msgid "A [Vector3] constant which represents the state of this node." msgstr "一个 [Vector3] 常量,表示该节点的状态。" #: doc/classes/VisualShaderNodeVec3Uniform.xml msgid "A [Vector3] uniform to be used within the visual shader graph." msgstr "一个 [Vector3] 的 uniform,在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeVec3Uniform.xml msgid "Translated to [code]uniform vec3[/code] in the shader language." msgstr "在着色器语言中被转换成[code]uniform vec3[/code]。" #: doc/classes/VisualShaderNodeVectorClamp.xml msgid "Clamps a vector value within the visual shader graph." msgstr "将一个向量值限制在可视化着色器图中。" #: doc/classes/VisualShaderNodeVectorClamp.xml msgid "" "Constrains a value to lie between [code]min[/code] and [code]max[/code] " "values. The operation is performed on each component of the vector " "individually." msgstr "" "将一个值限制在[code]min[/code]和[code]max[/code]之间。该操作是对向量的每个分" "量单独执行的。" #: doc/classes/VisualShaderNodeVectorCompose.xml msgid "Composes a [Vector3] from three scalars within the visual shader graph." msgstr "从可视化着色器图中的三个标量组成一个[Vector3]。" #: doc/classes/VisualShaderNodeVectorCompose.xml msgid "" "Creates a [code]vec3[/code] using three scalar values that can be provided " "from separate inputs." msgstr "" "使用三个标量值创建一个[code]vec3[/code],这些标量值可以由单独的输入提供。" #: doc/classes/VisualShaderNodeVectorDecompose.xml msgid "" "Decomposes a [Vector3] into three scalars within the visual shader graph." msgstr "将一个[Vector3]分解为可视化着色器图中的三个标量。" #: doc/classes/VisualShaderNodeVectorDecompose.xml msgid "" "Takes a [code]vec3[/code] and decomposes it into three scalar values that " "can be used as separate inputs." msgstr "取一个[code]vec3[/code]并将其分解为三个标量值,可作为单独的输入。" #: doc/classes/VisualShaderNodeVectorDerivativeFunc.xml msgid "Calculates a vector derivative within the visual shader graph." msgstr "在可视化着色器图中计算一个向量导数。" #: doc/classes/VisualShaderNodeVectorDerivativeFunc.xml msgid "A derivative type. See [enum Function] for options." msgstr "派生类型。选项参阅[enum Function]。" #: doc/classes/VisualShaderNodeVectorDistance.xml msgid "" "Returns the distance between two points. To be used within the visual shader " "graph." msgstr "返回两点之间的距离。用于可视化着色器图中。" #: doc/classes/VisualShaderNodeVectorDistance.xml msgid "" "Calculates distance from point represented by vector [code]p0[/code] to " "vector [code]p1[/code].\n" "Translated to [code]distance(p0, p1)[/code] in the shader language." msgstr "" "计算从向量[code]p0[/code]表示的点到向量[code]p1[/code]的距离。\n" "在着色器语言中被转换成[code]distance(p0, p1)[/code]。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "A vector function to be used within the visual shader graph." msgstr "在可视化着色器图中使用的向量函数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "A visual shader node able to perform different functions using vectors." msgstr "可视化着色器节点,能够使用向量执行不同的函数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "The function to be performed. See [enum Function] for options." msgstr "要执行的函数。参阅[enum Function]的选项。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "" "Normalizes the vector so that it has a length of [code]1[/code] but points " "in the same direction." msgstr "将向量归一化,使其长度为[code]1[/code],但指向相同的方向。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Clamps the value between [code]0.0[/code] and [code]1.0[/code]." msgstr "限制[code]0.0[/code]和[code]1.0[/code]之间的值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the opposite value of the parameter." msgstr "返回参数的相反值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns [code]1/vector[/code]." msgstr "返回 [code]1/vector[/code]。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Converts RGB vector to HSV equivalent." msgstr "将 RGB 向量转换为等效的 HSV 向量。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Converts HSV vector to RGB equivalent." msgstr "将 HSV 向量转换为等效的 RGB 向量。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the absolute value of the parameter." msgstr "返回参数的绝对值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the arc-cosine of the parameter." msgstr "返回参数的反余弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the inverse hyperbolic cosine of the parameter." msgstr "返回参数的反双曲余弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the arc-sine of the parameter." msgstr "返回参数的反正弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the inverse hyperbolic sine of the parameter." msgstr "返回参数的反双曲正弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the arc-tangent of the parameter." msgstr "返回参数的反正切值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the inverse hyperbolic tangent of the parameter." msgstr "返回参数的反双曲正切值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "" "Finds the nearest integer that is greater than or equal to the parameter." msgstr "查找最接近的大于或等于参数的整数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the cosine of the parameter." msgstr "返回参数的余弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the hyperbolic cosine of the parameter." msgstr "返回参数的双曲余弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Converts a quantity in radians to degrees." msgstr "将以弧度为单位的量转换为度。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Base-e Exponential." msgstr "以 e 为底的指数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Base-2 Exponential." msgstr "以 2 为底的指数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Finds the nearest integer less than or equal to the parameter." msgstr "查找小于或等于参数的最近整数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Computes the fractional part of the argument." msgstr "计算参数的小数部分。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the inverse of the square root of the parameter." msgstr "返回参数的平方根的倒数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Natural logarithm." msgstr "自然对数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Base-2 logarithm." msgstr "以 2 为底的对数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Converts a quantity in degrees to radians." msgstr "将度数转换为弧度。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Finds the nearest integer to the parameter." msgstr "查找参数最近的整数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Finds the nearest even integer to the parameter." msgstr "查找参数最近的偶数。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "" "Extracts the sign of the parameter, i.e. returns [code]-1[/code] if the " "parameter is negative, [code]1[/code] if it's positive and [code]0[/code] " "otherwise." msgstr "" "提取参数的符号,即如果参数是负的,返回 [code]-1[/code],如果是正的,返回 " "[code]1[/code],否则返回 [code]0[/code]。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the sine of the parameter." msgstr "返回参数的正弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the hyperbolic sine of the parameter." msgstr "返回参数的双曲正弦值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the square root of the parameter." msgstr "返回参数的平方根。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the tangent of the parameter." msgstr "返回参数的正切值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns the hyperbolic tangent of the parameter." msgstr "返回参数的双曲正切值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "" "Returns a value equal to the nearest integer to the parameter whose absolute " "value is not larger than the absolute value of the parameter." msgstr "返回一个等于与参数最接近的整数的值,该值的绝对值不大于参数的绝对值。" #: doc/classes/VisualShaderNodeVectorFunc.xml msgid "Returns [code]1.0 - vector[/code]." msgstr "返回 [code]1.0 - vector[/code]。" #: doc/classes/VisualShaderNodeVectorInterp.xml msgid "" "Linearly interpolates between two vectors within the visual shader graph." msgstr "在可视化着色器图中的两个向量之间进行线性插值。" #: doc/classes/VisualShaderNodeVectorInterp.xml msgid "" "Translates to [code]mix(a, b, weight)[/code] in the shader language, where " "[code]weight[/code] is a [Vector3] with weights for each component." msgstr "" "在着色器语言中转换成[code]mix(a, b, weight)[/code],其中[code]weight[/code]是" "一个[Vector3],每个分量的权重。" #: doc/classes/VisualShaderNodeVectorLen.xml msgid "Returns the length of a [Vector3] within the visual shader graph." msgstr "返回[Vector3]在可视化着色器图中的长度。" #: doc/classes/VisualShaderNodeVectorLen.xml msgid "Translated to [code]length(p0)[/code] in the shader language." msgstr "在着色器语言中被转换成[code]length(p0)[/code]。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "A vector operator to be used within the visual shader graph." msgstr "在可视化着色器图中使用的向量运算符。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "" "A visual shader node for use of vector operators. Operates on vector " "[code]a[/code] and vector [code]b[/code]." msgstr "" "用于使用向量运算符的可视化着色器节点。对向量[code]a[/code]和向量[code]b[/" "code]进行操作。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "The operator to be used. See [enum Operator] for options." msgstr "要使用的运算符。参阅[enum Operator]的选项。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Adds two vectors." msgstr "将两个向量相加。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Subtracts a vector from a vector." msgstr "从一个向量中减去一个向量。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Multiplies two vectors." msgstr "将两个向量相乘。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Divides vector by vector." msgstr "将向量除以向量。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Returns the remainder of the two vectors." msgstr "返回两个向量的余数。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "" "Returns the value of the first parameter raised to the power of the second, " "for each component of the vectors." msgstr "返回第一个参数的值提高到第二个参数的幂,对于向量的每个分量。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Returns the greater of two values, for each component of the vectors." msgstr "对于向量的每个分量,返回两个值中的较大值。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Returns the lesser of two values, for each component of the vectors." msgstr "对于向量的每个分量,返回两个数值中的较小者。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Calculates the cross product of two vectors." msgstr "计算两个向量的叉积。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "Returns the arc-tangent of the parameters." msgstr "返回参数的反正切值。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "" "Returns the vector that points in the direction of reflection. [code]a[/" "code] is incident vector and [code]b[/code] is the normal vector." msgstr "" "返回指向反射方向的向量。[code]a[/code] 是入射向量,[code]b[/code] 是法向量。" #: doc/classes/VisualShaderNodeVectorOp.xml msgid "" "Vector step operator. Returns [code]0.0[/code] if [code]a[/code] is smaller " "than [code]b[/code] and [code]1.0[/code] otherwise." msgstr "" "向量步长运算符。如果[code]a[/code]小于[code]b[/code],返回 [code]0.0[/code]," "否则返回 [code]1.0[/code]。" #: doc/classes/VisualShaderNodeVectorRefract.xml msgid "" "Returns the [Vector3] that points in the direction of refraction. For use " "within the visual shader graph." msgstr "返回指向折射方向的[Vector3]。用于可视化着色器图内。" #: doc/classes/VisualShaderNodeVectorRefract.xml msgid "" "Translated to [code]refract(I, N, eta)[/code] in the shader language, where " "[code]I[/code] is the incident vector, [code]N[/code] is the normal vector " "and [code]eta[/code] is the ratio of the indices of the refraction." msgstr "" "在着色器语言中转换成[code]refract(I, N, eta)[/code],其中[code]I[/code]是入射" "向量,[code]N[/code]是法线向量,[code]eta[/code]是折射的比率。" #: doc/classes/VisualShaderNodeVectorScalarMix.xml msgid "" "Linearly interpolates between two vectors using a scalar. For use within the " "visual shader graph." msgstr "使用一个标量在两个向量之间进行线性插值。在可视化着色器图中使用。" #: doc/classes/VisualShaderNodeVectorScalarMix.xml msgid "" "Translates to [code]mix(a, b, weight)[/code] in the shader language, where " "[code]a[/code] and [code]b[/code] are vectors and [code]weight[/code] is a " "scalar." msgstr "" "在着色器语言中转换成[code]mix(a, b, weight)[/code],其中[code]a[/code]和" "[code]b[/code]是向量,[code]weight[/code]是标量。" #: doc/classes/VisualShaderNodeVectorScalarSmoothStep.xml msgid "" "Calculates a vector SmoothStep function using scalar within the visual " "shader graph." msgstr "在可视化着色器图中使用标量计算一个向量SmoothStep函数。" #: doc/classes/VisualShaderNodeVectorScalarSmoothStep.xml msgid "" "Translates to [code]smoothstep(edge0, edge1, x)[/code] in the shader " "language, where [code]x[/code] is a scalar.\n" "Returns [code]0.0[/code] if [code]x[/code] is smaller than [code]edge0[/" "code] and [code]1.0[/code] if [code]x[/code] is larger than [code]edge1[/" "code]. Otherwise the return value is interpolated between [code]0.0[/code] " "and [code]1.0[/code] using Hermite polynomials." msgstr "" "在着色器语言中转换成[code]smoothstep(edge0, edge1, x)[/code],其中[code]x[/" "code]是一个标量。\n" "如果[code]x[/code]小于[code]edge0[/code],返回 [code]0.0[/code],如果" "[code]x[/code]大于[code]edge1[/code],返回 [code]1.0[/code]。否则返回值在" "[code]0.0[/code]和[code]1.0[/code]之间使用Hermite多项式进行插值。" #: doc/classes/VisualShaderNodeVectorScalarStep.xml msgid "Calculates a vector Step function within the visual shader graph." msgstr "在可视化着色器图中计算一个向量Step函数。" #: doc/classes/VisualShaderNodeVectorScalarStep.xml msgid "" "Translates to [code]step(edge, x)[/code] in the shader language.\n" "Returns [code]0.0[/code] if [code]x[/code] is smaller than [code]edge[/code] " "and [code]1.0[/code] otherwise." msgstr "" "在着色器语言中转换成[code]step(edge, x)[/code]。\n" "如果[code]x[/code]小于[code]edge[/code],返回 [code]0.0[/code],否则返回 " "[code]1.0[/code]。" #: doc/classes/VisualShaderNodeVectorSmoothStep.xml msgid "Calculates a vector SmoothStep function within the visual shader graph." msgstr "在可视化着色器图中计算一个向量SmoothStep函数。" #: doc/classes/VisualShaderNodeVectorSmoothStep.xml msgid "" "Translates to [code]smoothstep(edge0, edge1, x)[/code] in the shader " "language, where [code]x[/code] is a vector.\n" "Returns [code]0.0[/code] if [code]x[/code] is smaller than [code]edge0[/" "code] and [code]1.0[/code] if [code]x[/code] is larger than [code]edge1[/" "code]. Otherwise the return value is interpolated between [code]0.0[/code] " "and [code]1.0[/code] using Hermite polynomials." msgstr "" "在着色器语言中转换成[code]smoothstep(edge0, edge1, x)[/code],其中[code]x[/" "code]是一个向量。\n" "如果[code]x[/code]小于[code]edge0[/code],返回 [code]0.0[/code],如果" "[code]x[/code]大于[code]edge1[/code],返回 [code]1.0[/code]。否则返回值在" "[code]0.0[/code]和[code]1.0[/code]之间使用Hermite多项式进行插值。" #: doc/classes/VScrollBar.xml msgid "Vertical scroll bar." msgstr "垂直滚动条。" #: doc/classes/VScrollBar.xml msgid "" "Vertical version of [ScrollBar], which goes from top (min) to bottom (max)." msgstr "[ScrollBar]的垂直版本,它从顶部(最小)到底部(最大)。" #: doc/classes/VScrollBar.xml msgid "" "Icon used as a button to scroll the [ScrollBar] up. Supports custom step " "using the [member ScrollBar.custom_step] property." msgstr "" "按钮使用的图标,用于向上滚动[ScrollBar]。支持使用[member ScrollBar." "custom_step]属性的自定义步长。" #: doc/classes/VScrollBar.xml msgid "" "Icon used as a button to scroll the [ScrollBar] down. Supports custom step " "using the [member ScrollBar.custom_step] property." msgstr "" "作为按钮使用的图标,用于向下滚动[ScrollBar]。支持使用[member ScrollBar." "custom_step]属性的自定义步长。" #: doc/classes/VSeparator.xml msgid "Vertical version of [Separator]." msgstr "[Separator]的垂直版本。" #: doc/classes/VSeparator.xml msgid "" "Vertical version of [Separator]. Even though it looks vertical, it is used " "to separate objects horizontally." msgstr "[Separator]的垂直版本。尽管它看起来是垂直的,但它用来水平分离对象。" #: doc/classes/VSeparator.xml msgid "" "The width of the area covered by the separator. Effectively works like a " "minimum width." msgstr "分隔符所覆盖区域的宽度。以最小宽度时有效工作。" #: doc/classes/VSeparator.xml msgid "" "The style for the separator line. Works best with [StyleBoxLine] (remember " "to enable [member StyleBoxLine.vertical])." msgstr "" "分隔线的样式。与[StyleBoxLine]一起使用效果最好,记得要启用[member " "StyleBoxLine.vertical]。" #: doc/classes/VSlider.xml msgid "Vertical slider." msgstr "垂直滑动条。" #: doc/classes/VSlider.xml msgid "" "Vertical slider. See [Slider]. This one goes from bottom (min) to top " "(max).\n" "[b]Note:[/b] The [signal Range.changed] and [signal Range.value_changed] " "signals are part of the [Range] class which this class inherits from." msgstr "" "垂直滑动条。请参阅 [Slider]。这个控件是从底部(最小)滑到顶部(最大)的。\n" "[b]注意:[/b][signal Range.changed] 和 [signal Range.value_changed] 信号是 " "[Range] 类的一部分,该类继承自它。" #: doc/classes/VSlider.xml msgid "The background of the area below the grabber." msgstr "抓取器下方区域的背景。" #: doc/classes/VSlider.xml msgid "" "The background for the whole slider. Determines the width of the " "[code]grabber_area[/code]." msgstr "整个滑动条的背景。决定了 [code]grabber_area[/code] 的宽度。" #: doc/classes/VSplitContainer.xml msgid "Vertical split container." msgstr "垂直拆分容器。" #: doc/classes/VSplitContainer.xml msgid "" "Vertical split container. See [SplitContainer]. This goes from top to bottom." msgstr "垂直拆分容器。参阅[SplitContainer]。这是从上到下的。" #: doc/classes/WeakRef.xml msgid "" "Holds an [Object], but does not contribute to the reference count if the " "object is a reference." msgstr "持有 [Object],但如果该对象是引用,则不会贡献引用计数。" #: doc/classes/WeakRef.xml msgid "" "A weakref can hold a [Reference], without contributing to the reference " "counter. A weakref can be created from an [Object] using [method @GDScript." "weakref]. If this object is not a reference, weakref still works, however, " "it does not have any effect on the object. Weakrefs are useful in cases " "where multiple classes have variables that refer to each other. Without " "weakrefs, using these classes could lead to memory leaks, since both " "references keep each other from being released. Making part of the variables " "a weakref can prevent this cyclic dependency, and allows the references to " "be released." msgstr "" "弱引用(weakref)可以在持有 [Reference] 的同时不对其引用计数器产生影响。可以" "使用 [method @GDScript.weakref] 从一个 [Object] 创建弱引用。如果这个对象不是" "引用,弱引用仍然可以工作,但是,它对这个对象没有任何影响。在多个类有相互引用" "的变量的情况下,弱引用是很有用的。如果没有弱引用,使用这些类可能会导致内存泄" "漏,因为两个引用都会使对方不被释放。将变量的一部分变成弱引用可以防止这种循环" "依赖,并允许引用被释放。" #: doc/classes/WeakRef.xml msgid "Returns the [Object] this weakref is referring to." msgstr "返回此弱引用所指的 [Object]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "Closes this data channel, notifying the other peer." msgstr "关闭此数据通道,通知另一个对等体。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns the number of bytes currently queued to be sent over this channel." msgstr "返回当前排队在此通道上发送的字节数。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns the id assigned to this channel during creation (or auto-assigned " "during negotiation).\n" "If the channel is not negotiated out-of-band the id will only be available " "after the connection is established (will return [code]65535[/code] until " "then)." msgstr "" "返回创建时分配给该通道的ID,或在协商时自动分配。\n" "如果该通道没有进行带外协商,那么该ID将只在连接建立后可用,在此之前将返回 " "[code]65535[/code]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "Returns the label assigned to this channel during creation." msgstr "返回创建时分配给该通道的标签。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns the [code]maxPacketLifeTime[/code] value assigned to this channel " "during creation.\n" "Will be [code]65535[/code] if not specified." msgstr "" "返回创建时分配给这个通道的[code]maxPacketLifeTime[/code]值。\n" "如果没有指定,将是[code]65535[/code]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns the [code]maxRetransmits[/code] value assigned to this channel " "during creation.\n" "Will be [code]65535[/code] if not specified." msgstr "" "返回创建时分配给这个通道的[code]maxRetransmits[/code]值。\n" "如果没有指定,将是[code]65535[/code]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns the sub-protocol assigned to this channel during creation. An empty " "string if not specified." msgstr "返回创建时分配给这个通道的子协议。如果没有指定,则为空字符串。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "Returns the current state of this channel, see [enum ChannelState]." msgstr "返回该通道的当前状态,参阅[enum ChannelState]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns [code]true[/code] if this channel was created with out-of-band " "configuration." msgstr "如果这个通道是用带外配置创建的,返回 [code]true[/code]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns [code]true[/code] if this channel was created with ordering enabled " "(default)." msgstr "如果这个通道在创建时启用了排序功能,则默认返回 [code]true[/code]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "Reserved, but not used for now." msgstr "保留,目前未使用。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Returns [code]true[/code] if the last received packet was transferred as " "text. See [member write_mode]." msgstr "" "如果最后收到的数据包是以文本形式传输,则返回 [code]true[/code]。参阅[member " "write_mode]。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "The transfer mode to use when sending outgoing packet. Either text or binary." msgstr "发送出去数据包时要使用的传输模式。可以是文本或二进制。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Tells the channel to send data over this channel as text. An external peer " "(non-Godot) would receive this as a string." msgstr "" "告诉通道以文本形式在这个通道上发送数据。外部对等体(非Godot)会以字符串的形式" "接收。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "Tells the channel to send data over this channel as binary. An external peer " "(non-Godot) would receive this as array buffer or blob." msgstr "" "告诉通道以二进制形式在此通道上发送数据。外部对等体(非Godot)将以数组缓冲区或" "blob的形式接收。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "The channel was created, but it's still trying to connect." msgstr "通道已经创建,但它仍在尝试连接。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "The channel is currently open, and data can flow over it." msgstr "该通道目前是打开的,数据可以在其上流动。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "" "The channel is being closed, no new messages will be accepted, but those " "already in queue will be flushed." msgstr "通道正在关闭,将不接受新的消息,但已经在队列中的消息将被刷新。" #: modules/webrtc/doc_classes/WebRTCDataChannel.xml msgid "The channel was closed, or connection failed." msgstr "通道已关闭,或连接失败。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "A simple interface to create a peer-to-peer mesh network composed of " "[WebRTCPeerConnection] that is compatible with the [MultiplayerAPI]." msgstr "" "简单的接口,用于创建由[WebRTCPeerConnection]组成的点对点网状网络,与" "[MultiplayerAPI]兼容。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "This class constructs a full mesh of [WebRTCPeerConnection] (one connection " "for each peer) that can be used as a [member MultiplayerAPI.network_peer].\n" "You can add each [WebRTCPeerConnection] via [method add_peer] or remove them " "via [method remove_peer]. Peers must be added in [constant " "WebRTCPeerConnection.STATE_NEW] state to allow it to create the appropriate " "channels. This class will not create offers nor set descriptions, it will " "only poll them, and notify connections and disconnections.\n" "[signal NetworkedMultiplayerPeer.connection_succeeded] and [signal " "NetworkedMultiplayerPeer.server_disconnected] will not be emitted unless " "[code]server_compatibility[/code] is [code]true[/code] in [method " "initialize]. Beside that data transfer works like in a " "[NetworkedMultiplayerPeer]." msgstr "" "这个类构建了一个完整的 [WebRTCPeerConnection] 网状结构(每个对等体有一个连" "接),可以作为 [member MultiplayerAPI.network_peer] 使用。\n" "你可以通过 [method add_peer] 添加每个 [WebRTCPeerConnection],或者通过 " "[method remove_peer] 删除它们。对等体必须在 [constant WebRTCPeerConnection." "STATE_NEW] 状态下添加,以允许它创建适当的通道。这个类不会创建提交也不会设置描" "述,它只会轮询,并通知连接和断开。\n" "除非在 [method initialize] 中 [code]server_compatibility[/code] 为 " "[code]true[/code],否则不会触发 [signal NetworkedMultiplayerPeer." "connection_succeeded] 和 [signal NetworkedMultiplayerPeer." "server_disconnected]。除此之外,数据传输的工作方式类似于 " "[NetworkedMultiplayerPeer]。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "Add a new peer to the mesh with the given [code]peer_id[/code]. The " "[WebRTCPeerConnection] must be in state [constant WebRTCPeerConnection." "STATE_NEW].\n" "Three channels will be created for reliable, unreliable, and ordered " "transport. The value of [code]unreliable_lifetime[/code] will be passed to " "the [code]maxPacketLifetime[/code] option when creating unreliable and " "ordered channels (see [method WebRTCPeerConnection.create_data_channel])." msgstr "" "以给定的[code]peer_id[/code]添加一个新的对等体到网状结构。该" "[WebRTCPeerConnection]必须处于[constant WebRTCPeerConnection.STATE_NEW]状" "态。\n" "将为可靠的、不可靠的和有序的传输创建三个通道。在创建不可靠和有序通道时," "[code]unreliable_lifetime[/code]的值将被传递给[code]maxPacketLifetime[/code]" "选项,参阅[method WebRTCPeerConnection.create_data_channel]。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "Close all the add peer connections and channels, freeing all resources." msgstr "关闭所有添加的对等体连接和通道,释放所有资源。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "Return a dictionary representation of the peer with given [code]peer_id[/" "code] with three keys. [code]connection[/code] containing the " "[WebRTCPeerConnection] to this peer, [code]channels[/code] an array of three " "[WebRTCDataChannel], and [code]connected[/code] a boolean representing if " "the peer connection is currently connected (all three channels are open)." msgstr "" "返回一个具有给定[code]peer_id[/code]的对等体的字典表示,有三个键。" "[code]connection[/code]包含到这个对等体的[WebRTCPeerConnection]," "[code]channels[/code]三个[WebRTCDataChannel]的数组,以及[code]connected[/" "code]一个布尔值,表示对等体连接是否当前已连接,注,所有三个通道都打开。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "Returns a dictionary which keys are the peer ids and values the peer " "representation as in [method get_peer]." msgstr "" "返回一个字典,其键是对等体的id,其值是对等体的表示,如[method get_peer]。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "Returns [code]true[/code] if the given [code]peer_id[/code] is in the peers " "map (it might not be connected though)." msgstr "" "如果给定的[code]peer_id[/code]在对等体映射中,则返回 [code]true[/code],尽管" "它可能没有连接。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "Initialize the multiplayer peer with the given [code]peer_id[/code] (must be " "between 1 and 2147483647).\n" "If [code]server_compatibilty[/code] is [code]false[/code] (default), the " "multiplayer peer will be immediately in state [constant " "NetworkedMultiplayerPeer.CONNECTION_CONNECTED] and [signal " "NetworkedMultiplayerPeer.connection_succeeded] will not be emitted.\n" "If [code]server_compatibilty[/code] is [code]true[/code] the peer will " "suppress all [signal NetworkedMultiplayerPeer.peer_connected] signals until " "a peer with id [constant NetworkedMultiplayerPeer.TARGET_PEER_SERVER] " "connects and then emit [signal NetworkedMultiplayerPeer." "connection_succeeded]. After that the signal [signal " "NetworkedMultiplayerPeer.peer_connected] will be emitted for every already " "connected peer, and any new peer that might connect. If the server peer " "disconnects after that, signal [signal NetworkedMultiplayerPeer." "server_disconnected] will be emitted and state will become [constant " "NetworkedMultiplayerPeer.CONNECTION_CONNECTED]." msgstr "" "用给定的[code]peer_id[/code](必须在1和2147483647之间)初始化多人游戏对等" "体。\n" "如果[code]server_compatibilty[/code]是[code]false[/code](默认),多人对等体" "将立即处于[constant NetworkedMultiplayerPeer.CONNECTION_CONNECTED]状态," "[signal NetworkedMultiplayerPeer.connection_succeeded]将不会被发射出来。\n" "如果[code]server_compatibilty[/code]为 [code]true[/code],对等体将抑制所有" "[signal NetworkedMultiplayerPeer.peer_connected]信号,直到一个id为[constant " "NetworkedMultiplayerPeer.TARGET_PEER_SERVER]的对等体连接,然后发出[signal " "NetworkedMultiplayerPeer.connection_succeeded]。之后将对每个已经连接的对等体" "和可能连接的任何新对等体发出[signal NetworkedMultiplayerPeer.peer_connected]" "的信号。如果服务器对等体在此之后断开连接,信号[signal " "NetworkedMultiplayerPeer.server_disconnected]将被发出,状态将变成[constant " "NetworkedMultiplayerPeer.CONNECTION_CONNECTED]。" #: modules/webrtc/doc_classes/WebRTCMultiplayer.xml msgid "" "Remove the peer with given [code]peer_id[/code] from the mesh. If the peer " "was connected, and [signal NetworkedMultiplayerPeer.peer_connected] was " "emitted for it, then [signal NetworkedMultiplayerPeer.peer_disconnected] " "will be emitted." msgstr "" "从网格中移除给定的[code]peer_id[/code]的对等体。如果对等体是连接的,并为其发" "出[signal NetworkedMultiplayerPeer.peer_connected],那么[signal " "NetworkedMultiplayerPeer.peer_disconnected]将被发出。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "Interface to a WebRTC peer connection." msgstr "与WebRTC对等体连接的接口。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "A WebRTC connection between the local computer and a remote peer. Provides " "an interface to connect, maintain and monitor the connection.\n" "Setting up a WebRTC connection between two peers from now on) may not seem a " "trivial task, but it can be broken down into 3 main steps:\n" "- The peer that wants to initiate the connection ([code]A[/code] from now " "on) creates an offer and send it to the other peer ([code]B[/code] from now " "on).\n" "- [code]B[/code] receives the offer, generate and answer, and sends it to " "[code]A[/code]).\n" "- [code]A[/code] and [code]B[/code] then generates and exchange ICE " "candidates with each other.\n" "After these steps, the connection should become connected. Keep on reading " "or look into the tutorial for more information." msgstr "" "本地计算机和远程对等体之间的WebRTC连接。提供一个接口来连接、维护和监控连" "接。\n" "从当前开始,在两个对等体之间建立WebRTC连接,这不是一项简单的任务,但它可以分" "解为3个主要步骤。\n" "- 想要启动连接的对等体([code]A[/code]从现在开始)创建一个提交,并将其发送给" "另一个对等体([code]B[/code]从现在开始)。\n" "- [code]B[/code]收到要约,生成和回答,并将其发送给[code]A[/code])。\n" "- [code]A[/code]和[code]B[/code]然后生成并相互交换ICE候选。\n" "在这些步骤之后,连接应该成功建立。继续阅读或查看教程以了解更多信息。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Add an ice candidate generated by a remote peer (and received over the " "signaling server). See [signal ice_candidate_created]." msgstr "" "添加一个由远程对等体产生的冻结候选,并通过信令服务器接收。请参阅[signal " "ice_candidate_created]。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Close the peer connection and all data channels associated with it.\n" "[b]Note:[/b] You cannot reuse this object for a new connection unless you " "call [method initialize]." msgstr "" "关闭对等体连接和与之相关的所有数据通道。\n" "[b]注意:[/b]你不能为一个新的连接重复使用这个对象,除非你调用[method " "initialize]。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Returns a new [WebRTCDataChannel] (or [code]null[/code] on failure) with " "given [code]label[/code] and optionally configured via the [code]options[/" "code] dictionary. This method can only be called when the connection is in " "state [constant STATE_NEW].\n" "There are two ways to create a working data channel: either call [method " "create_data_channel] on only one of the peer and listen to [signal " "data_channel_received] on the other, or call [method create_data_channel] on " "both peers, with the same values, and the [code]negotiated[/code] option set " "to [code]true[/code].\n" "Valid [code]options[/code] are:\n" "[codeblock]\n" "{\n" " \"negotiated\": true, # When set to true (default off), means the " "channel is negotiated out of band. \"id\" must be set too. " "\"data_channel_received\" will not be called.\n" " \"id\": 1, # When \"negotiated\" is true this value must also be set to " "the same value on both peer.\n" "\n" " # Only one of maxRetransmits and maxPacketLifeTime can be specified, not " "both. They make the channel unreliable (but also better at real time).\n" " \"maxRetransmits\": 1, # Specify the maximum number of attempt the peer " "will make to retransmits packets if they are not acknowledged.\n" " \"maxPacketLifeTime\": 100, # Specify the maximum amount of time before " "giving up retransmitions of unacknowledged packets (in milliseconds).\n" " \"ordered\": true, # When in unreliable mode (i.e. either " "\"maxRetransmits\" or \"maxPacketLifetime\" is set), \"ordered\" (true by " "default) specify if packet ordering is to be enforced.\n" "\n" " \"protocol\": \"my-custom-protocol\", # A custom sub-protocol string for " "this channel.\n" "}\n" "[/codeblock]\n" "[b]Note:[/b] You must keep a reference to channels created this way, or it " "will be closed." msgstr "" "返回新的 [WebRTCDataChannel],或在失败时返回 [code]null[/code],具有给定的 " "[code]label[/code],并通过 [code]options[/code] 字典进行配置。这个方法只有在" "连接处于 [constant STATE_NEW] 状态时才能被调用。\n" "有两种方法来创建工作数据通道:要么只在其中一个对等体上调用 [method " "create_data_channel],并在另一个对等体上监听[signal data_channel_received]," "要么在两个对等体上调用 [method create_data_channel],数值相同,并将 " "[code]negotiated[/code] 选项设置为 [code]true[/code]。\n" "有效的[code]options[/code]是:\n" "[codeblock]\n" "{\n" " \"negotiated\": true, # 当设置为 \"true\"时,默认关闭,意味着该通道是在频" "带外协商的。\"id\"也必须被设置。\"data_channel_received\" 将不会被调用。\n" " \"id\":1, # 当 \"negotiated\"为真时,这个值也必须被设置为两个对等体的相同" "值。\n" "\n" " # 只能指定maxRetransmits和maxPacketLifeTime中的一个,不能同时指定。它们会" "使信道变得不可靠,但在实时性方面会更好。\n" " \"maxRetransmits\":1, # 指定对等体在数据包未被确认时尝试重传的最大次" "数。\n" " \"maxPacketLifeTime\":100, # 指定放弃重传未被确认的数据包之前的最大时间," "以毫秒为单位。\n" " \"ordered\": true, # 当处于不可靠模式时,即 \"maxRetransmits \"或 " "\"maxPacketLifetime \"被设置,\"ordered\"指定是否要强制执行数据包排序,默认为" "true。\n" "\n" " \"protocol\":\"my-custom-protocol\", # 这个通道的自定义子协议字符串。\n" "}\n" "[/codeblock]\n" "[b]注意:[/b]你必须保持对以这种方式创建的通道的引用,否则它将被关闭。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Creates a new SDP offer to start a WebRTC connection with a remote peer. At " "least one [WebRTCDataChannel] must have been created before calling this " "method.\n" "If this functions returns [constant OK], [signal " "session_description_created] will be called when the session is ready to be " "sent." msgstr "" "创建一个新的SDP提交,以开始与远程对等体的WebRTC连接。在调用此方法之前,至少要" "创建一个[WebRTCDataChannel]。\n" "如果这个函数返回[constant OK],当会话准备好被发送时,[signal " "session_description_created]将被调用。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "Returns the connection state. See [enum ConnectionState]." msgstr "返回连接状态。参阅[enum ConnectionState]。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Re-initialize this peer connection, closing any previously active " "connection, and going back to state [constant STATE_NEW]. A dictionary of " "[code]options[/code] can be passed to configure the peer connection.\n" "Valid [code]options[/code] are:\n" "[codeblock]\n" "{\n" " \"iceServers\": [\n" " {\n" " \"urls\": [ \"stun:stun.example.com:3478\" ], # One or more STUN " "servers.\n" " },\n" " {\n" " \"urls\": [ \"turn:turn.example.com:3478\" ], # One or more TURN " "servers.\n" " \"username\": \"a_username\", # Optional username for the TURN " "server.\n" " \"credential\": \"a_password\", # Optional password for the TURN " "server.\n" " }\n" " ]\n" "}\n" "[/codeblock]" msgstr "" "重新初始化这个对等体连接,关闭任何先前活动的连接,并回到状态 [constant " "STATE_NEW]。可以通过 [code]options[/code] 的字典来配置对等连接。\n" "有效的 [code]options[/code] 是:\n" "[codeblock]\n" "{\n" " \"iceServers\": [\n" " {\n" " \"urls\":[\"stun:stun.example.com:3478\"], # 一个或多个 STUN 服务" "器。\n" " },\n" " {\n" " \"urls\":[\"turn:turn.example.com:3478\"], # 一个或多个 TURN 服务" "器。\n" " \"username\":\"a_username\", # TURN 服务器的可选用户名。\n" " \"credential\":\"a_password\", # TURN 服务器的可选密码。\n" " }\n" " ]\n" "}\n" "[/codeblock]" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Call this method frequently (e.g. in [method Node._process] or [method Node." "_physics_process]) to properly receive signals." msgstr "" "经常调用这个方法以正确接收信号,例如在[method Node._process]或[method Node." "_physics_process]中。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Sets the SDP description of the local peer. This should be called in " "response to [signal session_description_created].\n" "After calling this function the peer will start emitting [signal " "ice_candidate_created] (unless an [enum Error] different from [constant OK] " "is returned)." msgstr "" "设置本地对等体的SDP描述。这应是在响应[signal session_description_created]时调" "用的。\n" "调用此函数后,对等体将开始发出[signal ice_candidate_created],除非返回与" "[constant OK]不同的[enum Error]。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Sets the SDP description of the remote peer. This should be called with the " "values generated by a remote peer and received over the signaling server.\n" "If [code]type[/code] is [code]offer[/code] the peer will emit [signal " "session_description_created] with the appropriate answer.\n" "If [code]type[/code] is [code]answer[/code] the peer will start emitting " "[signal ice_candidate_created]." msgstr "" "设置远程对等体的SDP描述。应用远程对等体产生的值来调用,并通过信号服务器接" "收。\n" "如果[code]type[/code]是[code]offer[/code],对等体将发出[signal " "session_description_created]并给出适当的答案。\n" "如果[code]type[/code]是[code]answer[/code],对等体将开始发出[signal " "ice_candidate_created]。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Emitted when a new in-band channel is received, i.e. when the channel was " "created with [code]negotiated: false[/code] (default).\n" "The object will be an instance of [WebRTCDataChannel]. You must keep a " "reference of it or it will be closed automatically. See [method " "create_data_channel]." msgstr "" "当收到一个新的带内通道时发出,即在通道是用[code]negotiated: false[/code](默" "认)。\n" "该对象将是[WebRTCDataChannel]的一个实例。你必须保持它的引用,否则它将被自动关" "闭。参阅[method create_data_channel]。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Emitted when a new ICE candidate has been created. The three parameters are " "meant to be passed to the remote peer over the signaling server." msgstr "" "当新的ICE候选者被创建时触发。这三个参数是为了通过信号服务器传递给远程对等体。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "Emitted after a successful call to [method create_offer] or [method " "set_remote_description] (when it generates an answer). The parameters are " "meant to be passed to [method set_local_description] on this object, and " "sent to the remote peer over the signaling server." msgstr "" "在成功调用[method create_offer]或[method set_remote_description]后触发,当它" "产生一个应答时。这些参数是为了传递给这个对象上的[method " "set_local_description],并通过信号服务器发送给远程对等体。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "The connection is new, data channels and an offer can be created in this " "state." msgstr "连接是新的,数据通道和提交可以在这种状态下创建。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "The peer is connecting, ICE is in progress, none of the transports has " "failed." msgstr "对等体正在连接,ICE正在进行中,没有任何传输失败。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "The peer is connected, all ICE transports are connected." msgstr "对等体已连接,所有的ICE传输都已连接。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "At least one ICE transport is disconnected." msgstr "至少有一个ICE传输被断开连接。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "One or more of the ICE transports failed." msgstr "一个或更多的ICE传输失败。" #: modules/webrtc/doc_classes/WebRTCPeerConnection.xml msgid "" "The peer connection is closed (after calling [method close] for example)." msgstr "对等连接已关闭,例如在调用[method close]后。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "A WebSocket client implementation." msgstr "WebSocket客户端的实现。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "This class implements a WebSocket client compatible with any RFC 6455-" "compliant WebSocket server.\n" "This client can be optionally used as a network peer for the " "[MultiplayerAPI].\n" "After starting the client ([method connect_to_url]), you will need to " "[method NetworkedMultiplayerPeer.poll] it at regular intervals (e.g. inside " "[method Node._process]).\n" "You will receive appropriate signals when connecting, disconnecting, or when " "new data is available." msgstr "" "该类实现了一个与任何符合RFC 6455的WebSocket服务器兼容的WebSocket客户端。\n" "这个客户端可以选择性地作为[MultiplayerAPI]的网络对等体使用。\n" "在启动客户端后([method connect_to_url]),你需要[method " "NetworkedMultiplayerPeer.poll]它以固定的时间间隔,例如在[method Node." "_process]内。\n" "当连接、断开连接或有新数据时,你将收到适当的信号。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "Connects to the given URL requesting one of the given [code]protocols[/code] " "as sub-protocol. If the list empty (default), no sub-protocol will be " "requested.\n" "If [code]true[/code] is passed as [code]gd_mp_api[/code], the client will " "behave like a network peer for the [MultiplayerAPI], connections to non-" "Godot servers will not work, and [signal data_received] will not be " "emitted.\n" "If [code]false[/code] is passed instead (default), you must call " "[PacketPeer] functions ([code]put_packet[/code], [code]get_packet[/code], " "etc.) on the [WebSocketPeer] returned via [code]get_peer(1)[/code] and not " "on this object directly (e.g. [code]get_peer(1).put_packet(data)[/code]).\n" "You can optionally pass a list of [code]custom_headers[/code] to be added to " "the handshake HTTP request.\n" "[b]Note:[/b] To avoid mixed content warnings or errors in HTML5, you may " "have to use a [code]url[/code] that starts with [code]wss://[/code] (secure) " "instead of [code]ws://[/code]. When doing so, make sure to use the fully " "qualified domain name that matches the one defined in the server's SSL " "certificate. Do not connect directly via the IP address for [code]wss://[/" "code] connections, as it won't match with the SSL certificate.\n" "[b]Note:[/b] Specifying [code]custom_headers[/code] is not supported in " "HTML5 exports due to browsers restrictions." msgstr "" "连接到给定的URL,请求给定的[code]protocols[/code]之一作为子协议。如果列表为" "空,默认为空,将不请求子协议。\n" "如果[code]true[/code]作为[code]gd_mp_api[/code]被传递,客户端将表现得像" "[MultiplayerAPI]的网络对等体,与非Godot服务器的连接将不工作,并且[signal " "data_received]将不被触发。\n" "如果[code]false[/code]被传递,默认传递,你必须调用[PacketPeer]函数," "[code]put_packet[/code], [code]get_packet[/code]等,对通过[code]get_peer(1)[/" "code]返回的[WebSocketPeer],而不是直接对该对象,例如,[code]get_peer(1)." "put_packet(data)[/code]。\n" "你可以选择传递一个[code]custom_headers[/code]的列表,以添加到握手的HTTP请求" "中。\n" "[b]注意:[/b]为了避免HTML5中的混合内容警告或错误,须使用以[code]wss://[/code]" "(安全)开头的[code]url[/code],而不是[code]ws://[/code]。这样做时,确保使用" "与服务器的SSL证书中定义的完全合格的域名。不要直接通过IP地址进行[code]wss://[/" "code]连接,因为它不会与SSL证书相匹配。\n" "[b]注意:[/b]由于浏览器的限制,指定[code]custom_headers[/code]在HTML5导出中不" "被支持。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "Disconnects this client from the connected host. See [method WebSocketPeer." "close] for more information." msgstr "" "断开此客户端与所连接主机的连接。更多信息参阅[method WebSocketPeer.close]。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "Return the IP address of the currently connected host." msgstr "返回当前连接的主机的IP地址。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "Return the IP port of the currently connected host." msgstr "返回当前连接的主机的IP端口。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "If specified, this [X509Certificate] will be the only one accepted when " "connecting to an SSL host. Any other certificate provided by the server will " "be regarded as invalid.\n" "[b]Note:[/b] Specifying a custom [code]trusted_ssl_certificate[/code] is not " "supported in HTML5 exports due to browsers restrictions." msgstr "" "如果指定,该[X509Certificate]将是连接到SSL主机时唯一接受的证书。任何由服务器" "提供的其他证书将被视为无效。\n" "[b]注意:[/b]由于浏览器的限制,在HTML5导出中不支持指定一个自定义的" "[code]trusted_ssl_certificate[/code]。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "If [code]true[/code], SSL certificate verification is enabled.\n" "[b]Note:[/b] You must specify the certificates to be used in the Project " "Settings for it to work when exported." msgstr "" "如果 [code]true[/code],则启用 SSL 证书验证。\n" "[b]注意:[/b]你必须在项目设置中指定要使用的证书,以便在导出时发挥作用。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "Emitted when the connection to the server is closed. [code]was_clean_close[/" "code] will be [code]true[/code] if the connection was shutdown cleanly." msgstr "" "当与服务器的连接被关闭时触发。[code]was_clean_close[/code] 将是[code]true[/" "code] 如果连接完全关闭。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "Emitted when the connection to the server fails." msgstr "当与服务器的连接失败时触发。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "Emitted when a connection with the server is established, [code]protocol[/" "code] will contain the sub-protocol agreed with the server." msgstr "" "当与服务器建立连接时触发,[code]protocol[/code]协议将包含与服务器达成一致的子" "协议。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "Emitted when a WebSocket message is received.\n" "[b]Note:[/b] This signal is [i]not[/i] emitted when used as high-level " "multiplayer peer." msgstr "" "当收到 WebSocket 消息时触发。\n" "[b]注意:[/b]当被用作高级多人对等体使用时,[i]不会[/i]触发这个信号。" #: modules/websocket/doc_classes/WebSocketClient.xml msgid "" "Emitted when the server requests a clean close. You should keep polling " "until you get a [signal connection_closed] signal to achieve the clean " "close. See [method WebSocketPeer.close] for more details." msgstr "" "当服务器请求完全关闭时触发。你应该继续进行轮询,直到获得[signal " "connection_closed]信号,以实现彻底的关闭。更多细节参阅[method WebSocketPeer." "close]。" #: modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml msgid "Base class for WebSocket server and client." msgstr "WebSocket 服务器和客户端的基类。" #: modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml msgid "" "Base class for WebSocket server and client, allowing them to be used as " "network peer for the [MultiplayerAPI]." msgstr "" "WebSocket 服务器和客户端的基类,允许它们作为 [MultiplayerAPI] 的网络对等体使" "用。" #: modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml msgid "" "Returns the [WebSocketPeer] associated to the given [code]peer_id[/code]." msgstr "返回与给定 [code]peer_id[/code] 关联的 [WebSocketPeer]。" #: modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml msgid "" "Configures the buffer sizes for this WebSocket peer. Default values can be " "specified in the Project Settings under [code]network/limits[/code]. For " "server, values are meant per connected peer.\n" "The first two parameters define the size and queued packets limits of the " "input buffer, the last two of the output buffer.\n" "Buffer sizes are expressed in KiB, so [code]4 = 2^12 = 4096 bytes[/code]. " "All parameters will be rounded up to the nearest power of two.\n" "[b]Note:[/b] HTML5 exports only use the input buffer since the output one is " "managed by browsers." msgstr "" "配置该WebSocket对等体的缓冲区大小。默认值可以在项目设置中的[code]network/" "limits[/code]下指定。对于服务器,数值是指每个连接的对等体。\n" "前两个参数定义了输入缓冲区的大小和排队数据包的限制,后两个参数定义了输出缓冲" "区。\n" "缓冲区的大小以KiB为单位,所以[code]4=2^12=4096字节[/code]。所有的参数都将被四" "舍五入到最接近的2的幂。\n" "[b]注意:[/b]HTML5输出只使用输入缓冲区,因为输出缓冲区是由浏览器管理的。" #: modules/websocket/doc_classes/WebSocketMultiplayerPeer.xml msgid "" "Emitted when a packet is received from a peer.\n" "[b]Note:[/b] This signal is only emitted when the client or server is " "configured to use Godot multiplayer API." msgstr "" "当收到来自对等体的数据包时触发的信号。\n" "[b]注意:[/b]这个信号只有在客户端或服务器被配置为使用Godot多人游戏API时才会发" "出。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "A class representing a specific WebSocket connection." msgstr "表示特定 WebSocket 连接的类。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "This class represents a specific WebSocket connection, allowing you to do " "lower level operations with it.\n" "You can choose to write to the socket in binary or text mode, and you can " "recognize the mode used for writing by the other peer." msgstr "" "该类表示特定的 WebSocket 连接,你可以用它执行底层操作。\n" "可以选择以二进制或文本模式写入套接字,也可以识别另一个对等体用于写入的模式。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Closes this WebSocket connection. [code]code[/code] is the status code for " "the closure (see RFC 6455 section 7.4 for a list of valid status codes). " "[code]reason[/code] is the human readable reason for closing the connection " "(can be any UTF-8 string that's smaller than 123 bytes).\n" "[b]Note:[/b] To achieve a clean close, you will need to keep polling until " "either [signal WebSocketClient.connection_closed] or [signal WebSocketServer." "client_disconnected] is received.\n" "[b]Note:[/b] The HTML5 export might not support all status codes. Please " "refer to browser-specific documentation for more details." msgstr "" "关闭此WebSocket连接。[code]code[/code]是关闭的状态代码,有效状态代码的列表参" "阅RFC 6455第7.4节。[code]reason[/code] 是关闭连接的只读原因(可以是任何小于" "123字节的UTF-8字符串)。\n" "[b]注意:[/b]为了实现彻底的关闭,你需要继续轮询,直到收到[signal " "WebSocketClient.connection_closed]或[signal WebSocketServer." "client_disconnected]。\n" "[b]注意:[/b]HTML5导出可能不支持所有状态代码。请参考特定浏览器的文档以了解更" "多细节。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Returns the IP address of the connected peer.\n" "[b]Note:[/b] Not available in the HTML5 export." msgstr "" "返回连接的对等体的 IP 地址。\n" "[b]注意:[/b]在 HTML5 导出中不可用。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Returns the remote port of the connected peer.\n" "[b]Note:[/b] Not available in the HTML5 export." msgstr "" "返回所连接对等体的远程端口。\n" "[b]注意:[/b]在 HTML5 导出中不可用。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Returns the current amount of data in the outbound websocket buffer. [b]Note:" "[/b] HTML5 exports use WebSocket.bufferedAmount, while other platforms use " "an internal buffer." msgstr "" "返回输出的websocket缓冲区中的当前数据量。[b]注意:[/b]HTML5导出使用WebSocket." "bufferedAmount,而其他平台使用内部缓冲区。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "Gets the current selected write mode. See [enum WriteMode]." msgstr "获取当前选择的写入模式。参阅[enum WriteMode]。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "Returns [code]true[/code] if this peer is currently connected." msgstr "如果该对等体当前已连接,则返回 [code]true[/code]。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Disable Nagle's algorithm on the underling TCP socket (default). See [method " "StreamPeerTCP.set_no_delay] for more information.\n" "[b]Note:[/b] Not available in the HTML5 export." msgstr "" "在底层的TCP套接字上禁用Nagle算法(默认)。参阅[method StreamPeerTCP." "set_no_delay]以了解更多信息。\n" "[b]注意:[/b]在HTML5导出中不可用。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "Sets the socket to use the given [enum WriteMode]." msgstr "将套接字设置为使用给定的[enum WriteMode]。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Returns [code]true[/code] if the last received packet was sent as a text " "payload. See [enum WriteMode]." msgstr "" "如果最后收到的数据包是作为文本有效载荷发送的,返回 [code]true[/code]。参阅" "[enum WriteMode]。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Specifies that WebSockets messages should be transferred as text payload " "(only valid UTF-8 is allowed)." msgstr "指定WebSockets消息应作为文本有效载荷传输(只允许有效的UTF-8)。" #: modules/websocket/doc_classes/WebSocketPeer.xml msgid "" "Specifies that WebSockets messages should be transferred as binary payload " "(any byte combination is allowed)." msgstr "指定WebSockets消息应以二进制有效载荷的形式传输(允许任何字节组合)。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "A WebSocket server implementation." msgstr "WebSocket服务器的实现。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "This class implements a WebSocket server that can also support the high-" "level multiplayer API.\n" "After starting the server ([method listen]), you will need to [method " "NetworkedMultiplayerPeer.poll] it at regular intervals (e.g. inside [method " "Node._process]). When clients connect, disconnect, or send data, you will " "receive the appropriate signal.\n" "[b]Note:[/b] Not available in HTML5 exports." msgstr "" "这个类实现了WebSocket服务器,它也可以支持高级别的多人游戏API。\n" "在启动服务器后,[method listen],你需要[method NetworkedMultiplayerPeer.poll]" "它以固定的时间间隔,例如在[method Node._process]内。当客户端连接、断开或发送" "数据时,你会收到相应的信号。\n" "[b]注意:[/b]在HTML5导出中不可用。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Disconnects the peer identified by [code]id[/code] from the server. See " "[method WebSocketPeer.close] for more information." msgstr "" "断开由[code]id[/code]标识的对等体与服务器的连接。更多信息参阅[method " "WebSocketPeer.close]。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "Returns [code]true[/code] if a peer with the given ID is connected." msgstr "如果一个具有给定ID的对等体被连接,则返回 [code]true[/code]。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Returns [code]true[/code] if the server is actively listening on a port." msgstr "如果服务器正在监听某个端口,返回 [code]true[/code]。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Starts listening on the given port.\n" "You can specify the desired subprotocols via the \"protocols\" array. If the " "list empty (default), no sub-protocol will be requested.\n" "If [code]true[/code] is passed as [code]gd_mp_api[/code], the server will " "behave like a network peer for the [MultiplayerAPI], connections from non-" "Godot clients will not work, and [signal data_received] will not be " "emitted.\n" "If [code]false[/code] is passed instead (default), you must call " "[PacketPeer] functions ([code]put_packet[/code], [code]get_packet[/code], " "etc.), on the [WebSocketPeer] returned via [code]get_peer(id)[/code] to " "communicate with the peer with given [code]id[/code] (e.g. " "[code]get_peer(id).get_available_packet_count[/code])." msgstr "" "在给定的端口上开始监听。\n" "你可以通过 \"协议\" 数组指定所需的子协议。如果列表为空(默认情况下),将不请" "求任何子协议。\n" "如果[code]true[/code]作为[code]gd_mp_api[/code]传递,服务器将表现得像" "[MultiplayerAPI]的网络对等体,来自非Godot客户端的连接将不工作,并且[signal " "data_received]将不被触发。\n" "如果[code]false[/code]被传递(默认),你必须调用[PacketPeer]函数" "([code]put_packet[/code], [code]get_packet[/code], etc.),在通过" "[code]get_peer(id)[/code]返回的[WebSocketPeer]上,与具有给定[code]id[/code]的" "对等体进行通信,例如,[code]get_peer(id).get_available_packet_count[/code]。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Sets additional headers to be sent to clients during the HTTP handshake." msgstr "设置在 HTTP 握手期间发送给客户端的额外报头。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "Stops the server and clear its state." msgstr "停止服务器并清除其状态。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "When not set to [code]*[/code] will restrict incoming connections to the " "specified IP address. Setting [code]bind_ip[/code] to [code]127.0.0.1[/code] " "will cause the server to listen only to the local host." msgstr "" "当不设置为[code]*[/code]时,将限制进入的连接到指定的IP地址。将[code]bind_ip[/" "code]设置为[code]127.0.0.1[/code]将导致服务器只监听本地主机。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "When using SSL (see [member private_key] and [member ssl_certificate]), you " "can set this to a valid [X509Certificate] to be provided as additional CA " "chain information during the SSL handshake." msgstr "" "当使用SSL时,你可以将其设置为一个有效的[X509Certificate],作为SSL握手过程中额" "外的CA链信息提供。参阅[member private_key]和[member ssl_certificate]。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "The time in seconds before a pending client (i.e. a client that has not yet " "finished the HTTP handshake) is considered stale and forcefully disconnected." msgstr "" "挂起客户端,即尚未完成 HTTP 握手的客户端之前的时间被认为是陈旧的并强制断开连" "接,时间以秒为单位。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "When set to a valid [CryptoKey] (along with [member ssl_certificate]) will " "cause the server to require SSL instead of regular TCP (i.e. the [code]wss://" "[/code] protocol)." msgstr "" "当设置为有效的[CryptoKey]时,与[member ssl_certificate]一起,将导致服务器需要" "SSL而不是普通的TCP,即[code]wss://[/code]协议。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "When set to a valid [X509Certificate] (along with [member private_key]) will " "cause the server to require SSL instead of regular TCP (i.e. the [code]wss://" "[/code] protocol)." msgstr "" "当设置为有效的[X509Certificate]时,连同[member private_key],将导致服务器需要" "SSL而不是普通的TCP,即[code]wss://[/code]协议。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Emitted when a client requests a clean close. You should keep polling until " "you get a [signal client_disconnected] signal with the same [code]id[/code] " "to achieve the clean close. See [method WebSocketPeer.close] for more " "details." msgstr "" "当一个客户端要求彻底关闭时触发。你应该继续轮询,直到你得到一个具有相同" "[code]id[/code]的[signal client_disconnected]信号,以实现彻底关闭。请参阅" "[method WebSocketPeer.close]以了解更多细节。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Emitted when a new client connects. \"protocol\" will be the sub-protocol " "agreed with the client." msgstr "当新的客户端连接时触发。\"协议\" 将是与客户端达成的子协议。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Emitted when a client disconnects. [code]was_clean_close[/code] will be " "[code]true[/code] if the connection was shutdown cleanly." msgstr "" "当客户端断开连接时触发。如果连接被彻底关闭[code]was_clean_close[/code] 将是" "[code]true[/code] 。" #: modules/websocket/doc_classes/WebSocketServer.xml msgid "" "Emitted when a new message is received.\n" "[b]Note:[/b] This signal is [i]not[/i] emitted when used as high-level " "multiplayer peer." msgstr "" "当收到一个新消息时触发。\n" "[b]注意:[/b]这个信号在用作高级多人对等的时候,[i]不[/i]触发。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "AR/VR interface using WebXR." msgstr "使用 WebXR 的 AR/VR 接口。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "WebXR is an open standard that allows creating VR and AR applications that " "run in the web browser.\n" "As such, this interface is only available when running in an HTML5 export.\n" "WebXR supports a wide range of devices, from the very capable (like Valve " "Index, HTC Vive, Oculus Rift and Quest) down to the much less capable (like " "Google Cardboard, Oculus Go, GearVR, or plain smartphones).\n" "Since WebXR is based on Javascript, it makes extensive use of callbacks, " "which means that [WebXRInterface] is forced to use signals, where other AR/" "VR interfaces would instead use functions that return a result immediately. " "This makes [WebXRInterface] quite a bit more complicated to initialize than " "other AR/VR interfaces.\n" "Here's the minimum code required to start an immersive VR session:\n" "[codeblock]\n" "extends Spatial\n" "\n" "var webxr_interface\n" "var vr_supported = false\n" "\n" "func _ready():\n" " # We assume this node has a button as a child.\n" " # This button is for the user to consent to entering immersive VR mode.\n" " $Button.connect(\"pressed\", self, \"_on_Button_pressed\")\n" "\n" " webxr_interface = ARVRServer.find_interface(\"WebXR\")\n" " if webxr_interface:\n" " # Map to the standard button/axis ids when possible.\n" " webxr_interface.xr_standard_mapping = true\n" "\n" " # WebXR uses a lot of asynchronous callbacks, so we connect to " "various\n" " # signals in order to receive them.\n" " webxr_interface.connect(\"session_supported\", self, " "\"_webxr_session_supported\")\n" " webxr_interface.connect(\"session_started\", self, " "\"_webxr_session_started\")\n" " webxr_interface.connect(\"session_ended\", self, " "\"_webxr_session_ended\")\n" " webxr_interface.connect(\"session_failed\", self, " "\"_webxr_session_failed\")\n" "\n" " # This returns immediately - our _webxr_session_supported() method\n" " # (which we connected to the \"session_supported\" signal above) " "will\n" " # be called sometime later to let us know if it's supported or not.\n" " webxr_interface.is_session_supported(\"immersive-vr\")\n" "\n" "func _webxr_session_supported(session_mode, supported):\n" " if session_mode == 'immersive-vr':\n" " vr_supported = supported\n" "\n" "func _on_Button_pressed():\n" " if not vr_supported:\n" " OS.alert(\"Your browser doesn't support VR\")\n" " return\n" "\n" " # We want an immersive VR session, as opposed to AR ('immersive-ar') or " "a\n" " # simple 3DoF viewer ('viewer').\n" " webxr_interface.session_mode = 'immersive-vr'\n" " # 'bounded-floor' is room scale, 'local-floor' is a standing or sitting\n" " # experience (it puts you 1.6m above the ground if you have 3DoF " "headset),\n" " # whereas as 'local' puts you down at the ARVROrigin.\n" " # This list means it'll first try to request 'bounded-floor', then\n" " # fallback on 'local-floor' and ultimately 'local', if nothing else is\n" " # supported.\n" " webxr_interface.requested_reference_space_types = 'bounded-floor, local-" "floor, local'\n" " # In order to use 'local-floor' or 'bounded-floor' we must also\n" " # mark the features as required or optional.\n" " webxr_interface.required_features = 'local-floor'\n" " webxr_interface.optional_features = 'bounded-floor'\n" "\n" " # This will return false if we're unable to even request the session,\n" " # however, it can still fail asynchronously later in the process, so we\n" " # only know if it's really succeeded or failed when our\n" " # _webxr_session_started() or _webxr_session_failed() methods are " "called.\n" " if not webxr_interface.initialize():\n" " OS.alert(\"Failed to initialize\")\n" " return\n" "\n" "func _webxr_session_started():\n" " $Button.visible = false\n" " # This tells Godot to start rendering to the headset.\n" " get_viewport().arvr = true\n" " # This will be the reference space type you ultimately got, out of the\n" " # types that you requested above. This is useful if you want the game " "to\n" " # work a little differently in 'bounded-floor' versus 'local-floor'.\n" " print (\"Reference space type: \" + webxr_interface." "reference_space_type)\n" "\n" "func _webxr_session_ended():\n" " $Button.visible = true\n" " # If the user exits immersive mode, then we tell Godot to render to the " "web\n" " # page again.\n" " get_viewport().arvr = false\n" "\n" "func _webxr_session_failed(message):\n" " OS.alert(\"Failed to initialize: \" + message)\n" "[/codeblock]\n" "There are several ways to handle \"controller\" input:\n" "- Using [ARVRController] nodes and their [signal ARVRController." "button_pressed] and [signal ARVRController.button_release] signals. This is " "how controllers are typically handled in AR/VR apps in Godot, however, this " "will only work with advanced VR controllers like the Oculus Touch or Index " "controllers, for example. The buttons codes are defined by [url=https://" "immersive-web.github.io/webxr-gamepads-module/#xr-standard-gamepad-" "mapping]Section 3.3 of the WebXR Gamepads Module[/url].\n" "- Using [method Node._unhandled_input] and [InputEventJoypadButton] or " "[InputEventJoypadMotion]. This works the same as normal joypads, except the " "[member InputEvent.device] starts at 100, so the left controller is 100 and " "the right controller is 101, and the button codes are also defined by " "[url=https://immersive-web.github.io/webxr-gamepads-module/#xr-standard-" "gamepad-mapping]Section 3.3 of the WebXR Gamepads Module[/url].\n" "- Using the [signal select], [signal squeeze] and related signals. This " "method will work for both advanced VR controllers, and non-traditional " "\"controllers\" like a tap on the screen, a spoken voice command or a button " "press on the device itself. The [code]controller_id[/code] passed to these " "signals is the same id as used in [member ARVRController.controller_id].\n" "You can use one or all of these methods to allow your game or app to support " "a wider or narrower set of devices and input methods, or to allow more " "advanced interactions with more advanced devices." msgstr "" "WebXR 是一个开放标准,允许创建在网络浏览器中运行的 VR 和 AR 应用程序。\n" "因此,这个界面只有在 HTML5 导出中运行时才能使用。\n" "WebXR 支持广泛的设备,从能力很强的设备(如 Valve Index、HTC Vive、Oculus " "Rift 和 Quest)到能力较弱的设备(如 Google Cardboard、Oculus Go、GearVR 或普" "通智能手机)。\n" "由于 WebXR 是基于 Javascript 的,它大量使用回调,这意味着 [WebXRInterface] 被" "迫使用信号,而其他 AR/VR 界面会使用立即返回结果的函数。这使得 " "[WebXRInterface] 的初始化比其他 AR/VR 接口要复杂很多。\n" "下面是启动一个沉浸式 VR 会话所需的最小代码。\n" "[codeblock]\n" "extends Spatial\n" "\n" "var webxr_interface\n" "var vr_supported = false\n" "\n" "func _ready():\n" " # 我们假设这个节点有一个按钮作为子节点。\n" " # 这个按钮是让用户同意进入沉浸式VR模式。\n" " $Button.connect(\"pressed\", self, \"_on_Button_pressed\")\n" "\n" " webxr_interface = ARVRServer.find_interface(\"WebXR\")\n" " if webxr_interface:\n" " # 尽可能映射到标准按钮/轴\n" " webxr_interface.xr_standard_mapping = true\n" "\n" " # WebXR使用了大量的异步回调,\n" " # 所以我们要连接各种信号来接收它们。 \n" " webxr_interface.connect(\"session_supported\", self, " "\"_webxr_session_supported\")\n" " webxr_interface.connect(\"session_started\", self, " "\"_webxr_session_started\")\n" " webxr_interface.connect(\"session_ended\", self, " "\"_webxr_session_ended\")\n" " webxr_interface.connect(\"session_failed\", self, " "\"_webxr_session_failed\")\n" "\n" " # 这将立即返回——自身的_webxr_session_supported()方法\n" " # (我们在上面连接了'session_supported' 信号)将在稍后被调用\n" " # 让我们知道它是否被支持。 \n" " webxr_interface.is_session_supported(\"immersive-vr\")\n" "\n" "func _webxr_session_supported(session_mode, supported):\n" " if session_mode == 'immersive-vr':\n" " vr_supported = supported\n" "\n" "func _on_Button_pressed():\n" " if not vr_supported:\n" " OS.alert(\"Your browser doesn't support VR\")\n" " return\n" "\n" " # 获得沉浸式的VR体验,而不是AR('immersive-ar')\n" " # 或一个简单的3DoF查看器('viewer')。 \n" " webxr_interface.session_mode = 'immersive-vr'\n" " # 'bounded-floor'是房间大小,'local-floor'是站着或坐着的\n" " # 体验(如果你有3DoF耳机,它会让你离地面1.6米)。\n" " # 而'local'则是让你在ARVROrigin处。\n" " # 这个列表意味着它将首先尝试请求 \"bounded-floor\",\n" " # 如果没有其他支持的话,就退而求其次,选择 \"local-floor\",\n" " # 如果没有别的就选 \"local\" 支持。\n" " webxr_interface.requested_reference_space_types = 'bounded-floor, local-" "floor, local'\n" " # 为了使用'local-floor'或'bounded-floor',\n" " # 我们须标记这些特征。\n" " webxr_interface.required_features = 'local-floor'\n" " webxr_interface.optional_features = 'bounded-floor'\n" "\n" " # 如果无法请求会话,这将返回false。\n" " # 然而,在这个过程中,它仍然可能异步失败\n" " # 只有在\n" " # _webxr_session_started()或_webxr_session_failed()方法被调用时,才知道它" "是否真的成功或失败。\n" " if not webxr_interface.initialize():\n" " OS.alert(\"Failed to initialize\")\n" " return\n" "\n" "func _webxr_session_started():\n" " $Button.visible = false\n" " # 这告诉Godot开始进行渲染。\n" " get_viewport().arvr = true\n" " # 这将是您从上面请求的类型中最终得到的引用空间类型。\n" " # 如果你想让游戏在'bounded-floor'和 'local-floor' 中有一点不同,\n" " # 这是很有用的。 \n" " print (\"Reference space type: \" + webxr_interface." "reference_space_type)\n" "\n" "func _webxr_session_ended():\n" " $Button.visible = true\n" " # 如果用户退出沉浸模式,\n" " # 我们就会告诉Godot重新渲染到网页上。\n" " get_viewport().arvr = false\n" "\n" "func _webxr_session_failed(message):\n" " OS.alert(\"Failed to initialize: \" + message)\n" "[/codeblock]\n" "有几种方法来处理“controller”控制器的输入。\n" "- 使用 [ARVRController] 节点和它们的 [signal ARVRController.button_pressed] " "和 [signal ARVRController.button_release] 信号。这是 Godot 的 AR/VR 应用中通" "常处理控制器的方式,然而,这只适用于高级 VR 控制器,例如 Oculus Touch 或 " "Index 控制器。按钮代码由 [url=https://immersive-web.github.io/webxr-gamepads-" "module/#xr-standard-gamepad-mapping]WebXR Gamepads 模块[/url]的 3.3 节定" "义。\n" "- 使用 [method Node._unhandled_input]和[InputEventJoypadButton]或" "[InputEventJoypadMotion]。这和普通的游戏手柄工作原理一样,只是 [member " "InputEvent.device] 从 100 开始,所以左边的控制器是 100,右边的控制器是 101," "按钮代码由 [url=https://immersive-web.github.io/webxr-gamepads-module/#xr-" "standard-gamepad-mapping]WebXR Gamepads模块[/url]的 3.3 节定义。\n" "- 使用 [signal select]、[signal squeeze] 和相关信号。这种方法既适用于高级的VR" "控制器,也适用于非传统的“controller”控制器,如在屏幕上的点击、口语化的语音命" "令或设备本身的按键。传递给这些信号的 [code]controller_id[/code] 是与 [member " "ARVRController.controller_id] 中使用的 id 相同。\n" "你可以使用这些方法中的一个或全部,让你的游戏或应用程序支持更广泛或更窄的设备" "和输入方法,或者允许与更高级的设备进行更高级的交互。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "How to make a VR game for WebXR with Godot" msgstr "如何使用 Godot 制作 WebXR 的 VR 游戏" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Gets an [ARVRPositionalTracker] for the given [code]controller_id[/code].\n" "In the context of WebXR, a \"controller\" can be an advanced VR controller " "like the Oculus Touch or Index controllers, or even a tap on the screen, a " "spoken voice command or a button press on the device itself. When a non-" "traditional controller is used, interpret the position and orientation of " "the [ARVRPositionalTracker] as a ray pointing at the object the user wishes " "to interact with.\n" "Use this method to get information about the controller that triggered one " "of these signals:\n" "- [signal selectstart]\n" "- [signal select]\n" "- [signal selectend]\n" "- [signal squeezestart]\n" "- [signal squeeze]\n" "- [signal squeezestart]" msgstr "" "获取给定 [code]controller_id[/code] 的 [ARVRPositionalTracker]。\n" "在 WebXR 的上下文中, \"controller\"控制器可以是高级 VR 控制器,如 Oculus " "Touch 或 Index 控制器,甚至可以是屏幕上的点击、语音命令或设备本身的按钮按下。" "当使用非传统控制器时,将 [ARVRPositionalTracker] 的位置和方向解释为指向用户希" "望与之交互的对象的射线。\n" "使用此方法获取有关触发以下信号之一的控制器的信息:\n" "- [signal selectstart]\n" "- [signal select]\n" "- [signal selectend]\n" "- [signal squeezestart]\n" "- [signal squeeze]\n" "- [signal squeezestart]" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Returns the target ray mode for the given [code]controller_id[/code].\n" "This can help interpret the input coming from that controller. See " "[url=https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/" "targetRayMode]XRInputSource.targetRayMode[/url] for more information." msgstr "" "返回给定的 [code]controller_id[/code] 控制器的目标射线模式。\n" "可用于帮助解析来自该控制器的输入。详情请参阅 [url=https://developer.mozilla." "org/en-US/docs/Web/API/XRInputSource/targetRayMode]XRInputSource." "targetRayMode[/url]。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Checks if the given [code]session_mode[/code] is supported by the user's " "browser.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRSessionMode]WebXR's XRSessionMode[/url], including: [code]\"immersive-" "vr\"[/code], [code]\"immersive-ar\"[/code], and [code]\"inline\"[/code].\n" "This method returns nothing, instead it emits the [signal session_supported] " "signal with the result." msgstr "" "检查给定的[code]session_mode[/code]是否被用户的浏览器支持。\n" "可能的值来自[url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRSessionMode]WebXR的XRSessionMode[/url],包括:[code]\"immersive-vr\"[/" "code], [code]\"immersive-ar\"[/code], 和[code]\"inline\"[/code]。\n" "此方法不返回任何东西,而是将结果发送给[signal session_supported]信号。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "The vertices of a polygon which defines the boundaries of the user's play " "area.\n" "This will only be available if [member reference_space_type] is " "[code]\"bounded-floor\"[/code] and only on certain browsers and devices that " "support it.\n" "The [signal reference_space_reset] signal may indicate when this changes." msgstr "" "定义用户游戏区域边界的多边形的顶点。\n" "这仅在 [member reference_space_type] 是 [code]\"bounded-floor\"[/code] ,并且" "仅在支持它的某些浏览器和设备上可用。\n" "[signal reference_space_reset] 信号可以指示何时改变。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "A comma-seperated list of optional features used by [method ARVRInterface." "initialize] when setting up the WebXR session.\n" "If a user's browser or device doesn't support one of the given features, " "initialization will continue, but you won't be able to use the requested " "feature.\n" "This doesn't have any effect on the interface when already initialized.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRReferenceSpaceType]WebXR's XRReferenceSpaceType[/url]. If you want to " "use a particular reference space type, it must be listed in either [member " "required_features] or [member optional_features]." msgstr "" "[method ARVRInterface.initialize] 设置 WebXR 会话时使用的可选功能的逗号分隔列" "表。\n" "如果用户的浏览器或设备不支持指定的功能,初始化将继续,但您将无法使用请求的功" "能。\n" "这对已经初始化的接口没有任何影响。\n" "可能的值来自 [url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRReferenceSpaceType]WebXR 的 XRReferenceSpaceType[/url]。如果要使用特定的引" "用空间类型,则必须将其列在 [member required_features] 或 [member " "optional_features] 中。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "The reference space type (from the list of requested types set in the " "[member requested_reference_space_types] property), that was ultimately used " "by [method ARVRInterface.initialize] when setting up the WebXR session.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRReferenceSpaceType]WebXR's XRReferenceSpaceType[/url]. If you want to " "use a particular reference space type, it must be listed in either [member " "required_features] or [member optional_features]." msgstr "" "引用空间类型,来自[member requested_reference_space_types]属性中设置的请求类" "型列表,最终由[method ARVRInterface.initialize]在设置WebXR会话时使用。\n" "可能的值来自[url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRReferenceSpaceType]WebXR的XRReferenceSpaceType[/url]。如果你想使用一个特定" "的引用空间类型,它必须被列入[member required_features]或[member " "optional_features]中。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "A comma-seperated list of reference space types used by [method " "ARVRInterface.initialize] when setting up the WebXR session.\n" "The reference space types are requested in order, and the first on supported " "by the users device or browser will be used. The [member " "reference_space_type] property contains the reference space type that was " "ultimately used.\n" "This doesn't have any effect on the interface when already initialized.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRReferenceSpaceType]WebXR's XRReferenceSpaceType[/url]. If you want to " "use a particular reference space type, it must be listed in either [member " "required_features] or [member optional_features]." msgstr "" "[method ARVRInterface.initialize] 设置 WebXR 会话时使用的引用空间类型的逗号分" "隔列表。\n" "按顺序请求引用空间类型,将使用用户设备或浏览器支持的第一个。 [member " "reference_space_type] 属性包含最终使用的引用空间类型。\n" "这对已经初始化的接口没有任何影响。\n" "可能的值来自 [url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRReferenceSpaceType]WebXR 的 XRReferenceSpaceType[/url]。如果要使用特定的参" "考空间类型,则必须将其列入 [member required_features] 或 [member " "optional_features] 中。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "A comma-seperated list of required features used by [method ARVRInterface." "initialize] when setting up the WebXR session.\n" "If a user's browser or device doesn't support one of the given features, " "initialization will fail and [signal session_failed] will be emitted.\n" "This doesn't have any effect on the interface when already initialized.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRReferenceSpaceType]WebXR's XRReferenceSpaceType[/url]. If you want to " "use a particular reference space type, it must be listed in either [member " "required_features] or [member optional_features]." msgstr "" "[method ARVRInterface.initialize] 设置 WebXR 会话时使用的所需功能的逗号分隔列" "表。\n" "如果用户的浏览器或设备不支持指定的功能,初始化将失败并发出 [signal " "session_failed]。\n" "这对已经初始化的接口没有任何影响。\n" "可能的值来自 [url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRReferenceSpaceType]WebXR 的 XRReferenceSpaceType[/url]。如果要使用特定的参" "考空间类型,则必须将其列入 [member required_features] 或 [member " "optional_features] 中。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "The session mode used by [method ARVRInterface.initialize] when setting up " "the WebXR session.\n" "This doesn't have any effect on the interface when already initialized.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRSessionMode]WebXR's XRSessionMode[/url], including: [code]\"immersive-" "vr\"[/code], [code]\"immersive-ar\"[/code], and [code]\"inline\"[/code]." msgstr "" "设置WebXR会话时,[method ARVRInterface.initialize]所使用的会话模式。\n" "在已经初始化的情况下,这对接口没有任何影响。\n" "可能的值来自[url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRSessionMode]WebXR的XRSessionMode[/url],包括:[code]\"immersive-vr\"[/" "code], [code]\"immersive-ar\"[/code], 和[code]\"inline\"[/code]。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Indicates if the WebXR session's imagery is visible to the user.\n" "Possible values come from [url=https://developer.mozilla.org/en-US/docs/Web/" "API/XRVisibilityState]WebXR's XRVisibilityState[/url], including " "[code]\"hidden\"[/code], [code]\"visible\"[/code], and [code]\"visible-" "blurred\"[/code]." msgstr "" "指示用户是否可以看到 WebXR 会话的图像。\n" "可能的值来自 [url=https://developer.mozilla.org/en-US/docs/Web/API/" "XRVisibilityState]WebXR 的 XRVisibilityState[/url],包括 [code]\"hidden\"[/" "code], [code]\"visible\"[/code], 和 [code]\"visible-blurred\"[/code]。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "If set to true, the button and axes ids will be converted to match the " "standard ids used by other AR/VR interfaces, when possible.\n" "Otherwise, the ids will be passed through unaltered from WebXR." msgstr "" "如果设为真,会尽可能将按钮及轴的 ID 进行转换,以匹配其他 AR/VR 接口所使用的标" "准 ID。\n" "否则,会直接传递来自 WebXR 的 ID,不进行修改。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted to indicate that the reference space has been reset or " "reconfigured.\n" "When (or whether) this is emitted depends on the user's browser or device, " "but may include when the user has changed the dimensions of their play space " "(which you may be able to access via [member bounds_geometry]) or pressed/" "held a button to recenter their position.\n" "See [url=https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/" "reset_event]WebXR's XRReferenceSpace reset event[/url] for more information." msgstr "" "发出该消息以表明引用空间已被重置或重新配置。\n" "何时或是否发出取决于用户的浏览器或设备,但可能包括当用户改变了他们的游戏空间" "的尺寸,你可以通过[member bounds_geometry]访问,或按下/按住一个按钮来重新定位" "他们的位置。\n" "参阅[url=https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/" "reset_event]WebXR的XRReferenceSpace重置事件[/url]。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted after one of the \"controllers\" has finished its \"primary " "action\".\n" "Use [method get_controller] to get more information about the controller." msgstr "" "当一个“controller”控制器完成其“primary action”主要动作后触发。\n" "使用 [method get_controller] 来获得更多关于控制器的信息。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted when one of the \"controllers\" has finished its \"primary " "action\".\n" "Use [method get_controller] to get more information about the controller." msgstr "" "当一个“controller”控制器完成其“primary action”主要动作时触发。\n" "使用 [method get_controller] 来获得更多关于控制器的信息。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted when one of the \"controllers\" has started its \"primary action\".\n" "Use [method get_controller] to get more information about the controller." msgstr "" "当一个“controller”控制器开始其“primary action”主要动作时触发。\n" "使用 [method get_controller] 来获得更多关于控制器的信息。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted when the user ends the WebXR session (which can be done using UI " "from the browser or device).\n" "At this point, you should do [code]get_viewport().arvr = false[/code] to " "instruct Godot to resume rendering to the screen." msgstr "" "当用户结束WebXR会话时触发,可以使用浏览器或设备的用户界面来完成。\n" "此时,你应该执行[code]get_viewport().arvr = false[/code]来指示Godot恢复对屏幕" "的渲染。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted by [method ARVRInterface.initialize] if the session fails to start.\n" "[code]message[/code] may optionally contain an error message from WebXR, or " "an empty string if no message is available." msgstr "" "如果会话启动失败,由[method ARVRInterface.initialize]触发。\n" "[code]message[/code]可以选择包含一个来自WebXR的错误信息,如果没有信息,则为空" "字符串。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted by [method ARVRInterface.initialize] if the session is successfully " "started.\n" "At this point, it's safe to do [code]get_viewport().arvr = true[/code] to " "instruct Godot to start rendering to the AR/VR device." msgstr "" "如果会话成功启动,由[method ARVRInterface.initialize]触发。\n" "此时,应该执行[code]get_viewport().arvr = true[/code]来指示Godot开始向AR/VR设" "备进行渲染是安全的。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted by [method is_session_supported] to indicate if the given " "[code]session_mode[/code] is supported or not." msgstr "" "由[method is_session_supported]触发,表示是否支持指定的[code]session_mode[/" "code]。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted after one of the \"controllers\" has finished its \"primary squeeze " "action\".\n" "Use [method get_controller] to get more information about the controller." msgstr "" "当其中一个“controller”控制器完成其“primary squeeze action”主要按压动作后触" "发。\n" "使用 [method get_controller] 来获得更多关于控制器的信息。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted when one of the \"controllers\" has finished its \"primary squeeze " "action\".\n" "Use [method get_controller] to get more information about the controller." msgstr "" "当其中一个“controller”控制器完成其“primary squeeze action”主要按压动作时触" "发。\n" "使用 [method get_controller] 来获得更多关于控制器的信息。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Emitted when one of the \"controllers\" has started its \"primary squeeze " "action\".\n" "Use [method get_controller] to get more information about the controller." msgstr "" "当其中一个“controller”控制器开始其“primary squeeze action”主要按压动作时触" "发。\n" "使用 [method get_controller] 来获得更多关于控制器的信息。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "Emitted when [member visibility_state] has changed." msgstr "当[member visibility_state]已更改时触发。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "We don't know the target ray mode." msgstr "不知道目标射线的模式。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "" "Target ray originates at the viewer's eyes and points in the direction they " "are looking." msgstr "目标射线从观察者的眼睛出发,指向所观察的方向。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "Target ray from a handheld pointer, most likely a VR touch controller." msgstr "目标射线由手持指示器发射,很可能是 VR 触摸控制器。" #: modules/webxr/doc_classes/WebXRInterface.xml msgid "Target ray from touch screen, mouse or other tactile input device." msgstr "目标射线由触摸屏、鼠标等触觉输入设备发射。" #: doc/classes/WindowDialog.xml msgid "Base class for window dialogs." msgstr "窗口对话框的基类。" #: doc/classes/WindowDialog.xml msgid "" "Windowdialog is the base class for all window-based dialogs. It's a by-" "default toplevel [Control] that draws a window decoration and allows motion " "and resizing." msgstr "" "Windowdialog是所有基于窗口的对话框的基类。它是一个默认的顶层[Control]控件,可" "以绘制一个窗口装饰,并允许移动和调整大小。" #: doc/classes/WindowDialog.xml msgid "" "Returns the close [TextureButton].\n" "[b]Warning:[/b] This is a required internal node, removing and freeing it " "may cause a crash. If you wish to hide it or any of its children, use their " "[member CanvasItem.visible] property." msgstr "" "返回关闭的 [TextureButton]。\n" "[b]警告:[/b]这是一个必需的内部节点,删除和释放它可能会导致崩溃。如果您希望隐" "藏它或其任何子项,请使用它们的 [member CanvasItem.visible] 属性。" #: doc/classes/WindowDialog.xml msgid "If [code]true[/code], the user can resize the window." msgstr "如果[code]true[/code],用户可以调整窗口大小。" #: doc/classes/WindowDialog.xml msgid "The text displayed in the window's title bar." msgstr "显示在窗口标题栏的文字。" #: doc/classes/WindowDialog.xml msgid "The color of the title text." msgstr "标题文本的颜色。" #: doc/classes/WindowDialog.xml msgid "The horizontal offset of the close button." msgstr "关闭按钮的水平偏移。" #: doc/classes/WindowDialog.xml msgid "" "The thickness of the border that can be dragged when scaling the window (if " "[member resizable] is enabled)." msgstr "缩放窗口时可以拖动的边框的粗细,如果启用了[member resizable]。" #: doc/classes/WindowDialog.xml msgid "The vertical offset of the title text." msgstr "标题文本的垂直偏移。" #: doc/classes/WindowDialog.xml msgid "The font used to draw the title." msgstr "用于绘制标题的字体。" #: doc/classes/WindowDialog.xml msgid "The icon for the close button." msgstr "关闭按钮的图标。" #: doc/classes/WindowDialog.xml msgid "" "The icon used for the close button when it's hovered with the mouse cursor." msgstr "当用鼠标光标悬停时,关闭按钮使用的图标。" #: doc/classes/WindowDialog.xml msgid "" "The style for both the content background of the [WindowDialog] and the " "title bar. The title bar is created with a top border and an expand margin " "using the [code]panel[/code] stylebox." msgstr "" "[WindowDialog] 和标题栏的内容背景的样式。标题栏使用 [code]panel[/code] 样式盒" "创建,具有顶部边框和扩展边距。" #: doc/classes/World.xml msgid "Class that has everything pertaining to a world." msgstr "拥有与世界相关的一切的类。" #: doc/classes/World.xml msgid "" "Class that has everything pertaining to a world. A physics space, a visual " "scenario and a sound space. Spatial nodes register their resources into the " "current world." msgstr "" "拥有与世界相关的一切的类。物理空间、视觉场景和声音空间。空间节点将其资源注册" "到当前世界中。" #: doc/classes/World.xml msgid "" "Direct access to the world's physics 3D space state. Used for querying " "current and potential collisions." msgstr "直接访问世界物理 3D 空间状态。用于查询当前和潜在的碰撞。" #: doc/classes/World.xml msgid "The World's [Environment]." msgstr "World的[Environment]环境。" #: doc/classes/World.xml msgid "" "The World's fallback_environment will be used if the World's [Environment] " "fails or is missing." msgstr "" "如果 World 的 [Environment] 失败或丢失,将使用 World 的 " "fallback_environment。" #: doc/classes/World.xml msgid "The World's visual scenario." msgstr "世界的视觉场景。" #: doc/classes/World.xml msgid "The World's physics space." msgstr "世界的物理空间。" #: doc/classes/World2D.xml msgid "Class that has everything pertaining to a 2D world." msgstr "拥有与 2D 世界有关的所有内容的类。" #: doc/classes/World2D.xml msgid "" "Class that has everything pertaining to a 2D world. A physics space, a " "visual scenario and a sound space. 2D nodes register their resources into " "the current 2D world." msgstr "" "拥有与 2D 世界有关一切的类。一个物理空间、一个可视化场景和一个声音空间。2D 节" "点将其资源注册到当前的 2D 世界中。" #: doc/classes/World2D.xml msgid "" "The [RID] of this world's canvas resource. Used by the [VisualServer] for 2D " "drawing." msgstr "这个世界的画布资源的 [RID]。由 [VisualServer] 用于 2D 绘制。" #: doc/classes/World2D.xml msgid "" "Direct access to the world's physics 2D space state. Used for querying " "current and potential collisions. When using multi-threaded physics, access " "is limited to [code]_physics_process(delta)[/code] in the main thread." msgstr "" "直接访问世界物理二维空间状态。用于查询当前和潜在的碰撞。使用多线程物理时,访" "问仅限于主线程中的 [code]_physics_process(delta)[/code]。" #: doc/classes/World2D.xml msgid "" "The [RID] of this world's physics space resource. Used by the " "[Physics2DServer] for 2D physics, treating it as both a space and an area." msgstr "" "这个世界物理空间资源的[RID]。 [Physics2DServer] 用于 2D 物理,将其视为空间和" "区域。" #: doc/classes/WorldEnvironment.xml msgid "" "Default environment properties for the entire scene (post-processing " "effects, lighting and background settings)." msgstr "整个场景的默认环境属性,后期处理效果、照明和背景设置。" #: doc/classes/WorldEnvironment.xml msgid "" "The [WorldEnvironment] node is used to configure the default [Environment] " "for the scene.\n" "The parameters defined in the [WorldEnvironment] can be overridden by an " "[Environment] node set on the current [Camera]. Additionally, only one " "[WorldEnvironment] may be instanced in a given scene at a time.\n" "The [WorldEnvironment] allows the user to specify default lighting " "parameters (e.g. ambient lighting), various post-processing effects (e.g. " "SSAO, DOF, Tonemapping), and how to draw the background (e.g. solid color, " "skybox). Usually, these are added in order to improve the realism/color " "balance of the scene." msgstr "" "[WorldEnvironment] 节点用于配置场景的默认 [Environment] 环境。\n" "在 [WorldEnvironment] 中定义的参数可以被设置在当前 [Camera] 上的 " "[Environment] 节点覆盖。此外,在一个给定的场景中,同时只能实例化一个 " "[WorldEnvironment] 实例。\n" "[WorldEnvironment] 允许用户指定默认的光照参数(例如环境光照)、各种后期处理效" "果(例如 SSAO、DOF、色调映射),以及如何绘制背景(例如纯色、天空盒)。通常," "这些都是为了提高场景的真实性及色彩平衡而添加的。" #: doc/classes/WorldEnvironment.xml msgid "" "The [Environment] resource used by this [WorldEnvironment], defining the " "default properties." msgstr "" "此 [WorldEnvironment] 世界环境所使用的 [Environment] 环境资源,定义默认属性。" #: doc/classes/X509Certificate.xml msgid "An X509 certificate (e.g. for SSL)." msgstr "X509 证书(例如用于 SSL)。" #: doc/classes/X509Certificate.xml msgid "" "The X509Certificate class represents an X509 certificate. Certificates can " "be loaded and saved like any other [Resource].\n" "They can be used as the server certificate in [method StreamPeerSSL." "accept_stream] (along with the proper [CryptoKey]), and to specify the only " "certificate that should be accepted when connecting to an SSL server via " "[method StreamPeerSSL.connect_to_stream]." msgstr "" "X509Certificate 类表示一个 X509 证书。证书可以像其他的 [Resource] 资源一样被" "加载和保存。\n" "它们可以作为 [method StreamPeerSSL.accept_stream] 中的服务器证书,与适当的 " "[CryptoKey] 一起使用,并指定通过 [method StreamPeerSSL.connect_to_stream] 连" "接到 SSL 服务器时应该接受的唯一证书。" #: doc/classes/X509Certificate.xml msgid "Loads a certificate from [code]path[/code] (\"*.crt\" file)." msgstr "从 [code]path[/code] 路径加载证书(“*.crt”文件)。" #: doc/classes/X509Certificate.xml msgid "" "Saves a certificate to the given [code]path[/code] (should be a \"*.crt\" " "file)." msgstr "将一个证书保存到给定的 [code]path[/code],应是一个“*.crt”文件。" #: doc/classes/XMLParser.xml msgid "" "Low-level class for creating parsers for [url=https://en.wikipedia.org/wiki/" "XML]XML[/url] files." msgstr "" "用于创建 [url=https://zh.wikipedia.org/zh-cn/XML]XML[/url] 文件解析器的底层" "类。" #: doc/classes/XMLParser.xml msgid "" "This class can serve as base to make custom XML parsers. Since XML is a very " "flexible standard, this interface is low-level so it can be applied to any " "possible schema." msgstr "" "这个类可以作为制作自定义 XML 解析器的基础。由于 XML 是一个非常灵活的标准,这" "个接口也是底层的,可被应用于任何可能的模式。" #: doc/classes/XMLParser.xml msgid "Gets the amount of attributes in the current element." msgstr "获取当前元素中的属性数量。" #: doc/classes/XMLParser.xml msgid "" "Gets the name of the attribute specified by the index in [code]idx[/code] " "argument." msgstr "获取由 [code]idx[/code] 参数中的索引指定的属性名称。" #: doc/classes/XMLParser.xml msgid "" "Gets the value of the attribute specified by the index in [code]idx[/code] " "argument." msgstr "获取由 [code]idx[/code] 参数中的索引指定的属性值。" #: doc/classes/XMLParser.xml msgid "Gets the current line in the parsed file (currently not implemented)." msgstr "获取被解析文件中的当前行(目前未实现)。" #: doc/classes/XMLParser.xml msgid "" "Gets the value of a certain attribute of the current element by name. This " "will raise an error if the element has no such attribute." msgstr "通过名称获取当前元素的某个属性的值。如果该元素没有该属性,将引发错误。" #: doc/classes/XMLParser.xml msgid "" "Gets the value of a certain attribute of the current element by name. This " "will return an empty [String] if the attribute is not found." msgstr "" "通过名称获取当前元素的某个属性值。如果没有找到该属性,将返回空的 [String]。" #: doc/classes/XMLParser.xml msgid "" "Gets the contents of a text node. This will raise an error in any other type " "of node." msgstr "获取文本节点的内容。若在任何其他类型的节点中,将引发错误。" #: doc/classes/XMLParser.xml msgid "" "Gets the name of the current element node. This will raise an error if the " "current node type is neither [constant NODE_ELEMENT] nor [constant " "NODE_ELEMENT_END]." msgstr "" "获取当前元素节点的名称。如果当前节点类型既不是[constant NODE_ELEMENT]也不是" "[constant NODE_ELEMENT_END],将引发一个错误。" #: doc/classes/XMLParser.xml msgid "" "Gets the byte offset of the current node since the beginning of the file or " "buffer." msgstr "获取当前节点从文件或缓冲区开始处的字节偏移量。" #: doc/classes/XMLParser.xml msgid "" "Gets the type of the current node. Compare with [enum NodeType] constants." msgstr "获取当前节点的类型。与 [enum NodeType] 常量比较。" #: doc/classes/XMLParser.xml msgid "Check whether the current element has a certain attribute." msgstr "检查当前元素是否有某个属性。" #: doc/classes/XMLParser.xml msgid "" "Check whether the current element is empty (this only works for completely " "empty tags, e.g. [code][/code])." msgstr "" "检查当前元素是否为空(只适用于完全空的标签,例如 [code][/code])。" #: doc/classes/XMLParser.xml msgid "Opens an XML file for parsing. This returns an error code." msgstr "打开一个 XML 文件进行解析。返回的是错误码。" #: doc/classes/XMLParser.xml msgid "Opens an XML raw buffer for parsing. This returns an error code." msgstr "打开一个 XML 原始缓冲区进行解析。返回的是错误码。" #: doc/classes/XMLParser.xml msgid "Reads the next node of the file. This returns an error code." msgstr "读取文件的下一个节点。返回的是错误码。" #: doc/classes/XMLParser.xml msgid "" "Moves the buffer cursor to a certain offset (since the beginning) and read " "the next node there. This returns an error code." msgstr "" "将缓冲区光标移动到某一偏移量(相对于开始位置)并在那里读取下一个节点。返回的" "是错误码。" #: doc/classes/XMLParser.xml msgid "" "Skips the current section. If the node contains other elements, they will be " "ignored and the cursor will go to the closing of the current element." msgstr "" "跳过当前部分。如果该节点包含其他元素,它们将被忽略,光标将跳转到当前元素的结" "尾处。" #: doc/classes/XMLParser.xml msgid "There's no node (no file or buffer opened)." msgstr "没有节点,未打开文件或缓冲区。" #: doc/classes/XMLParser.xml msgid "Element (tag)." msgstr "元素,即标签。" #: doc/classes/XMLParser.xml msgid "End of element." msgstr "元素的末端。" #: doc/classes/XMLParser.xml msgid "Text node." msgstr "文本节点。" #: doc/classes/XMLParser.xml msgid "Comment node." msgstr "注释节点。" #: doc/classes/XMLParser.xml msgid "CDATA content." msgstr "CDATA 内容。" #: doc/classes/XMLParser.xml msgid "Unknown node." msgstr "未知节点。" #: doc/classes/YSort.xml msgid "Sort all child nodes based on their Y positions." msgstr "根据所有子节点的 Y 坐标对它们进行排序。" #: doc/classes/YSort.xml msgid "" "Sort all child nodes based on their Y positions. The child node must inherit " "from [CanvasItem] for it to be sorted. Nodes that have a higher Y position " "will be drawn later, so they will appear on top of nodes that have a lower Y " "position.\n" "Nesting of YSort nodes is possible. Children YSort nodes will be sorted in " "the same space as the parent YSort, allowing to better organize a scene or " "divide it in multiple ones, yet keep the unique sorting." msgstr "" "根据子节点的 Y 坐标对所有子节点进行排序。子节点必须继承自 [CanvasItem],才能" "进行排序。Y 坐标较高的节点将后绘制,因此它们将出现在 Y 坐标较低的节点之上。\n" "YSort 节点可以嵌套。子节点将与父节点在相同的空间内进行排序,这样可以更好地组" "织一个场景或将其分为多个场景,但又能保持唯一的排序。" #: doc/classes/YSort.xml msgid "" "If [code]true[/code], child nodes are sorted, otherwise sorting is disabled." msgstr "为 [code]true[/code] 时将对子节点进行排序,否则将禁用排序。"