|
8.
|
|
|
Similarly, when using Screen Language, each user interface statement takes relevant style properties::
|
|
|
|
Da mesma forma, ao usar o idioma da tela, cada instrução da interface do usuário assume propriedades de estilo relevantes:
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
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 suporta herança de estilo, com cada estilo tendo um único pai. Se uma propriedade de estilo não for definida em um estilo, o valor da propriedade é herdado do pai, avô ou outro ancestral mais próximo.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:49
|
|
10.
|
|
|
Each displayable takes a property named ``style``, which gives the parent of the displayable's style::
|
|
|
|
Cada displayable leva uma propriedade chamada `` style``, que fornece o pai do estilo do displayable ::
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:54
|
|
11.
|
|
|
When no ``style`` property is given, a parent is chosen based on the kind of displayable be that has been supplied. The parent chosen can be influenced by the :ref:`style_group <style-group>` property of user interface statements in the screen language.
|
|
|
|
Quando nenhuma propriedade `` style`` é fornecida, um pai é escolhido com base no tipo de exibição que foi fornecido. O pai escolhido pode ser influenciado pela propriedade: ref: `style_group <style-group>` das instruções da interface do usuário no idioma da tela.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:62
|
|
12.
|
|
|
When a style is defined without a parent being specified, a default parent is chosen for the style. If the style contains an underscore (_) in its name, the parent is named by removing everything up to and including the first underscore. For example, a style named ``my_button`` will inherit from ``button``. This inheritance can be changed using the style statement or by calling a method on a style object. When a style that does not exist is used, and the style has an underscore in its name, Ren'Py will create it using the default parent.
|
|
|
|
Quando um estilo é definido sem que um pai seja especificado, um pai padrão é escolhido para o estilo. Se o estilo contém um sublinhado (_) em seu nome, o pai é nomeado removendo tudo até e incluindo o primeiro sublinhado. Por exemplo, um estilo chamado `` my_button`` será herdado de `` button``. Essa herança pode ser alterada usando a instrução de estilo ou chamando um método em um objeto de estilo. Quando um estilo que não existe é usado e o estilo tem um sublinhado em seu nome, Ren'Py o cria usando o pai padrão.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:67
|
|
13.
|
|
|
Style names beginning with an underscore are reserved for Ren'Py use.
|
|
|
|
Os nomes de estilo que começam com um sublinhado são reservados para uso de Ren'Py.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:76
|
|
14.
|
|
|
As Ren'Py builds styles on startup, named styles should not be changed outside of init code.
|
|
|
|
Como Ren'Py cria estilos na inicialização, os estilos nomeados não devem ser alterados fora do código init.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:78
|
|
15.
|
|
|
Style Inspector
|
|
|
|
Inspetor de estilo
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:83
|
|
16.
|
|
|
When :var:`config.developer` is true, the style inspector can be used to see which styles are being used by a displayable.
|
|
|
|
Quando: var: `config.developer` é verdadeiro, o inspetor de estilo pode ser usado para ver quais estilos estão sendo usados por um displayable.
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:85
|
|
17.
|
|
|
To activate the style inspector, place the mouse over a displayable, and press shift+I. Ren'Py will display a list of displayables that include the mouse position, in the order they are drawn to the screen. (That is, the last displayable is the one on top of the others.)
|
|
|
|
Para ativar o inspetor de estilo, coloque o mouse sobre um exibível e pressione shift + I. O Ren'Py exibirá uma lista de exibíveis que incluem a posição do mouse, na ordem em que são desenhados na tela. (Ou seja, o último exibível é aquele em cima dos outros.)
|
|
Translated and reviewed by
N0YkcHuGce
|
|
|
|
Located in
../../source/style.rst:88
|