Translations by Hanming Wu

Hanming Wu has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.

121 of 21 results
2.
A displayable is an object that can be shown to the user. Ren'Py displayables can be used in many ways.
2013-12-21
Displayable是一个可以显示给玩家的对象。Displayable在Ren'Py有很多使用方法。
3.
Assignment to an image name using the image statement.
2013-12-21
用image语句赋予其一个图像的名字。
4.
Added to a screen using the screen language add statement.
2013-12-21
用screen语言的add语句将其加到界面中。
5.
Assignment to certain config variables.
2013-12-21
赋给特定的配置变量。
6.
Assignment to certain style properties.
2013-12-21
赋给特定的样式属性。
7.
When a Ren'Py function or variable expects a displayable, there are four things that can be provided:
2013-12-21
当一个Ren'Py函数需要一个displayable时,需要提供四个参数:
8.
An object of type Displayable, created by calling one of the functions given below.
2013-12-21
一个Displayable类型的对象,可以通过调用下面其中一个函数来创建。
9.
A string with a dot (.) in it. Such a string is interpreted as a filename by :func:`Image`.
2013-12-21
包含一个分隔符(.)的字符串。这样的字符串被:func:`Image`解析为文件名。
10.
A color. A color may either be given as a hexidecimal color string in "#rgb", "#rgba", "#rrggbb", or "#rrggbbaa" form, or an (r, g, b, a) tuple, where each component is an integer between 0 and 255. Colors are passed to :func:`Solid`.
2013-12-21
一种颜色。颜色可以通过十六进制的颜色字符串表示,格式为"#rgb", "#rgba", "#rrggbb", 或"#rrggbbaa";或者是(r,g,b,a)的元祖,每个元素是一个0~255之间的整数。这个颜色被传递给:func:`Solid`。
11.
An image name. Any other string is interpreted as a reference to an image defined with the image statement.
2013-12-21
一个图像的名字。可以是任意的字符串,通过image语句定义的一幅图像的引用。
12.
Images
2013-12-21
图像(Images)
13.
The most commonly used displayable is Image, which loads a file from disk and displays it. Since Image is so commonly used, when a string giving a filename is used in a context that expects a displayable, an Image is automatically created. The only time it's necessary to use Image directly is when you want to create an image with style properties.
2014-01-08
最常用的displayable就是图像,可以从文件读取并展示出来。因为图像的使用太频繁了,所以在上下文中用来表示文件名的字符串都被认为是一个displayable,并根据其文件内容自动创建一个图像。只有当您需要创建一个有样式属性的图像时才有必要直接使用一个图像。
14.
Loads an image from a file. `filename` is a string giving the name of the file.
2014-01-08
从文件读取一个图像。`filename`是一个包含文件名的字符串。
15.
`filename` should be a JPEG or PNG file with an appropriate extension.
2014-01-08
`filename`应该是一个JPEG或PNG文件,并以相应的扩展名结尾。
16.
Loading an Image from from a file on disk and decoding it so it can be drawn to the screen takes a long amount of time. While measured in the tenths or hundreds of seconds, the duration of the loading process is long enough that it can prevent an acceptable framerate, and become annoying to the user.
2014-01-08
从磁盘上载入一幅图像并解码,使得其能够在屏幕上显示出来,这个过程需要花费大量时间。当这个过程长达数十秒甚至是上百秒时,载入过程持续的时间过长以至于会影响帧率,进而影响用户体验。
17.
Since an Image is of a fixed size, and doesn't change in response to input, game state, or the size of the area available to it, an Image can be loaded before it is needed, and placed into an area of memory known as the image cache. Once an Image is decoded and in the cache, it can be quickly drawn to the screen.
2014-01-08
因为一幅图像有固定的尺寸,并且不会因用户的输入、游戏的状态、所处的空间的大小而产生变化,那么就可以在使用这幅图片前载入它,然后把它放置到内存中被成为图像缓存的地方。一旦图像被解码并放到缓存中,就可以被快速地显示在屏幕上。
18.
Ren'Py attempts to predict the images that will be used in the future, and loads them into the image cache before they are used. When space in the cache is needed for other images, Ren'Py will remove images that are no longer being used.
2014-01-08
Ren'Py会尝试预测图像是否会在将来被使用,并在使用前将其载入到缓存中。当缓存中的空间需要用来存储其他图像时,Ren'Py会将那些不再使用的图像移除。
19.
By default, Ren'Py will predictively cache up to 8 screens worth of image data. (If your screen is 800x600, then a screen's worth of data is one 800x600 image, two 400x600 images, and so on.) This can be changed with the :var:config.image_cache_size configuration variable.
2014-01-08
Ren'Py默认情况下会预先载入相当于8个屏幕大小的图像数据。(如果您的显示尺寸为800x600,那么一个屏幕大小的数据就是一个800x600的图像,或者2个400x600的图像,以此类推) 这个数字可以通过:var:config.image_cache_size变量来设置。
20.
Although the precise amount is dependent on implementation details and there is significant overhead, as a rule of thumb, each pixel in the image cache consumes 4 bytes of main memory and 4 bytes of video memory.
2014-01-08
图像在缓存中所占用的空间的精确大小依赖于具体的实现细节,这明显超出了这篇文档的讨论范围,根据经验来讲,图像的每一个像素占用4字节的物理内存和4字节的显存。
21.
Image-Like Displayables
2014-01-08
类图像的Displayables
22.
We call these displayables image-like because they take up a rectangular area of the screen, and do not react to input. These differ from normal images by varying their size to fill an area (Frame, LiveTile, and Solid), or by allowing the user to specify their size (LiveComposite, LiveCrop, Null). They are not image manipulators.
2014-01-08
我们把这类displayable成为类图像的是因为他们在屏幕上占据了一个矩形的区域,并且不会对输入做出响应。和普通的图像不同之处在于这种displayable会改变自身大小来填充一个区域(Frame、LiveTile或Solid),或者允许用户来指定他们的大小 (LiveComposite、LiveCrop、Null)。他们不能操作图像。