Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Launchpad Translators instructions and Chinese (Simplified) guidelines.
110 of 75 results
1.
Styles
样式
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:8
2.
Styles allow the look of displayables to be customized. This is done by changing the value of style properties for displayables. For example, changing the :propref:`background` property allows the background of a window or button to be customized.
样式允许displable的外观得到修改。此操作通过修改displayable的样式属性值实现。例如,更改:propref:`background`属性可以使窗口或按钮的背景得到自定义。
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:10
3.
Style properties consist of two parts, a prefix that specifies when the property is used, and the property itself. For example, a button's ``hover_background`` property is used when a button is focused, while its ``idle_background`` property is used when the button is unfocused. (Setting the ``background`` property sets the ``idle_background`` and ``hover_background``, among others.)
样式属性包含两个部分。一个定义属性应用时间的前缀,和一个属性本身。例如,一个按钮的``hover_background``属性在鼠标指针移动到按钮上方时被应用,而``idle_background``属性会在鼠标移开按钮上方时应用。(设置``background``属性即设置了 ``idle_background``和``hover_background``两个属性。)
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:15
4.
While Ren'Py has over 100 style properties, only a few properties are used in this section. Along with ``background``, we use ``color``, ``font``, ``outlines`` and ``size`` as style properties. For a full list of style properties, please read the :ref:`style properties <style-properties>` documentation.
Ren'py拥有超过100种样式属性,但仅有少许几个属性在本章介绍到。比如 ``background``对应的样式属性包括``color``,``font``,``outlines``和``size``。若希望查阅完整的样式属性列表,请参见 :ref:`style properties <style-properties>`文档。
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:22
5.
Using Styles and Style Inheritance
使用样式和样式的继承
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:30
6.
Each displayable has a style built-into it. When the displayable is created, either directly or using the screen system, style properties can be supplied to it, and these styles are used to update the look of the displayable. In the following example::
每个displayable均有一个内置的样式。当创建displayable时,无论是直接创建还是使用screen系统,样式属性均可以应用,并且这些样式会用于更新displayable的外观。例如:
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:32
7.
the :propref:`size` property is supplied to a Text displayable, allowing us to change its text size. This will customize the look of the text displayable by displaying the text 40 pixels high.
:propref:`size`属性用于文本displayable,使得我们能够更改字体大小。这将自定义文本displayable,让文本以40像素高度的大小显示。
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:39
8.
Similarly, when using Screen Language, each user interface statement takes relevant style properties::
相似的,当我们使用screen语言时,每个用户界面语言都具有相关的样式属性:
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:43
9.
Ren'Py supports style inheritance, with each style having a single parent. If a style property is not defined in a style, the value of the property is inherited from the closest parent, grandparent, or other ancestor.
Ren'py 支持样式继承,即每个样式均有一个母样式。如果一个样式属性未在一个样式里得到定义,则该属性的值将从最近的母样式,或更老的样式中继承下来。
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:49
10.
Each displayable takes a property named ``style``, which gives the parent of the displayable's style::
每个displayable均获得一个名为``style``的属性,其指定displayable样式的母样式:
Translated and reviewed by Huang Junjie
Located in ../../source/style.rst:54
110 of 75 results

This translation is managed by Launchpad Simplified Chinese Translators, assigned by Launchpad Translators.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Huang Junjie.